An algorithm for recognising litchi under varying illumination was developed.
A label template-based matching algorithm was proposed for unstructured environments.
System can recognise and match non-occluded and occluded litchis.
Errors were less than 15 mm when the measuring distance was 300–1600 mm.