Webcams in Spreads

Johannes Baiter's Spreads and SpreadPi are the latest control systems and postprocessors for DIY scanning. http://spreads.readthedocs.org

Moderator: peterZ

Post Reply
boredland
Posts: 42
Joined: 08 Jan 2014, 07:30
Number of books owned: 0
Country: Germany

Webcams in Spreads

Post by boredland »

As pointed out in other threads, shooting with a webcam sometimes isn't that bad. I'm satisfied with my chdk-setup, but interested in trying out shooting with the two usb-webcams I've got here. Has anyone tried yet?

this are the cameras IDs: Bus 002 Device 006: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera

First test with cheese looks promising, though..
duerig
Posts: 388
Joined: 01 Jun 2014, 17:04
Number of books owned: 1000
Country: United States of America

Re: Webcams in Spreads

Post by duerig »

I think you'd have to create a new module that stands alongside the chdk and gphoto2 modules in spreadsplug. But other than that, I have no idea. I've never tried to programatically control a webcam.

Along these lines, there is a camera especially for the Raspberry Pi which plugs in directly to a camera port (not USB). There is also a custom PCB board that lets you switch between multiple Pi cameras all controlled from the same Pi board. The Pi cameras are fairly low-resolution for our purposes (only 5 MP), but still have better resolution than many webcams.

-D
boredland
Posts: 42
Joined: 08 Jan 2014, 07:30
Number of books owned: 0
Country: Germany

Re: Webcams in Spreads

Post by boredland »

I think I'd like to create a spreads module for avconv:
https://wiki.ubuntuusers.de/avconv

It supports shooting at specific resulutions and seperated devices from commandline.

I saw those raspi-webcams before, but they had very short cables :D

I already have two of those:
http://www.amazon.de/gp/product/B004TFK ... ailpages00

I did testshoot a page and I'm quite impressed. Perhaps I've got the chance to upload the sample-images later the day.

If you want to tryout your webcam with avconv, this was my commandline:

avconv -f video4linux2 -s [your max resolution, for me it was 3840x2160) -i /dev/[videodeviceID, for me it was video0 and video1] -ss 0:0:0 -frames 1 /tmp/out.jpg

Yours
Jonas
Post Reply