I noticed that training instruction was updated to be used with version 3.03 of Tesseract. Anyone know when will be the release of 3.03 version?
--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
---
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 tesseract-oc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
To test version 3.03 on windows using cygwin I did the following:install cygwin:Add the following related packages:pkg-configpangotifpngjpegmakeautoconfautomakelibtool
libpng12-dev
libjpeg62-dev
libtiff4-dev
zlib1g-devpdftk (optional)
Next following this tuto :How to build the tesseract OCR engine on Windows/Cygwin
Note : I had to remove -std=c++11 from CXXFLOAGS in configure and configure.ac.leptonica 1.70 is easy to add ( see link mheonicka )
I must say that I saw a very big improvement in recognition with difficult files from version 3.02.especially with trained dictionaries. So it is worth the effort.
--
--
..Configuration is done.You can now build and install tesseract by running:$ make$ sudo make install$ sudo make install LANGS="eng ara deu"Or:$ sudo make install-langsTraining tools can be build and installed (after building of tesseract) with:$ make training$ sudo make training-install[/src/tesseract-3.03]> makemake all-recursivemake[1]: Entering directory '/src/tesseract-3.03'Making all in ccutilmake[2]: Entering directory '/src/tesseract-3.03/ccutil'make[3]: Entering directory '/src/tesseract-3.03/ccutil'/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -I/usr/local/include/leptonica -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 -MT ambigs.lo -MD -MP -MF .deps/ambigs.Tpo -c -o ambigs.lo ambigs.cpplibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -I/usr/local/include/leptonica -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 -MT ambigs.lo -MD -MP -MF .deps/ambigs.Tpo -c ambigs.cpp -DDLL_EXPORT -DPIC -o .libs/ambigs.oambigs.cpp: In member function 'bool tesseract::UnicharAmbigs::ParseAmbiguityLine(int, int, int, const UNICHARSET&, char*, int*, UNICHAR_ID*, int*, char*, int*)':ambigs.cpp:267:79: error: 'snprintf' was not declared in this scopesnprintf(replacement_string, kMaxAmbigStringSize, "%s", fields[1].string());^ambigs.cpp:273:63: error: 'strtok_r' was not declared in this scopeif (!(token = strtok_r(buffer, kAmbigDelimiters, &next_token)) ||^ambigs.cpp:285:63: error: 'strtok_r' was not declared in this scopeif (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break;^ambigs.cpp:295:61: error: 'strtok_r' was not declared in this scope!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) ||^ambigs.cpp:308:63: error: 'strtok_r' was not declared in this scopeif (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break;^ambigs.cpp:329:63: error: 'strtok_r' was not declared in this scopeif (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) ||^Makefile:477: recipe for target 'ambigs.lo' failedmake[3]: *** [ambigs.lo] Error 1make[3]: Leaving directory '/src/tesseract-3.03/ccutil'Makefile:524: recipe for target 'all-recursive' failedmake[2]: *** [all-recursive] Error 1make[2]: Leaving directory '/src/tesseract-3.03/ccutil'Makefile:396: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory '/src/tesseract-3.03'Makefile:304: recipe for target 'all' failedmake: *** [all] Error 2[/src/tesseract-3.03]>
No changes with #include (cstdio>, still the same error.
I googled a bit, found quite a few references to this bug.
The best was a suggestion to replace -std=c++11 by -std=gnu++0x.
I tried it and it compiled fine however I have no idea
if it is better to have the CXXFLAGS equal to -std=gnu++0X or unset it.
Here is the output with your suggestion:
--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/bfc57edf-97a1-4529-8095-1216b9015c80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.