Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,8 +86,8 @@ def receive_image(image):
|
|
86 |
# csv_file = open(f"{current_date}.csv", "a+", newline="")
|
87 |
|
88 |
# # csv_writer = csv.writer(csv_file)
|
89 |
-
|
90 |
-
|
91 |
# # emit("result",{"name":"level " +str(cnt),"score":str(len(face_encodings))})
|
92 |
|
93 |
face_locations = face_recognition.face_locations(rgb_small_frame)
|
|
|
86 |
# csv_file = open(f"{current_date}.csv", "a+", newline="")
|
87 |
|
88 |
# # csv_writer = csv.writer(csv_file)
|
89 |
+
small_frame = cv2.resize(image, (0, 0), fx=0.25, fy=0.25)
|
90 |
+
rgb_small_frame = small_frame[:, :, ::-1]
|
91 |
# # emit("result",{"name":"level " +str(cnt),"score":str(len(face_encodings))})
|
92 |
|
93 |
face_locations = face_recognition.face_locations(rgb_small_frame)
|