i've asked question on opencv.org, without luck, no hope here can me.
i developing face/eye tracking software. measure values eyes (blinks example). when want use method
cv::findcontour()
the program crashes : "windows has triggered breakpoint in eyetracking.exe....." no error message opencv in console.
m = ~currentwebcamframe(trackp.eyeposition(false)); cv::cvtcolor(m,n, cv_rgb2gray); cv::threshold(n, m, threshold-value, 255,cv_thresh_binary); cv::erode(m, n, cv::mat(),cv::point(-1,-1),n_erode_dilate); cv::dilate(n, m, cv::mat(),cv::point(-1,-1),n_erode_dilate); test = m.clone(); if((!test.empty()) && (test.type() == cv_8uc1)){ std::vector< std::vector<cv::point> > contours; cv::findcontours( test, contours, cv_retr_external,cv_chain_approx_none ); };
i've searched internet , found couple of similar posts this, without solution.
my post @ opencv.org : http://answers.opencv.org/question/12887/opencvfindcontour-crashes-v244-ms-visual-studio/ image visible right before findcontour called.
ive tried solve couple of days, without luck. hope here can me fix problem.
edit: when clicking on continue on breakpoint window, message comes up:
unhandled exception @ 0x770540f2 in eyetracking.exe: 0xc0000374: heap damaged.
thanks!
you might possibly need check dll's have used. mixing debug release dll's can cause problem too.
Comments
Post a Comment