tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
65 LIST RemainingOutlines;
73 RemainingOutlines = Outlines;
121 Delta.
x =
XDelta (*Start, *End) / NumFeatures;
122 Delta.
y =
YDelta (*Start, *End) / NumFeatures;
125 Center.
x = Start->
x + Delta.
x / 2.0;
126 Center.
y = Start->
y + Delta.
y / 2.0;
129 for (i = 0; i < NumFeatures; i++) {
160 if (DegenerateOutline(Outline))
165 Next = NextPointAfter(Current);
172 if (!(PointAt(Next)->Hidden))
174 &(PointAt(Next)->Point), FeatureSet);
177 Next = NextPointAfter(Current);
179 while (Current != First);
222 blob,
false, &local_fx_info, &bl_features);
223 if (
sample ==
nullptr)
return nullptr;
225 uint32_t num_features =
sample->num_features();
228 for (uint32_t f = 0; f < num_features; ++f) {
252 blob,
false, &local_fx_info, &bl_features);
253 if (
sample ==
nullptr)
return nullptr;
bool AddFeature(FEATURE_SET FeatureSet, FEATURE Feature)
void NormalizePicoX(FEATURE_SET FeatureSet)
TrainingSample * BlobToTrainingSample(const TBLOB &blob, bool nonlinear_norm, INT_FX_RESULT_STRUCT *fx_info, GenericVector< INT_FEATURE_STRUCT > *bl_features)
float NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, float FullScale)
void NormalizeOutlines(LIST Outlines, float *XScale, float *YScale)
void ConvertToPicoFeatures2(MFOUTLINE Outline, FEATURE_SET FeatureSet)
FEATURE_SET ExtractIntGeoFeatures(const TBLOB &blob, const INT_FX_RESULT_STRUCT &fx_info)
float DistanceBetween(FPOINT A, FPOINT B)
LIST ConvertBlob(TBLOB *blob)
double classify_pico_feature_length
#define double_VAR(name, val, comment)
FEATURE_SET ExtractIntCNFeatures(const TBLOB &blob, const INT_FX_RESULT_STRUCT &fx_info)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
void FreeOutlines(LIST Outlines)
FEATURE_SET ExtractPicoFeatures(TBLOB *Blob)
const TESS_API FEATURE_DESC_STRUCT PicoFeatDesc
FEATURE_SET NewFeatureSet(int NumFeatures)
const FEATURE_DESC_STRUCT IntFeatDesc
void ConvertSegmentToPicoFeat(FPOINT *Start, FPOINT *End, FEATURE_SET FeatureSet)
#define MAX_PICO_FEATURES