Guillermo Uribe Vicencio commited on
Commit
36ac0c5
·
1 Parent(s): 13075a5
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,8 +68,8 @@ def apply_color_map(rgb, color_map=cdl_color_map, map_resume=map_resume):
68
  cont = np.where((rgb[0] == map_tmp['value']) & (rgb[1] == map_tmp['value']) & (rgb[2] == map_tmp['value']), 1, 0)
69
 
70
  print(map_tmp['label'])
71
- print("Cantidad total ", sum(cont))
72
- map_resume.append({"label": map_tmp['label'],'qtt': sum(cont)})
73
 
74
  return rgb_mapped
75
 
 
68
  cont = np.where((rgb[0] == map_tmp['value']) & (rgb[1] == map_tmp['value']) & (rgb[2] == map_tmp['value']), 1, 0)
69
 
70
  print(map_tmp['label'])
71
+ print("Cantidad total ", sum(sum(cont)))
72
+ map_resume.append({"label": map_tmp['label'],'qtt': sum(sum(cont))})
73
 
74
  return rgb_mapped
75