DEV Community

Cover image for Face Recognition in Python Using OpenCV and Deep learning
Deepak Raj
Deepak Raj

Posted on • Originally published at codeperfectplus.herokuapp.com

1 1

Face Recognition in Python Using OpenCV and Deep learning

Introduction

Today, In this article we will implement face recognition Built using dlib's state-of-the-art face recognition built with deep learning. The model has an accuracy of 99.38% on the Labeled Faces in the Wild benchmark.
It's more like documentation than a face recognition tutorial.

Usgaes

1.Git clone the Repository

git clone https://github.com/codePerfectPlus/FacialRecognition
Enter fullscreen mode Exit fullscreen mode

2.Add Your Image in Images folder. exmaple >> name.jpeg

3.Install the requirements file

# windows 
python -m venv frenv
frenv/Scripts/activate.bat

python -m pip install -r requirements.txt

# Linux/Mac
python -m venv frenv
source frenv/bin/activate

python -m pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

4.Run the Script

python FaceRec.py
Enter fullscreen mode Exit fullscreen mode

NOTE:-

# incase installtation stuck on dlib
python -m pip install dlib -vvv 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay