code: def read_params():
      cfg = Config()
  
      # params for text recognizer
      cfg.rec_algorithm = "CRNN"
      cfg.rec_model_dir = "./inference/ch_PP-OCRv3_rec_infer/"
  
      cfg.rec_image_shape = "3, 48, 320"
      cfg.rec_batch_num = 6
      cfg.max_text_length = 25
  
      cfg.rec_char_dict_path = "./ppocr/utils/ppocr_keys_v1.txt"
      cfg.use_space_char = True
  
      cfg.use_pdserving = False
      cfg.use_tensorrt = False
  
      return cfg
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
label_desc: Use image node_id 1 for calling a global function with example usage: read_params() and returns: cfg