babysister.cv_logics module¶
CV logics
-
babysister.cv_logics.
iou
(bbox1, bbox2)¶ Calculates the intersection-over-union of two bounding boxes.
Parameters: - bbox1 (numpy.array, list of floats) – bounding box in format x1,y1,x2,y2.
- bbox2 (numpy.array, list of floats) – bounding box in format x1,y1,x2,y2.
Returns: intersection-over-onion of bbox1, bbox2.
Return type: