当前位置:网站首页>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 .
边栏推荐
- Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
- MySQL20-MySQL的数据目录
- Navicat 導出錶生成PDM文件
- [leectode 2022.2.13] maximum number of "balloons"
- [BMZCTF-pwn] 12-csaw-ctf-2016-quals hungman
- 【博主推荐】C#生成好看的二维码(附源码)
- [recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
- Armv8-a programming guide MMU (2)
- [recommended by bloggers] C WinForm regularly sends email (with source code)
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
猜你喜欢
Mysql21 user and permission management
MySQL21-用戶與權限管理
Postman uses scripts to modify the values of environment variables
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
CSDN question and answer tag skill tree (I) -- Construction of basic framework
【博主推荐】SSM框架的后台管理系统(附源码)
Win10: how to modify the priority of dual network cards?
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
CSDN question and answer module Title Recommendation task (II) -- effect optimization
随机推荐
基于apache-jena的知识问答
Idea import / export settings file
Classes in C #
02-项目实战之后台员工信息管理
Use dapr to shorten software development cycle and improve production efficiency
Swagger、Yapi接口管理服务_SE
CSDN问答标签技能树(一) —— 基本框架的构建
CSDN question and answer tag skill tree (II) -- effect optimization
解决:log4j:WARN Please initialize the log4j system properly.
csdn-Markdown编辑器
JDBC principle
35 is not a stumbling block in the career of programmers
Postman Interface Association
【博主推荐】C#MVC列表实现增删改查导入导出曲线功能(附源码)
MySQL18-MySQL8其它新特性
neo4j安装教程
[reading notes] rewards efficient and privacy preserving federated deep learning
February 13, 2022 - Maximum subarray and
Why can't I use the @test annotation after introducing JUnit
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share