We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d80ceda + fa60e01 commit 4c3700cCopy full SHA for 4c3700c
detector.py
@@ -5,9 +5,10 @@
5
import boto3
6
from time import sleep
7
8
+
9
class Detector(object):
10
def __init__(self):
- #4 = the pin on the Rasberry pi that the MotionSensor is connected to
11
+ # 4 = the pin on the Rasberry pi that the MotionSensor is connected to
12
self.pir = MotionSensor(4, threshold=0.5)
13
self.camera = PiCamera()
14
self.source_photo = 'test.jpg'
@@ -67,11 +68,11 @@ def print_results(self, results):
67
68
for each in results['Labels']:
69
print(each['Name'] + ": " + str(each['Confidence']))
70
-
71
72
def main():
73
obj = Detector()
74
obj.start()
75
76
77
if __name__ == "__main__":
- main()
78
+ main()
0 commit comments