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 <[email protected]> napĂsal(a): > 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> > > > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/2646252a-ac50-4407-8a16-1810673f4881%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/2646252a-ac50-4407-8a16-1810673f4881%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8xevGHWKpUgBQmJph_kWgnb03WoptrDVooM_BuN6eXrqw%40mail.gmail.com.

