当前位置:网站首页>图像识别问题 — 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程序,试试可不可以跑出结果。看网上说要配置环境变量等等,但是我没有配置也照样能跑。
边栏推荐
- Development of C language standard
- Other new features of mysql18-mysql8
- Remember a company interview question: merge ordered arrays
- How to change php INI file supports PDO abstraction layer
- Win10: how to modify the priority of dual network cards?
- Mysql35 master slave replication
- MySQL23-存储引擎
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
猜你喜欢

Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)

【博主推荐】SSM框架的后台管理系统(附源码)

MySQL28-数据库的设计规范

Data dictionary in C #

CSDN问答模块标题推荐任务(一) —— 基本框架的搭建

Mysql28 database design specification
![[recommended by bloggers] C # generate a good-looking QR code (with source code)](/img/5a/1dbafe5a28f016b815964b9b37c9f1.jpg)
[recommended by bloggers] C # generate a good-looking QR code (with source code)

Just remember Balabala
![[recommended by bloggers] C WinForm regularly sends email (with source code)](/img/5d/57f8599a4f02c569c6c3f4bcb8b739.png)
[recommended by bloggers] C WinForm regularly sends email (with source code)

解决:log4j:WARN Please initialize the log4j system properly.
随机推荐
Armv8-a programming guide MMU (2)
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
Solution: log4j:warn please initialize the log4j system properly
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
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
【博主推荐】C#生成好看的二维码(附源码)
Yum prompt another app is currently holding the yum lock; waiting for it to exit...
Opencv uses freetype to display Chinese
Mysql30 transaction Basics
CSDN question and answer tag skill tree (I) -- Construction of basic framework
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
CSDN问答模块标题推荐任务(二) —— 效果优化
[untitled]
Asp access Shaoxing tourism graduation design website
Mysql 其他主机无法连接本地数据库
MySQL25-索引的创建与设计原则
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
Principes JDBC
Postman environment variable settings
CSDN blog summary (I) -- a simple first edition implementation