QrCode.State


public final class QrCode.State implements Trackable.State


The representation of the current state of a QrCode. The centerPose is the Pose of the center of the detected QR code's bounding box in the world coordinate space. A QrCode is represented as a finite 2D bounding box around a centerPose.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Pose

The pose of the center of the QR code.

final @NonNull String

The content of the detected QR code

final @NonNull FloatSize2d

The dimensions of the bounding box of the detected QR code

final @NonNull QrCode

self-reference to the object that owns this state

@NonNull TrackingState

Whether this QR code is being tracked or not

int

Public methods

equals

public boolean equals(Object other)

getCenterPose

Added in 1.0.0-alpha15
public final @NonNull Pose getCenterPose()

The pose of the center of the QR code. The +Y axis relative to the centerPose is equivalent to the normal of the QrCode

getData

Added in 1.0.0-alpha15
public final @NonNull String getData()

The content of the detected QR code

getExtents

Added in 1.0.0-alpha15
public final @NonNull FloatSize2d getExtents()

The dimensions of the bounding box of the detected QR code

getOwner

Added in 1.0.0-alpha15
public final @NonNull QrCode getOwner()

self-reference to the object that owns this state

getTrackingState

public @NonNull TrackingState getTrackingState()

Whether this QR code is being tracked or not

hashCode

public int hashCode()