python 驗證碼問題

來源:互聯網
上載者:User

標籤:   驗證碼   google   程式   python   

tesseract-ocr-setup-3.02.02.exe  :https://sourceforge.net/projects/tesseract-ocr-alt/files/tesseract-ocr-setup-3.02.02.exe/download?use_mirror=jaist&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Ftesseract-ocr-alt%2Ffiles%2F&use_mirror=jaist



關於python驗證碼識別庫,網上主要介紹的為pytesser及pytesseract,其實pytesser的安裝有一點點麻煩,所以這裡我不考慮,直接使用後一種庫。

python驗證碼識別庫安裝,Windows環境設定

要安裝pytesseract庫,必須先安裝其依賴的PIL及tesseract-ocr,其中PIL為影像處理庫,而後面的tesseract-ocr則為google的ocr識別引擎。

1、PIL :

PIL-1.1.7.win-amd64-py2.7.exe    64位系統  需放到python下面

PIL-1.1.7.win32-py2.7.exe   

直接

或者直接使用pillow來代替,使用方法基本沒有什麼區別。

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

2、tesseract-ocr:

tesseract-ocr-setup-3.02.02.exe   下載之後直接運行安裝即可

3、pytesseract安裝

直接使用 pip install pytesseract安裝即可,或者使用easy_install pytesseract


識別率還挺高的,當然這也和驗證碼本身有關,因為這個驗證碼設計的比較容易識別。

python 驗證碼問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.