s6.schema.platformΒΆ

Platform model abstractions for hardware-variant behavior.

This module defines a small class hierarchy for platform-specific behavior such as camera-role naming and frame ordering.

class s6.schema.platform.Platform

Bases: ABC

Base interface for platform-specific camera behavior.

prototype: str
abstract property camera_names: Tuple[str, ...]

Return camera role names in expected stream order.

property camera_count: int

Return number of camera inputs expected by the platform.

property camera_identifier: Any

Return the initialized camera identifier instance.

order_frames(frames: List[Any], stabilize_frames: int = 3) Dict[Any, Any]

Identify and order incoming frames by camera role.

class s6.schema.platform.PlatformT1

Bases: Platform

Two-camera bottom-view platform (LL/LR).

prototype: str = 'T1'
property camera_names: Tuple[str, ...]

Return camera role names in expected stream order.

class s6.schema.platform.PlatformV1

Bases: Platform

Legacy three-camera platform (L/R/B).

prototype: str = 'V1'
property camera_names: Tuple[str, ...]

Return camera role names in expected stream order.

class s6.schema.platform.PlatformV2

Bases: Platform

Four-camera platform (UL/UR/LL/LR).

prototype: str = 'V2'
property camera_names: Tuple[str, ...]

Return camera role names in expected stream order.

s6.schema.platform.available_platforms() Tuple[str, ...]

Return the supported platform identifiers.

s6.schema.platform.create_platform(prototype: str) Platform

Create a platform implementation for prototype.