A Machine Vision for Automated Headlamp Lens Inspection