Configuration
Configuration structure for the object detection session.
Declaration
struct ConfigurationConstructors
Constructor
init()
Summary
Overload
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
| Name | Type | Summary |
|---|---|---|
| var frameRate | UInt32 | Inference frequency |
| var framesUntilDiscarded | UInt32 | Number of consecutive frames an object can be missing before it is discarded from detection results |
| var framesUntilSeen | UInt32 | Number of consecutive frames and object must be detected in order to be considered "seen" |
Initializes a new object detection session configuration with default settings.