unable to get colored image using v4l2 and qt+qml onClicked
-
wrote on 2 Nov 2015, 13:19 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. -
Hi and welcome to devnet,
Did you run the v4l2 sample code successfully ?
-
wrote on 3 Nov 2015, 06:47 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.
-
wrote on 3 Nov 2015, 06:52 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/4