Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
8db33db4
Commit
8db33db4
authored
May 10, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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_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:
...
@@ -90,8 +90,11 @@ class MagicModel:
def
__init__
(
self
,
model_list
:
list
,
docs
:
fitz
.
Document
):
def
__init__
(
self
,
model_list
:
list
,
docs
:
fitz
.
Document
):
self
.
__model_list
=
model_list
self
.
__model_list
=
model_list
self
.
__docs
=
docs
self
.
__docs
=
docs
'''为所有模型数据添加bbox信息(缩放,poly->bbox)'''
self
.
__fix_axis
()
self
.
__fix_axis
()
'''删除置信度特别低的模型数据(<0.05),提高质量'''
self
.
__fix_by_remove_low_confidence
()
self
.
__fix_by_remove_low_confidence
()
'''删除高iou(>0.9)数据中置信度较低的那个'''
self
.
__fix_by_remove_high_iou_and_low_confidence
()
self
.
__fix_by_remove_high_iou_and_low_confidence
()
def
__reduct_overlap
(
self
,
bboxes
):
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