level 2
bb622553
楼主
::zhuc::
local code
UserInfo[1] = code
code = localOcrText("/var/touchelf/scripts/tessdata", -- 语言包tessdata目录在设备中的路径
"eng", -- 语言类型为中文
164, -- 图片左上角X坐标为100
202, -- 图片左上角Y坐标为100
311, -- 图片右下角X坐标为200
225, -- 图片右下角Y坐标为200
"0123456789"); -- 设置白名单字符串,只识别数字
if tonumber(code) > -1 then
notifyMessage(code)
end
else
goto zhuc
end
UpdateUser()
2015年04月20日 10点04分
1
local code
UserInfo[1] = code
code = localOcrText("/var/touchelf/scripts/tessdata", -- 语言包tessdata目录在设备中的路径
"eng", -- 语言类型为中文
164, -- 图片左上角X坐标为100
202, -- 图片左上角Y坐标为100
311, -- 图片右下角X坐标为200
225, -- 图片右下角Y坐标为200
"0123456789"); -- 设置白名单字符串,只识别数字
if tonumber(code) > -1 then
notifyMessage(code)
end
else
goto zhuc
end
UpdateUser()