code: def init_args():
      import argparse
  
      parser = argparse.ArgumentParser(description="DBNet.paddle")
      parser.add_argument(
          "--model_path", default=r"model_best.pth", type=str
      )
      parser.add_argument(
          "--input_folder",
          default="./test/input",
          type=str,
          help="img path for predict",
      )
      parser.add_argument(
          "--output_folder",
          default="./test/output",
          type=str,
          help="img path for output",
      )
      parser.add_argument(
          "--gpu", default=0, type=int, help="gpu for inference"
      )
      parser.add_argument(
          "--thre",
          default=0.3,
          type=float,
          help="the thresh of post_processing",
      )
      parser.add_argument(
          "--polygon", action="store_true", help="output polygon or box"
      )
      parser.add_argument(
          "--show", action="store_true", help="show result"
      )
      parser.add_argument(
          "--save_result",
          action="store_true",
          help="save box and score to txt file",
      )
      args = parser.parse_args()
      return args
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/tools/predict.py
imports: import os
  import sys
  import pathlib
  import time
  import cv2
  import paddle
  from data_loader import get_transforms
  from models import build_model
  from post_processing import get_post_processing
label_desc: Use image node_id 3 for calling a global function with example usage: init_args() and returns: args