资源简介
tesseract-3.04.00.tar.gz
代码片段和文件信息
/**********************************************************************
* File: baseapi.cpp
* Description: Simple API for calling tesseract.
* Author: Ray Smith
* Created: Fri Oct 06 15:35:01 PDT 2006
*
* (C) Copyright 2006 Google Inc.
** 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.
*
**********************************************************************/
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H
#include “config_auto.h“
#endif
#ifdef __linux__
#include
#endif
#if defined(_WIN32)
#ifdef _MSC_VER
#include “vcsversion.h“
#include “mathfix.h“
#elif MINGW
// workaround for stdlib.h with -std=c++11 for _splitpath and _MAX_FNAME
#undef __STRICT_ANSI__
#endif // _MSC_VER
#include
#include
#include
#include
#else
#include
#include
#include
#endif // _WIN32
#include
#include
#include
#include
#include “allheaders.h“
#include “baseapi.h“
#include “blobclass.h“
#include “resultiterator.h“
#include “mutableiterator.h“
#include “thresholder.h“
#include “tesseractclass.h“
#include “pageres.h“
#include “paragraphs.h“
#include “tessvars.h“
#include “control.h“
#include “dict.h“
#include “pgedit.h“
#include “paramsd.h“
#include “output.h“
#include “globaloc.h“
#include “globals.h“
#include “edgblob.h“
#include “equationdetect.h“
#include “tessbox.h“
#include “makerow.h“
#include “otsuthr.h“
#include “osdetect.h“
#include “params.h“
#include “renderer.h“
#include “strngs.h“
#include “openclwrapper.h“
BOOL_VAR(stream_filelist FALSE “Stream a filelist from stdin“);
namespace tesseract {
/** Minimum sensible image size to be worth running tesseract. */
const int kMinRectSize = 10;
/** Character returned when Tesseract couldn‘t recognize as anything. */
const char kTesseractReject = ‘~‘;
/** Character used by UNLV error counter as a reject. */
const char kUNLVReject = ‘~‘;
/** Character used by UNLV as a suspect marker. */
const char kUNLVSuspect = ‘^‘;
/**
* Filename used for input image file from which to derive a name to search
* for a possible UNLV zone file if none is specified by SetInputName.
*/
const char* kInputFile = “noname.tif“;
/**
* Temp file used for storing current parameters before applying retry values.
*/
const char* kOldVarsFile = “failed_vars.txt“;
/** Max string length of an int. */
const int kMaxIntSize = 22;
/**
* Minimum beli
- 上一篇:opencv检测人眼并精准定位瞳孔
- 下一篇:基于QT4.8的视频播放器
相关资源
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
- 操作系统教程课后答案华中科技大学
- 用友ERP考试系统练习题库及答案
- 北京邮电大学数据结构历年考研真题
- 真正!!!概率论与数理统计浙江大
- TMS320VC5509A_开发板使用手册
- hxdef100源码、远控、后门
- CentOS-6.7-x86_64-bin-DVD1to2
- 点阵字库显示中英文
- caxa实体设计2019破解补丁
评论
共有 条评论