I am extracting images from a given pdf file using python library PyMuPDF. The images that are constructed in a single layer they are being extracted perfectly. But Images which have been constructed using multiple layers they are being extracted in pieces. Every piece of the image is being treated as a separate image. I tried to get the coordinate of the image boxes and made an analysis that if the starting of a single coordinate of one image is adjacent to the ending of another then they should be stitched together at that particular position. Is there a way I can achieve that goal?
Asked
Active
Viewed 51 times
0
-
It is definitely possible to join using coordinates. Can you share some sample images I can try with? – Amit Amola Dec 15 '20 at 06:32
-
@AmitAmola I have pdf and extracting images from it. I will share the source code and the file. – Sabster Dec 16 '20 at 07:59