A Vision-Based Technique for Lay Length Measurement of Metallic Wire Ropes