class_docstr: Represents the list of detected objects.
  
  Attributes:
    detections: A list of `Detection` objects.
class_docstr_tok: ["Represents","the","list","of","detected","objects",".","Attributes",":","detections",":","A","list","of","`","Detection","`","objects","."]
docstr: Creates a `DetectionResult` object from the given protobuf object.
docstr_tok: ["Creates","a","`","DetectionResult","`","object","from","the","given","protobuf","object","."]
code: def create_from_pb2(
      cls, pb2_obj: _DetectionListProto
  ) -> "DetectionResult":
      """Creates a `DetectionResult` object from the given protobuf object."""
      return DetectionResult(
          detections=[
              Detection.create_from_pb2(detection)
              for detection in pb2_obj.detection
          ]
      )
  
file_path: mediapipe/mediapipe/tasks/python/components/containers/detections.py
imports: import dataclasses
  from typing import Any, List, Optional
  from mediapipe.framework.formats import detection_pb2
  from mediapipe.framework.formats import location_data_pb2
  from mediapipe.tasks.python.components.containers import bounding_box
  from mediapipe.tasks.python.components.containers import category
  from mediapipe.tasks.python.components.containers import keypoint
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
label_desc: Use image node_id 2 for calling the DetectionResult obj's underlying member method code with example usage: obj.create_from_pb2(cls, pb2_obj) and returns: DetectionResult