Ask Your Question

Error: Unhandled Exception VS2013

asked 2014-09-10 22:21:52 -0500

antix gravatar image


I have installed Visual Studio 2013 and opnecv 2.4.9 version and i tried to run a very simple program i took from a blog. But the program breaks after this error:

Unhandled exception at 0x75EB812F in proj.exe: Microsoft C++ exception: cv::Exception at memory location 0x0019F918.

The code is as follows:

image description

I read all similar questions asked based on this 'unhandled exception' error, but all of those are specific to that program. I am a novice in opencv, so please guide me.

Thank you!!! Any help is greatly appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-12 06:03:40 -0500


Mat img = imread("MyPic.JPG");


Mat img = imread("MyPic.JPG");
    cerr << "Cannot read image file" << endl;
    return -1;

Could you try to change your code? If the error message("Cannot read image file") appears, imread() failed.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-09-10 22:21:52 -0500

Seen: 1,109 times

Last updated: Sep 12 '14