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)

Static Public Member Functions

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

Properties

 AdditionalRequirementName = property(_AdditionalRequirementName__getter, None)
 ISO 15416 defines an additional requirement that is symbology specific.
 DecodeGrade = property(_DecodeGrade__getter, _DecodeGrade__setter)
 Indicates whether the barcode was decoded.
 SymbolContrastGrade = property(_SymbolContrastGrade__getter, _SymbolContrastGrade__setter)
 Indicates the fraction of total image contrast used by the barcode.
 MinimumReflectanceGrade = property(_MinimumReflectanceGrade__getter, _MinimumReflectanceGrade__setter)
 Indicates the ratio between the smallest and largest gray value in the barcode.
 MinimumEdgeContrastGrade = property(_MinimumEdgeContrastGrade__getter, _MinimumEdgeContrastGrade__setter)
 Indicates the smallest contrast between two adjacent bar and space (including quiet zones).
 ModulationGrade = property(_ModulationGrade__getter, _ModulationGrade__setter)
 Indicates the importance of the minimum edge contrast relative to the symbol contrast.
 DefectsGrade = property(_DefectsGrade__getter, _DefectsGrade__setter)
 Indicates the importance of irregularities found within elements and quiet zones.
 DecodabilityGrade = property(_DecodabilityGrade__getter, _DecodabilityGrade__setter)
 Indicates the importance of differences between the distances measured and expected.
 AdditionalRequirementsGrade = property(_AdditionalRequirementsGrade__getter, _AdditionalRequirementsGrade__setter)
 Indicates a symbology specific requirement.
 GlobalGrade = property(_GlobalGrade__getter, _GlobalGrade__setter)
 The global grade is the smallest of all of the other grades.

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

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

Property Documentation

◆ AdditionalRequirementName

eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementName = property(_AdditionalRequirementName__getter, None)
static

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

eVision.EasyBarCode2.EBarCodeGradingParameters.AdditionalRequirementsGrade = property(_AdditionalRequirementsGrade__getter, _AdditionalRequirementsGrade__setter)
static

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

◆ DecodabilityGrade

eVision.EasyBarCode2.EBarCodeGradingParameters.DecodabilityGrade = property(_DecodabilityGrade__getter, _DecodabilityGrade__setter)
static

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

eVision.EasyBarCode2.EBarCodeGradingParameters.DecodeGrade = property(_DecodeGrade__getter, _DecodeGrade__setter)
static

Indicates whether the barcode was decoded.

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

◆ DefectsGrade

eVision.EasyBarCode2.EBarCodeGradingParameters.DefectsGrade = property(_DefectsGrade__getter, _DefectsGrade__setter)
static

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

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

◆ GlobalGrade

eVision.EasyBarCode2.EBarCodeGradingParameters.GlobalGrade = property(_GlobalGrade__getter, _GlobalGrade__setter)
static

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

eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumEdgeContrastGrade = property(_MinimumEdgeContrastGrade__getter, _MinimumEdgeContrastGrade__setter)
static

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

eVision.EasyBarCode2.EBarCodeGradingParameters.MinimumReflectanceGrade = property(_MinimumReflectanceGrade__getter, _MinimumReflectanceGrade__setter)
static

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

eVision.EasyBarCode2.EBarCodeGradingParameters.ModulationGrade = property(_ModulationGrade__getter, _ModulationGrade__setter)
static

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

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

◆ SymbolContrastGrade

eVision.EasyBarCode2.EBarCodeGradingParameters.SymbolContrastGrade = property(_SymbolContrastGrade__getter, _SymbolContrastGrade__setter)
static

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

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