ARDK for Android/com.nianticlabs.ardk.objectdetection/ObjectDetectionSession
ObjectDetectionSession
class ObjectDetectionSession : SessionBase<ObjectDetectionSession>
Creates and manages an instance of the Object Detection ARDK feature.
Object Detection classifies objects in the camera image. Use start and stop to control processing, and configure to adjust inference settings like frame rate and filtering.
See also
| ObjectDetectionSession.start |
| ObjectDetectionSession.stop |
| ObjectDetectionSession.configure |
Functions
| Name | Summary |
|---|---|
| acquire | [androidJvm] @Synchronized fun acquire(): ObjectDetectionSession |
| calculateViewportMapping | [androidJvm] fun calculateViewportMapping(viewportSize: Size, orientation: Orientation): Matrix? Compute a transform Matrix that maps detection boxes from model frame coordinates into viewport coordinates. |
| close | [androidJvm] @Synchronized open override fun close() |
| configure | [androidJvm] fun configure(config: ObjectDetectionConfig) Configures the object detection feature with provided parameters. |
| featureStatus | [androidJvm] fun featureStatus(): FeatureStatus Reports errors that have occurred with processes running inside this feature. |
| getClassNames | [androidJvm] fun getClassNames(): ARDKResult<Array<String>, AwarenessStatus> Query the set of possible object detection class names. |
| getLatestDetections | [androidJvm] fun getLatestDetections(): ARDKResult<ObjectDetectionResult, AwarenessStatus> Get the latest object detection results. |
| getMetadata | [androidJvm] fun getMetadata(): ARDKResult<ObjectDetectionMetadata, AwarenessStatus> Get the metadata for the object detection feature. |
| start | [androidJvm] fun start() Starts object detection. |
| stop | [androidJvm] fun stop() Stops object detection. |