Skip to main content

ARDK for Android/com.nianticlabs.ardk.awareness.semantics/SemanticsResult

SemanticsResult

[androidJvm]
class SemanticsResult(val frameId: Long, val timestampMs: Long, val pose: Pose, val intrinsics: CameraIntrinsics, val image: Image)

Represents the result of the semantics processor.

This class encapsulates all the data returned from a processed semantics frame, including the semantic image data, camera pose, intrinsics, and timing information.

Constructors​

SemanticsResult[androidJvm]
constructor(frameId: Long, timestampMs: Long, pose: Pose, intrinsics: CameraIntrinsics, image: Image)

Properties​

NameSummary
frameId[androidJvm]
val frameId: Long
The unique identifier of the AR frame that this result was generated from
image[androidJvm]
val image: Image
The semantics result image (confidence, packed channels, or suppression mask)
intrinsics[androidJvm]
val intrinsics: CameraIntrinsics
The camera intrinsics used for this frame
pose[androidJvm]
val pose: Pose
The camera pose of the AR frame that this result was generated from
timestampMs[androidJvm]
val timestampMs: Long
The timestamp of the AR frame in milliseconds