# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import matplotlib.pyplot as plt
from deepface import DeepFace

face = DeepFace.detectFace('img3.jpg')

face

# +
plt.imshow(face)

#DeepFace shows detected and aligned face
# -

import cv2
img = cv2.imread('img3.jpg')

plt.imshow(img[:, :, ::-1])



StarcoderdataJupyterScriptsDedupFiltered