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
c8aa6329
authored
2020-11-09 21:31:19 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
5501dd21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
c8aa632
...
...
@@ -447,10 +447,10 @@ class Command(BaseCommand, LoggerMixin):
# continue
del
json_data_1
# /data/bmw-ocr-data/AFC/6/img/page_0_img_0.jpeg
# /data/bmw-ocr-data/AFC/
tmp/
6/img/page_0_img_0.jpeg
# AFC_2
path_split
=
img_path
.
split
(
'/'
)
task_str
=
consts
.
SPLIT_STR
.
join
((
path_split
[
-
4
],
path_split
[
-
3
]))
task_str
=
consts
.
SPLIT_STR
.
join
((
path_split
[
-
5
],
path_split
[
-
3
]))
with
lock
:
doc_res_dict
=
res_dict
.
setdefault
(
task_str
,
{})
...
...
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