imread() returns -1 in opencv 2.3

asked 2012-11-06 23:40:28 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

int _tmain(int argc, _TCHAR* argv[])
    Mat src, dst;
    if( ! )
        { return -1; }

I am using the above code to read an image in opencv 2.3 using imread(),but it returns -1.

Can anyone help me??

edit retag flag offensive close merge delete


Hmmm.. you did check, that your path is valid, right? Just wondering about the "project" folder inside a "project" folder.

Ben gravatar imageBen ( 2012-11-07 02:43:58 -0500 )edit