问题描述
尝试从此处运行示例代码我收到错误说
Trying to run sample code from here http://tess4j.sourceforge.net/codesample.html I got an error saying
Error: Illegal min or max specification!
signal_termination_handler:Error:Signal_termination_handler called:Code 5002
我找到了解决方案,例如 ppl说设置区域设置足以摆脱错误。我的问题是我用Java而不是C ++编写它,我无法在任何地方找到我在代码中设置语言环境的方法,就像它们那样做了
I found solution e.g. here https://code.google.com/p/tesseract-ocr/issues/detail?id=228 ppl say that setting locale is enough to get rid of error. My problem is that I write it in Java not C++ and I cannot find anywhere how I can set locale in my code as they did it like that
#include <locale.h>
setlocale (LC_NUMERIC, "C");
我试图使用 setTessVariable(String,String)
方法,但它没有用。我会提到我的pdf文件,它们都是波兰语,所以如果有人知道我应该如何设置这些语言环境,我将不胜感激。我尝试在linux x64平台上运行它。
I was trying to use setTessVariable(String, String)
method but it didn't work. I will mention that my pdf files, which are on input, are in polish language so if someone know how I should set these locale I would be grateful. I try to run it on linux x64 platform.
推荐答案
- nguyenq
– nguyenq
这篇关于Tesseract错误。非法最小或最大规格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!