Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
GeneralClassLibrary
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ca0df4ec
由
几米阳光
编写于
2019-04-09 13:54:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改二维码数量
1 个父辈
def34741
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
25 行增加
和
39 行删除
CodeLibraryProject/CodeLibrary/FrmCodeDecode.Designer.cs
CodeLibraryProject/CodeLibrary/FrmCodeDecode.cs
CodeLibraryProject/CodeLibrary/FrmCodeLearn.Designer.cs
CodeLibraryProject/CodeLibrary/FrmCodeLearn.cs
CodeLibraryProject/CodeTest/CodeTest.csproj
CodeLibraryProject/CodeTest/Program.cs
CodeLibraryProject/dll/CodeLibrary.dll
CodeLibraryProject/CodeLibrary/FrmCodeDecode.Designer.cs
查看文件 @
ca0df4e
...
...
@@ -187,6 +187,7 @@
this
.
cmbCount
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
cmbCount
.
FormattingEnabled
=
true
;
this
.
cmbCount
.
Items
.
AddRange
(
new
object
[]
{
"0"
,
"1"
,
"2"
,
"3"
,
...
...
@@ -209,7 +210,7 @@
"20"
});
this
.
cmbCount
.
Location
=
new
System
.
Drawing
.
Point
(
334
,
16
);
this
.
cmbCount
.
Name
=
"cmbCount"
;
this
.
cmbCount
.
Size
=
new
System
.
Drawing
.
Size
(
40
,
25
);
this
.
cmbCount
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
25
);
this
.
cmbCount
.
TabIndex
=
16
;
//
// lblCount
...
...
@@ -378,7 +379,6 @@
this
.
Controls
.
Add
(
this
.
btnAn
);
this
.
Controls
.
Add
(
this
.
btnLight
);
this
.
Controls
.
Add
(
this
.
cmbCodeType
);
this
.
Controls
.
Add
(
this
.
label3
);
this
.
Controls
.
Add
(
this
.
cmbCamera
);
this
.
Controls
.
Add
(
this
.
label2
);
this
.
Controls
.
Add
(
this
.
btnExit
);
...
...
@@ -397,6 +397,7 @@
this
.
Controls
.
Add
(
this
.
btnSelImage
);
this
.
Controls
.
Add
(
this
.
txtPath
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
label3
);
this
.
FormBorderStyle
=
System
.
Windows
.
Forms
.
FormBorderStyle
.
FixedSingle
;
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Name
=
"FrmCodeDecode"
;
...
...
CodeLibraryProject/CodeLibrary/FrmCodeDecode.cs
查看文件 @
ca0df4e
...
...
@@ -35,6 +35,12 @@ namespace CodeLibrary
private
void
FrmMain_Load
(
object
sender
,
EventArgs
e
)
{
Control
.
CheckForIllegalCrossThreadCalls
=
false
;
cmbCount
.
Items
.
Clear
();
for
(
int
i
=
1
;
i
<=
300
;
i
++)
{
cmbCount
.
Items
.
Add
(
i
);
}
cmbCount
.
SelectedIndex
=
0
;
cmbCount
.
SelectedIndex
=
0
;
LoadCamera
();
...
...
@@ -140,7 +146,7 @@ namespace CodeLibrary
MessageBox
.
Show
(
selImage
,
title
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
return
;
}
int
count
=
cmbCount
.
SelectedIndex
+
1
;
int
count
=
cmbCount
.
SelectedIndex
;
txtResult
.
Text
=
""
;
stopwatch
.
Restart
();
HDCodeHelper
.
HalconWindow
=
this
.
hWindowControl1
.
HalconWindow
;
...
...
@@ -173,7 +179,7 @@ namespace CodeLibrary
MessageBox
.
Show
(
selImage
,
title
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Error
);
return
;
}
int
count
=
cmbCount
.
SelectedIndex
+
1
;
int
count
=
cmbCount
.
SelectedIndex
;
txtResult
.
Text
=
""
;
stopwatch
.
Restart
();
...
...
@@ -312,7 +318,7 @@ namespace CodeLibrary
return
;
}
int
count
=
cmbCount
.
SelectedIndex
+
1
;
int
count
=
cmbCount
.
SelectedIndex
;
txtResult
.
Text
=
""
;
stopwatch
.
Restart
();
testCount
++;
...
...
CodeLibraryProject/CodeLibrary/FrmCodeLearn.Designer.cs
查看文件 @
ca0df4e
...
...
@@ -212,7 +212,7 @@
"20"
});
this
.
cmbCount
.
Location
=
new
System
.
Drawing
.
Point
(
441
,
54
);
this
.
cmbCount
.
Name
=
"cmbCount"
;
this
.
cmbCount
.
Size
=
new
System
.
Drawing
.
Size
(
58
,
25
);
this
.
cmbCount
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
25
);
this
.
cmbCount
.
TabIndex
=
14
;
//
// richTextBox2
...
...
@@ -242,7 +242,7 @@
this
.
chbTest
.
Checked
=
true
;
this
.
chbTest
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbTest
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbTest
.
Location
=
new
System
.
Drawing
.
Point
(
5
25
,
56
);
this
.
chbTest
.
Location
=
new
System
.
Drawing
.
Point
(
5
31
,
56
);
this
.
chbTest
.
Name
=
"chbTest"
;
this
.
chbTest
.
Size
=
new
System
.
Drawing
.
Size
(
147
,
21
);
this
.
chbTest
.
TabIndex
=
17
;
...
...
@@ -286,7 +286,7 @@
//
this
.
chbUseCamera
.
AutoSize
=
true
;
this
.
chbUseCamera
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbUseCamera
.
Location
=
new
System
.
Drawing
.
Point
(
5
25
,
18
);
this
.
chbUseCamera
.
Location
=
new
System
.
Drawing
.
Point
(
5
31
,
18
);
this
.
chbUseCamera
.
Name
=
"chbUseCamera"
;
this
.
chbUseCamera
.
Size
=
new
System
.
Drawing
.
Size
(
123
,
21
);
this
.
chbUseCamera
.
TabIndex
=
21
;
...
...
CodeLibraryProject/CodeLibrary/FrmCodeLearn.cs
查看文件 @
ca0df4e
...
...
@@ -161,6 +161,11 @@ namespace CodeLibrary
string
filePath
=
HDCodeHelper
.
GetCodeParamFilePath
(
cmbCodeType
.
Text
);
txtParamPath
.
Text
=
filePath
;
cmbCount
.
Items
.
Clear
();
for
(
int
i
=
1
;
i
<=
300
;
i
++)
{
cmbCount
.
Items
.
Add
(
i
);
}
cmbCount
.
SelectedIndex
=
0
;
chbUseCamera
.
Checked
=
true
;
timer1
.
Start
();
...
...
CodeLibraryProject/CodeTest/CodeTest.csproj
查看文件 @
ca0df4e
...
...
@@ -36,22 +36,6 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AForge, Version=2.2.5.0, Culture=neutral, PublicKeyToken=c1db6ff4eaa06aeb, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\AForge.NET\AForge.dll</HintPath>
</Reference>
<Reference Include="AForge.Controls, Version=2.2.5.0, Culture=neutral, PublicKeyToken=a8ac264d1dc6b9d9, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\AForge.NET\AForge.Controls.dll</HintPath>
</Reference>
<Reference Include="AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\AForge.NET\AForge.Video.dll</HintPath>
</Reference>
<Reference Include="AForge.Video.DirectShow, Version=2.2.5.0, Culture=neutral, PublicKeyToken=61ea4348d43881b7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\AForge.NET\AForge.Video.DirectShow.dll</HintPath>
</Reference>
<Reference Include="Basler.Pylon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e389355f398382ab, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\dll\Basler.Pylon.dll</HintPath>
...
...
@@ -86,18 +70,8 @@
<ItemGroup>
<Compile Include="CodeCreater.cs" />
<Compile Include="CompressHelper.cs" />
<Compile Include="FrmTest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmTest.Designer.cs">
<DependentUpon>FrmTest.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="VideoPlayer.cs" />
<EmbeddedResource Include="FrmTest.resx">
<DependentUpon>FrmTest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
...
...
CodeLibraryProject/CodeTest/Program.cs
查看文件 @
ca0df4e
...
...
@@ -19,11 +19,11 @@ namespace CodeTest
static
void
Main
()
{
//CodeCreater.CreateCode(100);
//
Application.EnableVisualStyles();
//
Application.SetCompatibleTextRenderingDefault(false);
//
HDCodeLearnHelper.LoadConfig(ConfigAppSettings.GetValue(Setting_Init.CameraName), ConfigAppSettings.GetValue(Setting_Init.CodeType));
//
Application.Run(new FrmCodeDecode());
Application
.
Run
(
new
FrmTest
());
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
HDCodeLearnHelper
.
LoadConfig
(
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CameraName
),
ConfigAppSettings
.
GetValue
(
Setting_Init
.
CodeType
));
Application
.
Run
(
new
FrmCodeDecode
());
//
Application.Run(new FrmTest());
}
}
...
...
CodeLibraryProject/dll/CodeLibrary.dll
查看文件 @
ca0df4e
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论