Skip to content

Commit

Permalink
Hotfix: Implemeted requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuk Manojlovic committed Jul 31, 2024
1 parent f8f3e72 commit 4b8a590
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions coretex/entities/annotation/image/bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class BBox(Codable):
"""

def __init__(self, minX: int = 0, minY: int = 0, width: int = 0, height: int = 0) -> None:
self.minX: int = minX
self.minY: int = minY
self.minX = minX
self.minY = minY

self.width: int = width
self.height: int = height
self.width = width
self.height = height

@property
def maxX(self) -> int:
Expand Down Expand Up @@ -179,7 +179,6 @@ def iou(self, other: 'BBox') -> float:
unionArea = self.area + other.area - intersectionArea
return intersectionArea / unionArea if unionArea > 0 else 0.0


def inflate(self, percentage: int, imageSize: Optional[Tuple[Union[int, float], Union[int, float]]] = None) -> None:
"""
Increases the size of the bounding box by a percentage
Expand Down

0 comments on commit 4b8a590

Please sign in to comment.