|
zxing-cpp v3.0
|
Namespaces | |
| namespace | BarcodeExtra |
Classes | |
| class | Barcode |
| class | BarcodeFormats |
| class | ReaderOptions |
| class | CreatorOptions |
| class | WriterOptions |
| class | ImageView |
| class | Image |
| class | Quadrilateral |
| struct | PointT |
| class | Error |
Typedefs | |
| using | Position = QuadrilateralI |
| using | Barcodes = std::vector<Barcode> |
| template<std::size_t N> | |
| using | BarcodeFormatArray = std::array<BarcodeFormat, N> |
| using | QuadrilateralF = Quadrilateral<PointF> |
| using | QuadrilateralI = Quadrilateral<PointI> |
| using | PointI = PointT<int> |
| using | PointF = PointT<double> |
Enumerations | |
| enum class | BarcodeFormat : unsigned int |
| enum class | Binarizer : unsigned char |
| enum class | EanAddOnSymbol : unsigned char |
| enum class | TextMode : unsigned char |
| enum class | ImageFormat : uint32_t |
Functions | |
| Barcode | MergeStructuredAppendSequence (const Barcodes &barcodes) |
| Barcodes | MergeStructuredAppendSequences (const Barcodes &barcodes) |
| BarcodeFormat | Symbology (BarcodeFormat format) |
| std::string_view | Name (BarcodeFormat format) |
| bool | operator<= (BarcodeFormat e, BarcodeFormat s) |
| bool | operator& (BarcodeFormat a, BarcodeFormat b) |
| constexpr BarcodeFormatArray< 2 > | operator| (BarcodeFormat a, BarcodeFormat b) |
| template<std::size_t N> | |
| constexpr BarcodeFormatArray< N+1 > | operator| (BarcodeFormatArray< N > bts, BarcodeFormat bt) |
| template<std::size_t N> | |
| constexpr bool | operator& (BarcodeFormat lhs, const BarcodeFormatArray< N > &rhs) |
| BarcodeFormat | BarcodeFormatFromString (std::string_view str) |
| std::string | ToString (BarcodeFormat format) |
| bool | operator<= (BarcodeFormat lhs, const BarcodeFormats &rhs) |
| bool | operator& (BarcodeFormat lhs, const BarcodeFormats &rhs) |
| BarcodeFormats | BarcodeFormatsFromString (std::string_view str) |
| std::string | ToString (const BarcodeFormats &formats) |
| Barcode | CreateBarcodeFromText (std::string_view contents, const CreatorOptions &options) |
| Barcode | CreateBarcodeFromBytes (const void *data, int size, const CreatorOptions &options) |
| template<typename R> | |
| Barcode | CreateBarcodeFromBytes (const R &contents, const CreatorOptions &options) |
| std::string | WriteBarcodeToSVG (const Barcode &barcode, const WriterOptions &options={}) |
| std::string | WriteBarcodeToUtf8 (const Barcode &barcode, const WriterOptions &options={}) |
| Image | WriteBarcodeToImage (const Barcode &barcode, const WriterOptions &options={}) |
| Barcode | ReadBarcode (const ImageView &image, const ReaderOptions &options={}) |
| Barcodes | ReadBarcodes (const ImageView &image, const ReaderOptions &options={}) |
| template<typename T> | |
| std::string | ToString (const Quadrilateral< PointT< T > > &points) |
| template<typename T> | |
| std::string | ToString (const PointT< T > &p, bool swap=false, char delim='x') |
| std::string | ToString (const Error &e) |
| const std::string & | Version () |
| using ZXing::Position = QuadrilateralI |
| using ZXing::Barcodes = std::vector<Barcode> |
| using ZXing::BarcodeFormatArray = std::array<BarcodeFormat, N> |
| using ZXing::QuadrilateralF = Quadrilateral<PointF> |
| using ZXing::QuadrilateralI = Quadrilateral<PointI> |
| using ZXing::PointI = PointT<int> |
| using ZXing::PointF = PointT<double> |
|
strong |
Enumerates barcode formats known to this package.
Some formats represent a symbology (e.g. EANUPC) with multiple variants (EAN13, EAN8, etc.), while others represent a specific symbology variant (e.g. MicroQRCode). Both can be used with ReaderOptions::formats() to select which formats to read/scan for, but only specific variants are returned by the library when reading barcodes.
If the format name starts with "All", it is a pseudo-format representing a set of formats (e.g. AllLinear, AllGS1, etc.). These can be used for filtering and selection purposes, but are not returned by the library when reading barcodes and can not be used when creating barcodes.
|
strong |
Specify which algorithm 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(esult) = L(uminance) <= T(hreshold).
|
strong |
|
strong |
Specify how the decoded byte content of a barcode should be transcoded to text.
|
strong |
Supported image formats for ImageView. The format encodes the pixel format and layout information.
| Enumerator | |
|---|---|
| None | |
| Lum | |
| LumA | |
| RGB | |
| BGR | |
| RGBA | |
| ARGB | |
| BGRA | |
| ABGR | |
| RGBX | |
| XRGB | |
| BGRX | |
| XBGR | |
Merge a list of Barcodes from one Structured Append sequence to a single barcode.
Automatically merge all Structured Append sequences found in the given list of barcodes.
| BarcodeFormat ZXing::Symbology | ( | BarcodeFormat | format | ) |
Returns the symbology (base type) of the given barcode format (e.g. EAN/UPC for EAN13, EAN8, UPCA, etc.).
| std::string_view ZXing::Name | ( | BarcodeFormat | format | ) |
Returns the human-readable name of the given barcode format.
| bool ZXing::operator<= | ( | BarcodeFormat | e, |
| BarcodeFormat | s ) |
Test if left hand side (e == element) is 'inside' right hand side (s == set) (e.g. MicroQRCode <= QRCode).
| bool ZXing::operator& | ( | BarcodeFormat | a, |
| BarcodeFormat | b ) |
Test if the two BarcodeFormats have a non-empty intersection (e.g. AllMatrix & QRCode).
|
constexpr |
|
constexpr |
|
constexpr |
| BarcodeFormat ZXing::BarcodeFormatFromString | ( | std::string_view | str | ) |
Parse a string into a BarcodeFormat. '-', '_', '/' and ' ' are optional.
| std::invalid_parameter | if the string can not be fully parsed. |
| std::string ZXing::ToString | ( | BarcodeFormat | format | ) |
|
inline |
|
inline |
| BarcodeFormats ZXing::BarcodeFormatsFromString | ( | std::string_view | str | ) |
Parses a string into a set of BarcodeFormats. Separators can be (any combination of) '|' or ','. Input can be lower case and any of '-', '_', '/' or ' ' are optional, e.g. "EAN-8 | qrcode, Itf" would be parsed into [EAN8, QRCode, ITF].
| std::invalid_parameter | if the string can not be fully parsed. |
| std::string ZXing::ToString | ( | const BarcodeFormats & | formats | ) |
| Barcode ZXing::CreateBarcodeFromText | ( | std::string_view | contents, |
| const CreatorOptions & | options ) |
Generate Barcode from unicode text.
| contents | UTF-8 string to encode into a barcode |
| options | CreatorOptions (including BarcodeFormat) |
| Barcode ZXing::CreateBarcodeFromBytes | ( | const void * | data, |
| int | size, | ||
| const CreatorOptions & | options ) |
Generate Barcode from raw binary data.
| data | array of bytes to encode into a barcode |
| size | size of byte array |
| options | CreatorOptions (including BarcodeFormat) |
| Barcode ZXing::CreateBarcodeFromBytes | ( | const R & | contents, |
| const CreatorOptions & | options ) |
| std::string ZXing::WriteBarcodeToSVG | ( | const Barcode & | barcode, |
| const WriterOptions & | options = {} ) |
Write barcode symbol to SVG.
| std::string ZXing::WriteBarcodeToUtf8 | ( | const Barcode & | barcode, |
| const WriterOptions & | options = {} ) |
Write barcode symbol to a utf8 string using graphical characters (e.g. '▀').
| Image ZXing::WriteBarcodeToImage | ( | const Barcode & | barcode, |
| const WriterOptions & | options = {} ) |
Write barcode symbol to Image (Bitmap).
| Barcode ZXing::ReadBarcode | ( | const ImageView & | image, |
| const ReaderOptions & | options = {} ) |
Read barcode from an ImageView
| image | view of the image data including layout and format |
| options | optional ReaderOptions to parameterize / speed up detection |
| Barcodes ZXing::ReadBarcodes | ( | const ImageView & | image, |
| const ReaderOptions & | options = {} ) |
Read barcodes from an ImageView
| image | view of the image data including layout and format |
| options | optional ReaderOptions to parameterize / speed up detection |
| std::string ZXing::ToString | ( | const Quadrilateral< PointT< T > > & | points | ) |
| std::string ZXing::ToString | ( | const PointT< T > & | p, |
| bool | swap = false, | ||
| char | delim = 'x' ) |
| std::string ZXing::ToString | ( | const Error & | e | ) |
| const std::string & ZXing::Version | ( | ) |