imencode not working with ".jpg" extension (Access violation reading location)

asked 2020-09-24 16:10:24 -0600

Leonardo_ads gravatar image

updated 2020-09-25 09:20:12 -0600

I updated my opencv from 3.4.5 to 3.4.11 and since then the cv:imencode not working with ".jpg" files, but ".png" and ".bmp" works very fine.

vector<int> params;
string defaultFormat = ".jpg";

params.push_back(CV_IMWRITE_JPEG_QUALITY);
params.push_back(100);

if (!image.empty())
{
 imencode(defaultFormat, image, buffer, params);
}

The error message: Access violation reading location 0x00000014.

ive tried in both release and debug mode.

Additional Dependencies:

IlmImf.lib
ippicvmt.lib
ippiw.lib
ittnotify.lib
libjasper.lib
libjpeg-turbo.lib
libpng.lib
libprotobuf.lib
libtiff.lib
libwebp.lib
opencv_world3411.lib
quirc.lib
zlib.lib

Im on Windows 10 x64

edit retag flag offensive close merge delete