Scan Tailor Advanced

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.

Moderator: peterZ

artelse
Posts: 2
Joined: 10 Dec 2018, 07:21
Number of books owned: 2000
Country: NL

Re: Scan Tailor Advanced

Post by artelse »

Replying on my post as I have fixed the Qt path problem.
on cmake one can pass a path like so:

Code: Select all

-DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
So my final cmake which compiles fine is:

Code: Select all

cmake -G "Unix Makefiles" --build .. -DBOOST_ROOT=/usr/local -DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Make sure it points to the actual cmake directory and not just to /opt/Qt or something similar.
Konos93a
Posts: 186
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: Scan Tailor Advanced

Post by Konos93a »

hello is it possible to a next version add the feature Match size by scaling in Margins . it will then have all the features of scan tailor experimental .
now command Match size with other pages is like Match size by growing margins . i prefer your version rather than experimental because output command is perfect . less size , better quality more options and more smooth the results. but i use 2 camera scanner and it is very difficult to have the same cropped sizes of odds and evens pages . Match size by scaling in Margins would correct that.

what difficulties there are to get added ?

in any case thank your for your contribution with your versions
alan
Posts: 2
Joined: 27 Feb 2019, 16:56
Number of books owned: 0
Country: USA

Re: Scan Tailor Advanced

Post by alan »

I was able to build ScanTailor Advanced on macOS 10.14.3 (Mojave) using Homebrew instead of Macports (as I already use Homebrew).

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make -j `nproc`
make install
zlib is already available on macOS

The only obvious issue so far is that icons (such as previous/next page) are not properly displayed, but the tooltips work.

i8dcI32QWRfiwVj wrote: 18 Aug 2018, 08:31
i8dcI32QWRfiwVj wrote: 17 Aug 2018, 08:15
codeone wrote: 23 Jul 2018, 08:44
I know your inquiries re: macOS are a few months old, now, but I wanted to note I was able to compile in macOS High Sierra on an 2013 Macbook Pro. While I did get some warnings during the build process, nothing failed outright. The latest version of the source (as of 2018-07-23 -- 1.0.16) did appear to build successfully and install...I start ScanTailor Advanced from the Terminal and it just works as far as I can tell, though I haven't stress tested every possible feature. I do see errors in Terminal when running--I think these are related to stylesheets of the UI but they haven't crashed the app and I don't actually have a sense of what isn't being executed.

Still, if anyone would like me to add a HOWTO build Advanced for macOS, I could do that--just let me know if this is still needed and I can write up how I got the source compiled. It's also possible one or more of you did this on your own and with better results than me, so I'd also be happy to hear from people who got this working on their own, too.
Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)
Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:
  1. Preparation:

    Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:

    Code: Select all

    sudo port install boost cmake qt5 tiff libpng jpeg zlib
    Then cloned the ST Advanced github repository:

    Code: Select all

    git clone https://github.com/4lex4/scantailor-advanced.git
  2. Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):

    Code: Select all

    cd ".../scantailor-advanced-1.x.x"
    mkdir build && cd build
    cmake -G "Unix Makefiles" --build ..
    make -j `nproc`
    
    Then:

    Code: Select all

    sudo make install
Done!

Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.
alan
Posts: 2
Joined: 27 Feb 2019, 16:56
Number of books owned: 0
Country: USA

Re: Scan Tailor Advanced

Post by alan »

A small update. The nproc command does not exist on macOS, so the -j option can be omitted.
The updated commands:

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make
make install

alan wrote: 27 Feb 2019, 22:27 I was able to build ScanTailor Advanced on macOS 10.14.3 (Mojave) using Homebrew instead of Macports (as I already use Homebrew).

Code: Select all

brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make -j `nproc`
make install
zlib is already available on macOS

The only obvious issue so far is that icons (such as previous/next page) are not properly displayed, but the tooltips work.

i8dcI32QWRfiwVj wrote: 18 Aug 2018, 08:31
i8dcI32QWRfiwVj wrote: 17 Aug 2018, 08:15

Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)
Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:
  1. Preparation:

    Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:

    Code: Select all

    sudo port install boost cmake qt5 tiff libpng jpeg zlib
    Then cloned the ST Advanced github repository:

    Code: Select all

    git clone https://github.com/4lex4/scantailor-advanced.git
  2. Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):

    Code: Select all

    cd ".../scantailor-advanced-1.x.x"
    mkdir build && cd build
    cmake -G "Unix Makefiles" --build ..
    make -j `nproc`
    
    Then:

    Code: Select all

    sudo make install
Done!

Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.
Konos93a
Posts: 186
Joined: 19 Sep 2016, 10:00
E-book readers owned: kobo aura,kindle 1,kindle pw3,pocketbook inkpad 2
Number of books owned: 3000
Country: greece

Re: Scan Tailor Advanced

Post by Konos93a »

here is my issue even if i can correct it with fast stone photoresizer a program i think that this should get added . personally every even page is 5% smaller than odd page

. use fast stone photoresizer before use scantailor advanced so pages have almost the same size contect
0kelvin
Posts: 29
Joined: 10 Nov 2012, 17:14
Number of books owned: 0
Country: Brazil

Re: Scan Tailor Advanced

Post by 0kelvin »

What happened to that version of scantailor that started multiple processes in task manager, one per thread to process multiple pages at once? I'm using the newest one and it processes one page at a time.
xerum
Posts: 41
Joined: 12 Jul 2015, 04:23
Number of books owned: 0
Country: australia

Re: Scan Tailor Advanced

Post by xerum »

It appears that 4lex4 has made update to STA but not sure what new features or functions have been added.

See here: https://github.com/4lex4/scantailor-advanced/releases

I always appreciate the work/effort Joseph and 4lex4 had done to keep improving Scan Tailor.

Scan Tailor Enhanced has a very powerful feature in MARGINS called "Match Size by Scaling". I can only pray 4lex4 will this feature add to Scan Tailor Advanced.

Cheers
dtic
Posts: 464
Joined: 06 Mar 2010, 18:03

Re: Scan Tailor Advanced

Post by dtic »

xerum wrote: 18 Aug 2019, 08:25 It appears that 4lex4 has made update to STA but not sure what new features or functions have been added.
Might be possible to find out more by comparing changes between develop/master versions:
https://github.com/4lex4/scantailor-adv ... re/develop
User avatar
daniel_reetz
Posts: 2812
Joined: 03 Jun 2009, 13:56
E-book readers owned: Used to have a PRS-500
Number of books owned: 600
Country: United States
Contact:

Re: Scan Tailor Advanced

Post by daniel_reetz »

Really impressed with the work by 4lex4... sent a donation his way as a thank-you.
i8dcI32QWRfiwVj
Posts: 12
Joined: 26 Jul 2018, 09:28
Number of books owned: 0
Country: Germany

Re: Scan Tailor Advanced

Post by i8dcI32QWRfiwVj »

I'm running the '2019.8.16 Early Access' build. Does it happen to anyone else on this build that, in 'Output', text on a page gets thicker, up to the point of becoming hardly legible, once the dewarping feature is switched on? Happens to me with both automatic and marginal dewarping.

EDIT: Back on 1.0.16 all works fine.
Post Reply