MCPcopy
hub / github.com/ageitgey/face_recognition / _raw_face_landmarks

Function _raw_face_landmarks

face_recognition/api.py:151–162  ·  view source on GitHub ↗
(face_image, face_locations=None, model="large")

Source from the content-addressed store, hash-verified

149
150
151def _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
165def face_landmarks(face_image, face_locations=None):

Callers 2

face_landmarksFunction · 0.85
face_encodingsFunction · 0.85

Calls 2

_raw_face_locationsFunction · 0.85
_css_to_rectFunction · 0.85

Tested by

no test coverage detected