Face Detection in Python with Source Code

Face Detection in Python with Source Code


Face detection project is a python based project. It is a way of recognizing the human face. This project is easy to use and implement. It is a computer technology that detect face.

Face detection project is coded using python program. Python is a general purpose cross platform programming language. Face detection is a computer technology which is useful for identifying face apps. This project is using haar cascade algorithm for detecting face.

Haar cascade is a machine learning object detection algorithm useful for detecting object. This project is simple and easy to use. Haar cascade is useful in the first real-time face detector. You can download har xml file from github. The project code need to be execute to get the output. You can easily download the code. You can see the output screen below.

Face detection - img1
Output Screen

Face detection - img2
Detecting human face output

More face detection

The output screen is a rectangular box. It has start and stop camera button. There are two image areas where the image will display. Start camera button will start the camera from your device. Stop button will stop recording. The left area will detect your face and righ will show your image. You must import some python libraries. Such as open cv, tkinter, time, threading and pillow or PIL (Python Image Library).

This project includes three python files. Further the project code is using class, def function, if else, loop, try catch and many other. This project is very effective in learning. This project will be fruitful for beginners and professional to enhance their skills. Download the project and use the code by yourself. The project will be productive for you. You will learn new skills in this code.

How to use this projec?

  • Download the project.
  • Get the code.
  • Set up code editor or IDE.
  • Open the project Editor.
  • Execute the program.
  • Detect the face.
  • Enjoy!

Click the button below to get the source code for this project.

Spread the love


  1. Hi would you mind stating which blog platform you’re using? I’m planning to start my own blog in the near future but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something unique. P.S Sorry for being off-topic but I had to ask!

Comments are closed.