惠小助线报机器人为您实时提供全网最新羊毛活动线报网

百度文字识别auto.js

只要是让你充钱的100%都是骗子,切记不要充1分钱!

auto.waitFor()

console.show()

if(!requestScreenCapture()){

toast("请求截图失败");

exit();

}

sleep(5000)

//开启权限后过一段时间才能成功截取

console.log(wzsb());

function wzsb(){

var client_id = "";

//API Key

var client_secret = "";

//Secret Key

var baidukey = "&client_id="+ client_id +"&client_secret="+ client_secret;

var as = http.get("https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials" + baidukey);

as = as.body.json();

var token = as.access_token;

var img = captureScreen();

img = images.clip(img, 60, 634, 200, 100)

var imageBase64 = images.toBase64(img);

img.recycle()

var res = http.post("https://aip.baidubce.com/rest/2.0/ocr/v1/accurate_basic?access_token=" + token,{headers:{

'Content-Type': 'application/x-www-form-urlencoded'},

image:imageBase64,

image_type:"BASE64",

});

return res.body.string();

//返回的结果

文章标签:

微信公众号:赚客撸羊毛

最大线报网站