Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Inherits BaseJavaClass.
Public Member Functions | |
__construct ($javaClass) | |
getXDimension () | |
setXDimension (float $value) | |
getMinimalXDimension () | |
setMinimalXDimension (float $value) | |
getBarcodeQuality () | |
setBarcodeQuality (int $value) | |
getDeconvolution () | |
setDeconvolution (int $value) | |
getInverseImage () | |
setInverseImage (int $value) | |
getComplexBackground () | |
setComplexBackground (int $value) | |
getAllowIncorrectBarcodes () | |
setAllowIncorrectBarcodes (bool $value) | |
Public Member Functions inherited from BaseJavaClass | |
getJavaClass () | |
getJavaClassName () | |
isNull () | |
printJavaClassName () | |
Static Public Member Functions | |
static | getHighPerformance () |
static | getNormalQuality () |
static | getHighQuality () |
static | getMaxQuality () |
Protected Member Functions | |
init () | |
Protected Member Functions inherited from BaseJavaClass | |
setJavaClass ($javaClass) | |
Static Private Member Functions | |
static | initQualitySettings () |
QualitySettings allows to configure recognition quality and speed manually. You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of QualitySettings is NormalQuality.
This sample shows how to use QualitySettings with BarCodeReader
QualitySettings::__construct | ( | $javaClass | ) |
Reimplemented from BaseJavaClass.
QualitySettings::getAllowIncorrectBarcodes | ( | ) |
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
QualitySettings::getBarcodeQuality | ( | ) |
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
QualitySettings::getComplexBackground | ( | ) |
Mode which enables or disables additional recognition of color barcodes on color images.
QualitySettings::getDeconvolution | ( | ) |
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded (convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image, we have to check most well know functions like sharp or mathematical morphology.
|
static |
HighPerformance recognition quality preset. High quality barcodes are recognized well in this mode.
BarcodeException |
|
static |
HighQuality recognition quality preset. This preset is developed for low quality barcodes.
BarcodeException |
QualitySettings::getInverseImage | ( | ) |
Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
|
static |
MaxQuality recognition quality preset. This preset is developed to recognize all possible barcodes, even incorrect barcodes.
This sample shows how to use MaxQuality mode$reader = new BarCodeReader("test.png"null, null, array(DecodeType::CODE_39_FULL_ASCII, DecodeType::CODE_128)); { $reader->setQualitySettings(QualitySettings::getMaxQuality()); foreach($reader->readBarCodes() as $result) echo ($result->getCodeText()); }
Value: MaxQuality recognition quality preset.
QualitySettings::getMinimalXDimension | ( | ) |
Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
|
static |
NormalQuality recognition quality preset. Suitable for the most of barcodes
BarcodeException |
QualitySettings::getXDimension | ( | ) |
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
|
protected |
Reimplemented from BaseJavaClass.
|
staticprivate |
QualitySettings::setAllowIncorrectBarcodes | ( | bool | $value | ) |
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
$value | Allows engine to recognize incorrect barcodes. |
QualitySettings::setBarcodeQuality | ( | int | $value | ) |
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
$value | Mode which enables methods to recognize barcode elements with the selected quality. |
QualitySettings::setComplexBackground | ( | int | $value | ) |
Mode which enables or disables additional recognition of color barcodes on color images.
$value | Additional recognition of color barcodes on color images. |
QualitySettings::setDeconvolution | ( | int | $value | ) |
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded (convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image, we have to check most well know functions like sharp or mathematical morphology.
$value | Deconvolution mode which defines level of image degradation. |
QualitySettings::setInverseImage | ( | int | $value | ) |
Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
$value | Additional recognition of barcodes on images with inverse colors |
QualitySettings::setMinimalXDimension | ( | float | $value | ) |
Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
$value | Minimal size of XDimension in pixels which is used with UseMinimalXDimension. |
QualitySettings::setXDimension | ( | float | $value | ) |
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
$value | size (from 1 to infinity) of barcode minimal element: matrix cell or bar. |