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. Opencv and Gstreamer

Opencv and Gstreamer

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 475 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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on 8 Jan 2024, 05:49 last edited by
    #1

    I have worked out opencv and gstreamer separately in different projects..Now I'm trying to include to use Gstreamer inside Opencv. For that I checked the build information of opencv in command line..But..on including in Qt..error hits..My opencv version is 4.8.1 and the build information in command line shows it is enabled and it's version is 1.16.3.But,on building the libraries are not generated.And,the source paths and header paths are difficult to include in the project. I have compiled in MINGW 64 bit compiler in command line because I'm using the same in Qt creator.

    In examples, it says we have to include #include <opencv2/core.hpp>
    But the core.hpp is in the path like this:
    C:\Users\hp\Downloads\opencv\sources\modules\core\include\opencv2\core

    My Qt version:5.15.2
    My Compiler version:MINGW-64 bit version
    My opencv version:4.8.1

    How to properly link the path of source directory in Qt?

    J 1 Reply Last reply 8 Jan 2024, 06:41
    0
    • V Vijaykarthikeyan
      8 Jan 2024, 07:03

      @jsulm Installation folder means? I have downloaded opencv source code and compiled by MINGW compiler.Installer folder what I'm getting is the build folder..isn't it?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 8 Jan 2024, 07:05 last edited by
      #4

      @Vijaykarthikeyan said in Opencv and Gstreamer:

      Installation folder means?

      Well, the folder where you installed the build. If you do "make install" then it installs the built libraries and header files. You should know where you installed them.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply 8 Jan 2024, 10:38
      1
      • V Vijaykarthikeyan
        8 Jan 2024, 05:49

        I have worked out opencv and gstreamer separately in different projects..Now I'm trying to include to use Gstreamer inside Opencv. For that I checked the build information of opencv in command line..But..on including in Qt..error hits..My opencv version is 4.8.1 and the build information in command line shows it is enabled and it's version is 1.16.3.But,on building the libraries are not generated.And,the source paths and header paths are difficult to include in the project. I have compiled in MINGW 64 bit compiler in command line because I'm using the same in Qt creator.

        In examples, it says we have to include #include <opencv2/core.hpp>
        But the core.hpp is in the path like this:
        C:\Users\hp\Downloads\opencv\sources\modules\core\include\opencv2\core

        My Qt version:5.15.2
        My Compiler version:MINGW-64 bit version
        My opencv version:4.8.1

        How to properly link the path of source directory in Qt?

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 8 Jan 2024, 06:41 last edited by jsulm 1 Aug 2024, 06:45
        #2

        @Vijaykarthikeyan said in Opencv and Gstreamer:

        But the core.hpp is in the path like this:
        C:\Users\hp\Downloads\opencv\sources\modules\core\include\opencv2\core

        This is the source code folder. You need to add the installation folder where the libraries and header files were installed.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply 8 Jan 2024, 07:03
        1
        • J jsulm
          8 Jan 2024, 06:41

          @Vijaykarthikeyan said in Opencv and Gstreamer:

          But the core.hpp is in the path like this:
          C:\Users\hp\Downloads\opencv\sources\modules\core\include\opencv2\core

          This is the source code folder. You need to add the installation folder where the libraries and header files were installed.

          V Offline
          V Offline
          Vijaykarthikeyan
          wrote on 8 Jan 2024, 07:03 last edited by
          #3

          @jsulm Installation folder means? I have downloaded opencv source code and compiled by MINGW compiler.Installer folder what I'm getting is the build folder..isn't it?

          J 1 Reply Last reply 8 Jan 2024, 07:05
          0
          • V Vijaykarthikeyan
            8 Jan 2024, 07:03

            @jsulm Installation folder means? I have downloaded opencv source code and compiled by MINGW compiler.Installer folder what I'm getting is the build folder..isn't it?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 8 Jan 2024, 07:05 last edited by
            #4

            @Vijaykarthikeyan said in Opencv and Gstreamer:

            Installation folder means?

            Well, the folder where you installed the build. If you do "make install" then it installs the built libraries and header files. You should know where you installed them.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply 8 Jan 2024, 10:38
            1
            • J jsulm
              8 Jan 2024, 07:05

              @Vijaykarthikeyan said in Opencv and Gstreamer:

              Installation folder means?

              Well, the folder where you installed the build. If you do "make install" then it installs the built libraries and header files. You should know where you installed them.

              V Offline
              V Offline
              Vijaykarthikeyan
              wrote on 8 Jan 2024, 10:38 last edited by
              #5

              @jsulm ok..I have done it..Thank you..
              Is there any possibilities to use Gstreamer plugin in QML like qmlglsink like that..I have gone through the documnetation they have given 3 plugins but in the downloaded folder, i can't find any any one of those.Ofcouse, Mediaplayer is lying in Gstreamer framework, i want to use separate plugin. How to use it like import QtGStreamer 1.0 like that

              1 Reply Last reply
              0
              • V Vijaykarthikeyan has marked this topic as solved on 18 Jan 2024, 05:42

              2/5

              8 Jan 2024, 06:41

              • Login

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