Detection and Classification of Vehicle Types from Moving Backgrounds