REP Instrumentation 0.20120411 documentation

Generic instruments

«  General examples   ::   Contents   ::   E-mail notification  »

Generic instruments

class rep.generic.Camera(cam=-1)

Bases: object

close()
configure()

Opens a dialog to set the camera’s parameters.

find_resolutions()

Returns a list of resolution tuples that this camera supports.

id_string
open()
query_frame()
resolution
roi
class rep.generic.CameraError(msg, cam)

Bases: exceptions.Exception

class rep.generic.DirectShowWebcam(*args, **kwargs)

Bases: rep.generic.camera.Camera

Camera that interfaces through DirectShow

close()
configure()
id_string
open()
query_frame()
resolution
class rep.generic.OpenCVWebcam(*args, **kwargs)

Bases: rep.generic.camera.Camera

close()
id_string
open()
query_frame()
resolution

Resolution of the webcam - a 2-tuple

«  General examples   ::   Contents   ::   E-mail notification  »