We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbad57f commit cf1561fCopy full SHA for cf1561f
rapid_latex_ocr/utils.py
@@ -75,7 +75,7 @@ def minmax_size(
75
ratios = [a / b for a, b in zip(img.size, self.max_dims)]
76
if any([r > 1 for r in ratios]):
77
size = np.array(img.size) // max(ratios)
78
- img = img.resize(size.astype(int), Image.BILINEAR)
+ img = img.resize(tuple(size.astype(int)), Image.BILINEAR)
79
80
if self.min_dims is not None:
81
padded_size: List[Union[int, int]] = [
0 commit comments