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_name_allowlist
If non-empty, classifications whose class name is
not in this set will be filtered out. Duplicate or unknown class names are
ignored. Mutually exclusive with category_name_denylist.
category_name_denylist
If non-empty, classifications whose class name is in
this set will be filtered out. Duplicate or unknown class names are
ignored. Mutually exclusive with category_name_allowlist.
[[["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,["# tflite_support.task.processor.DetectionOptions\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/detection_options.proto) |\n\nOptions for object detection processor. \n\n tflite_support.task.processor.DetectionOptions(\n score_threshold: Optional[float] = None,\n category_name_allowlist: Optional[List[str]] = None,\n category_name_denylist: Optional[List[str]] = None,\n display_names_locale: Optional[str] = None,\n max_results: Optional[int] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\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_name_allowlist` | If non-empty, classifications whose class name is not in this set will be filtered out. Duplicate or unknown class names are ignored. Mutually exclusive with `category_name_denylist`. |\n| `category_name_denylist` | If non-empty, classifications whose class name is in this set will be filtered out. Duplicate or unknown class names are ignored. Mutually exclusive with `category_name_allowlist`. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `create_from_pb2`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/detection_options.proto) \n\n @classmethod\n create_from_pb2(\n pb2_obj: _DetectionOptionsProto\n ) -\u003e 'DetectionOptions'\n\nCreates a `DetectionOptions` object from the given protobuf object.\n\n### `to_pb2`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/detection_options.proto) \n\n to_pb2() -\u003e _DetectionOptionsProto\n\nGenerates a protobuf object to pass to the C++ layer.\n\n### `__eq__`\n\n[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/python/task/processor/proto/detection_options.proto) \n\n __eq__(\n other: Any\n ) -\u003e bool\n\nChecks if this object is equal to the given object.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|---------|---------------------------------|\n| `other` | The object to be compared with. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| True if the objects are equal. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|-------------------------|--------|\n| category_name_allowlist | `None` |\n| category_name_denylist | `None` |\n| display_names_locale | `None` |\n| max_results | `None` |\n| score_threshold | `None` |\n\n\u003cbr /\u003e"]]