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 + overlay
Forum Updated to NodeBB v4.3 + New Features

Camera + overlay

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.3k Views 2 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.
  • D Offline
    D Offline
    Domel07
    wrote on last edited by
    #1

    Hi,

    I need to set up a simple android app where some simple 2D graphics (say a bunch of lines and circles) will be overlayed on top of a camera viewfinder in real time. I need to be able to analyze the viewfinder image in realtime and overlay my graphics in realtime as well. Please advise what classes to look at. I would prefer not to use QML/Quick if the "pure" Qt suffices. There is no need for any complex GUI or fluid effects with bells and whistles.

    Thanks for any thoughts, I am new to mobile applications with Qt.
    Dominik

    J.HilkJ 1 Reply Last reply
    0
    • D Domel07

      Hi,

      I need to set up a simple android app where some simple 2D graphics (say a bunch of lines and circles) will be overlayed on top of a camera viewfinder in real time. I need to be able to analyze the viewfinder image in realtime and overlay my graphics in realtime as well. Please advise what classes to look at. I would prefer not to use QML/Quick if the "pure" Qt suffices. There is no need for any complex GUI or fluid effects with bells and whistles.

      Thanks for any thoughts, I am new to mobile applications with Qt.
      Dominik

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @Domel07
      hi,
      the last time I used the pure -c++ variant- of QCamera, I had serious trouble to get it to work in mobile(android, was fine on ios) but it has been 4 or 5 releases since than, so it might be fine now. Or you have to use QML to get access to the camera - that was what I used in the end.

      That said, you want to look into the QCamera to access the hardware camera and QVideoProbe for accessing the frames the camera delivers.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Domel07
        wrote on last edited by
        #3

        @J-Hilk thanks for a hint. Well, I am torn indeed between pure Qt or Quick for my purpose. I am reluctant to learn QML (that I do not know) but if this is what works better/more solid then I can adopt. Can anyone else please share their thoughts what is the best (stable, reliable, supported) way of using camera for my purpose?

        Thanks a lot, Dominik

        J.HilkJ 1 Reply Last reply
        0
        • D Domel07

          @J-Hilk thanks for a hint. Well, I am torn indeed between pure Qt or Quick for my purpose. I am reluctant to learn QML (that I do not know) but if this is what works better/more solid then I can adopt. Can anyone else please share their thoughts what is the best (stable, reliable, supported) way of using camera for my purpose?

          Thanks a lot, Dominik

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @Domel07 there is no reason, not to mix and match as you see fit.

          Most QML applications end up with a c++ backend, for example to analyze a frame/picture

          Or you can use for example a QQuickView or QQuickWidgets to simply load a QML-Camera file. You can query that file on c++ side for the camera object and use it as if it were any other c++ object.
          The QuickView/widget does not even have to be visible for your purpose.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          D 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @Domel07 there is no reason, not to mix and match as you see fit.

            Most QML applications end up with a c++ backend, for example to analyze a frame/picture

            Or you can use for example a QQuickView or QQuickWidgets to simply load a QML-Camera file. You can query that file on c++ side for the camera object and use it as if it were any other c++ object.
            The QuickView/widget does not even have to be visible for your purpose.

            D Offline
            D Offline
            Domel07
            wrote on last edited by
            #5

            @J.Hilk thank you, will try to follow along those lines. Thanks!

            Pablo J. RoginaP 1 Reply Last reply
            0
            • D Domel07

              @J.Hilk thank you, will try to follow along those lines. Thanks!

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @Domel07 you may want to take a look at this post, as it shows how to integrate QML, Android and OpenCV.

              I need to be able to analyze the viewfinder image in realtime

              What tool(s) are you planning to use for that?

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              D 1 Reply Last reply
              0
              • Pablo J. RoginaP Pablo J. Rogina

                @Domel07 you may want to take a look at this post, as it shows how to integrate QML, Android and OpenCV.

                I need to be able to analyze the viewfinder image in realtime

                What tool(s) are you planning to use for that?

                D Offline
                D Offline
                Domel07
                wrote on last edited by
                #7

                @Pablo-J.-Rogina Exactly OpenCV :) But am happy to first get the backbones running, i.e. doing some trivial computations myself and drawing some lines/circles over camera viewfinder in realtime (think tracking a moving object or detecting oval shapes).

                Thank you!

                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