???????????????????

public String GetCheckString(Bitmap bitmap) {
UnCodebase ud = new UnCodebase(bitmap);
ud.GrayByPixels();
ud.ClearPicBorder(2);
ud.CutMap(14?? 15?? 0?? 0);
bitmap = ud.bmpobj;
//  bitmap = ud.ClearNoise(128?? 1);
String chkcode = "";
Bitmap[] arrmap = ud.SplitImg(bitmap?? 4?? 1);
foreach (Bitmap item in arrmap) {
String str = ud.GetCodebybitmap(item?? 128);
Boolean isEques = false;
foreach (String strss in code) {
String[] a = strss.Split(':');
if (str == a[1]) {
chkcode += a[0];
isEques = true;
break;
}
}
if (!isEques) {
String strCurrent = "";
double max = 0.0;
foreach (String strss in code) {
int len1?? len2?? min?? count = 0;
String[] a = strss.Split(':');
len1 = a[1].Length;
len2 = str.Length;
min = len1;
if (min > len2) {
min = len2;
}
for (int i = 0; i < min; i++) {
if (str[i] == a[1][i]) {
count++;
}
}
double currrent = (count * 100.0 / min);
if (max < currrent) {
max = currrent;
strCurrent = a[0].Trim();
}
}
chkcode += strCurrent.Trim();
}
}
return chkcode;
}
?????????Щ??????????????90+%?????
???????渽?????????????  C#????????asp.net??????????C/C++??? asp.net ?????й????Щ?鷳????÷??System32 ???????·?????鷳
??????????
????http://www.fox163.com/UniconTest.aspx