Intelligent surveillance cam for Raspberry Pi