ImageProcessing-ElectronicPublications / scantailor-experimental

Scan Tailor Experimental is an interactive post-processing tool for scanned pages.
https://github.com/Tulon/scantailor/tree/experimental
GNU General Public License v3.0
38 stars 1 forks source link

Feature Request: External Program Filter #45

Open anotatta opened 1 month ago

anotatta commented 1 month ago

Thank you for adding "Filter" feature at the output stage. It would be great if there is also an option to run external image processing cli program (such as gmic [https://gmic.eu/] or others) to do custom filtering. This will open up the range and type of custom filter according to user preference.

zvezdochiot commented 1 month ago

@noobie-iv , это по твою душу вопрос.

PS: Я уже подмечал, что для фильтров нужен отдельный этап, сразу после "Разрезки". Тогда и "чудить" можно будет вдоль и поперёк, а не пихать всё в "Вывод". И работа всех остальных этапов тут же нормализуется.

@anotatta , why can't these utilities (and filters) be applied before processing in ST/STEX?

anotatta commented 1 month ago

@zvezdochiot , @noobie-iv,

Because I want to take advantage of the ST/STEX pre-processing stages (Fix Orientation, Split Pages, Geometric Distortions, Select Contents, Margins). These are steps that ST/STEX do very well.

gmic is good with filter at the output stage with thousands of filters to try.

zvezdochiot commented 1 month ago

@anotatta say:

gmic is good with filter at the output stage with thousands of filters to try.

:question: Why can't these utilities (and filters) be applied before processing in ST/STEX?

PS: @zvezdochiot say:

I have already noticed that filters need a separate stage, immediately after the "Split". Then it will be possible to "freak out" along and across, and not shove everything into the "Output". And the work of all other stages is immediately normalized.

anotatta commented 1 month ago

The filter that I am interested sometime remove page border and other feature that make it difficult for ST/STEX to split page and select contents automatically.

zvezdochiot commented 1 month ago

@anotatta , ok. Now the question is clear.