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

#include <lstmtester.h>

Collaboration diagram for tesseract::LSTMTester:

Public Member Functions

 LSTMTester (int64_t max_memory)
 
bool LoadAllEvalData (const STRING &filenames_file)
 
bool LoadAllEvalData (const GenericVector< STRING > &filenames)
 
STRING RunEvalAsync (int iteration, const double *training_errors, const TessdataManager &model_mgr, int training_stage)
 
STRING RunEvalSync (int iteration, const double *training_errors, const TessdataManager &model_mgr, int training_stage, int verbosity)
 

Private Member Functions

bool LockIfNotRunning ()
 
void UnlockRunning ()
 

Static Private Member Functions

static void * ThreadFunc (void *lstmtester_void)
 

Private Attributes

DocumentCache test_data_
 
int total_pages_
 
bool async_running_
 
SVMutex running_mutex_
 
int test_iteration_
 
const double * test_training_errors_
 
TessdataManager test_model_mgr_
 
int test_training_stage_
 
STRING test_result_
 

Constructor & Destructor Documentation

◆ LSTMTester()

tesseract::LSTMTester::LSTMTester ( int64_t  max_memory)

Member Function Documentation

◆ LoadAllEvalData() [1/2]

bool tesseract::LSTMTester::LoadAllEvalData ( const STRING filenames_file)

◆ LoadAllEvalData() [2/2]

bool tesseract::LSTMTester::LoadAllEvalData ( const GenericVector< STRING > &  filenames)

◆ LockIfNotRunning()

bool tesseract::LSTMTester::LockIfNotRunning ( )
private

◆ RunEvalAsync()

STRING tesseract::LSTMTester::RunEvalAsync ( int  iteration,
const double *  training_errors,
const TessdataManager model_mgr,
int  training_stage 
)

◆ RunEvalSync()

STRING tesseract::LSTMTester::RunEvalSync ( int  iteration,
const double *  training_errors,
const TessdataManager model_mgr,
int  training_stage,
int  verbosity 
)

◆ ThreadFunc()

void * tesseract::LSTMTester::ThreadFunc ( void *  lstmtester_void)
staticprivate

◆ UnlockRunning()

void tesseract::LSTMTester::UnlockRunning ( )
private

Member Data Documentation

◆ async_running_

bool tesseract::LSTMTester::async_running_
private

◆ running_mutex_

SVMutex tesseract::LSTMTester::running_mutex_
private

◆ test_data_

DocumentCache tesseract::LSTMTester::test_data_
private

◆ test_iteration_

int tesseract::LSTMTester::test_iteration_
private

◆ test_model_mgr_

TessdataManager tesseract::LSTMTester::test_model_mgr_
private

◆ test_result_

STRING tesseract::LSTMTester::test_result_
private

◆ test_training_errors_

const double* tesseract::LSTMTester::test_training_errors_
private

◆ test_training_stage_

int tesseract::LSTMTester::test_training_stage_
private

◆ total_pages_

int tesseract::LSTMTester::total_pages_
private

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