Skip to content

Commit 4c3700c

Browse files
authored
Merge pull request #2 from carchi8py/0.3
0.3
2 parents d80ceda + fa60e01 commit 4c3700c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

detector.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
import boto3
66
from time import sleep
77

8+
89
class Detector(object):
910
def __init__(self):
10-
#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
1112
self.pir = MotionSensor(4, threshold=0.5)
1213
self.camera = PiCamera()
1314
self.source_photo = 'test.jpg'
@@ -67,11 +68,11 @@ def print_results(self, results):
6768
for each in results['Labels']:
6869
print(each['Name'] + ": " + str(each['Confidence']))
6970

70-
71+
7172
def main():
7273
obj = Detector()
7374
obj.start()
7475

7576

7677
if __name__ == "__main__":
77-
main()
78+
main()

0 commit comments

Comments
 (0)