Skip to content

ty0x2333/XujcCaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xujc Captcha

License Get Start

  1. install PIL

Debian:

$ sudo apt-get install python-imaging

OS X or Other Linux:

$ sudo easy_install PIL

Other platform:

see PIL Home

  1. install pytesser
$ sudo apt-get install tesseract-ocr
$ sudo pip install pytesseract
  1. copy training_data

copy training_data/xujc.traineddata to your/tesseract-ocr/path/tessdata/xujc.traineddata

eg. Ubuntu:

$ sudo cp ./training_data/xujc.traineddata /usr/share/tesseract-ocr/tessdata/xujc.traineddata
  1. run test script
$ python test.py

F&Q

  1. pytesseract.pytesseract.TesseractError: (1, 'Error opening data file /usr/share/tesseract-ocr/tessdata/xujc.traineddata')

Make sure that you have copied the tessdata/xujc.traineddata file to /usr/share/tesseract-ocr/tessdata

License

XujcCaptcha is available under the MIT license. See the LICENSE file for more info.

Releases

No releases published

Packages

No packages published