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
wangsen
MinerU
Commits
39b46ea9
Commit
39b46ea9
authored
Jun 14, 2024
by
赵小蒙
Browse files
update github workflow to Publish to PyPI
parent
aeef64b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
magic_pdf/model/doc_analyze_by_360layout.py
magic_pdf/model/doc_analyze_by_360layout.py
+8
-0
No files found.
magic_pdf/model/doc_analyze_by_360layout.py
0 → 100644
View file @
39b46ea9
from
ultralytics
import
YOLO
image_path
=
''
# 待预测图片路径
model_path
=
''
# 权重路径
model
=
YOLO
(
model_path
)
result
=
model
(
image_path
,
save
=
True
,
conf
=
0.5
,
save_crop
=
False
,
line_width
=
2
)
print
(
result
)
\ No newline at end of file
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