pytesseract.pytesseract.TesseractNotFoundError:
时间: 2023-11-16 21:18:14 浏览: 170
pytesseract.pytesseract.TesseractNotFoundError是一个错误,提示tesseract未安装或不在系统路径中。这个错误通常出现在使用pytesseract库时,因为pytesseract需要tesseract OCR引擎来进行图像识别。引用中提到,在cmd中可以运行tesseract,但在pycharm中运行时仍然出现错误。解决方法是在代码中添加以下代码来指定tesseract的安装路径:
pytesseract.pytesseract.tesseract_cmd = 'E:\\software\\Tesseract-OCR\\tesseract.exe'
这样,pytesseract将能够找到正确的tesseract安装路径,从而解决TesseractNotFoundError错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [报错:pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in your path](https://download.csdn.net/download/weixin_38551938/13749171)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [pytesseract报错pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your ...](https://blog.csdn.net/weixin_45941288/article/details/131297776)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python中使用pytesseract(tesseract OCR)报错(TesseractNotFoundError)解决方法](https://blog.csdn.net/qianya9/article/details/124094727)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文