Video Analysis for Ambient intelligence in Urban Environments