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/"

(Software configuration)
 
Line 14: Line 14:
 
==== Software configuration ====
 
==== Software configuration ====
  
Add one line to file /boot/config.txt. Like  this.
+
* Add one line to file /boot/config.txt. Like  this.
  
 
  dtoverlay=rock-5ab-camera-imx415
 
  dtoverlay=rock-5ab-camera-imx415
  
And then execute command.
+
* And then execute command.
  
  update_extlinux.sh
+
  # update_extlinux.sh
  
Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
+
* Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
  
Test command.
+
* Start rkaiq camera preview.
  
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
+
Execute the following command with root user in terminal on desktop.
  
You would see generated pictures.
+
$ 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 ==
 
== 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