聆客开放平台

# ocrRecognize

图片识别文字

# 输入

继承标准对象输入,扩展属性描述

名称 数据类型 必填 默认值 描述
imagePath string 图片本地路径地址

# 输出

继承标准对象输出,无扩展属性

# 示例代码

app.link.ocrRecognize("file://", function(res){
    app.alert(res);
}, function(err){
    app.alert(res);
});