Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,8 +90,8 @@ 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 |
-
|
94 |
-
|
95 |
face_locations = face_recognition.face_locations(rgb_small_frame)
|
96 |
face_encodings = face_recognition.face_encodings(small_frame, face_locations)
|
97 |
face_names = []
|
@@ -111,7 +111,7 @@ def receive_image(image):
|
|
111 |
break
|
112 |
|
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)
|
97 |
face_names = []
|
|
|
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:
|