JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
23.66k stars 3.1k forks source link

'charmap' codec can't encode character '\u2588' in position 12: character maps to <undefined> #1017

Open Sharrnah opened 1 year ago

Sharrnah commented 1 year ago

I know this issue already existed here: #298

But i can't solve it like mentioned there because i am building it using PyInstaller which just ignores setting the environment variable PYTHONIOENCODING=utf-8 and/or PYTHONUTF8=1

And it is the only library thet seems to have a problem with it. Is there any other solution to it?

It also seems to work perfectly fine when the models are already downloaded. So i think its really just the downloading of models thats broken?

Edit: I found a workaround. it works when setting verbose=False.

it won't display any download progress anymore, but at least the download succeeds and OCR processing is done.

umutarpayy commented 3 months ago

BROTHER THANK YOU. YOU JUST SAVED MY LIFE <3