OpenCV wearing a hat