class_docstr: SCUT-CTW1500 dataset parser.
  
  Args:
      ignore (str): The text of the ignored instances. Defaults to
          '###'.
class_docstr_tok: ["SCUT-CTW1500","dataset","parser",".","Args",":","ignore","(","str",")",":","The","text","of","the","ignored","instances",".","Defaults","to","'","#","#","#","'","."]
docstr: Load the annotation of the SCUT-CTW dataset (test split).
  Args:
      anno_dir (str): Path to the annotation file.
  
  Returns:
      list[Dict]: List of instances.
docstr_tok: ["Load","the","annotation","of","the","SCUT-CTW","dataset","(","test","split",")",".","Args",":","anno_dir","(","str",")",":","Path","to","the","annotation","file",".","Returns",":","list","[","Dict","]",":","List","of","instances","."]
code: def load_txt_info(self, anno_dir: str) -> List:
      """Load the annotation of the SCUT-CTW dataset (test split).
      Args:
          anno_dir (str): Path to the annotation file.
  
      Returns:
          list[Dict]: List of instances.
      """
      instances = list()
      for line in list_from_file(anno_dir):
          # each line has one ploygen (n vetices), and one text.
          # e.g., 695,885,866,888,867,1146,696,1143,####Latin 9
          line = line.strip()
          strs = line.split(",")
          assert strs[28][0] == "#"
          xy = [int(x) for x in strs[0:28]]
          assert len(xy) == 28
          poly = np.array(xy).reshape(-1).tolist()
          text = strs[28][4:]
          instances.append(
              dict(poly=poly, text=text, ignore=text == self.ignore)
          )
      return instances
  
file_path: mmocr/mmocr/datasets/preparers/parsers/ctw1500_parser.py
imports: import xml.etree.ElementTree
  from typing import List, Tuple
  import numpy
  from mmocr.datasets.preparers.data_preparer import DATA_PARSERS
  from mmocr.datasets.preparers.parsers.base import BaseParser
  from mmocr.utils import list_from_file
label_desc: Use image node_id 3 for calling the CTW1500AnnParser obj's underlying member method code with example usage: obj.load_txt_info(anno_dir) and returns: instances