A python script to:
Resize images to equalize the size of pages that were captured with a fixed camera, in different batches: Even and Odd.
Download:
pages_size_equalizer_online.zip
Github page
When scanning a book through photographs "one page at a time" with a fixed camera, it is known that the size of the first page in the image file will be different from the size of the last page.
This is due to the distance between the page and the fixed camera, which is different as the pages are turned.
The thicker the book, the greater the difference in size between the first and last page.
Generating the distortion below for a book with 350 pages.
Before :
The proposed script seeks to correct these distortions for all pages of the book, from the input of the 4 different pages resolution:
- odd and even at the beginning of the book
- odd and even at the end of the book
Generating the following result:
After:
---
Notes:
01 - The script is in its first version, there is ample room to improve it with a focus on making it more user-friendly, and how to achieve better image results.
02 - I dedicate the construction of this script to Tex2002ans, who gave me real classes on ebook production, expanding my frontier of what I thought was possible in terms of efficiency and quality.
This is just a small contribution (of many, I hope) to this community of ebook producers.