Code Monkey home page Code Monkey logo

be_project's Introduction

Automated Attendance System for Classroom using Face Recognition

This code is designed to create database of attendance for classroom from live video feed in real time.

It doesn't require any input/intervention after code is run.

It will take periodic frames from video feed and run face detection and recognition on those frames.

As lecture is going on all students won't be recognised every time, hence it keeps record of each student in each frame and calculates number of times he/she was recognised.

This also takes care of false positives and makes sure student is present throughout the lecture.

At the end of the lecture it uses a threshold value to select which students should be marked present in the final database

Run database.py to get final output

This is the confidence when tested on set of 15 students.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 16 0 3 0 1 0 2 0 0 0 2 0 0 1
2 0 0 11 1 0 0 0 1 0 0 0 0 0 1 1
3 0 0 1 28 0 0 0 4 0 0 2 2 0 0 0
4 0 2 0 1 15 1 1 0 1 4 2 1 0 0 0
5 0 0 0 1 0 14 0 0 0 1 0 0 0 0 0
6 0 0 0 0 0 1 12 0 0 0 0 0 0 0 0
7 0 0 0 1 2 0 0 6 0 0 0 2 0 0 1
8 0 0 0 1 0 0 0 0 12 0 3 0 0 0 0
9 0 0 0 0 0 2 1 0 0 8 0 0 0 0 1
10 0 0 0 0 0 0 0 0 0 0 13 0 0 0 0
11 0 1 2 0 0 0 0 1 2 0 1 23 0 1 0
12 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0
13 0 0 2 0 0 0 0 0 0 0 0 1 0 4 0
14 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16

You will need to paste these 2 files in the utils folder (1)shape_predictor_68_face_landmarks.dat (2)recog.yml They are too large to be uploaded to github.

You can download them from following link and paste them in utils folder: Link

Code is under Apache 2.0 licence The code uses Google's Tensorflow object detection api for face detection. Please refer to the license of tensorflow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.