NassimeBejaia commited on
Commit
2534654
1 Parent(s): aa7c965

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -109,7 +109,7 @@ def extract_heads(filepath, frame0):
109
  array_from_file = np.delete(array_from_file,np.s_[7:10], axis=1)
110
  nbperson = np.unique(array_from_file[:,1]).shape[0]
111
  st.subheader('Display some detected heads :')
112
- st.write(' Number of heads detected : ', nbperson )
113
 
114
  rows = 5
115
  cols = 10
@@ -125,10 +125,13 @@ def extract_heads(filepath, frame0):
125
 
126
  #*********************************************************************************************
127
  def display_heads_(nbperson, listhead):
 
 
128
  k = 0
129
- for i in range(1, 10):
130
- cols = st.columns(5)
131
- for j in range(1, 5):
 
132
  k = k + 1
133
  cols[j].header("Person " + str(k))
134
  cols[j].image(listhead[k], use_column_width=True)
 
109
  array_from_file = np.delete(array_from_file,np.s_[7:10], axis=1)
110
  nbperson = np.unique(array_from_file[:,1]).shape[0]
111
  st.subheader('Display some detected heads :')
112
+ st.write(' Number of detected heads : ', nbperson )
113
 
114
  rows = 5
115
  cols = 10
 
125
 
126
  #*********************************************************************************************
127
  def display_heads_(nbperson, listhead):
128
+ rows = 10
129
+ cols = 5
130
  k = 0
131
+ for i in range(1, rows):
132
+ #cols = st.columns(cols )
133
+ cols = st.beta_columns(cols )
134
+ for j in range(1, cols ):
135
  k = k + 1
136
  cols[j].header("Person " + str(k))
137
  cols[j].image(listhead[k], use_column_width=True)