Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
part_of_F3_OCR
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
604ddc73
authored
2022-09-07 19:12:43 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix dealername5
1 parent
49ae7448
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
authorization_from/const.py
authorization_from/retriever.py
authorization_from/const.py
View file @
604ddc7
...
...
@@ -7,7 +7,7 @@ TARGET_FIELD_INDIVIDUALS = {
'value'
:
{
'姓名'
:
(
'under'
,
{
'left_padding'
:
1
,
'right_padding'
:
1
,
'scope'
:
2
},
''
),
'个人身份证件号码'
:
(
'under'
,
{
'left_padding'
:
0.5
,
'right_padding'
:
0.5
,
'scope'
:
2
},
''
),
'经销商名称'
:
(
'under'
,
{
'left_padding'
:
0.1
,
'right_padding'
:
0.
5
,
'scope'
:
2
,
'append'
:
True
},
''
)
'经销商名称'
:
(
'under'
,
{
'left_padding'
:
0.1
,
'right_padding'
:
0.
8
,
'scope'
:
2.5
,
'append'
:
True
},
''
)
},
'signature'
:
{
'签字'
:
{
'signature'
,
}
...
...
authorization_from/retriever.py
View file @
604ddc7
...
...
@@ -108,7 +108,7 @@ class Retriever:
cent_y
=
y0
+
((
y1
-
y0
)
/
2
)
if
x_min
<
cent_x
<
x_max
and
y_min
<
cent_y
<
y_max
:
if
len
(
text
.
strip
())
>
0
:
find_list
.
append
(
cent_x
,
cent_y
,
x0
,
y0
,
x1
,
y1
,
text
)
find_list
.
append
(
(
cent_x
,
cent_y
,
x0
,
y0
,
x1
,
y1
,
text
)
)
if
len
(
find_list
)
==
0
:
return
None
,
None
else
:
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment