-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
49 lines (46 loc) · 1.21 KB
/
Copy pathconfig.py
File metadata and controls
49 lines (46 loc) · 1.21 KB
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
44
45
46
47
48
49
# Window Configuration
WINDOW_CONFIG = {
'WIDTH': 950,
'HEIGHT': 550,
'BRIGHTNESS': 130
}
# Drawing Configuration
DRAWING_CONFIG = {
'DRAW_COLOR': (255, 0, 255), # Pink
'DRAW_THICKNESS': 5,
'ERASE_COLOR': (0, 0, 0), # Black
'ERASE_THICKNESS': 15
}
# Gesture Configuration
# Format: [thumb, index, middle, ring, pinky]
GESTURE_CONFIG = {
'DRAW': {
'fingers': [1, 1, 0, 0, 0], # Thumb + Index
'name': 'Drawing Mode'
},
'ERASE': {
'fingers': [1, 0, 1, 0, 0], # Thumb + Middle
'name': 'Eraser Mode'
},
'ANALYZE': {
'fingers': [0, 1, 1, 0, 0], # Index + Middle
'name': 'Analysis Mode'
},
'RESET': {
'fingers': [1, 0, 0, 0, 1], # Thumb + Pinky
'name': 'Reset Canvas'
},
'DISABLE': {
'fingers': [1, 1, 1, 0, 0], # Thumb + Index + Middle
'name': 'Disable Drawing'
}
}
# Analysis Configuration
ANALYSIS_PROMPT = """
Analyze the image and provide:
- Type of content (equation, text, shapes, artwork)
- For equations: Show equation and solution
- For text: Extract and explain content
- For shapes: Identify and describe relationships
- For artwork: Describe main elements
"""