QualitySettings

QualitySettings class

Namespace: Aspose.Barcode.Recognition

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

Constructors

NameDescription
__construct

Properties

NameStaticRead/WriteDescription
AllowIncorrectBarcodesNoRead/WriteAllows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
BarcodeQualityNoRead/WriteMode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
ComplexBackgroundNoRead/WriteMode which enables or disables additional recognition of color barcodes on color images.
DeconvolutionNoRead/WriteDeconvolution (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.
HighPerformanceYesRead-onlyHighPerformance recognition quality preset. High quality barcodes are recognized well in this mode.
HighQualityYesRead-onlyHighQuality recognition quality preset. This preset is developed for low quality barcodes.
InverseImageNoRead/WriteMode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
MaxQualityYesRead-onlyMaxQuality recognition quality preset. This preset is developed to recognize all possible barcodes, even incorrect barcodes. Value: MaxQuality recognition quality preset.
MinimalXDimensionNoRead/WriteMinimal size of XDimension in pixels which is used with UseMinimalXDimension.
NormalQualityYesRead-onlyNormalQuality recognition quality preset. Suitable for the most of barcodes
XDimensionNoRead/WriteRecognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.

QualitySettings__construct(QualitySettingsDTO $qualitySettingsDTO)

ParameterTypeDescription
$qualitySettingsDTOQualitySettingsDTO

AllowIncorrectBarcodes

Access: Read/Write

Returns: bool : Allows engine to recognize incorrect barcodes.

Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.

Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.

ParameterTypeDescription
$valuebool: Allows engine to recognize incorrect barcodes.

BarcodeQuality

Access: Read/Write

Returns: int : Mode which enables methods to recognize barcode elements with the selected quality.

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.

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.

ParameterTypeDescription
$valueint: Mode which enables methods to recognize barcode elements with the selected quality.

ComplexBackground

Access: Read/Write

Returns: int : Additional recognition of color barcodes on color images.

Mode which enables or disables additional recognition of color barcodes on color images.

Mode which enables or disables additional recognition of color barcodes on color images.

ParameterTypeDescription
$valueint: Additional recognition of color barcodes on color images.

Deconvolution

Access: Read/Write

Returns: int : Deconvolution mode which defines level of image degradation.

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.

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.

ParameterTypeDescription
$valueint: Deconvolution mode which defines level of image degradation.

HighPerformance

Access: Read-only

Static: Yes

HighPerformance recognition quality preset. High quality barcodes are recognized well in this mode.

HighQuality

Access: Read-only

Static: Yes

Returns: QualitySettings HighQuality recognition quality preset.

HighQuality recognition quality preset. This preset is developed for low quality barcodes.

InverseImage

Access: Read/Write

Returns: int : Additional recognition of barcodes on images with inverse colors

Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).

Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).

ParameterTypeDescription
$valueint: Additional recognition of barcodes on images with inverse colors

MaxQuality

Access: Read-only

Static: Yes

MaxQuality recognition quality preset. This preset is developed to recognize all possible barcodes, even incorrect barcodes. Value: MaxQuality recognition quality preset.

MinimalXDimension

Access: Read/Write

Returns: float : Minimal size of XDimension in pixels which is used with UseMinimalXDimension.

Minimal size of XDimension in pixels which is used with UseMinimalXDimension.

Minimal size of XDimension in pixels which is used with UseMinimalXDimension.

ParameterTypeDescription
$valuefloat: Minimal size of XDimension in pixels which is used with UseMinimalXDimension.

NormalQuality

Access: Read-only

Static: Yes

Returns: QualitySettings NormalQuality recognition quality preset.

NormalQuality recognition quality preset. Suitable for the most of barcodes

XDimension

Access: Read/Write

Returns: int : size (from 1 to infinity) of barcode minimal element: matrix cell or bar.

Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.

Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.

ParameterTypeDescription
$valueint