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. Best approach to process frames in) a Queue (producer) and consuming from a thread pool ? (consumer
Forum Update on Monday, May 27th 2025

Best approach to process frames in) a Queue (producer) and consuming from a thread pool ? (consumer

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 864 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 receiving the video feeds at almost 100fps and want to process them through a producer/consumer way.

    What is the best way to put the frames a Queue and consumed by the given number of threads?

    There will be a thread that preprocess the frames as received and put them a Queue and there will be the watcher threads that consuming them.

    kshegunovK 1 Reply Last reply
    0
    • A Offline
      A Offline
      abdullahzubair109
      wrote on last edited by
      #2

      does it help??https://doc.qt.io/qt-5/qtconcurrent-index.html

      1 Reply Last reply
      1
      • R RahibeMeryem

        Hi,

        I am receiving the video feeds at almost 100fps and want to process them through a producer/consumer way.

        What is the best way to put the frames a Queue and consumed by the given number of threads?

        There will be a thread that preprocess the frames as received and put them a Queue and there will be the watcher threads that consuming them.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        There's a rather complete example in Qt's documentation.
        https://doc.qt.io/qt-5/qtcore-threads-waitconditions-example.html

        Read and abide by the Qt Code of Conduct

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

          Hi,

          In addition to my fellows suggestions:

          • How many feeds are we talking about ?
          • What are their formats ?
          • What are their size ?
          • Where are they coming from ?
          • What processing do you want to apply ?
          • What version of Qt ?
          • What OS ?

          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
          • R Offline
            R Offline
            RahibeMeryem
            wrote on last edited by
            #5

            @SGaist

            • there is 4 feeds
            • format is h264 rtsp / mp4
            • size is 1080p
            • coming from live camera through Gbit switch
            • detect object (ie : face)
            • Qt 5.12.2
            • Ubuntu 18.04
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What SDK/library are you using to get the data from your camera to your application ?

              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
              • R Offline
                R Offline
                RahibeMeryem
                wrote on last edited by
                #7

                I am using Opencv 3.4 VideoCapture

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

                  Also for all the image processing ?

                  Are you using Qt only for displaying the final result ?

                  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

                  • Login

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