eVision Python API
Loading...
Searching...
No Matches
eVision.EOCVChar Class Reference

Holds all information related to a single character, such as nominal and average position, reference quality indicators,... During the learning phases, it also keeps the list of its constituent blobs. More...

Public Member Functions

None __init__ (self)
 Constructs an OCVChar context.
None __init__ (self, eVision.EOCVChar other)
 Constructs an OCVChar context.
None ResetParameters (self)
 Sets all character parameters to the undefined value for use before a eVision.EOCV.SetTextCharParameters or eVision.EOCV.ScatterTextsCharsParameters operation.
bool WhiteOnBlack (self)
 Character contrast: true for light characters on a dark background.
 WhiteOnBlack (self, bool value)
 Character contrast: true for light characters on a dark background.
int Selected (self)
 Selection state: TRUE when selected.
 Selected (self, int value)
 Selection state: TRUE when selected.
int NumContourPoints (self)
 Number of contour points of this character used for location.
 NumContourPoints (self, int value)
 Number of contour points of this character used for location.
float TemplateLocationScore (self)
 Value of the location score measured on the template during learning.
 TemplateLocationScore (self, float value)
 Value of the location score measured on the template during learning.
float SampleLocationScore (self)
 Value of the location score measured on the sample during inspection.
 SampleLocationScore (self, float value)
 Value of the location score measured on the sample during inspection.
float LocationScoreTolerance (self)
 Allowed absolute difference between the template and sample scores.
 LocationScoreTolerance (self, float value)
 Allowed absolute difference between the template and sample scores.
float ShiftX (self)
 Measured horizontal translation.
 ShiftX (self, float value)
 Measured horizontal translation.
float ShiftXBias (self)
 Horizontal translation bias.
 ShiftXBias (self, float value)
 Horizontal translation bias.
float ShiftXTolerance (self)
 Horizontal translation tolerance.
 ShiftXTolerance (self, float value)
 Horizontal translation tolerance.
int ShiftXStride (self)
 First pass stride for the horizontal translation.
 ShiftXStride (self, int value)
 First pass stride for the horizontal translation.
float ShiftY (self)
 Measured vertical translation.
 ShiftY (self, float value)
 Measured vertical translation.
float ShiftYBias (self)
 Vertical translation bias.
 ShiftYBias (self, float value)
 Vertical translation bias.
float ShiftYTolerance (self)
 Vertical translation tolerance.
 ShiftYTolerance (self, float value)
 Vertical translation tolerance.
int ShiftYStride (self)
 First pass stride for the vertical translation.
 ShiftYStride (self, int value)
 First pass stride for the vertical translation.
int Diagnostics (self)
 Logical combination (bitwise OR) of defects.
 Diagnostics (self, int value)
 Logical combination (bitwise OR) of defects.
int MarginWidth (self)
 Width of the extra space to be used around the characters bounding box (on all four sides) when computing a quality indicator.
 MarginWidth (self, int value)
 Width of the extra space to be used around the characters bounding box (on all four sides) when computing a quality indicator.
int TemplateForegroundArea (self)
 Number of pixels in the template foreground of this character.
 TemplateForegroundArea (self, int value)
 Number of pixels in the template foreground of this character.
int SampleForegroundArea (self)
 Number of foreground pixels of this character corresponding to a foreground pixel of the template character.
 SampleForegroundArea (self, int value)
 Number of foreground pixels of this character corresponding to a foreground pixel of the template character.
int ForegroundAreaTolerance (self)
 Maximum allowed difference between the sample and template foreground areas.
 ForegroundAreaTolerance (self, int value)
 Maximum allowed difference between the sample and template foreground areas.
int TemplateBackgroundArea (self)
 Number of pixels in the background of this character.
 TemplateBackgroundArea (self, int value)
 Number of pixels in the background of this character.
int SampleBackgroundArea (self)
 Number of background pixels of this character corresponding to a background pixel of the template character.
 SampleBackgroundArea (self, int value)
 Number of background pixels of this character corresponding to a background pixel of the template character.
int BackgroundAreaTolerance (self)
 Maximum allowed difference between the sample and template background areas.
 BackgroundAreaTolerance (self, int value)
 Maximum allowed difference between the sample and template background areas.
float TemplateForegroundSum (self)
 Sum of the normalized gray-level values of the foreground pixels of this character.
 TemplateForegroundSum (self, float value)
 Sum of the normalized gray-level values of the foreground pixels of this character.
float SampleForegroundSum (self)
 Sum of the normalized gray-level values of the pixels of this character corresponding to a foreground pixel of the template character.
 SampleForegroundSum (self, float value)
 Sum of the normalized gray-level values of the pixels of this character corresponding to a foreground pixel of the template character.
float ForegroundSumTolerance (self)
 Maximum allowed difference between the sample and template foreground sums.
 ForegroundSumTolerance (self, float value)
 Maximum allowed difference between the sample and template foreground sums.
float TemplateBackgroundSum (self)
 Sum of the normalized gray-level values of the background pixels of this character.
 TemplateBackgroundSum (self, float value)
 Sum of the normalized gray-level values of the background pixels of this character.
float SampleBackgroundSum (self)
 Sum of the normalized gray-level values of the pixels of this character corresponding to a background pixel of the template character.
 SampleBackgroundSum (self, float value)
 Sum of the normalized gray-level values of the pixels of this character corresponding to a background pixel of the template character.
float BackgroundSumTolerance (self)
 Maximum allowed difference between the sample and template background sums.
 BackgroundSumTolerance (self, float value)
 Maximum allowed difference between the sample and template background sums.
float Correlation (self)
 Normalized correlation involving the template and sample character images.
 Correlation (self, float value)
 Normalized correlation involving the template and sample character images.
float CorrelationTolerance (self)
 Maximum allowed difference between the normalized correlation and unity.
 CorrelationTolerance (self, float value)
 Maximum allowed difference between the normalized correlation and unity.
float LocationScoreAverage (self)
 Location score average.
 LocationScoreAverage (self, float value)
 Location score average.
float LocationScoreDeviation (self)
 Location score standard deviation.
 LocationScoreDeviation (self, float value)
 Location score standard deviation.
float ShiftXAverage (self)
 Shift X average.
 ShiftXAverage (self, float value)
 Shift X average.
float ShiftXDeviation (self)
 Shift X standard deviation.
 ShiftXDeviation (self, float value)
 Shift X standard deviation.
float ShiftXMin (self)
 Minimum Shift X.
 ShiftXMin (self, float value)
 Minimum Shift X.
float ShiftXMax (self)
 Maximum Shift X.
 ShiftXMax (self, float value)
 Maximum Shift X.
float ShiftYAverage (self)
 Shift Y average.
 ShiftYAverage (self, float value)
 Shift Y average.
float ShiftYDeviation (self)
 Shift Y standard deviation.
 ShiftYDeviation (self, float value)
 Shift Y standard deviation.
float ShiftYMin (self)
 Minimum Shift Y.
 ShiftYMin (self, float value)
 Minimum Shift Y.
float ShiftYMax (self)
 Maximum Shift Y.
 ShiftYMax (self, float value)
 Maximum Shift Y.
float ForegroundAreaAverage (self)
 Foreground area average.
 ForegroundAreaAverage (self, float value)
 Foreground area average.
float ForegroundAreaDeviation (self)
 Foreground area standard deviation.
 ForegroundAreaDeviation (self, float value)
 Foreground area standard deviation.
float BackgroundAreaAverage (self)
 Background area average.
 BackgroundAreaAverage (self, float value)
 Background area average.
float BackgroundAreaDeviation (self)
 Background area standard deviation.
 BackgroundAreaDeviation (self, float value)
 Background area standard deviation.
float ForegroundSumAverage (self)
 Foreground sum average.
 ForegroundSumAverage (self, float value)
 Foreground sum average.
float ForegroundSumDeviation (self)
 Foreground sum standard deviation.
 ForegroundSumDeviation (self, float value)
 Foreground sum standard deviation.
float BackgroundSumAverage (self)
 Background sum average.
 BackgroundSumAverage (self, float value)
 Background sum average.
float BackgroundSumDeviation (self)
 Background sum standard deviation.
 BackgroundSumDeviation (self, float value)
 Background sum standard deviation.
float CorrelationAverage (self)
 Correlation average.
 CorrelationAverage (self, float value)
 Correlation average.
float CorrelationDeviation (self)
 Correlation standard deviation.
 CorrelationDeviation (self, float value)
 Correlation standard deviation.

Detailed Description

Holds all information related to a single character, such as nominal and average position, reference quality indicators,... During the learning phases, it also keeps the list of its constituent blobs.

Remarks:

The statistics available for each character are the average, standard deviation (unbiased), minimum and maximum computed on the corresponding parameters for all images for which eVision.EOCV.UpdateStatistics has been invoked after inspection. The average is only available when at least one set of results has been accumulated. The standard deviation is only available when at least two sets of results have been accumulated.

License(s): EasyOCV

Deprecated
Deprecated in version 26.2. Scheduled to be removed in version 27.6.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.EOCVChar.__init__ ( self)

Constructs an OCVChar context.

Remarks:

Default and copy constructors.

◆ __init__() [2/2]

None eVision.EOCVChar.__init__ ( self,
eVision.EOCVChar other )

Constructs an OCVChar context.

Remarks:

Default and copy constructors.

Parameters
othereVision.EOCVChar object to be copied.

Member Function Documentation

◆ BackgroundAreaAverage() [1/2]

float eVision.EOCVChar.BackgroundAreaAverage ( self)

Background area average.

◆ BackgroundAreaAverage() [2/2]

eVision.EOCVChar.BackgroundAreaAverage ( self,
float value )

Background area average.

◆ BackgroundAreaDeviation() [1/2]

float eVision.EOCVChar.BackgroundAreaDeviation ( self)

Background area standard deviation.

◆ BackgroundAreaDeviation() [2/2]

eVision.EOCVChar.BackgroundAreaDeviation ( self,
float value )

Background area standard deviation.

◆ BackgroundAreaTolerance() [1/2]

int eVision.EOCVChar.BackgroundAreaTolerance ( self)

Maximum allowed difference between the sample and template background areas.

◆ BackgroundAreaTolerance() [2/2]

eVision.EOCVChar.BackgroundAreaTolerance ( self,
int value )

Maximum allowed difference between the sample and template background areas.

◆ BackgroundSumAverage() [1/2]

float eVision.EOCVChar.BackgroundSumAverage ( self)

Background sum average.

◆ BackgroundSumAverage() [2/2]

eVision.EOCVChar.BackgroundSumAverage ( self,
float value )

Background sum average.

◆ BackgroundSumDeviation() [1/2]

float eVision.EOCVChar.BackgroundSumDeviation ( self)

Background sum standard deviation.

◆ BackgroundSumDeviation() [2/2]

eVision.EOCVChar.BackgroundSumDeviation ( self,
float value )

Background sum standard deviation.

◆ BackgroundSumTolerance() [1/2]

float eVision.EOCVChar.BackgroundSumTolerance ( self)

Maximum allowed difference between the sample and template background sums.

◆ BackgroundSumTolerance() [2/2]

eVision.EOCVChar.BackgroundSumTolerance ( self,
float value )

Maximum allowed difference between the sample and template background sums.

◆ Correlation() [1/2]

float eVision.EOCVChar.Correlation ( self)

Normalized correlation involving the template and sample character images.

◆ Correlation() [2/2]

eVision.EOCVChar.Correlation ( self,
float value )

Normalized correlation involving the template and sample character images.

◆ CorrelationAverage() [1/2]

float eVision.EOCVChar.CorrelationAverage ( self)

Correlation average.

◆ CorrelationAverage() [2/2]

eVision.EOCVChar.CorrelationAverage ( self,
float value )

Correlation average.

◆ CorrelationDeviation() [1/2]

float eVision.EOCVChar.CorrelationDeviation ( self)

Correlation standard deviation.

◆ CorrelationDeviation() [2/2]

eVision.EOCVChar.CorrelationDeviation ( self,
float value )

Correlation standard deviation.

◆ CorrelationTolerance() [1/2]

float eVision.EOCVChar.CorrelationTolerance ( self)

Maximum allowed difference between the normalized correlation and unity.

◆ CorrelationTolerance() [2/2]

eVision.EOCVChar.CorrelationTolerance ( self,
float value )

Maximum allowed difference between the normalized correlation and unity.

◆ Diagnostics() [1/2]

int eVision.EOCVChar.Diagnostics ( self)

Logical combination (bitwise OR) of defects.

Remarks:

After inspection, each character is tagged with a logical combination of diagnostics, each corresponding to a kind of defect.

◆ Diagnostics() [2/2]

eVision.EOCVChar.Diagnostics ( self,
int value )

Logical combination (bitwise OR) of defects.

Remarks:

After inspection, each character is tagged with a logical combination of diagnostics, each corresponding to a kind of defect.

◆ ForegroundAreaAverage() [1/2]

float eVision.EOCVChar.ForegroundAreaAverage ( self)

Foreground area average.

◆ ForegroundAreaAverage() [2/2]

eVision.EOCVChar.ForegroundAreaAverage ( self,
float value )

Foreground area average.

◆ ForegroundAreaDeviation() [1/2]

float eVision.EOCVChar.ForegroundAreaDeviation ( self)

Foreground area standard deviation.

◆ ForegroundAreaDeviation() [2/2]

eVision.EOCVChar.ForegroundAreaDeviation ( self,
float value )

Foreground area standard deviation.

◆ ForegroundAreaTolerance() [1/2]

int eVision.EOCVChar.ForegroundAreaTolerance ( self)

Maximum allowed difference between the sample and template foreground areas.

◆ ForegroundAreaTolerance() [2/2]

eVision.EOCVChar.ForegroundAreaTolerance ( self,
int value )

Maximum allowed difference between the sample and template foreground areas.

◆ ForegroundSumAverage() [1/2]

float eVision.EOCVChar.ForegroundSumAverage ( self)

Foreground sum average.

◆ ForegroundSumAverage() [2/2]

eVision.EOCVChar.ForegroundSumAverage ( self,
float value )

Foreground sum average.

◆ ForegroundSumDeviation() [1/2]

float eVision.EOCVChar.ForegroundSumDeviation ( self)

Foreground sum standard deviation.

◆ ForegroundSumDeviation() [2/2]

eVision.EOCVChar.ForegroundSumDeviation ( self,
float value )

Foreground sum standard deviation.

◆ ForegroundSumTolerance() [1/2]

float eVision.EOCVChar.ForegroundSumTolerance ( self)

Maximum allowed difference between the sample and template foreground sums.

◆ ForegroundSumTolerance() [2/2]

eVision.EOCVChar.ForegroundSumTolerance ( self,
float value )

Maximum allowed difference between the sample and template foreground sums.

◆ LocationScoreAverage() [1/2]

float eVision.EOCVChar.LocationScoreAverage ( self)

Location score average.

◆ LocationScoreAverage() [2/2]

eVision.EOCVChar.LocationScoreAverage ( self,
float value )

Location score average.

◆ LocationScoreDeviation() [1/2]

float eVision.EOCVChar.LocationScoreDeviation ( self)

Location score standard deviation.

◆ LocationScoreDeviation() [2/2]

eVision.EOCVChar.LocationScoreDeviation ( self,
float value )

Location score standard deviation.

◆ LocationScoreTolerance() [1/2]

float eVision.EOCVChar.LocationScoreTolerance ( self)

Allowed absolute difference between the template and sample scores.

Remarks:

When the sample value lies outside the acceptance interval, a character not found diagnostic is issued. During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ LocationScoreTolerance() [2/2]

eVision.EOCVChar.LocationScoreTolerance ( self,
float value )

Allowed absolute difference between the template and sample scores.

Remarks:

When the sample value lies outside the acceptance interval, a character not found diagnostic is issued. During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ MarginWidth() [1/2]

int eVision.EOCVChar.MarginWidth ( self)

Width of the extra space to be used around the characters bounding box (on all four sides) when computing a quality indicator.

◆ MarginWidth() [2/2]

eVision.EOCVChar.MarginWidth ( self,
int value )

Width of the extra space to be used around the characters bounding box (on all four sides) when computing a quality indicator.

◆ NumContourPoints() [1/2]

int eVision.EOCVChar.NumContourPoints ( self)

Number of contour points of this character used for location.

Remarks:

The location process relies on points from the external contours of the character constituent blobs. The number of points to be used can be adjusted. The smaller this value, the faster the location, but a too small value can cause mismatches.

◆ NumContourPoints() [2/2]

eVision.EOCVChar.NumContourPoints ( self,
int value )

Number of contour points of this character used for location.

Remarks:

The location process relies on points from the external contours of the character constituent blobs. The number of points to be used can be adjusted. The smaller this value, the faster the location, but a too small value can cause mismatches.

◆ ResetParameters()

None eVision.EOCVChar.ResetParameters ( self)

Sets all character parameters to the undefined value for use before a eVision.EOCV.SetTextCharParameters or eVision.EOCV.ScatterTextsCharsParameters operation.

◆ SampleBackgroundArea() [1/2]

int eVision.EOCVChar.SampleBackgroundArea ( self)

Number of background pixels of this character corresponding to a background pixel of the template character.

◆ SampleBackgroundArea() [2/2]

eVision.EOCVChar.SampleBackgroundArea ( self,
int value )

Number of background pixels of this character corresponding to a background pixel of the template character.

◆ SampleBackgroundSum() [1/2]

float eVision.EOCVChar.SampleBackgroundSum ( self)

Sum of the normalized gray-level values of the pixels of this character corresponding to a background pixel of the template character.

◆ SampleBackgroundSum() [2/2]

eVision.EOCVChar.SampleBackgroundSum ( self,
float value )

Sum of the normalized gray-level values of the pixels of this character corresponding to a background pixel of the template character.

◆ SampleForegroundArea() [1/2]

int eVision.EOCVChar.SampleForegroundArea ( self)

Number of foreground pixels of this character corresponding to a foreground pixel of the template character.

◆ SampleForegroundArea() [2/2]

eVision.EOCVChar.SampleForegroundArea ( self,
int value )

Number of foreground pixels of this character corresponding to a foreground pixel of the template character.

◆ SampleForegroundSum() [1/2]

float eVision.EOCVChar.SampleForegroundSum ( self)

Sum of the normalized gray-level values of the pixels of this character corresponding to a foreground pixel of the template character.

◆ SampleForegroundSum() [2/2]

eVision.EOCVChar.SampleForegroundSum ( self,
float value )

Sum of the normalized gray-level values of the pixels of this character corresponding to a foreground pixel of the template character.

◆ SampleLocationScore() [1/2]

float eVision.EOCVChar.SampleLocationScore ( self)

Value of the location score measured on the sample during inspection.

Remarks:

During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ SampleLocationScore() [2/2]

eVision.EOCVChar.SampleLocationScore ( self,
float value )

Value of the location score measured on the sample during inspection.

Remarks:

During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ Selected() [1/2]

int eVision.EOCVChar.Selected ( self)

Selection state: TRUE when selected.

◆ Selected() [2/2]

eVision.EOCVChar.Selected ( self,
int value )

Selection state: TRUE when selected.

◆ ShiftX() [1/2]

float eVision.EOCVChar.ShiftX ( self)

Measured horizontal translation.

◆ ShiftX() [2/2]

eVision.EOCVChar.ShiftX ( self,
float value )

Measured horizontal translation.

◆ ShiftXAverage() [1/2]

float eVision.EOCVChar.ShiftXAverage ( self)

Shift X average.

◆ ShiftXAverage() [2/2]

eVision.EOCVChar.ShiftXAverage ( self,
float value )

Shift X average.

◆ ShiftXBias() [1/2]

float eVision.EOCVChar.ShiftXBias ( self)

Horizontal translation bias.

Remarks:

0 corresponds to the nominal position.

◆ ShiftXBias() [2/2]

eVision.EOCVChar.ShiftXBias ( self,
float value )

Horizontal translation bias.

Remarks:

0 corresponds to the nominal position.

◆ ShiftXDeviation() [1/2]

float eVision.EOCVChar.ShiftXDeviation ( self)

Shift X standard deviation.

◆ ShiftXDeviation() [2/2]

eVision.EOCVChar.ShiftXDeviation ( self,
float value )

Shift X standard deviation.

◆ ShiftXMax() [1/2]

float eVision.EOCVChar.ShiftXMax ( self)

Maximum Shift X.

◆ ShiftXMax() [2/2]

eVision.EOCVChar.ShiftXMax ( self,
float value )

Maximum Shift X.

◆ ShiftXMin() [1/2]

float eVision.EOCVChar.ShiftXMin ( self)

Minimum Shift X.

◆ ShiftXMin() [2/2]

eVision.EOCVChar.ShiftXMin ( self,
float value )

Minimum Shift X.

◆ ShiftXStride() [1/2]

int eVision.EOCVChar.ShiftXStride ( self)

First pass stride for the horizontal translation.

◆ ShiftXStride() [2/2]

eVision.EOCVChar.ShiftXStride ( self,
int value )

First pass stride for the horizontal translation.

◆ ShiftXTolerance() [1/2]

float eVision.EOCVChar.ShiftXTolerance ( self)

Horizontal translation tolerance.

◆ ShiftXTolerance() [2/2]

eVision.EOCVChar.ShiftXTolerance ( self,
float value )

Horizontal translation tolerance.

◆ ShiftY() [1/2]

float eVision.EOCVChar.ShiftY ( self)

Measured vertical translation.

◆ ShiftY() [2/2]

eVision.EOCVChar.ShiftY ( self,
float value )

Measured vertical translation.

◆ ShiftYAverage() [1/2]

float eVision.EOCVChar.ShiftYAverage ( self)

Shift Y average.

◆ ShiftYAverage() [2/2]

eVision.EOCVChar.ShiftYAverage ( self,
float value )

Shift Y average.

◆ ShiftYBias() [1/2]

float eVision.EOCVChar.ShiftYBias ( self)

Vertical translation bias.

0 corresponds to the nominal position.

◆ ShiftYBias() [2/2]

eVision.EOCVChar.ShiftYBias ( self,
float value )

Vertical translation bias.

0 corresponds to the nominal position.

◆ ShiftYDeviation() [1/2]

float eVision.EOCVChar.ShiftYDeviation ( self)

Shift Y standard deviation.

◆ ShiftYDeviation() [2/2]

eVision.EOCVChar.ShiftYDeviation ( self,
float value )

Shift Y standard deviation.

◆ ShiftYMax() [1/2]

float eVision.EOCVChar.ShiftYMax ( self)

Maximum Shift Y.

◆ ShiftYMax() [2/2]

eVision.EOCVChar.ShiftYMax ( self,
float value )

Maximum Shift Y.

◆ ShiftYMin() [1/2]

float eVision.EOCVChar.ShiftYMin ( self)

Minimum Shift Y.

◆ ShiftYMin() [2/2]

eVision.EOCVChar.ShiftYMin ( self,
float value )

Minimum Shift Y.

◆ ShiftYStride() [1/2]

int eVision.EOCVChar.ShiftYStride ( self)

First pass stride for the vertical translation.

◆ ShiftYStride() [2/2]

eVision.EOCVChar.ShiftYStride ( self,
int value )

First pass stride for the vertical translation.

◆ ShiftYTolerance() [1/2]

float eVision.EOCVChar.ShiftYTolerance ( self)

Vertical translation tolerance.

◆ ShiftYTolerance() [2/2]

eVision.EOCVChar.ShiftYTolerance ( self,
float value )

Vertical translation tolerance.

◆ TemplateBackgroundArea() [1/2]

int eVision.EOCVChar.TemplateBackgroundArea ( self)

Number of pixels in the background of this character.

◆ TemplateBackgroundArea() [2/2]

eVision.EOCVChar.TemplateBackgroundArea ( self,
int value )

Number of pixels in the background of this character.

◆ TemplateBackgroundSum() [1/2]

float eVision.EOCVChar.TemplateBackgroundSum ( self)

Sum of the normalized gray-level values of the background pixels of this character.

◆ TemplateBackgroundSum() [2/2]

eVision.EOCVChar.TemplateBackgroundSum ( self,
float value )

Sum of the normalized gray-level values of the background pixels of this character.

◆ TemplateForegroundArea() [1/2]

int eVision.EOCVChar.TemplateForegroundArea ( self)

Number of pixels in the template foreground of this character.

◆ TemplateForegroundArea() [2/2]

eVision.EOCVChar.TemplateForegroundArea ( self,
int value )

Number of pixels in the template foreground of this character.

◆ TemplateForegroundSum() [1/2]

float eVision.EOCVChar.TemplateForegroundSum ( self)

Sum of the normalized gray-level values of the foreground pixels of this character.

◆ TemplateForegroundSum() [2/2]

eVision.EOCVChar.TemplateForegroundSum ( self,
float value )

Sum of the normalized gray-level values of the foreground pixels of this character.

◆ TemplateLocationScore() [1/2]

float eVision.EOCVChar.TemplateLocationScore ( self)

Value of the location score measured on the template during learning.

Remarks:

If necessary, this value may be set explicitly. During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ TemplateLocationScore() [2/2]

eVision.EOCVChar.TemplateLocationScore ( self,
float value )

Value of the location score measured on the template during learning.

Remarks:

If necessary, this value may be set explicitly. During the location phase, a score is computed on the sample image. During learning, the same score is measured on the template image to serve as a reference. The closer the template and sample scores, the more successful the location. The location score is a first indication on the conformance of the inspected sample. In particular, a very small sample score may indicate that the character is absent.

◆ WhiteOnBlack() [1/2]

bool eVision.EOCVChar.WhiteOnBlack ( self)

Character contrast: true for light characters on a dark background.

◆ WhiteOnBlack() [2/2]

eVision.EOCVChar.WhiteOnBlack ( self,
bool value )

Character contrast: true for light characters on a dark background.