Surveillance
Raspberry Pi Surveillance #
One of the hobby projects:
- Keep on capturing pictures in a loop, compare current picture with last picture, if the difference in pixel is more than threshold, capture a high resolution image, save it to RAM disk (so that memory card is safe from frequent read write operations), rename the image using date and time; e-mail it with date in subject field.
- Run a cron job to delete temporary files older than 20 minutes.
- Run the script as service and use another to monitor the service, on failure restart the service.
Python script to detect motion #
(To Do: add git link for the code here))