Last modified: June 10, 2015
In module gamera.toolkits.webcam.drivers.classwebcam
This class Webcam is a wrapper around the webcam C++-API and the main interface for people using the toolkit.
This method should not do anything, particularly it should not create a session.
This method closes any opened session and frees used memory.
Signature:
initSession (width, height, device)
Starts a new camera session where width and height are the dimensions of the resulting image and device is the identifier of the camera. If there is an exisiting camera session this session will be closed and a new session to the given camera is opened.
Signature:
snapshotFromWebcam ()
Returns a RGB Gamera image taken from the webcam.