Ref : https://gitlab.com/greenlabs/dataset-reviewer/-/blob/filter_bbox_small/dataset_reviewer/utils/filter_bbox_small.py