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
8db33db4
Commit
8db33db4
authored
May 10, 2024
by
赵小蒙
Browse files
add annotation
parent
9a377463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
magic_pdf/model/magic_model.py
magic_pdf/model/magic_model.py
+3
-0
No files found.
magic_pdf/model/magic_model.py
View file @
8db33db4
...
...
@@ -90,8 +90,11 @@ class MagicModel:
def
__init__
(
self
,
model_list
:
list
,
docs
:
fitz
.
Document
):
self
.
__model_list
=
model_list
self
.
__docs
=
docs
'''为所有模型数据添加bbox信息(缩放,poly->bbox)'''
self
.
__fix_axis
()
'''删除置信度特别低的模型数据(<0.05),提高质量'''
self
.
__fix_by_remove_low_confidence
()
'''删除高iou(>0.9)数据中置信度较低的那个'''
self
.
__fix_by_remove_high_iou_and_low_confidence
()
def
__reduct_overlap
(
self
,
bboxes
):
...
...
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