opencv and python: how to use cv2.surf() with mask
问题 I am a newbie at opencv and python and am trying to collect keypoints and descriptors of faces within an image. I am using HAAR cascade classifier with frontal face template to look for faces in an image. The HAAR cascade gives me a list of coordinates marking the faces in the image. I want to generate a "mask" at those coordinates so that I can use cv2.surf() to extract keypoints and descriptors within the masked region. I don't know how to create that mask. Try this photo as an example to