Changes

Jump to navigation Jump to search
Line 279: Line 279:  
* media_setting_rpi5.sh
 
* media_setting_rpi5.sh
   −
<code>./media_setting_rpi5.sh</code>
+
<code>./media_setting_rpi5.sh</code>  
   −
<code>Usage: ./media_setting_rpi5.sh veyecam2m/csimx307/cssc132/mvcam -fmt [UYVY/RAW8/RAW10/RAW12] -w [width] -h [height]</code>
+
<code>This is a Raspberry Pi 5.</code>
   −
<code>This shell script is designed to detect the connection of a camera on Raspberry Pi 5.</code>
+
<code>Kernel version is 6.6.51, do not support unpacked format.</code>
   −
<code>    It utilizes media-ctl and v4l2-ctl commands to configure the linking relationships and data formats of the media pad.</code>
+
<code>Usage: ./media_setting_rpi5.sh veyecam2m/csimx307/cssc132/mvcam -fmt [UYVY/RAW8/RAW10/RAW12] -x [roi_x] -y [roi_y] -w [width] -h [height] -c [cam 0|1]</code>
   −
<code>    Once completed, you can directly use /dev/video0 or /dev/video8 to obtain image data</code>
+
<code>This shell script is designed to detect the connection of a camera on Raspberry Pi 5.</code>
 +
 
 +
<code>    It utilizes media-ctl and v4l2-ctl commands to configure the linking relationships and data formats of the media pad.</code>
 +
 
 +
<code>    Once completed, you can directly use /dev/video0 or /dev/video8 to obtain image data.</code>
    
Before proceeding with further operations, it is '''necessary''' to execute this script to complete the configuration of parameters.
 
Before proceeding with further operations, it is '''necessary''' to execute this script to complete the configuration of parameters.
Line 410: Line 414:     
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT</code>
 
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT</code>
 +
 +
Note: For Raspberry Pi 5, you can directly use the media_setting_rpi5.sh script to complete the roi configuration, as the media_setting_rpi5.sh script already contains the roi configuration.
 
==== Video Streaming mode ====
 
==== Video Streaming mode ====
  

Navigation menu