Deduplicating tables and images #4616
Unanswered
jamesbraza
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The table module already uses vectors and |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With
pymupdf==1.26.3
I have discovered that:page.get_drawings
+page.cluster_drawings
page.find_tables
These are both roughly the same PDF content, but the table form is a bit "tighter".
Is there some robust PyMuPDF approach to deduplicate tables and images?
An example of what I'm looking for is some PyMuPDF built-in capability such as
page.cluster_drawings
having a boolean flagdeduplicate_from_tables
.I have seen cases where:
page.get_drawings
+page.cluster_drawings
is a large superset ofpage.find_tables
, so a simple deduplication such as 90% bounding box overlap isn't robustpage.find_tables
gives garbage so I am afraid to prioritize tables over imagesBeta Was this translation helpful? Give feedback.
All reactions