Skip to content

Commit f99578c

Browse files
committed
Temporary fix for unintended cv2 dependence
1 parent c2406b4 commit f99578c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aiko_services"
3-
version = "0.6.post28"
3+
version = "0.6.post29"
44
readme = "ReadMe.md"
55
description = "Distributed embedded service framework for A.I and robotics"
66
requires-python = ">=3.9.0,<=3.13.9"

src/aiko_services/elements/media/video_io.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@
110110

111111
# --------------------------------------------------------------------------- #
112112

113-
CAMERA_API_SYSTEM_LOOKUP = {
114-
"darwin": cv2.CAP_AVFOUNDATION,
115-
"linux": cv2.CAP_V4L2,
116-
"windows": cv2.CAP_MSMF
117-
}
118-
119113
def open_video_capture(camera_id=0):
114+
CAMERA_API_SYSTEM_LOOKUP = {
115+
"darwin": cv2.CAP_AVFOUNDATION,
116+
"linux": cv2.CAP_V4L2,
117+
"windows": cv2.CAP_MSMF
118+
}
120119
camera_api = 0 # auto-select
121120
system = platform.system().lower()
122121
if system in CAMERA_API_SYSTEM_LOOKUP:

0 commit comments

Comments
 (0)