wangjin2000 commited on
Commit
a219d50
·
verified ·
1 Parent(s): acc2d5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def draw_bounding_boxes(img, results, dicom_meta):
90
 
91
  def show_preds_image(filepath):
92
  results, img0, dicom_meta = detect_objects(filepath)
93
- img_with_boxes, results = draw_bounding_boxes(img0, results)
94
  #print("In show_preds_image:Intance Number=", dicom_meta.loc[dicom_meta.Key == 'Instance Number', 'Value'].iloc[0])
95
  #return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
96
  return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
 
90
 
91
  def show_preds_image(filepath):
92
  results, img0, dicom_meta = detect_objects(filepath)
93
+ img_with_boxes, results = draw_bounding_boxes(img0, results, dicom_meta)
94
  #print("In show_preds_image:Intance Number=", dicom_meta.loc[dicom_meta.Key == 'Instance Number', 'Value'].iloc[0])
95
  #return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
96
  return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta