import inet.http;
import aspriseOCR;


getImage = function(url,file){
var http = inet.http();
var str = http.get(url)
string.save(file, str)
return file;
}

//识别网络验证码
var str = aspriseOCR.ocr(

getImage("http://www.cetv.com/Imgchk/validatecode.asp"

/*
getImage("https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=lrand&"
*/
,"/test.bmp")
)


io.open()
io.print("识别验证码成功",str);

execute("pause") //按任意键继续
io.close();//关闭控制台