Table of Contents

Class BarcodeDetection

Namespace
LMKit.Extraction.Barcodes
Assembly
LM-Kit.NET.dll

One barcode symbol found by BarcodeReader: what it says and where it stands.

public sealed class BarcodeDetection
Inheritance
BarcodeDetection
Inherited Members

Remarks

Position and Bounds are in the pixels of the raster that was scanned. When the symbol was read from a document page, PageIndex names the page and PageRegion gives the same place in the page's own units (points for a PDF, pixels for an image: the units of GetPageSize(int)).

Properties

Bounds

Gets the axis-aligned box around Position, in raster pixels.

Bytes

Gets the raw content bytes.

Error

Gets why the symbol failed to decode; empty for a valid symbol.

Format

Gets the symbol's format: a concrete variant, never a filter.

FormatName

Gets the format's human-readable name ("QR Code", "Code 128", "EAN-13").

HasEci

Gets whether the content carries Extended Channel Interpretation markers.

IsInverted

Gets whether the symbol was read light on dark.

IsMirrored

Gets whether the symbol was read mirrored.

IsValid

Gets whether the symbol decoded without error.

Orientation

Gets the symbol's rotation in degrees, counter-clockwise, from -180 to 180.

PageIndex

Gets the zero-based index of the document page the symbol was read from, or -1 when it was read from a standalone image.

PageRegion

Gets the symbol's box in the page's own units (points for a PDF, pixels for an image), or null when it was read from a standalone image.

Position

Gets the symbol's four corners in raster pixels, in the symbol's own reading frame: TopLeft is the corner where reading starts, whatever the symbol's rotation on the page.

SequenceIndex

Gets, for structured append, this symbol's index in its message; -1 when it is not split.

SequenceSize

Gets, for structured append, how many symbols the message spans; -1 when it is not split.

SymbologyIdentifier

Gets the ISO/IEC 15424 symbology identifier ("]Q1", "]C0").

Text

Gets the content as text (GS1 data in its human-readable form, "(01)...").

Methods

GetBytes()

Returns the raw content bytes as a new array.

ToString()
Share