1
This commit is contained in:
parent
f90eb75c3b
commit
44de774d4e
@ -254,10 +254,10 @@ namespace HisenceYoloDetection
|
|||||||
CheckDiffSciHelper1.ResizeImage(savePath2, savePath2, 640, 480, 75);
|
CheckDiffSciHelper1.ResizeImage(savePath2, savePath2, 640, 480, 75);
|
||||||
|
|
||||||
ResultMat = img2.Clone();
|
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");
|
//string savePath = Path.Combine(saveDir, Path.GetFileNameWithoutExtension(path2) + "_diff.png");
|
||||||
//Cv2.ImWrite(savePath, blackhatImg);
|
Cv2.ImWrite(savePath, blackhatImg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1783,7 +1783,7 @@ namespace HisenceYoloDetection
|
|||||||
//melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 0);//绿灯
|
//melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 0);//绿灯
|
||||||
//melsecPLCTCPDriver.WriteInt(WaringAdress, 1);//报警
|
//melsecPLCTCPDriver.WriteInt(WaringAdress, 1);//报警
|
||||||
NGDsums++;
|
NGDsums++;
|
||||||
|
myLog("Æ¥Åäʧ°Ü", DateTime.Now);
|
||||||
melsecPLCTCPDriver.WriteInt(WaringAdress, 0);//报警
|
melsecPLCTCPDriver.WriteInt(WaringAdress, 0);//报警
|
||||||
melsecPLCTCPDriver.WriteInt(RedLightingAdress, 0);//红灯
|
melsecPLCTCPDriver.WriteInt(RedLightingAdress, 0);//红灯
|
||||||
melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 1);//绿灯
|
melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 1);//绿灯
|
||||||
|
Loading…
Reference in New Issue
Block a user