code: def keypoint_detection(
      self,
      images=None,
      paths=None,
      batch_size=1,
      output_dir="output",
      visualization=False,
  ):
      # 加载数据处理器
      processor = Processor(images, paths, batch_size, output_dir)
  
      # 模型预测
      outputs = []
      for input_data in processor.input_datas:
          output = self.model(input_data)
          outputs.append(output)
      outputs = np.concatenate(outputs, 0)
  
      # 结果后处理
      results = processor.postprocess(outputs, visualization)
  
      # 返回结果
      return results
  
file_path: PaddleHub/modules/image/keypoint_detection/hand_pose_localization/module.py
imports: import os
  import numpy
  from paddlehub.module.module import moduleinfo, serving
  from .model import InferenceModel
  from .processor import base64_to_cv2, Processor
label_desc: Use image node_id 2 for calling the Hand_Pose_Localization obj's underlying member method code with example usage: obj.keypoint_detection(images, paths, batch_size, output_dir, visualization) and returns: results