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