Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 insettings.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.