Skip to main content

STRUCT

ArdkObjectDetectionSession.Configuration

struct Configuration

Configuration structure for the object detection session.

Properties​

frameRate​

public var frameRate: UInt32

Inference frequency

framesUntilSeen​

public var framesUntilSeen: UInt32

Number of consecutive frames and object must be detected in order to be considered "seen"

framesUntilDiscarded​

public var framesUntilDiscarded: UInt32

Number of consecutive frames an object can be missing before it is discarded from detection results

Methods​

init()​

public init()

Initializes a new object detection session configuration with default settings.

init(frameRate:framesUntilSeen:framesUntilDiscarded:)​

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

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.

Parameters​

NameDescription
frameRateThe number of frames per second to process for detection.
framesUntilSeenThe number of consecutive frames an object must be detected before it is considered “seen”.
framesUntilDiscardedThe number of consecutive frames an object can be missing before it is discarded from detection results.