Skip to main content

evcam

Start snapshot recorder.

def evcam(
camera: string,
freq: float = 1.0,
maxrate: float = null,
loglevel: int/string = 0,
logfile: string = null,
pidfile: string = null,
timer: object = null,
app: object = null,
**kwargs: dict
) - > null

Start snapshot recorder.

Parameters

NameTypeDescription
camerastringThe class path or identifier for the camera implementation to instantiate.
freqfloat = 1.0The interval in seconds between consecutive snapshots.
maxratefloat = nullThe maximum allowed rate for snapshot operations to prevent resource exhaustion.
loglevelint/string = 0The verbosity level for the logging subsystem.
logfilestring = nullThe file system path where log output should be written.
pidfilestring = nullThe file path used to create a PID lock file to prevent multiple concurrent instances.
timerobject = nullA custom timer instance used to schedule snapshot events.
appobject = nullThe application instance providing configuration and event subsystems; defaults to the global app context.
**kwargsdictAdditional keyword arguments passed to the camera instantiation.

Returns

TypeDescription
nullThis function does not return a value; it runs a continuous capture loop until interrupted.