wangjin2000 commited on
Commit
e8a9130
·
verified ·
1 Parent(s): 6b31ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -91,8 +91,7 @@ def draw_bounding_boxes(img, results, dicom_meta):
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
97
 
98
  def read_and_preprocess_dicom(file_path: str):
 
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("Detections:", dicom_meta.loc[dicom_meta.Key == 'Series Instance UID', 'Value'].iloc[0], results)
 
95
  return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB), results, dicom_meta
96
 
97
  def read_and_preprocess_dicom(file_path: str):