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. what is the suggestions for Sending frames to multiple threads and keep their order to properly show on the screen
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 299 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 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

    jsulmJ 1 Reply Last reply
    0
    • R RahibeMeryem

      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

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

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

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

      1 Reply Last reply
      1

      • Login

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