Class Barcode

java.lang.Object
limelight.networktables.target.Barcode

public class Barcode 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.....].
    Gets 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
    X-coordinate of the center of the target in degrees relative to crosshair.
    double
    X-coordinate of the center of the target in degrees relative to principal piexel.
    double
    X-coordinate of the center of the target in pixels relative to crosshair.
    double
    Y-coordinate of the center of the target in degrees relative to crosshair.
    double
    Y-coordinate of the center of the target in degrees relative to principal pixel.
    double
    Y-coordinate of the center of the target in pixels relative to crosshair.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new Barcode Result
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the barcode family type.

    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
      Gets the decoded data content of the barcode
    • tx_pixels

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

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

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

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

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

      public double ty_nocrosshair
      Y-coordinate of the center of the target in degrees relative to principal pixel. Positive-right, 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.....]. Must be enabled in output tab
  • Constructor Details

    • Barcode

      public Barcode()
      Creates a new Barcode Result
  • Method Details

    • getFamily

      public String getFamily()
      Gets the barcode family type.
      Returns:
      Barcode family type (e.g. "QR", "DataMatrix", etc.)