Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Webcam background and a 3d object in foreground

Webcam background and a 3d object in foreground

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 955 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8 Offline
    8 Offline
    888rok
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aabc
      wrote on last edited by
      #2

      Did you try to work with the QML Video element ?

      1 Reply Last reply
      0
      • 8 Offline
        8 Offline
        888rok
        wrote on last edited by
        #3

        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]

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved