eVision Python API
Loading...
Searching...
No Matches
eVision.EasyBarCode2.EBarCodeGradingParameters Class Reference

Represents the grading Parameters associated with an eVision.EasyBarCode2.EBarCode as defined by ISO15416. More...

Public Member Functions

None __init__ (self)
None __init__ (self, int DecodeGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade, int ModulationGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade, int ModulationGrade, int DefectsGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade, int ModulationGrade, int DefectsGrade, int DecodabilityGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade, int ModulationGrade, int DefectsGrade, int DecodabilityGrade, int AdditionalRequirementsGrade)
None __init__ (self, int DecodeGrade, int SymbolContrastGrade, int MinimumReflectanceGrade, int MinimumEdgeContrastGrade, int ModulationGrade, int DefectsGrade, int DecodabilityGrade, int AdditionalRequirementsGrade, int GlobalGrade)
None __init__ (self, eVision.EasyBarCode2.EBarCodeGradingParameters other)
str AdditionalRequirementName (self)
 ISO 15416 defines an additional requirement that is symbology specific.
int DecodeGrade (self)
 Indicates whether the barcode was decoded.
 DecodeGrade (self, int value)
 Indicates whether the barcode was decoded.
int SymbolContrastGrade (self)
 Indicates the fraction of total image contrast used by the barcode.
 SymbolContrastGrade (self, int value)
 Indicates the fraction of total image contrast used by the barcode.
int MinimumReflectanceGrade (self)
 Indicates the ratio between the smallest and largest gray value in the barcode.
 MinimumReflectanceGrade (self, int value)
 Indicates the ratio between the smallest and largest gray value in the barcode.
int MinimumEdgeContrastGrade (self)
 Indicates the smallest contrast between two adjacent bar and space (including quiet zones).
 MinimumEdgeContrastGrade (self, int value)
 Indicates the smallest contrast between two adjacent bar and space (including quiet zones).
int ModulationGrade (self)
 Indicates the importance of the minimum edge contrast relative to the symbol contrast.
 ModulationGrade (self, int value)
 Indicates the importance of the minimum edge contrast relative to the symbol contrast.
int DefectsGrade (self)
 Indicates the importance of irregularities found within elements and quiet zones.
 DefectsGrade (self, int value)
 Indicates the importance of irregularities found within elements and quiet zones.
int DecodabilityGrade (self)
 Indicates the importance of differences between the distances measured and expected.
 DecodabilityGrade (self, int value)
 Indicates the importance of differences between the distances measured and expected.
int AdditionalRequirementsGrade (self)
 Indicates a symbology specific requirement.
 AdditionalRequirementsGrade (self, int value)
 Indicates a symbology specific requirement.
int GlobalGrade (self)
 The global grade is the smallest of all of the other grades.
 GlobalGrade (self, int value)
 The global grade is the smallest of all of the other grades.

Static Public Member Functions

str ConvertToAlphabeticGrade (int grade)
 ISO15416 defines grades as either number of letters.

Detailed Description

Represents the grading Parameters associated with an eVision.EasyBarCode2.EBarCode as defined by ISO15416.

Remarks:

Each grade is expressed as an integer between 0 and 40 instead of a float from 0.0 to 4.0 by steps of 0.1 to avoid rounding errors. Each grade represents the average grade obtained on 10 horizontal lines in the barcode.

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self)

◆ __init__() [2/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.

◆ __init__() [3/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).

◆ __init__() [4/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.

◆ __init__() [5/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.

◆ __init__() [6/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade,
int ModulationGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.
ModulationGradeIndicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%).

◆ __init__() [7/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade,
int ModulationGrade,
int DefectsGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.
ModulationGradeIndicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%).
DefectsGradeIndicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities).

◆ __init__() [8/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade,
int ModulationGrade,
int DefectsGrade,
int DecodabilityGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.
ModulationGradeIndicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%).
DefectsGradeIndicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities).
DecodabilityGradeIndicates the importance of differences between the distances measured and expected. Grade is between 40 (distances measured are close to those expected) and 0 (distances measured are far from those expected).

◆ __init__() [9/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade,
int ModulationGrade,
int DefectsGrade,
int DecodabilityGrade,
int AdditionalRequirementsGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.
ModulationGradeIndicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%).
DefectsGradeIndicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities).
DecodabilityGradeIndicates the importance of differences between the distances measured and expected. Grade is between 40 (distances measured are close to those expected) and 0 (distances measured are far from those expected).
AdditionalRequirementsGradeIndicates a symbology specific requirement. The name of that specific requirement for the current eVision.EasyBarCode2.EBarCodeGradingParameters may be retrieved with eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName. eVision.EasyBarCode2.EBarCodeSymbologies.Code128, eVision.EasyBarCode2.EBarCodeSymbologies.Gs1_128 and eVision.EasyBarCode2.EBarCodeSymbologies.Ean13 all grade the size of the quiet zone of the barcode. Grade is 40 (large enough quiet zone) and 0 (quiet zone too small).

◆ __init__() [10/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
int DecodeGrade,
int SymbolContrastGrade,
int MinimumReflectanceGrade,
int MinimumEdgeContrastGrade,
int ModulationGrade,
int DefectsGrade,
int DecodabilityGrade,
int AdditionalRequirementsGrade,
int GlobalGrade )
Parameters
DecodeGradeIndicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not.
SymbolContrastGradeIndicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).
MinimumReflectanceGradeIndicates the ratio between the smallest and largest gray value in the barcode. Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.
MinimumEdgeContrastGradeIndicates the smallest contrast between two adjacent bar and space (including quiet zones). Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.
ModulationGradeIndicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%).
DefectsGradeIndicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities).
DecodabilityGradeIndicates the importance of differences between the distances measured and expected. Grade is between 40 (distances measured are close to those expected) and 0 (distances measured are far from those expected).
AdditionalRequirementsGradeIndicates a symbology specific requirement. The name of that specific requirement for the current eVision.EasyBarCode2.EBarCodeGradingParameters may be retrieved with eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName. eVision.EasyBarCode2.EBarCodeSymbologies.Code128, eVision.EasyBarCode2.EBarCodeSymbologies.Gs1_128 and eVision.EasyBarCode2.EBarCodeSymbologies.Ean13 all grade the size of the quiet zone of the barcode. Grade is 40 (large enough quiet zone) and 0 (quiet zone too small).
GlobalGradeThe global grade is the smallest of all of the other grades. If two scan lines yield different decoded strings, the Global Grade is set to 0. Grade is between 40 (best) and 0 (worst).

◆ __init__() [11/11]

None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ ( self,
eVision.EasyBarCode2.EBarCodeGradingParameters other )
Parameters
otherOther instance

Member Function Documentation

◆ AdditionalRequirementName()

str eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName ( self)

ISO 15416 defines an additional requirement that is symbology specific.

This function returns its name for the current eVision.EasyBarCode2.EBarCodeGradingParameters. Currently, "Quiet Zone" is always returned.

◆ AdditionalRequirementsGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementsGrade ( self)

Indicates a symbology specific requirement.

The name of that specific requirement for the current eVision.EasyBarCode2.EBarCodeGradingParameters may be retrieved with eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName. eVision.EasyBarCode2.EBarCodeSymbologies.Code128, eVision.EasyBarCode2.EBarCodeSymbologies.Gs1_128 and eVision.EasyBarCode2.EBarCodeSymbologies.Ean13 all grade the size of the quiet zone of the barcode. Grade is 40 (large enough quiet zone) and 0 (quiet zone too small).

◆ AdditionalRequirementsGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementsGrade ( self,
int value )

Indicates a symbology specific requirement.

The name of that specific requirement for the current eVision.EasyBarCode2.EBarCodeGradingParameters may be retrieved with eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName. eVision.EasyBarCode2.EBarCodeSymbologies.Code128, eVision.EasyBarCode2.EBarCodeSymbologies.Gs1_128 and eVision.EasyBarCode2.EBarCodeSymbologies.Ean13 all grade the size of the quiet zone of the barcode. Grade is 40 (large enough quiet zone) and 0 (quiet zone too small).

◆ ConvertToAlphabeticGrade()

str eVision.EasyBarCode2.EBarCodeGradingParameters.ConvertToAlphabeticGrade ( int grade)
static

ISO15416 defines grades as either number of letters.

We use numbers internally but this function can be used to convert number to letters.

Parameters
gradeThe grade as an integer between 0 and 40.

◆ DecodabilityGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.DecodabilityGrade ( self)

Indicates the importance of differences between the distances measured and expected.

Grade is between 40 (distances measured are close to those expected) and 0 (distances measured are far from those expected).

◆ DecodabilityGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.DecodabilityGrade ( self,
int value )

Indicates the importance of differences between the distances measured and expected.

Grade is between 40 (distances measured are close to those expected) and 0 (distances measured are far from those expected).

◆ DecodeGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.DecodeGrade ( self)

Indicates whether the barcode was decoded.

Grade is 40 if barcode was decoded and 0 if it was not.

◆ DecodeGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.DecodeGrade ( self,
int value )

Indicates whether the barcode was decoded.

Grade is 40 if barcode was decoded and 0 if it was not.

◆ DefectsGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.DefectsGrade ( self)

Indicates the importance of irregularities found within elements and quiet zones.

Grade is between 40 (small irregularities) and 0 (large irregularities).

◆ DefectsGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.DefectsGrade ( self,
int value )

Indicates the importance of irregularities found within elements and quiet zones.

Grade is between 40 (small irregularities) and 0 (large irregularities).

◆ GlobalGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.GlobalGrade ( self)

The global grade is the smallest of all of the other grades.

If two scan lines yield different decoded strings, the Global Grade is set to 0. Grade is between 40 (best) and 0 (worst).

◆ GlobalGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.GlobalGrade ( self,
int value )

The global grade is the smallest of all of the other grades.

If two scan lines yield different decoded strings, the Global Grade is set to 0. Grade is between 40 (best) and 0 (worst).

◆ MinimumEdgeContrastGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumEdgeContrastGrade ( self)

Indicates the smallest contrast between two adjacent bar and space (including quiet zones).

Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.

◆ MinimumEdgeContrastGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumEdgeContrastGrade ( self,
int value )

Indicates the smallest contrast between two adjacent bar and space (including quiet zones).

Grade is 40 if the minimum edge contrast is >= 15% and 0 otherwise.

◆ MinimumReflectanceGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumReflectanceGrade ( self)

Indicates the ratio between the smallest and largest gray value in the barcode.

Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.

◆ MinimumReflectanceGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumReflectanceGrade ( self,
int value )

Indicates the ratio between the smallest and largest gray value in the barcode.

Grade is 40 if the smallest gray value of the barcode is <= half of its highest value and 0 otherwise.

◆ ModulationGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.ModulationGrade ( self)

Indicates the importance of the minimum edge contrast relative to the symbol contrast.

Grade is between 40 (>= 70%) and 0 (< 40%).

◆ ModulationGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.ModulationGrade ( self,
int value )

Indicates the importance of the minimum edge contrast relative to the symbol contrast.

Grade is between 40 (>= 70%) and 0 (< 40%).

◆ SymbolContrastGrade() [1/2]

int eVision.EasyBarCode2.EBarCodeGradingParameters.SymbolContrastGrade ( self)

Indicates the fraction of total image contrast used by the barcode.

Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).

◆ SymbolContrastGrade() [2/2]

eVision.EasyBarCode2.EBarCodeGradingParameters.SymbolContrastGrade ( self,
int value )

Indicates the fraction of total image contrast used by the barcode.

Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values).