geometry
geometry
Geometry helpers used by image and video workflows.
Functions
| Name | Description |
|---|---|
| extend_bbox | Return bbox coordinates expanded by a margin and clipped to the frame. |
| select_best_face | Select one face by bbox size or centrality. |
extend_bbox
geometry.extend_bbox(bbox, frame_shape, margin_factor)Return bbox coordinates expanded by a margin and clipped to the frame.
select_best_face
geometry.select_best_face(img_shape, faces, criterion='size')Select one face by bbox size or centrality.