Error running my project

asked 2013-06-03 10:38:44 -0500

residentelvio gravatar image

updated 2020-10-24 15:55:11 -0500

Hi, I have this error running my project. I suppose is an error about a file in openCV I downloaded. Is it true? Can I post all my project to see if it works , or what are eventual problems. I m new in OpenCV. Best regards

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 2482
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat
edit retag flag offensive close merge delete


please post your code

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 10:51:16 -0500 )edit

May be there is a problem with the type of the image that your code reads , have a look here

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 10:54:39 -0500 )edit

i m going to open a new question because I can' t write all the code here now.

residentelvio gravatar imageresidentelvio ( 2013-06-03 12:10:36 -0500 )edit

that message says, that some input image mat is empty. check any place in your code, where you load something, images, etc.

berak gravatar imageberak ( 2013-06-03 13:52:27 -0500 )edit

yes I try your code and everything is ok

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 14:22:15 -0500 )edit

so why it give me this message if is ok?

residentelvio gravatar imageresidentelvio ( 2013-06-03 17:49:32 -0500 )edit

I m using ubuntu on a VM cos I have win8 as OS, so what I need to do is download the jpeg library? where do I find and use it?

residentelvio gravatar imageresidentelvio ( 2013-06-03 18:04:35 -0500 )edit

I used a bmp image in the code because is always supported as is written in comments of wiki, and I see the same error. So I suppose that is an error using some openCV function . All my project's code is here:

residentelvio gravatar imageresidentelvio ( 2013-06-04 07:38:23 -0500 )edit