‪Aspose.Barcode for PHP via Java  22.4
‪Aspose.Barcode for PHP via Java Generation and Recognition API docs
BarcodeSvmDetectorSettings Class Reference

Inherits BaseJavaClass.

Public Member Functions

 __construct (int $aType)
 
 getScanWindowSizes ()
 
 setScanWindowSizes (array $value)
 
 getSimilarityCoef ()
 
 setSimilarityCoef (int $value)
 
 getRegionLikelihoodThresholdPercent ()
 
 setRegionLikelihoodThresholdPercent (float $value)
 
 getSkipDiagonalSearch ()
 
 setSkipDiagonalSearch (bool $value)
 
 getMedianFilterWindowSize ()
 
 setMedianFilterWindowSize (int $value)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Static Public Member Functions

static construct ($javaClass)
 
static getHighPerformance ()
 
static getNormalQuality ()
 
static getHighQuality ()
 
static getMaxQuality ()
 

Protected Member Functions

 init ()
 
 setJavaClass ($javaClass)
 

Detailed Description

Barcode detector settings.

Constructor & Destructor Documentation

◆ __construct()

BarcodeSvmDetectorSettings::__construct ( int  $aType)

Member Function Documentation

◆ construct()

static BarcodeSvmDetectorSettings::construct (   $javaClass)
static

◆ getHighPerformance()

static BarcodeSvmDetectorSettings::getHighPerformance ( )
static

High performance detection preset.

Returns
BarcodeSvmDetectorSettings Default for QualitySettings::PresetType::HighPerformance
Exceptions
BarcodeException

◆ getHighQuality()

static BarcodeSvmDetectorSettings::getHighQuality ( )
static

High quality detection preset.

Returns
BarcodeSvmDetectorSettings Default for QualitySettings.PresetType.HighQualityDetection and QualitySettings::PresetType::HighQuality
Exceptions
BarcodeException

◆ getJavaClass()

BaseJavaClass::getJavaClass ( )
inherited

◆ getJavaClassName()

BaseJavaClass::getJavaClassName ( )
inherited

◆ getMaxQuality()

static BarcodeSvmDetectorSettings::getMaxQuality ( )
static

Max quality detection preset.

Returns
BarcodeSvmDetectorSettings Default for QualitySettings.PresetType.MaxQualityDetection and QualitySettings::PresetType::MaxBarCodes
Exceptions
BarcodeException

◆ getMedianFilterWindowSize()

BarcodeSvmDetectorSettings::getMedianFilterWindowSize ( )

Window size for median smoothing.

Returns
‪int Typical values are 3 or 4. 0 means no median smoothing. Default value is 0. Median filter window size must be between [0, 10]
Exceptions
BarcodeException

◆ getNormalQuality()

static BarcodeSvmDetectorSettings::getNormalQuality ( )
static

Normal quality detection preset.

Returns
BarcodeSvmDetectorSettings Default for QualitySettings::PresetType::NormalQuality
Exceptions
BarcodeException

◆ getRegionLikelihoodThresholdPercent()

BarcodeSvmDetectorSettings::getRegionLikelihoodThresholdPercent ( )

Sets threshold for detected regions that may contain barcodes.

Returns
‪int 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.
Exceptions
BarcodeException

◆ getScanWindowSizes()

BarcodeSvmDetectorSettings::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.

◆ getSimilarityCoef()

BarcodeSvmDetectorSettings::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]

◆ getSkipDiagonalSearch()

BarcodeSvmDetectorSettings::getSkipDiagonalSearch ( )

Allows detector to skip search for diagonal barcodes.

Returns
‪bool 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.
Exceptions
BarcodeException

◆ init()

BarcodeSvmDetectorSettings::init ( )
protected

Reimplemented from BaseJavaClass.

◆ isNull()

BaseJavaClass::isNull ( )
inherited

◆ printJavaClassName()

BaseJavaClass::printJavaClassName ( )
inherited

◆ setJavaClass()

BaseJavaClass::setJavaClass (   $javaClass)
protectedinherited

◆ setMedianFilterWindowSize()

BarcodeSvmDetectorSettings::setMedianFilterWindowSize ( int  $value)

Window size for median smoothing.

Parameters
int$value‪Typical values are 3 or 4. 0 means no median smoothing. Default value is 0. Median filter window size must be between [0, 10]
Exceptions
BarcodeException

◆ setRegionLikelihoodThresholdPercent()

BarcodeSvmDetectorSettings::setRegionLikelihoodThresholdPercent ( float  $value)

Sets threshold for detected regions that may contain barcodes.

Parameters
float$value‪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.
Exceptions
BarcodeException

◆ setScanWindowSizes()

BarcodeSvmDetectorSettings::setScanWindowSizes ( array  $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()

BarcodeSvmDetectorSettings::setSimilarityCoef ( int  $value)

Similarity coefficient depends on how homogeneous barcodes are.

Parameters
int$value‪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]
Exceptions
BarcodeException

◆ setSkipDiagonalSearch()

BarcodeSvmDetectorSettings::setSkipDiagonalSearch ( bool  $value)

Allows detector to skip search for diagonal barcodes.

Parameters
bool$value‪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.
Exceptions
BarcodeException