File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
src/aiko_services/elements/media Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " aiko_services"
3- version = " 0.6.post28 "
3+ version = " 0.6.post29 "
44readme = " ReadMe.md"
55description = " Distributed embedded service framework for A.I and robotics"
66requires-python = " >=3.9.0,<=3.13.9"
Original file line number Diff line number Diff line change 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-
119113def 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 :
You can’t perform that action at this time.
0 commit comments