cvWarpPerspective : external exception e06d7363

asked 2015-08-03 08:26:43 -0600

Hello,

I'm currently integrating the libDecodeQR library (used to decode QR Codes) in my application in C++ Builder (XE6). I managed to have the openCV 2.4.0 working and was therefore able to compile libDecodeQR.

Unfortunately, when using it (for instance in the code : cvWarpPerspective(spts,dpts,map); with src and dst CvPoint2D32f and map CvMat*), I get either "external exception e06d7363" or "division by zero" error. I'm having trouble knowing which exact line raises the error, while debugging it stops when returning the Scalar in ScalarAll(0), which is used to initialize by default the "fillvall" parameter of cvWarpPerspective :

CV_INLINE CvScalar  cvScalarAll( double val0123 )
{
    CvScalar* scalar = new CvScalar();
    scalar->val[0] = val0123;
    scalar->val[1] = val0123;
    scalar->val[2] = val0123;
    scalar->val[3] = val0123;
    return *scalar;
}

Does someone know what may raise this error ?

Thank you

edit retag flag offensive close merge delete

Comments

opencv moved away from using the c-api half a decade ago, and so should you.

berak gravatar imageberak ( 2015-08-03 08:58:27 -0600 )edit

I'm just using a library which uses openCV, but I don't know anything about openCV and its api ...

mvezinet gravatar imagemvezinet ( 2015-08-03 09:29:45 -0600 )edit

let's just say: this started 9 years ago, and now, it's horribly outdated.

berak gravatar imageberak ( 2015-08-03 09:35:40 -0600 )edit

I guess but QR codes are still the same, and that's unfortunately the only QR code library I managed to compile in C++ Builder

mvezinet gravatar imagemvezinet ( 2015-08-03 10:01:15 -0600 )edit

i remember, that i tried it even, way back then, it was slow and unaccurate. don't expect much from that lib.

C++ Builder, seriously ?

berak gravatar imageberak ( 2015-08-03 10:15:34 -0600 )edit

C++ Builder is not my choice but company's choice. What is a good decoding library then? I couldn't manage to make zbar work

mvezinet gravatar imagemvezinet ( 2015-08-03 10:22:29 -0600 )edit

unfortunately, zbar would have been my first (and probably only) choice there

berak gravatar imageberak ( 2015-08-03 10:30:46 -0600 )edit