s6.utils.camera_identifier_interfaceΒΆ

Prototype-aware camera identifier facade.

class s6.utils.camera_identifier_interface.CameraIDIdentifierInterface(prototype: str, aruco_identifier: CameraIDIdentifierAruco | None, bottom_identifier: CameraIDIdentifierBottom)

Bases: object

Route camera ID ordering by prototype.

Supported modesΒΆ

V1

3 frames identified by ArUco rules (e.g., L/R/B).

V2

4 frames split into two ArUco-rich upper views (UL/UR) and two bottom views (LL/LR), then merged into one map.

T1

2 bottom frames identified as LL/LR.

classmethod load_default(prototype: str, bottom_ids: tuple[str, str] = ('LL', 'LR')) CameraIDIdentifierInterface

Build interface with default identifier configurations.

classmethod from_pipeline_config(cfg: Any) CameraIDIdentifierInterface

Build interface from a pipeline-like config object.

identify(images: List[ndarray], stabilize_frames: int = 1) Dict[str, int]

Return camera ID -> frame index map for the selected prototype.

order(images: List[ndarray], stabilize_frames: int = 1) Dict[str, ndarray]

Return camera ID -> image map for the selected prototype.