Commit ·
f761a37
1
Parent(s): fdf56ae
face recognition
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -93,7 +93,7 @@ async def create_upload_files(request: Request, file3: UploadFile = File(...)):
|
|
| 93 |
f.write(contents)
|
| 94 |
print(face_rec_filename)
|
| 95 |
img1 = Image.open(face_rec_filename)
|
| 96 |
-
|
| 97 |
|
| 98 |
result = face_recognition.get_face_class(img1)
|
| 99 |
print(result)
|
|
|
|
| 93 |
f.write(contents)
|
| 94 |
print(face_rec_filename)
|
| 95 |
img1 = Image.open(face_rec_filename)
|
| 96 |
+
img1 = np.array(img1).reshape(img1.size[1], img1.size[0], 3).astype(np.uint8)
|
| 97 |
|
| 98 |
result = face_recognition.get_face_class(img1)
|
| 99 |
print(result)
|