|
|
|
@@ -9019,7 +9019,7 @@ namespace MaiMuAOI.SysCtrl |
|
|
|
path += $"Size_SN{order.SN}_I{compBmpIndex}_X{res.posX}_Y{res.posY}_C0_{picName}";
|
|
|
|
lock (ImageSaveObj)
|
|
|
|
{
|
|
|
|
bmpCompareFailZoomImage.Save(path + ".bmp", ImageFormat.Bmp);
|
|
|
|
bmpCompareFailZoomImage.Save(path + ".jpg", ImageFormat.Jpeg);
|
|
|
|
if (res.defectInfor2RestorationDesk != null && res.defectInfor2RestorationDesk.Count > 0)
|
|
|
|
File.WriteAllText(path + ".json", JsonConvert.SerializeObject(res.defectInfor2RestorationDesk));
|
|
|
|
}
|
|
|
|
@@ -9219,9 +9219,9 @@ namespace MaiMuAOI.SysCtrl |
|
|
|
lock (ImageSaveObj)
|
|
|
|
{
|
|
|
|
if (res.bmps_tag.Count() != indexList.Count)
|
|
|
|
res.bmps_tag[i].Save(path + $"_i{i}_{i}.bmp", ImageFormat.Bmp);
|
|
|
|
res.bmps_tag[i].Save(path + $"_i{i}_{i}.jpg", ImageFormat.Jpeg);
|
|
|
|
else
|
|
|
|
res.bmps_tag[i].Save(path + $"_i{i}_{indexList[i]}.bmp", ImageFormat.Bmp);
|
|
|
|
res.bmps_tag[i].Save(path + $"_i{i}_{indexList[i]}.jpg", ImageFormat.Jpeg);
|
|
|
|
}
|
|
|
|
//res.bmps_tag[i].Save(path + $"_i{i}.bmp", ImageFormat.Bmp);
|
|
|
|
//res.bmps_tag[i].Save(path + $"{indexList[i]}.bmp", ImageFormat.Bmp);
|
|
|
|
@@ -9235,7 +9235,7 @@ namespace MaiMuAOI.SysCtrl |
|
|
|
path += $"Defect_SN{order.SN}_I{res.index}_X{res.Xmm}_Y{res.Ymm}_C{res.defectCount}_{picName}";
|
|
|
|
lock (ImageSaveObj)
|
|
|
|
{
|
|
|
|
res.bmpCompress.ImWrite(path + ".bmp");
|
|
|
|
res.bmpCompress.ImWrite(path + ".jpg");
|
|
|
|
//OpenCvSharp.Extensions.BitmapConverter.ToBitmap(res.bmpCompress).Save(path + ".bmp", ImageFormat.Bmp);
|
|
|
|
File.WriteAllText(path + ".json", JsonConvert.SerializeObject(res.defectInfor2RestorationDesk));
|
|
|
|
}
|
|
|
|
|