wangjin2000 commited on
Commit
63257d8
·
verified ·
1 Parent(s): a41da5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -116,7 +116,8 @@ def draw_bounding_boxes(img, results):
116
 
117
  def show_preds_image(filepath):
118
  #dicom_image, dicom_meta = read_and_preprocess_dicom(image_path)
119
- results, img0 = detect_objects(filepath)
 
120
  img0 = cv2.imread(filepath)
121
  #img_with_boxes = draw_bounding_boxes(img0, results)
122
  img_with_boxes = draw_bounding_boxes(img0, results)
 
116
 
117
  def show_preds_image(filepath):
118
  #dicom_image, dicom_meta = read_and_preprocess_dicom(image_path)
119
+ #results, img0 = detect_objects(filepath)
120
+ results = detect_objects(filepath)
121
  img0 = cv2.imread(filepath)
122
  #img_with_boxes = draw_bounding_boxes(img0, results)
123
  img_with_boxes = draw_bounding_boxes(img0, results)