3D measurement on automated lines