aardio 文档
process.wxOcr.OcrResponse 库模块帮助文档
process.wxOcr.OcrResponse 成员列表 #
Protobuf 消息对象。
所有 Protobuf 消息对象都可用 table.parseValue 转为普通表,
可用 JSON.stringify 直接转换为 JSON 。
process.wxOcr.OcrResponse.OcrResult() #
创建 Protobuf 消息对象。
返回对象:bfc37b1asponseOcrResultObject
58d30c14ResultPosPosXYObject 成员列表 #
58d30c14ResultPosPosXYObject.eachName() #
for k,v in 58d30c14ResultPosPosXYObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
58d30c14ResultPosPosXYObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
58d30c14ResultPosPosXYObject.serializeToString() #
序列化消息对象,返回二进制字符串
58d30c14ResultPosPosXYObject.x #
protobuf.type.float
58d30c14ResultPosPosXYObject.y #
protobuf.type.float
7671c335ResultResultPosObject 成员列表 #
7671c335ResultResultPosObject.eachName() #
for k,v in 7671c335ResultResultPosObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
7671c335ResultResultPosObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
7671c335ResultResultPosObject.pos #
不作为函数调用时,用于返回或设置数组。
7671c335ResultResultPosObject.pos() #
返回对象:58d30c14ResultPosPosXYObject
7671c335ResultResultPosObject.pos(index,value) #
如果作为函数调用:
修改值时参数 @index 指定元素索引,参数 @value 指定元素值。
获取值时用参数 @index 指定数组索引即可
7671c335ResultResultPosObject.serializeToString() #
序列化消息对象,返回二进制字符串
a35ef3b6ResultOneResultObject 成员列表 #
a35ef3b6ResultOneResultObject.eachName() #
for k,v in a35ef3b6ResultOneResultObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
a35ef3b6ResultOneResultObject.onePos #
返回对象:7671c335ResultResultPosObject
a35ef3b6ResultOneResultObject.oneStrUtf8 #
protobuf.type.bytes
a35ef3b6ResultOneResultObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
a35ef3b6ResultOneResultObject.serializeToString() #
序列化消息对象,返回二进制字符串
bfc37b1asponseOcrResultObject 成员列表 #
bfc37b1asponseOcrResultObject.eachName() #
for k,v in bfc37b1asponseOcrResultObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
bfc37b1asponseOcrResultObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
bfc37b1asponseOcrResultObject.serializeToString() #
序列化消息对象,返回二进制字符串
bfc37b1asponseOcrResultObject.singleResult #
不作为函数调用时,用于返回或设置数组。
bfc37b1asponseOcrResultObject.singleResult() #
返回对象:d12690daultSingleResultObject
bfc37b1asponseOcrResultObject.singleResult(index,value) #
如果作为函数调用:
修改值时参数 @index 指定元素索引,参数 @value 指定元素值。
获取值时用参数 @index 指定数组索引即可
bfc37b1asponseOcrResultObject.unknown_1 #
repeated 每行的结果
protobuf.type.int32
bfc37b1asponseOcrResultObject.unknown_2 #
protobuf.type.int32
d12690daultSingleResultObject 成员列表 #
d12690daultSingleResultObject.eachName() #
for k,v in d12690daultSingleResultObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
d12690daultSingleResultObject.lx #
protobuf.type.float
d12690daultSingleResultObject.ly #
识别矩形的左上和右下的坐标? 可能是
protobuf.type.float
d12690daultSingleResultObject.oneResult #
不作为函数调用时,用于返回或设置数组。
d12690daultSingleResultObject.oneResult() #
返回对象:a35ef3b6ResultOneResultObject
d12690daultSingleResultObject.oneResult(index,value) #
如果作为函数调用:
修改值时参数 @index 指定元素索引,参数 @value 指定元素值。
获取值时用参数 @index 指定数组索引即可
d12690daultSingleResultObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
d12690daultSingleResultObject.rx #
protobuf.type.float
d12690daultSingleResultObject.ry #
protobuf.type.float
d12690daultSingleResultObject.serializeToString() #
序列化消息对象,返回二进制字符串
d12690daultSingleResultObject.singlePos #
SingleResult是一行结果 OneResult是单字的
返回对象:7671c335ResultResultPosObject
d12690daultSingleResultObject.singleRate #
UTF8格式的字符串
protobuf.type.float
d12690daultSingleResultObject.singleStrUtf8 #
protobuf.type.bytes
d12690daultSingleResultObject.unknownPos #
未知
返回对象:7671c335ResultResultPosObject
d12690daultSingleResultObject.unknown_0 #
protobuf.type.int32
process.wxOcr 成员列表 #
process.wxOcr.OcrResponse() #
创建 Protobuf 消息对象。
返回对象:processWxOcrOcrResponseObject
process.wxOcr.OcrResponse.OcrResult 成员列表 #
Protobuf 消息对象
process.wxOcr.OcrResponse.OcrResult.ResultPos() #
创建 Protobuf 消息对象。
返回对象:7671c335ResultResultPosObject
process.wxOcr.OcrResponse.OcrResult.SingleResult() #
创建 Protobuf 消息对象。
返回对象:d12690daultSingleResultObject
process.wxOcr.OcrResponse.OcrResult.ResultPos 成员列表 #
Protobuf 消息对象
process.wxOcr.OcrResponse.OcrResult.ResultPos.PosXY #
Protobuf 消息对象
process.wxOcr.OcrResponse.OcrResult.ResultPos.PosXY() #
创建 Protobuf 消息对象。
返回对象:58d30c14ResultPosPosXYObject
process.wxOcr.OcrResponse.OcrResult.SingleResult 成员列表 #
Protobuf 消息对象
process.wxOcr.OcrResponse.OcrResult.SingleResult.OneResult #
Protobuf 消息对象
process.wxOcr.OcrResponse.OcrResult.SingleResult.OneResult() #
创建 Protobuf 消息对象。
返回对象:a35ef3b6ResultOneResultObject
processWxOcrOcrResponseObject 成员列表 #
processWxOcrOcrResponseObject.eachName() #
for k,v in processWxOcrOcrResponseObject.eachName(){
/*遍历此消息对象的所有字段,
k 为字段名,v 为字段值。*/
}
processWxOcrOcrResponseObject.errCode #
protobuf.type.int32
processWxOcrOcrResponseObject.ocrResult #
返回对象:bfc37b1asponseOcrResultObject
processWxOcrOcrResponseObject.parseFromString(字符串) #
二进制数据反序列化到消息对象
此函数自动清空所有数组值,但不会重置其他非数组字段值.
因此应对新创建的对象调用此函数.
processWxOcrOcrResponseObject.serializeToString() #
序列化消息对象,返回二进制字符串
processWxOcrOcrResponseObject.taskId #
第一次运行OCR会有push一次type1, 正常OCR结束type0
protobuf.type.int32
processWxOcrOcrResponseObject.type #
protobuf.type.int32
Markdown 格式