diff --git a/coretex/entities/annotation/image/bbox.py b/coretex/entities/annotation/image/bbox.py index d151a727..ab385e89 100644 --- a/coretex/entities/annotation/image/bbox.py +++ b/coretex/entities/annotation/image/bbox.py @@ -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: @@ -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