Detection of the Presence of Safety Helmets on Motorcyclists Using Active Appearance Models