Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ import base64
|
|
| 17 |
|
| 18 |
|
| 19 |
##################
|
| 20 |
-
|
| 21 |
|
| 22 |
|
| 23 |
app = Flask (__name__ )
|
|
@@ -94,7 +94,8 @@ def receive_image(image):
|
|
| 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
|
|
|
|
| 98 |
for face_encoding in face_encodings:
|
| 99 |
emit("result",{"name":"in for ","score":"34"})
|
| 100 |
matches = face_recognition.compare_faces(known_face_encodings, face_encoding)
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
##################
|
| 20 |
+
cnt =1
|
| 21 |
|
| 22 |
|
| 23 |
app = Flask (__name__ )
|
|
|
|
| 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"})
|
| 101 |
matches = face_recognition.compare_faces(known_face_encodings, face_encoding)
|