(face_image, face_locations=None, model="large")
| 149 | |
| 150 | |
| 151 | def _raw_face_landmarks(face_image, face_locations=None, model="large"): |
| 152 | if face_locations is None: |
| 153 | face_locations = _raw_face_locations(face_image) |
| 154 | else: |
| 155 | face_locations = [_css_to_rect(face_location) for face_location in face_locations] |
| 156 | |
| 157 | pose_predictor = pose_predictor_68_point |
| 158 | |
| 159 | if model == "small": |
| 160 | pose_predictor = pose_predictor_5_point |
| 161 | |
| 162 | return [pose_predictor(face_image, face_location) for face_location in face_locations] |
| 163 | |
| 164 | |
| 165 | def face_landmarks(face_image, face_locations=None): |
no test coverage detected