想识别一个图片里的字符
2.试了github上的一个开源包 https://github.com/netpi/baid...
识别准确率不高
3.请大家帮忙推荐好用的OCR识别包(php python node的都行)
谢谢
想识别一个图片里的字符
2.试了github上的一个开源包 https://github.com/netpi/baid...
识别准确率不高
3.请大家帮忙推荐好用的OCR识别包(php python node的都行)
谢谢
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
识别数字实测还是蛮准的,就算有部分字母也行
5 回答4.9k 阅读✓ 已解决
4 回答4.5k 阅读✓ 已解决
1 回答3.3k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
4 回答2.5k 阅读✓ 已解决
1 回答4.1k 阅读✓ 已解决
可以使用pytesser或者pytesseract识别简单图形验证码,比如图片

结果图: