增加是否扫码的参数

master
lhiven 1 year ago
parent e8c3c75ef9
commit 9be92165bc

@ -198,7 +198,7 @@ namespace Rs.MotionPlat.Flow.Camera
/// 检测周转盘放料是否OK
/// </summary>
/// <returns></returns>
public static VisionResult TurnoverTrayDumpProductOK(HObject image,bool bNeedLocation=true)
public static VisionResult TurnoverTrayDumpProductOK(HObject image,bool bNeedLocation=true,bool bNeedScanBarcode=true)
{
upCameraScanBarCodeModel = new ModelParameter("周转盘产品定位");
VisionResult vr = new VisionResult();
@ -243,6 +243,8 @@ namespace Rs.MotionPlat.Flow.Camera
{
vr.SearchModelOK = true;
}
if(bNeedScanBarcode)
{
//只有定位成功的才去扫二维码
if (vr.SearchModelOK && !GlobalVar.EnableScanBarCodeByDownCamera)
{
@ -262,6 +264,7 @@ namespace Rs.MotionPlat.Flow.Camera
vr.SN = sn;
}
}
}
return vr;
}

Loading…
Cancel
Save