Unsolved Advise for image exchange between Qt c++ and PyQt for displaying results
-
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
-
Hi,
What processing are you doing exactly ?
-
@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?
-
@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
-
@JonB we have no chance to make them all in one at the moment.
-
@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.