简体   繁体   中英

How to import tesseract in python

Trying to extract text from image using tesseract python.Have installed tesseract....

tesseract 4.1.0-rc1-21-g8e83  
leptonica-1.77.0   
libjpeg 6b : libpng 1.2.54 : zlib 1.2.8  
Found AVX2  
Found AVX  
Found SSE

But getting the below error when trying to import tesseract in python file

import tesseract

ImportError: No module named 'tesseract'

  • Have you installed tesseract?
  • Have you installed pytesseract?
  • What code are you running?

Here's a tutorial on how to set up using pytesseract to use tesseract with python: https://www.linux.com/blog/using-tesseract-ubuntu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM