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. | |
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
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self | ) |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade, | ||
| int | ModulationGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| ModulationGrade | Indicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade, | ||
| int | ModulationGrade, | ||
| int | DefectsGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| ModulationGrade | Indicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%). |
| DefectsGrade | Indicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade, | ||
| int | ModulationGrade, | ||
| int | DefectsGrade, | ||
| int | DecodabilityGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| ModulationGrade | Indicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%). |
| DefectsGrade | Indicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities). |
| DecodabilityGrade | 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). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade, | ||
| int | ModulationGrade, | ||
| int | DefectsGrade, | ||
| int | DecodabilityGrade, | ||
| int | AdditionalRequirementsGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| ModulationGrade | Indicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%). |
| DefectsGrade | Indicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities). |
| DecodabilityGrade | 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). |
| AdditionalRequirementsGrade | 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). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| int | DecodeGrade, | ||
| int | SymbolContrastGrade, | ||
| int | MinimumReflectanceGrade, | ||
| int | MinimumEdgeContrastGrade, | ||
| int | ModulationGrade, | ||
| int | DefectsGrade, | ||
| int | DecodabilityGrade, | ||
| int | AdditionalRequirementsGrade, | ||
| int | GlobalGrade ) |
| DecodeGrade | Indicates whether the barcode was decoded. Grade is 40 if barcode was decoded and 0 if it was not. |
| SymbolContrastGrade | Indicates the fraction of total image contrast used by the barcode. Grade is between 0 (<= 51 gray values) and 40 (>= 180 gray values). |
| MinimumReflectanceGrade | 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. |
| MinimumEdgeContrastGrade | 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. |
| ModulationGrade | Indicates the importance of the minimum edge contrast relative to the symbol contrast. Grade is between 40 (>= 70%) and 0 (< 40%). |
| DefectsGrade | Indicates the importance of irregularities found within elements and quiet zones. Grade is between 40 (small irregularities) and 0 (large irregularities). |
| DecodabilityGrade | 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). |
| AdditionalRequirementsGrade | 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). |
| GlobalGrade | 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). |
| None eVision.EasyBarCode2.EBarCodeGradingParameters.__init__ | ( | self, | |
| eVision.EasyBarCode2.EBarCodeGradingParameters | other ) |
| other | Other instance |
| 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.
| 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).
| 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).
|
static |
ISO15416 defines grades as either number of letters.
We use numbers internally but this function can be used to convert number to letters.
| grade | The grade as an integer between 0 and 40. |
| 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).
| 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).
| 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.
| 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.
| 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).
| 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).
| 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).
| 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).
| 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.
| 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.
| 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.
| 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.
| 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%).
| 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%).
| 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).
| 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).