Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock5/hardware/camera/"

(Radxa Camera 4K)
(Software configuration)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
  
 
[[File:Rock-5b-radxa-camera-4k.jpeg | 400px]]
 
[[File:Rock-5b-radxa-camera-4k.jpeg | 400px]]
 
  
 
==== Software configuration ====
 
==== Software configuration ====
  
Find rock-5ab-camera-imx415.dtbo according to the following path
+
* Add one line to file /boot/config.txt. Like  this.
        root@rock-5b:/boot/dtbs/5.10.66-20-rockchip-g0cdf37b755fe/rockchip/overlay#
+
  
Edit extlinux.conf in root mode
+
dtoverlay=rock-5ab-camera-imx415
        root@rock-5b:/boot/extlinux# vi extlinux.conf
+
  
Mount rock-5ab-camera-imx415.dtbo to fdtoverlays
+
* And then execute command.
        fdtoverlays  /dtbs/5.10.66-20-rockchip-g0cdf37b755fe/rockchip/overlay/rock-5ab-camera-imx415.dtbo
+
  
 +
# update_extlinux.sh
  
==== Verify command(Reference) ====
+
* Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
Camera capture command
+
        gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=%d.jpg
+
  
== USB Camera ==
+
* Start rkaiq camera preview.
  
 +
Execute the following command with root user in terminal on desktop.
 +
 +
$ sudo su
 +
# gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
 +
 +
== USB Camera ==
  
  

Latest revision as of 09:50, 29 September 2022

    ROCK 5 >  Hardware >  Camera module

MIPI Camera

Radxa Camera 4K

Hardware connection

Rock-5b-radxa-camera-4k.jpeg

Software configuration

  • Add one line to file /boot/config.txt. Like this.
dtoverlay=rock-5ab-camera-imx415
  • And then execute command.
# update_extlinux.sh
  • Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
  • Start rkaiq camera preview.

Execute the following command with root user in terminal on desktop.

$ sudo su
# gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink

USB Camera

Troubleshooting