Skip to main content
API Reference SwiftyNsdk NsdkObjectDetectionSession

Configuration

Configuration structure for the object detection session.

Declaration

struct Configuration

Constructors

Constructor

init()

Summary

Initializes a new object detection session configuration with default settings.


Overload

init(frameRate: UInt32, framesUntilSeen: UInt32, framesUntilDiscarded: UInt32)

Summary

Initializes a new object detection session configuration with custom settings.
- Parameters:
- frameRate: The number of frames per second to process for detection.
- framesUntilSeen: The number of consecutive frames an object must be detected
before it is considered "seen".
- framesUntilDiscarded: The number of consecutive frames an object can be missing
before it is discarded from detection results.
framesUntilSeen and framesUntilDiscarded help stabilize detection results,
preventing objects from flickering in and out of view.


Properties

NameTypeSummary
var frameRateUInt32
Inference frequency
var framesUntilDiscardedUInt32
Number of consecutive frames an object can be missing before it is discarded
from detection results
var framesUntilSeenUInt32
Number of consecutive frames and object must be detected in order to be considered "seen"