From 44de774d4e400efdda9186ec6dfd7771ffb67ad1 Mon Sep 17 00:00:00 2001 From: YZJ Date: Mon, 26 Aug 2024 18:07:19 +0800 Subject: [PATCH] 1 --- HisenceYoloDetection/CheckDiffSciHelper.cs | 4 ++-- HisenceYoloDetection/MainForm.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HisenceYoloDetection/CheckDiffSciHelper.cs b/HisenceYoloDetection/CheckDiffSciHelper.cs index 3152f28..8343cf8 100644 --- a/HisenceYoloDetection/CheckDiffSciHelper.cs +++ b/HisenceYoloDetection/CheckDiffSciHelper.cs @@ -254,10 +254,10 @@ namespace HisenceYoloDetection CheckDiffSciHelper1.ResizeImage(savePath2, savePath2, 640, 480, 75); ResultMat = img2.Clone(); - //string savePath = Path.Combine("D:\\Hisence\\Test\\2\\ng", Path.GetFileNameWithoutExtension(path1) + filename + "_diff.png"); + string savePath = Path.Combine("D:\\Hisence\\Test\\2\\ng", Path.GetFileNameWithoutExtension(path1) + filename + "_diff.png"); // 保存结果 //string savePath = Path.Combine(saveDir, Path.GetFileNameWithoutExtension(path2) + "_diff.png"); - //Cv2.ImWrite(savePath, blackhatImg); + Cv2.ImWrite(savePath, blackhatImg); } } diff --git a/HisenceYoloDetection/MainForm.cs b/HisenceYoloDetection/MainForm.cs index 6aeb9dc..4488a77 100644 --- a/HisenceYoloDetection/MainForm.cs +++ b/HisenceYoloDetection/MainForm.cs @@ -1783,7 +1783,7 @@ namespace HisenceYoloDetection //melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 0);//̵ //melsecPLCTCPDriver.WriteInt(WaringAdress, 1);// NGDsums++; - + myLog("ƥʧ", DateTime.Now); melsecPLCTCPDriver.WriteInt(WaringAdress, 0);// melsecPLCTCPDriver.WriteInt(RedLightingAdress, 0);// melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 1);//̵