"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/api/baseapi.cpp" between
tesseract-5.0.0-rc2.tar.gz and tesseract-5.0.0-rc3.tar.gz

About: Tesseract is an Optical Character Recognition (OCR) engine. Release candidate.

baseapi.cpp  (tesseract-5.0.0-rc2):baseapi.cpp  (tesseract-5.0.0-rc3)
skipping to change at line 112 skipping to change at line 112
/** Minimum sensible image size to be worth running tesseract. */ /** Minimum sensible image size to be worth running tesseract. */
const int kMinRectSize = 10; const int kMinRectSize = 10;
/** Character returned when Tesseract couldn't recognize as anything. */ /** Character returned when Tesseract couldn't recognize as anything. */
const char kTesseractReject = '~'; const char kTesseractReject = '~';
/** Character used by UNLV error counter as a reject. */ /** Character used by UNLV error counter as a reject. */
const char kUNLVReject = '~'; const char kUNLVReject = '~';
/** Character used by UNLV as a suspect marker. */ /** Character used by UNLV as a suspect marker. */
const char kUNLVSuspect = '^'; const char kUNLVSuspect = '^';
/** /**
* Filename used for input image file, from which to derive a name to search
* for a possible UNLV zone file, if none is specified by SetInputName.
*/
static const char *kInputFile = "noname.tif";
/**
* Temp file used for storing current parameters before applying retry values. * Temp file used for storing current parameters before applying retry values.
*/ */
static const char *kOldVarsFile = "failed_vars.txt"; static const char *kOldVarsFile = "failed_vars.txt";
#ifndef DISABLED_LEGACY_ENGINE #ifndef DISABLED_LEGACY_ENGINE
/**
* Filename used for input image file, from which to derive a name to search
* for a possible UNLV zone file, if none is specified by SetInputName.
*/
static const char *kInputFile = "noname.tif";
static const char kUnknownFontName[] = "UnknownFont"; static const char kUnknownFontName[] = "UnknownFont";
static STRING_VAR(classify_font_name, kUnknownFontName, static STRING_VAR(classify_font_name, kUnknownFontName,
"Default font name to be used in training"); "Default font name to be used in training");
// Finds the name of the training font and returns it in fontname, by cutting // Finds the name of the training font and returns it in fontname, by cutting
// it out based on the expectation that the filename is of the form: // it out based on the expectation that the filename is of the form:
// /path/to/dir/[lang].[fontname].exp[num] // /path/to/dir/[lang].[fontname].exp[num]
// The [lang], [fontname] and [num] fields should not have '.' characters. // The [lang], [fontname] and [num] fields should not have '.' characters.
// If the global parameter classify_font_name is set, its value is used instead. // If the global parameter classify_font_name is set, its value is used instead.
 End of changes. 2 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)