CameraSample
A snapshot of camera sensor data for a single frame.
Declaration
data class CameraSampleConstructors
constructor(imagePlanes: Array<Image.Plane>, imageWidth: Int, imageHeight: Int, imageFormat: Int, intrinsics: CameraIntrinsics, pose: Pose, orientation: Orientation, timestampMs: Long)
Parameters
| Name | Type | Summary |
|---|---|---|
| imagePlanes | Array<Image.Plane> | - |
| imageWidth | Int | - |
| imageHeight | Int | - |
| imageFormat | Int | - |
| intrinsics | CameraIntrinsics | - |
| pose | Pose | - |
| orientation | Orientation | - |
| timestampMs | Long | - |
Properties
| Name | Type | Summary |
|---|---|---|
| imageFormat | Int | Format constant (e.g. [android.graphics.ImageFormat.YUV_420_888]). |
| imageHeight | Int | Height of the camera image in pixels. |
| imagePlanes | Array<Image.Plane> | YUV_420_888 image planes extracted from the camera image. |
| imageWidth | Int | Width of the camera image in pixels. |
| intrinsics | CameraIntrinsics | Camera calibration parameters. |
| orientation | Orientation | Current device screen orientation. |
| pose | Pose | Camera pose in world coordinates. |
| timestampMs | Long | Camera capture timestamp in monotonic milliseconds (e.g. since device boot), e.g. ARCore Frame.getTimestamp() / 1_000_000 — not wall-clock time since epoch. |