Cameras

Camera

class zoloto.cameras.camera.Camera(camera_id, *, marker_size=None, marker_type, calibration_file=None, resolution=None)[source]
__init__(camera_id, *, marker_size=None, marker_type, calibration_file=None, resolution=None)[source]
__iter__()
Return type

Iterator[ndarray]

capture_frame()[source]
Return type

ndarray

close()[source]
Return type

None

classmethod discover(**kwargs)[source]
Return type

Generator[Camera, None, None]

get_detector_params()
Return type

aruco_DetectorParameters

get_marker_size(marker_id)
Return type

int

get_resolution()[source]
Return type

Tuple[int, int]

get_video_capture(camera_id)[source]
Return type

VideoCapture

get_visible_markers(*, frame=None)
Return type

List[int]

process_frame(*, frame=None)
Return type

Generator[Union[UncalibratedMarker, Marker], None, None]

process_frame_eager(*, frame=None)
Return type

Generator[EagerMarker, None, None]

save_frame(filename, *, annotate=False, frame=None)
Return type

ndarray

show(annotate=False)
Return type

None

Snapshot Camera

class zoloto.cameras.camera.SnapshotCamera(camera_id, *, marker_size=None, marker_type, calibration_file=None, resolution=None)[source]

A modified version of Camera optimised for single use.

  • Doesn’t keep the camera open between captures

__init__(camera_id, *, marker_size=None, marker_type, calibration_file=None, resolution=None)[source]
capture_frame()[source]
Return type

ndarray

close()
Return type

None

classmethod discover(**kwargs)[source]
Return type

Generator[SnapshotCamera, None, None]

get_detector_params()
Return type

aruco_DetectorParameters

get_marker_size(marker_id)
Return type

int

get_resolution()[source]
Return type

Tuple[int, int]

get_video_capture(camera_id)[source]
Return type

VideoCapture

get_visible_markers(*, frame=None)
Return type

List[int]

process_frame(*, frame=None)
Return type

Generator[Union[UncalibratedMarker, Marker], None, None]

process_frame_eager(*, frame=None)
Return type

Generator[EagerMarker, None, None]

save_frame(filename, *, annotate=False, frame=None)
Return type

ndarray