Pytesseract: UnicodeDecodeError: 'charmap' codec can't decode byte

后端 未结 2 1488
一整个雨季
一整个雨季 2020-12-21 02:25

I\'m running a large number of OCRs on screenshots with Pytesseract. This is working well in most cases, but a small number is causing this error:

pytesserac         


        
2条回答
  •  误落风尘
    2020-12-21 02:49

    make sure you are using the right decoding options.
    see https://docs.python.org/3/library/codecs.html#standard-encodings

    str.decode('utf-8')
    bytes.decode('cp950') for Traditional Chinese, etc

提交回复
热议问题