| Issue 3: | Error in ExtractContour | |
| Back to list |
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
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
Tested. Bug is gone.
Status:
Verified
Aug 3, 2011
Done at Revision 83. |
59.0 KB View Download