ObjectDetectorOptions
class ObjectDetectorOptions : TaskOptions, NSCopyingOptions for setting up a ObjectDetector.
- 
                  
                  Running mode of the object detector task. Defaults to .image.ObjectDetectorcan be created with one of the following running modes:- .image: The mode for performing object detection on single image inputs.
- .video: The mode for performing object detection on the decoded frames of a video.
- .liveStream: The mode for performing object detection on a live stream of input data, such as from the camera.
 DeclarationSwift var runningMode: RunningMode { get set }
- 
                  
                  An object that confirms to ObjectDetectorLiveStreamDelegateprotocol. This object must implementobjectDetector(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)to receive the results of performing asynchronous object detection on images (i.e, whenrunningMode=.liveStream).DeclarationSwift weak var objectDetectorLiveStreamDelegate: ObjectDetectorLiveStreamDelegate? { get set }
- 
                  
                  The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults to English. DeclarationSwift var displayNamesLocale: String { get set }
- 
                  
                  The maximum number of top-scored classification results to return. If < 0, all available results will be returned. If 0, an invalid argument error is returned. DeclarationSwift var maxResults: Int { get set }
- 
                  
                  Score threshold to override the one provided in the model metadata (if any). Results below this value are rejected. DeclarationSwift var scoreThreshold: Float { get set }
- 
                  
                  The allowlist of category names. If non-empty, detection results whose category name is not in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with categoryDenylist. DeclarationSwift var categoryAllowlist: [String] { get set }
- 
                  
                  The denylist of category names. If non-empty, detection results whose category name is in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with categoryAllowlist. DeclarationSwift var categoryDenylist: [String] { get set }