Jump to content

Mira130 Linux Driver: Difference between revisions

No edit summary
Line 508: Line 508:


==Using the Driver==
==Using the Driver==
== Capture with v4l2-ctl ==
* Install v4l utils:
<syntaxhighlight lang=bash>
sudo apt install v4l-utils
</syntaxhighlight>
* Test the capture framerate:
==== 120 fps ====
<syntaxhighlight lang=bash>
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1080,height=1280,pixelformat=Y10 --set-ctrl bypass_mode=0 --stream-mmap
</syntaxhighlight>
The output should look like the following:
<pre>
ams@ams-desktop:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1080,height=1280,pixelformat=Y10 --set-ctrl bypass_mode=0 --stream-mmap
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 120.00 fps
</pre>
* Capture a single frame:
<pre>
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1080,height=1280,pixelformat=Y10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test_frame_120fps.raw
</pre>
The MIRA130 supports a resolution of 1080x1280 but the platform used (Jetson Nano) defined padding of 8 pixels to the image in order to align and optimize the capture process.
The post-process applied is to open the image with a 1088x1280 resolution using Vooya o Rawpixels.
Please consider the following settings to be able to view it correctly: <br>
* '''rawpixels:''' <br>
- ''width:'' 1088 <br>
- ''height:'' 1280 <br>
- ''Predefined format:'' Grayscale 8bit <br>
- ''Pixel format:'' Grayscale <br>
- ''bpp1:'' 16 <br>
- Little Endian box checked <br>
'''Note:''' The Y10 format comes in 2 bytes with a padding of zeros for the remaining bits. Since rawpixels requires the bit depth specification for Y10 to be 16bpps, the image looks darker.
* '''vooya:''' <br>
- ''width:'' 1088 <br>
- ''height:'' 1280 <br>
- ''Frames/Second:'' 120 <br>
- ''Color Space:'' Single Channel <br>
- ''Data Container:'' Single Integer <br>
- ''Bit Depth (Value):'' 14bit <br>
'''Note1:''' Bit depth needs to be 14 due to how the Jetson boards pack pixels. The image looks darker.
'''Note2:''' To see the frame as in the email was sent before, the bit depth needs to be 9.


{{ContactUs}}
{{ContactUs}}


[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Sony]]
[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:AMS]]
208

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.