File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/arduino/app_peripherals/usb_camera Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 66import warnings
77from PIL import Image
88from arduino .app_peripherals .camera import Camera , CameraReadError as CRE , CameraOpenError as COE
9+ from arduino .app_peripherals .camera .v4l_camera import V4LCamera
910from arduino .app_utils .image .image_editor import compressed_to_png , letterboxed
1011from arduino .app_utils import Logger
1112
@@ -47,10 +48,7 @@ def __init__(
4748 if letterbox :
4849 pipe = pipe | letterboxed () if pipe else letterboxed ()
4950
50- self ._wrapped_camera = Camera (source = camera ,
51- resolution = resolution ,
52- fps = fps ,
53- adjustments = pipe )
51+ self ._wrapped_camera = V4LCamera (camera , resolution , fps , pipe )
5452
5553 def capture (self ) -> Image .Image | None :
5654 """Captures a frame from the camera, blocking to respect the configured FPS.
You can’t perform that action at this time.
0 commit comments