Skip to content

Commit 0ea47a8

Browse files
committed
refactor
1 parent fbe2dcc commit 0ea47a8

File tree

5 files changed

+513
-509
lines changed

5 files changed

+513
-509
lines changed

src/arduino/app_peripherals/usb_camera/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from PIL import Image
88
from arduino.app_peripherals.camera import Camera, CameraReadError as CRE, CameraOpenError as COE
99
from arduino.app_peripherals.camera.v4l_camera import V4LCamera
10-
from arduino.app_utils.image.image_editor import compressed_to_png, letterboxed
10+
from arduino.app_utils.image import letterboxed, compressed_to_png
1111
from arduino.app_utils import Logger
1212

1313
logger = Logger("USB Camera")

src/arduino/app_utils/image/__init__.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@
33
# SPDX-License-Identifier: MPL-2.0
44

55
from .image import *
6-
from .image_editor import ImageEditor
6+
from .adjustments import *
77
from .pipeable import PipeableFunction
88

99
__all__ = [
1010
"get_image_type",
1111
"get_image_bytes",
1212
"draw_bounding_boxes",
1313
"draw_anomaly_markers",
14-
"ImageEditor",
15-
"PipeableFunction",
14+
"letterbox",
15+
"resize",
16+
"adjust",
17+
"greyscale",
18+
"compress_to_jpeg",
19+
"compress_to_png",
1620
"letterboxed",
1721
"resized",
1822
"adjusted",
1923
"greyscaled",
2024
"compressed_to_jpeg",
2125
"compressed_to_png",
26+
"PipeableFunction",
2227
]

0 commit comments

Comments
 (0)