修改字符相似度匹配
This commit is contained in:
parent
733500850e
commit
d3a08b35f7
@ -191,9 +191,9 @@ namespace HisenceYoloDetection
|
|||||||
{
|
{
|
||||||
|
|
||||||
string s1 = "0##Ec04060##20¡æ##Rapide15mns";
|
string s1 = "0##Ec04060##20¡æ##Rapide15mns";
|
||||||
string s2 = "ECO4060##20¡ãC##Rapide15mns";
|
string s2 = "ECOmns";
|
||||||
|
|
||||||
bool st = ManagerModelHelper.StrMatch2(s1, s2);
|
bool st = ManagerModelHelper.StrMatch(s1, s2);
|
||||||
|
|
||||||
//Rect rect = new Rect(0, 0, 0, 0);
|
//Rect rect = new Rect(0, 0, 0, 0);
|
||||||
//string path2 = "D:\\Hisence\\SQLImages\\W80WXWJ060539V0WW80WX120293\\2\\W80WXWJ060539V0WW80WX120293result.jpg";
|
//string path2 = "D:\\Hisence\\SQLImages\\W80WXWJ060539V0WW80WX120293\\2\\W80WXWJ060539V0WW80WX120293result.jpg";
|
||||||
@ -2868,15 +2868,18 @@ namespace HisenceYoloDetection
|
|||||||
SQLStr = SQlxK_HisenceWord.OneblockMainWord;
|
SQLStr = SQlxK_HisenceWord.OneblockMainWord;
|
||||||
if (!saveimage)
|
if (!saveimage)
|
||||||
{
|
{
|
||||||
OneIF = ManagerModelHelper.StrMatch2(xK_HisenceWord.OneblockMainWord, SQLStr);
|
bool ssD= ManagerModelHelper.StrMatch(xK_HisenceWord.OneblockMainWord, SQLStr);
|
||||||
if (!OneIF)
|
bool OneIF1 = ManagerModelHelper.StrMatch2(xK_HisenceWord.OneblockMainWord, SQLStr);
|
||||||
|
if (!OneIF1||!ssD)
|
||||||
{
|
{
|
||||||
|
OneIF = false;
|
||||||
//ÏÔʾ´íÎóµÄ°å
|
//ÏÔʾ´íÎóµÄ°å
|
||||||
DisplayResult(mLcut);
|
DisplayResult(mLcut);
|
||||||
Defet_OnDetectionDone(mLcut.ResultMap.ToMat(), 1);
|
Defet_OnDetectionDone(mLcut.ResultMap.ToMat(), 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
OneIF = true;
|
||||||
Defet_OnDetectionDone(OKMat, 1);
|
Defet_OnDetectionDone(OKMat, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user