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
7e35e5ba
authored
2022-07-02 19:20:39 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix readme
1 parent
7ab1add6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
.gitignore
README.md
authorization_from/retriever.py
.gitignore
View file @
7e35e5b
...
...
@@ -15,3 +15,5 @@ test*
*.h5
*.jpg
*.out
*.log
\ No newline at end of file
...
...
README.md
View file @
7e35e5b
...
...
@@ -21,8 +21,8 @@ from authorization_from import retriever_individuals, retriever_companies
res
=
retriever_companies
.
get_target_fields
(
go_res
,
signature_res
)
print
(
res
)
# {'words_result':
# {'姓名': {'words': '
李子君
', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}},
# '个人身份证件号码': {'words': '
321001198601050010
', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}},
# {'姓名': {'words': '
xx
', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}},
# '个人身份证件号码': {'words': '
xx
', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}},
# '签字': {'words': '有', 'score': 1, 'location': {'left': 540, 'top': 1293, 'width': 143, 'height': 91}}}
# }
...
...
@@ -32,9 +32,9 @@ print(res)
# {'words_result': {
# '经销商名称': {'words': 'xxx', 'score': 1, 'location': {'left': 473, 'top': 440, 'width': 331, 'height': 27}},
# '经销商代码-宝马中国': {'words': '
42330', 's
1285, 'top': 414, 'width': 65, 'height': 26}},
# '管理人员姓名-总经理': {'words': '
胡开
', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}},
# '公司公章': {'words': '有', 'score: {'left': 239, 'top': 1548, 'width': 323, 'height': 329}},
# '经销商代码-宝马中国': {'words': '
xx', 'score': 1, 'location': {'left':
1285, 'top': 414, 'width': 65, 'height': 26}},
# '管理人员姓名-总经理': {'words': '
xx
', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}},
# '公司公章': {'words': '有', 'score:
1, 'location':
{'left': 239, 'top': 1548, 'width': 323, 'height': 329}},
# '法定代表人签章': {'words': '有', 'score': 1, 'location': {'left': 621, 'top': 1657, 'width': 161, 'height': 164}}}
# }
```
...
...
authorization_from/retriever.py
View file @
7e35e5b
...
...
@@ -166,4 +166,6 @@ class Retriever:
words_result_signature
=
self
.
rebuild_res
(
signature_value_res
,
signature_coordinates_res
,
True
)
words_result
.
update
(
words_result_signature
)
# signature_value_res.update(value_res)
# return signature_value_res
return
{
'words_result'
:
words_result
}
...
...
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