An automatic system for the real time characterization of vehicle headlamp beams exploiting image analysis