Changes

Jump to navigation Jump to search
Line 244: Line 244:  
<code>v4l2-ctl -L</code>
 
<code>v4l2-ctl -L</code>
   −
<code><small>User Controls</small></code>
+
<code>User Controls</code>
   −
<code><small>                horizontal_flip 0x00980914 (bool)   : default=0 value=0</small></code>
+
<code>                   trigger_mode 0x00981901 (int)    : min=0 max=2 step=1 default=0 value=0 flags=volatile, execute-on-write</code>
   −
<code><small>                  vertical_flip 0x00980915 (bool)   : default=0 value=0</small></code>
+
<code>                    trigger_src 0x00981902 (int)    : min=0 max=1 step=1 default=1 value=1 flags=volatile, execute-on-write</code>
   −
<code><small>                   trigger_mode 0x00981901 (int)    : min=0 max=2 step=1 default=0 value=0 flags=volatile</small></code>
+
<code>                    soft_trgone 0x00981903 (button) : flags=write-only, execute-on-write</code>
   −
<code><small>                    trigger_src 0x00981902 (int)    : min=0 max=1 step=1 default=1 value=1 flags=volatile</small></code>
+
<code>                     frame_rate 0x00981904 (int)    : min=1 max=60 step=1 default=30 value=30 flags=volatile, execute-on-write</code>
   −
<code><small>                    soft_trgone 0x00981903 (button) : flags=write-only, execute-on-write</small></code>
+
<code>                          roi_x 0x00981905 (int)    : min=0 max=1376 step=8 default=0 value=0</code>
   −
<code><small>                     frame_rate 0x00981904 (int)    : min=0 max=22 step=1 default=22 value=22 flags=volatile</small></code>
+
<code>                          roi_y 0x00981906 (int)    : min=0 max=1024 step=4 default=0 value=0</code>
    
*  
 
*  
Line 269: Line 269:     
需要指出的是,以上参数在开始取图的状态均不可修改。下面进行逐个说明:
 
需要指出的是,以上参数在开始取图的状态均不可修改。下面进行逐个说明:
  −
====== 配置翻转 ======
  −
  −
* 水平翻转
  −
  −
<code>v4l2-ctl --set-ctrl horizontal_flip=1</code>
  −
  −
* 垂直翻转
  −
  −
<code>v4l2-ctl --set-ctrl <small>vertical_flip</small>=1</code>
      
====== 配置触发模式 ======
 
====== 配置触发模式 ======
Line 305: Line 295:     
====== 设置ROI ======
 
====== 设置ROI ======
举例:
     −
* 对于MV-MIPI-IMX178M
+
* 方法1,使用selection
 +
 
 +
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=$WIDTH,height=$HEIGHT</code>
   −
<code>v4l2-ctl --set-selection=target=crop,top=32,left=64,width=2592,height=1944</code>
+
设置roi后,最大帧率会自动调整。
   −
* 对于MV-MIPI-SC130M
+
* 方法2,使用自定义roi_x,roi_y配合<code>--set-fmt-video</code>
   −
<code>v4l2-ctl --set-selection=target=crop,top=32,left=64,width=640,height=640</code>
+
<code>v4l2-ctl --set-ctrl roi_x=0</code>
   −
设置roi后,最大帧率会自动调整。
+
<code>v4l2-ctl --set-ctrl roi_y=0</code>
    +
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT</code>
 
==== 流模式 ====
 
==== 流模式 ====
  

Navigation menu