Can't you use IVS and send email based on the IVS-event?
Still not answering your original question as I think there are better ways
Edit: what camera are we talking about? Is SMD possible?
Identifying Only people is a really really hard task. What distances and light are we talking about?