当前位置:网站首页>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 .
边栏推荐
- Idea import / export settings file
- MySQL主从复制、读写分离
- 安全测试涉及的测试对象
- Ansible practical series I_ introduction
- CSDN Q & a tag skill tree (V) -- cloud native skill tree
- Introduction to the easy copy module
- Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.
- Install mysql5.5 and mysql8.0 under windows at the same time
- windows下同时安装mysql5.5和mysql8.0
- Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
猜你喜欢

图片上色项目 —— Deoldify

Postman Interface Association

Django运行报错:Error loading MySQLdb module解决方法

Copie maître - esclave MySQL, séparation lecture - écriture

LeetCode #461 汉明距离
![[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP](/img/7d/8cbbd2f328a10808319458a96fa5ec.jpg)
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP

CSDN问答标签技能树(五) —— 云原生技能树

Classes in C #

IDEA 导入导出 settings 设置文件

QT creator specifies dependencies
随机推荐
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
JDBC原理
MySQL flush operation
MySQL other hosts cannot connect to the local database
CSDN question and answer tag skill tree (I) -- Construction of basic framework
一键提取pdf中的表格
Attention apply personal understanding to images
Windows下安装MongDB教程、Redis教程
Solution: log4j:warn please initialize the log4j system properly
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
01项目需求分析 (点餐系统)
Ubuntu 20.04 安装 MySQL
csdn-Markdown编辑器
[leectode 2022.2.13] maximum number of "balloons"
February 13, 2022 - Maximum subarray and
SSM integrated notes easy to understand version
QT creator specifies dependencies
NPM an error NPM err code enoent NPM err syscall open
安装numpy问题总结
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP