Vikas01 commited on
Commit
101dfcf
1 Parent(s): 5997c09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # 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)
 
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)