Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

webcam background and a 3d object in foreground

$
0
0
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]

Viewing all articles
Browse latest Browse all 4972

Trending Articles