Python Image Recognition Error 2

Source: Internet
Author: User

Windowserror happened.
Message=[error 2]
StackTrace:
The c:\python27amd64\lib\subprocess.py:640 in Popen._execute_child
The c:\python27amd64\lib\subprocess.py:390 in popen.__init__
The c:\python27amd64\lib\site-packages\pytesseract\pytesseract.py:47 in Run_tesseract
The c:\python27amd64\lib\site-packages\pytesseract\pytesseract.py:123 in image_to_string
The C:\users\yu-we\desktop\projects\toolssuite\pythondatacatcher\imageidentification.py:9 in GETIMAGEDATE.M

Download the configuration path by tutorial

Pytesseract PIL

and installation TESSERACT-OCR

The above error occurred:

Cause: The program file was not found when the child process was started. Under Check, it is a path problem. There is no problem with the path, but it is wrong. Add a R to the front

Solve.

What does adding R mean?

Cited:

Open (R ' C: \ ... ') when opening a file

Plus R and no ' R ' are different

' R ' is to prevent character escaping if ' \ t ' in the path does not add r, then \ t will be escaped and added ' R ' after ' \ t ' can retain the original appearance

The string assignment is preceded by ' R ' to prevent the string from escaping when the principle is to precede the escape character with ' \ '

Python Image Recognition Error 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.