function 识别英数验证(IP地址,左,上,右,下)
snapShot("/storage/emulated/0/test.png",左,上,右,下)
local b64 = getFileBase64("/storage/emulated/0/test.png")
return httpPost(IP地址.."/yssb?","tu="..b64)
end
function 腾讯滑块识别(IP地址,左,上,右,下)
snapShot("/storage/emulated/0/test.png",左,上,右,下)
local b64 = getFileBase64("/storage/emulated/0/test.png")
local xy = httpPost(IP地址.."/hksb?","b64="..b64)
xy = splitStr(xy,",")
return {math.floor(xy[1])+左,math.floor(xy[2])+上}
end
aa=识别英数验证("http://110.40.196.160:33333",260,182,359,220)
print(aa)
aa=腾讯滑块识别("http://110.40.196.160:33333",295,280,620,472)
print(aa)
--腾讯滑块只取后半,图片大了,压力大啊。。。。。。
|