code: def __init__(self, args):
      self.cls_image_shape = [
          int(v) for v in args.cls_image_shape.split(",")
      ]
      self.cls_batch_num = args.cls_batch_num
      self.cls_thresh = args.cls_thresh
      postprocess_params = {
          "name": "ClsPostProcess",
          "label_list": args.label_list,
      }
      self.postprocess_op = build_post_process(postprocess_params)
      (
          self.predictor,
          self.input_tensor,
          self.output_tensors,
          _,
      ) = utility.create_predictor(args, "cls", logger)
      self.use_onnx = args.use_onnx
  
file_path: PaddleOCR/tools/infer/predict_cls.py
imports: import os
  import sys
  import cv2
  import copy
  import numpy
  import math
  import time
  import traceback
  import tools.infer.utility
  from ppocr.postprocess import build_post_process
  from ppocr.utils.logging import get_logger
  from ppocr.utils.utility import get_image_file_list, check_and_read
label_desc: Use image node_id 1 to create a new TextClassifier object from inherited base classes: object with example: obj = TextClassifier(args)