class_docstr: Options for the image classifier task.
  
  Attributes:
    base_options: Base options for the image classifier task.
    running_mode: The running mode of the task. Default to the image mode. Image
      classifier task has three running modes: 1) The image mode for classifying
      objects on single image inputs. 2) The video mode for classifying objects
      on the decoded frames of a video. 3) The live stream mode for classifying
      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,
      classification 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, classification
      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.
class_docstr_tok: ["Options","for","the","image","classifier","task",".","Attributes",":","base_options",":","Base","options","for","the","image","classifier","task",".","running_mode",":","The","running","mode","of","the","task",".","Default","to","the","image","mode",".","Image","classifier","task","has","three","running","modes",":","1",")","The","image","mode","for","classifying","objects","on","single","image","inputs",".","2",")","The","video","mode","for","classifying","objects","on","the","decoded","frames","of","a","video",".","3",")","The","live","stream","mode","for","classifying","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",",","classification","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",",","classification","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","."]
docstr: Generates an ImageClassifierOptions protobuf object.
docstr_tok: ["Generates","an","ImageClassifierOptions","protobuf","object","."]
code: def to_pb2(self) -> _ImageClassifierGraphOptionsProto:
      """Generates an ImageClassifierOptions protobuf object."""
      base_options_proto = self.base_options.to_pb2()
      base_options_proto.use_stream_mode = (
          False if self.running_mode == _RunningMode.IMAGE else True
      )
      classifier_options_proto = _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,
      )
  
      return _ImageClassifierGraphOptionsProto(
          base_options=base_options_proto,
          classifier_options=classifier_options_proto,
      )
  
imports: import dataclasses
  from typing import Callable, Mapping, Optional, List
  from mediapipe.python import packet_creator
  from mediapipe.python import packet_getter
  from mediapipe.python._framework_bindings import image
  from mediapipe.python._framework_bindings import packet
  from mediapipe.tasks.cc.components.containers.proto import classifications_pb2
  from mediapipe.tasks.cc.components.processors.proto import classifier_options_pb2
  from mediapipe.tasks.cc.vision.image_classifier.proto import image_classifier_graph_options_pb2
  from mediapipe.tasks.python.components.containers import classification_result
  from mediapipe.tasks.python.components.containers import rect
  from mediapipe.tasks.python.core import base_options
  from mediapipe.tasks.python.core import task_info
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
  from mediapipe.tasks.python.vision.core import base_vision_task_api
  from mediapipe.tasks.python.vision.core import image_processing_options
  from mediapipe.tasks.python.vision.core import vision_task_running_mode
label_desc: Use image node_id 1 for calling the ImageClassifierOptions obj's underlying member method code with example usage: obj.to_pb2() and returns: _ImageClassifierGraphOptionsProto