Optical Length and Velocity Measurement for Production Processing