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
| Name | Description |
|---|---|
| __construct |
Properties
| Name | Static | Read/Write | Description |
|---|---|---|---|
| AllowIncorrectBarcodes | No | Read/Write | Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. |
| BarcodeQuality | No | Read/Write | 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. |
| ComplexBackground | No | Read/Write | Mode which enables or disables additional recognition of color barcodes on color images. |
| Deconvolution | No | Read/Write | 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. |
| HighPerformance | Yes | Read-only | HighPerformance recognition quality preset. High quality barcodes are recognized well in this mode. |
| HighQuality | Yes | Read-only | HighQuality recognition quality preset. This preset is developed for low quality barcodes. |
| InverseImage | No | Read/Write | Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance). |
| MaxQuality | Yes | Read-only | MaxQuality recognition quality preset. This preset is developed to recognize all possible barcodes, even incorrect barcodes. Value: MaxQuality recognition quality preset. |
| MinimalXDimension | No | Read/Write | Minimal size of XDimension in pixels which is used with UseMinimalXDimension. |
| NormalQuality | Yes | Read-only | NormalQuality recognition quality preset. Suitable for the most of barcodes |
| XDimension | No | Read/Write | Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar. |
QualitySettings__construct(QualitySettingsDTO $qualitySettingsDTO)
| Parameter | Type | Description |
|---|---|---|
$qualitySettingsDTO | QualitySettingsDTO |
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.
| Parameter | Type | Description |
|---|---|---|
$value | bool | : 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.
| Parameter | Type | Description |
|---|---|---|
$value | int | : 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.
| Parameter | Type | Description |
|---|---|---|
$value | int | : 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.
| Parameter | Type | Description |
|---|---|---|
$value | int | : 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).
| Parameter | Type | Description |
|---|---|---|
$value | int | : 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.
| Parameter | Type | Description |
|---|---|---|
$value | float | : 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.
| Parameter | Type | Description |
|---|---|---|
$value | int |