-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathConfigValuesTemplate.py
105 lines (77 loc) · 2.88 KB
/
ConfigValuesTemplate.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#Drop Box Config
DropBoxAPIKey = "" #only required if using MMS
#Email Config
SMTPPort = 587
SMTPServer = ""
SMTPLogin = "" # paste your login
SMTPPassword = "" # paste your password
SMTPToAddress = ""
MailEnabled = 'false' #If set to false the other email config values can be left blank
#Twilio MMS & SMS Config
TwilioSID = ''
TwilioAuthToken = ''
TwilioSourcePhone = '+' + ''
TwilioSMSEnabled = 'false' #setting to false will still allow SMS to be uses as a failback to MMS
TwilioMMSEnabled = 'false' #if SMS and MMS are set to false the other email config values can be left blanks
#RT_OD Real Time Object Detection Config
#Detection Models
RTODPrototxt = "MobileNetSSD_deploy.prototxt.txt" #path to Caffe 'deploy' prototxt file
RTODModel = "MobileNetSSD_deploy.caffemodel" #path to Caffe pre-trained model
RTODSystemConfidence = 0.2 #minimum probability to filter weak detections
#Time to Sleep between frames - Limites CPU Time Usage by artifically lowering the frame rate
RTODFrameSleep = 0.25
#Detection Percentage - used to filter out eronious false detections that occur the closer to 100% of the detection area the more probable a
#detection is a false alert.
DectectionPercentage = 60
#Alert On What Object Type
#Options Are
#["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable",
#"dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"]
AlertObjectType = ["person", "car"]
#Enable Face Detection
FaceDetectionEnabled = 'true'
#Destination number for MMS & SMS notifications
AlertPhoneDestination = ['+' + '1234567890', '+' + '1234567890'] #list , seperated add phone numbers are desired
#Definitions to return the desired config values from above
def ReturnDropBoxAPIKey():
return DropBoxAPIKey
def ReturnSMTPPort():
return SMTPPort
def ReturnSMTPServer():
return SMTPServer
def ReturnSMTPLogin():
return SMTPLogin
def ReturnMailEnabled():
return MailEnabled
def ReturnSMTPToAddress():
return SMTPToAddress
def ReturnSMTPToAddress():
return SMTPToAddress
def ReturnTwilioSID():
return TwilioSID
def ReturnTwilioAuthToken():
return TwilioAuthToken
def ReturnTwilioSourcePhone():
return TwilioSourcePhone
def ReturnTwilioSMSEnabled():
return TwilioSMSEnabled
def ReturnTwilioMMSEnabled():
return TwilioMMSEnabled
def ReturnRDODProtoTXT():
return RTODPrototxt
def ReturnRTODModel():
return RTODModel
def ReturnRTODSystemConfidence():
return RTODSystemConfidence
def ReturnRTODFrameSleep():
return RTODFrameSleep
def ReturnAlertPhoneDestination():
return AlertPhoneDestination
def ReturnDectectionPercentage():
return DectectionPercentage
def ReturnAlertObjectType():
return AlertObjectType
def ReturnFaceDetectionEnabled():
return FaceDetectionEnabled
def ReturnAlertPhoneDestination2():
return AlertPhoneDestination2