tesseract ocr识别

安装好tesseract

sudo apt install tesseract-ocr
sudo apt install libtesseract-dev

最简单的指令是:

tesseract 111.png outputbase.txt -l eng
tesseract ocr识别_第1张图片
要识别图片

结果

The (quick) [brown] {fox} jumps!
Over the $43,456.78  #90 dog
& duck/goose, as 12.5% of E-mail
from [email protected] is spam.
Der ,.schnelle” braune Fuchs springt
iiber den faulen Hund. Le renard brun
«rapide» saute par-dessus le chien
paresseux. La volpe marrone rapida
salta sopra il cane pigro. El zorro
marron rapido salta sobre el perro
perezoso. A raposa marrom rapida
salta sobre o céo preguicoso.
tesseract ocr识别_第2张图片
屏幕快照 2018-11-21 15.19.15.png

可以配合python使用
参考链接:
https://github.com/tesseract-ocr/tesseract/wiki
https://mp.weixin.qq.com/s?__biz=MzA4MjEyNTA5Mw==&mid=2652567323&idx=1&sn=6c4260241f60cc89e865d6dc52d8ca1c&chksm=8464df51b3135647692594d74cee55a5ac4624153943d02ee5c8f5436e91a0f847c0af2358e5&scene=21#wechat_redirect
https://github.com/songluyi/pytesser3

你可能感兴趣的:(tesseract ocr识别)