-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
48 lines (38 loc) · 1.05 KB
/
config.py
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
import platform
# Normal/Debug Mode
# # Normal : Secure access on Live/Video
# # Debug : Secure access on a test video to validate its working
debug = True
# Debugging controls
display = True
display_state = True
write_vid = False
early_stopping = False
verbose = 0
# Access Control
user_to_annoy = "arsal"
user_to_restrict = "taha"
# Beware! Test first on dummy folder about its effects
if platform.system() == "Windows":
folder_to_hide = r"D:\Haider\Udemy\Private"
else:
folder_to_hide = r"/home/shadowmaster/Documents/Private" # Set this to any folder on your system.
# Video Path or camera number
vid_id = None
# Detection Flags
face_detector = "hog"
# Tracking Flags
tracker_type = "MOSSE"
# Recognition Flags
exp_width = 640
exp_height = 480
downscale = 2 # Seems adequate for video size of (Width,Height) = (640,480) ... After downsizing (320,240)
new_user = None
add_user = None
authorized_dir = r"authorized_personnels"
recog_tolerance = 0.6
# Experimental
experimental = False
nvidia_gpu = False
# Warning Controls
ignore_Warning_MMSF = True