-
Notifications
You must be signed in to change notification settings - Fork 48
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
ocr调用tesseract失败 #19
Comments
Hi, Can you tell me what operating system you are using ? Also, please include the output if |
``> > 您好,机器上成功安装tesseract5.0.0后,使用kreuzberg调用tesseract失败,请问需要更改什么配置吗,报错如下:
windows10系统,tesseract安装在D盘下,并配置了环境变量。 |
Thanks, I'll look into it ASAP. If you like to explore and submit a fix - you can modify the regex in If you do, submit a PR with the fix! |
你把 |
Im trying to understand what you write by translating it, but its not optimal :) The library doesnt use pytesseract at all. See kreuzberg._tesseract.py |
Im trying to understand what you write by translating it, but its not optimal :)
The library doesnt use pytesseract at all. See kreuzberg._tesseract.py
Yes I understand that. He said he also tried pytesseract and was able to use it after manually modifying `pytesseract.pytesseract.tesseract_cmd`. I guess this may be an issue with his tesseract executable name or PATH env. So I'm asking the tesseract_cmd value that he was using.
|
修改成tesseract的安装路径 |
Oh thanks 🙏. |
如果pytesseract需要用绝对路径调用的话说明还是可能是环境变量配置的问题。能否在python中运行确认一下 import os
print(os.environ['PATH']) |
您好,机器上成功安装tesseract5.0.0后,使用kreuzberg调用tesseract失败,请问需要更改什么配置吗,报错如下:
kreuzberg.exceptions.MissingDependencyError: MissingDependencyError: Tesseract is not installed or not in path. Please install tesseract 5 and above on your system.
cmd中tesseract -v正常显示版本号,且使用pytesseract,在修改pytesseract.pytesseract.tesseract_cmd 后也可以正常使用。
The text was updated successfully, but these errors were encountered: