The running mode of the task. Default to the image mode.
Object detector task has three running modes: 1) The image mode for
detecting objects on single image inputs. 2) The video mode for detecting
objects on the decoded frames of a video. 3) The live stream mode for
detecting objects on a live stream of input data, such as from camera.
display_names_locale
The locale to use for display names specified through
the TFLite Model Metadata.
max_results
The maximum number of top-scored classification results to
return.
score_threshold
Overrides the ones provided in the model metadata. Results
below this value are rejected.
category_allowlist
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
category_denylist.
category_denylist
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
category_allowlist.
result_callback
The user-defined result callback for processing live stream
data. The result callback should only be specified when the running mode
is set to the live stream mode.
[[["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-01 UTC."],[],[],null,["# mp.tasks.vision.ObjectDetectorOptions\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/mediapipe/blob/master/mediapipe/tasks/python/vision/object_detector.py#L52-L107) |\n\nOptions for the object detector task. \n\n mp.tasks.vision.ObjectDetectorOptions(\n base_options: ../../../mp/tasks/BaseOptions,\n running_mode: ../../../mp/tasks/vision/RunningMode = ../../../mp/tasks/vision/FaceDetectorOptions#running_mode,\n display_names_locale: Optional[str] = None,\n max_results: Optional[int] = None,\n score_threshold: Optional[float] = None,\n category_allowlist: Optional[List[str]] = None,\n category_denylist: Optional[List[str]] = None,\n result_callback: Optional[Callable[[ObjectDetectorResult, image_module.Image, int], None]] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `base_options` | Base options for the object detector task. |\n| `running_mode` | The running mode of the task. Default to the image mode. Object detector task has three running modes: 1) The image mode for detecting objects on single image inputs. 2) The video mode for detecting objects on the decoded frames of a video. 3) The live stream mode for detecting objects on a live stream of input data, such as from camera. |\n| `display_names_locale` | The locale to use for display names specified through the TFLite Model Metadata. |\n| `max_results` | The maximum number of top-scored classification results to return. |\n| `score_threshold` | Overrides the ones provided in the model metadata. Results below this value are rejected. |\n| `category_allowlist` | 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 `category_denylist`. |\n| `category_denylist` | 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 `category_allowlist`. |\n| `result_callback` | The user-defined result callback for processing live stream data. The result callback should only be specified when the running mode is set to the live stream mode. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|----------------------|------------------------------------------|\n| category_allowlist | `None` |\n| category_denylist | `None` |\n| display_names_locale | `None` |\n| max_results | `None` |\n| result_callback | `None` |\n| running_mode | `\u003cVisionTaskRunningMode.IMAGE: 'IMAGE'\u003e` |\n| score_threshold | `None` |\n\n\u003cbr /\u003e"]]