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. Advise for image exchange between Qt c++ and PyQt for displaying results
Forum Update on Monday, May 27th 2025

Advise for image exchange between Qt c++ and PyQt for displaying results

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 591 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.
  • R Offline
    R Offline
    RahibeMeryem
    wrote on last edited by
    #1

    Hi,

    I am processing the images in the PyQt python code and and want to send this QImage to the Qt C++ app running on the same computer.

    I try to exchange data with mqtt which is quite succesfull but looks slow for big images.

    I want to play result like a video on the Qt C++ app .

    What could be your suggestion ? sockets ?

    any samples very appreciated (python PyQt >>>Qt C++ )

    best

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

      Hi,

      What processing are you doing exactly ?

      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
      1
      • R RahibeMeryem

        Hi,

        I am processing the images in the PyQt python code and and want to send this QImage to the Qt C++ app running on the same computer.

        I try to exchange data with mqtt which is quite succesfull but looks slow for big images.

        I want to play result like a video on the Qt C++ app .

        What could be your suggestion ? sockets ?

        any samples very appreciated (python PyQt >>>Qt C++ )

        best

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @rahibemeryem
        Always answer @SGaist's questions first, as he is The Expert! :)

        After that, why are using both PyQt and Qt C++? Are these in separate processes, is something already written in each of them? You may have good reasons, but one's first inclination is why have two different languages if you could write your stuff all in one, and possibly all in one program if that is suitable?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RahibeMeryem
          wrote on last edited by
          #4

          @SGaist I am processing the video feed mostly. detecting object and make annotation on the frame. I want to send this frame(image) to the Qt c++ app. Detection and processing done by python PyQt side.

          Best

          jsulmJ 1 Reply Last reply
          0
          • R Offline
            R Offline
            RahibeMeryem
            wrote on last edited by
            #5

            @JonB we have no chance to make them all in one at the moment.

            1 Reply Last reply
            0
            • R RahibeMeryem

              @SGaist I am processing the video feed mostly. detecting object and make annotation on the frame. I want to send this frame(image) to the Qt c++ app. Detection and processing done by python PyQt side.

              Best

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @rahibemeryem You could send annotations without actual frames instead of sending frames with annotations. The C++ app can read the video feed by itself an put the annotations on top of it. This way you would exchange less data between both apps.

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

              1 Reply Last reply
              2

              • Login

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