ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
194 stars 8 forks source link

Feature request: ability to partition foreground layer into regions with different threshold levels. #12

Open matthuszagh opened 2 years ago

matthuszagh commented 2 years ago

It would be useful to be able to create custom regions with individually-settable threshold levels. For example, here's a page I'm currently working on:

st

I treat the image in the upper right as part of the background and everything else as part of the foreground text layer. In particular, the outline in the middle left is treated as text because the shading doesn't convey any useful information. But, because of this shading, a low threshold needs to be set for its background shading to disappear while maintaining the foreground text. At this low threshold, thin ligatures begin to disappear, such as parts of the number in the lower right corner. It would be nice to be able to box off this outline into a region given a low threshold and then treat the remainder of the page with a separate, higher threshold.

I am fairly new to scantailor, so if there's an existing way to accomplish this, please do let me know.

Thanks for taking over maintenance of this project!

darnn commented 2 years ago

Could you upload the actual scanned page? I've never really done anything that required separating the layers, but I could try to fiddle with the output settings and see if there isn't some way of preserving the text while eliminating the shading.