forked from pageauc/motion-track
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
44 lines (38 loc) · 1.98 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
# Config.py file for motion-track.py Release 1.10
# Display Settings
# ----------------
debug = True # Set to False for no data display
window_on = False # Set to True displays opencv windows (GUI desktop reqd)
show_fps = False # Show Frames per second
# OpenCV Settings
# ---------------
diff_window_on = True # Show OpenCV image difference window
thresh_window_on = True # Show OpenCV image Threshold window
SHOW_CIRCLE = True # True= show circle False= show rectancle on biggest motion
CIRCLE_SIZE = 3 # diameter of circle for SHOW_CIRCLE
LINE_THICKNESS = 2 # thickness of bounding line in pixels
WINDOW_BIGGER = 2 # Resize multiplier for Movement Status Window
# if gui_window_on=True then makes opencv window bigger
# Note if the window is larger than 1 then a reduced frame rate will occur
# Camera Settings
# ---------------
WEBCAM = False # default = False False=PiCamera True=USB WebCamera
# Web Camera Settings
WEBCAM_SRC = 0 # default = 0 USB opencv connection number
WEBCAM_WIDTH = 320 # default = 320 USB Webcam Image width
WEBCAM_HEIGHT = 240 # default = 240 USB Webcam Image height
WEBCAM_HFLIP = True # default = False USB Webcam flip image horizontally
WEBCAM_VFLIP = False # default = False USB Webcam flip image vertically
# Pi Camera Settings
CAMERA_WIDTH = 320 # default = 320 PiCamera image width can be greater if quad core RPI
CAMERA_HEIGHT = 240 # default = 240 PiCamera image height
CAMERA_HFLIP = True # True=flip camera image horizontally
CAMERA_VFLIP = True # True=flip camera image vertically
CAMERA_ROTATION = 0 # Rotate camera image valid values 0, 90, 180, 270
CAMERA_FRAMERATE = 25 # default = 25 lower for USB Web Cam. Try different settings
FRAME_COUNTER = 1000 # used when show_fps=True Sets frequency of display
# Motion Track Settings
# ---------------------
MIN_AREA = 200 # excludes all contours less than or equal to this Area
THRESHOLD_SENSITIVITY = 25
BLUR_SIZE = 10