Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
V4L2 mode for Raspberry Pi/zh
(view source)
Revision as of 09:50, 30 December 2020
1,341 bytes added
,
09:50, 30 December 2020
→概述
Line 4:
Line 4:
=== 概述 ===
=== 概述 ===
−
针对VEYE系列和CS系列摄像头模组在树莓派平台的使用方式,我们提供了类似raspicam模式的应用层开源软件——'''[https://github.com/veyeimaging/raspberrypi veye_raspicam]软件'''。该系列软件,无需驱动支持,对piOS不同版本的兼容性好。但是,我们认为'''V4L2驱动模式'''
,也有比较广泛的应用场合。
+
针对VEYE系列和CS系列摄像头模组在树莓派平台的使用方式,我们提供了类似raspicam模式的应用层开源软件——'''[https://github.com/veyeimaging/raspberrypi veye_raspicam]软件'''。该系列软件,无需驱动支持,对piOS不同版本的兼容性好。但是,我们认为'''V4L2驱动模式'''
,也有比较广泛的应用场合。两种模式不能同时使用,具体体现在驱动是否安装上。后文会有详细描述。
本文描述怎样在树莓派平台,通过V4L2方式调用VEYE系列和CS系列的摄像头模组。
本文描述怎样在树莓派平台,通过V4L2方式调用VEYE系列和CS系列的摄像头模组。
=== 硬件准备及安装 ===
=== 硬件准备及安装 ===
+
[[VEYE MIPI 290/327 for Raspberry Pi/zh#.E7.A1.AC.E4.BB.B6.E5.87.86.E5.A4.87.E5.8F.8A.E5.AE.89.E8.A3.85|VEYE系列的硬件准备及安装]]
+
+
[[CS-MIPI-X for Raspberry Pi/zh#.E7.A1.AC.E4.BB.B6.E5.87.86.E5.A4.87.E5.8F.8A.E5.AE.89.E8.A3.85|CS系列的硬件准备及安装]]
=== 树莓派系统配置 ===
=== 树莓派系统配置 ===
+
[[CS-MIPI-X for Raspberry Pi/zh#.E6.A0.91.E8.8E.93.E6.B4.BE.E7.B3.BB.E7.BB.9F.E5.AE.89.E8.A3.85.E5.8F.8A.E9.85.8D.E7.BD.AE|树莓派系统配置]]
=== 驱动安装 ===
=== 驱动安装 ===
−
+
<br />
=== 摄像头状态验证 ===
=== 摄像头状态验证 ===
+
<br />
+
=== Gstreamer应用范例 ===
+
<code>export DISPLAY=:0</code>
−
===
Gstreamer应用范例
===
+
* 抓拍一张图片 <code>gst-launch-1.0 v4l2src num-buffers
=
1 device
=
/dev/video0 ! 'video/x-raw, format
=
(string)UYVY, width
=
1920,height
=
1080' ! jpegenc ! filesink location
=
test_image.jpg</code>
+
* 视频预览 <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoconvert ! autovideosink sync=false -v</code>
+
* 帧率测试 <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoconvert ! fpsdisplaysink video-sink=fakesink -v</code>
=== 参数控制软件包使用 ===
=== 参数控制软件包使用 ===
+
<br />
+
=== 源代码编译方法 ===
+
<br />
+
+
=== 参考资料 ===
+
+
* 树莓派的piOS编译方案:
−
=== 源代码编译方法 ===
+
https://www.raspberrypi.org/documentation/linux/kernel/building.md<nowiki/>。
Xumm
Administrators
2,054
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Links
VEYE IMAGING Website
VEYE IMAGING WIKI
VEYE IMAGING Github
VEYE IMAGING Forum
Offical Store
TAOBAO(淘宝网店)
AliExpress Shop
Amazon US. Shop
Amazon Canda Shop
WIKI Main Page
Main Page
Support
Support
Tools
Special pages
Printable version