Difference between revisions of "Rock5/hardware/camera/"
(→Radxa Camera 4K) |
|||
Line 11: | Line 11: | ||
[[File:Rock-5b-radxa-camera-4k.jpeg | 400px]] | [[File:Rock-5b-radxa-camera-4k.jpeg | 400px]] | ||
− | |||
==== Software configuration ==== | ==== 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. | |
− | + | ||
− | + | ||
− | + | Test 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 | ||
+ | |||
+ | You would see generated pictures. | ||
+ | |||
+ | == USB Camera == | ||
Revision as of 06:22, 8 September 2022
ROCK 5 > Hardware > Camera module
Contents
MIPI Camera
Radxa Camera 4K
Hardware connection
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.
Test 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
You would see generated pictures.
USB Camera
Troubleshooting
- Post your issue on the forum: https://forum.radxa.com/c/rock5