Python SDK调用,出错,求助。
Ta的回复 :补充一点,是自定义模板。 from aip import AipOcr """ 你的 APPID AK SK """ APP_ID = '***************' API_KEY = '****************************' SECRET_KEY = '********************************' client = AipOcr(APP_ID, API_KEY, SECRET_KEY) """ 读取图片 """ def get_file_content(filePath): with open(filePath, 'rb') as fp: return fp.read() image = get_file_content('E:/Desktop/pycharm.png') templateSign = "***********************" """ 调用自定义模版文字识别 """ client.custom(image, templateSign)