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. Raspberry pi Camera V2 using Qt
QtWS25 Last Chance

Raspberry pi Camera V2 using Qt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 4.9k 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.
  • P Offline
    P Offline
    pVit
    wrote on last edited by
    #1

    Hello,
    I have already read a lot of topics about this but I still don't have solution so I'm asking here.

    What is the easiest way to use Raspberry Pi camera V2 in Qt Creator on RPi?
    I read about raspicam, but I don't know how to use. I downloaded source code from git but It needs a lot of added Android headers to download and they are useless for me, because I work on RPi. After downloading all headers it shows a lot of errors.
    Class QCamera is not working here.

    One way I know is write easy python codes and call them from Qt but I'm not fan of counts of QProcess.

    Do you have any idea?
    At all, I need to do:

    • capture picture
    • capture video
    • stream video

    Thanks for your help

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

      Hi,

      AFAIK, QtGstreamer is your best bet of these actives.

      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
      • Y Offline
        Y Offline
        Yurii Chernyshov
        wrote on last edited by
        #3

        Based on https://wiki.qt.io/RaspberryPi2EGLFS#Qt_Multimedia
        Unfortunately the GStreamer-based multimedia stuff is not quite usable at the time of writing - accelerated video works only sometimes (and with glitches), while the camera is just broken.
        I am a bit upset because of this and trying to find different way to get Camera stream on raspberry pi.
        Here is nice source:
        http://robotblogging.blogspot.ca/2013/10/an-efficient-and-simple-c-api-for.html
        but it is impossible to have it cross-compiled because this library depends on raspberry pi specific packages. However, it runs fine when building and compiling on raspberry pi board directly.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LuGRU
          wrote on last edited by
          #4

          Use libVlc.
          It will allow to capture web cam and store / view / stream camera feed (actually it will allow to access any video / audio file on device including web cam).

          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