tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
27 #define PICO_FEATURE_LENGTH 0.05
176 int NumSetsToWrite = 0;
197 bool anything_written =
false;
198 bool well_formed =
true;
204 if (std::isnan(feat->
Params[p]) || std::isinf(feat->
Params[p]))
207 anything_written =
true;
214 return anything_written && well_formed;
248 for (; NumSetsToRead > 0; NumSetsToRead--) {
249 tfscanf(File,
"%s", ShortName);
271 const char *ShortName) {
274 return static_cast<uint32_t>(i);
DefineParam(0, 0, -0.25, 0.75) DefineParam(0
void add_str_int(const char *str, int number)
TESS_API float PicoFeatureLength
void InitFeatureDefs(FEATURE_DEFS_STRUCT *featuredefs)
const char *const kGeoFeatureType
int tfscanf(FILE *stream, const char *format,...)
FEATURE_SET ReadFeatureSet(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)
uint32_t ShortNameToFeatureType(const FEATURE_DEFS_STRUCT &FeatureDefs, const char *ShortName)
FEATURE_SET FeatureSets[NUM_FEATURE_TYPES]
const FEATURE_DESC_STRUCT GeoFeatDesc
StartParamDesc(MicroFeatureParams) DefineParam(0
const FEATURE_DESC_STRUCT OutlineFeatDesc
const char *const kIntFeatureType
const FEATURE_DESC_STRUCT * FeatureDesc[NUM_FEATURE_TYPES]
void WriteCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC CharDesc, STRING *str)
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING *str)
const FEATURE_DESC_STRUCT * Type
const FEATURE_DESC_STRUCT MicroFeatureDesc
const char *const kMicroFeatureType
#define NUM_FEATURE_TYPES
const TESS_API FEATURE_DESC_STRUCT PicoFeatDesc
const FEATURE_DESC_STRUCT CharNormDesc
void FreeFeatureSet(FEATURE_SET FeatureSet)
const char *const kCNFeatureType
MicroFeatureParams CharNormParams EndParamDesc DefineFeature(IntFeatDesc, 2, 1, kIntFeatureType, IntFeatParams) StartParamDesc(GeoFeatParams) DefineParam(0
const FEATURE_DESC_STRUCT IntFeatDesc
bool ValidCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC CharDesc)
CHAR_DESC NewCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs)
#define PICO_FEATURE_LENGTH
CHAR_DESC ReadCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, FILE *File)
void FreeCharDescription(CHAR_DESC CharDesc)