# """ 带参数调用通用文字识别, 图片参数为本地图片 """
try:
result = client.basicGeneral(image, options)
except:
print('网络问题')
resultword = result['words_result']
num = result['words_result_num']
OCRtext = []
for i in range(0,num):
print(resultword[i]['words'])
OCRtext.append(resultword[i]['words'])
OutPutOCRtext='\n'.join(OCRtext)
contents.SetValue(OutPutOCRtext)
错误信息:resultword = result['words_result','not exist']
KeyError: ('words_result', 'not exist')