code: def __init__(self, args):
      if not args.show_log:
          logger.setLevel(logging.INFO)
  
      self.text_detector = predict_det.TextDetector(args)
      self.text_recognizer = predict_rec.TextRecognizer(args)
      self.use_angle_cls = args.use_angle_cls
      self.drop_score = args.drop_score
      if self.use_angle_cls:
          self.text_classifier = predict_cls.TextClassifier(args)
  
      self.args = args
      self.crop_image_res_index = 0
  
imports: import os
  import sys
  import subprocess
  import cv2
  import copy
  import numpy
  import json
  import time
  import logging
  from PIL import Image
  import tools.infer.utility
  import tools.infer.predict_rec
  import tools.infer.predict_det
  import tools.infer.predict_cls
  from ppocr.utils.utility import get_image_file_list, check_and_read
  from ppocr.utils.logging import get_logger
  from tools.infer.utility import draw_ocr_box_txt, get_rotate_crop_image, get_minarea_rect_crop
label_desc: Use image node_id 1 to create a new TextSystem object from inherited base classes: object with example: obj = TextSystem(args)