MCPcopy
hub / github.com/1adrianb/face-alignment / get_landmarks

Method get_landmarks

face_alignment/api.py:169–181  ·  view source on GitHub ↗

Deprecated, please use get_landmarks_from_image Arguments: image_or_path {string or numpy.array or torch.tensor} -- The input image or path to it Keyword Arguments: detected_faces {list of numpy.array} -- list of bounding boxes, one for each face found

(self, image_or_path, detected_faces=None, return_bboxes=False, return_landmark_score=False)

Source from the content-addressed store, hash-verified

167 return net
168
169 def get_landmarks(self, image_or_path, detected_faces=None, return_bboxes=False, return_landmark_score=False):
170 """Deprecated, please use get_landmarks_from_image
171
172 Arguments:
173 image_or_path {string or numpy.array or torch.tensor} -- The input image or path to it
174
175 Keyword Arguments:
176 detected_faces {list of numpy.array} -- list of bounding boxes, one for each face found
177 in the image (default: {None})
178 return_bboxes {boolean} -- If True, return the face bounding boxes in addition to the keypoints.
179 return_landmark_score {boolean} -- If True, return the keypoint scores along with the keypoints.
180 """
181 return self.get_landmarks_from_image(image_or_path, detected_faces, return_bboxes, return_landmark_score)
182
183 @torch.no_grad()
184 def get_landmarks_from_image(self, image_or_path, detected_faces=None, return_bboxes=False,

Callers 10

test_predict_pointsMethod · 0.95
test_max_batch_size_1Method · 0.95
test_landmarksMethod · 0.80
test_landmarksMethod · 0.80
test_landmarksMethod · 0.80
test_landmarksMethod · 0.80
test_landmarksMethod · 0.80
test_detect_all_facesMethod · 0.80

Calls 1

Tested by 9

test_predict_pointsMethod · 0.76
test_max_batch_size_1Method · 0.76
test_landmarksMethod · 0.64
test_landmarksMethod · 0.64
test_landmarksMethod · 0.64
test_landmarksMethod · 0.64
test_landmarksMethod · 0.64
test_detect_all_facesMethod · 0.64