public final class Barcode
- Object
- 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
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
valueString- decoded display value, or
null formatString- normalized symbology name
rawBytesbyte[]- original payload bytes when available
boundsVisionRect- normalized top-left-origin bounds
cornersVisionPoint[]- normalized corner points
Barcode
public Barcode(String value, String format, byte[] rawBytes, VisionRect bounds, VisionPoint[] corners, VisionMetadata metadata)Creates a complete barcode observation.
Parameters
valueString- decoded display value, or
null formatString- normalized symbology name
rawBytesbyte[]- original payload bytes when available
boundsVisionRect- normalized top-left-origin bounds
cornersVisionPoint[]- normalized corner points
metadataVisionMetadata- backend identity and optional diagnostic values
Method details
getValue
public String getValue()Returns
decoded display value, or
null when decoding failedgetFormat
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 unavailablegetBounds
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