added ruff test
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
"""Camera discovery and raw preview helpers."""
|
||||
|
||||
from orisys_app_shared.camera.discovery import CameraInfo, list_cameras, pick_default_camera
|
||||
from orisys_app_shared.camera.discovery import (
|
||||
CameraInfo,
|
||||
list_cameras,
|
||||
pick_default_camera,
|
||||
)
|
||||
from orisys_app_shared.camera.preview import RawPreviewSession
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -114,7 +114,7 @@ def list_cameras(max_index: int = DEFAULT_MAX_CAMERA_INDEX) -> list[CameraInfo]:
|
||||
backends = _backend_candidates()
|
||||
|
||||
with _suppress_opencv_noise():
|
||||
for index in range(0, max_index + 1):
|
||||
for index in range(max_index + 1):
|
||||
for backend_name, backend_api in backends:
|
||||
info = _try_open(index, backend_name, backend_api)
|
||||
if info is None:
|
||||
|
||||
Reference in New Issue
Block a user