python映像文字識別

來源:互聯網
上載者:User
最近在想沒有一個圖片文字識別的工具呢?我想到了OCR,國內比較牛逼的漢王OCR。那藉助python能否實現呢?於是我找啊找查啊查有關PYthon在這方面探討的資料,發現PyTesser 這樣一個好玩的程式!拿出來分享討論一下:

PyTesser 是python的一個光學字元辨識模組,它結合Tesseract OCR引擎來使用 ,能從一個圖片或影像檔取出的字串並輸出。

使用PyTesser ,你無須安裝Tesseract OCR引擎,但就必須要先安裝PIL模組(Python Image Library, python的圖形庫)

官方介紹說明:

PyTesser is an Optical Character Recognition module for Python. It takes as input an image or image file and outputs a string.

PyTesser uses the Tesseract OCR engine, converting images to an accepted format and calling the Tesseract executable as an external script. A Windows executable is provided along with the Python scripts. The scripts should work in other operating systems as well.

PyTesser 官方下載地址:http://code.google.com/p/pytesser/downloads/list

PIL庫資源地址: http://www.pythonware.com/products/pil/

不過,在測試使用過程中,發覺只對英文內容識別較理想,而對中文無法處理識別!

有興趣的同學可以實驗一下

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.