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 Qthreads and the opencv frame processing sequentially

Advise for Qthreads and the opencv frame processing sequentially

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 624 Views 1 Watching
  • 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.
  • BeatrixB Offline
    BeatrixB Offline
    Beatrix
    wrote on last edited by
    #1

    Hi,

    I have an object detector thread (created with move thread) and looks slow to catch up current fps from camera.

    I want to separate stream capture (cv::cap) 1 thread and it will distribute the task (object detection) to the other threads (6 threads).

    1 thread -> UI
    1 thread for stream capture and sending the frames to the worker threads
    6 threads for object detection and send back to results to the capture thread .

    But I dont want to lose frame sequence. I mean I wan to show results in the screen as normal frame sequence. If som thread sends the processed frame before the previous frame it should wait its ques to show.

    Basicly:
    send frame numbers : 1 ,2 , 3 ,4 ,5

    get result and show them as soon as awailable in same sequence 1 , 2 , 3 ,4

    suggestions :)

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

      Hi,

      Based on your other thread: big GPU + stronger machine. 6 streams with high definition images can't be processed in real time if you don't have the hardware that follows.

      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
      0
      • BeatrixB Offline
        BeatrixB Offline
        Beatrix
        wrote on last edited by
        #3

        This is another issue. Other thread for 6 live stream just showing on the screen through opencv.

        This one only one stream an 8 cores i7 machine.

        I wan to utilize all possible cores for object detection which send them individual frames and get back to show on the screen.

        How can I show them again in right sequence

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

          My recommendation still stands: you should consider exploiting a GPU to speed up processing of your images rather than parallelising on your CPUs.

          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
          0
          • BeatrixB Offline
            BeatrixB Offline
            Beatrix
            wrote on last edited by
            #5

            try to keep budget down..
            1080ti almost 800 usd..

            if I have 8 cores I should used it.

            1 Reply Last reply
            0

            • Login

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