Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Common code for Android, iOS, Windows to reading Video Frame from QML Camera to C++
Forum Update on Monday, May 27th 2025

Common code for Android, iOS, Windows to reading Video Frame from QML Camera to C++

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 592 Views
  • 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.
  • C Offline
    C Offline
    Chetana K M
    wrote on 13 Oct 2016, 12:39 last edited by
    #1

    Hello,

    I had tried reading video frame for Android using QVideoProbe class (works only for Android Camera) and for Windows using QAbstractVideoSurface (works only for Windows. In Windows i could not able to see viewFinder area while capturing image/video using QCamera. For windows i am using QAbstractVideoSurface object as viewFinder for QCamera) Now i need to try with iOS.

    Actually my requirement is to read Video Frame from QML Camera and use that frame for processing at C++.

    Is there a way to do this so that i can use same piece of code for all these platforms (iOS, Windows, Android, Linux)?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Oct 2016, 20:59 last edited by
      #2

      Hi and welcome to devnet,

      I haven't used that class but doesn't QVideoFilterRunnable do what you want ?

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tekojo
        wrote on 14 Oct 2016, 06:55 last edited by
        #3

        Hi @Chetana-K-M
        So you want to do something like this program (read a QR code with the camera and process the QR code with a C++ library)?
        https://github.com/a-team-fr/MeetupMobileQtQml/tree/master/160229/DemoProject

        In that example the image is grabbed in main.qml in the Timer (lines 22-30)

            Timer{
                interval:1000
                triggeredOnStart: false
                onTriggered: viewfinder.grabToImage(function (result) {
                    controler.decodeQMLImage(result);
                });
                running:true//overlay.decodeImage
                repeat:true
            }
        

        It is a nicely done example that I know runs on desktop Windows and Android. I don't have an iOS device or a mac to test on.

        1 Reply Last reply
        1

        1/3

        13 Oct 2016, 12:39

        • Login

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