forked from nicluo/slouchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slouchy.ini
48 lines (40 loc) · 1.74 KB
/
slouchy.ini
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
[MAIN]
# distance_reference
# Determined from running Setup, should be a 6 digit number.
distance_reference = 249.110417285
# thoracolumar_tolerance (Back)
# Use to adjust the sensitivity of slouch detection.
# Tweak until the program correctly detects you slouching/upright.
# You should need small values (0.1 or so)
# unless you wildly vary how close you sit to your computer.
# 0.05 to 0.3 should be sane values. Experiment with what works for you.
#
# Note: The closer you get to the camera the more error there is in measurement.
thoracolumbar_tolerance = 0.05
# cervical_tolerance (Neck)
# Set the tolerance for the lateral cervical angle (in radians).
# Probably good values: 0.3 (~17 deg), 0.35 (~20 deg), 0.4 (~23 deg)
cervical_tolerance = 0.3
# face_cascade_path / eye_cascade_path
# Path to the haarscascade xml files, feel free to try other face cascades as well.
# If you find good results with one let me know.
face_cascade_path = haarcascade_frontalface_default.xml
eye_cascade_path = haarcascade_eye.xml
# video_device
# Specify your webcam/video device
# 0 / -1 for first device/ first device found
# Or a file path string for a device (ex. "/dev/video0")
# -1 should work for most people
video_device = -1
# poll_rate
# How often slouchy.py should check to see if you're slouching (in seconds)
poll_rate = 60
# camera_delay
# Some cameras require time to warm up before taking a picture
# If you're using a Mac you probably want to set this to a few seconds.
# If slouchy isn't detecting faces, and you're in a well-lit area
# then specify a delay (in seconds) to allow your camera to warm up first.
camera_warm_up = 0
# alert_duration - NOT IMPLEMENTED YET
# How long the slouchy.py slouching alert should be shown (in seconds)
# alert_duration = 5