DepthSession
↳ extends SessionBase
Creates a Depth session. Depth enables your app to get estimated depth information from passed in camera data. This must be called before using any other Depth functionality.
Declaration
class DepthSessionProperties
| Name | Type | Summary |
|---|---|---|
| ardkHandle | Long | - |
| depthUpdates | Flow<NSDKResult<DepthBuffer, AwarenessStatus>> | Flow of depth updates. This is the primary way to receive depth updates in Kotlin. |
| pollingIntervalMs | Long | - |
Functions
| Name | Type | Summary |
|---|---|---|
| configure | void | Configures depth settings and parameters. This sets up depth configuration including frame rate, and model the feature is using. Must be called after [create] but before [start]. |
| latestDepth | NSDKResult<DepthBuffer, AwarenessStatus> | Get the latest output from the depth feature This retrieves the latest depth buffer represented as an image, along side other relevant information such as the camera pose, intrinsics, and min max disparity. |
| latestDepthImageParams | NSDKResult<AwarenessImageParams, AwarenessStatus> | Get the latest image params from the depth feature This retrieves the latest camera parameters used in the depth calculations. Includes the camera extrinsics, intrinsics, and image width and height. |
| onDestroy | void | - |
| onInit | void | - |
| start | void | Starts the depth process. This begins generating depth information from passed in camera data. |
| stop | void | Stops the depth process. This halts depth processing. You can restart depth later with [start]. |