OptiTrack SDK and OpenCV trouble!
Posted: Mon Sep 14, 2009 6:02 am
Hi all, I'm trying to use OpenCv with the OptiTrack SDK but I'm getting a crash when calling m_frame->GetFrameImage(...)
This strange phenomenon seems to happen if certain OpenCv functions are called anywhere in my programme. I've been able to connect to the camera and obtain an OpenCv frame using the GetFrameImage function after I took out the seemingly conflicting functions... here are the OpenCv functions I had to remove in order to get it to run:
cvNamedWindow
cvDestroyWindow
cvShowImage
cvWaitKey
cvLoadImage
cvSaveImage
cvCreateCameraCapture
cvSetCaptureProperty
cvGetCaptureProperty
cvReleaseCapture
Of course now I'm not able to check if my programme is working correctly but at least it's not crashing. Also, it doesn't seem to matter where any of these functions are being called as long as there is a call at some point. Of course there might be other functions that would cause a crash which I'm not using in my programme.
here is a simple programme I've written while trying to get to the bottom of this:
http://pastebin.com/m3f7f63ef
Does anybody have an idea about whats causing this to happen? Or how to fix it? would very much appreciate any kind of help.
Note: my OptiTrack SDK is: Official Release - Version 1.3.035
and my camera is the SLIM V100 (with the chassis).
Thanks in advance.
This strange phenomenon seems to happen if certain OpenCv functions are called anywhere in my programme. I've been able to connect to the camera and obtain an OpenCv frame using the GetFrameImage function after I took out the seemingly conflicting functions... here are the OpenCv functions I had to remove in order to get it to run:
cvNamedWindow
cvDestroyWindow
cvShowImage
cvWaitKey
cvLoadImage
cvSaveImage
cvCreateCameraCapture
cvSetCaptureProperty
cvGetCaptureProperty
cvReleaseCapture
Of course now I'm not able to check if my programme is working correctly but at least it's not crashing. Also, it doesn't seem to matter where any of these functions are being called as long as there is a call at some point. Of course there might be other functions that would cause a crash which I'm not using in my programme.
here is a simple programme I've written while trying to get to the bottom of this:
http://pastebin.com/m3f7f63ef
Does anybody have an idea about whats causing this to happen? Or how to fix it? would very much appreciate any kind of help.
Note: my OptiTrack SDK is: Official Release - Version 1.3.035
and my camera is the SLIM V100 (with the chassis).
Thanks in advance.