cam

Convenience wrapper around the native CamSensor C++ binding.

Usage:

from raccoon.cam import CamSensor

cam = CamSensor()
if cam.is_detected("orange"):
    print(f"orange blob at ({cam.get_blob_x('orange')}, {cam.get_blob_y('orange')})")

The native pybind11 extension is compiled as cam.<abi-tag>.so and lives next to this file. We import it via importlib so this pure-Python module can shadow it without creating a circular import.

Attributes

CamSensor

Module Contents

cam.CamSensor