Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Camera on android problem
Qt 6.11 is out! See what's new in the release blog

Camera on android problem

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.4k 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.
  • N Offline
    N Offline
    Nick007
    wrote on last edited by
    #1

    Hello! I use QCamera to get images from web-cam and process it. I use QAbstractVideoSurface derived class to get video frames. But this approach do not work on android. I saw recomendations on forum to use QML Camera. QML Camera example run on my android phone. But I can't find the way to get frames in my C++ class. QMetaObject from setSource has no property videoSurface. I wonder how CML Camera write video frames to VideoOutput. Is it possible to get frames in C++. Or may be there are other ways to do this task?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome devnet,

      There's currently no support for QCamera widget side on android, see "here":http://doc.qt.io/qt-5/platform-notes-android.html

      The best way would be to implement the backend for QCamera on android however I don't know the amount of work that it would require.

      What do you need to do with your application that would require QCamera ?

      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
      • N Offline
        N Offline
        Nick007
        wrote on last edited by
        #3

        Thank you very much, SGaist.
        I think about move to QML declarative camera, but I have no idea how to pass video frames to c++.

        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