Leptonica  1.83.1
Image processing and image analysis suite
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().

◆ bmf

struct L_Bmf* L_Recog::bmf

bmf fonts

Definition at line 171 of file recog.h.

Referenced by 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.

◆ centtab

l_int32* L_Recog::centtab

table for finding centroids

Definition at line 150 of file recog.h.

Referenced by recogDestroy(), 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(), and recogIsPaddingNeeded().

◆ 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(), recogDestroyDid(), recogDidExists(), and recogGetDid().

◆ 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 recogDestroy(), recogGetClassIndex(), and recogShowContent().

◆ 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 recogModifyTemplate(), recogShowContent(), and recogTrainFromBoot().

◆ 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().

◆ 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(), 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().

◆ maxarraysize

l_int32 L_Recog::maxarraysize

initialize container arrays to this

Definition at line 126 of file recog.h.

Referenced by 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(), and recogShowAverageTemplates().

◆ 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 recogPadDigitTrainingSet(), and recogShowContent().

◆ 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().

◆ 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(), recogPreSplittingFilter(), and recogShowAverageTemplates().

◆ 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(), and recogShowAverageTemplates().

◆ naasum

struct Numaa* L_Recog::naasum

area of all (scaled) templates

Definition at line 157 of file recog.h.

Referenced by recogDestroy(), 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 recogAverageSamples(), and recogDestroy().

◆ nasum_u

struct Numa* L_Recog::nasum_u

area of unscaled averaged templates

Definition at line 160 of file recog.h.

Referenced by recogAverageSamples(), 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 recogProcessLabeled().

◆ pixa

struct Pixa* L_Recog::pixa

averaged (scaled) templates per class

Definition at line 161 of file recog.h.

Referenced by recogAverageSamples(), recogDestroy(), recogDisplayOutlier(), and recogShowAverageTemplates().

◆ 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

struct Pixa* L_Recog::pixa_u

averaged unscaled templates per class

Definition at line 158 of file recog.h.

Referenced by recogAverageSamples(), recogDestroy(), recogGetWindowedArea(), recogMakeDecodingArray(), recogShowAverageTemplates(), and recogShowPath().

◆ pixaa

struct Pixaa* L_Recog::pixaa

all (scaled) templates for each class

Definition at line 155 of file recog.h.

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

◆ 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 recogDestroy(), and recogTrainFromBoot().

◆ pixadb_split

struct Pixa* L_Recog::pixadb_split

debug: splitting results

Definition at line 170 of file recog.h.

Referenced by 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().

◆ pta

struct Pta* L_Recog::pta

centroids of (scaled) ave. templates

Definition at line 162 of file recog.h.

Referenced by recogAverageSamples(), recogDestroy(), 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(), 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 recogAverageSamples(), recogDestroy(), 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

struct L_Rch* L_Recog::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

struct Sarray* L_Recog::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 recogModifyTemplate(), recogPreSplittingFilter(), recogShowContent(), and recogTrainFromBoot().

◆ 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 recogModifyTemplate(), recogPreSplittingFilter(), and recogShowContent().

◆ setsize

◆ sumtab

l_int32* L_Recog::sumtab

table for finding pixel sums

Definition at line 151 of file recog.h.

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

◆ 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.

◆ threshold

l_int32 L_Recog::threshold

for binarizing if depth > 1

Definition at line 128 of file recog.h.

Referenced by recogPadDigitTrainingSet(), and recogShowContent().

◆ train_done

l_int32 L_Recog::train_done

set to 1 when training is complete or
identification has started

Definition at line 142 of file recog.h.

Referenced by recogIdentifyMultiple(), recogSplitIntoCharacters(), and recogTrainingFinished().


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