Skip to content

Commit

Permalink
Merge pull request #2 from carchi8py/0.3
Browse files Browse the repository at this point in the history
0.3
  • Loading branch information
carchi8py committed Apr 3, 2021
2 parents d80ceda + fa60e01 commit 4c3700c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import boto3
from time import sleep


class Detector(object):
def __init__(self):
#4 = the pin on the Rasberry pi that the MotionSensor is connected to
# 4 = the pin on the Rasberry pi that the MotionSensor is connected to
self.pir = MotionSensor(4, threshold=0.5)
self.camera = PiCamera()
self.source_photo = 'test.jpg'
Expand Down Expand Up @@ -67,11 +68,11 @@ def print_results(self, results):
for each in results['Labels']:
print(each['Name'] + ": " + str(each['Confidence']))


def main():
obj = Detector()
obj.start()


if __name__ == "__main__":
main()
main()

0 comments on commit 4c3700c

Please sign in to comment.