Update app.py
Browse files
app.py
CHANGED
|
@@ -80,9 +80,7 @@ def load_and_encode(image_path):
|
|
| 80 |
return None
|
| 81 |
|
| 82 |
# Modify detect_and_align_faces function to detect and align multiple faces
|
| 83 |
-
def detect_and_align_faces(
|
| 84 |
-
image = face_recognition.load_image_file(image_path)
|
| 85 |
-
|
| 86 |
# Resize the image to a fixed width (you can adjust the width as needed)
|
| 87 |
target_width = 800
|
| 88 |
aspect_ratio = image.shape[1] / image.shape[0]
|
|
|
|
| 80 |
return None
|
| 81 |
|
| 82 |
# Modify detect_and_align_faces function to detect and align multiple faces
|
| 83 |
+
def detect_and_align_faces(image):
|
|
|
|
|
|
|
| 84 |
# Resize the image to a fixed width (you can adjust the width as needed)
|
| 85 |
target_width = 800
|
| 86 |
aspect_ratio = image.shape[1] / image.shape[0]
|