OpenScan-org / OpenScan2

an improved firmware for the OpenScan devices, featuring many more cameras and a greatly improved overall usability
GNU General Public License v3.0
254 stars 29 forks source link

Allow using usb webcams with fswebcam #49

Closed Polectron closed 2 years ago

Polectron commented 2 years ago

image image

OpenScanEu commented 2 years ago

Thanks a lot!! I didn't know that webcams could be implemented such easily :)) First tests look great. Thank you again!

Xgl0baltk commented 2 years ago

i recieved my Arducam a while ago but haven't built my rig yet, but using a webcam is great option, haven't followed in a while, is a multicam setup an option? 1080p webcams cost next to nothing

OpenScanEu commented 2 years ago

The current firmware can only handle one camera at a time. And as far as I know, this is a general limitation of the RaspberryPi (at least with Pi Cameras and Arducams. Multicamera Rigs always use multiple Raspberry Pis, each controlling a single camera. (Which is a huge investment considering the current RPi prices...). EDIT: But I would love to build/develop a multi-cam setup at some point in the future :)

Polectron commented 2 years ago

I think it should be possible to make a multi-rig setup with usb cameras, as long as you don't exceed power limit of the usb ports, in theory you could be able to connect 4 usb cameras to a raspberry pi and take pictures from each device using 4 consecutive fsdwebcam commands with the --device argument.

-d, --device [<prefix>:]<device name>
              Set the source or device to use. The source module is selected automatically unless
              specified in the prefix.

              Default is /dev/video0.

https://manpages.ubuntu.com/manpages/bionic/man1/fswebcam.1.html