Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCR识别缺少File文件识别 #1166

Closed
94zhaoyueran opened this issue Aug 21, 2019 · 7 comments
Closed

OCR识别缺少File文件识别 #1166

94zhaoyueran opened this issue Aug 21, 2019 · 7 comments

Comments

@94zhaoyueran
Copy link

看到3.3.0的时候公众号和小程序没有OCR识别,但是再3.5.0-MP的时候看懂了OCR识别,但是是参数是URL,缺少FileImage文件识别方法。

我写了个想FileImage识别的相关代码(@test通过),如果这边没有时间的话我可以推过来。

@binarywang
Copy link
Owner

确实只实现了一部分,你如果有现成测试通过的代码,欢迎随时提交PR,不用问,我们肯定是欢迎的。

@binarywang
Copy link
Owner

#1002 关联issue

@goodcto
Copy link

goodcto commented Aug 21, 2019

还有 。WxMaService 里面也需要这个功能的。 官方提供的组件 不能获取到图片流

@binarywang
Copy link
Owner

还有 。WxMaService 里面也需要这个功能的。 官方提供的组件 不能获取到图片流

你可以考虑抽取公共核心逻辑到common模块里,然后小程序和公众号模块都可以用

@94zhaoyueran
Copy link
Author

呀,这个抽取到common的话没有什么核心逻辑呀,就是实现了一个RequestExecutor

@binarywang
Copy link
Owner

我说的就是解析响应数据的逻辑,如果你觉得实现起来有难度,先把代码提交上来吧,后期我再来做优化

@94zhaoyueran
Copy link
Author

解析响应数据的逻辑,是用的现在已经有的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants