Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image-extraction quality issue -- when extracting from PDF with partition_pdf() #3813

Open
Yongbozzz opened this issue Dec 6, 2024 · 0 comments
Labels

Comments

@Yongbozzz
Copy link

Yongbozzz commented Dec 6, 2024

Hi , I'm using partition_pdf to extract images with below config:
unstructured_kwargs={
"strategy": "hi_res",
"extract_images_in_pdf":True,
"extract_image_block_types": ["Image"],
"extract_image_block_to_payload": True,
"languages": ["eng", "chi_sim","chi"],
"chunking_strategy":"basic",
"max_characters":1000,
},
The result shows that one image will be cut into 2 or even worse, for example:

  • original image in PDF:
image
  • extracted images from PDF:
image image image Is there any way to do image-extraction quality enhancement? thanks
@scanny scanny added the pdf label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants