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. Fetch Raspberry PI Camera in Qt Widget Desktop Application with Open CV
QtWS25 Last Chance

Fetch Raspberry PI Camera in Qt Widget Desktop Application with Open CV

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 3 Posters 2.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.
  • N Offline
    N Offline
    Nima Ghorab
    wrote on last edited by
    #1

    Hello guys.
    I want to design an app based on Qt Widget in Windows 10.
    This app should read raspberry pi camera which is connected to the same PC that runs Qt Widget app.
    I also want to use Open CV in Qt Widget on PC for doing some processing stuff on raspberry camera.
    1_Can anyone suggest me what I need to do in Qt Widget app to read raspberry pi camera?
    2_Which cable should I use for the connection between raspberry pi and PC?
    3_Can I read raspberry pi camera with Open CV show it in a Qt Widget app?
    Thank you so much!

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

      Hi,

      Do you mean stream the camera from the Pi over to your PC ?

      What camera is that ?

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you mean stream the camera from the Pi over to your PC ?

        What camera is that ?

        N Offline
        N Offline
        Nima Ghorab
        wrote on last edited by
        #3

        @SGaist I don't know exactly if streaming is the best approach.
        The camera is this:
        https://www.amazon.com/Raspberry-Pi-Camera-Module-Megapixel/dp/B01ER2SKFS
        I want to connect the raspberry pi to a PC (with USB or LAN or ... ) and then fetch its camera data in an Qt Widget app and do some processing stuff on...
        Is streaming a good way for doing this in real time?
        Thank you so much!

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

          Why not have a camera directly connected to you computer ?

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

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            Why not have a camera directly connected to you computer ?

            N Offline
            N Offline
            Nima Ghorab
            wrote on last edited by
            #5

            @SGaist AFAIK webcams have low resolution for our purpose.
            So we decided to use Raspberry pi with its high res camera.
            Also our first development was based on raspberry pi itself and we wrote a program to run on Raspbian.
            But now we need an app on windows so that common people can easily work with.

            mrjjM 1 Reply Last reply
            0
            • N Nima Ghorab

              @SGaist AFAIK webcams have low resolution for our purpose.
              So we decided to use Raspberry pi with its high res camera.
              Also our first development was based on raspberry pi itself and we wrote a program to run on Raspbian.
              But now we need an app on windows so that common people can easily work with.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Nima-Ghorab
              Hi
              Maybe this could be interesting
              https://hackernoon.com/spy-your-pet-with-a-raspberry-pi-camera-server-e71bb74f79ea

              N 1 Reply Last reply
              1
              • mrjjM mrjj

                @Nima-Ghorab
                Hi
                Maybe this could be interesting
                https://hackernoon.com/spy-your-pet-with-a-raspberry-pi-camera-server-e71bb74f79ea

                N Offline
                N Offline
                Nima Ghorab
                wrote on last edited by
                #7

                @mrjj Thank you so much it's very useful.
                How can I get this data with Open CV and show inside Qt widget app?
                Is it streaming ?

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

                  Yes it is. It's explained in that article.

                  As for OpenCV, see this question in their forum.

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

                  N 1 Reply Last reply
                  2
                  • SGaistS SGaist

                    Yes it is. It's explained in that article.

                    As for OpenCV, see this question in their forum.

                    N Offline
                    N Offline
                    Nima Ghorab
                    wrote on last edited by Nima Ghorab
                    #9

                    @SGaist Thank you so much!
                    Just I have one more question.
                    If I want to control raspberry pi camera on my PC Qt widget app. how can I do that?
                    For example I want to modify raspberry pi camera ISO or brightness.
                    Should I write a C++ program on raspberry pi to listen to specific port so that I can send information from PC to it or is there much simpler and cleaner way for doing this?
                    Thank you so much!

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

                      There are several possibilities, the network looks like one of the simpler to implement.

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

                      N 1 Reply Last reply
                      1
                      • SGaistS SGaist

                        There are several possibilities, the network looks like one of the simpler to implement.

                        N Offline
                        N Offline
                        Nima Ghorab
                        wrote on last edited by Nima Ghorab
                        #11

                        @SGaist Thank you so much!
                        So would you suggest me to write a client/server app to control raspberry camera from PC?

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

                          What aspect do you want to control ?

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

                          N 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            What aspect do you want to control ?

                            N Offline
                            N Offline
                            Nima Ghorab
                            wrote on last edited by
                            #13

                            @SGaist Control all aspect of raspberry pi camera including brightness, ISO, resolution, sharpness, contrast, saturation, video stabilization, exposure, shutter speed and etc...

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

                              Since you want to do remote control, then you can implement a REST API for that for example.

                              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
                              1

                              • Login

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