mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
duplicated import
This commit is contained in:
parent
975867accd
commit
32b9ee5369
@ -1,5 +1,4 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
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
|
||||
return img_pixels
|
||||
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