My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Error in ExtractContour
  Back to list
Status:  Verified
Owner:  szpad...@gmail.com
Closed:  May 2011


 
Project Member Reported by szpad...@gmail.com, May 13, 2011
There is an error with ExtractContour function. Application stops working.

{{{area = cvContourArea(contours, CV_WHOLE_SEQ);
			if(area>max_area)
			{
				max_area = area;
				cont = contours;
			}
			contours = contours->h_next;
		}
		while(contours);
		if(cont != 0){
			cont->h_next = NULL;
			cont->h_prev = NULL;
			contours = cont;
		}
		contours = cvApproxPoly( contours, sizeof(CvContour), storage, CV_POLY_APPROX_DP, 3, 1 );}}}

This code seems to not work properly when hand is in top left corner and moves out from the cam view. Error is hard to reproduce.

May 13, 2011
Project Member #1 szpad...@gmail.com
This is app log screenshot.
Capture.PNG
59.0 KB   View   Download
May 13, 2011
Project Member #2 szpad...@gmail.com
Rev. 83

Resolved. cvApproxPoly was throwing an error when filtered out contours object was passed. Issue was resolved in a way that cvApproxPoly was moved before area filtration. Previously it was placed right after area filtration. This could be connected with the fact that cvApproxPoly has to be done before cvContourArea.
Status: Fixed
May 13, 2011
Project Member #3 szpad...@gmail.com
Tested. Bug is gone.
Status: Verified
Aug 3, 2011
Project Member #4 szpad...@gmail.com
Done at Revision 83.

Powered by Google Project Hosting