class_docstr: Options for classification processor.
  
  Attributes:
    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`.
docstr: Creates a `ClassifierOptions` object from the given protobuf object.
docstr_tok: ["Creates","a","`","ClassifierOptions","`","object","from","the","given","protobuf","object","."]
code: def create_from_pb2(
      cls, pb2_obj: _ClassifierOptionsProto
  ) -> "ClassifierOptions":
      """Creates a `ClassifierOptions` object from the given protobuf object."""
      return ClassifierOptions(
          score_threshold=pb2_obj.score_threshold,
          category_allowlist=[
              str(name) for name in pb2_obj.category_allowlist
          ],
          category_denylist=[
              str(name) for name in pb2_obj.category_denylist
          ],
          display_names_locale=pb2_obj.display_names_locale,
          max_results=pb2_obj.max_results,
      )
  
file_path: mediapipe/mediapipe/tasks/python/components/processors/classifier_options.py
imports: import dataclasses
  from typing import Any, List, Optional
  from mediapipe.tasks.cc.components.processors.proto import classifier_options_pb2
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
label_desc: Use image node_id 2 for calling the ClassifierOptions obj's underlying member method code with example usage: obj.create_from_pb2(cls, pb2_obj) and returns: ClassifierOptions