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. unable to get colored image using v4l2 and qt+qml onClicked
QtWS25 Last Chance

unable to get colored image using v4l2 and qt+qml onClicked

Scheduled Pinned Locked Moved Mobile and Embedded
qt4.8v4l2colored image
4 Posts 3 Posters 2.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.
  • A Offline
    A Offline
    Anas_Deshmukh
    wrote on last edited by
    #1

    hi everyone first of all i am very new to Qt and using Qt-Quick Application on Qt-4.8.5 for my 32 bit IMX6-arm7 target and building on 64bit ubuntu12.04.
    i want to generate onClicked event to capture camera image using v4l2 api. I am following the referance from this link text and link text but somwhat unable to get colored image as per expected, the output is combination of black and green color. I will feel really glad if u help me to get rid of this issue.

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

      Hi and welcome to devnet,

      Did you run the v4l2 sample code successfully ?

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

        thankx for ur reply,

        yes i did try sample code from this link text.
        but the output was just stream of dots

        [root@imx6q 3nov]# ./test1 -h
        Usage: ./test1 [options]

        Version 1.3
        Options:
        -d | --device name Video device name [/dev/video0]
        -h | --help Print this message
        -m | --mmap Use memory mapped buffers [default]
        -r | --read Use read() calls
        -u | --userp Use application allocated buffers
        -o | --output Outputs stream to stdout
        -f | --format Force format to 640x480 YUYV
        -c | --count Number of frames to grab [70]

        [root@imx6q 3nov]# ./test1 -d /dev/video0
        YUYV
        ......................................................................
        [root@imx6q 3nov]#

        [root@imx6q 3nov]# ./test1 -r
        imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
        .imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
        .imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
        .imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
        .imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
        .imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001

        [root@imx6q 3nov]# ./test1 -o test.jpg
        YUYV
        �������������������������������������������������������������������������������������������������������������������������������������������������������������������

        [root@imx6q 3nov]# ./test1 -o test.bmp
        YUYV
        �������������������������������������������������������������������������������������������������������������������������������������������������������������������

        some kind of unsupported data. not getting what i am doin wrong.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vishnukumarmdu
          wrote on last edited by
          #4

          There already a camera application(qtcam) integrated qtquick and v4l2, please try clone the source from the below link,
          https://github.com/econsysqtcam/qtcam.git
          Application available in launchpad also for ubuntu 12.04 & 14.04

          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