code: def __init__(
      self, images=None, paths=None, batch_size=1, output_dir="output"
  ):
      # 变量设置
      self.num_points = 21
      self.inHeight = 368
      self.threshold = 0.1
      self.point_pairs = [
          [0, 1],
          [1, 2],
          [2, 3],
          [3, 4],
          [0, 5],
          [5, 6],
          [6, 7],
          [7, 8],
          [0, 9],
          [9, 10],
          [10, 11],
          [11, 12],
          [0, 13],
          [13, 14],
          [14, 15],
          [15, 16],
          [0, 17],
          [17, 18],
          [18, 19],
          [19, 20],
      ]
  
      self.images = images
      self.paths = paths
      self.batch_size = batch_size
      self.output_dir = output_dir
  
      # 获取原始输入数据
      self.datas = self.load_datas()
  
      # 对原始输入数据进行预处理
      self.input_datas = self.preprocess()
  
file_path: PaddleHub/modules/image/keypoint_detection/hand_pose_localization/processor.py
imports: import os
  import cv2
  import time
  import base64
  import numpy
label_desc: Use image node_id 1 to create a new Processor object  with example: obj = Processor(images, paths, batch_size, output_dir)