Import "xiong.mql"
dim 字库={_
"0":array("EDEBEC","2|-1|F1F0F1,4|0|DBD7DA,5|2|F1EFF0,5|8|EBE8EA,4|9|F5F4F5,0|9|ECEAEB,-1|7|E8E6E8,-1|5|F4F3F4,-1|3|F4F3F4"),_
"1":array("FFFFFF-101010","0|-7|FFFFFF-101010,0|9|FFFFFF-101010,-2|-7|FEFEFE-101010,-4|-7|FFFFFF-101010","-3|-5,-3|-1,-3|2,-3|4,-3|7,-3|10"),_
"2":array("E0DDDF-101010","2|-2|F6F5F6,5|-1|F0EEEF,5|3|D3CDD1,3|5|E9E6E8,1|8|FBFBFB,2|9|CAC3C8,6|9|CAC3C8"),_
"3":array("FFFFFF-111111","-4|-5|FFFFFF-111111,-4|6|FFFFFF-111111,2|10|FFFFFF-111111,6|4|FFFFFF-111111,1|-9|FFFFFF-111111,4|0|DCDCDC-111111", "-2|0,-3|-3,-3|4"),_
"4":array("6BE6FF-999999","-3|3|6BE6FF,-6|7|6BE5FE,0|10|6BE6FF,3|7|56BACE"),_
"5":array("438D9C","-3|4|6BE6FF,3|4|6BE6FF,2|8|6BE6FF,0|11|6BE6FF"),_
"6":array("FFFFFF-101010","5|6|FFFFFF-101010,0|12|FFFFFF-101010,-5|3|FFFFFF-101010,-4|-4|FFFFFF-101010,2|-7|FFFFFF-101010", "0|-3,3|-2,0|4,0|6,0|9" ),_
"7":array("F4F2F3","2|0|F4F2F3,4|0|F4F2F3,6|0|FEFEFE,5|3|BAB2B8,3|5|EEECED,3|7|EEECEE,3|9|D9D5D8,3|10|D0CACE"),_
"8":array("FFFFFF-111111","1|-9|FFFFFF-111111,-1|10|FFFFFF-111111,-5|5|FFFFFF-111111,-5|-5|F6F6F6-111111,5|-5|FFFFFF-111111,5|6|FFFFFF-111111,-3|-7|FFFFFF-111111,-4|8|FFFFFF-111111,4|-7|FFFFFF-111111" ,"0|5,0|-4"),_
"9":array("6BE6FF-505050","-4|3|6BE6FF,-4|7|6BE6FF,-2|9|6BE6FF,5|3|6BE6FF,5|7|6BE6FF,4|11|6BE6FF,1|14|6BE6FF,-1|17|6AE5FD"),_
".":array("FFFFFF-111111","0|-1|FFFFFF-111111","0|-3,0|1,-2|-1,2|-1,2|1,-2|-3,-2|1,2|-3"),_
"我":array("FFFFFF-111111","-15|0|FFFFFF-111111,-12|16|FFFFFF-111111,7|0|FFFFFF-111111,5|-5|FFFFFF-111111,0|-7|FFFFFF-111111,-10|16|FFFFFF-111111,-4|15|FFFFFF-111111,-15|9|FFFFFF-111111","0|-9|")_
}
KeepCapture
dim t=TickCount()
TracePrint "识别金币:",xiong.执行_ocr找色字库(220,35,271,53,"F4F3F4",0.9,字库)
TracePrint "识别时间为:"&TickCount()-t&"毫秒"
ReleaseCapture
//测试时12毫秒!