Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Is there a way to convert a pylonImage to a QVideoFrame in Qt6.2?

Is there a way to convert a pylonImage to a QVideoFrame in Qt6.2?

Scheduled Pinned Locked Moved Unsolved Qt 6
8 Posts 2 Posters 1.0k 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.
  • U Offline
    U Offline
    UbiMiles
    wrote on last edited by
    #1

    Hi, I'm working on a QML app with pylon's SDK, and I am having some performance issues with displaying pylon Images , due to a lot of conversions
    I am capturing pylon Images , converting them to QImages, then converting the pixel format of the QImage to one that is compatible with a video frame, and then using memcpy to convert the QImage to a QVideoFrame, is there a way for me to convert the pylon image to a QVideoFrame directly ?

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

      Hi,

      What is the format of the image you get ?
      Depending on that, you could possibly copy it directly in your QVideoFrame.

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

      U 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        What is the format of the image you get ?
        Depending on that, you could possibly copy it directly in your QVideoFrame.

        U Offline
        U Offline
        UbiMiles
        wrote on last edited by
        #3

        @SGaist
        RGB888
        however my images are grayscale so I can change it if needed
        I tried YUV422 planar and memcpy-ing it directly to a QVideoFrame and that did not work out to well sadly.

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

          Do you mean grayscale stored in RGB888 ?

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

          U 1 Reply Last reply
          1
          • SGaistS SGaist

            Do you mean grayscale stored in RGB888 ?

            U Offline
            U Offline
            UbiMiles
            wrote on last edited by
            #5

            @SGaist
            exactly, indeed

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

              Why not use one of the QImage grayscale format ?

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

              U 1 Reply Last reply
              0
              • SGaistS SGaist

                Why not use one of the QImage grayscale format ?

                U Offline
                U Offline
                UbiMiles
                wrote on last edited by
                #7

                @SGaist
                same issue , I can't seem to convert Pylon mono formats to QImages , and I'm receiving images from external hardware via the SDK so cannot receive QImages directly

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

                  What about QImage::Format_Indexed8 ?

                  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