Hair detection, segmentation, and hairstyle classification in the wild