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
@NonNull String

Returns a string representation of State for debugging.

Public methods

equals

public boolean equals(Object other)

getCenterPose

Added in 1.0.0-beta02
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-beta02
public final @NonNull String getData()

the content of the detected QR code

getExtents

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

the dimensions of the bounding box of the detected QR code

getOwner

Added in 1.0.0-beta02
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()

toString

public @NonNull String toString()

Returns a string representation of State for debugging.

Note: Not intended for production use.