tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
ScriptDetector Class Reference

#include <osdetect.h>

Collaboration diagram for ScriptDetector:

Public Member Functions

 ScriptDetector (const GenericVector< int > *allowed_scripts, OSResults *osr, tesseract::Tesseract *tess)
 
void detect_blob (BLOB_CHOICE_LIST *scores)
 
bool must_stop (int orientation)
 

Private Attributes

OSResultsosr_
 
int korean_id_
 
int japanese_id_
 
int katakana_id_
 
int hiragana_id_
 
int han_id_
 
int hangul_id_
 
int latin_id_
 
int fraktur_id_
 
tesseract::Tesseracttess_
 
const GenericVector< int > * allowed_scripts_
 

Static Private Attributes

static const char * korean_script_ = "Korean"
 
static const char * japanese_script_ = "Japanese"
 
static const char * fraktur_script_ = "Fraktur"
 

Constructor & Destructor Documentation

◆ ScriptDetector()

ScriptDetector::ScriptDetector ( const GenericVector< int > *  allowed_scripts,
OSResults osr,
tesseract::Tesseract tess 
)

Member Function Documentation

◆ detect_blob()

void ScriptDetector::detect_blob ( BLOB_CHOICE_LIST *  scores)

◆ must_stop()

bool ScriptDetector::must_stop ( int  orientation)

Member Data Documentation

◆ allowed_scripts_

const GenericVector<int>* ScriptDetector::allowed_scripts_
private

◆ fraktur_id_

int ScriptDetector::fraktur_id_
private

◆ fraktur_script_

const char * ScriptDetector::fraktur_script_ = "Fraktur"
staticprivate

◆ han_id_

int ScriptDetector::han_id_
private

◆ hangul_id_

int ScriptDetector::hangul_id_
private

◆ hiragana_id_

int ScriptDetector::hiragana_id_
private

◆ japanese_id_

int ScriptDetector::japanese_id_
private

◆ japanese_script_

const char * ScriptDetector::japanese_script_ = "Japanese"
staticprivate

◆ katakana_id_

int ScriptDetector::katakana_id_
private

◆ korean_id_

int ScriptDetector::korean_id_
private

◆ korean_script_

const char * ScriptDetector::korean_script_ = "Korean"
staticprivate

◆ latin_id_

int ScriptDetector::latin_id_
private

◆ osr_

OSResults* ScriptDetector::osr_
private

◆ tess_

tesseract::Tesseract* ScriptDetector::tess_
private

The documentation for this class was generated from the following files: