-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path__init__.py
More file actions
43 lines (34 loc) · 1022 Bytes
/
__init__.py
File metadata and controls
43 lines (34 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
DeepLabCut Toolbox (deeplabcut.org)
© A. & M. Mathis Labs
Licensed under GNU Lesser General Public License v3.0
"""
import platform
from dlclivegui.camera.camera import Camera, CameraError
from dlclivegui.camera.opencv import OpenCVCam
if platform.system() == "Windows":
try:
from dlclivegui.camera.tiscamera_windows import TISCam
except Exception as e:
pass
if platform.system() == "Linux":
try:
from dlclivegui.camera.tiscamera_linux import TISCam
except Exception as e:
pass
# print(f"Error importing TISCam on Linux: {e}")
if platform.system() in ["Darwin", "Linux"]:
try:
from dlclivegui.camera.aravis import AravisCam
except Exception as e:
pass
# print(f"Error importing AravisCam: f{e}")
if platform.system() == "Darwin":
try:
from dlclivegui.camera.pseye import PSEyeCam
except Exception as e:
pass
try:
from dlclivegui.camera.basler import BaslerCam
except Exception as e:
pass