|
@@ -2406,13 +2406,17 @@ namespace TeamAAS_VP.Core
|
|
|
if (targetPoint.AiVision == 1)
|
|
if (targetPoint.AiVision == 1)
|
|
|
{
|
|
{
|
|
|
var targetPoint2 = currentProduct.AoiPoints?.FirstOrDefault(p => p.Number == targetPoint.AiVision);
|
|
var targetPoint2 = currentProduct.AoiPoints?.FirstOrDefault(p => p.Number == targetPoint.AiVision);
|
|
|
- await ExecuteProcedureAsync(targetPoint.AiVision, targetPoint2.CameraProcedureId1, tt.imges, Is3dPhoto,currentProduct);
|
|
|
|
|
|
|
+ await ExecuteProcedureAsync(targetPoint.AiVision, targetPoint2.CameraProcedureId1, tt.imges, Is3dPhoto, currentProduct);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
bool Is3dPhoto = Is3D(prcId);
|
|
bool Is3dPhoto = Is3D(prcId);
|
|
|
_ImageTaskList.Add(GrabImageEx(cameraIndex, prcId, Is3dPhoto, currentProduct, sysConfig));
|
|
_ImageTaskList.Add(GrabImageEx(cameraIndex, prcId, Is3dPhoto, currentProduct, sysConfig));
|
|
|
|
|
+ if (targetPoint.AiVision == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (sysConfig.TurnOnAllLightUse == false)
|
|
if (sysConfig.TurnOnAllLightUse == false)
|
|
@@ -2440,8 +2444,8 @@ namespace TeamAAS_VP.Core
|
|
|
bool Is3d = Is3D(item.procedureId);
|
|
bool Is3d = Is3D(item.procedureId);
|
|
|
if (targetPoint.AiVision == 1)
|
|
if (targetPoint.AiVision == 1)
|
|
|
{
|
|
{
|
|
|
- var targetPoint2 = currentProduct.AoiPoints?.FirstOrDefault(p => p.Number == targetPoint.AiVision);
|
|
|
|
|
- await ExecuteProcedureAsync(targetPoint.AiVision, targetPoint2.CameraProcedureId1, item.Images, Is3d, currentProduct);
|
|
|
|
|
|
|
+ var targetPoint2 = currentProduct.AoiPoints?.FirstOrDefault(p => p.Number == cameraIndex);
|
|
|
|
|
+ await ExecuteProcedureAsync(targetPoint.AiVision, targetPoint2.CameraProcedureId2, item.Images, Is3d, currentProduct);
|
|
|
}
|
|
}
|
|
|
await ExecuteProcedureAsync(item.cameraIndex, item.procedureId, item.Images, Is3d, currentProduct);
|
|
await ExecuteProcedureAsync(item.cameraIndex, item.procedureId, item.Images, Is3d, currentProduct);
|
|
|
}
|
|
}
|