Class TinConfig

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class TinConfig
     implements Serializable
                        

    Configuration for scanning TIN numbers

    • Constructor Detail

      • TinConfig

        TinConfig()
    • Method Detail

      • getScanMode

         TinConfig.ScanMode getScanMode()

        Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').

      • setScanMode

         void setScanMode(TinConfig.ScanMode scanMode)

        Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').

      • getMinConfidence

         Integer getMinConfidence()

        Sets a minimum confidence which has to be reached in order to trigger a scan result.

      • setMinConfidence

         void setMinConfidence(Integer minConfidence)

        Sets a minimum confidence which has to be reached in order to trigger a scan result.

      • getValidateProductionDate

         Boolean getValidateProductionDate()

        Sets whether the production date validation is enabled. If it is set to false the scan result is also returned for invalid and missing dates.

      • setValidateProductionDate

         void setValidateProductionDate(Boolean validateProductionDate)

        Sets whether the production date validation is enabled. If it is set to false the scan result is also returned for invalid and missing dates.

      • getValidationRegex

         String getValidationRegex()

        Sets a regular expression which the TIN text needs to match in order to trigger a scan result.

      • setValidationRegex

         void setValidationRegex(String validationRegex)

        Sets a regular expression which the TIN text needs to match in order to trigger a scan result.

      • getHorizontalAlignmentRatio

         Double getHorizontalAlignmentRatio()

        Defines the horizontal ratio for text alignment checks relative to image width. Ensures the detected TIN text starts near the left edge of the cutout (or right edge when upside-down) to prevent partial captures. Lower values are more restrictive (text must be closer to the edge). This parameter helps reduce premature results and ensures proper text alignment.

      • setHorizontalAlignmentRatio

         void setHorizontalAlignmentRatio(Double horizontalAlignmentRatio)

        Defines the horizontal ratio for text alignment checks relative to image width. Ensures the detected TIN text starts near the left edge of the cutout (or right edge when upside-down) to prevent partial captures. Lower values are more restrictive (text must be closer to the edge). This parameter helps reduce premature results and ensures proper text alignment.

      • getDetectionMinHeightRatio

         Double getDetectionMinHeightRatio()

        Defines the minimum height ratio relative to image height for the detected text region. Ensures the device is close enough to the tire by requiring detected text to meet a minimum height requirement. Higher values are more restrictive (text must be taller, meaning device must be closer). This parameter helps prevent premature scans when the user is too far away and ensures better image quality.

      • setDetectionMinHeightRatio

         void setDetectionMinHeightRatio(Double detectionMinHeightRatio)

        Defines the minimum height ratio relative to image height for the detected text region. Ensures the device is close enough to the tire by requiring detected text to meet a minimum height requirement. Higher values are more restrictive (text must be taller, meaning device must be closer). This parameter helps prevent premature scans when the user is too far away and ensures better image quality.