code: def load_txt_info(gt_file, img_info):
      """Collect the annotation information.
  
      The annotation format is as the following:
      x1,y1,x2,y2,x3,y3,x4,y4,text
      118,15,147,15,148,46,118,46,LƯỢNG
      149,9,165,9,165,43,150,43,TỐT
      167,9,180,9,179,43,167,42,ĐỂ
      181,12,193,12,193,43,181,43,CÓ
      195,13,215,14,215,46,196,46,VIỆC
      217,13,237,14,239,47,217,46,LÀM,
  
      Args:
          gt_file (str): The path to ground-truth
          img_info (dict): The dict of the img and annotation information
  
      Returns:
          img_info (dict): The dict of the img and annotation information
      """
  
      with open(gt_file, encoding="utf-8") as f:
          anno_info = []
          for line in f:
              line = line.strip("\n")
              ann = line.split(",")
              bbox = ann[0:8]
              word = line[len(",".join(bbox)) + 1 :]
              bbox = [int(coord) for coord in bbox]
              # Ignore hard samples
              if word == "###":
                  continue
              assert len(bbox) == 8
              anno = dict(bbox=bbox, word=word)
              anno_info.append(anno)
  
      img_info.update(anno_info=anno_info)
  
      return img_info
  
file_path: mmocr/tools/dataset_converters/textrecog/vintext_converter.py
imports: import argparse
  import os
  import os.path
  import mmcv
  import mmengine
  from mmocr.utils import crop_img, dump_ocr_data
label_desc: Use image node_id 4 for calling a global function with example usage: load_txt_info(gt_file, img_info) and returns: img_info