robbeofficial / KinectTouch

Turns any surface into a giant touchpad using kinect
223 stars 55 forks source link

crashing at findcontours() with fatal error #4

Closed dpulluri closed 12 years ago

dpulluri commented 12 years ago

Hi Rob, I am trying to compile and run your code in Visual Studio 2008. I downloaded OpenCV 2.1 and TUIO C++ api. I have setup OpenCV and TUIO properly and the code builds successfully. But when I run the app (win32 console app), it halts at FindContours(touchRoi, contours, CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE, Point2i(xMin, yMin));

I can't tell why is this crashing. Could you tell me if I am doing anything wrong. I have primesense and openni 1.5 . I am pointing the primesense to a wall and its stable.

dpulluri commented 12 years ago

Got the issue fixed. I changed the lib files of OpenCV to point to debug files and it started working.