code: def get_char_lines(txt_root_path):
      """
      desc:get corpus line
      """
      txt_files = os.listdir(txt_root_path)
      char_lines = []
      for txt in txt_files:
          f = open(
              os.path.join(txt_root_path, txt),
              mode="r",
              encoding="utf-8",
          )
          lines = f.readlines()
          f.close()
          for line in lines:
              char_lines.append(line.strip())
          return char_lines
  
file_path: PaddleOCR/applications/PCB字符识别/gen_data/gen.py
imports: import os
  import random
  from PIL import Image, ImageDraw, ImageFont
  import json
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: get_char_lines(txt_root_path) and returns: char_lines