Changes

Jump to navigation Jump to search
Line 771: Line 771:  
===== Save image to file =====
 
===== Save image to file =====
   −
====== MV-MIPI-IMX178M ======
+
====== Typically ======
 +
Where WIDTH should be a multiple of 256.
    
*raw8
 
*raw8
   −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to="y8-${WIDTH}x${HEIGHT}.raw"</code>
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-3136x2064.raw</code>
+
or
   −
* raw10
+
<code>./yavta -c1 -F"y8-${WIDTH}x${HEIGHT}.raw" --skip 0 -f Y8 -s "${WIDTH}x${HEIGHT}" /dev/video0</code>
 
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-3104x2064.raw</code>
  −
 
  −
*raw12
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-3104x2064.raw</code>
  −
 
  −
====== MV-MIPI-SC130M ======
  −
Since the width 1280 of SC130 is an integer multiple of 64 and 256, there is no need to set the preferred_stride.
  −
 
  −
*raw8
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1280x1024.raw</code>
      
*raw10
 
*raw10
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=1024,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1280x1024.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat='Y10 ' --stream-mmap --stream-count=1 --stream-to=y10-$WIDTHx$HEIGHT.raw</code>
   −
====== MV-MIPI-IMX296M ======
+
* raw12
   −
*raw8
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat='Y12 ' --stream-mmap --stream-count=1 --stream-to=y12-$WIDTHx$HEIGHT.raw</code>
 
+
====== MV-MIPI-IMX178M ======
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=1472</code>
  −
 
  −
<code>v4l2-ctl --set-fmt-video=width=1440,height=1088,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1472x1088.raw</code>
  −
 
  −
*raw10
  −
 
  −
<code>v4l2-ctl --set-fmt-video=width=1440,height=1088,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1440x1088.raw</code>
  −
======MV-MIPI-IMX265M======
      
*raw8
 
*raw8
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2048,height=1544,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-2048x1544.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
   −
*raw10
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-3136x2064.raw</code>
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2048,height=1544,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-2048x1544.raw</code>
+
* raw10
   −
*raw12
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2048,height=1544,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-2048x1544.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-3104x2064.raw</code>
======MV-MIPI-IMX264M======
  −
 
  −
*raw8
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2056,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-2432x2056.raw</code>
  −
 
  −
*raw10
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2056,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-2432x2056.raw</code>
      
*raw12
 
*raw12
   −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2056,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-2432x2056.raw</code>
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
======RAW-MIPI-SC132M======
     −
*raw8
+
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=3088,height=2064,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-3104x2064.raw</code>
 
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=1088</code>
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1080,height=1280,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1088x1280.raw</code>
  −
 
  −
*raw10
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1080,height=1280,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1080x1280.raw</code>
  −
======MV-MIPI-IMX287M======
  −
 
  −
*raw8
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=704,height=544,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-704x544.raw</code>
  −
 
  −
*raw10
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=704,height=544,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-704x544.raw</code>
  −
 
  −
*raw12
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=704,height=544,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-704x544.raw</code>
  −
======RAW-MIPI-AR0234M======
  −
 
  −
*raw8
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1200,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-1920x1200.raw</code>
  −
 
  −
*raw10
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1200,pixelformat=XY10  --stream-mmap --stream-count=1 --stream-to=y10-1920x1200.raw</code>
  −
======RAW-MIPI-IMX462M======
  −
 
  −
* raw10
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1088,pixelformat=XY10 --stream-mmap --stream-count=1 --stream-to=y10-1920x1088.raw</code>
  −
 
  −
*raw12
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1088,pixelformat=XY12 --stream-mmap --stream-count=1 --stream-to=y12-1920x1088.raw</code>
  −
 
  −
For the image format, please refer to the section above: Description of raw data image format.
  −
======RAW-MIPI-SC535M======
  −
 
  −
*raw8
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2048,pixelformat=GREY --stream-mmap --stream-count=1 --stream-to=y8-2432x2048.raw</code>
   
=====Preview=====
 
=====Preview=====
 
For cameras that support the GREY format, you can use qv4l2 or VLC for video preview.
 
For cameras that support the GREY format, you can use qv4l2 or VLC for video preview.
Line 917: Line 837:       −
[[File:Mvcam via VLC.png|center|thumb|800x800px|Play mv camera using VLC|link=http://wiki.veye.cc/index.php/File:Mvcam_via_VLC.png]]
+
[[File:Mvcam via VLC.png|center|thumb|800x800px|Play mv camera using VLC|link=http://wiki.veye.cc/index.php/File:Mvcam_via_VLC.png]]<br />
====== Preview UYVY format images using gstreamer ======
  −
'''Note''': To increase the maximum frame rate and bandwidth, some modules no longer support the UYVY format. Please use the "fmtcap" command in the script to read the registers to confirm the specific configuration.
  −
 
  −
The camera can be previewed in real time using the following command:
  −
 
  −
<code>export DISPLAY=:0</code>
  −
 
  −
* MV-MIPI-IMX178M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2816,height=2064,pixelformat=UYVY</code>
  −
 
  −
<code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)2816, height=(int)2064, framerate=(fraction)22/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code>
  −
 
  −
The maximum width supported by UYVY mode is 2880.
  −
 
  −
* MV-MIPI-SC130M, MV-MIPI-IMX296M,  MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=UYVY</code>
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl frame_rate=$FPS</code>
  −
 
  −
<code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)$WIDTH, height=(int)$HEIGHT, framerate=(fraction)$FPS/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false</code>
      
====== Preview GREY format images using opencv ======
 
====== Preview GREY format images using opencv ======
Line 977: Line 875:  
======Start acquisition======
 
======Start acquisition======
   −
* MV-MIPI-IMX178M
+
* Typically
   −
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
+
Where WIDTH should be a multiple of 256.
   −
* MV-MIPI-SC130M
+
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to="y8-${WIDTH}x${HEIGHT}.raw"</code>
   −
<code>v4l2-ctl --set-fmt-video=width=1280,height=1024,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1280x1024.raw</code>
+
* MV-MIPI-IMX178M
   −
*MV-MIPI-IMX296M
+
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-3104x2064.raw</code>
 
  −
<code>v4l2-ctl --set-fmt-video=width=1440,height=1088,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1472x1088.raw</code>
  −
 
  −
*MV-MIPI-IMX265M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2048,height=1544,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-2048x1544.raw</code>
  −
 
  −
*MV-MIPI-IMX264M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2048,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-2432x2048.raw</code>
  −
 
  −
*RAW-MIPI-SC132M
  −
 
  −
<code>v4l2-ctl --set-fmt-video=width=1080,height=1280,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1080x1280.raw</code>
  −
 
  −
*MV-MIPI-IMX287M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=704,height=544,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-704x544.raw</code>
  −
 
  −
*RAW-MIPI-AR0234M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1200,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-1920x1200.raw</code>
  −
 
  −
*RAW-MIPI-IMX462M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1088,pixelformat=XY10 --stream-mmap --stream-count=-1 --stream-to=y8-1920x1088.raw</code>
  −
 
  −
* RAW-MIPI-SC535M
  −
 
  −
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2048,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=y8-2432x2048.raw</code>
   
====== Perform soft trigger operation ======
 
====== Perform soft trigger operation ======
 
In other shell terminals, you can execute the following command multiple times for multiple triggers.
 
In other shell terminals, you can execute the following command multiple times for multiple triggers.
Line 1,053: Line 921:  
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
<code>v4l2-ctl --set-ctrl vi_time_out_disable=1</code>
 
======Start acquisition======
 
======Start acquisition======
 +
 +
*Typically 
 +
 +
Where WIDTH should be a multiple of 256.
 +
 +
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to="y8-${WIDTH}x${HEIGHT}.raw"</code>
    
* MV-MIPI-IMX178M
 
* 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>
      
====== Perform hardware trigger operation ======
 
====== Perform hardware trigger operation ======
Line 1,091: Line 961:  
<code>v4l2-ctl --set-ctrl roi_y=0</code>
 
<code>v4l2-ctl --set-ctrl roi_y=0</code>
 
=====Save image to file=====
 
=====Save image to file=====
======MV-MIPI-IMX178M======
  −
  −
*raw8
  −
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
  −
  −
<code>./yavta -c1 -Fy8-3136x2064.raw --skip 0 -f Y8 -s 3088x2064 /dev/video0</code>
  −
  −
*raw10
  −
  −
Take XAVIER as example.
  −
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
  −
  −
<code>./yavta -c1 -Fy10-3104x2064.raw --skip 0 -f XY10 -s 3088x2064 /dev/video0</code>
  −
  −
*raw12
  −
  −
Take XAVIER as example.
  −
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
  −
  −
<code>./yavta -c1 -Fy12-3104x2064.raw --skip 0 -f XY12 -s 3088x2064 /dev/video0</code>
  −
======MV-MIPI-SC130M======
  −
  −
*raw8
  −
  −
<code>./yavta -c1 -Fy8-1280x1024.raw --skip 0 -f Y8 -s 1280x1024 /dev/video0</code>
  −
  −
*raw10
  −
  −
Take XAVIER as example.
  −
  −
<code>./yavta -c1 -Fy10-1280x1024.raw --skip 0 -f XY10 -s 1280x1024 /dev/video0</code>
  −
======MV-MIPI-IMX296M======
  −
  −
*raw8
  −
  −
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=1472</code>
  −
  −
<code>./yavta -c1 -Fy8-1472x1024.raw --skip 0 -f Y8 -s 1440x1088 /dev/video0</code>
  −
  −
*raw10
  −
  −
Take XAVIER as example.
     −
<code>./yavta -c1 -Fy10-1440x1024.raw --skip 0 -f XY10 -s 1440x1088 /dev/video0</code>
+
====== Typically     ======
 
+
Where WIDTH should be a multiple of 256.
======MV-MIPI-IMX265M======
      
*raw8
 
*raw8
   −
<code>./yavta -c1 -Fy8-2048x1544.raw --skip 0 -f Y8 -s 2048x1544 /dev/video0</code>
+
<code>./yavta -c1 -F"y8-${WIDTH}x${HEIGHT}.raw" --skip 0 -f Y8 -s "${WIDTH}x${HEIGHT}" /dev/video0</code>
    
*raw10
 
*raw10
Line 1,149: Line 973:  
Take XAVIER as example.
 
Take XAVIER as example.
   −
<code>./yavta -c1 -Fy10-2048x1544.raw --skip 0 -f XY10 -s 2048x1544 /dev/video0</code>
+
<code>./yavta -c1 -F"y8-${WIDTH}x${HEIGHT}.raw" --skip 0 -f XY10 -s "${WIDTH}x${HEIGHT}" /dev/video0</code>
    
*raw12
 
*raw12
Line 1,155: Line 979:  
Take XAVIER as example.
 
Take XAVIER as example.
   −
<code>./yavta -c1 -Fy12-2048x1544.raw --skip 0 -f XY12 -s 2048x1544 /dev/video0</code>
+
<code>./yavta -c1 -F"y8-${WIDTH}x${HEIGHT}.raw" --skip 0 -f XY12 -s "${WIDTH}x${HEIGHT}" /dev/video0</code>
======MV-MIPI-IMX264M======
+
======MV-MIPI-IMX178M======
    
*raw8
 
*raw8
   −
<code>./yavta -c1 -Fy8-2432x2048.raw --skip 0 -f Y8 -s 2432x2048 /dev/video0</code>
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=3136</code>
   −
*raw10
+
<code>./yavta -c1 -Fy8-3136x2064.raw --skip 0 -f Y8 -s 3088x2064 /dev/video0</code>
 
  −
Take XAVIER as example.
  −
 
  −
<code>./yavta -c1 -Fy10-2432x2048.raw --skip 0 -f XY10 -s 2432x2048 /dev/video0</code>
  −
 
  −
*raw12
  −
 
  −
Take XAVIER as example.
  −
 
  −
<code>./yavta -c1 -Fy12-2432x2048.raw --skip 0 -f XY12 -s 2432x2048 /dev/video0</code>
  −
======RAW-MIPI-SC132M======
  −
 
  −
*raw8
  −
 
  −
<code>./yavta -c1 -Fy8-1080x1280.raw --skip 0 -f Y8 -s 1080x1280 /dev/video0</code>
      
*raw10
 
*raw10
Line 1,183: Line 992:  
Take XAVIER as example.
 
Take XAVIER as example.
   −
<code>./yavta -c1 -Fy10-1080x1280.raw --skip 0 -f XY10 -s 1080x1280 /dev/video0</code>
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
======MV-MIPI-IMX287M======
     −
*raw8
+
<code>./yavta -c1 -Fy10-3104x2064.raw --skip 0 -f XY10 -s 3088x2064 /dev/video0</code>
 
  −
<code>./yavta -c1 -Fy8-704x544.raw --skip 0 -f Y8 -s 704x544 /dev/video0</code>
  −
 
  −
*raw10
  −
 
  −
Take XAVIER as example.
  −
 
  −
<code>./yavta -c1 -Fy10-704x544.raw --skip 0 -f XY10 -s 704x544 /dev/video0</code>
      
*raw12
 
*raw12
Line 1,200: Line 1,000:  
Take XAVIER as example.
 
Take XAVIER as example.
   −
<code>./yavta -c1 -Fy12-704x544.raw --skip 0 -f XY12 -s 704x544 /dev/video0</code>
+
<code>v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=6208</code>
======RAW-MIPI-AR0234M======
     −
*raw8
+
<code>./yavta -c1 -Fy12-3104x2064.raw --skip 0 -f XY12 -s 3088x2064 /dev/video0</code>
 
  −
<code>./yavta -c1 -Fy8-1920x1200.raw --skip 0 -f Y8 -s 1920x1200 /dev/video0</code>
  −
 
  −
*raw10
  −
 
  −
Take XAVIER as example.
  −
 
  −
<code>./yavta -c1 -Fy10-1920x1200.raw --skip 0 -f XY10 -s 1920x1200 /dev/video0</code>
  −
======RAW-MIPI-IMX462M======
  −
Take XAVIER as example.
  −
 
  −
*raw12
  −
 
  −
<code>./yavta -c1 -Fy12-1920x1088.raw --skip 0 -f XY12 -s 1920x1088 /dev/video0</code>
  −
 
  −
*raw10
     −
<code>./yavta -c1 -Fy10-1920x1088.raw --skip 0 -f XY10 -s 1920x1088 /dev/video0</code>
      
For the image format, please refer to the section above: Description of raw data image format.
 
For the image format, please refer to the section above: Description of raw data image format.
Line 1,235: Line 1,017:  
===References===
 
===References===
 
===Document History===
 
===Document History===
 +
 +
*2025-03-23
 +
 +
Add description of ADP-MV1-V2.
 +
 +
Add support for mv_probe.sh.
    
*2024-08-13
 
*2024-08-13

Navigation menu