You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I’m running into the following issue when I try to capture text with the current build (0.3.9, also happens in 0.3.8). I guess this is some kind of version mismatch regarding PIL? I’m using python-pillow 9.2.0.
AttributeError: module 'PIL.Image' has no attribute 'Resampling'
Traceback:
File "/usr/lib/python3.10/site-packages/normcap/gui/tray.py", line 215, in _capture_to_ocr
ocr_result = ocr.recognize(
File "/usr/lib/python3.10/site-packages/normcap/ocr/recognize.py", line 28, in recognize
image = enhance.preprocess(image, resize_factor=resize_factor, padding=padding_size)
File "/usr/lib/python3.10/site-packages/normcap/ocr/enhance.py", line 82, in preprocess
image = resize_image(image, factor=resize_factor)
File "/usr/lib/python3.10/site-packages/normcap/ocr/enhance.py", line 57, in resize_image
resample=Image.Resampling.LANCZOS, # type: ignore
File "/home/REDACTED/.local/lib/python3.10/site-packages/PIL/Image.py", line 62, in __getattr__
raise AttributeError("module '{}' has no attribute '{}'".format(__name__, name))
The text was updated successfully, but these errors were encountered:
Hi, I’m running into the following issue when I try to capture text with the current build (0.3.9, also happens in 0.3.8). I guess this is some kind of version mismatch regarding PIL? I’m using python-pillow 9.2.0.
System:
Variables:
Exception:
Traceback:
The text was updated successfully, but these errors were encountered: