Open Kristinita opened 3 years ago
Thanks for the illustrative write-up. Yes, improved auto dewarping in ST would be nice.
User hint: There's an old windows program "BookRestorer v4.2.1" from i2s which seems to provide relatively good auto dewarp results. It runs well on Wine emulator. You can pipe the input through BookRestorer just for dewarping and then do the other processing with ScanTailor. If BookRestorer's auto-dewarping fails, one can still emplace the original files and dewarp them manually with ScanTailor.
Originally suggested by @4lex4 in https://github.com/4lex4/scantailor-advanced/issues/22#issuecomment-39664376
#67 — possibly related issue
1. Summary
In some cases, I get bad auto dewarping output. It would be nice if ScanTailor Universal users can use auto dewarping for them.
2. Case 1 — Free space above a page number
Auto dewarping may give poor results when a lot of free space between the end of the text and the page number at the bottom of it.
Example:
2.1. Bad dewarping
Scan image:
I selected content with the page number:
Output
→Dewarping
→Auto
:I don’t want this “Star Wars” output.
Dewarping
tab:2.2. Good dewarping
I selected content without the page number:
Dewarping tab:
Dewarping nice:
But a problem — no page number at the bottom.
3. Case 2 — Different fonts on the page
Also, auto dewarping may not work correctly if different fonts and design used in one page.
Example:
3.1. Bad dewarping
Scan image:
I selected all:
Dewarping
tab:Auto dewarping result:
This is not at all what I wanted.
3.2. Good dewarping
I can select solely the text without the header:
Dewarping
tab in this case:I get a nice dewarping:
But without the header.
4. Feature request — Select areas for auto dewarping
If you know better solutions for the problem, please tell me about them.
4.1. Desired behavior
Users optionally will be able to manually select areas for auto dewarping → auto dewarping will apply solely for these selected areas. For example, for cases above it would be nice, if dewarping will apply solely for areas inside red rectangles:
5. Reply to possible counterargument
5.1. “Use manual, not auto dewarping”
I tried manual dewarping, but it looks like it hard and time-consuming for the user.
Thanks.