资源简介
开源OCR引擎Tesseract的Java API封装Tess4J 1.0版本
代码片段和文件信息
/**
* Copyright @ 2012 Quan Nguyen
*
* Licensed under the Apache License Version 2.0 (the “License“); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package net.sourceforge.tess4j;
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import java.nio.*;
/**
* A Java wrapper for
* Tesseract OCR 3.02 API
using
* JNA Interface Mapping
.
*/
public interface TessAPI extends Library {
static final boolean WINDOWS = System.getProperty(“os.name“).toLowerCase().startsWith(“windows“);
/**
* Native library name.
*/
public static final String LIB_NAME = “libtesseract302“;
public static final String LIB_NAME_NON_WIN = “tesseract“;
/**
* An instance of the class library.
*/
public static final TessAPI INSTANCE = (TessAPI) Native.loadLibrary(WINDOWS ? LIB_NAME : LIB_NAME_NON_WIN TessAPI.class);
/**
* When Tesseract/Cube is initialized we can choose to instantiate/load/run
* only the Tesseract part only the Cube part or both along with the
* combiner. The preference of which engine to use is stored in
* tessedit_ocr_engine_mode
.
ATTENTION: When
* modifying this enum please make sure to make the appropriate changes to
* all the enums mirroring it (e.g. OCREngine in
* cityblock/workflow/detection/detection_storage.proto). Such enums will
* mention the connection to OcrEngineMode in the comments.
*/
public static interface TessOcrEngineMode {
public static final int OEM_TESSERACT_ONLY = (int) 0;
public static final int OEM_CUBE_ONLY = (int) 1;
public static final int OEM_TESSERACT_CUBE_COMBINED = (int) 2;
public static final int OEM_DEFAULT = (int) 3;
};
/**
* Possible modes for page layout analysis. These *must* be kept in order of
* decreasing amount of layout analysis to be done except for
* OSD_ONLY
so that the inequality test macros below work.
*/
public static interface TessPageSegMode {
public static final int PSM_OSD_ONLY = (int) 0;
public static final int PSM_AUTO_OSD = (int) 1;
public static final int PSM_AUTO_ONLY = (int) 2;
public static final int PSM_AUTO = (int) 3;
public static final int PSM_SINGLE_COLUMN = (int) 4;
public static final int PSM_SINGLE_BLOCK_VERT_TEXT = (int) 5;
public static final int PSM_SINGLE_BLOCK = (int) 6;
public static final int
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-10-30 20:47 Tess4J\
目录 0 2012-10-30 20:47 Tess4J\dist\
目录 0 2012-09-30 17:57 Tess4J\lib\
目录 0 2012-06-13 17:31 Tess4J\nbproject\
目录 0 2012-06-13 17:31 Tess4J\nbproject\private\
目录 0 2012-06-13 17:31 Tess4J\src\
目录 0 2012-06-13 17:31 Tess4J\src\net\
目录 0 2012-06-13 17:31 Tess4J\src\net\sourceforge\
目录 0 2012-08-08 21:31 Tess4J\src\net\sourceforge\tess4j\
目录 0 2012-06-13 17:31 Tess4J\src\net\sourceforge\vietocr\
目录 0 2012-06-13 17:31 Tess4J\tessdata\
目录 0 2012-06-13 17:31 Tess4J\tessdata\configs\
目录 0 2012-06-13 17:31 Tess4J\test\
目录 0 2012-06-13 17:31 Tess4J\test\net\
目录 0 2012-06-13 17:31 Tess4J\test\net\sourceforge\
目录 0 2012-10-23 18:51 Tess4J\test\net\sourceforge\tess4j\
文件 5321 2012-10-30 19:31 Tess4J\build.xm
文件 1322 2012-10-30 20:47 Tess4J\dist\README.TXT
文件 63401 2012-10-30 20:47 Tess4J\dist\tess4j.jar
文件 102464 2012-04-07 22:15 Tess4J\eurotext.bmp
文件 20359 2012-04-07 22:13 Tess4J\eurotext.gif
文件 13065 2012-04-07 22:14 Tess4J\eurotext.pdf
文件 14854 2012-04-07 22:13 Tess4J\eurotext.png
文件 102598 2012-04-07 22:13 Tess4J\eurotext.tif
文件 31679 2012-04-07 22:14 Tess4J\lib\ghost4j-0.3.1.jar
文件 1140632 2012-04-07 22:14 Tess4J\lib\jai_imageio.jar
文件 1369421 2012-09-30 17:57 Tess4J\lib\jna.jar
文件 253160 2012-04-07 22:13 Tess4J\lib\junit-4.10.jar
文件 95 2012-04-17 19:52 Tess4J\lib\nblibraries.properties
文件 595 2012-04-07 22:14 Tess4J\lib\pdfpagecount.ps
文件 1672192 2012-04-07 22:13 Tess4J\liblept168.dll
............此处省略26个文件信息
相关资源
- Asprise OCR v4.0 for Java - windows 64bit
- Java开发的OCR程序源码和demo
- tess-two-3.02-so-libs
- 开源OCR引擎Tesseract的Java API封装Tess4
- Tesseract-OCR开发jar包jai_imageio-1.1-alpha
- Tess4JDemo.7z
- OCR实时扫描识别中英文
- Android图像数字识别
- 简单的Tess4J应用
- Android OCR文字扫描并将结果转换成Ex
- tesseract-ocr-setup-3.01-1.exe
- Java Tess4J Demo
- 一款简单基于Tesseract的OCR Android APP
- tesseract-OCR GUI版本-Mac版本
- commons Daemon+Procrun将java程序安装为wi
- tess4j-demo
- tess4j-4.0.2.jar
- tess4j2.0相关资料
- ocr tess4j java demo识别图片技术
- Java OCR 图像智能字符识别-文字识别
- 百度OCR文字识别案例_android防止ak&sk
- Java OCR 图像智能字符识别技术,可识
- java 识别图片中英文
- Tess4J-src
- scorllview文件
- java百度OCR文字识别名片信息补充
- Java+OpenCV+OCR 图像字符处理
- AspriseOcr.dll 64破解版 无弹框
- tess4j中文字库(chi_sim.traineddata)
- JAVA OCR
评论
共有 条评论