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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def draw_bounding_boxes(img, results, dicom_meta):
78
  for (x1, y1, x2, y2), conf, cls in results:
79
  xc = x1+(x2-x1)/2
80
  yc = y1+(y2-y1)/2
81
- x1, y1, x2, y2, xc, yc, cls = map(int, [x1, y1, x2, y2, xc, yc, cls])
82
  conf = round(conf.detach().item(), 4)
83
  print("results in draw_bounding box:",[(x1, y1, x2, y2), conf, cls])
84
  zc = dicom_meta.loc[dicom_meta.Key == 'Instance Number', 'Value'].iloc[0]
 
78
  for (x1, y1, x2, y2), conf, cls in results:
79
  xc = x1+(x2-x1)/2
80
  yc = y1+(y2-y1)/2
81
+ x1, y1, x2, y2, cls = map(int, [x1, y1, x2, y2, cls])
82
  conf = round(conf.detach().item(), 4)
83
  print("results in draw_bounding box:",[(x1, y1, x2, y2), conf, cls])
84
  zc = dicom_meta.loc[dicom_meta.Key == 'Instance Number', 'Value'].iloc[0]