USB cameras 4 distinct USB camera functions Still
USB cameras 4 distinct USB camera functions Still camera that downloads to the PC Video clip camera that downloads to the PC Computer controlled still camera Computer controlled video webcam GPhoto 2 vs Video 4 Linux 2 Two entirely different, mutually exclusive ways to talk to a USB camera
GPhoto 2 Gphoto 2 has 3 out of 4 functions Still camera that downloads to the PC Video clip camera that downloads to the PC PC controlled still camera USB protocol for GPhoto 2 is contained in a userlevel library called libgphoto 2 Basically, gphoto 2 is a command line interface for libgphoto 2 Libgphoto 2 uses libusb to do low level USB work
GPhoto 2 command line interface Auto-detection List the context of camera gphoto 2 --auto-detect Shows you if you camera is recognized by gphoto 2 –get-list-files Get files from you camera gphoto 2 –get-all-files
GPhoto 2 capture capability Defining Your Camera's Abilities gphoto 2 -a Capturing 20 frames with an interval of 60 sec. gphoto 2 --capture-image --interval 60 –frames 20 Not all the camera support this feature A list of cameras that support capture http: //gphoto. sourceforge. net/doc/remote/
Cannon Capture is a tool for periodic image capturing with digital Canon cameras The consecutive shots are taken without the camera lenses being closed and opened again Supposedly increases camera live http: //capture. sourceforge. net/
Libusb API External API for applications to use Core functions usb_init() Initialize libusb Finds all USB busses on system usb_find_busses() usb_find_devices() Find all devices on all USB devices Return the list of USB busses found usb_get_busses()
Libusb API Device operation functions Control transfer functions Bulk transfer functions Interrupt transfer functions No portable functions
- Slides: 7