|
|
|
@@ -273,18 +273,30 @@ namespace MaiMuAOI.ImageProcessing |
|
|
|
try
|
|
|
|
{
|
|
|
|
step = 6;
|
|
|
|
var posePT = ProcCall1_PI_PT.GetOutputCtrlParamTuple("posePT").DArr;
|
|
|
|
double[] posePTarr;
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if (ProcCall1_PI_PT.GetOutputCtrlParamTuple("posePT") != null &&
|
|
|
|
ProcCall1_PI_PT.GetOutputCtrlParamTuple("posePT").DArr != null)
|
|
|
|
posePTarr = ProcCall1_PI_PT.GetOutputCtrlParamTuple("posePT").DArr;
|
|
|
|
else
|
|
|
|
posePTarr = null;
|
|
|
|
}
|
|
|
|
catch {
|
|
|
|
posePTarr = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
step = 7;
|
|
|
|
//Yolo_Class yolo = new Yolo_Class();
|
|
|
|
step = 8;
|
|
|
|
var mat = CamDev.HImageToMat(image);
|
|
|
|
step = 9;
|
|
|
|
//task.SaveMat = yolo.DisplayLines(mat, posePT, task.index).Clone();
|
|
|
|
task.SaveMat = yolo5.DisplayLines(mat, posePT, task.index);
|
|
|
|
task.SaveMat = yolo5.DisplayLines(mat, posePTarr, task.index);
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
//WarningEvent?.Invoke(WarningEnum.Low, $"SizeLib task err({step}) index({task.index}):" + ex.Message);
|
|
|
|
WarningEvent?.Invoke(WarningEnum.Low, $"SizeLib task err({step}) index({task.index}):" + ex.Message);
|
|
|
|
task.SaveMat = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|