On Mon, 27 Oct 2014, Rick Leir wrote:
Hi Rob
My preprocessing is mentioned in this post:
https://groups.google.com/forum/#!topic/tesseract-ocr/jON
GSChLRv4
Maybe you would call it adaptive?
Adaptive means that the threshold for choosing between
black and white changes over different parts of the image.
Generally, the background is studied in each area to
see what the threshold should be.
Thanks for mentioning Wolf. I tried to compile the latest
version but my 14.04 config must be wrong and I get:
~/ocr/wolf/binarizewolfjolion-src$
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ make
g++ -I/usr/include/opencv binarizewolfjolion.cpp -o
binarizewolfjolion `pkg-config opencv --libs`-lstdc++
/usr/bin/ld: /tmp/ccwdIqAh.o: undefined reference to
symbol '_ZN2cv11_InputArrayC1ERKNS_3MatE'
//usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4: error
adding symbols: DSO missing from command line
Perhaps you need the development version of opencv
to compile the code. What do you see when you run
"pkg-config opencv --libs" in a terminal? It should
point to a library file that you can link to.
Unfortunately, I can't test the build myself in my
Ubuntu OS because I use a custom version of ruby,
and the binarize scripts are hard-coded to /usr/bin/ruby.
Rob
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/alpine.LNX.2.02.1410272234260.10035%40robpc4.home.org.
For more options, visit https://groups.google.com/d/optout.