Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 175c3b0a
由
张东亮
编写于
2023-10-09 17:43:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
关闭OCR时识别按钮显示问题
1 个父辈
059311cf
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
23 行删除
SmartScan/SetControl/UsrMaterialTemplate.Designer.cs
SmartScan/SetControl/UsrMaterialTemplate.cs
SmartScan/SetControl/UsrMaterialTemplate.Designer.cs
查看文件 @
175c3b0
...
@@ -55,11 +55,11 @@ namespace SmartScan
...
@@ -55,11 +55,11 @@ namespace SmartScan
this
.
panel6
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel6
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
BtnOpenLight
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnOpenLight
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnSaveImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnSaveImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnOcrCode
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnScanCode
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnScanCode
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnCloseLight
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnCloseLight
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnCameraImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnCameraImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnLocalImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnLocalImage
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
BtnOcrCode
=
new
Asa
.
FaceControl
.
FaceButton
();
this
.
ImgShow
=
new
Asa
.
FaceControl
.
FacePictureBox
();
this
.
ImgShow
=
new
Asa
.
FaceControl
.
FacePictureBox
();
this
.
facePanel1
.
SuspendLayout
();
this
.
facePanel1
.
SuspendLayout
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
...
@@ -445,11 +445,11 @@ namespace SmartScan
...
@@ -445,11 +445,11 @@ namespace SmartScan
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panel6
.
Controls
.
Add
(
this
.
BtnOpenLight
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnOpenLight
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnSaveImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnSaveImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnOcrCode
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnScanCode
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnScanCode
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnCloseLight
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnCloseLight
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnCameraImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnCameraImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnLocalImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnLocalImage
);
this
.
panel6
.
Controls
.
Add
(
this
.
BtnOcrCode
);
this
.
panel6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
36
);
this
.
panel6
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
36
);
this
.
panel6
.
Name
=
"panel6"
;
this
.
panel6
.
Name
=
"panel6"
;
this
.
panel6
.
Size
=
new
System
.
Drawing
.
Size
(
571
,
236
);
this
.
panel6
.
Size
=
new
System
.
Drawing
.
Size
(
571
,
236
);
...
@@ -491,25 +491,6 @@ namespace SmartScan
...
@@ -491,25 +491,6 @@ namespace SmartScan
this
.
BtnSaveImage
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnSaveImage
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnSaveImage
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnSaveImage_Click
);
this
.
BtnSaveImage
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnSaveImage_Click
);
//
//
// BtnOcrCode
//
this
.
BtnOcrCode
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
BtnOcrCode
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
BtnOcrCode
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
BtnOcrCode
.
BorderWidth
=
2
;
this
.
BtnOcrCode
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
BtnOcrCode
.
HoldPress
=
false
;
this
.
BtnOcrCode
.
Image
=
global
::
SmartScan
.
Properties
.
Resources
.
OCR
;
this
.
BtnOcrCode
.
Location
=
new
System
.
Drawing
.
Point
(
367
,
125
);
this
.
BtnOcrCode
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
BtnOcrCode
.
Name
=
"BtnOcrCode"
;
this
.
BtnOcrCode
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
BtnOcrCode
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
105
);
this
.
BtnOcrCode
.
TabIndex
=
19
;
this
.
BtnOcrCode
.
Text
=
"OCR"
;
this
.
BtnOcrCode
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnOcrCode
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnOcrCode_Click_1
);
//
// BtnScanCode
// BtnScanCode
//
//
this
.
BtnScanCode
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
BtnScanCode
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
...
@@ -583,6 +564,25 @@ namespace SmartScan
...
@@ -583,6 +564,25 @@ namespace SmartScan
this
.
BtnLocalImage
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnLocalImage
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnLocalImage
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnLocalImage_Click
);
this
.
BtnLocalImage
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnLocalImage_Click
);
//
//
// BtnOcrCode
//
this
.
BtnOcrCode
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
BtnOcrCode
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))),
((
int
)(((
byte
)(
20
)))));
this
.
BtnOcrCode
.
BorderStyle
=
Asa
.
FaceControl
.
ControlShape
.
Rectangle
;
this
.
BtnOcrCode
.
BorderWidth
=
2
;
this
.
BtnOcrCode
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))),
((
int
)(((
byte
)(
230
)))));
this
.
BtnOcrCode
.
HoldPress
=
false
;
this
.
BtnOcrCode
.
Image
=
global
::
SmartScan
.
Properties
.
Resources
.
OCR
;
this
.
BtnOcrCode
.
Location
=
new
System
.
Drawing
.
Point
(
367
,
125
);
this
.
BtnOcrCode
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
BtnOcrCode
.
Name
=
"BtnOcrCode"
;
this
.
BtnOcrCode
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
BtnOcrCode
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
105
);
this
.
BtnOcrCode
.
TabIndex
=
19
;
this
.
BtnOcrCode
.
Text
=
"OCR"
;
this
.
BtnOcrCode
.
TextImageRelation
=
System
.
Windows
.
Forms
.
TextImageRelation
.
ImageAboveText
;
this
.
BtnOcrCode
.
Click
+=
new
System
.
EventHandler
(
this
.
BtnOcrCode_Click_1
);
//
// ImgShow
// ImgShow
//
//
this
.
ImgShow
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
this
.
ImgShow
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
...
...
SmartScan/SetControl/UsrMaterialTemplate.cs
查看文件 @
175c3b0
...
@@ -24,8 +24,8 @@ namespace SmartScan
...
@@ -24,8 +24,8 @@ namespace SmartScan
{
{
InitializeComponent
();
InitializeComponent
();
BtnOcrCode
.
Visible
=
Config
.
Func_EnabledOCR
;
BtnOcrCode
.
Visible
=
Config
.
Func_EnabledOCR
;
if
(!
Config
.
Func_EnabledOCR
)
//
if (!Config.Func_EnabledOCR)
BtnScanCode
.
Width
=
LstCode
.
Width
;
//
BtnScanCode.Width = LstCode.Width;
if
(!
BtnTemplateValite
.
Visible
)
if
(!
BtnTemplateValite
.
Visible
)
BtnExtractCode
.
Width
=
LstCode
.
Width
;
BtnExtractCode
.
Width
=
LstCode
.
Width
;
LstMate
.
Items
.
AddRange
(
BLLCommon
.
mateEdit
.
Name
);
LstMate
.
Items
.
AddRange
(
BLLCommon
.
mateEdit
.
Name
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论