Skip to content

some questions in utils.augmentations.py  #3

@YingdiZhang

Description

@YingdiZhang

in line 9:
def intersect(box_a, box_b):
max_xy = np.minimum(box_a[:, 2:], box_b[2:])
min_xy = np.maximum(box_a[:, :2], box_b[:2])
inter = np.clip((max_xy - min_xy), a_min=0, a_max=np.inf)
return inter[:, 0] * inter[:, 1]
what is the meaning of box_a and box_b? dose it means four coordinates of bounding box?
(xmin,ymin,xmax,ymax) . And what exactly does max_xy and min_xy mean? I am a little confused here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions