Utility¶
-
utils.
draw_bounding_box
(image, bbox)[source]¶ Draw all bounding box inside image as red rectangle
Parameters: - image – image where draw the bounding box
- bbox – array of bounding boxes as (x,y,w,h) where x,y is the topleft corner of the rectangle
Returns: image with bbox drawn
-
utils.
rect_similarity
(rect1, rect2)[source]¶ Check whatever two rect are similar with a tolerance of 10px in center distance and 0.1 in area ratio