ovi054 commited on
Commit
0d66e01
·
verified ·
1 Parent(s): 446fd2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -47,10 +47,13 @@ def pose_estimation(test_image):
47
 
48
  canvas = util.draw_handpose(canvas, all_hand_peaks)
49
 
50
- plt.imshow(canvas[:, :, [2, 1, 0]])
51
- plt.axis('off')
 
 
 
52
  out_image_path = './out.jpg'
53
- plt.savefig(out_image_path)
54
 
55
  # Save JSON data and return its path
56
  json_file_path = save_json(candidate, subset)
 
47
 
48
  canvas = util.draw_handpose(canvas, all_hand_peaks)
49
 
50
+ # plt.imshow(canvas[:, :, [2, 1, 0]])
51
+ # plt.axis('off')
52
+ # out_image_path = './out.jpg'
53
+ # plt.savefig(out_image_path)
54
+
55
  out_image_path = './out.jpg'
56
+ cv2.imwrite(out_image_path, canvas)
57
 
58
  # Save JSON data and return its path
59
  json_file_path = save_json(candidate, subset)