Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0b8fa90b
由
LN
编写于
2022-11-16 14:33:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
皮带线相机参数调整。出料四相机未扫到码时保存图片
1 个父辈
eb1109d2
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
15 行增加
和
7 行删除
source/DeviceLibrary/assemblymanager/SServerManager.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/deviceLibrary/halcon/EyemManager.cs
source/DeviceLibrary/deviceLibrary/reelCheck/ReelCheckUtil.cs
source/DeviceLibrary/mask.png
source/DeviceLibrary/assemblymanager/SServerManager.cs
查看文件 @
0b8fa90
...
...
@@ -809,7 +809,7 @@ namespace OnlineStore.DeviceLibrary
string
server
=
GetAddr
(
Addr_getTaskInfo
,
paramMap
);
DateTime
startTime
=
DateTime
.
Now
;
string
resultStr
=
HttpHelper
.
Post
(
server
,
""
);
LogUtil
.
info
(
$
"getTaskInfo {FormUtil.GetSpanStr(DateTime.Now - startTime)} 【{server}】【{resultStr}】"
);
LogUtil
.
info
(
$
"getTaskInfo {FormUtil.GetSpanStr(DateTime.Now - startTime)} 【
"
+
barcode
+
"】【
{server}】【{resultStr}】"
);
ReturnData3
data
=
JsonHelper
.
DeserializeJsonToObject
<
ReturnData3
>(
resultStr
);
...
...
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
0b8fa90
...
...
@@ -278,7 +278,7 @@ namespace OnlineStore.DeviceLibrary
{
continue
;
}
ScanCount
++;
//
ScanCount++;
DateTime
startTime
=
DateTime
.
Now
;
if
(
deviceName
!=
""
)
{
...
...
@@ -340,7 +340,10 @@ namespace OnlineStore.DeviceLibrary
timeout
=
3000
};
cc
=
RemoteDecodeHelper
.
DecodeRequest
(
ho_Image
,
remoteDecodeParam
);
if
(
cc
!=
null
&&
cc
.
Count
>
0
)
findCode
=
true
;
//if (cc != null && cc.Count > 0)
//{
// findCode = true;
//}
if
(
cc
!=
null
)
{
foreach
(
CodeInfo
c
in
cc
)
...
...
@@ -363,20 +366,20 @@ namespace OnlineStore.DeviceLibrary
}
bool
needSaveImg
=
false
;
if
(!
findCode
)
{
needSaveImg
=
true
;
//验证是否有料盘
findCode
=
EyemManager
.
ReelCheck
(
bmp
);
}
if
(
!
findCode
)
if
(
needSaveImg
)
{
string
nameStr
=
"nofindCode"
;
SaveImageToFile
(
deviceName
,
cameraName
+
nameStr
,
bmp
);
}
if
(
deviceName
!=
""
||
r
!=
""
)
{
LogUtil
.
info
(
deviceName
+
" 【"
+
cameraName
+
"】扫码完成【"
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
"】["
+
findCode
+
"]"
+
ScanCount
+
" :"
+
r
);
...
...
source/DeviceLibrary/deviceLibrary/halcon/EyemManager.cs
查看文件 @
0b8fa90
...
...
@@ -58,6 +58,8 @@ namespace OnlineStore.DeviceLibrary
int
ipNum
;
BboxContainer
bboxes
=
new
BboxContainer
();
eyemNNDetector
(
image
,
out
ipNum
,
ref
bboxes
,
out
EyemImage
tpDstImg
);
LogUtil
.
info
(
"EyemManager"
+
$
"eyemNNDetector ,ipNum="
+
ipNum
);
if
(
record
)
{
var
c
=
eyemCvtToBitmap
(
tpDstImg
);
...
...
source/DeviceLibrary/deviceLibrary/reelCheck/ReelCheckUtil.cs
查看文件 @
0b8fa90
...
...
@@ -104,7 +104,10 @@ dMinorStep 步进,默认1.0。
EyemImage
image
=
eyemCvtToEyemImage
(
bitmap
);
//绿色分割模型
EyemHSVModel
tpHsvModel
=
new
EyemHSVModel
();
tpHsvModel
.
dpRangeL
=
new
double
[]
{
55
,
10
,
35
};
tpHsvModel
.
dpRangeU
=
new
double
[]
{
100
,
255
,
255
};
//tpHsvModel.dpRangeL = new double[] { 55, 10, 35 }; tpHsvModel.dpRangeU = new double[] { 100, 255, 255 };
//tpHsvModel.dpRangeLExt = new double[] { 0, 0, 0 }; tpHsvModel.dpRangeUExt = new double[] { 0, 0, 0 };
tpHsvModel
.
dpRangeL
=
new
double
[]
{
78
,
10
,
60
};
tpHsvModel
.
dpRangeU
=
new
double
[]
{
100
,
255
,
255
};
tpHsvModel
.
dpRangeLExt
=
new
double
[]
{
0
,
0
,
0
};
tpHsvModel
.
dpRangeUExt
=
new
double
[]
{
0
,
0
,
0
};
//裁剪区域
...
...
source/DeviceLibrary/mask.png
查看文件 @
0b8fa90
25.4 KB
|
宽:
|
高:
6.6 KB
|
宽:
|
高:
两方对比
交换覆盖
透明覆盖
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论