Source code for gs1grader.graders.fixed_pattern_damage_grader

from gs1grader.grader_interface import DataMatrixGraderInterface


[docs] class FixedPatternDamageGrader(DataMatrixGraderInterface): """Grader for evaluating the fixed pattern damage of a Data Matrix code. Fixed pattern damage assesses the integrity of the finder pattern and clock pattern (L-shaped patterns) of the Data Matrix. These patterns are critical for scanner orientation and timing. Damage to these fixed patterns can significantly impact the readability and decodability of the Data Matrix symbol. """
[docs] def __init__(self): """Initialize the FixedPatternDamageGrader.""" pass
[docs] def compute_grade(self, decoded_data): """Compute fixed pattern damage grade for the given data matrix parameters. :param decoded_data: Contains decoded data matrix information :type: DecodedDmtxData :returns: The grade of the fixed pattern damage (A, B, C, D, or F) :rtype: str """ print("Checkout the advanced version to enable this grade") return None
[docs] def explain_grade(self, data): """Explain the fixed pattern damage grade for the given data matrix parameters. :param data: Contains data matrix information and grade :type data: DecodedDmtxData :returns: Explanation of the grade :rtype: str """ print("Checkout the advanced version to enable this grade") return None