{"id":25238623,"url":"https://github.com/param-sahu/face_recognition_based_attendance_system","last_synced_at":"2026-04-13T09:31:46.760Z","repository":{"id":275976551,"uuid":"927773130","full_name":"Param-Sahu/Face_Recognition_Based_Attendance_System","owner":"Param-Sahu","description":" The system captures video from the webcam, recognizes faces, and marks attendance to a Google Sheet.","archived":false,"fork":false,"pushed_at":"2025-05-02T07:50:18.000Z","size":1543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T08:44:02.411Z","etag":null,"topics":["face-recognition","google-cloud","google-sheets-api","gspread","image-recognition","json","opencv","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Param-Sahu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-05T14:20:19.000Z","updated_at":"2025-05-02T07:50:21.000Z","dependencies_parsed_at":"2025-02-05T16:29:57.625Z","dependency_job_id":"e889892b-d72f-4cf7-8577-990763b39802","html_url":"https://github.com/Param-Sahu/Face_Recognition_Based_Attendance_System","commit_stats":null,"previous_names":["param-sahu/face_recognition_based_attendance_system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Param-Sahu/Face_Recognition_Based_Attendance_System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Param-Sahu%2FFace_Recognition_Based_Attendance_System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Param-Sahu%2FFace_Recognition_Based_Attendance_System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Param-Sahu%2FFace_Recognition_Based_Attendance_System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Param-Sahu%2FFace_Recognition_Based_Attendance_System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Param-Sahu","download_url":"https://codeload.github.com/Param-Sahu/Face_Recognition_Based_Attendance_System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Param-Sahu%2FFace_Recognition_Based_Attendance_System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010662,"owners_count":26084784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["face-recognition","google-cloud","google-sheets-api","gspread","image-recognition","json","opencv","python"],"created_at":"2025-02-11T17:52:51.260Z","updated_at":"2025-10-12T07:32:59.900Z","avatar_url":"https://github.com/Param-Sahu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Recognition Attendance System\nThis project is a face recognition-based attendance system that uses OpenCV, face_recognition, and Google Sheets for recording attendance. \nThe system captures video from the webcam, recognizes faces, and marks attendance to a Google Sheet. \nIn the absence of an internet connection, it print a message indicating the lack of connectivity.\n\n## Features \n- **Real-Time Face Recognition :** Captures video from the webcam and performs face recognition in real-time.\n- **Face Encoding :** Encodes known faces from a specified directory.\n- **Marks Attendance Automatically :** Logs the name and timestamp of recognized faces to a Google Sheet automatically.\n- **Access Attendance Sheet on Desktop and Smartphone :** You can track real-time attendance in Google Sheet on `Desktop` as well as on your `Smartphone`.\n- **Offline Handling :** Detects if there is no internet connection and prints a message \"No internet connection.\" and stop the program.\n- **Daily Logs :** Creates a new sheet in the Google Sheets document for each day, organizing attendance records by date.\n\n## Installation\n1. **Clone the Repository :**\n```bash\nhttps://github.com/Param-Sahu/Face_Recognition_Based_Attendance_System.git   \n```\n2. **Install Dependencies :**\n- OpenCV and Face_Recognition : \n```bash\npip install opencv-python face-recognition \n```\n- Install Google Sheet API in Python\n  - For Windows\n  ```bash\n  pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib gspread\n  ```\n  - For Mac\n  ```bash\n  pip3 install google-api-python-client google-auth-httplib2 google-auth-oauthlib gspread\n  ```\n3. **Set Up Google Sheets API :** Save the `credentials.json` file in the project directory (i.e. In the same folder where `main.py` is saved).\n4. **Prepare Images :** Make sure images of known individuals should be in the `attendance_project/images` directory.\n5. **Internet Connection :** Make sure you are connected to internet to run this program smoothly.\n\n## Functionality \n\n- The script will open the webcam and start capturing frames.\n- It will attempt to recognize faces from the frames.\n- If a face is recognized and attendance for the day is not already marked, it will log the name and timestamp in the Google Sheets document.\n- If there is no internet connection, it will print \"No internet connection.\" and stop the program.\n  ![image](https://github.com/user-attachments/assets/013fefb7-8612-4ad0-83aa-75acc949179a)\n\n\n## How It Works\nLoading and Encoding Faces :\n- The `load_images_and_encode_faces` function loads face images from the specified directory and encodes them using the `face_recognition` library.\n\nGoogle Sheets Setup :\n- The script uses the `gspread` library to connect to Google Sheets using the provided service account credentials.\n- It creates a new sheet for the current date if it doesn't already exist.\n\nFace Recognition and Attendance Logging :\n- The webcam captures frames which are processed to detect and recognize faces.\n- Recognized faces are checked against the attendance log for the day.\n- If a face is recognized and attendance is not already marked, the name and timestamp are logged in the Google Sheets document.\n\n## Notes\n- Ensure the Google Sheets API is enabled for your Google Cloud project and the service account has edit access to the Google Sheets document.\n- You can configure the script to run for a different duration or adjust other parameters as needed.\n\n\n## Attendance Sheet can be accessed on desktop as well as on smartphone with automatic updation\n- ### Attendance Sheet on 07-06-2024 \n  ![image](https://github.com/user-attachments/assets/180d2f06-c084-497c-9636-b89a4e1ece30)\n\n- ### Attendance Sheet on 08-06-2024\n  ![image](https://github.com/user-attachments/assets/84875177-e77d-4ac9-a02b-ed2605dbe634)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparam-sahu%2Fface_recognition_based_attendance_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparam-sahu%2Fface_recognition_based_attendance_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparam-sahu%2Fface_recognition_based_attendance_system/lists"}