Changes

Jump to navigation Jump to search
Line 255: Line 255:  
=====Install v4l2-utils=====
 
=====Install v4l2-utils=====
 
<code>sudo apt-get install v4l-utils</code>
 
<code>sudo apt-get install v4l-utils</code>
=====Install yavta=====
  −
<code>git clone <nowiki>git://git.ideasonboard.org/yavta.git</nowiki></code>
  −
  −
<code>cd yavta;make</code>
   
=====Configure parameters using v4l2-ctl=====
 
=====Configure parameters using v4l2-ctl=====
 
======List the data formats supported by the camera======
 
======List the data formats supported by the camera======
Line 541: Line 537:  
In the terminal of the acquisition command, press Ctrl+C to exit the acquisition operation.
 
In the terminal of the acquisition command, press Ctrl+C to exit the acquisition operation.
   −
==== Trigger mode(C demo) ====
+
=== Application demo ===
TODO
+
====Video Streaming mode====
 +
=====install yavta=====
 +
<code>git clone <nowiki>https://github.com/veyeimaging/yavta.git</nowiki></code>
 +
 
 +
<code>cd yavta;make</code>
 +
=====Set ROI and format=====
 +
Take MV-MIPI-IMX178M, 3088*2064 as an example.
 +
 
 +
<code>v4l2-ctl --set-ctrl roi_x=0</code>
 +
 
 +
<code>v4l2-ctl --set-ctrl roi_y=0</code>
 +
=====Save image to file=====
 +
 
 +
*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>
 +
 +
For the image format, please refer to the section above: Description of raw data image format.
 
===i2c script for parameter configuration===
 
===i2c script for parameter configuration===
 
We provide shell scripts to configure the parameters.
 
We provide shell scripts to configure the parameters.

Navigation menu