Aspose.Barcode for Python via Java Generation and Recognition API docs
asposebarcode.Recognition.BarcodeSvmDetectorSettings Class Reference

Barcode detector settings. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, aType)
 
def init (self)
 
def convertScanWindowSizes (javaScanWindowSizes)
 
def getScanWindowSizes (self)
 Scan window sizes in pixels. More...
 
def setScanWindowSizes (self, value)
 Scan window sizes in pixels. More...
 
def getSimilarityCoef (self)
 Similarity coefficient depends on how homogeneous barcodes are. More...
 
def setSimilarityCoef (self, value)
 Similarity coefficient depends on how homogeneous barcodes are. More...
 
def getRegionLikelihoodThresholdPercent (self)
 Sets threshold for detected regions that may contain barcodes. More...
 
def setRegionLikelihoodThresholdPercent (self, value)
 Sets threshold for detected regions that may contain barcodes. More...
 
def getSkipDiagonalSearch (self)
 Allows detector to skip search for diagonal barcodes. More...
 
def setSkipDiagonalSearch (self, value)
 Allows detector to skip search for diagonal barcodes. More...
 
def getMedianFilterWindowSize (self)
 Window size for median smoothing. More...
 
def setMedianFilterWindowSize (self, value)
 Window size for median smoothing. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

def construct (javaClass)
 
def getHighPerformance ()
 High performance detection preset. More...
 
def getNormalQuality ()
 Normal quality detection preset. More...
 
def getHighQuality ()
 High quality detection preset. More...
 
def getMaxQuality ()
 Max quality detection preset. More...
 

Public Attributes

 scanWindowSizes
 
- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "com.aspose.mw.barcode.recognition.MwBarcodeSvmDetectorSettings"
 
int HighPerformance = 0
 
int NormalQuality = 1
 
int HighQuality = 2
 
int MaxQuality = 3
 

Detailed Description

Barcode detector settings.

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.__init__ (   self,
  aType 
)

Member Function Documentation

◆ construct()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.construct (   javaClass)
static

◆ convertScanWindowSizes()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.convertScanWindowSizes (   javaScanWindowSizes)

◆ getHighPerformance()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getHighPerformance ( )
static

High performance detection preset.

Default for QualitySettings.PresetType.HighPerformance

◆ getHighQuality()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getHighQuality ( )
static

High quality detection preset.

Default for QualitySettings.PresetType.HighQualityDetection and QualitySettings.PresetType.HighQuality

◆ getMaxQuality()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getMaxQuality ( )
static

Max quality detection preset.

Default for QualitySettings.PresetType.MaxQualityDetection and QualitySettings.PresetType.MaxBarCodes

◆ getMedianFilterWindowSize()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getMedianFilterWindowSize (   self)

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]

◆ getNormalQuality()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getNormalQuality ( )
static

Normal quality detection preset.

Default for QualitySettings.PresetType.NormalQuality

◆ getRegionLikelihoodThresholdPercent()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getRegionLikelihoodThresholdPercent (   self)

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.

◆ getScanWindowSizes()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getScanWindowSizes (   self)

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()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getSimilarityCoef (   self)

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]

◆ getSkipDiagonalSearch()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.getSkipDiagonalSearch (   self)

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.

◆ init()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.init (   self)

◆ setMedianFilterWindowSize()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.setMedianFilterWindowSize (   self,
  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]

◆ setRegionLikelihoodThresholdPercent()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.setRegionLikelihoodThresholdPercent (   self,
  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.

◆ setScanWindowSizes()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.setScanWindowSizes (   self,
  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.

◆ setSimilarityCoef()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.setSimilarityCoef (   self,
  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]

◆ setSkipDiagonalSearch()

def asposebarcode.Recognition.BarcodeSvmDetectorSettings.setSkipDiagonalSearch (   self,
  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.

Member Data Documentation

◆ HighPerformance

int asposebarcode.Recognition.BarcodeSvmDetectorSettings.HighPerformance = 0
static

◆ HighQuality

int asposebarcode.Recognition.BarcodeSvmDetectorSettings.HighQuality = 2
static

◆ javaClassName

string asposebarcode.Recognition.BarcodeSvmDetectorSettings.javaClassName = "com.aspose.mw.barcode.recognition.MwBarcodeSvmDetectorSettings"
static

◆ MaxQuality

int asposebarcode.Recognition.BarcodeSvmDetectorSettings.MaxQuality = 3
static

◆ NormalQuality

int asposebarcode.Recognition.BarcodeSvmDetectorSettings.NormalQuality = 1
static

◆ scanWindowSizes

asposebarcode.Recognition.BarcodeSvmDetectorSettings.scanWindowSizes