方法介绍
方法名称:bdOcr 百度ocr
语法:bdOcr(url,apikey,secretkey)
参数说明:url可以是网络图片也可以是本地图片,apikey和secretkey需要自己在百度进行申请
返回值: 返回一个json 例子如:{"words_result":[{"words":"名称:ur.r"},{"words":"大小:1KB"}],"log_id":1302556202114220032,"words_result_num":2}
方法例子
local path = "/mnt/sdcard/test.png"
snapShot(path,66,119,248,186)
local ret = bdOcr(path,"Yub8co6xdEfmMHykqg38GXhB","Hyhbsc1yGf78E65ETcn1wZvPV2lnKXwZ")
print("bdocr:",ret)