Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access Violation error when trying to do contour processing

Hello,

I am new to C++ and OpenCV. I installed OpenCV on Windows 7 following the instructions from the tutorial on this site as best as I could.

I have been using Microsoft Visual C++ as my IDE to run through many of the tutorials and to get an idea of how the OpenCV functions work.

Recently I tied doing the "Finding Contours in Your Image" tutorial from the following link. http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html

When I run the script I get the following error message:

"Unhandled exception at 0x00000000 in Contours.exe: 0xC0000005: Access violation."

It seems like something is going wrong with the vector definitions (contours and hierarchy) when findContours tries to use them.

Any ideas how to fix this?

Thanks for your help,

Julia

Access Violation error when trying to do contour processingwith findContours

Hello,

I am new to C++ and OpenCV. I installed OpenCV on Windows 7 following the instructions from the tutorial on this site as best as I could.

I have been using Microsoft Visual C++ as my IDE to run through many of the tutorials and to get an idea of how the OpenCV functions work.

Recently I tied tried doing the "Finding Contours in Your Image" tutorial from the following link. http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html

When I run the script I get the following error message:

"Unhandled exception at 0x00000000 in Contours.exe: 0xC0000005: Access violation."

It seems like something is going wrong with the vector definitions (contours and hierarchy) when findContours tries to use them.

Any ideas how to fix this?

Is there possibly some linking issue with DLL's or an incorrect installation? So far everything else has been working.

Thanks for your help,

Julia

PS: Also would someone mind explaining to me how these vector definitions work? vector<vector<point> > contours; vector<vec4i> hierarchy;

what is Vec4i?

Access Violation error with findContours

Hello,

I am new to C++ and OpenCV. I installed OpenCV on Windows 7 following the instructions from the tutorial on this site as best as I could.

I have been using Microsoft Visual C++ as my IDE to run through many of the tutorials and to get an idea of how the OpenCV functions work.

Recently I tried doing the "Finding Contours in Your Image" tutorial from the following link. http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html

When I run the script I get the following error message:

"Unhandled exception at 0x00000000 in Contours.exe: 0xC0000005: Access violation."

It seems like something is going wrong with the vector definitions (contours and hierarchy) when findContours tries to use them.

Any ideas how to fix this?

Is there possibly some linking issue with DLL's or an incorrect installation? So far everything else has been working.

Thanks for your help,

Julia

PS: Also would someone mind explaining to me how these vector definitions work? vector<vector<point> > contours; vector<vec4i> hierarchy;

what is Vec4i?