class_docstr: SVT Text Detection Parser.
  
  Args:
      data_root (str): The root of the dataset. Defaults to None.
      nproc (int): The number of processes to parse the annotation. Defaults
          to 1.
docstr: Load annotation from SVT xml format file. See annotation example in
  dataset_zoo/svt/sample_anno.md.
  
  Args:
      file_path (str): The path of the annotation file.
  
  Returns:
      Tuple[str, List]: The image name and the annotation list.
  
  Yields:
      Iterator[Tuple[str, List]]: The image name and the annotation list.
code: def loader(self, file_path: str) -> Tuple[str, List]:
      """Load annotation from SVT xml format file. See annotation example in
      dataset_zoo/svt/sample_anno.md.
  
      Args:
          file_path (str): The path of the annotation file.
  
      Returns:
          Tuple[str, List]: The image name and the annotation list.
  
      Yields:
          Iterator[Tuple[str, List]]: The image name and the annotation list.
      """
      tree = ET.parse(file_path)
      root = tree.getroot()
      for image in root.findall("image"):
          image_name = image.find("imageName").text
          instances = list()
          for rectangle in image.find("taggedRectangles"):
              x = int(rectangle.get("x"))
              y = int(rectangle.get("y"))
              w = int(rectangle.get("width"))
              h = int(rectangle.get("height"))
              # The text annotation of this dataset is not case sensitive.
              # All of the texts were labeled as upper case. We convert them
              # to lower case for convenience.
              text = rectangle.find("tag").text.lower()
              instances.append(
                  dict(
                      poly=[x, y, x + w, y, x + w, y + h, x, y + h],
                      text=text,
                      ignore=False,
                  )
              )
          yield image_name, instances
  
file_path: mmocr/mmocr/datasets/preparers/parsers/svt_parser.py
imports: import os.path
  import xml.etree.ElementTree
  from typing import List, Tuple
  from mmocr.registry import DATA_PARSERS
  from .base import BaseParser
label_desc: Use image node_id 2 for calling the SVTTextDetAnnParser obj's underlying member method code with example usage: obj.loader(file_path) without return types