Class DocumentQualityAnalyzerConfiguration
- java.lang.Object
-
- io.scanbot.sdk.documentqualityanalyzer.DocumentQualityAnalyzerConfiguration
-
public class DocumentQualityAnalyzerConfiguration extends java.lang.ObjectDocument Quality Analyzer configuration.
-
-
Constructor Summary
Constructors Constructor Description DocumentQualityAnalyzerConfiguration()Constructs DocumentQualityAnalyzerConfiguration with default parameters.DocumentQualityAnalyzerConfiguration(java.util.List<DocumentQualityThreshold> qualityThresholds, java.util.List<DocumentQuality> qualityIndices, boolean detectOrientation, boolean inspectSmallText, int maxImageSize, int minEstimatedNumberOfSymbolsForDocument, ProcessByTileConfiguration processByTileConfiguration, double minRequiredOrientationConfidence, boolean returnQualityHeatmap)Constructs DocumentQualityAnalyzerConfiguration with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDetectOrientation()Getter for detectOrientation field.booleangetInspectSmallText()Getter for inspectSmallText field.intgetMaxImageSize()Getter for maxImageSize field.intgetMinEstimatedNumberOfSymbolsForDocument()Getter for minEstimatedNumberOfSymbolsForDocument field.doublegetMinRequiredOrientationConfidence()Getter for minRequiredOrientationConfidence field.ProcessByTileConfigurationgetProcessByTileConfiguration()Getter for processByTileConfiguration field.java.util.List<DocumentQuality>getQualityIndices()Getter for qualityIndices field.java.util.List<DocumentQualityThreshold>getQualityThresholds()Getter for qualityThresholds field.booleangetReturnQualityHeatmap()Getter for returnQualityHeatmap field.voidsetDetectOrientation(boolean detectOrientation)Setter for detectOrientation field.voidsetInspectSmallText(boolean inspectSmallText)Setter for inspectSmallText field.voidsetMaxImageSize(int maxImageSize)Setter for maxImageSize field.voidsetMinEstimatedNumberOfSymbolsForDocument(int minEstimatedNumberOfSymbolsForDocument)Setter for minEstimatedNumberOfSymbolsForDocument field.voidsetMinRequiredOrientationConfidence(double minRequiredOrientationConfidence)Setter for minRequiredOrientationConfidence field.voidsetProcessByTileConfiguration(ProcessByTileConfiguration processByTileConfiguration)Setter for processByTileConfiguration field.voidsetQualityIndices(java.util.List<DocumentQuality> qualityIndices)Setter for qualityIndices field.voidsetQualityThresholds(java.util.List<DocumentQualityThreshold> qualityThresholds)Setter for qualityThresholds field.voidsetReturnQualityHeatmap(boolean returnQualityHeatmap)Setter for returnQualityHeatmap field.
-
-
-
Constructor Detail
-
DocumentQualityAnalyzerConfiguration
public DocumentQualityAnalyzerConfiguration(java.util.List<DocumentQualityThreshold> qualityThresholds, java.util.List<DocumentQuality> qualityIndices, boolean detectOrientation, boolean inspectSmallText, int maxImageSize, int minEstimatedNumberOfSymbolsForDocument, ProcessByTileConfiguration processByTileConfiguration, double minRequiredOrientationConfidence, boolean returnQualityHeatmap)
Constructs DocumentQualityAnalyzerConfiguration with the given params.- Parameters:
qualityThresholds- Quality thresholds to separate quality levels.qualityIndices- quality levels.detectOrientation- Enable orientation detection. Document orientation will be returned in `DocumentQualityAnalyzerResult.orientation`. Default is falseinspectSmallText- Inspect small text (typically less than 12 pixels height) when analyzing the document quality. If true, processing will be slower, but when the quality issue with a document is the low resolution of the text, then the issue will be caught. Default is falsemaxImageSize- Maximum image size in pixels, if image is bigger, it will be resized. Zero or negative value means no limit. Default is 2000minEstimatedNumberOfSymbolsForDocument- If estimated number of symbols is less than this value, return that document is not found. Default is 20processByTileConfiguration- Configuration for processing image by tiles.minRequiredOrientationConfidence- If detectOrientation is True, minNumberOfRequiredSymbols is found, and orientationConfidence is bigger than this threshold, the processing stops. If the maxProcessedFraction part of the image is processed and orientationConfidence is lower than the threshold, the returned orientation will be 0. Default is 0returnQualityHeatmap- If true, will return the quality heatmap as a part of the result. In this case, the entire image will be processed and the minProcessedFraction will be ignored. Useful for debugging situations where the returned quality doesn't appear to match the perceived quality. Default is false
-
DocumentQualityAnalyzerConfiguration
public DocumentQualityAnalyzerConfiguration()
Constructs DocumentQualityAnalyzerConfiguration with default parameters.
-
-
Method Detail
-
getQualityThresholds
public java.util.List<DocumentQualityThreshold> getQualityThresholds()
Getter for qualityThresholds field. See constructor documentation for more information about the field.- Returns:
- qualityThresholds
-
setQualityThresholds
public void setQualityThresholds(java.util.List<DocumentQualityThreshold> qualityThresholds)
Setter for qualityThresholds field. See constructor documentation for more information about the field.- Parameters:
qualityThresholds- Value to set.
-
getQualityIndices
public java.util.List<DocumentQuality> getQualityIndices()
Getter for qualityIndices field. See constructor documentation for more information about the field.- Returns:
- qualityIndices
-
setQualityIndices
public void setQualityIndices(java.util.List<DocumentQuality> qualityIndices)
Setter for qualityIndices field. See constructor documentation for more information about the field.- Parameters:
qualityIndices- Value to set.
-
getDetectOrientation
public boolean getDetectOrientation()
Getter for detectOrientation field. See constructor documentation for more information about the field.- Returns:
- detectOrientation
-
setDetectOrientation
public void setDetectOrientation(boolean detectOrientation)
Setter for detectOrientation field. See constructor documentation for more information about the field.- Parameters:
detectOrientation- Value to set.
-
getInspectSmallText
public boolean getInspectSmallText()
Getter for inspectSmallText field. See constructor documentation for more information about the field.- Returns:
- inspectSmallText
-
setInspectSmallText
public void setInspectSmallText(boolean inspectSmallText)
Setter for inspectSmallText field. See constructor documentation for more information about the field.- Parameters:
inspectSmallText- Value to set.
-
getMaxImageSize
public int getMaxImageSize()
Getter for maxImageSize field. See constructor documentation for more information about the field.- Returns:
- maxImageSize
-
setMaxImageSize
public void setMaxImageSize(int maxImageSize)
Setter for maxImageSize field. See constructor documentation for more information about the field.- Parameters:
maxImageSize- Value to set.
-
getMinEstimatedNumberOfSymbolsForDocument
public int getMinEstimatedNumberOfSymbolsForDocument()
Getter for minEstimatedNumberOfSymbolsForDocument field. See constructor documentation for more information about the field.- Returns:
- minEstimatedNumberOfSymbolsForDocument
-
setMinEstimatedNumberOfSymbolsForDocument
public void setMinEstimatedNumberOfSymbolsForDocument(int minEstimatedNumberOfSymbolsForDocument)
Setter for minEstimatedNumberOfSymbolsForDocument field. See constructor documentation for more information about the field.- Parameters:
minEstimatedNumberOfSymbolsForDocument- Value to set.
-
getProcessByTileConfiguration
public ProcessByTileConfiguration getProcessByTileConfiguration()
Getter for processByTileConfiguration field. See constructor documentation for more information about the field.- Returns:
- processByTileConfiguration
-
setProcessByTileConfiguration
public void setProcessByTileConfiguration(ProcessByTileConfiguration processByTileConfiguration)
Setter for processByTileConfiguration field. See constructor documentation for more information about the field.- Parameters:
processByTileConfiguration- Value to set.
-
getMinRequiredOrientationConfidence
public double getMinRequiredOrientationConfidence()
Getter for minRequiredOrientationConfidence field. See constructor documentation for more information about the field.- Returns:
- minRequiredOrientationConfidence
-
setMinRequiredOrientationConfidence
public void setMinRequiredOrientationConfidence(double minRequiredOrientationConfidence)
Setter for minRequiredOrientationConfidence field. See constructor documentation for more information about the field.- Parameters:
minRequiredOrientationConfidence- Value to set.
-
getReturnQualityHeatmap
public boolean getReturnQualityHeatmap()
Getter for returnQualityHeatmap field. See constructor documentation for more information about the field.- Returns:
- returnQualityHeatmap
-
setReturnQualityHeatmap
public void setReturnQualityHeatmap(boolean returnQualityHeatmap)
Setter for returnQualityHeatmap field. See constructor documentation for more information about the field.- Parameters:
returnQualityHeatmap- Value to set.
-
-