Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Continuous Image update using GraphicsView

    General and Desktop
    graphcisview graphics scene image display
    2
    8
    3102
    Loading More Posts
    • 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
      Mammamia last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          Mammamia last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • M
              Mammamia last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • M
                  Mammamia last edited by

                  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 Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    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 Reply Quote 0
                    • First post
                      Last post