Also put Tesseract and Pytesseract path in the environment variables

On Monday, May 28, 2018 at 9:32:13 AM UTC+5:30, bryan lee wrote:
>
> Hi All, 
>
> Help needed, i know this is very basic as i am not able to continue from 
> here. 
> I was trying to use pytesseract.
> Below is what i have done:
> I am using anaconda --> Jupyter notebook --> Python 3.6
> First i install pytesseract
> !conda install -c jim-hart pytesseract
>
> Then i install tesseract-ocr-setup-3.02.02.exe  --> (via url: 
> https://osdn.net/projects/sfnet_tesseract-ocr-alt/downloads/tesseract-ocr-setup-3.02.02.exe/)
>  
> and install
>
> Then i follow:
>
> try:
>     import Imageexcept ImportError:
>     from PIL import Imageimport pytesseract
>
> pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files 
> (x86)\\Tesseract-OCR\\tesseract'
>
> Error i get as below:
>
> ---------------------------------------------------------------------------AttributeError
>                             Traceback (most recent call 
> last)<ipython-input-10-47d2996c02fd> in <module>()----> 1 
> pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files 
> (x86)\\Tesseract-OCR\\tesseract'
> AttributeError: module 'pytesseract' has no attribute 'pytesseract'
>
>
> Help needed.
>
> Bryan
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/885251cb-69c9-4249-820b-eb4648c81e15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to