Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Mv series camera appnotes 4 rpi/zh
(view source)
Revision as of 11:48, 1 January 2024
160 bytes added
,
1 January
→设置ROI
Line 391:
Line 391:
设置roi后,最大帧率会自动调整。
设置roi后,最大帧率会自动调整。
+
+
注:此方法不适用于树莓派5。
* 方法2,使用自定义roi_x,roi_y配合<code>--set-fmt-video</code>
* 方法2,使用自定义roi_x,roi_y配合<code>--set-fmt-video</code>
Line 402:
Line 404:
===== 设置ROI =====
===== 设置ROI =====
−
<code>v4l2-ctl --set-
selection
=
target=crop,top
=0
,left
=
0,
width=$WIDTH,height=$HEIGHT</code>
+
<code>v4l2-ctl --set-
ctrl roi_x
=
0</code>
+
+
<code>v4l2-ctl --set-ctrl roi_y
=0
</code>
+
+
<code>v4l2-ctl --set-fmt-video
=width=$WIDTH,height=$HEIGHT</code>
===== 设置帧率 =====
===== 设置帧率 =====
Line 593:
Line 599:
===== 设置ROI和帧率 =====
===== 设置ROI和帧率 =====
−
<code>v4l2-ctl --set-
selection
=
target=crop,top
=0
,left
=
0,
width=$WIDTH,height=$HEIGHT</code>
+
<code>v4l2-ctl --set-
ctrl roi_x
=
0</code>
+
+
<code>v4l2-ctl --set-ctrl roi_y
=0
</code>
+
+
<code>v4l2-ctl --set-fmt-video
=width=$WIDTH,height=$HEIGHT</code>
<code>v4l2-ctl --set-ctrl frame_rate=$FPS</code>
<code>v4l2-ctl --set-ctrl frame_rate=$FPS</code>
Xumm
Administrators
2,021
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