AmitGorvadiya / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Error: Illegal min or max specification.. #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 I'm trying to use libtesseract_full.a and now libtesseract_api.a in my proyect. I use Qt
software. I just install Qt qt 2009.03.01 and works, but after I reset my 
computer not. I get
the next error
Error: Illegal min or max specification!

Fatal error: No error trap defined!
Signal_termination_handler called with signal 5002

if I call tessbaseapi in main before QApplication it works. It must be 
something gcc what I
don't know.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 3.0, with 2.04 I get the error too.

Please provide any additional information below.
Ubuntu 9.04 updated. I have read other issues.
http://groups.google.co.jp/group/tesseract-ocr/browse_thread/thread/354a04221139
6e7f

This is a piece of my code
tesseract::TessBaseAPI  *api;
api = new tesseract::TessBaseAPI();
setenv("TESSDATA_PREFIX","./",0);
api->Init(NULL,"eng");   <---Here happens the error

Thanks

Original issue reported on code.google.com by zero...@gmail.com on 1 Aug 2009 at 9:48

GoogleCodeExporter commented 9 years ago
ok, Qt and tesseract api work in linux with "su -" -> ./qtcreator. Anyway it's a
problem of Qt software I think. If someone knows how it work without that 
command
please tell me. Thanks and sorry for my english
Un saludo

Original comment by zero...@gmail.com on 4 Aug 2009 at 9:49

GoogleCodeExporter commented 9 years ago
With NULL as the first parameter to Init, it will try too guess the location of 
the 
tessdata directory. It looks like this guess is going wrong because of the 
initialization of Qt, so use a non-NULL explicit path instead.

Original comment by theraysm...@gmail.com on 11 Aug 2009 at 8:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the solution

#include <locale.h>
setlocale (LC_NUMERIC, "C");

Original comment by zero...@gmail.com on 7 Nov 2009 at 3:01

GoogleCodeExporter commented 9 years ago
Issue 250 has been merged into this issue.

Original comment by zde...@gmail.com on 14 Nov 2012 at 10:17

GoogleCodeExporter commented 9 years ago
I have same issue, with tesseract-3.02 in Qt 4.8.
Using explicit path to datadir do nothing.
But setting LC_NUMERIC both from code and from shell works.
I think tesseract should run with any locale, but, for me, when LC_NUMERIC is 
ru_RU.UTF-8 - it's broken.

Original comment by mchesh...@gmail.com on 18 Jul 2013 at 4:03