Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
Prince Kalu authored and Prince Kalu committed Jul 31, 2024
1 parent 32983d4 commit dda48d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion camera.py
Expand Up @@ -153,4 +153,12 @@ def upload_to_firebase(file_path, blob_name):
print(f'File {file_path} uploaded to {blob_name}.')

upload_to_firebase(mp4_video_path_macbook, f'motion_detected_macbook_{timestamp}.mp4')
upload_to_firebase(mp4_video_path_iphone, f'motion_detected_iphone_{timestamp}.mp4')
upload_to_firebase(mp4_video_path_iphone, f'motion_detected_iphone_{timestamp}.mp4')

# Clean up
macbook_camera.release()
out_macbook.release()
if iphone_camera.isOpened():
iphone_camera.release()
out_iphone.release()
cv2.destroyAllWindows()

0 comments on commit dda48d4

Please sign in to comment.