想识别一个图片里的字符
2.试了github上的一个开源包 https://github.com/netpi/baid...
识别准确率不高
3.请大家帮忙推荐好用的OCR识别包(php python node的都行)
谢谢
做爬虫的时候,试验了各种ocr工具,都是很扯,验证码稍微一不规整就无法识别,最后采取人工打码的方式。
捷速OCR文字识别软件
百度有OCR接口,只是文字必须要规范的才可以
tesseract-ocr 这个试试 github上有
python有个包叫pyocr
from PIL import Image from pyocr import pyocr # brew install tesseract def pic_recognization(img): tools = pyocr.get_available_tools() res = tools[0].image_to_string(Image.open(img)) return res
识别数字实测还是蛮准的,就算有部分字母也行
可以使用pytesser或者pytesseract识别简单图形验证码,比如图片
结果图: