Class BarcodeSvmDetectorSettings
- java.lang.Object
-
- com.aspose.barcode.barcoderecognition.BarcodeSvmDetectorSettings
-
- All Implemented Interfaces:
android.os.Parcelable
public final class BarcodeSvmDetectorSettings extends java.lang.Object implements android.os.Parcelable
Barcode detector settings.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BarcodeSvmDetectorSettings>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
BarcodeSvmDetectorSettings(android.os.Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
static BarcodeSvmDetectorSettings
getHighPerformance()
High performance detection preset.static BarcodeSvmDetectorSettings
getHighQuality()
High quality detection preset.static BarcodeSvmDetectorSettings
getMaxQuality()
Max quality detection preset.int
getMedianFilterWindowSize()
Window size for median smoothing.static BarcodeSvmDetectorSettings
getNormalQuality()
Normal quality detection preset.float
getRegionLikelihoodThresholdPercent()
Sets threshold for detected regions that may contain barcodes.java.util.List<java.lang.Integer>
getScanWindowSizes()
Scan window sizes in pixels.float
getSimilarityCoef()
Similarity coefficient depends on how homogeneous barcodes are.boolean
getSkipDiagonalSearch()
Allows detector to skip search for diagonal barcodes.void
setMedianFilterWindowSize(int value)
Window size for median smoothing.void
setRegionLikelihoodThresholdPercent(float value)
Sets threshold for detected regions that may contain barcodes.void
setScanWindowSizes(java.util.List<java.lang.Integer> value)
Scan window sizes in pixels.void
setSimilarityCoef(float value)
Similarity coefficient depends on how homogeneous barcodes are.void
setSkipDiagonalSearch(boolean value)
Allows detector to skip search for diagonal barcodes.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BarcodeSvmDetectorSettings> CREATOR
-
-
Method Detail
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
getScanWindowSizes
public java.util.List<java.lang.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.
-
setScanWindowSizes
public void setScanWindowSizes(java.util.List<java.lang.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.
-
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]
-
setSimilarityCoef
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]
-
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.
-
setRegionLikelihoodThresholdPercent
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.
-
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.
-
setSkipDiagonalSearch
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.
-
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]
-
setMedianFilterWindowSize
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]
-
getHighPerformance
public static BarcodeSvmDetectorSettings getHighPerformance()
High performance detection preset.
Default for
QualitySettings.PresetType.HighPerformance
-
getNormalQuality
public static BarcodeSvmDetectorSettings getNormalQuality()
Normal quality detection preset.
Default for
QualitySettings.PresetType.NormalQuality
-
getHighQuality
public static BarcodeSvmDetectorSettings getHighQuality()
High quality detection preset.
Default for
QualitySettings.PresetType.HighQualityDetection
andQualitySettings.PresetType.HighQuality
-
getMaxQuality
public static BarcodeSvmDetectorSettings getMaxQuality()
Max quality detection preset.
Default for
QualitySettings.PresetType.MaxQualityDetection
andQualitySettings.PresetType.MaxBarCodes
-
-