Version 3.03

1,068 views
Skip to first unread message

Aleksander Grzyb

unread,
Jan 10, 2014, 10:07:23 AM1/10/14
to tesser...@googlegroups.com
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?

zdenko podobny

unread,
Jan 10, 2014, 5:36:49 PM1/10/14
to tesser...@googlegroups.com
see tesseract-dev forum[1].

I would like to encourage experienced users to test a build system and CONTRIBUTE patch if something is not working. I am able to test linux and (in some extent windows) builds, but I am missing especially Mac OSX, IOS, android user, that can help with 3.03 release.
Also if you would like to include some patch to official release - this is a right time... ;-)



Zdenko


On Fri, Jan 10, 2014 at 4:07 PM, Aleksander Grzyb <aleksand...@gmail.com> wrote:
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.

zdenko podobny

unread,
Jan 14, 2014, 4:41:42 AM1/14/14
to tesser...@googlegroups.com
If you are using tesseract C++ API in your program it would be great if you can test current svn (r988) if everything fork for you. Here are few remarks:
  •  C API was not updated yet. 
  • linux build works (if you have correctly installed necessary packages) - tested with gcc and clang
  • windows build (tesseract executable and dll)  works in vs2010. I just did quick test with vs2008 and it worked for me too.
  • other builds were not tested

Zdenko

Santhosh Kumar

unread,
Mar 3, 2014, 5:37:12 AM3/3/14
to tesser...@googlegroups.com
HI
I am  also looking for tesseract 3.03 for windows, can any one provide me details about it.


Thank you

zdenko podobny

unread,
Mar 3, 2014, 5:45:06 AM3/3/14
to tesser...@googlegroups.com
Version 3.03 is not release yet.

So if you are not able to compile it and get information about it (read the source code, look for changes) by yourself, than version 3.03 at this stage is not suitable for you.

Zdenko


--

Bernard Polarski

unread,
Mar 3, 2014, 8:53:22 AM3/3/14
to tesser...@googlegroups.com
To test version 3.03 on windows using cygwin I did the following:
 
install cygwin:
 
Add the following related packages:
 
pkg-config
pango
tif
png
jpeg
make
autoconf
automake
libtool 
libpng12-dev 
libjpeg62-dev 
libtiff4-dev 
zlib1g-dev
pdftk (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.

zdenko podobny

unread,
Mar 3, 2014, 9:21:47 AM3/3/14
to tesser...@googlegroups.com
On Mon, Mar 3, 2014 at 2:53 PM, Bernard Polarski <bpol...@gmail.com> wrote:
To test version 3.03 on windows using cygwin I did the following:
 
install cygwin:
 
Add the following related packages:
 
pkg-config
pango
tif
png
jpeg
make
autoconf
automake
libtool 
libpng12-dev 
libjpeg62-dev 
libtiff4-dev 
zlib1g-dev
pdftk (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 )
 
that simply means your compiler is outdated and you can expect problem (in future...)

 
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.

--

Nick White

unread,
Mar 3, 2014, 1:36:07 PM3/3/14
to tesser...@googlegroups.com
On Mon, Mar 03, 2014 at 03:21:47PM +0100, zdenko podobny wrote:
> On Mon, Mar 3, 2014 at 2:53 PM, Bernard Polarski <bpol...@gmail.com> wrote:
> 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 )
>
>
> that simply means your compiler is outdated and you can expect problem (in
> future...)

Bernard, are you using the latest version of Cygwin? Can you see
what version of gcc/g++ is included? It's surprising to me that the
version included in cygwin would be so old...

universal reseller

unread,
Mar 3, 2014, 4:56:04 PM3/3/14
to tesser...@googlegroups.com
hi nick
is there any time frame for release 3.03 ?!


Nick White

unread,
Mar 3, 2014, 8:30:16 PM3/3/14
to tesser...@googlegroups.com
On Tue, Mar 04, 2014 at 01:26:04AM +0330, universal reseller wrote:
> hi nick
> is there any time frame for release 3.03 ?!

It's not decided for sure, as has been mentioned in other threads.
Sometime soon ;)

Bernard Polarski

unread,
Mar 4, 2014, 6:34:59 AM3/4/14
to tesser...@googlegroups.com
I am using gcc version 4.8.2 (GCC)

zdenko podobny

unread,
Mar 4, 2014, 6:44:37 AM3/4/14
to tesser...@googlegroups.com
Version 4.8 should support it[1]. So why did you turn off c++11 support? What was error message/problem?

Zdenko


--
Message has been deleted

Bernard Polarski

unread,
Mar 4, 2014, 1:14:57 PM3/4/14
to tesser...@googlegroups.com
Here is the effect if I leave CXXFLAGS= "-std=c++11:"
In attach the config.log.

Note that this is a cygwin install from scratch and the issue occurred  on 2 different machines.

Here is the effect if I leave CXXFLAGS= "-std=c++11:"
In attach the config.log.

Note that this is a cygwin install from scratch and the issue occurred  on 2 different machines.


.
.
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-langs

Training tools can be build and installed (after building of tesseract) with:

$ make training
$ sudo make training-install

[/src/tesseract-3.03]> make
make  all-recursive
make[1]: Entering directory '/src/tesseract-3.03'
Making all in ccutil
make[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.cpp
libtool: 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.o
ambigs.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 scope
     snprintf(replacement_string, kMaxAmbigStringSize, "%s", fields[1].string());
                                                                               ^
ambigs.cpp:273:63: error: 'strtok_r' was not declared in this scope
   if (!(token = strtok_r(buffer, kAmbigDelimiters, &next_token)) ||
                                                               ^
ambigs.cpp:285:63: error: 'strtok_r' was not declared in this scope
     if (!(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 scope
     if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break;
                                                               ^
ambigs.cpp:329:63: error: 'strtok_r' was not declared in this scope
     if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) ||
                                                               ^
Makefile:477: recipe for target 'ambigs.lo' failed
make[3]: *** [ambigs.lo] Error 1
make[3]: Leaving directory '/src/tesseract-3.03/ccutil'
Makefile:524: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/src/tesseract-3.03/ccutil'
Makefile:396: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/src/tesseract-3.03'
Makefile:304: recipe for target 'all' failed
make: *** [all] Error 2
[/src/tesseract-3.03]>
 

Le mardi 4 mars 2014 12:44:37 UTC+1, zdenop a écrit :
- afficher le texte des messages précédents -
config.log

zdenko podobny

unread,
Mar 4, 2014, 5:58:11 PM3/4/14
to tesser...@googlegroups.com
It looks like cygwin bug[1]. Can you please in file ccutil/ambigs.cpp replace line 23 (#include <stdio.h>) with line:
#include <cstdio>

Than try to compile tesseract if it helps.


Zdenko

Bernard Polarski

unread,
Mar 5, 2014, 4:13:35 AM3/5/14
to tesser...@googlegroups.com

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:

Message has been deleted

Viney Khera

unread,
May 21, 2014, 8:37:43 PM5/21/14
to tesser...@googlegroups.com
Hi, 

I am getting same error trying to compile with cygwin. 

I see you mentioned replacing -std=c++11 by -std=gnu++0x worked for you, in which all files you did this replace?
I tried making change in config file but no luck.

I will appreciate any help in resolving this error. 

zdenko podobny

unread,
May 22, 2014, 3:35:54 AM5/22/14
to tesser...@googlegroups.com
Which revision you tried (3.03 is not released yet so providing revision number is must)?

Zdenko


--
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.

Viney Khera

unread,
May 22, 2014, 5:48:22 PM5/22/14
to tesser...@googlegroups.com
Not sure what revision it is downloaded from google drive but was but able to get it working by making change mentioned earlier in configure file.
Reply all
Reply to author
Forward
0 new messages