Skip to content

v0.4.0

Latest

Choose a tag to compare

@isarandi isarandi released this 21 Jul 12:19

What's New

  • Fixed crop_image producing wrong output for boxes lying entirely outside the image
  • crop_image now supports grayscale (2D) images and rounds half-pixels consistently
  • crop_image with pad=False now returns only the part of the box inside the image
  • iou and giou no longer return NaN for degenerate (zero-area) boxes
  • iou and giou now compute in double precision, fixing errors at very large coordinates
  • area no longer overflows for large integer boxes
  • intersection_vertical now returns zero height for vertically disjoint boxes
  • contains now accepts plain lists as boxes
  • full now validates that exactly one of imshape/imsize is given and returns float32
  • random_partial_box is now part of the public API
  • Expanded test suite with regression tests for all of the above
  • Added CI running the tests on Python 3.9-3.13