Fixed some bugs.
This commit is contained in:
parent
cd4859af83
commit
4c11c9ad17
449 changed files with 61 additions and 17 deletions
|
@ -208,7 +208,8 @@ if __name__=="__main__":
|
|||
time.sleep(1)
|
||||
camera.capture('/home/pi/Vehicle-Anti-Theft-Face-Recognition-System/sensor/picture'+str(car.counter)+'.jpg')
|
||||
camera.close()
|
||||
storage.child('Photos_of_Thieves/Thief_Sensor/picture'+str(car.counter)+'.jpg').put('/home/pi/Vehicle-Anti-Theft-Face-Recognition-System/sensor/picture'+str(car.counter)+'.jpg')
|
||||
storage.child('Photos_of_Thieves/Thief_Sensor/picture'+str(car.counter)+'.jpg')\
|
||||
.put('/home/pi/Vehicle-Anti-Theft-Face-Recognition-System/sensor/picture'+str(car.counter)+'.jpg')
|
||||
car.counter+=1
|
||||
car.firebase.database().child("signal").child(1).child("counter").set(car.counter)
|
||||
time.sleep(1)
|
||||
|
|
|
@ -91,4 +91,5 @@ with picamera.PiCamera(resolution='1080x720', framerate=24) as camera:
|
|||
server = StreamingServer(address, StreamingHandler)
|
||||
server.serve_forever()
|
||||
finally:
|
||||
camera.stop_recording()
|
||||
camera.stop_recording()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue