lopesdri commited on
Commit
150f8c5
·
1 Parent(s): 03a517d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def detect(img):
24
  scores = predictions[:, 4]
25
  categories = predictions[:, 5]
26
  dfResults = results.pandas().xyxy[0]
27
- return drawRectangles(image, dfResults[['xmin', 'ymin', 'xmax','ymax']].astype(int))
28
 
29
  def drawRectangles(image, dfResults):
30
  for index, row in dfResults.iterrows():
 
24
  scores = predictions[:, 4]
25
  categories = predictions[:, 5]
26
  dfResults = results.pandas().xyxy[0]
27
+ return drawRectangles(img, dfResults[['xmin', 'ymin', 'xmax','ymax']].astype(int))
28
 
29
  def drawRectangles(image, dfResults):
30
  for index, row in dfResults.iterrows():