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. Getting data from a video stream for building graphs
Forum Updated to NodeBB v4.3 + New Features

Getting data from a video stream for building graphs

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 268 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.
  • M Offline
    M Offline
    makopo
    wrote on 31 Oct 2021, 17:52 last edited by
    #1

    Hello,

    my idea is to write an application that analyze as one segment the brightness and the color values of a videostream. With that values I want to build graphs like a rgb-parade and an histogram. In the last hours I had learned about the functionality of QVideoFrame, QImage, QAbstractVideoBuffer, QColor, QCustomPlot and some more.
    I wrote a short working Qt test program that read the pixel data of an single image with QImage. Now my idea is to convert the videostream I got from the capture card to an QImage and with this image I analyze the data and build the graphs.
    It's my first project on this subject, so I prefer to ask if the described way is a useful solution? Or is it better to use OpenCV or something else for this?

    Kind regards

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 31 Oct 2021, 19:32 last edited by
      #2

      Hi,

      Things to take into account:

      • stream format and color space
      • stream bit rate
      • stream image size

      These will heavily influence the power you will need to do your math.

      You should consider using OpenGL to speed things up.

      You should also not do everything within a single pipeline because you are going to kill your performance and also if you don't show the RGB parade it makes no sense to do the processing for them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 1 Nov 2021, 15:47
      0
      • S SGaist
        31 Oct 2021, 19:32

        Hi,

        Things to take into account:

        • stream format and color space
        • stream bit rate
        • stream image size

        These will heavily influence the power you will need to do your math.

        You should consider using OpenGL to speed things up.

        You should also not do everything within a single pipeline because you are going to kill your performance and also if you don't show the RGB parade it makes no sense to do the processing for them.

        M Offline
        M Offline
        makopo
        wrote on 1 Nov 2021, 15:47 last edited by
        #3

        Hi @SGaist,

        thanks for your advice. If I understand you right, its better to write the Pixeldata from the video into an OpenGL Framebuffer?
        And then build the graph with Qt supported OpenGL?

        Kind regards.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 1 Nov 2021, 19:42 last edited by
          #4

          It depends on the performance you are after but I would say it's likely the better approach.

          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

          1/4

          31 Oct 2021, 17:52

          • Login

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