In reply to Martin Nicolaisen.

I haven't looked into a solution for alerting, I only played a little bit with the camera's built in system and I found it to be not very accurate (a lot of false positives), so I gave up.