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. Continuous Image update using GraphicsView
QtWS25 Last Chance

Continuous Image update using GraphicsView

Scheduled Pinned Locked Moved Unsolved General and Desktop
graphcisviewgraphics sceneimage display
8 Posts 2 Posters 3.8k 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.
  • M Offline
    M Offline
    Mammamia
    wrote on last edited by
    #1

    I am working on an Image processing application which is written using QWidget and now we are planning to upgrade it using Graphics View Framework.

    How it is possible to update images continuously while receiving it from a connected camera to the Graphics Scene?

    I have seen that we can use below code to show image on scene.

    QGraphicsPixmapItem *pixItem= scene.addPixmap(image);
    

    I need to consider two scenarios

    1. Display Image is captured on request by user.
    2. Display Continuous image captured by camera.

    Can anyone suggest what will be the best approach to implement this use-case using GraphicsView framework.

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

      Hi,

      Looks like you are looking for QGraphicsVideoItem

      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
      • M Offline
        M Offline
        Mammamia
        wrote on last edited by
        #3

        Thanks for the reply.
        QGraphicsVideoItem will not suit for my application.

        Since it is an image processing application I need to get images from the camera. It can be coming in any speed. As I mentioned in my comment the user can click button "Capture" then camera will capture new image and send it to my application and it should display it.

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

          That part is described here. It doesn't have to do with the preview itself but how you control your camera object.

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

            The camera which I have mentioned is actually is a Vision Sensor which is connected via ethernet. I dont think it is possible to use Camera module for this sensor in my application.
            The image which are captured by this vision sensor is transferred to my application using TCP/IP/.
            My actual concern is how efficiently I can display images in Graphics View using QGraphicsPixmapItem or other way.

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

              Then indeed, it won't be supported out of the box but that's not really problem.

              What is your video stream format ? Image size ? Frame rate ?

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

                Its not actually a video stream. The images are acquired on request. The image format we use is QImage::Format_Indexed8.
                We support multiple resolutions from QQVGA to SXGA

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

                  At which speed to you plan to request them ?

                  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