class Webcam

Last modified: June 10, 2015

Contents

Webcam

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.

__init__

This method should not do anything, particularly it should not create a session.

__del__

This method closes any opened session and frees used memory.

initSession

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.

snapshotFromWebcam

Signature:

snapshotFromWebcam ()

Returns a RGB Gamera image taken from the webcam.

closeSession

Signature:

closeSession ()

Closes a existing camera session and frees used resources.

getDevices

Signature:

getDevices ()

Returns a list of device names available on the current system.