Fix: camera code changes only (#1788)

This commit is contained in:
Jaisree25
2025-10-20 03:57:10 -07:00
committed by GitHub
parent a5ca206c49
commit c54cd529a2
10 changed files with 104 additions and 52 deletions
@@ -59,7 +59,7 @@ class RealSenseCameraConfig(CameraConfig):
rotation: Cv2Rotation = Cv2Rotation.NO_ROTATION
warmup_s: int = 1
def __post_init__(self):
def __post_init__(self) -> None:
if self.color_mode not in (ColorMode.RGB, ColorMode.BGR):
raise ValueError(
f"`color_mode` is expected to be {ColorMode.RGB.value} or {ColorMode.BGR.value}, but {self.color_mode} is provided."