title: How to generate skeleton view using human pose estimation?
body: <p>I am trying to use human pose estimation through keras implementation. I am using this source <a href="https://github.com/michalfaber/keras_Realtime_Multi-Person_Pose_Estimation" rel="nofollow noreferrer">https://github.com/michalfaber/keras_Realtime_Multi-Person_Pose_Estimation</a>. My problem is how can I generate the skeleton view of the following image, the one on the left part? However, I can generate the one on the right part.</p>
  
  <p><a href="https://i.stack.imgur.com/sdwNy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sdwNy.jpg" alt="enter image description here"></a>
  ** Source Photograph taken from Pexels</p>
  
  <p>Below is the code I am using to achieve this.</p>
  
  <pre><code>    # vgg normalization (subtracting mean) on input images
      model = get_testing_model()
      model.load_weights(keras_weights_file)
  
      # load config
      params, model_params = config_reader()
  
      input_image = cv2.imread(image_path)  # B,G,R order
  
      body_parts, all_peaks, subset, candidate = extract_parts(input_image, params, model, model_params)
      canvas = draw(input_image, all_peaks, subset, candidate)
  
      toc = time.time()
      print('processing time is %.5f' % (toc - tic))
  
      cv2.imwrite(output, canvas)
  
      cv2.destroyAllWindows()
  </code></pre>