__init__ constructor

On this page

init

Initializes a new instance of the BarcodeOptions class with default values.

def __init__(self):
    ...

init

Initializes a new instance of the BarcodeOptions class with the rectangular area.

def __init__(self, rectangle):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that contains barcodes.

init

Initializes a new instance of the BarcodeOptions class with quality settings and code types.

def __init__(self, image_quality, barcode_quality, code_types):
    ...
Parameter Type Description
image_quality QualityMode The quality of a source image.
barcode_quality QualityMode The quality of a source barcode.
code_types list[str] The types of barcodes to read.

init

Initializes a new instance of the BarcodeOptions class.

def __init__(self, rectangle, image_quality, barcode_quality, dimension, allow_incorrect_barcodes, code_types):
    ...
Parameter Type Description
rectangle Rectangle The rectangular area that contains barcodes.
image_quality QualityMode The quality of a source image.
barcode_quality QualityMode The quality of a source barcode.
dimension Optional[float] The minimal size of the barcode minimal element.
allow_incorrect_barcodes bool The value that indicates whether the incorrect barcodes are allowed.
code_types list[str] The types of barcodes to read.

See Also

On this page