Raspberry Pi

Pi Camera

class zoloto.cameras.rpi.PiCamera(*, marker_size=None, marker_type, calibration_file=None)[source]
__init__(*, marker_size=None, marker_type, calibration_file=None)[source]
__iter__()
Return type

Iterator[ndarray[Any, dtype[+ScalarType]]]

capture_frame()[source]
Return type

ndarray[Any, dtype[+ScalarType]]

close()[source]
Return type

None

get_detector_params()

Note: We modify the default parameters slightly to improve detection on markers with hard borders (like the ones generated from zoloto marker-pdfs)

Return type

aruco_DetectorParameters

get_marker_size(marker_id)
Return type

int

get_visible_markers(*, frame=None)
process_frame(*, frame=None)
process_frame_eager(*, frame=None)
save_frame(filename, *, annotate=False, frame=None)
show(annotate=False)
Return type

None

Pi Snapshot Camera

class zoloto.cameras.rpi.PiSnapshotCamera(*, marker_size=None, marker_type, calibration_file=None)[source]

A modified version of PiCamera optimised for single use.

  • Doesn’t keep the camera open between captures

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

ndarray[Any, dtype[+ScalarType]]

close()[source]
Return type

None

get_detector_params()

Note: We modify the default parameters slightly to improve detection on markers with hard borders (like the ones generated from zoloto marker-pdfs)

Return type

aruco_DetectorParameters

get_marker_size(marker_id)
Return type

int

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