class_docstr: COCO-like Format Text Detection Parser.
  
  Args:
      data_root (str): The root path of the dataset. Defaults to None.
      nproc (int): The number of processes to parse the annotation. Defaults
          to 1.
      variant (str): Variant of COCO dataset, options are ['standard',
          'cocotext', 'textocr']. Defaults to 'standard'.
code: def __init__(
      self, split: str, nproc: int = 1, variant: str = "standard"
  ) -> None:
      super().__init__(nproc=nproc, split=split)
      assert variant in [
          "standard",
          "cocotext",
          "textocr",
      ], f"variant {variant} is not supported"
      self.variant = variant
  
file_path: mmocr/mmocr/datasets/preparers/parsers/coco_parser.py
imports: import os.path
  from typing import List
  from mmdet.datasets.api_wrappers import COCO
  from mmocr.datasets.preparers.parsers.base import BaseParser
  from mmocr.registry import DATA_PARSERS
label_desc: Use image node_id 1 to create a new COCOTextDetAnnParser object from inherited base classes: BaseParser with example: obj = COCOTextDetAnnParser(split, nproc, variant)