Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dc07c277
由
LN
编写于
2020-08-12 19:13:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
-图片名和参数匹配直接使用PN
1 个父辈
be3202c9
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
24 行增加
和
29 行删除
RC1266-AutoCountMachine/dll/X-Ray/eyemLib.dll
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
RC1266-AutoCountMachine/source/DeviceLibrary/model/WorkParam.cs
RC1266-AutoCountMachine/dll/X-Ray/eyemLib.dll
查看文件 @
dc07c27
此文件太大,无法显示。
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip.cs
查看文件 @
dc07c27
...
...
@@ -24,8 +24,7 @@ namespace OnlineStore.DeviceLibrary
public
XRay_Config
Config
;
public
XRay
xRay
=
null
;
// public CountImage countImage = null;
public
XRay
xRay
=
null
;
public
CarerayImage
carerayImage
=
null
;
public
bool
xRayCanStart
=
false
;
...
...
@@ -36,10 +35,9 @@ namespace OnlineStore.DeviceLibrary
private
int
ResultMinCount
=
100
;
private
string
path_XRAY
=
Application
.
StartupPath
+
@"\XRAY\"
;
private
string
path1_tif
=
Application
.
StartupPath
+
@"\XRAY\tif"
;
// private string path2_png = Application.StartupPath + @"\XRAY\png";
private
string
path1_tif
=
Application
.
StartupPath
+
@"\XRAY\tif"
;
private
string
path2_out
=
Application
.
StartupPath
+
@"\XRAY\out\"
;
private
string
path3_area
=
Application
.
StartupPath
+
@"\XRAY\area.txt"
;
//
private string path3_area = Application.StartupPath + @"\XRAY\area.txt";
private
Dictionary
<
string
,
CountParam
>
countParamMap
=
new
Dictionary
<
string
,
CountParam
>();
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
查看文件 @
dc07c27
...
...
@@ -526,33 +526,29 @@ namespace OnlineStore.DeviceLibrary
private
void
UpdateArea
(
string
codeStr
)
{
lastParam
=
new
CountParam
(
""
,
ThresholdValue
,
3
);
//lastTh = ThresholdValue;
//lastWSize = 3;
string
[]
codeArray
=
codeStr
.
Split
(
';'
);
string
fileValue
=
""
;
string
area
=
""
;
//
string fileValue = "";
//
string area = "";
if
(
codeArray
.
Length
.
Equals
(
2
))
{
string
pn
=
codeArray
[
0
];
string
type
=
pn
.
Substring
(
0
,
2
)
+
pn
.
Substring
(
pn
.
Length
-
3
,
3
);
//string type = pn.Substring(0, 2) + pn.Substring(pn.Length - 3, 3);
//if (countParamMap.ContainsKey(pn))
//{
// area = countParamMap[pn].AreaValue;
// fileValue = lastFileName + " " + area;
// lastParam = countParamMap[pn];
//}
//else
if
(
countParamMap
.
ContainsKey
(
pn
))
{
area
=
countParamMap
[
pn
].
AreaValue
;
fileValue
=
lastFileName
+
" "
+
area
;
// lastTh = countParamMap[pn].Threshold;
lastParam
=
countParamMap
[
pn
];
}
else
if
(
countParamMap
.
ContainsKey
(
type
))
{
lastParam
=
countParamMap
[
type
];
//lastTh = countParamMap[type].Threshold;
//lastWSize = countParamMap[type].WindowSize;
}
}
LogUtil
.
info
(
"【"
+
codeStr
+
"】使用参数 "
+
lastParam
.
ToStr
()
+
" "
);
//LogUtil.info("【" + codeStr + "】使用参数【" + lastTh + "】【" + area + "】,文件名【" + lastFileName + "】内容【" + fileValue + "】");
File
.
WriteAllText
(
path3_area
,
fileValue
);
//
File.WriteAllText(path3_area, fileValue);
}
private
void
ClearFilePath
()
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/model/WorkParam.cs
查看文件 @
dc07c27
...
...
@@ -201,15 +201,16 @@ namespace OnlineStore.DeviceLibrary
string
[]
codeArray
=
WareCode
.
Split
(
';'
);
if
(
codeArray
.
Length
==
2
)
{
string
pnStr
=
codeArray
[
0
];
if
(
pnStr
.
Length
>=
5
)
{
pn
=
pnStr
.
Substring
(
0
,
2
)
+
pnStr
.
Substring
(
pnStr
.
Length
-
3
,
3
);
}
else
{
pn
=
pnStr
;
}
//string pnStr = codeArray[0];
//if (pnStr.Length >= 5)
//{
// pn = pnStr.Substring(0, 2) + pnStr.Substring(pnStr.Length - 3, 3);
//}
//else
//{
// pn = pnStr;
//}
pn
=
codeArray
[
0
];
reald
=
codeArray
[
1
];
}
return
pn
+
"-"
+
reald
+
timeName
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论