当前位置:网站首页>Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
2022-07-06 11:06:00 【zkkkkkkkkkkkkk】
Catalog
One 、 Download the required files
2.1、 install tesseract-OCR file
2.2、 Configure installation options .
3、 ... and 、 Set the file read path
Preface :
Doing image recognition , When you need to recognize the text in the intercepted picture , If you encounter an error like the title . Look wrong, this should be tesseract Not downloaded or not in the path you set . Then let's start to solve .
One 、 Download the required files
Download address :Index of /tesseract Just find one of them as shown in the figure below
Two 、 install
2.1、 install tesseract-OCR file
Open the file you just downloaded , Remember this installation directory .
2.2、 Configure installation options .
Look at the language category chosen by individuals .
3、 ... and 、 Set the file read path
Get into python open pytesseract.py file , Find the following code line
tesseract_cmd = 'tesseract'
Change the top line to the bottom line ( Just now 2.1 Section installation path ):
tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
Four 、 Rerun program
After all the above is completed, you can run again Python Program , Try whether you can get results . On the Internet, it is said to configure environment variables, etc , But I can still run without configuration .
边栏推荐
- CSDN问答模块标题推荐任务(二) —— 效果优化
- Navicat 導出錶生成PDM文件
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- JDBC原理
- [BMZCTF-pwn] 11-pwn111111
- Navicat 导出表生成PDM文件
- API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
- Install MySQL for Ubuntu 20.04
- frp内网穿透那些事
- Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
机器学习--人口普查数据分析
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
Invalid global search in idea/pychar, etc. (win10)
Postman uses scripts to modify the values of environment variables
连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
A trip to Macao - > see the world from a non line city to Macao
MySQL19-Linux下MySQL的安装与使用
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
[recommended by bloggers] C WinForm regularly sends email (with source code)
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
随机推荐
Install mysql5.5 and mysql8.0 under windows at the same time
CSDN question and answer tag skill tree (I) -- Construction of basic framework
Solve the problem that XML, YML and properties file configurations cannot be scanned
@controller,@service,@repository,@component区别
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
【博主推荐】SSM框架的后台管理系统(附源码)
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
Some problems in the development of unity3d upgraded 2020 VR
[recommended by bloggers] C WinForm regularly sends email (with source code)
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
QT creator design user interface
CSDN问答标签技能树(五) —— 云原生技能树
数数字游戏
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
Attention apply personal understanding to images
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP
Copy constructor template and copy assignment operator template