a small program used for Demo to Capture Picture with OrangePi PC2 official CSI Camera.
cairo v4l2
install all the depend package and make sure pkg-config work fine
Just make
in the working directory and a program named demo.run
would be maked for you.
#demo.run [options]
-c|--count=capture count default:4
-d|--device=Path to device default:'/dev/video0'
-w|--width=capture width default:800
-h|--height=capture height default:600
-i|--input=device input channel default:0
-f|--pix_format=fourcc pix format default:'YU12'
#Becare:
Only YUYV,YU12,422P pix format could be write to png file
Argment width,height and pix_foramt could be modified by the camera driver to make it compatible
example:'%s -d /dev/video1 -w 800 -h 600 -p YU12 -c 10'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。