BarcodeSvmDetectorSettings
Inheritance: java.lang.Object
public final class BarcodeSvmDetectorSettings
Barcode detector settings.
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getHighPerformance() | High performance detection preset. |
getHighQuality() | High quality detection preset. |
getMaxQuality() | Max quality detection preset. |
getMedianFilterWindowSize() | Window size for median smoothing. |
getNormalQuality() | Normal quality detection preset. |
getRegionLikelihoodThresholdPercent() | Sets threshold for detected regions that may contain barcodes. |
getScanWindowSizes() | Scan window sizes in pixels. |
getSimilarityCoef() | Similarity coefficient depends on how homogeneous barcodes are. |
getSkipDiagonalSearch() | Allows detector to skip search for diagonal barcodes. |
hashCode() | |
notify() | |
notifyAll() | |
setMedianFilterWindowSize(int value) | Window size for median smoothing. |
setRegionLikelihoodThresholdPercent(float value) | Sets threshold for detected regions that may contain barcodes. |
setScanWindowSizes(List | Scan window sizes in pixels. |
setSimilarityCoef(float value) | Similarity coefficient depends on how homogeneous barcodes are. |
setSkipDiagonalSearch(boolean value) | Allows detector to skip search for diagonal barcodes. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getHighPerformance()
public static BarcodeSvmDetectorSettings getHighPerformance()
High performance detection preset.
Default for QualitySettings.PresetType.HighPerformance
Returns: com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings
getHighQuality()
public static BarcodeSvmDetectorSettings getHighQuality()
High quality detection preset.
Default for QualitySettings.PresetType.HighQualityDetection and QualitySettings.PresetType.HighQuality
Returns: com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings
getMaxQuality()
public static BarcodeSvmDetectorSettings getMaxQuality()
Max quality detection preset.
Default for QualitySettings.PresetType.MaxQualityDetection and QualitySettings.PresetType.MaxBarCodes
Returns: com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings
getMedianFilterWindowSize()
public int getMedianFilterWindowSize()
Window size for median smoothing.
Typical values are 3 or 4. 0 means no median smoothing. Default value is 0. Median filter window size must be between [0, 10]
Returns: int
getNormalQuality()
public static BarcodeSvmDetectorSettings getNormalQuality()
Normal quality detection preset.
Default for QualitySettings.PresetType.NormalQuality
Returns: com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings
getRegionLikelihoodThresholdPercent()
public float getRegionLikelihoodThresholdPercent()
Sets threshold for detected regions that may contain barcodes.
Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time.
Returns: float
getScanWindowSizes()
public List<Integer> getScanWindowSizes()
Scan window sizes in pixels.
Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality.
Returns: java.util.List<java.lang.Integer>
getSimilarityCoef()
public float getSimilarityCoef()
Similarity coefficient depends on how homogeneous barcodes are.
Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9]
Returns: float
getSkipDiagonalSearch()
public boolean getSkipDiagonalSearch()
Allows detector to skip search for diagonal barcodes.
Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time.
Returns: boolean
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setMedianFilterWindowSize(int value)
public void setMedianFilterWindowSize(int value)
Window size for median smoothing.
Typical values are 3 or 4. 0 means no median smoothing. Default value is 0. Median filter window size must be between [0, 10]
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRegionLikelihoodThresholdPercent(float value)
public void setRegionLikelihoodThresholdPercent(float value)
Sets threshold for detected regions that may contain barcodes.
Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setScanWindowSizes(List value)
public void setScanWindowSizes(List<Integer> value)
Scan window sizes in pixels.
Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.List<java.lang.Integer> |
setSimilarityCoef(float value)
public void setSimilarityCoef(float value)
Similarity coefficient depends on how homogeneous barcodes are.
Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9]
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setSkipDiagonalSearch(boolean value)
public void setSkipDiagonalSearch(boolean value)
Allows detector to skip search for diagonal barcodes.
Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |