Video analysis for Investigation of Criminal and Terrorist Activities