mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
duplicated import
This commit is contained in:
parent
975867accd
commit
32b9ee5369
@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
from pathlib import Path
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from keras.preprocessing.image import load_img, save_img, img_to_array
|
from keras.preprocessing.image import load_img, save_img, img_to_array
|
||||||
@ -291,4 +290,4 @@ def detectFace(img, target_size=(224, 224), grayscale = False):
|
|||||||
img_pixels /= 255
|
img_pixels /= 255
|
||||||
return img_pixels
|
return img_pixels
|
||||||
else:
|
else:
|
||||||
raise ValueError("Face could not be detected in ", img,". Please confirm that the picture is a face photo.")
|
raise ValueError("Face could not be detected in ", img,". Please confirm that the picture is a face photo.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user