Skip to content

Commit

Permalink
min -> max
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sekachev committed Oct 16, 2018
1 parent 44ddfee commit e836b8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cvat/apps/tf_annotation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def _check_instruction(instruction):
)

def _normalize_box(box, w, h, dw, dh):
xmin = max(int(box[0] * dw * w), w)
ymin = max(int(box[1] * dh * h), h)
xmax = max(int(box[2] * dw * w), w)
ymax = max(int(box[3] * dh * h), h)
xmin = min(int(box[0] * dw * w), w)
ymin = min(int(box[1] * dh * h), h)
xmax = min(int(box[2] * dw * w), w)
ymax = min(int(box[3] * dh * h), h)
return xmin, ymin, xmax, ymax

result = {}
Expand Down

0 comments on commit e836b8f

Please sign in to comment.