Commit 2e06d2a8 LN

新扫码算法更新

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