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

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

(USB Camera)
Line 4: Line 4:
  
 
  root@rockpis:~# apt-get install -y fswebcam
 
  root@rockpis:~# apt-get install -y fswebcam
 +
  
 
Plug USB camera in, there shall be video devices.
 
Plug USB camera in, there shall be video devices.
Line 10: Line 11:
 
  /dev/video0  /dev/video1
 
  /dev/video0  /dev/video1
  
Capture image
 
  
 +
Capture image
  
 
  fswebcam /dev/video0 ./test.png
 
  fswebcam /dev/video0 ./test.png

Revision as of 10:27, 18 August 2021

USB Camera

Install tool fswebcam

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


Plug USB camera in, there shall be video devices.

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


Capture image

fswebcam /dev/video0 ./test.png