Vikas01 commited on
Commit
7b095b5
1 Parent(s): e0a617a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,7 +90,7 @@ def receive_image(image):
90
  # csv_writer = csv.writer(csv_file)
91
  small_frame = cv2.resize(image, (0, 0), fx=0.25, fy=0.25)
92
  rgb_small_frame = small_frame[:, :, ::-1]
93
- emit("result",{"name":"level " +str(cnt),"score":str(len(face_encodings))})
94
 
95
  face_locations = face_recognition.face_locations(rgb_small_frame)
96
  face_encodings = face_recognition.face_encodings(small_frame, face_locations)
@@ -109,9 +109,9 @@ def receive_image(image):
109
  face_names.append(name)
110
  s = False
111
  break
112
- emit("result",{"name":"level1","score":"34"})
113
- emit("result",{"name":str(name),"score":"myScore"})
114
 
 
 
115
 
116
 
117
  # # for name in face_names:
 
90
  # csv_writer = csv.writer(csv_file)
91
  small_frame = cv2.resize(image, (0, 0), fx=0.25, fy=0.25)
92
  rgb_small_frame = small_frame[:, :, ::-1]
93
+ # emit("result",{"name":"level " +str(cnt),"score":str(len(face_encodings))})
94
 
95
  face_locations = face_recognition.face_locations(rgb_small_frame)
96
  face_encodings = face_recognition.face_encodings(small_frame, face_locations)
 
109
  face_names.append(name)
110
  s = False
111
  break
 
 
112
 
113
+ emit("result",{"name":str(name),"score":"myScore"})
114
+ emit("result",{"name":"level1","score":"34"})
115
 
116
 
117
  # # for name in face_names: