Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    How to use QAbstractVideoFilter to process frames from camera

    QML and Qt Quick
    camera filter frame qabstractvideof
    10
    27
    15612
    Loading More Posts
    • 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
      cs_a994 last edited by

      Hello!

      Is it possible to use the QVideoFilterRunnuble without QML?

      As an example I would like to embed it into Camera example ( http://doc.qt.io/qt-5/qtmultimediawidgets-camera-example.html ) to be able to change data format.

      Thank you.

      M 1 Reply Last reply Reply Quote 0
      • M
        medyakovvit @cs_a994 last edited by

        @cs_a994 Don't think so. But you can try to subclass QAbstractVideoSurface.

        C 1 Reply Last reply Reply Quote 0
        • C
          cs_a994 @medyakovvit last edited by

          @medyakovvit

          Thank you. I know about this way. But use of filters seams to me more neat.

          I tryed to use filters with QML ( in the Camera example ) and did not yet get a result.

          M T 2 Replies Last reply Reply Quote 0
          • M
            medyakovvit @cs_a994 last edited by

            @cs_a994
            OK. I f you have a questions about qml camera and filters, I will try to help you.

            1 Reply Last reply Reply Quote 0
            • T
              theshadowx @cs_a994 last edited by

              @cs_a994

              I have put a QtQuick app in github using QAbstractVideoFilter with OpenCV.

              I hope it helps you.

              Cheers

              C 1 Reply Last reply Reply Quote 0
              • C
                cs_a994 @theshadowx last edited by

                @theshadowx

                Thank you very much. I'll study it soon. I hope it will help.

                1 Reply Last reply Reply Quote 0
                • M
                  mikeitexpert last edited by mikeitexpert

                  @theshadowx

                  I get the below error if I try the canny code from git hub. (https://github.com/theshadowx/Qt_OpenCV)

                  I don't know much about mql but I know QT intermediately.

                  Thank you

                  01:45:55: Starting /home/mike/Downloads/Qt_OpenCV-master/QtQuick/build-CannyQml-Desktop_Qt_5_12_0_GCC_64bit-Debug/CannyQml...
                  QML debugging is enabled. Only use this in a safe environment.

                  (CannyQml:24471): GStreamer-CRITICAL **: 01:45:57.866: write map requested on non-writable buffer
                  01:45:57: The program has unexpectedly finished.
                  01:45:57: The process was ended forcefully.
                  01:45:58: /home/mike/Downloads/Qt_OpenCV-master/QtQuick/build-CannyQml-Desktop_Qt_5_12_0_GCC_64bit-Debug/CannyQml crashed.

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    theshadowx @mikeitexpert last edited by

                    @mikeitexpert
                    Could you add this issue in https://github.com/theshadowx/Qt_OpenCV/issues

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • M
                      mikeitexpert last edited by

                      here: https://github.com/theshadowx/Qt_OpenCV/issues/5

                      Is there any way I can convert qml to c++ code just to get an idea how your methods works in pure C++?

                      Thank you

                      1 Reply Last reply Reply Quote 0
                      • M
                        mikeitexpert last edited by

                        Please let me know if there is any update on this.

                        Mike

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post