camera switching for opencv camera

From discussion with @julianstirling
This commit is contained in:
williamwadsworth 2026-02-26 12:48:55 +00:00
parent b1d84492cc
commit c9117b62a0

View file

@ -86,7 +86,7 @@ class OpenCVCamera(BaseCamera):
self._camera_name = value
# Return so we don't try to start the stream
return
self._camera_name = value
if value not in self.cameras:
raise ValueError(f"{value} is not a valid camera name.")
self._start_stream()