Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a0f57fba
由
LN
编写于
2021-05-21 10:11:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加日志打印
1 个父辈
1f6d5f1d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
21 行删除
dll/camera/Asa.Camera.VisionLib.dll
source/DeviceLibrary/acSingleStore/BoxBean.cs
source/DeviceLibrary/acSingleStore/StoreBean.cs
source/DeviceLibrary/bean/model/StoreMoveInfo.cs
source/HCSingleStore/FrmBox.Designer.cs
dll/camera/Asa.Camera.VisionLib.dll
查看文件 @
a0f57fb
此文件类型无法预览
source/DeviceLibrary/acSingleStore/BoxBean.cs
查看文件 @
a0f57fb
...
...
@@ -84,7 +84,7 @@ namespace OnlineStore.DeviceLibrary
lineConnect
=
new
LineConnect
(
config
.
GetStoreId
(),
config
.
CID
);
mainTimer
.
Enabled
=
false
;
}
private
int
vcount
=
0
;
/// <summary>
/// 视觉比较是否有料
/// </summary>
...
...
@@ -92,6 +92,7 @@ namespace OnlineStore.DeviceLibrary
/// <returns>true=有料,false=无料</returns>
public
bool
VisionComp
(
out
Dictionary
<
string
,
bool
>
exist
)
{
bool
returnResult
=
false
;
exist
=
new
Dictionary
<
string
,
bool
>();
if
(
String
.
IsNullOrEmpty
(
Config
.
Camera_Name
))
{
...
...
@@ -101,19 +102,30 @@ namespace OnlineStore.DeviceLibrary
{
if
(
StoreManager
.
Store
.
vision
!=
null
)
{
vcount
++;
bool
result
=
StoreManager
.
Store
.
vision
.
FeatureCompare
(
Config
.
Camera_Name
,
out
exist
);
if
(!
result
)
{
LogUtil
.
error
(
Name
+
" VisionComp ["
+
Config
.
Camera_Name
+
"] ="
+
result
);
}
if
(
exist
!=
null
)
{
{
string
name
=
"LeftTop"
;
exist
.
TryGetValue
(
name
,
out
bool
value
);
if
(
value
)
{
return
true
;
return
Result
=
true
;
}
string
str
=
result
?
"有料\r\n"
:
"无料\r\n"
;
if
(
exist
!=
null
)
{
List
<
string
>
keys
=
new
List
<
string
>(
exist
.
Keys
);
foreach
(
string
key
in
keys
)
{
str
+=
key
+
"="
+
exist
[
key
]
+
";\r\n"
;
}
}
LogUtil
.
info
(
Name
+
"VisionComp "
+
vcount
+
" ["
+
Config
.
Camera_Name
+
"] 结果:"
+
str
);
}
}
}
...
...
@@ -121,7 +133,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil
.
error
(
Name
+
"VisionLibCom 出错:"
+
ex
.
ToString
());
}
return
false
;
return
returnResult
;
}
public
void
MoveAxisConfig
()
{
...
...
source/DeviceLibrary/acSingleStore/StoreBean.cs
查看文件 @
a0f57fb
...
...
@@ -139,12 +139,13 @@ namespace OnlineStore.DeviceLibrary
{
try
{
string
vfile
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
VisionConfigFile
,
"RollingLogFileAppender"
);
string
vfile
=
Application
.
StartupPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
VisionConfigFile
);
if
(!
String
.
IsNullOrEmpty
(
vfile
))
{
vision
=
new
Asa
.
Camera
.
VisionLib
(
Application
.
StartupPath
+
vfile
);
vision
=
new
Asa
.
Camera
.
VisionLib
(
vfile
,
"RollingLogFileAppender"
);
vision
.
Open
();
vision
.
FeatureOriginal
();
LogUtil
.
info
(
" InitVisionLib ["
+
vfile
+
"] [RollingLogFileAppender] 完成"
);
}
}
catch
(
Exception
ex
)
...
...
source/DeviceLibrary/bean/model/StoreMoveInfo.cs
查看文件 @
a0f57fb
...
...
@@ -215,14 +215,14 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
false
;
return
wait
;
}
public
static
WaitResultInfo
WaitVisionComp
()
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
CanWhileMoveCount
=
0
;
wait
.
WaitType
=
8
;
wait
.
IsEnd
=
false
;
return
wait
;
}
//
public static WaitResultInfo WaitVisionComp()
//
{
//
WaitResultInfo wait = new WaitResultInfo();
//
wait.CanWhileMoveCount = 0;
//
wait.WaitType = 8;
//
wait.IsEnd = false;
//
return wait;
//
}
//public static WaitResultInfo WaitHeight(int height)
//{
// WaitResultInfo wait = new WaitResultInfo();
...
...
source/HCSingleStore/FrmBox.Designer.cs
查看文件 @
a0f57fb
...
...
@@ -295,7 +295,7 @@
this
.
btnImgSave
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnImgSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnImgSave
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnImgSave
.
Location
=
new
System
.
Drawing
.
Point
(
278
,
5
6
0
);
this
.
btnImgSave
.
Location
=
new
System
.
Drawing
.
Point
(
278
,
5
5
0
);
this
.
btnImgSave
.
Name
=
"btnImgSave"
;
this
.
btnImgSave
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnImgSave
.
TabIndex
=
284
;
...
...
@@ -308,7 +308,7 @@
this
.
btnFcomp
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnFcomp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFcomp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFcomp
.
Location
=
new
System
.
Drawing
.
Point
(
132
,
5
6
0
);
this
.
btnFcomp
.
Location
=
new
System
.
Drawing
.
Point
(
132
,
5
5
0
);
this
.
btnFcomp
.
Name
=
"btnFcomp"
;
this
.
btnFcomp
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnFcomp
.
TabIndex
=
283
;
...
...
@@ -321,7 +321,7 @@
this
.
btnForig
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnForig
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnForig
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnForig
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
5
6
0
);
this
.
btnForig
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
5
5
0
);
this
.
btnForig
.
Name
=
"btnForig"
;
this
.
btnForig
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnForig
.
TabIndex
=
282
;
...
...
@@ -335,7 +335,7 @@
this
.
lblLSend
.
AutoSize
=
true
;
this
.
lblLSend
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblLSend
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblLSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
4
89
);
this
.
lblLSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
4
93
);
this
.
lblLSend
.
Name
=
"lblLSend"
;
this
.
lblLSend
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblLSend
.
TabIndex
=
280
;
...
...
@@ -346,7 +346,7 @@
this
.
lblSend
.
AutoSize
=
true
;
this
.
lblSend
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblSend
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
51
3
);
this
.
lblSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
51
7
);
this
.
lblSend
.
Name
=
"lblSend"
;
this
.
lblSend
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblSend
.
TabIndex
=
278
;
...
...
@@ -386,7 +386,7 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label43
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label42
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
505
,
3
36
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
505
,
3
40
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
476
,
136
);
this
.
groupBox1
.
TabIndex
=
217
;
...
...
@@ -566,7 +566,7 @@
this
.
groupBox2
.
Controls
.
Add
(
this
.
button6
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button3
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
39
4
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
39
8
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
476
,
78
);
this
.
groupBox2
.
TabIndex
=
276
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论