当前位置:网站首页>图像识别问题 — 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程序,试试可不可以跑出结果。看网上说要配置环境变量等等,但是我没有配置也照样能跑。
边栏推荐
- Mysql27 index optimization and query optimization
- Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
- Texttext data enhancement method data argument
- MySQL19-Linux下MySQL的安装与使用
- MySQL flush operation
- CSDN question and answer module Title Recommendation task (II) -- effect optimization
- MySQL23-存儲引擎
- Mysql25 index creation and design principles
- MySQL master-slave replication, read-write separation
- Postman environment variable settings
猜你喜欢
Did you forget to register or load this tag 报错解决方法
【博主推荐】SSM框架的后台管理系统(附源码)
Leetcode 461 Hamming distance
csdn-Markdown编辑器
Mysql24 index data structure
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
Asp access Shaoxing tourism graduation design website
Mysql35 master slave replication
Mysql21 user and permission management
CSDN问答模块标题推荐任务(二) —— 效果优化
随机推荐
Copy constructor template and copy assignment operator template
Mysql27 - Optimisation des index et des requêtes
【博主推荐】SSM框架的后台管理系统(附源码)
C language string function summary
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
MySQL 20 MySQL data directory
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
CSDN blog summary (I) -- a simple first edition implementation
MySQL21-用戶與權限管理
Installation and use of MySQL under MySQL 19 Linux
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
Copie maître - esclave MySQL, séparation lecture - écriture
@Controller, @service, @repository, @component differences
[recommended by bloggers] C WinForm regularly sends email (with source code)
Install MySQL for Ubuntu 20.04
SSM整合笔记通俗易懂版
CSDN question and answer module Title Recommendation task (II) -- effect optimization
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
FRP intranet penetration