# 印刷体识别

API 参数 说明 返回值
waitUntilGetImageFromCamera 调取摄像头上传图片 图片的 base64 数据
generalBasicOCRV2 可选:
url
image
填写印刷体图片的地址链接
检测图片的 base64 数据
得到的文字识别结果 result
返回值 类型 属性
generalBasicOCR-Res 字典 文字:text
# 示例-印刷体识别
from ailib import *

generalTextImage = waitUntilGetImageFromCamera()
_aiGeneralTextOCRResult = generalBasicOCRV2(generalTextImage)
print(_aiGeneralTextOCRResult['text'])