ezamorag commited on
Commit
a9354bd
·
1 Parent(s): b429c2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -85,6 +85,9 @@ def display_detectionsandcountings_detclasim(img_array, detections, c_cnames, c_
85
  def displaytext_yolocounter(countings, coverage):
86
  countings_list = list(countings.items())
87
  countings_list.sort(key = lambda x: x[1], reverse=True)
 
 
 
88
 
89
  text = f'coverage = {coverage}'+'\n\n'
90
  for key,value in countings_list:
 
85
  def displaytext_yolocounter(countings, coverage):
86
  countings_list = list(countings.items())
87
  countings_list.sort(key = lambda x: x[1], reverse=True)
88
+ total = 0
89
+ for (y_class,c) in countings_list:
90
+ total += c
91
 
92
  text = f'coverage = {coverage}'+'\n\n'
93
  for key,value in countings_list: