wickedreg commited on
Commit
e69a300
·
verified ·
1 Parent(s): 666ac65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,9 @@ def detect_fruit(image):
22
 
23
  # детекция
24
  detections = model.predict(source=image_cv, conf=0.5)
25
-
 
 
26
  # проверка на наличие детекций
27
  if len(results[0].boxes) == 0:
28
  return image_cv, None
 
22
 
23
  # детекция
24
  detections = model.predict(source=image_cv, conf=0.5)
25
+
26
+ print(results)
27
+ print(dir(results[0]))
28
  # проверка на наличие детекций
29
  if len(results[0].boxes) == 0:
30
  return image_cv, None