![]() |
Aspose.Barcode for Python via Java Generation and Recognition API docs
|
QualitySettings allows to configure recognition quality and speed manually. More...
Inherits BaseJavaClass.
Public Member Functions | |
def | __init__ (self, qualitySettings) |
def | init (self) |
def | getAllowInvertImage (self) |
Allows engine to recognize inverse color image as additional scan. More... | |
def | setAllowInvertImage (self, value) |
Allows engine to recognize inverse color image as additional scan. More... | |
def | getAllowIncorrectBarcodes (self) |
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. More... | |
def | setAllowIncorrectBarcodes (self, value) |
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. More... | |
def | getReadTinyBarcodes (self) |
Allows engine to recognize tiny barcodes on large images. More... | |
def | setReadTinyBarcodes (self, value) |
Allows engine to recognize tiny barcodes on large images. More... | |
def | getCheckMore1DVariants (self) |
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. More... | |
def | setCheckMore1DVariants (self, value) |
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. More... | |
def | getAllowComplexBackground (self) |
Allows engine to recognize color barcodes on color background as additional scan. More... | |
def | setAllowComplexBackground (self, value) |
Allows engine to recognize color barcodes on color background as additional scan. More... | |
def | getAllowMedianSmoothing (self) |
Allows engine to enable median smoothing as additional scan. More... | |
def | setAllowMedianSmoothing (self, value) |
Allows engine to enable median smoothing as additional scan. More... | |
def | getMedianSmoothingWindowSize (self) |
Window size for median smoothing. More... | |
def | setMedianSmoothingWindowSize (self, value) |
Window size for median smoothing. More... | |
def | getAllowRegularImage (self) |
Allows engine to recognize regular image without any restorations as main scan. More... | |
def | setAllowRegularImage (self, value) |
Allows engine to recognize regular image without any restorations as main scan. More... | |
def | getAllowDecreasedImage (self) |
Allows engine to recognize decreased image as additional scan. More... | |
def | setAllowDecreasedImage (self, value) |
Allows engine to recognize decreased image as additional scan. More... | |
def | getAllowWhiteSpotsRemoving (self) |
Allows engine to recognize image without small white spots as additional scan. More... | |
def | setAllowWhiteSpotsRemoving (self, value) |
Allows engine to recognize image without small white spots as additional scan. More... | |
def | getAllowOneDAdditionalScan (self) |
Allows engine for 1D barcodes to recognize regular image with different params as additional scan. More... | |
def | setAllowOneDAdditionalScan (self, value) |
Allows engine for 1D barcodes to recognize regular image with different params as additional scan. More... | |
def | getAllowOneDFastBarcodesDetector (self) |
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. More... | |
def | setAllowOneDFastBarcodesDetector (self, value) |
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. More... | |
def | getUseOldBarcodeDetector (self) |
Switches to the old barcode detector. More... | |
def | setUseOldBarcodeDetector (self, value) |
def | getAllowMicroWhiteSpotsRemoving (self) |
Allows engine for Postal barcodes to recognize slightly noised images. More... | |
def | setAllowMicroWhiteSpotsRemoving (self, value) |
Allows engine for Postal barcodes to recognize slightly noised images. More... | |
def | getFastScanOnly (self) |
def | setFastScanOnly (self, value) |
def | getAllowSaltAndPaperFiltering (self) |
Allows engine to recognize barcodes with salt and paper noise type. More... | |
def | setAllowSaltAndPaperFiltering (self, value) |
Allows engine to recognize barcodes with salt and paper noise type. More... | |
def | getAllowDetectScanGap (self) |
Allows engine to use gap between scans to increase recognition speed. More... | |
def | setAllowDetectScanGap (self, value) |
Allows engine to use gap between scans to increase recognition speed. More... | |
def | getAllowDatamatrixIndustrialBarcodes (self) |
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. More... | |
def | setAllowDatamatrixIndustrialBarcodes (self, value) |
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. More... | |
def | getAllowQRMicroQrRestoration (self) |
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. More... | |
def | setAllowQRMicroQrRestoration (self, value) |
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. More... | |
def | getAllowOneDWipedBarsRestoration (self) |
Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. More... | |
def | setAllowOneDWipedBarsRestoration (self, value) |
Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. More... | |
def | getDetectorSettings (self) |
Barcode detector settings. More... | |
def | setDetectorSettings (self, value) |
Barcode detector settings. More... | |
def | applyAll (self, Src) |
apply all values from Src setting to this :param: Src source settings More... | |
![]() | |
def | getJavaClass (self) |
def | setJavaClass (self, javaClass) |
def | getJavaClassName (self) |
def | isNull (self) |
def | printJavaClassName (self) |
Static Public Member Functions | |
def | initQualitySettings (qualitySettings) |
def | getHighPerformance () |
HighPerformance recognition quality preset. More... | |
def | getNormalQuality () |
NormalQuality recognition quality preset. More... | |
def | getHighQualityDetection () |
HighQualityDetection recognition quality preset. More... | |
def | getMaxQualityDetection () |
MaxQualityDetection recognition quality preset. More... | |
def | getHighQuality () |
HighQuality recognition quality preset. More... | |
def | getMaxBarCodes () |
MaxBarCodes recognition quality preset. More... | |
Public Attributes | |
detectorSettings | |
![]() | |
javaClass | |
javaClassName | |
Static Public Attributes | |
string | javaClassName = "com.aspose.mw.barcode.recognition.MwQualitySettings" |
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
def __init__ | ( | self, | |
qualitySettings | |||
) |
Reimplemented from BaseJavaClass.
def applyAll | ( | self, | |
Src | |||
) |
apply all values from Src setting to this :param: Src source settings
def getAllowComplexBackground | ( | self | ) |
Allows engine to recognize color barcodes on color background as additional scan.
Extremely slow mode. Value: Allows engine to recognize color barcodes on color background.
def getAllowDatamatrixIndustrialBarcodes | ( | self | ) |
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
Slow mode which helps only for dashed barcodes which consist from spots. Value: Allows engine for Datamatrix to recognize dashed industrial barcodes.
def getAllowDecreasedImage | ( | self | ) |
Allows engine to recognize decreased image as additional scan.
Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. Value: Allows engine to recognize decreased image
def getAllowDetectScanGap | ( | self | ) |
Allows engine to use gap between scans to increase recognition speed.
Mode can make recognition problems with low height barcodes. Value: Allows engine to use gap between scans to increase recognition speed.
def getAllowIncorrectBarcodes | ( | self | ) |
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.
def getAllowInvertImage | ( | self | ) |
Allows engine to recognize inverse color image as additional scan.
Mode can be used when barcode is white on black background. Value: Allows engine to recognize inverse color image.
def getAllowMedianSmoothing | ( | self | ) |
Allows engine to enable median smoothing as additional scan.
Mode helps to recognize noised barcodes. Value: Allows engine to enable median smoothing.
def getAllowMicroWhiteSpotsRemoving | ( | self | ) |
Allows engine for Postal barcodes to recognize slightly noised images.
Mode helps to recognize sligtly damaged Postal barcodes. Value: Allows engine for Postal barcodes to recognize slightly noised images.
def getAllowOneDAdditionalScan | ( | self | ) |
Allows engine for 1D barcodes to recognize regular image with different params as additional scan.
Mode helps to recongize low height 1D barcodes. Value: Allows engine for 1D barcodes to run additional scan.
def getAllowOneDFastBarcodesDetector | ( | self | ) |
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
Mode helps to quickly recognize generated barcodes from Internet. Value: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
def getAllowOneDWipedBarsRestoration | ( | self | ) |
Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
Value: Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
def getAllowQRMicroQrRestoration | ( | self | ) |
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
Value: Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
def getAllowRegularImage | ( | self | ) |
Allows engine to recognize regular image without any restorations as main scan.
Mode to recognize image as is. Value: Allows to recognize regular image without any restorations.
def getAllowSaltAndPaperFiltering | ( | self | ) |
Allows engine to recognize barcodes with salt and paper noise type.
Mode can remove small noise with white and black dots. Value: Allows engine to recognize barcodes with salt and paper noise type.
def getAllowWhiteSpotsRemoving | ( | self | ) |
Allows engine to recognize image without small white spots as additional scan.
Mode helps to recognize noised image as well as median smoothing filtering. Value: Allows engine to recognize image without small white spots.
def getCheckMore1DVariants | ( | self | ) |
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants.
Default value: False. :return: If True, allows engine to recognize 1D barcodes with checksum.
def getDetectorSettings | ( | self | ) |
Barcode detector settings.
def getFastScanOnly | ( | self | ) |
Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. :return: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
static |
HighPerformance recognition quality preset.
High quality barcodes are recognized well in this mode.
|
static |
HighQuality recognition quality preset.
This preset is developed for low quality barcodes.
Value: HighQuality recognition quality preset.
|
static |
HighQualityDetection recognition quality preset.
Same as NormalQuality but with high quality DetectorSettings
Value: HighQualityDetection recognition quality preset.
|
static |
MaxBarCodes recognition quality preset.
This preset is developed to recognize all possible barcodes, even incorrect barcodes.
Value: MaxBarCodes recognition quality preset.
|
static |
MaxQualityDetection recognition quality preset.
Same as NormalQuality but with highest quality DetectorSettings. Allows to detect diagonal and damaged barcodes.
Value: MaxQualityDetection recognition quality preset.
def getMedianSmoothingWindowSize | ( | self | ) |
Window size for median smoothing.
Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. Value: Window size for median smoothing.
|
static |
NormalQuality recognition quality preset.
Suitable for the most of barcodes
Value: NormalQuality recognition quality preset.
def getReadTinyBarcodes | ( | self | ) |
Allows engine to recognize tiny barcodes on large images.
Ignored if AllowIncorrectBarcodes is set to True.
Default value: False.
:return: If True, allows engine to recognize tiny barcodes on large images.
def getUseOldBarcodeDetector | ( | self | ) |
Switches to the old barcode detector.
:return: Switches to the old barcode detector.
def init | ( | self | ) |
Reimplemented from BaseJavaClass.
|
static |
def setAllowComplexBackground | ( | self, | |
value | |||
) |
Allows engine to recognize color barcodes on color background as additional scan.
Extremely slow mode. Value:v Allows engine to recognize color barcodes on color background.
def setAllowDatamatrixIndustrialBarcodes | ( | self, | |
value | |||
) |
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
Slow mode which helps only for dashed barcodes which consist from spots. Value: Allows engine for Datamatrix to recognize dashed industrial barcodes.
def setAllowDecreasedImage | ( | self, | |
value | |||
) |
Allows engine to recognize decreased image as additional scan.
Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. Value: Allows engine to recognize decreased image
def setAllowDetectScanGap | ( | self, | |
value | |||
) |
Allows engine to use gap between scans to increase recognition speed.
Mode can make recognition problems with low height barcodes. Value: Allows engine to use gap between scans to increase recognition speed.
def setAllowIncorrectBarcodes | ( | self, | |
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.
def setAllowInvertImage | ( | self, | |
value | |||
) |
Allows engine to recognize inverse color image as additional scan.
Mode can be used when barcode is white on black background. Value: Allows engine to recognize inverse color image.
def setAllowMedianSmoothing | ( | self, | |
value | |||
) |
Allows engine to enable median smoothing as additional scan.
Mode helps to recognize noised barcodes. Value: Allows engine to enable median smoothing.
def setAllowMicroWhiteSpotsRemoving | ( | self, | |
value | |||
) |
Allows engine for Postal barcodes to recognize slightly noised images.
Mode helps to recognize sligtly damaged Postal barcodes. Value: Allows engine for Postal barcodes to recognize slightly noised images.
def setAllowOneDAdditionalScan | ( | self, | |
value | |||
) |
Allows engine for 1D barcodes to recognize regular image with different params as additional scan.
Mode helps to recongize low height 1D barcodes. Value: Allows engine for 1D barcodes to run additional scan.
def setAllowOneDFastBarcodesDetector | ( | self, | |
value | |||
) |
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
Mode helps to quickly recognize generated barcodes from Internet. Value: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
def setAllowOneDWipedBarsRestoration | ( | self, | |
value | |||
) |
Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
Value: Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
def setAllowQRMicroQrRestoration | ( | self, | |
value | |||
) |
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
Value: Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
def setAllowRegularImage | ( | self, | |
value | |||
) |
Allows engine to recognize regular image without any restorations as main scan.
Mode to recognize image as is. Value: Allows to recognize regular image without any restorations.
def setAllowSaltAndPaperFiltering | ( | self, | |
value | |||
) |
Allows engine to recognize barcodes with salt and paper noise type.
Mode can remove small noise with white and black dots. Value: Allows engine to recognize barcodes with salt and paper noise type.
def setAllowWhiteSpotsRemoving | ( | self, | |
value | |||
) |
Allows engine to recognize image without small white spots as additional scan.
Mode helps to recognize noised image as well as median smoothing filtering. Value: Allows engine to recognize image without small white spots.
def setCheckMore1DVariants | ( | self, | |
value | |||
) |
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants.
Default value: False. :param value If True, allows engine to recognize 1D barcodes with checksum.
def setDetectorSettings | ( | self, | |
value | |||
) |
Barcode detector settings.
def setFastScanOnly | ( | self, | |
value | |||
) |
Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. :param value: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
def setMedianSmoothingWindowSize | ( | self, | |
value | |||
) |
Window size for median smoothing.
Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. Value: Window size for median smoothing.
def setReadTinyBarcodes | ( | self, | |
value | |||
) |
Allows engine to recognize tiny barcodes on large images.
Ignored if AllowIncorrectBarcodes is set to True.
Default value: False.
:param: value If True, allows engine to recognize tiny barcodes on large images.
def setUseOldBarcodeDetector | ( | self, | |
value | |||
) |
Switches to the old barcode detector. :param value: Switches to the old barcode detector.
detectorSettings |
|
static |