Closed Hexer10 closed 4 months ago
https://docs.opencv.org/4.9.0/d4/da8/group__imgcodecs.html#ga461f9ac09887e47797a54567df3b8b63
note the 'ext' parameter must include a leading period, so it should be imencode('.jpg', mat);
but the exception is not friendly, i will try to make it more concise and friendly.
https://docs.opencv.org/4.9.0/d4/da8/group__imgcodecs.html#ga461f9ac09887e47797a54567df3b8b63
note the 'ext' parameter must include a leading period, so it should be imencode('.jpg', mat);
but the exception is not friendly, i will try to make it more concise and friendly.
Thanks for the help I totally missed the leading dot part.
Hi there, thanks for the nice project.
I'm experiencing a crash when using the
imencode
function. I've tried running the code on windows both in plain Dart and on flutter and result is the same, the full code of the crash is the following:The log printed in the console is:
The specific code running before the program crashes it's the following: https://github.com/rainyl/opencv_dart/blob/822c0f66057f575cddc2be89c8becb85d90f5605/lib/src/core/vec.dart#L125-L130 specifically
CFFI.VecUChar_NewFromVec(ptr, p)
->_VecUChar_NewFromVec(vec, rval);
Desktop (please complete the following information):