Class BarcodeTarget

java.lang.Object
io.github.roboblazers7617.limelight.targets.BarcodeTarget

public class BarcodeTarget extends Object
Represents a Barcode Target Result extracted from JSON Output.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double[][]
    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
    Constructor
    Description
    Creates a new BarcodeTarget with blank values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the family of this BarcodeTarget.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • family

      public String family
      Barcode family type (e.g. "QR", "DataMatrix", etc.).
    • data

      public String data
      The decoded data content of the barcode.
    • tx_pixels

      public double tx_pixels
      The X-coordinate of the center of the target in pixels relative to crosshair. Positive-right, center-zero.
    • ty_pixels

      public double ty_pixels
      The Y-coordinate of the center of the target in pixels relative to crosshair. Positive-down, center-zero.
    • tx

      public double tx
      The X-coordinate of the center of the target in degrees relative to crosshair. Positive-right, center-zero.
    • ty

      public double ty
      The Y-coordinate of the center of the target in degrees relative to crosshair. Positive-down, center-zero.
    • tx_nocrosshair

      public double tx_nocrosshair
      The X-coordinate of the center of the target in degrees relative to principal pixel. Positive-right, center-zero.
    • ty_nocrosshair

      public double ty_nocrosshair
      The Y-coordinate of the center of the target in degrees relative to principal pixel. Positive-down, center-zero.
    • ta

      public double ta
      The size of the target as a percentage of the image [0-1].
    • corners

      public double[][] corners
      Corners 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

    • getFamily

      public String getFamily()
      Gets the family of this BarcodeTarget.
      Returns:
      family string of this BarcodeTarget.