Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
magic_pdf
Commits
e5d760fe
Commit
e5d760fe
authored
Dec 31, 2024
by
zhougaofeng
Browse files
Update cut_image.py
parent
1e548892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
magic_pdf/pre_proc/cut_image.py
magic_pdf/pre_proc/cut_image.py
+0
-3
No files found.
magic_pdf/pre_proc/cut_image.py
View file @
e5d760fe
...
@@ -42,9 +42,6 @@ def ocr_cut_image_and_table(config_path,local_image_dir,spans, page, page_id, pd
...
@@ -42,9 +42,6 @@ def ocr_cut_image_and_table(config_path,local_image_dir,spans, page, page_id, pd
client
=
PredictClient
(
url
)
client
=
PredictClient
(
url
)
ocr_status
=
client
.
check_health
()
ocr_status
=
client
.
check_health
()
pool
=
Pool
(
workers
)
pool
=
Pool
(
workers
)
if
not
ocr_status
:
logger
.
warning
(
f
'Health check failed. The server at "
{
url
}
" is not responding as expected.'
)
logger
.
info
(
f
'Qwen ocr解析服务无法正常运行,暂不使用qwen解析表格服务'
)
for
span
in
spans
:
for
span
in
spans
:
span_type
=
span
[
'type'
]
span_type
=
span
[
'type'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment