资源简介
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的视频播放器
相关资源
- log_verilog.rar
- AMOS.zip
- 泛在电力物联网建设大纲.pptx
- 阿里云大数据专业认证ACP级-题库-完整
- 2019中科院最新SCI分区表.xls
- YJ_1.5_XiaZaiBa.zip
- dashufacescan.rar
- buck_boost小信号建模.zip
- 资源在这.docx
- 小龙成长记
- 运行Openair代码说明文档.pdf
- 单周期源码.zip
- GBT6323-2014汽车操纵稳定性试验方法.
- http_post.zip
- 万能客服15.2pc.rar
- 基于位置指纹的WiFi室内定位技术与实
- 牛客前端校招文档.pdf
- Activiti工作流课程.doc
- 喜鹊相亲交友平台V2.1.2.zip
- qq_29471575_10307979.zip
- HighText.rar
- 模仿12306火车票APP(微信小程序源代码
- 802.15.4-中文版前5章.pdf
- kids_1987_11127943.pdf
- SmsDemo.rar
- CoolTrayIcon任务栏图标cyrj2009改进版.r
- 第4章_家教信息平台.rar
- 关联规则--CARMA.ppt
- OV9732_CSP5_DS_1.11_wpi.pdf
- 趣味程序百例(一).pdf
评论
共有 条评论