当前位置:网站首页>图像识别问题 — 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程序,试试可不可以跑出结果。看网上说要配置环境变量等等,但是我没有配置也照样能跑。
边栏推荐
- 记一次某公司面试题:合并有序数组
- API learning of OpenGL (2002) smooth flat of glsl
- Swagger, Yapi interface management service_ SE
- CSDN Q & a tag skill tree (V) -- cloud native skill tree
- MySQL21-用户与权限管理
- Just remember Balabala
- Invalid global search in idea/pychar, etc. (win10)
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
- Data dictionary in C #
猜你喜欢
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
CSDN博文摘要(一) —— 一个简单的初版实现
MySQL28-数据库的设计规范
CSDN blog summary (I) -- a simple first edition implementation
Mysql24 index data structure
Copie maître - esclave MySQL, séparation lecture - écriture
Install mysql5.5 and mysql8.0 under windows at the same time
MySQL19-Linux下MySQL的安装与使用
Breadth first search rotten orange
MySQL24-索引的数据结构
随机推荐
Idea import / export settings file
记一次某公司面试题:合并有序数组
Database middleware_ MYCAT summary
MySQL 20 MySQL data directory
frp内网穿透那些事
Kubesphere - deploy the actual combat with the deployment file (3)
Principes JDBC
MySQL flush operation
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Yum prompt another app is currently holding the yum lock; waiting for it to exit...
Moteur de stockage mysql23
CSDN问答标签技能树(二) —— 效果优化
MySQL28-数据库的设计规范
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
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
Ansible practical Series II_ Getting started with Playbook
MySQL21-用戶與權限管理
[Li Kou 387] the first unique character in the string
[C language foundation] 04 judgment and circulation
CSDN问答标签技能树(一) —— 基本框架的构建