Created
April 26, 2021 08:46
-
-
Save licsber/66e803884dfdb97e3cc8d8aef42c9a51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import aip | |
| APP_ID = '1' | |
| API_KEY = '2' | |
| SECRET_KEY = '3' | |
| def run_all(c, start=0): | |
| dirs = dir(c) | |
| print(len(dirs)) | |
| for i in range(start, len(dirs)): | |
| if dirs[i].startswith('_'): | |
| continue | |
| print(i) | |
| try: | |
| res = eval(f"c.{dirs[i]}(test_image)") | |
| print(res) | |
| except Exception as e: | |
| print(e, dirs[i]) | |
| if __name__ == '__main__': | |
| test_image = open('../datasets/Kirito.jpg', 'rb').read() | |
| for i in dir(aip): | |
| if i.startswith('Aip'): | |
| client = eval(f"aip.{i}(APP_ID, API_KEY, SECRET_KEY)") | |
| run_all(client) |
Author
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
公有云服务免费测试额度调整
发布日期:2021-04-24 16:00浏览量:7309次
为响应《中华人民共和国网络安全法》及相关法律规定关于落实用户实名认证的要求,综合考虑用户对各产品服务的测试需要,百度智能云AI产品公有云服务将于2021年5月27日对部分产品调整免费测试额度。
调整涉及7个产品方向:文字识别、人脸识别、人体分析、内容审核、图像识别、图像搜索、图像增强与特效。
调整原则:
1)未实名认证用户:7个产品方向所有接口的免费测试额度均按下方表格调整。
2)已实名认证用户:若从未调用过某产品的接口,该产品方向所有接口的免费测试额度均按下方表格调整;若曾调用过该产品的接口(任一接口即可),则该产品方向下所有接口免费测试额度不做调整。
如果您希望保留某产品方向原有免费测试额度,请在收到本通知之日起30日内登录控制台,完成实名认证并成功调用该产品方向下任一接口,我们会为您保留该产品方向下所有接口原有免费测试额度。
如有疑问,可随时提交工单咨询,感谢您的理解与支持。