dibahadie commited on
Commit
8f38140
1 Parent(s): 4d0a681

Update segment_key.py

Browse files
Files changed (1) hide show
  1. 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
- return extract_features(contour)
 
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):