|
tesseract
5.0.0-alpha-619-ge9db
|
#include <cmath>#include <cstring>#include <cstdio>#include "classify.h"#include "cluster.h"#include "clusttool.h"#include "commontraining.h"#include "featdefs.h"#include "fontinfo.h"#include <tesseract/genericvector.h>#include "indexmapbidi.h"#include "intproto.h"#include "mastertrainer.h"#include "mergenf.h"#include "mf.h"#include "ocrfeatures.h"#include "oldlist.h"#include "protos.h"#include "shapetable.h"#include "tessopt.h"#include "tprintf.h"#include "unicity_table.h"Go to the source code of this file.
Macros | |
| #define | _USE_MATH_DEFINES |
Functions | |
| int | main (int argc, char **argv) |
| #define _USE_MATH_DEFINES |
Definition at line 23 of file mftraining.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
This program reads in a text file consisting of feature samples from a training page in the following format:
FontName UTF8-char-str xmin ymin xmax ymax page-number
NumberOfFeatureTypes(N)
FeatureTypeName1 NumberOfFeatures(M)
Feature1
...
FeatureM
FeatureTypeName2 NumberOfFeatures(M)
Feature1
...
FeatureM
...
FeatureTypeNameN NumberOfFeatures(M)
Feature1
...
FeatureM
FontName CharName ...The result of this program is a binary inttemp file used by the OCR engine.
| argc | number of command line arguments |
| argv | array of command line arguments |
Definition at line 205 of file mftraining.cpp.