Commit 400b2853 LN

预扫码只使用算法扫码

1 个父辈 e484b9b3
......@@ -102,6 +102,7 @@ namespace OnlineStore.DeviceLibrary
[HandleProcessCorruptedStateExceptions]
public static List<string> CameraScan(List<string> cameraList, string deviceName, bool findRightCodeBreak = false, int timeOut = 1500)
{
bool isPreScan = deviceName.EndsWith("预扫码");
List<string> codeList = new List<string>();
if (cameraList == null || cameraList.Count <= 0)
{
......@@ -154,9 +155,9 @@ namespace OnlineStore.DeviceLibrary
}
}
}
List<CodeInfo> cc = new List<CodeInfo>();
if (!findRightCode)
if (!findRightCode &&(!isPreScan))
{
List<CodeInfo> cc = new List<CodeInfo>();
eyemNoCode = true;
foreach (string codeType in codeTypeList)
{
......@@ -190,7 +191,7 @@ namespace OnlineStore.DeviceLibrary
}
}
//if (!findRightCode && SaveErrorImageToFile.Equals(1))
if (SaveImage || (!findRightCode) || eyemNoCode)
if (SaveImage || (((!findRightCode) || eyemNoCode) && (!isPreScan)))
{
//如果halcon没扫出的,
string nameStr = "";
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!