Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: must be ImagingCore, not ImagingCore #10

Open
kkkkkky opened this issue Jan 16, 2018 · 0 comments
Open

TypeError: must be ImagingCore, not ImagingCore #10

kkkkkky opened this issue Jan 16, 2018 · 0 comments

Comments

@kkkkkky
Copy link

kkkkkky commented Jan 16, 2018

我是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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant