-
业务场景:
- 使用RPA获取业务系统网站的验证码截图,将截图转base64之后传到百度OCR文字识别接口,获取文字识别结果,将识别结果用作登陆业务系统的验证码凭证。从而解决RPA自动登录系统的问题。
- 设计思路:
样例:
https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=你的百度APIKey&client_secret=你的百度SecretKey
参数 |
值 |
access_token |
通过API Key和Secret Key获取的access_token,参考“Token获取” |
参数 |
值 |
Content-Type |
application/x-www-form-urlencoded |
返回参数(这里只展示我们需要用到的返回参数)
字段 |
是否必选 |
类型 |
说明 |
words_result |
是 |
array[] |
识别结果数组 |
words_result_num |
是 |
uint32 |
识别结果数,表示words_result的元素个数 |
+ words |
否 |
string |