Webcam background and a 3d object in foreground
-
Hi guys and girls,
I'm tying to implement webcam background and a 3d object in foreground.
Something like the integration of those two examples:
http://www.robot-home.it/blog/en/software/tutorial-opencv-qt-opengl-widget-per-visualizzare-immagini-da-opencv-in-una-gui-con-qt-seconda-parte/
and
http://doc.qt.digia.com/qt-quick3d-snapshot/qt3d-penguin.html
Any thoughts? -
Hi,
thanks for replay, but got it working already. QML video is not good for me, because I'm working on augumented reality project and I have to use opencv for pre-processing the video.
Implementation looks like this:
@QML:
Timer
{
interval: 40; running: true; repeat: true;
onTriggered:{ background.textureImage=myCamera.getImage(); }
}
C++:
QImage myCamera::getImage(){
iplImage = cvQueryFrame(capture);
faceLandmarks->detect(iplImage); /* for augumented reality*/
qImage = myCamera::ipl2Qimg(iplImage);
return qImage;
}@[edit added missing coding tags @ SGaist]