Cameras

Camera

class zoloto.cameras.camera.Camera(camera_id, **kwargs)[source]
__init__(camera_id, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

capture_frame()[source]
close()[source]
classmethod discover(**kwargs)[source]
get_calibrations()
get_detector_params(params)
abstract get_marker_size(marker_id)
Return type

int

get_video_capture(camera_id)[source]
get_visible_markers(*, frame=None)
abstract property marker_dict
Return type

MarkerDict

process_frame(*, frame=None)
process_frame_eager(*, frame=None)
save_frame(filename, *, annotate=False, frame=None)

Snapshot Camera

class zoloto.cameras.camera.SnapshotCamera(camera_id, **kwargs)[source]

A modified version of Camera optimised for single use.

  • Doesn’t keep the camera open between captures

__init__(camera_id, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

capture_frame()[source]
close()
classmethod discover(**kwargs)[source]
get_calibrations()
get_detector_params(params)
abstract get_marker_size(marker_id)
Return type

int

get_video_capture(camera_id)[source]
get_visible_markers(*, frame=None)
abstract property marker_dict
Return type

MarkerDict

process_frame(*, frame=None)
process_frame_eager(*, frame=None)
save_frame(filename, *, annotate=False, frame=None)