#include "adaptive.h"#include "oldlist.h"#include "genericvector.h"#include "matchdefs.h"#include "host.h"#include <stdio.h>#include <math.h>#include "blobs.h"#include "params.h"#include "bitvec.h"#include "cutil.h"#include "unichar.h"#include "unicity_table.h"#include "scrollview.h"#include "unicharset.h"#include "emalloc.h"#include "freelist.h"#include "globals.h"#include "adaptive.h"#include "ccstruct.h"#include "classify.h"#include "dict.h"#include "fontinfo.h"#include "intproto.h"#include "normalis.h"#include "ratngs.h"#include "ocrfeatures.h"Namespaces | |
| namespace | tesseract |
Functions | |
| void | AddAdaptedClass (ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId) |
| void | FreeTempConfig (TEMP_CONFIG Config) |
| void | FreeTempProto (void *arg) |
| void | FreePermConfig (PERM_CONFIG Config) |
| ADAPT_CLASS | NewAdaptedClass () |
| void | free_adapted_class (ADAPT_CLASS adapt_class) |
| void | free_adapted_templates (ADAPT_TEMPLATES templates) |
| TEMP_CONFIG | NewTempConfig (int MaxProtoId, int FontinfoId) |
| TEMP_PROTO | NewTempProto () |
| ADAPT_CLASS | ReadAdaptedClass (FILE *File) |
| PERM_CONFIG | ReadPermConfig (FILE *File) |
| TEMP_CONFIG | ReadTempConfig (FILE *File) |
| void | WriteAdaptedClass (FILE *File, ADAPT_CLASS Class, int NumConfigs) |
| void | WritePermConfig (FILE *File, PERM_CONFIG Config) |
| void | WriteTempConfig (FILE *File, TEMP_CONFIG Config) |
| void AddAdaptedClass | ( | ADAPT_TEMPLATES | Templates, | |
| ADAPT_CLASS | Class, | |||
| CLASS_ID | ClassId | |||
| ) |
This routine adds a new adapted class to an existing set of adapted templates.
| Templates | set of templates to add new class to | |
| Class | new class to add to templates | |
| ClassId | class id to associate with new class |
| void free_adapted_class | ( | ADAPT_CLASS | adapt_class | ) |
| void free_adapted_templates | ( | ADAPT_TEMPLATES | templates | ) |
| void FreePermConfig | ( | PERM_CONFIG | Config | ) |
| void FreeTempConfig | ( | TEMP_CONFIG | Config | ) |
This routine frees all memory consumed by a temporary configuration.
| Config | config to be freed |
| void FreeTempProto | ( | void * | arg | ) |
| ADAPT_CLASS NewAdaptedClass | ( | ) |
This operation allocates and initializes a new adapted class data structure and returns a ptr to it.
| TEMP_CONFIG NewTempConfig | ( | int | MaxProtoId, | |
| int | FontinfoId | |||
| ) |
This routine allocates and returns a new temporary config.
| MaxProtoId | max id of any proto in new config | |
| FontinfoId | font information from pre-trained templates |
| TEMP_PROTO NewTempProto | ( | ) |
This routine allocates and returns a new temporary proto.
| ADAPT_CLASS ReadAdaptedClass | ( | FILE * | File | ) |
Read an adapted class description from File and return a ptr to the adapted class.
| File | open file to read adapted class from |
| PERM_CONFIG ReadPermConfig | ( | FILE * | File | ) |
Read a permanent configuration description from File and return a ptr to it.
| File | open file to read permanent config from |
| TEMP_CONFIG ReadTempConfig | ( | FILE * | File | ) |
Read a temporary configuration description from File and return a ptr to it.
| File | open file to read temporary config from |
| void WriteAdaptedClass | ( | FILE * | File, | |
| ADAPT_CLASS | Class, | |||
| int | NumConfigs | |||
| ) |
This routine writes a binary representation of Class to File.
| File | open file to write Class to | |
| Class | adapted class to write to File | |
| NumConfigs | number of configs in Class |
| void WritePermConfig | ( | FILE * | File, | |
| PERM_CONFIG | Config | |||
| ) |
This routine writes a binary representation of a permanent configuration to File.
| File | open file to write Config to | |
| Config | permanent config to write to File |
| void WriteTempConfig | ( | FILE * | File, | |
| TEMP_CONFIG | Config | |||
| ) |
This routine writes a binary representation of a temporary configuration to File.
| File | open file to write Config to | |
| Config | temporary config to write to File |
1.6.3