camera switching for opencv camera
From discussion with @julianstirling
This commit is contained in:
parent
b1d84492cc
commit
c9117b62a0
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class OpenCVCamera(BaseCamera):
|
||||||
self._camera_name = value
|
self._camera_name = value
|
||||||
# Return so we don't try to start the stream
|
# Return so we don't try to start the stream
|
||||||
return
|
return
|
||||||
|
self._camera_name = value
|
||||||
if value not in self.cameras:
|
if value not in self.cameras:
|
||||||
raise ValueError(f"{value} is not a valid camera name.")
|
raise ValueError(f"{value} is not a valid camera name.")
|
||||||
self._start_stream()
|
self._start_stream()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue