tesseract
3.05.02
|
#include "osdetect.h"
#include "blobbox.h"
#include "blread.h"
#include "colfind.h"
#include "fontinfo.h"
#include "imagefind.h"
#include "linefind.h"
#include "oldlist.h"
#include "qrsequence.h"
#include "ratngs.h"
#include "strngs.h"
#include "tabvector.h"
#include "tesseractclass.h"
#include "textord.h"
Go to the source code of this file.
Functions | |
void | remove_nontext_regions (tesseract::Tesseract *tess, BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks) |
int | orientation_and_script_detection (STRING &filename, OSResults *osr, tesseract::Tesseract *tess) |
int | os_detect (TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess) |
int | os_detect_blobs (const GenericVector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess) |
bool | os_detect_blob (BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *osr, tesseract::Tesseract *tess) |
int | OrientationIdToValue (const int &id) |
Variables | |
const int | kMinCharactersToTry = 50 |
const int | kMaxCharactersToTry = 5 * kMinCharactersToTry |
const float | kSizeRatioToReject = 2.0 |
const int | kMinAcceptableBlobHeight = 10 |
const float | kScriptAcceptRatio = 1.3 |
const float | kHanRatioInKorean = 0.7 |
const float | kHanRatioInJapanese = 0.3 |
const float | kNonAmbiguousMargin = 1.0 |
const int | kMinCredibleResolution = 70 |
int orientation_and_script_detection | ( | STRING & | filename, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 191 of file osdetect.cpp.
int OrientationIdToValue | ( | const int & | id | ) |
Definition at line 565 of file osdetect.cpp.
int os_detect | ( | TO_BLOCK_LIST * | port_blocks, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 234 of file osdetect.cpp.
bool os_detect_blob | ( | BLOBNBOX * | bbox, |
OrientationDetector * | o, | ||
ScriptDetector * | s, | ||
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 325 of file osdetect.cpp.
int os_detect_blobs | ( | const GenericVector< int > * | allowed_scripts, |
BLOBNBOX_CLIST * | blob_list, | ||
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 276 of file osdetect.cpp.
void remove_nontext_regions | ( | tesseract::Tesseract * | tess, |
BLOCK_LIST * | blocks, | ||
TO_BLOCK_LIST * | to_blocks | ||
) |
Definition at line 159 of file osdetect.cpp.
const float kHanRatioInJapanese = 0.3 |
Definition at line 45 of file osdetect.cpp.
const float kHanRatioInKorean = 0.7 |
Definition at line 44 of file osdetect.cpp.
const int kMaxCharactersToTry = 5 * kMinCharactersToTry |
Definition at line 37 of file osdetect.cpp.
const int kMinAcceptableBlobHeight = 10 |
Definition at line 40 of file osdetect.cpp.
const int kMinCharactersToTry = 50 |
Definition at line 36 of file osdetect.cpp.
const int kMinCredibleResolution = 70 |
Definition at line 62 of file osdetect.cpp.
const float kNonAmbiguousMargin = 1.0 |
Definition at line 47 of file osdetect.cpp.
const float kScriptAcceptRatio = 1.3 |
Definition at line 42 of file osdetect.cpp.
const float kSizeRatioToReject = 2.0 |
Definition at line 39 of file osdetect.cpp.