OptionalbinarizerAlgorithm to use for the grayscale to binary transformation. The difference is how to get to a threshold value T which results in a bit value R = L <= T.
"LocalAverage"
T = average of neighboring pixels for matrix and GlobalHistogram for linear (HybridBinarizer)
"GlobalHistogram"
T = valley between the 2 largest peaks in the histogram (per line in linear case)
"FixedThreshold"
T = 127
"BoolCast"
T = 0, fastest possible
OptionalcharacterCharacter set to use (when applicable).
If this is set to "Unknown", auto-detecting will be used.
Optional ExperimentaldownscaleScale factor to use during downscaling, meaningful values are 2, 3 and 4.
WARNING: this API is experimental and may change / disappear
Optional ExperimentaldownscaleImage size min(width, height) threshold at which to start downscaled scanning.
WARNING: this API is experimental and may change / disappear
OptionaleanSpecify whether to ignore, read or require EAN-2 / 5 add-on symbols while scanning EAN / UPC codes.
"Ignore"
Ignore any Add-On symbol during read / scan
"Read"
Read EAN-2 / EAN-5 Add-On symbol if found
"Require"
Require EAN-2 / EAN-5 Add-On symbol to be present
OptionalformatsA set of ReadInputBarcodeFormats that should be searched for.
An empty list [] indicates all supported formats.
Supported values in this list are:
"Aztec", "Codabar", "Code39", "Code93", "Code128",
"DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge",
"EAN-8", "EAN-13", "ITF", "MaxiCode", "MicroQRCode", "PDF417",
"QRCode", "rMQRCode", "UPC-A", "UPC-E",
"Linear-Codes", "Matrix-Codes", Any
OptionalisSet to true if the input contains nothing but a single perfectly aligned barcode (usually generated images).
OptionalmaxThe maximum number of symbols / barcodes to detect / look for in the image. The upper limit of this number is 255.
OptionalminThe number of scan lines in a linear barcode that have to be equal to accept the result.
OptionalreturnIf true, return the barcodes with errors as well (e.g. checksum errors).
OptionaltextSpecifies the TextMode that controls the result of ReadResult.text.
"Plain"
ReadResult.bytes transcoded to unicode based on ECI info or guessed character set
"ECI"
Standard content following the ECI protocol with every character set ECI segment transcoded to unicode
"HRI"
Human Readable Interpretation (dependent on the ContentType)
"Hex"
ReadResult.bytes transcoded to ASCII string of HEX values
"Escaped"
Escape non-graphical characters in angle brackets (e.g. ASCII 29 will be transcoded to "<GS>")
OptionaltryEnable the heuristic to detect and decode "full ASCII" / extended Code39 symbols.
Optional ExperimentaltryTry detecting code after denoising (currently morphological closing filter for 2D symbologies only).
OptionaltryTry detecting code in downscaled images (depending on image size).
OptionaltrySpend more time to try to find a barcode. Optimize for accuracy, not speed.
OptionaltryTry detecting inverted (reversed reflectance) codes if the format allows for those.
OptionaltryTry detecting code in 90, 180 and 270 degree rotated images.
Reader options for reading barcodes.