View Single Post
Posts: 61 | Thanked: 77 times | Joined on Dec 2009 @ Lancaster
#6
Originally Posted by Dorfmeister View Post
Hi,
EDIT:
There are simply no OpenCV-GStreamer plugins available according to Daniil (thanks!), which is the reason why the pipeline doesn't work.
Dorfmeister
This is true, but the way you can intergrate gstreamer with OpenCV is to parse the captured raw image data into the IplImage object of the OpenCV Library.

The way to do this:
1.) create an IplImage object of the right size and format.
HTML Code:
IplImage *frame;
frame = cvCreateImageHeader(cvSize(CameraN900::buffer_width,CameraN900::buffer_hight), IPL_DEPTH_8U, 3);
2.) set the data part of the IplImage object.
HTML Code:
cvSetData(tracker->frame ,data,CameraN900::buffer_width*3);
3.) As the captured data is in RGB format and the openCV is in BGR this conversion is needed.
HTML Code:
cvResize(tracker->frame,tracker->frameBGR);
4.) Now you are ready to use your captured frame with any openCV function.

The other way to go is to compleatly skip the QT and work with OpenCV only. You have all the functions that you need for displaying the and capturing the video stream. And the run fast but did not compare them with this approach. I guess if you don't need QT integration this is the way to go.

Sorry for the late reply. I think I was not subscribed to this thread.

I hope this helps.

Cheers,
Klen

Last edited by klen; 2010-08-27 at 09:48.