Class TinConfig
-
- All Implemented Interfaces:
-
java.io.Serializable
public class TinConfig implements Serializable
Configuration for scanning TIN numbers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumTinConfig.ScanModeSets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').
public enumTinConfig.UpsideDownModeSets whether the text shall also be scanned upside-down.
-
Field Summary
Fields Modifier and Type Field Description public TinConfig.ScanModescanModepublic TinConfig.UpsideDownModeupsideDownModepublic IntegerminConfidencepublic BooleanvalidateProductionDatepublic StringvalidationRegexpublic DoublehorizontalAlignmentRatiopublic DoubledetectionMinHeightRatio
-
Constructor Summary
Constructors Constructor Description TinConfig()
-
Method Summary
Modifier and Type Method Description TinConfig.ScanModegetScanMode()Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). voidsetScanMode(TinConfig.ScanMode scanMode)Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). TinConfig.UpsideDownModegetUpsideDownMode()Sets whether the text shall also be scanned upside-down. voidsetUpsideDownMode(TinConfig.UpsideDownMode upsideDownMode)Sets whether the text shall also be scanned upside-down. IntegergetMinConfidence()Sets a minimum confidence which has to be reached in order to trigger a scan result. voidsetMinConfidence(Integer minConfidence)Sets a minimum confidence which has to be reached in order to trigger a scan result. BooleangetValidateProductionDate()Sets whether the production date validation is enabled. voidsetValidateProductionDate(Boolean validateProductionDate)Sets whether the production date validation is enabled. StringgetValidationRegex()Sets a regular expression which the TIN text needs to match in order to trigger a scan result. voidsetValidationRegex(String validationRegex)Sets a regular expression which the TIN text needs to match in order to trigger a scan result. DoublegetHorizontalAlignmentRatio()Defines the horizontal ratio for text alignment checks relative to image width. voidsetHorizontalAlignmentRatio(Double horizontalAlignmentRatio)Defines the horizontal ratio for text alignment checks relative to image width. DoublegetDetectionMinHeightRatio()Defines the minimum height ratio relative to image height for the detected text region. voidsetDetectionMinHeightRatio(Double detectionMinHeightRatio)Defines the minimum height ratio relative to image height for the detected text region. StringtoString()inthashCode()booleanequals(Object other)-
-
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').
-
getUpsideDownMode
TinConfig.UpsideDownMode getUpsideDownMode()
Sets whether the text shall also be scanned upside-down.
-
setUpsideDownMode
void setUpsideDownMode(TinConfig.UpsideDownMode upsideDownMode)
Sets whether the text shall also be scanned upside-down.
-
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.
-
hashCode
int hashCode()
-
-
-
-