Spaces:
Sleeping
Sleeping
Update segment_key.py
Browse files- segment_key.py +2 -1
segment_key.py
CHANGED
@@ -291,7 +291,8 @@ def final_features(image_path):
|
|
291 |
image = rotate_image(image)
|
292 |
pil_image = pred_segmentation(image, pred_bbox(image_path))
|
293 |
contour = get_kps_from_pil(pil_image)
|
294 |
-
|
|
|
295 |
|
296 |
|
297 |
def predict_kps(image):
|
|
|
291 |
image = rotate_image(image)
|
292 |
pil_image = pred_segmentation(image, pred_bbox(image_path))
|
293 |
contour = get_kps_from_pil(pil_image)
|
294 |
+
kp_image = show_kps(contour)
|
295 |
+
return kp_image, extract_features(contour)
|
296 |
|
297 |
|
298 |
def predict_kps(image):
|