Difference between revisions of "Zero/hardware/camera/"
(Created page with "{{Zero_header}} {{Languages|zero/hardware/camera}} Radxa Zero > Hardware > Camera module === USB Camera === I...") |
RadxaYuntian (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
=== USB Camera === | === USB Camera === | ||
− | Install | + | Without MIPI CSI interface you can only use USB camera on Radxa Zero. In this guide we will show you some basic usage with USB camera. |
+ | |||
+ | 1. Install fswebcam: | ||
root@zero:~# apt-get install -y fswebcam | root@zero:~# apt-get install -y fswebcam | ||
− | Plug USB camera | + | 2. Plug USB camera into Radxa Zero or a connected USB hub. If the camera is supported you can see a new device shown up in /dev folder: |
root@zero:~# ls /dev/video* | root@zero:~# ls /dev/video* | ||
− | /dev/video0 /dev/video1 /dev/video2 | + | /dev/video0 /dev/video1 '''/dev/video2''' |
− | Capture image | + | 3. Capture still image: |
− | fswebcam /dev/video2 /tmp/test.png | + | root@zero:~# fswebcam /dev/video2 /tmp/test.png |
− | Check image | + | 4. Check image properties: |
root@zero:~# file /tmp/test.png | root@zero:~# file /tmp/test.png | ||
/tmp/test.png: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, comment: "CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 255", baseline, precision 8, 352x288, components 3 | /tmp/test.png: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, comment: "CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 255", baseline, precision 8, 352x288, components 3 | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 07:18, 2 December 2021
Radxa Zero > Hardware > Camera module
USB Camera
Without MIPI CSI interface you can only use USB camera on Radxa Zero. In this guide we will show you some basic usage with USB camera.
1. Install fswebcam:
root@zero:~# apt-get install -y fswebcam
2. Plug USB camera into Radxa Zero or a connected USB hub. If the camera is supported you can see a new device shown up in /dev folder:
root@zero:~# ls /dev/video* /dev/video0 /dev/video1 /dev/video2
3. Capture still image:
root@zero:~# fswebcam /dev/video2 /tmp/test.png
4. Check image properties:
root@zero:~# file /tmp/test.png /tmp/test.png: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, comment: "CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 255", baseline, precision 8, 352x288, components 3