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导入功能 #132

Open
deanjoson opened this issue Jul 28, 2021 · 4 comments
Open

希望支持OCR导入功能 #132

deanjoson opened this issue Jul 28, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@deanjoson
Copy link

deanjoson commented Jul 28, 2021

因为有定投或者临时加仓的基金,所以持仓份额和持仓成本会经常变化,希望能通过OCR的形式导入支付宝和天天基金的持仓数据。具体可参考“养基宝”小程序的逻辑

至于OCR可以直接使用百度的API,可以增加配置,让每个用户配置自己的秘钥。macs上的翻译工具Bob就是这样
image

@1zilc 1zilc added the enhancement New feature or request label Jul 28, 2021
@1zilc
Copy link
Owner

1zilc commented Jul 29, 2021

ocr的识别来源还是用户提供的截图对吗

@deanjoson
Copy link
Author

嗯 是的,提供一键清空功能,我几乎每天都有定投,所以每天都会变化份额和成本价。所以我每天都会在养基宝一键清空持仓,然后重新截屏蚂蚁持仓,导入图片进行重新识别。这样当天的数据会比较准一些。

@1zilc
Copy link
Owner

1zilc commented Jul 29, 2021

如果你有能力能提供一个现成识别方案,我可以帮你集成,需要实现输入图片,返回这个结构:

{
  code: string; // 基金代码(必填)
  name?: string; // 基金名称
  cyfe?: number; // 持有份额
  cbj?: number; // 持仓成本价
}[]

@null-NULL-nil
Copy link

图片识别也是好做的,毕竟都有免费服务在这里,我可以做一做,有几个问题需要确认

  1. @deanjoson 每天定投会变化,可以截取持仓基金的详细信息,然后做不同的判断,最终输出作者所需要的格式,但是需要适配的客户端就很多,比如支付宝的基金界面,蛋卷的基金界面。。巴拉巴拉的很多,需要适配一堆,这个得提供各种财富类app的相应截图
  2. 我感觉这个方案只在手机上可行,我电脑上的这个还需要手机截图传输到电脑才行,功能性一般 @deanjoson 有没有好的方式在电脑上 也可行? 毕竟我安装电脑端就是为了不用手机

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

No branches or pull requests

3 participants