Tesseract错误。非法最小或最大规格 [英] Tesseract error. Illegal min or max specification

查看:258
本文介绍了Tesseract错误。非法最小或最大规格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从此处运行示例代码 http://tess4j.sourceforge.net/codesample.html我收到错误说

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

我找到了解决方案,例如 https://code.google.com/p/tesseract- ocr / issues / detail?id = 228 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.

推荐答案


'你能导出LC_NUMERIC =C 在命令行启动
你的程序?

'Can you export LC_NUMERIC="C" at the command line when you launch your program?'

- nguyenq

– nguyenq

这篇关于Tesseract错误。非法最小或最大规格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆