|
zxing-cpp v3.0
|
#include <ReaderOptions.h>
Configuration options for barcode reading and decoding behavior.
ReaderOptions encapsulates a set of flags and parameters that control how barcode detection and decoding is performed. It provides fluent setters that support chaining. Both name(val) and setName(val) forms are available for convenience and compatibility.
The class is intended to be passed to the ReadBarcodes function to influence scanning heuristics, performance vs. accuracy trade-offs, output formatting, and symbol filtering. Instances can be reused across multiple read operations.
The default settings are optimized for detection rate and can be tuned for speed or specific use-cases.
| ZXing::ReaderOptions::ReaderOptions | ( | ) |
| ZXing::ReaderOptions::~ReaderOptions | ( | ) |
| ZXing::ReaderOptions::ReaderOptions | ( | const ReaderOptions & | ) |
|
noexcept |
| ReaderOptions & ZXing::ReaderOptions::operator= | ( | const ReaderOptions & | ) |
|
noexcept |
|
noexcept |
Specify a set of BarcodeFormats that should be searched for, the default is all supported formats.
| ReaderOptions & ZXing::ReaderOptions::formats | ( | BarcodeFormats && | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::formats | ( | BarcodeFormats && | v | ) | && |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
noexcept |
Spend more time to try to find a barcode; optimize for accuracy, not speed.
| ReaderOptions & ZXing::ReaderOptions::tryHarder | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::tryHarder | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Also try detecting code in 90, 180 and 270 degree rotated images.
| ReaderOptions & ZXing::ReaderOptions::tryRotate | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::tryRotate | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Also try detecting inverted ("reversed reflectance") codes if the format allows for those.
| ReaderOptions & ZXing::ReaderOptions::tryInvert | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::tryInvert | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Also try detecting code in downscaled images (depending on image size).
| ReaderOptions & ZXing::ReaderOptions::tryDownscale | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::tryDownscale | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Binarizer to use internally when using the ReadBarcode function.
| ReaderOptions & ZXing::ReaderOptions::binarizer | ( | Binarizer | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::binarizer | ( | Binarizer | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Set to true if the input contains nothing but a single perfectly aligned barcode (generated image).
| ReaderOptions & ZXing::ReaderOptions::isPure | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::isPure | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Image size ( min(width, height) ) threshold at which to start downscaled scanning.
| ReaderOptions & ZXing::ReaderOptions::downscaleThreshold | ( | uint16_t | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::downscaleThreshold | ( | uint16_t | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Scale factor used during downscaling, meaningful values are 2, 3 and 4.
| ReaderOptions & ZXing::ReaderOptions::downscaleFactor | ( | uint8_t | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::downscaleFactor | ( | uint8_t | v | ) | && |
|
inline |
|
inline |
|
noexcept |
The number of scan lines in a linear barcode that have to be equal to accept the result, default is 2.
| ReaderOptions & ZXing::ReaderOptions::minLineCount | ( | uint8_t | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::minLineCount | ( | uint8_t | v | ) | && |
|
inline |
|
inline |
|
noexcept |
The maximum number of symbols (barcodes) to detect / look for in the image with ReadBarcodes.
| ReaderOptions & ZXing::ReaderOptions::maxNumberOfSymbols | ( | uint8_t | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::maxNumberOfSymbols | ( | uint8_t | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Validate optional checksums where applicable (e.g. Code39, ITF).
| ReaderOptions & ZXing::ReaderOptions::validateOptionalChecksum | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::validateOptionalChecksum | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
If true, return the barcodes with errors as well (e.g. checksum errors, see Barcode::error()).
| ReaderOptions & ZXing::ReaderOptions::returnErrors | ( | bool | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::returnErrors | ( | bool | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Specify whether to ignore, read or require EAN-2/5 add-on symbols while scanning EAN/UPC codes.
| ReaderOptions & ZXing::ReaderOptions::eanAddOnSymbol | ( | EanAddOnSymbol | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::eanAddOnSymbol | ( | EanAddOnSymbol | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Specifies the TextMode that controls the return of the Barcode::text() function.
| ReaderOptions & ZXing::ReaderOptions::textMode | ( | TextMode | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::textMode | ( | TextMode | v | ) | && |
|
inline |
|
inline |
|
noexcept |
Specifies fallback character set to use instead of auto-detecting it (when applicable).
| ReaderOptions & ZXing::ReaderOptions::characterSet | ( | CharacterSet | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::characterSet | ( | CharacterSet | v | ) | && |
|
inline |
|
inline |
| ReaderOptions & ZXing::ReaderOptions::characterSet | ( | std::string_view | v | ) | & |
| ReaderOptions && ZXing::ReaderOptions::characterSet | ( | std::string_view | v | ) | && |
|
inline |
|
inline |