Smart Surveillance for Safe Cities