Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a9ba395a
authored
2022-12-19 16:30:11 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
30a3b7b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
a9ba395
...
...
@@ -1517,6 +1517,7 @@ class Command(BaseCommand, LoggerMixin):
elif
classify_1_str
in
consts
.
FSM_CONTRACT_TYPE_MAP
:
file_type
=
consts
.
FSM_CONTRACT_TYPE_MAP
.
get
(
classify_1_str
)
ocr_result
=
fsm_predict
(
pdf_handler
.
pdf_info
,
file_type
)
page_res
=
{}
for
page_num
,
page_info
in
ocr_result
.
items
():
if
isinstance
(
page_num
,
str
)
and
page_num
.
startswith
(
'page_'
):
page_res
[
page_num
]
=
{
...
...
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