Changes

Jump to navigation Jump to search
Line 515: Line 515:  
==== 触发模式 ====
 
==== 触发模式 ====
 
=====准备工作=====
 
=====准备工作=====
以MV-MIPI-IMX178M,3088*2064举例:
  −
   
<code>v4l2-ctl --set-ctrl roi_x=0</code>
 
<code>v4l2-ctl --set-ctrl roi_x=0</code>
   Line 523: Line 521:  
<code>v4l2-ctl --set-ctrl low_latency_mode=1</code>
 
<code>v4l2-ctl --set-ctrl low_latency_mode=1</code>
   −
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY</code>
+
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY</code>
 +
 
 +
如为MV-MIPI-IMX178M,3088*2064:
    
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
 
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
Line 536: Line 536:  
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
======开始取图======
 
======开始取图======
 +
 +
* MV-MIPI-IMX178M
 +
 
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
 
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
 +
 +
* MV-MIPI-SC130M
 +
 +
<code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1280x1024.raw</code>
 
======进行软触发操作======
 
======进行软触发操作======
 
在其他的shell终端,可以多次执行下面命令进行多次触发。
 
在其他的shell终端,可以多次执行下面命令进行多次触发。
Line 567: Line 574:  
[[File:ADP-N4 common trigger source.jpg|center|thumb|800x800px|ADP-N4 common trigger source]]
 
[[File:ADP-N4 common trigger source.jpg|center|thumb|800x800px|ADP-N4 common trigger source]]
   −
 
+
如采用独立触发源连接,则直接将 GPIO40接到J7-1---J7-11。
如采用独立触发源连接,则直接将 GPIO40接到J7-1---J7-11。<br />
   
======设置模式======
 
======设置模式======
 
<code>v4l2-ctl --set-ctrl <small>trigger_mode=1</small></code>
 
<code>v4l2-ctl --set-ctrl <small>trigger_mode=1</small></code>
Line 576: Line 582:  
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
======开始取图======
 
======开始取图======
 +
 +
* MV-MIPI-IMX178M
 +
 
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
 
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
 +
 +
* MV-MIPI-SC130M
 +
 +
<code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1280x1024.raw</code>
 
======进行硬触发操作======
 
======进行硬触发操作======
 
<code>python gpio_trigger_jetson.py</code>
 
<code>python gpio_trigger_jetson.py</code>

Navigation menu