-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
37 lines (34 loc) · 787 Bytes
/
config.py
File metadata and controls
37 lines (34 loc) · 787 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
# Video source
VIDEO_SOURCE = "http://192.168.254.120:8080/video"
# Model settings
MODEL_PATH = "yolov8n.pt"
# Detection targets with their overlays
DETECTION_TARGETS = {
"mouse": {
"overlay_path": "assets/mouse.mp4",
"width": 250,
"height": 350,
"offset_y": 20,
"alpha": 0.7
},
"tv": {
"overlay_path": "assets/monitor.mp4",
"width": 400,
"height": 300,
"offset_y": 30,
"alpha": 0.6
},
"keyboard": {
"overlay_path": "assets/keyboard.mp4",
"width": 350,
"height": 200,
"offset_y": 15,
"alpha": 0.7
}
}
# Display settings
WINDOW_NAME = "AR Computer System Detection"
WINDOW_WIDTH = 1280
WINDOW_HEIGHT = 720
RESIZE_FRAME = True
ESC_KEY = 27