Skip to content

It'll capture image from your webcam and detect your face. It's also supported real time face detect from webcam video.

License

Notifications You must be signed in to change notification settings

talhaanwarch/facedetect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Face Detection using Opencv with Django or Tornado Framework

It'll capture image from your webcam and detect your face. It's also supported real time face detect from webcam video.

Installation

  • Please make sure you already installed Python3 and pip in your system, then Clone this repository ::
git clone https://github.com/talhaanwarch/facedetect.git
  • Now install requirements of python libraries ::
pip install -r requirements.txt
  • Now we need to run tornado server for create websocket ::
python websocket.py 

#It may be show popup for allow or not firewall , So click on allow to run websocket

  • Now run Django project using below command ::
python manage.py runserver
  • Now you can access project ::

    http://127.0.0.1:8000/image/ # detect face from image

    http://127.0.0.1:8000/video/ # detect face from live webcam

  • Note
    If you are on a windows machine, you can open two terminal one for websocket and the other for django server.
    On linux server you may move tornado server to background and then lanuch django server.

About

It'll capture image from your webcam and detect your face. It's also supported real time face detect from webcam video.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 45.1%
  • Python 34.4%
  • HTML 20.5%