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


< Zero‎ | hardware
    Radxa Zero >  Hardware >  Camera module

USB Camera

Install tool fswebcam

root@zero:~# apt-get install -y fswebcam

Plug USB camera in, there shall be video devices.

root@zero:~# ls /dev/video*
/dev/video0  /dev/video1  /dev/video2

Capture image

fswebcam /dev/video2 /tmp/test.png

Check image

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