Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2021, 10:30 AM   #1
Rip8
Junior Member
Rip8 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2021
Device: android
Page Size Equalizer-To single-page capture camera scan

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 :
Click image for larger version

Name:	before.gif
Views:	300
Size:	242.9 KB
ID:	187942

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:
Click image for larger version

Name:	after.gif
Views:	297
Size:	254.1 KB
ID:	187943

---
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.
Rip8 is offline   Reply With Quote
Old 06-30-2021, 10:39 AM   #2
Rip8
Junior Member
Rip8 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2021
Device: android
03 - Assumptions for this initial release:
- The book was photographed by a fixed camera, in 2 different batches: batch only of even pages and batch only of odd pages.
- All files image files have the same resolution.
- All images are JPGs

note:
As the forum prevents me from editing the initial post, I had to create a new post.
Rip8 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera button as page turner? ctop Boyue 2 01-19-2020 08:30 PM
Hardware about capture hardware page up(down) button event? kdusr Kindle Developer's Corner 5 12-13-2018 02:10 PM
Minimising the size of a page-scan PDF HarryT PDF 11 08-15-2016 03:12 PM
Print page range in viewer outputs single empty page larzeb Library Management 2 04-30-2013 05:24 AM
Single page "Invalid Page!" error Sony-505 2percentright Calibre 5 07-29-2009 11:22 AM


All times are GMT -4. The time now is 07:48 PM.


MobileRead.com is a privately owned, operated and funded community.