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
Traceback (most recent call last):
File "main.py", line 97, in
main()
File "main.py", line 73, in main
question, option_arr, is_negative = analyze.image_to_str(crop_img, is_baidu_ocr, baidu_ocr_clint) # 图片转文字
File "/Users/didi/PycharmProjects/hq-answer-assist/analyze.py", line 53, in image_to_str
question, option_arr = tesseract_orc(image)
File "/Users/didi/PycharmProjects/hq-answer-assist/analyze.py", line 60, in tesseract_orc
text = pytesseract.image_to_string(image, lang='chi_sim')
File "/Users/didi/Library/Python/2.7/lib/python/site-packages/pytesseract/pytesseract.py", line 108, in image_to_string
image = Image.merge("RGB", (r, g, b))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2067, in merge
im.putband(bands[i].im, i)
TypeError: must be ImagingCore, not ImagingCore`
The text was updated successfully, but these errors were encountered:
我是Python 2.7,运行中题目出现的时候就报以下错误是什么原因呢,小白求指教
`$ python main.py
Traceback (most recent call last):
File "main.py", line 97, in
main()
File "main.py", line 73, in main
question, option_arr, is_negative = analyze.image_to_str(crop_img, is_baidu_ocr, baidu_ocr_clint) # 图片转文字
File "/Users/didi/PycharmProjects/hq-answer-assist/analyze.py", line 53, in image_to_str
question, option_arr = tesseract_orc(image)
File "/Users/didi/PycharmProjects/hq-answer-assist/analyze.py", line 60, in tesseract_orc
text = pytesseract.image_to_string(image, lang='chi_sim')
File "/Users/didi/Library/Python/2.7/lib/python/site-packages/pytesseract/pytesseract.py", line 108, in image_to_string
image = Image.merge("RGB", (r, g, b))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2067, in merge
im.putband(bands[i].im, i)
TypeError: must be ImagingCore, not ImagingCore`
The text was updated successfully, but these errors were encountered: