Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Pi Camera error : no service found for - "org.qt-project.qt.camera"
QtWS25 Last Chance

Pi Camera error : no service found for - "org.qt-project.qt.camera"

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 2 Posters 7.4k 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.
  • X Offline
    X Offline
    xvause
    wrote on last edited by xvause
    #1

    Hi all,

    I'm trying to use a simple camera app find here with my RPi.

    On my computer, the software run perfectly with my webcam.
    On my RPi with a Pi Camera, I get this error :

    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"

    Do you have some idea ?

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

      Hi,

      Are you using the v4l driver for the camera ?

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

        Hi,

        Yes, I followed this guide : http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=14.

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

          Which version of Qt are you running on the Pi ? And how did you install it ?

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

            I followed this guide : http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xvause
              wrote on last edited by
              #6

              No idea ?

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

                Did you check that all libraries and plugins were deployed ?

                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
                • X Offline
                  X Offline
                  xvause
                  wrote on last edited by
                  #8

                  What do you mean ? How can I check this ?

                  I also tried this tutorial, and I can go until step 5.
                  So I suppose that openCv is correctly installed ?

                  Do you know how can I include opencv in my Camera project ?

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

                    Taking a look at the folders create after your called make install

                    OpenCV is not even mentioned in that guide.

                    It depends on what you want to do with OpenCV

                    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
                    • X Offline
                      X Offline
                      xvause
                      wrote on last edited by
                      #10

                      Actually, I want to develop a Qt application that uses my Pi Camera (show the live video, capture pictures).
                      I started with thi project : http://doc.qt.io/qt-5/qtmultimediawidgets-camera-example.html but I can't use the Pi Camera.
                      I just want to recognize my Pi Camera inside this project, but I'm lost !

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

                        IIRC, I've also had problem with that one and had not time to debug it further. However, I've used QtGStreamer to display the camera image as well as stream it.

                        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
                        • X Offline
                          X Offline
                          xvause
                          wrote on last edited by
                          #12

                          How did you use QtGStreamer to display the camera ?
                          Btw, do you have a small simple example ?
                          It would help me a lot...

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

                            I don't have the code at hand but from memory, I was using the v4l2src source and a QGst::Quick::VideoSurface for the video sink

                            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