diff --git a/deepface/modules/representation.py b/deepface/modules/representation.py index bec0b1ae..d8806454 100644 --- a/deepface/modules/representation.py +++ b/deepface/modules/representation.py @@ -116,7 +116,7 @@ def represent( raise ValueError("Spoof detected in the given image.") img = img_obj["face"] - # rgb to bgr + # bgr to rgb img = img[:, :, ::-1] region = img_obj["facial_area"]