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. How to use the webcam
Forum Update on Monday, May 27th 2025

How to use the webcam

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qcamera
4 Posts 2 Posters 579 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.
  • C Offline
    C Offline
    ChiaoHuang
    wrote on 4 Jan 2021, 13:25 last edited by
    #1

    Hi everyone.

    I'd like to use the webcam on my embedded board, so I found the QT example like this https://github.com/hajilisamir/webCam.

    I am sure my webcam work my embedded board because I run "gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! waylandsink" command and I can see the results of webcam.

    The QT app can work on my ubuntu, but it doesn't work my my embedded.
    In my embedded board, it just show black frame.

    Do you have any ideas?
    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jan 2021, 19:50 last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt are you using ?
      How did you install it ?
      On which distribution ?

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

      C 1 Reply Last reply 5 Jan 2021, 02:07
      0
      • S SGaist
        4 Jan 2021, 19:50

        Hi and welcome to devnet,

        Which version of Qt are you using ?
        How did you install it ?
        On which distribution ?

        C Offline
        C Offline
        ChiaoHuang
        wrote on 5 Jan 2021, 02:07 last edited by
        #3

        @SGaist
        Hi SGaist,

        Thank you.
        I'm using Qt version 5.6.3.
        I have a SDK and it can build QT application.
        How to create the SDK. I refer https://embeddeduse.com/2020/06/19/qt-embedded-systems-2-build-qt-sdk-with-yocto/

        I tried it on my board, but I got
        alt text

        When I execute this example QT application, I can see my webcam. it works.
        alt text

        Thanks

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 5 Jan 2021, 07:36 last edited by
          #4

          I might be wrong but I think 5.6.3 was still using gstreamer 0.1.

          Note that this version is really outdated, can you update to a more recent LTS version ? Current is 5.15.

          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

          4/4

          5 Jan 2021, 07:36

          • Login

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