把微信的 OCR 功能提取出来做 Docker 服务

170 天前
 bybyte

众所周知,微信的 OCR 识别又快又准,于是就想提出来代替某某桨的识别

https://github.com/golangboy/wxocr

docker 拉取下来 直接 post 请求即可

docker pull golangboyme/wxocr
curl -X POST http://localhost:5000/ocr \
  -H "Content-Type: application/json" \
  -d '{"image": "BASE64_ENCODED_IMAGE_DATA"}'
37396 次点击
所在节点    分享创造
246 条回复
keller
170 天前
666 下午试试
sunfly
170 天前
牛逼趁着删库前赶紧 clone 下来
woshivu
170 天前
我去,我怎么感觉微信的 ocr 不如其他的识别精准呀
leyoumake1997
170 天前
牛娃
GetOctober
170 天前
https://imgur.com/a/uk6an1c
@bybyte 这个是测试的图片
bigtear
170 天前
不错的项目,starstar
bybyte
170 天前
@GetOctober 我测试返回:OCR 识别成功!结果如下:
{'errcode': 0, 'height': 190, 'imgpath': 'temp/4ec69547-1144-42ec-9911-dc1c4c932d01.png', 'ocr_response': [{'bottom': 74.109375, 'left': 36.328125, 'rate': 0.9704948663711548, 'right': 714.9375, 'text': 'WeChat OCR API Docker 微信 OCR API Docker', 'top': 43.59375}, {'bottom': 124.96875, 'left': 36.328125, 'rate': 0.9854483604431152, 'right': 614.671875, 'text': "A Dockerized REST APl service for text recognition using WeChat's OCR engine.", 'top': 108.984375}, {'bottom': 158.390625, 'left': 37.78125, 'rate': 0.9666333198547363, 'right': 494.0625, 'text': '使用微信 OCR 引擎进行文本识别的 Dockerized REST API 服务。', 'top': 139.5}], 'width': 930}
maxwel1
170 天前
哈哈哈,腾讯出了个 linux 版本亏大了,还有薅腾讯羊毛的。不过微信不同客户端的代码实现不太一样,不知道跟移动端是不是一样效果
lovestudykid
170 天前
微信的条码、二维码识别也是遥遥领先,试过很多 AppStore 里专门的条码扫描 APP ,都不如微信。要是能做成一个单独的 APP 就好了。
bigtan
170 天前
我看似乎跟 https://modelscope.cn/models/iic/cv_convnextTiny_ocr-recognition-general_damo 这个项目很像。我在本地部署了一个验证码识别的服务,用的是 https://huggingface.co/xiaolv/ocr-captcha, 基于读光训练的。
dbit
170 天前
确实有的图片一个字也识别不出来
sunnysab
170 天前
@lovestudykid #29 微信(手机版)的二维码识别貌似用云端的。记得看到过相关技术文章,而且实际也能感觉出来。
dbit
170 天前
@GetOctober #25 这个图片我试了也识别不出来
MonkeyJon
170 天前
我刚准备执行,发现公司不让用 docker ,已经卸载了
swat199538
170 天前
@sunnysab 求技术文章,最近在优化公司的条形码识别和二维码识别速度
yulgang
170 天前
🐂🍺
letitbesqzr
170 天前
wxocr-master docker run -p 5000:5000 --name wechat-ocr-api golangboyme/wxocr

OCR4: OCR not supported


不支持 linux 么?
lengrongec
170 天前
一键封神
cheese
170 天前
@lovestudykid 真*遥遥领先,又快又准
break2002
170 天前
感谢,不会代码的人也用上了.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1120897

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX