• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class BarCodeResult

Represents a recognized barcode.

Inheritance
object
BarCodeResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DRIT.Barcode.Recognition
Assembly: DRIT.Barcode.dll
Syntax
public class BarCodeResult

Constructors

BarCodeResult(string, string, SingleDecodeType, byte[]?, Region, int, float)

Initializes a new instance of the BarCodeResult class.

Declaration
public BarCodeResult(string codeText, string codeTypeName, SingleDecodeType codeType, byte[]? codeBytes, Region region, int angle, float confidence)
Parameters
Type Name Description
string codeText

The decoded text.

string codeTypeName

The human-readable symbology name.

SingleDecodeType codeType

The single decode type.

byte[] codeBytes

The raw codeword bytes, or null.

Region region

The region of the barcode in the image.

int angle

The rotation angle in degrees.

float confidence

The recognition confidence (0-1).

Properties

Angle

Gets the rotation angle of the barcode in degrees.

Declaration
public int Angle { get; }
Property Value
Type Description
int

CodeBytes

Gets the raw codeword bytes, or null if not available.

Declaration
public byte[]? CodeBytes { get; }
Property Value
Type Description
byte[]

CodeText

Gets the decoded text of the barcode.

Declaration
public string CodeText { get; }
Property Value
Type Description
string

CodeType

Gets the single decode type of the recognized barcode.

Declaration
public SingleDecodeType CodeType { get; }
Property Value
Type Description
SingleDecodeType

CodeTypeName

Gets the human-readable name of the symbology.

Declaration
public string CodeTypeName { get; }
Property Value
Type Description
string

Confidence

Gets the recognition confidence (0-1).

Declaration
public float Confidence { get; }
Property Value
Type Description
float

Extended

Gets the symbology-specific extended metadata.

Declaration
public BarCodeExtendedResult Extended { get; }
Property Value
Type Description
BarCodeExtendedResult

IsCodeTextSpecified

Gets a value indicating whether the code text is specified.

Declaration
public bool IsCodeTextSpecified { get; }
Property Value
Type Description
bool

Region

Gets the region of the barcode in the image.

Declaration
public Region Region { get; }
Property Value
Type Description
Region

Methods

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX