i was trying to fetch data from image to sting, i got the error module is missing

477 views
Skip to first unread message

Sai Krishna

unread,
Feb 7, 2020, 2:30:13 AM2/7/20
to tesseract-ocr
module 'pytesseract' has no attribute 'image_to_string'

PS E:\python\OpenpyxlBlogPost-master\source\pms> pip install pytesseract
Requirement already satisfied: pytesseract in c:\users\admin\appdata\local\programs\python\python37-32\lib\site-packages (0.3.2)
Requirement already satisfied: Pillow in c:\users\admin\appdata\local\programs\python\python37-32\lib\site-packages (from pytesseract) (6.2.1)
PS E:\python\OpenpyxlBlogPost-master\source\pms> python pytesseract.py --image=C:\Users\Admin\Desktop\getCapchaImage.jpg
---Resolving
Traceback (most recent call last):
  File "pytesseract.py", line 44, in <module>
    captcha_text = solve_captcha(path)
  File "pytesseract.py", line 34, in solve_captcha
    text = pya.image_to_string(img)
AttributeError: module 'pytesseract' has no attribute 'image_to_string'
PS E:\python\OpenpyxlBlogPost-master\source\pms>





Zdenko Podobny

unread,
Feb 7, 2020, 2:33:38 AM2/7/20
to tesser...@googlegroups.com
Check out  pytesseract doc how to use it.
Reading docs can cure a lot of pain.
 
Zdenko


pi 7. 2. 2020 o 8:30 Sai Krishna <s...@verveindia.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/2646252a-ac50-4407-8a16-1810673f4881%40googlegroups.com.

Lakshay Saini

unread,
Feb 7, 2020, 4:06:26 AM2/7/20
to tesseract-ocr
Pytesseract does not work properly. Use ocrmypdf instead. It has both command line and coding functionality.
Reply all
Reply to author
Forward
0 new messages