Commit 2e06d2a8 LN

新扫码算法更新

1 个父辈 2f2f236b
此文件类型无法预览
此文件类型无法预览
此文件类型无法预览
......@@ -124,7 +124,7 @@ activation=leaky
size=1
stride=1
pad=1
filters=21
filters=18
activation=linear
......@@ -132,7 +132,7 @@ activation=linear
[yolo]
mask = 3,4,5
anchors = 10,14, 23,27, 37,58, 81,82, 135,169, 344,319
classes=2
classes=1
num=6
jitter=.3
ignore_thresh = .7
......@@ -168,13 +168,13 @@ activation=leaky
size=1
stride=1
pad=1
filters=21
filters=18
activation=linear
[yolo]
mask = 0,1,2
anchors = 10,14, 23,27, 37,58, 81,82, 135,169, 344,319
classes=2
classes=1
num=6
jitter=.3
ignore_thresh = .7
......
此文件太大,无法显示。
......@@ -124,7 +124,7 @@ activation=leaky
size=1
stride=1
pad=1
filters=21
filters=18
activation=linear
......@@ -132,7 +132,7 @@ activation=linear
[yolo]
mask = 3,4,5
anchors = 10,14, 23,27, 37,58, 81,82, 135,169, 344,319
classes=2
classes=1
num=6
jitter=.3
ignore_thresh = .7
......@@ -168,13 +168,13 @@ activation=leaky
size=1
stride=1
pad=1
filters=21
filters=18
activation=linear
[yolo]
mask = 0,1,2
anchors = 10,14, 23,27, 37,58, 81,82, 135,169, 344,319
classes=2
classes=1
num=6
jitter=.3
ignore_thresh = .7
......
......@@ -139,21 +139,30 @@ namespace OnlineStore.DeviceLibrary
string r = "";
List<CodeInfo> tlci = EyemDecode.Decoder(ref bmp);
bool eyemNoCode = false;
foreach (CodeInfo code in tlci)
{
LogUtil.info(deviceName + " 【" + cameraName + "】[eyemDecode]" + code.CodeType + "(X: " + code.X + ",Y: " + code.Y + ") " + code.CodeStr);
string str = CodeManager.ReplaceCode(code.CodeStr);
if (!codeList.Contains(str))
Task eyemtask = Task.Factory.StartNew(delegate {
List<CodeInfo> tlci = EyemDecode.ModelDecoder(ref bmp);
foreach (CodeInfo code in tlci)
{
codeList.Add(str);
r = r + "##eyem|" + code.CodeType + "|" + str;
if (!findRightCode)
LogUtil.info(deviceName + " 【" + cameraName + "】[eyemDecode]" + code.CodeType + "(X: " + code.X + ",Y: " + code.Y + ") " + code.CodeStr);
string str = CodeManager.ReplaceCode(code.CodeStr);
if (!codeList.Contains(str))
{
findRightCode = HasRightCode(str);
codeList.Add(str);
r = r + "##eyem|" + code.CodeType + "|" + str;
if (!findRightCode)
{
findRightCode = HasRightCode(str);
}
}
}
});
//最多等待60秒
bool taskResult = eyemtask.Wait(60000);
if (!taskResult)
{
LogUtil.error(deviceName + " 【" + cameraName + "】eyem扫码超时");
eyemNoCode = true;
}
if (!isPreScan)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!