[python]没有属性“TessBaseAPI" [英] [python]has no attribute 'TessBaseAPI'

查看:24
本文介绍了[python]没有属性“TessBaseAPI"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译代码时出错:

import tessercat
api = tesseract.TessBaseAPI()

错误是:

AttributeError:'module' 对象没有属性 'TessBaseAPI'

AttributeError:'module' object has no attribute 'TessBaseAPI'

我已经通过 pip 安装了 tesseract.Python 版本为 2.7 Windows 32 位.

I have already installed tesseract via pip. The Python version is 2.7 Windows 32bit.

推荐答案

我认为您正在尝试使用 tesseract (python-tesseract) 的 python 包装器.确保您使用的是正确的版本.你可以看看这个:python-tesseract-0.7.6.win32-py2.7.exe

I think you are trying to use python wrapper of tesseract (python-tesseract). Make sure you are using the right version. You can check this one: python-tesseract-0.7.6.win32-py2.7.exe

这篇关于[python]没有属性“TessBaseAPI"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆