Changes

Jump to navigation Jump to search
Line 640: Line 640:  
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.
 
=====Preview=====
 
=====Preview=====
 +
 +
====== Preview UYVY format images using gstreamer ======
 
The camera can be previewed in real time using the following command:
 
The camera can be previewed in real time using the following command:
    
<code>export DISPLAY=:0</code>
 
<code>export DISPLAY=:0</code>
   −
====== MV-MIPI-IMX178M ======
+
* MV-MIPI-IMX178M
 +
 
 
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2816,height=2064,pixelformat=UYVY</code>
 
<code>v4l2-ctl -d /dev/video0 --set-fmt-video=width=2816,height=2064,pixelformat=UYVY</code>
   Line 651: Line 654:  
The maximum width supported by UYVY mode is 2880.
 
The maximum width supported by UYVY mode is 2880.
   −
====== MV-MIPI-SC130M, MV-MIPI-IMX296M,  MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M ======
+
* 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-fmt-video=width=$WIDTH,height=$HEIGHT,pixelformat=UYVY</code>
   Line 657: Line 661:     
<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>
 
<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 ======
 +
<code>sudo apt install python3-opencv</code>
 +
 +
* Preview using this [https://github.com/veyeimaging/nvidia_jetson_veye_bsp/tree/master/samples/opencv/raw_camera sample]:
 +
 +
<code>python ./v4l2dev_2_opencv_show_grey.py --roix 0 --roiy 0  --width 640 --height 480 --fps 30</code>
 +
 
==== Trigger mode ====
 
==== Trigger mode ====
  

Navigation menu