Video surveillance gets smart