tesseract v5.3.3.20231005
osdetect.cpp File Reference
#include <tesseract/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 "tabvector.h"
#include "tesseractclass.h"
#include "textord.h"
#include <algorithm>
#include <cmath>
#include <memory>

Go to the source code of this file.

Namespaces

namespace  tesseract
 

Functions

int tesseract::orientation_and_script_detection (const char *filename, OSResults *, tesseract::Tesseract *)
 
int tesseract::os_detect (TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess)
 
int tesseract::os_detect_blobs (const std::vector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess)
 
bool tesseract::os_detect_blob (BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess)
 
TESS_API int tesseract::OrientationIdToValue (const int &id)
 

Variables

const float tesseract::kSizeRatioToReject = 2.0
 
const int tesseract::kMinAcceptableBlobHeight = 10
 
const float tesseract::kScriptAcceptRatio = 1.3
 
const float tesseract::kHanRatioInKorean = 0.7
 
const float tesseract::kHanRatioInJapanese = 0.3
 
const float tesseract::kNonAmbiguousMargin = 1.0