資源簡介
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檢測人眼并精準(zhǔn)定位瞳孔
- 下一篇:基于QT4.8的視頻播放器
評論
共有 條評論