This commit is contained in:
YZJ 2024-08-26 18:07:19 +08:00
parent f90eb75c3b
commit 44de774d4e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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);//绿灯