{"id":29202044,"url":"https://github.com/arghyadevs/attendaface","last_synced_at":"2026-05-09T02:35:30.785Z","repository":{"id":301378802,"uuid":"1009069106","full_name":"Arghyadevs/AttendaFace","owner":"Arghyadevs","description":"AttendaFace is a Python-based desktop application that uses OpenCV and LBPH face recognition to automate attendance tracking in classrooms, offices, or events. The application features a modern GUI with photo-based face registration, real-time recognition, attendance logging, and CSV export.","archived":false,"fork":false,"pushed_at":"2025-06-26T14:37:21.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T13:10:50.891Z","etag":null,"topics":["opencv","opencvlbph","pillow","yml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arghyadevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-06-26T14:24:18.000Z","updated_at":"2025-06-26T14:39:04.000Z","dependencies_parsed_at":"2025-06-26T15:44:45.980Z","dependency_job_id":null,"html_url":"https://github.com/Arghyadevs/AttendaFace","commit_stats":null,"previous_names":["dipenginedev7/attendaface","arghyadevs/attendaface"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Arghyadevs/AttendaFace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arghyadevs%2FAttendaFace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arghyadevs%2FAttendaFace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arghyadevs%2FAttendaFace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arghyadevs%2FAttendaFace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arghyadevs","download_url":"https://codeload.github.com/Arghyadevs/AttendaFace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arghyadevs%2FAttendaFace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271442001,"owners_count":24760351,"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-08-21T02:00:08.990Z","response_time":74,"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":["opencv","opencvlbph","pillow","yml"],"created_at":"2025-07-02T13:00:26.371Z","updated_at":"2026-05-09T02:35:30.757Z","avatar_url":"https://github.com/Arghyadevs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📸 AttendaFace - Face Recognition Attendance System\n\n**AttendaFace** is a Python-based desktop application that uses **OpenCV** and **LBPH face recognition** to automate attendance tracking in classrooms, offices, or events. The application features a modern GUI with photo-based face registration, real-time recognition, attendance logging, and CSV export.\n\n---\n\n## 🚀 Features\n\n- 🧠 **Real-time Face Recognition** using webcam\n- 🔐 **LBPH Model Training \u0026 Persistence**\n- 🖼️ **Add New Faces** with a photo\n- 📝 **CSV Export** of attendance data\n- 🔁 **No Duplicate Attendance** for the same person on the same day\n- 🖥️ **Modern GUI** using Tkinter\n- 📊 **Live Stats** for Registered Users and Today's Attendance\n- 📂 Stores face data locally with a labeled directory structure\n\n---\n\n## 🛠️ Tech Stack\n\n| Component        | Technology                |\n|------------------|----------------------------|\n| GUI              | Tkinter                    |\n| Face Detection   | OpenCV Haar Cascades       |\n| Face Recognition | OpenCV LBPH Face Recognizer|\n| Image Handling   | Pillow (PIL)               |\n| File Storage     | CSV and Local Filesystem   |\n| Model Saving     | `.yml` and `.pkl` files    |\n\n---\n## 📁 Folder Structure\n\n```\nAttendaFace/\n├── attend.py               # Main application\n├── face_model.yml          # Trained face recognition model\n├── label_names.pkl         # Pickled name-label mappings\n├── faces_db/               # Directory of registered user face images\n│   ├── Alice/\n│   │   └── face_1.png\n│   └── Bob/\n│       └── face_1.png\n├── attendance.csv          # Optional exported attendance log\n└── README.md               # Project documentation\n```\n\n---\n\n## ⚙️ Installation\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/dipenginedev7/AttendaFace.git\ncd AttendaFace\n```\n\n### 2. Install Requirements\n\nInstall the required Python packages:\n\n```bash\npip install opencv-python opencv-contrib-python pillow\n```\n\n\u003e 💡 `opencv-contrib-python` is required to access `cv2.face.LBPHFaceRecognizer_create`.\n\n---\n\n## ▶️ Run the Application\n\n```bash\npython attend.py\n```\n\nThe app will launch a GUI with buttons to start/stop the camera, register new users, and export attendance records.\n\n---\n\n## 👤 Register a New Person\n\n1. Type the person's name in the \"Name\" field.\n2. Click \"Add Photo\" and select a front-facing image.\n3. The app detects and stores the face, updating the model automatically.\n4. You’ll receive a confirmation message upon successful registration.\n\n---\n\n## 🧾 Attendance Logging\n\n- Launch the camera by clicking \"Start Camera\".\n- When a registered face is recognized:\n  - Name, Date, and Time are logged.\n  - Duplicate entries are prevented for the same day.\n- Click \"Export CSV\" to save attendance records.\n\n**CSV Format Example:**\n```csv\nname,date,time,status\nAlice,2025-06-26,10:05:23,Present\nBob,2025-06-26,10:12:01,Present\n```\n\n---\n\n## 📊 GUI Stats\n\nAt the bottom of the control panel, the GUI shows:\n- **Registered:** Total registered users\n- **Today:** Attendance count for today\n\n---\n\n## 🧩 Future Roadmap\n\n- Webcam-based face registration\n- Face dataset augmentation\n- Role-based access or admin login\n- Calendar-based attendance filtering\n- Cloud/DB integration (SQLite, Firebase, etc.)\n- Export as Excel or PDF\n\n---\n\n## 🧰 Troubleshooting\n\n- **\"cv2.face\" module not found?**\n  - Make sure you installed `opencv-contrib-python` and not just `opencv-python`.\n- **Face not detected during registration?**\n  - Ensure the image is well-lit, clear, and front-facing.\n- **GUI not launching?**\n  - Ensure you're running Python 3 and all dependencies are installed.\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License.  \nFeel free to use, modify, and distribute it with attribution.\n\n---\n\n## 🙌 Acknowledgements\n\n- OpenCV\n- Pillow\n- The Python community 💙\n\nBuilt with 💻 Python and a vision to modernize attendance systems.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farghyadevs%2Fattendaface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farghyadevs%2Fattendaface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farghyadevs%2Fattendaface/lists"}