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)
| 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, |