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

Create seachable PDF with tesseract #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

minamotorin
Copy link

@minamotorin minamotorin commented Sep 28, 2021

This pull request makes GoBooDo to make a searchable PDF with OCR. See also: #58.

How does this work

Tesseractor makes searchable PDFs from images and merge PDFs by PyPDF2.

Usage

If lang is not in settings.json or empty, GoBooDo create unsearchable PDF (same as now).

If not empty, GoBooDo create searchable PDF. GoBooDo do OCR as the book is written in item of lang.

Note

This pull requests increase dependence (PyPDF2). So if user update GoBooDo and haven't installed PyPDF2, no modules error will occur in makePDF.py.

It takes time to OCR and it is waste of time and electricity to do OCR even though GoBooDo hasn't finished downloading all images (#59).

If user want to do OCR with languages other than English, he or she should install additional language data. And there are other language datas for more accurate OCR (but slow) or for faster.

For OCR, default page_resolution will be not enough. I use 1200.

Some English sentence should get feedbacks.

@vaibhavk97
Copy link
Owner

Thanks for your contribution! the use case is compelling, can you please add some tests too, so that we can ensure that these changes are not breaking the current functionality. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants