Hi, some general comments for regarding improving the system.
- Allow 4/8 sided polygons for detection areas, not just rectangles.
- Record some video before the trigger event
- Include SMS/email notifications.
- Possibly include Push notifications via IFTTT