Page 2 of 3

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 01 Jan 2012, 01:46
by Hasher
Just wonder what happened to this project . Did it ever get fully developed ?

Paul :-)

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 01 Jan 2012, 06:11
by Tulon
It's included in the main version now. The binary is called scantailor-cli.exe

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 01 Jan 2012, 07:08
by Hasher
Thanks . Its an awesome app btw :-)

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 04 Mar 2012, 21:28
by Hasher
Hi

Been working with the CLI version of ST and its working very well. Only problem Im having is different size pages in the book like the image below. (taken from the GUI to give some idea of my problem)

Image

The A4 page gets distorted to the larger A3 size , giving it a stretched look with a lot of white space.

Is there anyway in the CLI version to enforce that it uses the original margins of the input page .Im cleaning previously scanned (badly) pages and dont have the originals.

In the GUI version I un-select the "Match size with other pages" in margins screen and that solves the problem

Thanks in advance

Paul

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 05 Mar 2012, 07:15
by pejuko
Try to set --match-layout-tolerance argument. Setting it to 0 is equal to uncheck "match size with other pages" for all pages. Value about 0.2 should keep similar pages matched and pages with different shape unmatched.

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 07 Mar 2012, 19:08
by Hasher
Thanks pejuko will try that tonight :-)


On another point is it possible to define a folder as a project . Currently using scantailor-cli [options] <image, image, ...> <output_directory> but seem to have problems when I get to about 500 images. Using Autoit to generate the Command line. Also after starting a project can I save the project via command line ?


Thanks
Paul

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 08 Mar 2012, 08:50
by pejuko
There's limit on the command line length, entering input directory instead of images sounds as a good idea. I'll try to do this asap. You can save your project file with -o=file.ScanTailor option. All those options are described in help if you run scantailor-cli -h from command line, read it please.

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 08 Mar 2012, 19:04
by Hasher
Hi pejuko

That was my next question . I had done the -h command and below is what it gave me . I know now im missing things:
Options:
--help, -h
--verbose, -v
--layout=, -l=<0|1|1.5|2> -- default: 0
0: auto detect
1: one page layout
1.5: one page layout but cutting is needed
2: two page layout
--layout-direction=, -ld=<lr|rl> -- default: lr
--orientation=<left|right|upsidedown|none>
-- default: none
--rotate=<0.0...360.0> -- it also sets deskew to manual mode
--deskew=<auto|manual> -- default: auto
--content-detection=<cautious|normal|aggressive>
-- default: normal
--content-box=<<left_offset>x<top_offset>:<width>x<height>>
-- if set the content detection is se to manual mode
example: --content-box=100x10
0:1500x2500
--margins=<number> -- sets left, top, right and bottom margins to same number.
--margins-left=<number>
--margins-right=<number>
--margins-top=<number>
--margins-bottom=<number>
--alignment=center -- sets vertical and horizontal alignment to center
--alignment-vertical=<top|center|bottom>
--alignment-horizontal=<left|center|right>
--dpi=<number> -- sets x and y dpi. default: 600
--dpi-x=<number>
--dpi-y=<number>
--output-dpi=<number> -- sets x and y output dpi. default: 600
--output-dpi-x=<number>
--output-dpi-y=<number>
--color-mode=<black_and_white|color_grayscale|mixed>
-- default: black_and_white
--white-margins -- default: false
--normalize-illumination -- default: false
--threshold=<n> -- n<0 thinner, n>0 thicker; default: 0
--despeckle=<off|cautious|normal|aggressive>
-- default: normal
--dewarping=<off|auto> -- default: off
--depth-perception=<1.0...3.0> -- default: 2.0
--start-filter=<1...6> -- default: 4
--end-filter=<1...6> -- default: 6
--output-project=, -o=<project_name>

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 11 Mar 2012, 16:36
by pejuko
Hasher wrote:That was my next question . I had done the -h command and below is what it gave me . I know now im missing things:
it's part of "Enhanced" version and wasn't merged into main yet. Checkout http://www.diybookscanner.org/forum/vie ... =21&t=1144 for more details on enhanced version and upcoming releases in future. Sorry I didn't mention it before.

Re: ANNOUNCEMENT: Scan Tailor Command Line Interface

Posted: 16 Mar 2012, 18:49
by mellow-yellow
pejuko,

I'd like to try your scantailor-cli input enhancements (http://scantailor.git.sourceforge.net/g ... 7754b44754) (committed 5 days ago) but I don't see a windows binary (maybe I'm mistaken?). So, I'm trying to build one on XP but having trouble, despite the otherwise good instructions in packaging\windows\readme.en.txt. Long story short, could you (or somebody else with experience) create a windows binary?