show error if no match

This commit is contained in:
2025-11-11 16:58:56 +08:00
parent 7c7e69bee5
commit 61a4294205

View File

@@ -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();
} }