Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 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)
|