SwisTrack/Components/InputCameraUSB

From Wikibooks, open books for an open world
< SwisTrack‎ | Components
Jump to: navigation, search

Description[edit]

This component allows you to grab images from any camera supported by OpenCV. The output images are grayscale or color images.

Input[edit]

A camera supported by OpenCV.

Output[edit]

SwisTrack ColorImage.jpg

A grayscale or a color image.

Parameters[edit]

Camera number[edit]

The number of the camera. The system usually enumerates them starting with 0 for the first camera. Set to -1 for "any camera". (Note that the iSight cameras built into MacBooks need this values to be 0.)