show error if no match
This commit is contained in:
@@ -1416,7 +1416,10 @@ namespace TetraPackOCR
|
|||||||
ShowTheLansRs(mMatchingStr, (double)m1 / (double)ocrTextResult.Count);
|
ShowTheLansRs(mMatchingStr, (double)m1 / (double)ocrTextResult.Count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
ShowTheLansRs(mMatchingStr, 0);
|
||||||
log.Info("OCR识别完成,匹配失败");
|
log.Info("OCR识别完成,匹配失败");
|
||||||
|
}
|
||||||
Ocr_picBox.BackgroundImage = Bmp;
|
Ocr_picBox.BackgroundImage = Bmp;
|
||||||
NoticePLCCompleteOCR();
|
NoticePLCCompleteOCR();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user