Face Detection | Recognition | Attendance

kmhmubin, updated 🕥 2022-11-22 07:54:10

Face Recognition Attandance System

Recognize The faces And Take Automatic Attandance. :sparkles:

Face Recognition Logo

GitHub

Motivation :astonished:


We seek to provide a valuable attendance service for both teachers and students. Reduce manual process errors by provide automated and a reliable attendance system uses face recognition technology.

Features :clipboard:


  • Check Camera
  • Capture Faces
  • Train Faces
  • Recognize Faces & Attendance
  • Automatic Email

Screenshots :camera:


Command Line Interface

Command Line Interdace

Checking Camera

Checking Camera

Automail

Automail

Tech Used :computer:


Build With - * Python 3.7

Module Used -

All The Module are Latest Version. * OpenCV Contrib 4.0.1 * Pillow * Numpy * Pandas * Shutil * CSV * yagmail

Face Recognition Algorithms - * Haar Cascade * LBPH (Local Binary Pattern Histogram)

Software Used - * Pycharm 2019.2 * VS CODE * Git

Installation :key:


Download or Clone the project

First Download or Clone the Project on Your Local Machine.To download the project from github press Download Zip

Download Zip

or

You can clone the project with git bash.To clone the project using git bash first open the git bash and write the following code git clone https://github.com/kmhmubin/Face-Recognition-Attendance-System.git demo

Git clone

After download, Open the project using Pycharm or VSCODE. Then we have to create an python enviroment to run the program.

create enviroment

First open the terminal or command line in the IDE.Then write the following code. python -m venv env Then activate the enviroment using the code below for windows. .\env\Scripts\activate [ Notice: If your pc don't have virtual enviroment or pip install the follow this link. How to create Virtual Enviroment ]

Installing the packages


After creating the enviroment on your project let's install the necessary packages.

pip isntall demo

To install those package open the terminal or command line and paste the code from below

pip install opencv-contrib-python pip install numpy pip install pandas pip install Pillow pip install pytest-shutil pip install python-csv pip install yagmail

[ **Notice: During the package installization, sometime it shows some error, to avoid those error you can install those packages as admin. ]

Test Run :bicyclist:


After creating the enviroment and installing the packages, open the IDE terminal/command line to run the program. Using the code below.

py main.py Here is a demo to run the program. I'm Using the Pycharm IDE in my demo.

Test Run

How To Use? :pencil:


If you want to use it just follow the steps below.

  1. First download or clone the project
  2. Import the project to your favourit IDE
  3. Create an python enviroment
  4. Install all the packages
  5. Change the mail information
  6. Run the project using the command line or your IDE Run Button

Known Bugs :bug:


This project have some bugs.

  • Student Details: In student details folder the StudentDetails.csv file don't have ID & name column.This problem show when the program run first time and create the StudentDetails.csv file automatically. To soleve the problelm just open the file and add ID & Name Column in the file and save it.
  • Auto Attachment: This is not a problem actually. The problem is before sent auto mail we have to manually change the file name. I tried to automate the attachment but i faild.

Contribute :heart:


If you want to contribute in this project feel free to do that. A contribution guideline will be a big help.

Thanks you, for contributing. - Adeetya Upadhyay - Ciro Iriarte - Shreyas More

Credits :sparkling_heart:


Thanks to Farhat Tasnim work with me.

Licence :scroll:


MIT © K.M.H. Mubin

Issues

T

opened on 2023-03-11 18:36:32 by Yabxo None

cv2 Error

opened on 2023-02-12 16:18:02 by PTze

Hi @kmhmubin I'm facing some problems with the cv2 error on option 1,2,4 and I couldn't solve it. Here the error: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

Thanks

Bump pillow from 8.2.0 to 9.3.0 in /FRAS

opened on 2022-11-22 07:54:06 by dependabot[bot]

Bumps pillow from 8.2.0 to 9.3.0.

Release notes

Sourced from pillow's releases.

9.3.0

https://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html

Changes

... (truncated)

Changelog

Sourced from pillow's changelog.

9.3.0 (2022-10-29)

  • Limit SAMPLESPERPIXEL to avoid runtime DOS #6700 [wiredfool]

  • Initialize libtiff buffer when saving #6699 [radarhere]

  • Inline fname2char to fix memory leak #6329 [nulano]

  • Fix memory leaks related to text features #6330 [nulano]

  • Use double quotes for version check on old CPython on Windows #6695 [hugovk]

  • Remove backup implementation of Round for Windows platforms #6693 [cgohlke]

  • Fixed set_variation_by_name offset #6445 [radarhere]

  • Fix malloc in _imagingft.c:font_setvaraxes #6690 [cgohlke]

  • Release Python GIL when converting images using matrix operations #6418 [hmaarrfk]

  • Added ExifTags enums #6630 [radarhere]

  • Do not modify previous frame when calculating delta in PNG #6683 [radarhere]

  • Added support for reading BMP images with RLE4 compression #6674 [npjg, radarhere]

  • Decode JPEG compressed BLP1 data in original mode #6678 [radarhere]

  • Added GPS TIFF tag info #6661 [radarhere]

  • Added conversion between RGB/RGBA/RGBX and LAB #6647 [radarhere]

  • Do not attempt normalization if mode is already normal #6644 [radarhere]

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/kmhmubin/Face-Recognition-Attendance-System/network/alerts).

Main.py has Python 2 code

opened on 2022-07-18 13:06:52 by lowkey1001100

The READMe.md file says this repo was built using Python 3.7. However, print statements in main.py in the Raspberry Pi files/ directory is Python 2:

python print 'Training Done . . . ' print ' Done 2 . . . '

Bump numpy from 1.17.0 to 1.22.0 in /FRAS

opened on 2022-06-21 22:40:07 by dependabot[bot]

Bumps numpy from 1.17.0 to 1.22.0.

Release notes

Sourced from numpy's releases.

v1.22.0

NumPy 1.22.0 Release Notes

NumPy 1.22.0 is a big release featuring the work of 153 contributors spread over 609 pull requests. There have been many improvements, highlights are:

  • Annotations of the main namespace are essentially complete. Upstream is a moving target, so there will likely be further improvements, but the major work is done. This is probably the most user visible enhancement in this release.
  • A preliminary version of the proposed Array-API is provided. This is a step in creating a standard collection of functions that can be used across application such as CuPy and JAX.
  • NumPy now has a DLPack backend. DLPack provides a common interchange format for array (tensor) data.
  • New methods for quantile, percentile, and related functions. The new methods provide a complete set of the methods commonly found in the literature.
  • A new configurable allocator for use by downstream projects.

These are in addition to the ongoing work to provide SIMD support for commonly used functions, improvements to F2PY, and better documentation.

The Python versions supported in this release are 3.8-3.10, Python 3.7 has been dropped. Note that 32 bit wheels are only provided for Python 3.8 and 3.9 on Windows, all other wheels are 64 bits on account of Ubuntu, Fedora, and other Linux distributions dropping 32 bit support. All 64 bit wheels are also linked with 64 bit integer OpenBLAS, which should fix the occasional problems encountered by folks using truly huge arrays.

Expired deprecations

Deprecated numeric style dtype strings have been removed

Using the strings "Bytes0", "Datetime64", "Str0", "Uint32", and "Uint64" as a dtype will now raise a TypeError.

(gh-19539)

Expired deprecations for loads, ndfromtxt, and mafromtxt in npyio

numpy.loads was deprecated in v1.15, with the recommendation that users use pickle.loads instead. ndfromtxt and mafromtxt were both deprecated in v1.17 - users should use numpy.genfromtxt instead with the appropriate value for the usemask parameter.

(gh-19615)

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/kmhmubin/Face-Recognition-Attendance-System/network/alerts).

Unable to share mail

opened on 2022-05-31 07:22:56 by ayush9198gupta

Traceback (most recent call last): File "C:\Users\Hp\Downloads\Face-Recognition-Attendance-System-master\FRAS\automail.py", line 17, in yag.send( File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\site-packages\yagmail\sender.py", line 156, in send self.login() File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\site-packages\yagmail\sender.py", line 210, in login self._login(self.credentials) File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\site-packages\yagmail\sender.py", line 229, in _login self.smtp.login(self.user, password) File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\smtplib.py", line 750, in login raise last_exception File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\smtplib.py", line 739, in login (code, resp) = self.auth( File "C:\Users\Hp\AppData\Local\Programs\Python\Python310\lib\smtplib.py", line 662, in auth raise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (534, b'5.7.9 Application-specific password required. Learn more at\n5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor z8-20020a170902ccc800b0016363b15acasm10419980ple.112 - gsmtp')

K M H Mubin

Aspiring Full Stack Developer | UI Designer | Technical Writer

GitHub Repository

face-recognition face-detection attendance-system python opencv pillow camera numpy pandas shutil-python csv yagmail haar-cascade haar-cascade-classifier lbph cli attendance pycharm automail python3