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
01854092
authored
2025-07-15 13:02:23 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD single page info
1 parent
2932c540
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/common/tools/pdf_to_img.py
src/apps/doc/management/commands/ocr_process.py
View file @
0185409
...
...
@@ -1599,7 +1599,8 @@ class Command(BaseCommand, LoggerMixin):
time
.
sleep
(
self
.
sleep_time_img_put
)
if
pdf_handler
.
is_e_weixin_bs
:
try
:
text_list
=
pdf_handler
.
page_text_list
#self.online_log.info('{0} [pdf_2_img_2_queue] [img_idx={1}] [page_text_list={2}]'.format(self.log_base, img_idx, pdf_handler.page_text_list))
text_list
=
pdf_handler
.
page_text_list
[
img_idx
]
.
pop
(
'rebuild_text'
)
except
Exception
as
e
:
text_list
=
[]
else
:
...
...
src/common/tools/pdf_to_img.py
View file @
0185409
...
...
@@ -187,6 +187,8 @@ class PDFHandler:
self
.
img_path_list
.
append
(
img_save_path
)
if
self
.
is_ebank
:
self
.
rebuild_bbox
(
pm
.
width
,
pm
.
height
,
page
.
number
)
if
self
.
is_e_weixin_bs
:
self
.
rebuild_bbox
(
pm
.
width
,
pm
.
height
,
page
.
number
)
@staticmethod
def
getimage
(
pix
):
...
...
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