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);//̵