Python的OCR工具pytesseract解决TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information环境变量问题
pytesseract是基于Python的OCR工具, 底层使用的是Google的Tesseract-OCR 引擎,支持识别图片中的文字,支持jpeg, png, gif, bmp, tiff等图片格式。
如何安装使用请看我的上一篇。
在使用pytesseract打开图片是遇到没有找到文件解决pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.

解决办法:
1.添加环境变量 系统-属性-高级-环境变量
系统变量path添加tesseract的安装路径D:\Program Files\tesseract

2.系统变量增加一个TESSDATA_PREFIX变量名,变量值还是安装路径D:\Program Files\tesseract\tessdata这是语言字库文件夹

3.修改D:\python路径\Lib\site-packages\pytesseract\pytesseract.py文件
tesseract_cmd = r'D:\Program Files\tesseract\tesseract.exe'

然后就可以了

Python的OCR工具pytesseract解决TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information环境变量问题的更多相关文章
- 解决:pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your PATH. See README file for more information.
		问题:使用pytesseract库识别图片中文字时出现报错 代码: import pytesseract from PIL import Image,ImageEnhance img=Image.op ... 
- pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path  && FileNotFoundError: [WinError 2] 系统找不到指定的文件。
		C:\Users\k\Desktop\test>python test.py Traceback (most recent call last): File , in run_tesseract ... 
- pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path
		使用pytesseract识别验证码中遇到异常如下: pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installe ... 
- 解决pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path问题
		解决方案: 找到python的安装路径下的pytesseract: 例如我的是 C:\develop\Python\Lib\site-packages\pytesseract .用文本编辑器打开 ... 
- Python 进行 OCR识别 -- pytesseract库
		pip install pytesseract 报错:tesseract is not installed or it's not in your path 下载安装 Tesseract-OCR ht ... 
- python中文ocr方案-pytesseract
		pytesseract是google维护的具有学习功能的OCR引擎,3.0以后支持中文识别. 安装: 1. 安装tesseract-ocr组件:记得同步下载简体中文与英文语言包. 2. 安装PIL,需 ... 
- python基础系列教程——Python的安装与测试:python的IDE工具PyDev和pycharm,anaconda
		---恢复内容开始--- python基础系列教程——Python的安装与测试:python的IDE工具PyDev和pycharm,anaconda 从头开启python的开发环境搭建.安装比较简单, ... 
- Android开发之配置adb工具的环境变量
		在Android开发中,adb是一个非常好用也非常使用的工具,可是使用的时候假设没有改动环境变量,每一次都须要输入全然路径非常麻烦.解决的方法是在环境变量中加入adb工具的路径. Windows平台 ... 
- python解释器的安装;python2与python3同时在环境变量中时的解决方案
		新文档 html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,addres ... 
- VSCode的Python扩展下程序运行的几种方式与环境变量管理
		在VSCode中编写Python程序时,由于有些地方要使用环境变量,但是发现设置的环境变量有时不起作用,花了点时间研究了一下,过程不表,直接说结论. 首先,环境变量的设置,Python扩展中有三种方式 ... 
随机推荐
- iOS中委托使用小结
			1.声明委托对象,并根据需要设置方法为可选还是必选,默认设置可选@optional @protocol CCHighSeasPoolDistributeDelegate <NSObject> ... 
- ADO.NET 连接数据库 【vs2022 + sqlServer】
			using System.Data; using System.Data.SqlClient; namespace Zhu.ADO.NET { internal class Program { pri ... 
- LEAP: Learning to Prescribe Effective and Safe Treatment Combinations for Multimorbidity
			LEAP: Learning to Prescribe Effective and Safe Treatment Combinations for Multimorbidity Authors: Yu ... 
- CEOI2022
			Day1 T1 Abracadabra 题意:给你一个 \(1 \sim n\) 的排列 \(p\),保证 \(n\) 为偶数,我们对它进行足够多次数的洗牌操作,定义一次洗牌为: 考虑取出 \(p_{ ... 
- [Java/日志] 日志框架打印应用程序日志代码的执行情况
			0 引言 我常以为 INFO 日志级别的 应用程序日志代码,不会被执行(比如,实验1中的printTestLog函数).但今天线上的问题,证实了这个思路是错的. 1 验证实验 版本信息 jdk : 1 ... 
- 如何使用 GoGoCode 一键 Vue2 转换 Vue3
			前言 从今年年初开始,项目开始升级优化,将之前的 Vue2 旧版本整体升级到 Vue3 版本.在重写了几个 Vue 文件后,我发现做的都是一些机械性的工作,效率低且重复性大.于是就试着搜索了一下有没有 ... 
- 低配置PC环境下的魔兽世界游戏体验:ToDesk云电脑性能测试分析
			近期魔兽世界再度开服,吸引了众多游戏老玩家回归.然而随着游戏内容的不断更新,其对电脑配置的要求也在逐渐升提高.对于许多电脑配置较低的老玩家,如何在不升级硬件的情况下流畅运行魔兽世界成为了一个难题. 随 ... 
- 微积分 Calculus
			前言 如果你的工作中没有用到微积分,毫无疑问,你的工作是简单而枯燥的. 0 limit Say there is a function \(f(x) = x\). \(x \rightarrow a\ ... 
- TRLO: An Efficient LiDAR Odometry with 3D Dynamic Object Tracking and Removal
			arxiv | 中科院联合国科大开源 TRLO:一种结合3D动态物体跟踪与移除的高效LiDAR里程计 [TRLO: An Efficient LiDAR Odometry with 3D Dynami ... 
- ClearCLIP:倒反天罡,删除两个组件反而可以提升密集预测性能 | ECCV'24
			来源:晓飞的算法工程笔记 公众号,转载请注明出处 论文: ClearCLIP: Decomposing CLIP Representations for Dense Vision-Language I ... 
