Congratulations to our 2022 Qt Champions!

what is the suggestions for Sending frames to multiple threads and keep their order to properly show on the screen



  • Hi,

    I am using OpenCv to capture frames from live vide and making object detection on each frame in a separate thread. Putting necessary overlays and sending to the Gui thread for showing on the screen.

    I want make a multithreaded frame worker, which means I want to send 3 frames to three different thread , waiting their result and send to the gui for display.

    How I can keep the order for frames ? some frames took more time to finish so resulting overlayed video should be the same order .

    What would be the sugeeston ?

    thanks


  • Lifetime Qt Champion

    @RahibeMeryem You could have an increasing id for each frame and use this id to know the order.


Log in to reply