方法介绍

方法名称:根据选中的字典查找该区域内所有文字和坐标

语法:ocrj(x1, y1, x2, y2,colorfmt,sim)

参数说明:

x1:整数型,查找区域左上X坐标

y1:整数型,查找区域左上Y坐标

x2:整数型,查找区域右下X坐标

y2:整数型,查找区域右下Y坐标

colorfmt:字符串,文字的颜色格式

sim:双精度浮点数,相似度,取值范围0-1

返回值:json格式的字符串

方法例子

setDict(0,"dict.txt")

useDict(0)

local str = ocrj(0,0,0,0,"FFFFFF-101010",0.98)

if str ~= nil then

print(str)

end

Copyright © 湖南合鑫网络科技有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2020-11-12 17:30:34

results matching ""

    No results matching ""