summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-07-08 05:37:53 +0300
committerMaxim Devaev <[email protected]>2024-07-08 05:37:53 +0300
commitea285e3fec3335d3abe8bb19f4a60d37e3deb18d (patch)
tree8ef12145569a27f38ded43ad7afe6d3e15a77f23 /kvmd/apps
parent237d39b17224f09211cb242876717a7ef7c99d5b (diff)
lint fix
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/ocr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/ocr.py b/kvmd/apps/kvmd/ocr.py
index 2b669e68..bd30afa6 100644
--- a/kvmd/apps/kvmd/ocr.py
+++ b/kvmd/apps/kvmd/ocr.py
@@ -145,12 +145,12 @@ class Ocr:
if left < right and top < bottom:
image_cropped = image.crop((left, top, right, bottom))
image.close()
- image = image_cropped
+ image = image_cropped # type: ignore
ImageOps.grayscale(image)
image_resized = image.resize((int(image.size[0] * 2), int(image.size[1] * 2)), PilImage.Resampling.BICUBIC)
image.close()
- image = image_resized
+ image = image_resized # type: ignore
_libtess.TessBaseAPISetImage(api, image.tobytes("raw", "RGB"), image.width, image.height, 3, image.width * 3)
text_ptr = None