There's a channel on YouTube called "The Hook Up" that has a lot of good videos about home automation. Here's his playlist of videos he's made on security cameras:
Blue Iris is a Windows-only program. There are others available on other platforms, and they may or may not have support for running external machine learning systems for this kind of purpose.
On the Mac, check out SecuritySpy. On Linux and Unix, check out Shinobi.
On the Mac, check out SecuritySpy. On Linux and Unix, check out Shinobi.