We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As suggested by @mara004 in #1000, the PDF rendering is using a list comprehension which holds page processing while the rendering isn't complete:
doctr/doctr/io/pdf.py
Line 45 in 78c9105
This could be fixed by modifying it to yield the page and limit RAM usage:
with pdfium.PdfDocument(file, password=password) as pdf: for img in pdf.render_topil(scale=scale, **kwargs): yield np.asarray(img)
The text was updated successfully, but these errors were encountered:
Waiting until #1032 is available
Sorry, something went wrong.
Outdated by #1240
Successfully merging a pull request may close this issue.
As suggested by @mara004 in #1000, the PDF rendering is using a list comprehension which holds page processing while the rendering isn't complete:
doctr/doctr/io/pdf.py
Line 45 in 78c9105
This could be fixed by modifying it to yield the page and limit RAM usage:
The text was updated successfully, but these errors were encountered: