python-tesseract - PyTesseract - 安装问题

标签 python-tesseract

在尝试运行我的脚本时,我遇到了 Pytesseract 问题。 我是通过pip安装的,并安装了exe文件。 但是,当尝试运行以下简化代码时:

import pytesseract

pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
text = pytesseract.image_to_string(rotated_image)

我经常受到以下错误代码的困扰:

OSError: [WinError 740] The requested operation requires elevation

我对我的笔记本电脑拥有管理员权限,但不是主帐户。 任何帮助将不胜感激。

最佳答案

以管理员身份运行终端或 IDE。

enter image description here

然后,关于OSError: [WinError 740] The requests of operation requireleving的错误应该消失了。

关于python-tesseract - PyTesseract - 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60443302/

相关文章:

python - 字符串比较在python中不起作用

python - 如何使用tesseract从图像的特定坐标提取文本?

python - 在 Mac OS X 上安装 tesseract/pytesser

python - OpenCV 和 Tesseract 进行门标签检测

python - pip install tesserocr 失败,出现错误 "Failed building wheel for tesserocr"

opencv - pytesseract已安装但缺少?

python - 是什么导致 pytesseract 根据是否使用 opencv 或枕头读取双行图像的顶部或底部文本行?

python - 如何将 tesseract 添加到我的 Docker 容器中以便我可以使用 pytesseract

python - 使用 OpenCV 识别前景色和背景色

python - Pytesseract image_to_string空输出