NsdkCamera
Camera view over the current frame (live or playback). Mirrors ARCore [com.google.ar.core.Camera] so callers can use one API for both live and playback. Use [pose] and [getDisplayOrientedPose] for overlays, VPS2, etc. Use [imageIntrinsics] for CPU image coordinates, [trackingState] / [getTrackingFailureReason] for tracking status, and [getViewMatrix] for rendering. Use [backing] when you need ARCamera- or PlaybackCamera-specific APIs.
Declaration
sealed class NsdkCameraProperties
| Name | Type | Summary |
|---|---|---|
| abstract backing | Backing | The underlying camera (live or playback). Switch on this for type-specific APIs. |
| abstract imageIntrinsics | CameraIntrinsics | Unrotated camera intrinsics for the CPU image. Matches ARCore [com.google.ar.core.Camera.getImageIntrinsics]. |
| abstract pose | Pose | Physical camera pose in world space. Matches ARCore [com.google.ar.core.Camera.getPose]. |
| abstract trackingState | TrackingState | Current motion tracking state. Matches ARCore [com.google.ar.core.Camera.getTrackingState]. |
Functions
| Name | Type | Summary |
|---|---|---|
| abstract getDisplayOrientedPose | Pose | Display-oriented camera pose for overlays and UI. Matches ARCore [com.google.ar.core.Camera.getDisplayOrientedPose]. |
| abstract getTrackingFailureReason | TrackingFailureReason | Reason tracking is paused, or [TrackingFailureReason.NONE] when tracking. Matches ARCore [com.google.ar.core.Camera.getTrackingFailureReason]. |
| abstract getViewMatrix | FloatArray | View matrix (column-major, 16 floats) for this frame. Matches ARCore [com.google.ar.core.Camera.getViewMatrix]. |