class_docstr: Object detector options metadata.
docstr: Creates the image segmenter options metadata.
  
  Returns:
    A Flatbuffers Python object of the custom metadata including object
    detector options metadata.
docstr_tok: ["Creates","the","image","segmenter","options","metadata",".","Returns",":","A","Flatbuffers","Python","object","of","the","custom","metadata","including","object","detector","options","metadata","."]
code: def create_metadata(self) -> _metadata_fb.CustomMetadataT:
      """Creates the image segmenter options metadata.
  
      Returns:
        A Flatbuffers Python object of the custom metadata including object
        detector options metadata.
      """
      detector_options = _detector_metadata_fb.ObjectDetectorOptionsT()
  
      # Set ssd_anchors_options.
      ssd_anchors_options = _detector_metadata_fb.SsdAnchorsOptionsT()
      fixed_anchors_schema = _detector_metadata_fb.FixedAnchorsSchemaT()
      fixed_anchors_schema.anchors = []
      for (
          anchor
      ) in self.ssd_anchors_options.fixed_anchors_schema.anchors:
          anchor_t = _detector_metadata_fb.FixedAnchorT()
          anchor_t.xCenter = anchor.x_center
          anchor_t.yCenter = anchor.y_center
          anchor_t.width = anchor.width
          anchor_t.height = anchor.height
          fixed_anchors_schema.anchors.append(anchor_t)
      ssd_anchors_options.fixedAnchorsSchema = fixed_anchors_schema
      detector_options.ssdAnchorsOptions = ssd_anchors_options
  
      # Set tensors_decoding_options.
      tensors_decoding_options = (
          _detector_metadata_fb.TensorsDecodingOptionsT()
      )
      tensors_decoding_options.numClasses = (
          self.tensors_decoding_options.num_classes
      )
      tensors_decoding_options.numBoxes = (
          self.tensors_decoding_options.num_boxes
      )
      tensors_decoding_options.numCoords = (
          self.tensors_decoding_options.num_coords
      )
      tensors_decoding_options.keypointCoordOffset = (
          self.tensors_decoding_options.keypoint_coord_offset
      )
      tensors_decoding_options.numKeypoints = (
          self.tensors_decoding_options.num_keypoints
      )
      tensors_decoding_options.numValuesPerKeypoint = (
          self.tensors_decoding_options.num_values_per_keypoint
      )
      tensors_decoding_options.xScale = (
          self.tensors_decoding_options.x_scale
      )
      tensors_decoding_options.yScale = (
          self.tensors_decoding_options.y_scale
      )
      tensors_decoding_options.wScale = (
          self.tensors_decoding_options.w_scale
      )
      tensors_decoding_options.hScale = (
          self.tensors_decoding_options.h_scale
      )
      tensors_decoding_options.applyExponentialOnBoxSize = (
          self.tensors_decoding_options.apply_exponential_on_box_size
      )
      tensors_decoding_options.sigmoidScore = (
          self.tensors_decoding_options.sigmoid_score
      )
      detector_options.tensorsDecodingOptions = tensors_decoding_options
  
      # Get the object detector options flatbuffer.
      b = flatbuffers.Builder(0)
      b.Finish(detector_options.Pack(b), self._METADATA_FILE_IDENTIFIER)
      detector_options_buf = b.Output()
  
      # Add the object detector options flatbuffer in custom metadata.
      custom_metadata = _metadata_fb.CustomMetadataT()
      custom_metadata.name = self.name
      custom_metadata.data = detector_options_buf
      return custom_metadata
  
imports: import dataclasses
  from typing import List, Optional
  import flatbuffers
  from mediapipe.tasks.metadata import metadata_schema_py_generated
  from mediapipe.tasks.metadata import object_detector_metadata_schema_py_generated
  from mediapipe.tasks.python.metadata import metadata
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_info
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_writer
label_desc: Use image node_id 2 for calling the ObjectDetectorOptionsMd obj's underlying member method code with example usage: obj.create_metadata() and returns: custom_metadata