From ad62fc6e22dabc5a3d70114473d07c46d56bb68e Mon Sep 17 00:00:00 2001 From: Alexander Golodkov Date: Thu, 5 Sep 2024 14:22:55 +0300 Subject: [PATCH] small fix --- dedocutils/data_structures/bbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dedocutils/data_structures/bbox.py b/dedocutils/data_structures/bbox.py index c287037..bf14ac7 100644 --- a/dedocutils/data_structures/bbox.py +++ b/dedocutils/data_structures/bbox.py @@ -52,7 +52,7 @@ def y_bottom_right(self) -> int: def crop_image_by_box(image: np.ndarray, bbox: "BBox") -> np.ndarray: return image[bbox.y_top_left:bbox.y_bottom_right, bbox.x_top_left:bbox.x_bottom_right] - def shift_bbox(self, shift_x: int, shift_y: int) -> None: + def shift(self, shift_x: int, shift_y: int) -> None: self.x_top_left += shift_x self.y_top_left += shift_y