Leptonica 1.85.0
Image processing and image analysis suite
Loading...
Searching...
No Matches
L_Recog Struct Reference

Data Fields

l_int32 scalew
 
l_int32 scaleh
 
l_int32 linew
 
l_int32 templ_use
 
l_int32 maxarraysize
 
l_int32 setsize
 
l_int32 threshold
 
l_int32 maxyshift
 
l_int32 charset_type
 
l_int32 charset_size
 
l_int32 min_nopad
 
l_int32 num_samples
 
l_int32 minwidth_u
 
l_int32 maxwidth_u
 
l_int32 minheight_u
 
l_int32 maxheight_u
 
l_int32 minwidth
 
l_int32 maxwidth
 
l_int32 ave_done
 
l_int32 train_done
 
l_float32 max_wh_ratio
 
l_float32 max_ht_ratio
 
l_int32 min_splitw
 
l_int32 max_splith
 
struct Sarraysa_text
 
struct L_Dnadna_tochar
 
l_int32 * centtab
 
l_int32 * sumtab
 
struct Pixaapixaa_u
 
struct Ptaaptaa_u
 
struct Numaanaasum_u
 
struct Pixaapixaa
 
struct Ptaaptaa
 
struct Numaanaasum
 
struct Pixapixa_u
 
struct Ptapta_u
 
struct Numanasum_u
 
struct Pixapixa
 
struct Ptapta
 
struct Numanasum
 
struct Pixapixa_tr
 
struct Pixapixadb_ave
 
struct Pixapixa_id
 
struct Pixpixdb_ave
 
struct Pixpixdb_range
 
struct Pixapixadb_boot
 
struct Pixapixadb_split
 
struct L_Bmfbmf
 
l_int32 bmf_size
 
struct L_Rdiddid
 
struct L_Rchrch
 
struct L_Rcharcha
 

Detailed Description

Definition at line 116 of file recog.h.

Field Documentation

◆ ave_done

l_int32 L_Recog::ave_done

set to 1 when averaged bitmaps are made

Definition at line 141 of file recog.h.

Referenced by recogAverageSamples(), recogIdentifyPix(), and recogPrepareForDecoding().

◆ bmf

struct L_Bmf* L_Recog::bmf

bmf fonts

Definition at line 171 of file recog.h.

Referenced by recogCreate(), recogDestroy(), recogDisplayOutlier(), and recogShowMatch().

◆ bmf_size

l_int32 L_Recog::bmf_size

font size of bmf; default is 6 pt

Definition at line 172 of file recog.h.

Referenced by recogCreate().

◆ centtab

l_int32* L_Recog::centtab

table for finding centroids

Definition at line 150 of file recog.h.

Referenced by recogCreate(), recogDestroy(), recogIdentifyPix(), and recogTrainingFinished().

◆ charset_size

l_int32 L_Recog::charset_size

expected number of classes in charset

Definition at line 132 of file recog.h.

Referenced by recogAddMissingClassStrings(), recogIsPaddingNeeded(), recogSetParams(), and recogTemplatesAreOK().

◆ charset_type

l_int32 L_Recog::charset_type

one of L_ARABIC_NUMERALS, etc.

Definition at line 131 of file recog.h.

Referenced by recogAddDigitPadTemplates(), recogAddMissingClassStrings(), and recogSetParams().

◆ did

struct L_Rdid* L_Recog::did

temp data used for image decoding

Definition at line 173 of file recog.h.

Referenced by recogCreateDid(), recogDecode(), recogDestroyDid(), recogDidExists(), recogGetDid(), and recogPrepareForDecoding().

◆ dna_tochar

struct L_Dna* L_Recog::dna_tochar

index-to-char lut for arbitrary charset

Definition at line 149 of file recog.h.

Referenced by recogCreate(), recogDestroy(), recogGetClassIndex(), recogReadStream(), recogShowContent(), and recogWriteStream().

◆ linew

l_int32 L_Recog::linew

use a value > 0 to convert the bitmap
to lines of fixed width; 0 to skip

Definition at line 121 of file recog.h.

Referenced by recogCreate(), recogModifyTemplate(), recogShowContent(), recogTrainFromBoot(), and recogWriteStream().

◆ max_ht_ratio

l_float32 L_Recog::max_ht_ratio

max of max/min template height ratio

Definition at line 145 of file recog.h.

Referenced by recogAverageSamples(), and recogSetParams().

◆ max_splith

l_int32 L_Recog::max_splith

max component height kept in splitting

Definition at line 147 of file recog.h.

Referenced by recogAverageSamples(), recogCreate(), recogPreSplittingFilter(), and recogShowAverageTemplates().

◆ max_wh_ratio

l_float32 L_Recog::max_wh_ratio

max width/height ratio to split

Definition at line 144 of file recog.h.

Referenced by recogPreSplittingFilter(), recogSetParams(), and recogSplittingFilter().

◆ maxarraysize

l_int32 L_Recog::maxarraysize

initialize container arrays to this

Definition at line 126 of file recog.h.

Referenced by recogCreate(), and recogTrainingFinished().

◆ maxheight_u

l_int32 L_Recog::maxheight_u

max height averaged unscaled templates

Definition at line 138 of file recog.h.

Referenced by recogAverageSamples(), recogExtractNumbers(), and recogShowAverageTemplates().

◆ maxwidth

l_int32 L_Recog::maxwidth

max width averaged scaled templates

Definition at line 140 of file recog.h.

Referenced by recogAverageSamples().

◆ maxwidth_u

l_int32 L_Recog::maxwidth_u

max width averaged unscaled templates

Definition at line 136 of file recog.h.

Referenced by recogAverageSamples(), recogShowAverageTemplates(), and recogSplitIntoCharacters().

◆ maxyshift

l_int32 L_Recog::maxyshift

vertical jiggle on nominal centroid
alignment; typically 0 or 1

Definition at line 129 of file recog.h.

Referenced by recogCorrelationBestChar(), recogCreate(), recogIdentifyPix(), recogPadDigitTrainingSet(), recogShowContent(), and recogWriteStream().

◆ min_nopad

l_int32 L_Recog::min_nopad

min number of samples without padding

Definition at line 133 of file recog.h.

Referenced by recogIsPaddingNeeded(), and recogSetParams().

◆ min_splitw

l_int32 L_Recog::min_splitw

min component width kept in splitting

Definition at line 146 of file recog.h.

Referenced by recogAverageSamples(), recogCreate(), recogPreSplittingFilter(), recogShowAverageTemplates(), and recogSplittingFilter().

◆ minheight_u

l_int32 L_Recog::minheight_u

min height averaged unscaled templates

Definition at line 137 of file recog.h.

Referenced by recogAverageSamples(), and recogShowAverageTemplates().

◆ minwidth

l_int32 L_Recog::minwidth

min width averaged scaled templates

Definition at line 139 of file recog.h.

Referenced by recogAverageSamples().

◆ minwidth_u

l_int32 L_Recog::minwidth_u

min width averaged unscaled templates

Definition at line 135 of file recog.h.

Referenced by recogAverageSamples(), recogCorrelationBestRow(), and recogShowAverageTemplates().

◆ naasum

struct Numaa* L_Recog::naasum

area of all (scaled) templates

Definition at line 157 of file recog.h.

Referenced by pixaRemoveOutliers1(), pixaRemoveOutliers2(), recogDestroy(), recogIdentifyPix(), and recogTrainingFinished().

◆ naasum_u

struct Numaa* L_Recog::naasum_u

area of all unscaled templates

Definition at line 154 of file recog.h.

Referenced by recogDestroy(), and recogTrainingFinished().

◆ nasum

struct Numa* L_Recog::nasum

area of (scaled) averaged templates

Definition at line 163 of file recog.h.

Referenced by pixaRemoveOutliers1(), pixaRemoveOutliers2(), recogAverageSamples(), recogDestroy(), and recogIdentifyPix().

◆ nasum_u

struct Numa* L_Recog::nasum_u

area of unscaled averaged templates

Definition at line 160 of file recog.h.

Referenced by recogAverageSamples(), recogCorrelationBestChar(), recogDestroy(), and recogRunViterbi().

◆ num_samples

l_int32 L_Recog::num_samples

number of training samples

Definition at line 134 of file recog.h.

Referenced by recogAddSample(), and recogProcessLabeled().

◆ pixa

struct Pixa* L_Recog::pixa

◆ pixa_id

struct Pixa* L_Recog::pixa_id

input images for identifying

Definition at line 166 of file recog.h.

Referenced by recogDestroy().

◆ pixa_tr

struct Pixa* L_Recog::pixa_tr

all input training images

Definition at line 164 of file recog.h.

Referenced by recogDebugAverages(), and recogDestroy().

◆ pixa_u

◆ pixaa

◆ pixaa_u

◆ pixadb_ave

struct Pixa* L_Recog::pixadb_ave

unscaled and scaled averaged bitmaps

Definition at line 165 of file recog.h.

Referenced by recogDestroy(), and recogShowAverageTemplates().

◆ pixadb_boot

struct Pixa* L_Recog::pixadb_boot

debug: bootstrap training results

Definition at line 169 of file recog.h.

Referenced by recogCreate(), recogDestroy(), and recogTrainFromBoot().

◆ pixadb_split

struct Pixa* L_Recog::pixadb_split

debug: splitting results

Definition at line 170 of file recog.h.

Referenced by recogCorrelationBestRow(), recogCreate(), and recogDestroy().

◆ pixdb_ave

struct Pix* L_Recog::pixdb_ave

debug: best match of input against ave.

Definition at line 167 of file recog.h.

Referenced by recogDebugAverages(), and recogDestroy().

◆ pixdb_range

struct Pix* L_Recog::pixdb_range

debug: best matches within range

Definition at line 168 of file recog.h.

Referenced by recogDestroy(), and recogShowMatchesInRange().

◆ pta

struct Pta* L_Recog::pta

centroids of (scaled) ave. templates

Definition at line 162 of file recog.h.

Referenced by pixaRemoveOutliers1(), pixaRemoveOutliers2(), recogAverageSamples(), recogDestroy(), recogIdentifyPix(), and recogShowAverageTemplates().

◆ pta_u

struct Pta* L_Recog::pta_u

centroids of unscaled ave. templates

Definition at line 159 of file recog.h.

Referenced by recogAverageSamples(), recogCorrelationBestChar(), recogDestroy(), recogMakeDecodingArray(), and recogShowAverageTemplates().

◆ ptaa

struct Ptaa* L_Recog::ptaa

centroids of all (scaledl) templates

Definition at line 156 of file recog.h.

Referenced by pixaRemoveOutliers1(), pixaRemoveOutliers2(), recogAverageSamples(), recogDestroy(), recogIdentifyPix(), and recogTrainingFinished().

◆ ptaa_u

struct Ptaa* L_Recog::ptaa_u

centroids of all unscaled templates

Definition at line 153 of file recog.h.

Referenced by recogAverageSamples(), recogDestroy(), and recogTrainingFinished().

◆ rch

◆ rcha

struct L_Rcha* L_Recog::rcha

temp data used for array of best chars

Definition at line 175 of file recog.h.

Referenced by recogDestroy(), recogExtractNumbers(), and recogIdentifyPixa().

◆ sa_text

◆ scaleh

l_int32 L_Recog::scaleh

scale all examples to this height;
use 0 prevent vertical scaling

Definition at line 119 of file recog.h.

Referenced by recogCreate(), recogModifyTemplate(), recogPreSplittingFilter(), recogShowContent(), recogSplitIntoCharacters(), recogTrainFromBoot(), and recogWriteStream().

◆ scalew

l_int32 L_Recog::scalew

scale all examples to this width;
use 0 prevent horizontal scaling

Definition at line 117 of file recog.h.

Referenced by recogCreate(), recogModifyTemplate(), recogPreSplittingFilter(), recogShowContent(), recogSplitIntoCharacters(), and recogWriteStream().

◆ setsize

◆ sumtab

◆ templ_use

l_int32 L_Recog::templ_use

template use: use either the average
or all temmplates (L_USE_AVERAGE or
L_USE_ALL)

Definition at line 123 of file recog.h.

Referenced by recogCreate(), and recogIdentifyPix().

◆ threshold

l_int32 L_Recog::threshold

◆ train_done

l_int32 L_Recog::train_done

The documentation for this struct was generated from the following file: