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
cb2f30f9
authored
2025-09-15 11:10:16 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/portal-reocr' into feature/uat-tmp
2 parents
df8f0f1f
0e53f7a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
cb2f30f
...
...
@@ -1361,11 +1361,13 @@ class Command(BaseCommand, LoggerMixin):
if
classify_1_str
==
'0'
:
try
:
# 2. 从EDMS获取PDF文件
# max_count_obj = Configs.objects.filter(id=2).first()
# try:
# max_img_count = int(max_count_obj.value)
# except Exception as e:
max_img_count
=
500
try
:
max_count_obj
=
Configs
.
objects
.
filter
(
id
=
6
)
.
first
()
max_img_count
=
int
(
max_count_obj
.
value
)
except
Exception
as
e
:
max_img_count
=
500
self
.
online_log
.
info
(
'{0} [get max_img_count fail] [task={1}]'
.
format
(
self
.
log_base
,
task_str
))
self
.
online_log
.
info
(
'{0} [max_img_count] [task={1}] [max_img_count={2}]'
.
format
(
self
.
log_base
,
task_str
,
max_img_count
))
for
times
in
range
(
consts
.
RETRY_TIMES
):
try
:
...
...
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