An object that confirms to ObjectDetectorLiveStreamDelegate protocol. This object must
implement objectDetector(_:didFinishDetectionWithResult:timestampInMilliseconds:error:) to
receive the results of performing asynchronous object detection on images (i.e, when
runningMode = .liveStream).
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nObjectDetectorOptions\n=====================\n\n class ObjectDetectorOptions : ../Classes/TaskOptions.html, NSCopying\n\nOptions for setting up a [ObjectDetector](../Classes/ObjectDetector.html).\n- `\n ``\n ``\n `\n\n ### [runningMode](#/c:objc(cs)MPPObjectDetectorOptions(py)runningMode)\n\n `\n ` \n Running mode of the object detector task. Defaults to [.image](../Constants.html#/c:MPPImage.h@MPPImageSourceTypeImage).\n [ObjectDetector](../Classes/ObjectDetector.html) can be created with one of the following running modes:\n 1. [.image](../Constants.html#/c:MPPImage.h@MPPImageSourceTypeImage): The mode for performing object detection on single image inputs.\n 2. `.video`: The mode for performing object detection on the decoded frames of a video.\n 3. `.liveStream`: The mode for performing object detection on a live stream of input data, such as from the camera. \n\n #### Declaration\n\n Swift \n\n var runningMode: ../Enums/RunningMode.html { get set }\n\n- `\n ``\n ``\n `\n\n ### [objectDetectorLiveStreamDelegate](#/c:objc(cs)MPPObjectDetectorOptions(py)objectDetectorLiveStreamDelegate)\n\n `\n ` \n An object that confirms to [ObjectDetectorLiveStreamDelegate](../Protocols/ObjectDetectorLiveStreamDelegate.html) protocol. This object must\n implement `objectDetector(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)` to\n receive the results of performing asynchronous object detection on images (i.e, when\n [runningMode](../Classes/ObjectDetectorOptions.html#/c:objc(cs)MPPObjectDetectorOptions(py)runningMode) = `.liveStream`). \n\n #### Declaration\n\n Swift \n\n weak var objectDetectorLiveStreamDelegate: ../Protocols/ObjectDetectorLiveStreamDelegate.html? { get set }\n\n- `\n ``\n ``\n `\n\n ### [displayNamesLocale](#/c:objc(cs)MPPObjectDetectorOptions(py)displayNamesLocale)\n\n `\n ` \n The locale to use for display names specified through the TFLite Model Metadata, if any. Defaults\n to English. \n\n #### Declaration\n\n Swift \n\n var displayNamesLocale: String { get set }\n\n- `\n ``\n ``\n `\n\n ### [maxResults](#/c:objc(cs)MPPObjectDetectorOptions(py)maxResults)\n\n `\n ` \n The maximum number of top-scored classification results to return. If \\\u003c 0, all available results\n will be returned. If 0, an invalid argument error is returned. \n\n #### Declaration\n\n Swift \n\n var maxResults: Int { get set }\n\n- `\n ``\n ``\n `\n\n ### [scoreThreshold](#/c:objc(cs)MPPObjectDetectorOptions(py)scoreThreshold)\n\n `\n ` \n Score threshold to override the one provided in the model metadata (if any). Results below this\n value are rejected. \n\n #### Declaration\n\n Swift \n\n var scoreThreshold: Float { get set }\n\n- `\n ``\n ``\n `\n\n ### [categoryAllowlist](#/c:objc(cs)MPPObjectDetectorOptions(py)categoryAllowlist)\n\n `\n ` \n The allowlist of category names. If non-empty, detection results whose category name is not in\n this set will be filtered out. Duplicate or unknown category names are ignored. Mutually\n exclusive with categoryDenylist. \n\n #### Declaration\n\n Swift \n\n var categoryAllowlist: [String] { get set }\n\n- `\n ``\n ``\n `\n\n ### [categoryDenylist](#/c:objc(cs)MPPObjectDetectorOptions(py)categoryDenylist)\n\n `\n ` \n The denylist of category names. If non-empty, detection results whose category name is in this\n set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive\n with categoryAllowlist. \n\n #### Declaration\n\n Swift \n\n var categoryDenylist: [String] { get set }"]]