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

Function convert_cnn_detections_to_css

face_recognition/api.py:143–144  ·  view source on GitHub ↗
(detections)

Source from the content-addressed store, hash-verified

141 :return: A list of tuples of found face locations in css (top, right, bottom, left) order
142 """
143 def convert_cnn_detections_to_css(detections):
144 return [_trim_css_to_bounds(_rect_to_css(face.rect), images[0].shape) for face in detections]
145
146 raw_detections_batched = _raw_face_locations_batched(images, number_of_times_to_upsample, batch_size)
147

Callers

nothing calls this directly

Calls 2

_trim_css_to_boundsFunction · 0.85
_rect_to_cssFunction · 0.85

Tested by

no test coverage detected