Ask Your Question

Revision history [back]

Some (bad idea) to solve your problem :

  1. try to allocate buffer before call std::vector<uchar> buf(50000);
  2. use color image

    vector<mat> x; x.push_back(image);x.push_back(image);x.push_back(image); merge (x,y); imencode(".jpg", y, buf);

good idea update to opencv 3.2

in github I can not find update in 2.4.12 to 2.4.13.2 Can you give stack trace?

my dll in debug mode is C:\Windows\System32\ucrtbased.dll