public final class Barcode

  1. Object
  2. Barcode
Portable barcode observation with normalized geometry. Format names are backend-neutral constants such as QR_CODE, DATA_MATRIX, CODE_128, and EAN_13; unknown symbologies use UNKNOWN. Corner points are ordered around the code when supplied by the backend and may be empty when geometry is unavailable.

Constructors

public Barcode(String value, String format, byte[] rawBytes, VisionRect bounds, VisionPoint[] corners)Creates a barcode without backend metadata.
public Barcode(String value, String format, byte[] rawBytes, VisionRect bounds, VisionPoint[] corners, VisionMetadata metadata)Creates a complete barcode observation.

Methods

public String getValue()
public String getFormat()
public byte[] getRawBytes()
public VisionRect getBounds()
public VisionPoint[] getCorners()
public VisionMetadata getMetadata()

Inherited methods

Constructor details

Barcode

public Barcode(String value, String format, byte[] rawBytes, VisionRect bounds, VisionPoint[] corners)
Creates a barcode without backend metadata.

Parameters

value String
decoded display value, or null
format String
normalized symbology name
rawBytes byte[]
original payload bytes when available
bounds VisionRect
normalized top-left-origin bounds
corners VisionPoint[]
normalized corner points

Barcode

public Barcode(String value, String format, byte[] rawBytes, VisionRect bounds, VisionPoint[] corners, VisionMetadata metadata)
Creates a complete barcode observation.

Parameters

value String
decoded display value, or null
format String
normalized symbology name
rawBytes byte[]
original payload bytes when available
bounds VisionRect
normalized top-left-origin bounds
corners VisionPoint[]
normalized corner points
metadata VisionMetadata
backend identity and optional diagnostic values

Method details

getValue

public String getValue()

Returns

decoded display value, or null when decoding failed

getFormat

public String getFormat()

Returns

normalized symbology name, never a vendor numeric identifier

getRawBytes

public byte[] getRawBytes()

Returns

a defensive copy of payload bytes, or null if unavailable

getBounds

public VisionRect getBounds()

Returns

normalized top-left-origin bounds

getCorners

public VisionPoint[] getCorners()

Returns

defensive copy of normalized corners; possibly empty

getMetadata

public VisionMetadata getMetadata()

Returns

backend metadata, or null for manually created results