Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Mobile and Embedded
    qt4.8 v4l2 colored image
    3
    4
    2095
    Loading More Posts
    • 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
      Anas_Deshmukh last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • A
          Anas_Deshmukh last edited by

          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 Reply Quote 0
          • V
            vishnukumarmdu last edited by

            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 Reply Quote 0
            • First post
              Last post