Comments (12)
Your error is on this line:
pytesseract.pytesseract.tesseract_cmd = '/usr/local/Cellar/tesseract/3.05.01/'
You should point the tesseract_cmd to the exact path of the tesseract executable and not to the path of the folder where the tesseract executable is located, which is what you did.
Try this line instead:
pytesseract.pytesseract.tesseract_cmd = '/usr/local/Cellar/tesseract/3.05.01/tesseract'
Also be sure that you have the tesseract executable inside the folder.
from pytesseract.
@diyali03 You can try to issue the following command in order to locate the path of tesseract:
which tesseract
from pytesseract.
Please type "Which Tesseract" in the terminal which will provide the path of Tesseract executable. This resolved my error !
from pytesseract.
Please reopen if you still have the issue.
from pytesseract.
Thanks.
But the problem is that I build tesseract from Homebrew,
I check the dir and it shows that :
$ ls
AUTHORS LICENSE include
COPYING NEWS lib
ChangeLog README.md share
INSTALL_RECEIPT.json bin
$ cd ..
$ ls
3.05.01
$ cd ..
$ ls
tesseract
Also, I try to set the path on:
/usr/local/Cellar/tesseract
or
/usr/local/Cellar/tesseract/3.05.01/share
But it did work.
from pytesseract.
May be I should try set the path to bin?
from pytesseract.
I have same problem
Traceback (most recent call last):
File "/Users/zhangxin/project/crawl/douban/douban_spider/identify.py", line 25, in
return_word()
File "/Users/zhangxin/project/crawl/douban/douban_spider/identify.py", line 22, in return_word
return pytesseract.image_to_string(binaryImage, config='-psm 7')
File "/Users/zhangxin/Desktop/py_3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 122, in image_to_string
config=config)
File "/Users/zhangxin/Desktop/py_3/lib/python3.6/site-packages/pytesseract/pytesseract.py", line 46, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 707, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1326, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
from pytesseract.
I solved the problem by the way you thank you
from pytesseract.
Thanks , I just solve this problem through your way
from pytesseract.
vi ~/.bash_profile
#tesseract
export PATH="/usr/local/Cellar/tesseract/4.0.0/bin:$PATH"
source ~/.bash_profile
tesseract_cmd = "/usr/local/Cellar/tesseract/4.0.0/bin/tesseract"
that's all!
from pytesseract.
how to check for tesseract executable in google colab. inline is my screenshot
from pytesseract.
Same error as above in Colab Notebook. Any help would be appreciated.
from pytesseract.
Related Issues (20)
- Boxes of images (within text) HOT 2
- Spaces and Dots HOT 1
- newline character in data frame output
- ModuleNotFoundError: No module named 'pytesseract' HOT 6
- Orientated text detection HOT 1
- pytesseract's openMP runtime conflicts with CLIP HOT 6
- Python 3.11.4 changes the output of image_to_data HOT 4
- Can't pass citation mark character into tessedit_char_whitelist HOT 2
- Update PyPI package to pytesseract v0.3.13 HOT 4
- [Feature Request] Wrapper around training HOT 3
- image_to_data default output type is string HOT 2
- Deprecation warning raised in python 3.12 HOT 1
- Unsupported image object when using numpy.ndarray image HOT 2
- I think you need to improve character recognition by using and implementing ChatGPT in OCR HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\guess\\AppData\\Local\\Temp\\tess_gtrqc8za.hocr' HOT 3
- Tesseract OCR Language Data Configuration Error in Python Environment HOT 4
- PyTesseract cannot read my number HOT 2
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- NPM can't find Tesseract OCR even though it's installed and I can't update git HOT 1
- Solving environment: killed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytesseract.