https://github.com/devqueue/auto-attandance-system
https://github.com/devqueue/auto-attandance-system
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devqueue/auto-attandance-system
- Owner: devqueue
- License: gpl-2.0
- Created: 2020-10-04T10:07:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T07:06:21.000Z (over 5 years ago)
- Last Synced: 2025-07-04T02:43:56.459Z (12 months ago)
- Language: Python
- Size: 72.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Face Recognition using open-cv
This is a project that recognizes your face using webcam and adds your attandance to a csv file
I used open-cv and face-recognition libraries. The faces must be saved in individual directories
in `src/images`. There must be atleast 8-10 images for each face with clear features.
Follow the steps below to get started.
**Note:** Before following along you must have a c/c++ compiler on your system if you use windows use visual studio to install C++ compiler
## How to Install dependencies?
#### Using anaconda environment.yml (linux only)
The conda_environment.yml was created on a linux machine so I would recommend you not to use this unless you are on linux or if you can manually delete the linux dependencies that'll work fine as well
1. Open conda_environment.yml
2. Replace the first line `name: FaceRec` to your prefered name
3. Replace 'user' with your username in `prefix: /home/user/.conda/envs/FaceRec`
4. cd into the folder
5. Now open terminal and run
`conda env create -f conda_environment.yml`
#### Using pip (For any OS)
1. Create a virtual environment
2. Run `pip install -r requirements.txt`
## Setup for a new face
1. Go to src/images directory
2. Create a directory with your name
3. Add 8-10 images of your face in different lighiting conditions
4. Now run `face-trainer.py`
Note: Everytime you add a new face you'll have to run this file again
## Final Recognition
Now you can run the `face-detect.py`. The script will recognize your face and add a time stamp
in `Attendance.csv`
## Run in Gitpod
You can also run Face-detector in Gitpod, a free online dev environment for GitHub:
[](https://gitpod.io/#https://github.com/smokedpirate/Face-recognition/blob/master/src/face-detect.py)