AlterMe

图像识别

2019-06-20 13:36  JaysonChan  阅读(412)  评论(0编辑  收藏  举报

import requests
from aip import AipOcr

image = requests.get(\'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561018802199&di=a89a8bd343933040b1beea127012e9c4&imgtype=0&src=http%3A%2F%2Fgss0.baidu.com%2F-Po3dSag_xI4khGko9WTAnF6hhy%2Fzhidao%2Fpic%2Fitem%2F342ac65c10385343705f67ac9113b07ecb8088af.jpg\').content

APP_ID = \'16149264\'
API_KEY = \'yxYg9r4OuAs4fYvfcl8tqCYd\'
SECRET_KEY = \'yWg3KMds2muFsWs7MBSSFcgMQl8Wng4s\'

client = AipOcr(APP_ID, API_KEY, SECRET_KEY)
res = client.basicGeneral(image)
if \'words_result\' in res.keys():
for item in res[\'words_result\']:
print(item[\'words\'])
else:
print(res)

分类:

技术点:

相关文章:

  • 2021-12-25
  • 2021-10-26
  • 2021-09-23
  • 2021-10-08
  • 2021-11-21
  • 2022-01-20
  • 2021-08-07
  • 2021-09-04
猜你喜欢
  • 2021-09-23
  • 2021-09-04
相关资源
相似解决方案