tesseract
4.0.0-1-g2a2b
|
#include <algorithm>
#include <cmath>
#include <memory>
#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 | |
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 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 |
int orientation_and_script_detection | ( | STRING & | filename, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 190 of file osdetect.cpp.
int OrientationIdToValue | ( | const int & | id | ) |
Definition at line 568 of file osdetect.cpp.
int os_detect | ( | TO_BLOCK_LIST * | port_blocks, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 233 of file osdetect.cpp.
bool os_detect_blob | ( | BLOBNBOX * | bbox, |
OrientationDetector * | o, | ||
ScriptDetector * | s, | ||
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 329 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 278 of file osdetect.cpp.
const float kHanRatioInJapanese = 0.3 |
Definition at line 46 of file osdetect.cpp.
const float kHanRatioInKorean = 0.7 |
Definition at line 45 of file osdetect.cpp.
const int kMinAcceptableBlobHeight = 10 |
Definition at line 41 of file osdetect.cpp.
const float kNonAmbiguousMargin = 1.0 |
Definition at line 48 of file osdetect.cpp.
const float kScriptAcceptRatio = 1.3 |
Definition at line 43 of file osdetect.cpp.
const float kSizeRatioToReject = 2.0 |
Definition at line 40 of file osdetect.cpp.