diff options
author | Maxim Devaev <[email protected]> | 2024-07-08 05:37:53 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-08 05:37:53 +0300 |
commit | ea285e3fec3335d3abe8bb19f4a60d37e3deb18d (patch) | |
tree | 8ef12145569a27f38ded43ad7afe6d3e15a77f23 /kvmd/apps | |
parent | 237d39b17224f09211cb242876717a7ef7c99d5b (diff) |
lint fix
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/ocr.py | 4 |
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 |