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: Generates a ClassifierOptions protobuf object.
docstr_tok: ["Generates","a","ClassifierOptions","protobuf","object","."]
code: def to_pb2(self) -> _ClassifierOptionsProto:
      """Generates a ClassifierOptions protobuf object."""
      return _ClassifierOptionsProto(
          score_threshold=self.score_threshold,
          category_allowlist=self.category_allowlist,
          category_denylist=self.category_denylist,
          display_names_locale=self.display_names_locale,
          max_results=self.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 1 for calling the ClassifierOptions obj's underlying member method code with example usage: obj.to_pb2() and returns: _ClassifierOptionsProto