Skip to content

Commit

Permalink
Bounding box calc adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrevmatias committed Mar 6, 2021
1 parent 21aa13f commit a1ae9b0
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 138 deletions.
2 changes: 1 addition & 1 deletion lapixdl/convert/labelbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __bounding_rect_from_polygon(polygon: List[Tuple[int, int]]) -> List[int]:
h = max[1] - min[1]
w = max[0] - min[0]

return [min[0], max[1], w, h]
return [min[0], min[1], w, h]


def __generate_coco_annotations(img_labels: List[dict], img_id: int, annotation_first_id: int, classes: List[str]) -> List[dict]:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='lapixdl',
packages=find_packages(exclude=['tests']),
version='0.7.3',
version='0.7.4',
description='Utils for Computer Vision Deep Learning research',

long_description=long_description,
Expand Down
Loading

0 comments on commit a1ae9b0

Please sign in to comment.