当前位置:网站首页>图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
2022-07-06 09:13:00 【zkkkkkkkkkkkkk】
目录
前言:
在做图像识别,需要对截取的图片识别其中的文字时,遇到如标题的报错。看错误这应该是tesseract 没有下载或者是没在你设置的路径中。那么我们开始解决。
一、下载所需文件
下载地址:Index of /tesseract 如下图找到其中一个下载即可
二、安装
2.1、 安装tesseract-OCR文件
打开刚刚下载的文件,记住此安装目录。
2.2、配置安装选项。
看个人选择语言类别。
三、设置文件读取路径
进入python打开pytesseract.py文件,找到如下代码行
tesseract_cmd = 'tesseract'
将上面的一行改为下面的一行(就是刚刚2.1小节安装的路径):
tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
四、重新运行程序
以上全部完成后就可以重新运行Python程序,试试可不可以跑出结果。看网上说要配置环境变量等等,但是我没有配置也照样能跑。
边栏推荐
- Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
- MySQL24-索引的数据结构
- JDBC原理
- [recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
- MySQL19-Linux下MySQL的安装与使用
- Win10: how to modify the priority of dual network cards?
- MySQL21-用户与权限管理
- Mysql27 index optimization and query optimization
- C language string function summary
- 【博主推荐】C#MVC列表实现增删改查导入导出曲线功能(附源码)
猜你喜欢
CSDN question and answer module Title Recommendation task (II) -- effect optimization
Asp access Shaoxing tourism graduation design website
Some problems in the development of unity3d upgraded 2020 VR
MySQL24-索引的数据结构
MySQL21-用户与权限管理
CSDN Q & a tag skill tree (V) -- cloud native skill tree
IDEA 导入导出 settings 设置文件
Mysql21 - gestion des utilisateurs et des droits
Other new features of mysql18-mysql8
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
随机推荐
Kubernetes - problems and Solutions
虚拟机Ping通主机,主机Ping不通虚拟机
【博主推荐】C# Winform定时发送邮箱(附源码)
[reading notes] rewards efficient and privacy preserving federated deep learning
[leectode 2022.2.13] maximum number of "balloons"
Solution: log4j:warn please initialize the log4j system properly
【博主推荐】C#生成好看的二维码(附源码)
Swagger, Yapi interface management service_ SE
项目实战-后台员工信息管理(增删改查登录与退出)
[recommended by bloggers] C WinForm regularly sends email (with source code)
[paper reading notes] - cryptographic analysis of short RSA secret exponents
CSDN问答标签技能树(二) —— 效果优化
Django运行报错:Error loading MySQLdb module解决方法
Mysql 其他主机无法连接本地数据库
Mysql27 - Optimisation des index et des requêtes
记某公司面试算法题:查找一个有序数组某个数字出现的次数
Ansible practical Series III_ Task common commands
[recommended by bloggers] C # generate a good-looking QR code (with source code)
csdn-Markdown编辑器
CSDN question and answer tag skill tree (II) -- effect optimization