Recognition of fingertips based on image segmentation