mirror of
https://github.com/serengil/deepface.git
synced 2025-07-23 18:30:04 +00:00
restore
This commit is contained in:
parent
8952e6b305
commit
f9ec08ec04
@ -653,10 +653,8 @@ def represent(
|
|||||||
else: # skip
|
else: # skip
|
||||||
if isinstance(img_path, str):
|
if isinstance(img_path, str):
|
||||||
img = functions.load_image(img_path)
|
img = functions.load_image(img_path)
|
||||||
img = cv2.resize(img, target_size)
|
|
||||||
elif type(img_path).__module__ == np.__name__:
|
elif type(img_path).__module__ == np.__name__:
|
||||||
img = img_path.copy()
|
img = img_path.copy()
|
||||||
img = cv2.resize(img, target_size)
|
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"unexpected type for img_path - {type(img_path)}")
|
raise ValueError(f"unexpected type for img_path - {type(img_path)}")
|
||||||
img_region = [0, 0, img.shape[1], img.shape[0]]
|
img_region = [0, 0, img.shape[1], img.shape[0]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user