mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
detectface for plot
This commit is contained in:
parent
b3e2ff554d
commit
5651615438
@ -231,8 +231,8 @@ def analyze(img_path, actions= []):
|
||||
return resp_obj
|
||||
|
||||
def detectFace(img_path):
|
||||
img = functions.detectFace(img_path)
|
||||
return img
|
||||
img = functions.detectFace(img_path)[0] #detectFace returns (1, 224, 224, 3)
|
||||
return img[:, :, ::-1] #bgr to rgb
|
||||
|
||||
#---------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user