Line 276:
Line 276:
===== Set ROI =====
===== Set ROI =====
−
Take MV-MIPI-IMX178M, 3088*2064 as an example.
+
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=$WIDTH,height=$HEIGHT</code>
−
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=3088,height=2064</code>
+
===== Set Framerate =====
+
<code>v4l2-ctl --set-ctrl frame_rate=$FPS</code>
===== Frame rate statistics =====
===== Frame rate statistics =====
In streaming mode, the following commands can be used for frame rate statistics.
In streaming mode, the following commands can be used for frame rate statistics.
−
<code>v4l2-ctl --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code>
+
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code>
===== Save image to file =====
===== Save image to file =====
Line 298:
Line 299:
==== Trigger mode ====
==== Trigger mode ====
−
===== Set ROI =====
+
===== Set ROI and Framerate =====
−
Take MV-MIPI-IMX178M, 3088*2064 as an example.
+
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=$WIDTH,height=$HEIGHT</code>
−
−
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=3088,height=2064</code>
+
<code>v4l2-ctl --set-ctrl frame_rate=$FPS</code>
===== Software trigger mode =====
===== Software trigger mode =====