lazycatcoder / EmployeeChecker

This code identifies known employees and write their arrival time in the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Employee Checker

This Python code implements a facial recognition system for employee check-in. The program uses OpenCV (cv2) library for image processing and Face Recognition library to recognize faces, compares them to a database of known employees, and returns the employee's name if a match is found. The program also keeps track of employee arrivals by adding a timestamp to the MongoDB collection.


The main practical application of this code is tracking the presence of employees in the workplace. The code can be used to automatically register the entrance and exit of employees, as well as to monitor who is in the building at the moment, etc.


Settings

  1. Clone this repository
   git clone https://github.com/lazycatcoder/EmployeeChecker.git
  1. Install dependencies
   pip install -r requirements.txt

πŸ”΄ to install MongoDB, go to the official website: https://www.mongodb.com/

  1. Run the EmployeeChecker.py πŸš€

πŸ”§ Additional Information

For the code to work correctly, follow these steps:

  • Set the path to the default camera
   video_capture = cv2.VideoCapture("http://192.168.0.101:8080/video")

or use your laptop's webcam for testing

   video_capture = cv2.VideoCapture(0)
  • in the employee folder, upload photos of people whom the system will recognize and write to the database (or leave the existing photos for the test). You should sign the photos by the surnames of your employees

πŸ“ Also, for the sake of convenience of using this program, you can add the necessary information to the database for each of the employees, for example: date of birth, phone, email, position, etc.


About

This code identifies known employees and write their arrival time in the database

License:GNU General Public License v3.0


Languages

Language:Python 100.0%