Class BarcodeTarget
java.lang.Object
io.github.roboblazers7617.limelight.targets.BarcodeTarget
Represents a Barcode Target Result extracted from JSON Output.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[][]
Corners array (pixels) [x0, y0, x1, y1, ...].The decoded data content of the barcode.Barcode family type (e.g.double
The size of the target as a percentage of the image [0-1].double
The X-coordinate of the center of the target in degrees relative to crosshair.double
The X-coordinate of the center of the target in degrees relative to principal pixel.double
The X-coordinate of the center of the target in pixels relative to crosshair.double
The Y-coordinate of the center of the target in degrees relative to crosshair.double
The Y-coordinate of the center of the target in degrees relative to principal pixel.double
The Y-coordinate of the center of the target in pixels relative to crosshair. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
family
Barcode family type (e.g. "QR", "DataMatrix", etc.). -
data
The decoded data content of the barcode. -
tx_pixels
public double tx_pixelsThe X-coordinate of the center of the target in pixels relative to crosshair. Positive-right, center-zero. -
ty_pixels
public double ty_pixelsThe Y-coordinate of the center of the target in pixels relative to crosshair. Positive-down, center-zero. -
tx
public double txThe X-coordinate of the center of the target in degrees relative to crosshair. Positive-right, center-zero. -
ty
public double tyThe Y-coordinate of the center of the target in degrees relative to crosshair. Positive-down, center-zero. -
tx_nocrosshair
public double tx_nocrosshairThe X-coordinate of the center of the target in degrees relative to principal pixel. Positive-right, center-zero. -
ty_nocrosshair
public double ty_nocrosshairThe Y-coordinate of the center of the target in degrees relative to principal pixel. Positive-down, center-zero. -
ta
public double taThe size of the target as a percentage of the image [0-1]. -
corners
public double[][] cornersCorners array (pixels) [x0, y0, x1, y1, ...].- API Note:
- Must be enabled in output tab.
-
-
Constructor Details
-
BarcodeTarget
public BarcodeTarget()Creates a new BarcodeTarget with blank values.
-
-
Method Details