Vikas01 commited on
Commit
57ef3b9
1 Parent(s): fbdc20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,11 +90,11 @@ 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":"level222","score":"34"})
94
  face_locations = face_recognition.face_locations(rgb_small_frame)
95
  face_encodings = face_recognition.face_encodings(small_frame, face_locations)
96
  face_names = []
97
- emit("result",{"name":"level " +str(cnt),"score":str(len(face_encodings))})
98
  cnt = cnt +1
99
  for face_encoding in face_encodings:
100
  emit("result",{"name":"in for ","score":"34"})
 
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
  face_locations = face_recognition.face_locations(rgb_small_frame)
95
  face_encodings = face_recognition.face_encodings(small_frame, face_locations)
96
  face_names = []
97
+ emit("result",{"name":"level2 " +str(cnt),"score":str(len(face_encodings))})
98
  cnt = cnt +1
99
  for face_encoding in face_encodings:
100
  emit("result",{"name":"in for ","score":"34"})