Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Contributing to Face Detection Attendance System

First off, thank you for considering contributing to this project! It's people like you that make the open-source community such a great place to learn, inspire, and create.

This project is perfect for beginners, especially during **Hacktoberfest**. The following is a set of guidelines for contributing.

## 🎯 How Can I Contribute?

### Reporting Bugs
- Ensure the bug was not already reported by searching on GitHub under [Issues](https://github.com/yesiamrajeev/FaceDetection_Prototype3/issues).
- If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/yesiamrajeev/FaceDetection_Prototype3/issues/new).

### Suggesting Enhancements
- Open a new issue with a clear title and a detailed description of the enhancement.

### Code Contributions
1. **Fork the Repository**
Click the "Fork" button at the top-right of the [repository page](https://github.com/yesiamrajeev/FaceDetection_Prototype3).

2. **Clone Your Fork**
```bash
git clone https://github.com/<your-username>/FaceDetection_Prototype3.git
cd FaceDetection_Prototype3
```

3. **Create a Branch**
Create a descriptive branch for your changes.
```bash
git checkout -b feature/your-amazing-feature
# or: git checkout -b fix/your-bug-fix
```

4. **Make Your Changes**
Here are some ideas:
- **Add features or fix bugs** in `app.py`.
- **Enhance the UI** by modifying files in the `templates/` folder.
- **Improve styling** by working on files in the `static/` folder.
- **Add your own face detection logic** in the `Attendance/` folder.
- **Improve documentation** (like this file!) or fix typos.

5. **Stage and Commit**
```bash
git add .
git commit -m "Describe your changes clearly here"
```

6. **Push to Your Fork**
```bash
git push origin feature/your-amazing-feature
```

7. **Open a Pull Request (PR)**
- Go to the original repository on GitHub.
- You should see a prompt to open a PR from your new branch.
- Fill in the PR template with all the required information.

## ✅ Mandatory for PR Approval

To ensure your contribution is verified and can be merged, you **must** provide the following:

1. **Screenshot(s):** At least one screenshot showing:
- Your code changes running successfully.
- The Flask app’s UI or output (e.g., detected faces, attendance mark screen).

2. **Screen Recording:** A short video (10–30 seconds) demonstrating your changes working live in the application.

You can provide the video by:
- Uploading the `.mp4` file inside the `/static/demo/` folder and linking it in your PR description.
- **OR** providing a public link (e.g., Google Drive, Loom, YouTube) in your PR description.

### Example PR Description

```markdown
## What does this PR do?
- Added enhanced error handling in `app.py`
- Improved the button styling in `home.html`

## Screenshot
![Description of screenshot](link-to-screenshot)

## Video Demo
[Link to video demonstration]
186 changes: 88 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,135 +1,125 @@
# 🎯 yesiamrajeev – Face Detection Attendance System 🧠
# 🎯 Face Detection Attendance System

### Cultivating Knowledge, Fostering Collaboration 👩‍💻
📌 This repository focuses on building a **Face Detection Attendance System** using Python, OpenCV, and Flask — integrating machine learning with real-time web functionality.
Our aim is to help beginners understand how AI and web frameworks work together, while fostering community collaboration through **Hacktoberfest 2025**.
A real-time face detection-based attendance system built with Python, OpenCV, and Flask. This project is designed to help beginners understand the integration of AI models with web frameworks and to foster open-source collaboration.

[![Hacktoberfest 2025](https://img.shields.io/badge/Hacktoberfest-2025-orange.svg)](https://hacktoberfest.com)

## 🌱 Hacktoberfest 2025 Is Here!

## 🌱 Hacktoberfest 2025 Is Here!
Make your **first open-source contribution** right here 🚀
Contribute, learn, grow — and help make a greener planet! 🌍
> Complete 4 pull requests between **October 1–31** and get a tree planted in your name 🌳
Make your first (or next) open-source contribution right here! 🚀

### 🏆 This Project Is Perfect for Beginners!
You’ll learn how to:
- Set up and run a Flask app
- Integrate OpenCV for face detection
- Structure a Python project
- Contribute meaningfully to open source
**Contribute, learn, grow — and help make a greener planet!** 🌍

Complete 4 valid pull requests between **October 1–31** to get a tree planted in your name. 🌳

## ✨ Features

## 🧩 How to Contribute
Follow these simple steps to make your **first pull request** 👇
- **Real-time Face Detection**: Utilizes OpenCV and Haar Cascades.
- **Web-based Interface**: Built with Flask for easy access.
- **Attendance Logging**: Automatically logs detected faces.
- **Beginner-Friendly**: Clear structure and documentation.

### 1️⃣ Fork This Repository
Click the **Fork** button (top-right corner).
## 🚀 Quick Start

### 2️⃣ Clone Your Fork
```bash
git clone https://github.com/<your-username>/yesiamrajeev.git
cd yesiamrajeev
```
### Prerequisites

### 3️⃣ Create a New Branch
```bash
git checkout -b your-branch-name
```
- Python 3.8 or higher
- pip (Python package manager)

### 4️⃣ Make Your Changes
There are multiple ways to contribute:
- Add **new features** or **bug fixes** to `app.py`
- Enhance the **UI** inside the `templates/` folder
- Improve or replace images inside `static/`
- Add your **own version of face detection code** in the `Attendance/` folder
- Add your **profile info** under `content/participant/`
### Installation

💡 **Tip:** You can also improve the documentation or fix typos in this README!
1. **Clone the repository**
```bash
git clone https://github.com/yesiamrajeev/FaceDetection_Prototype3.git
cd FaceDetection_Prototype3
```

2. **Install dependencies**
```bash
pip install -r requirements.txt
```

3. **Run the application**
```bash
python app.py
```

## 📸 Mandatory for Pull Request Approval
4. **Open your browser** and navigate to `http://127.0.0.1:5000/`

To ensure your contribution is verified and **fully approved**:
## 🗂️ Project Structure
```
FaceDetection_Prototype3/
├── app.py # Main Flask application
├── haarcascade_frontalface_default.xml # Pre-trained face detection model
├── requirements.txt # Python dependencies
├── Attendance/ # Modules for attendance logic
├── templates/ # HTML templates (UI)
│ └── home.html
├── static/ # Static assets (CSS, JS, images)
└── pycache/ # Python cache directory
```

✅ **Add at least one screenshot** showing:
- Your code changes running successfully
- The Flask app’s UI or output (e.g., detected faces, attendance mark screen)
## 🤝 How to Contribute

✅ **Attach a short screen recording (10–30 seconds)** demonstrating your changes working live.
You can upload the video as:
- A `.mp4` file inside the `/static/demo/` folder, **OR**
- A public link (Google Drive, Loom, etc.) in your PR description
We love your input! We want to make contributing to this project as easy and transparent as possible.

Example PR description:
```
Added enhanced face detection in app.py
Screenshot
Video demo
```
Please read our detailed contribution guidelines in **[`CONTRIBUTING.md`](CONTRIBUTING.md)** for all the details on how to fork, make changes, and submit your pull requests.

Without screenshots and video proof, **PRs will not be merged**.
## 🧾 Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

## 📊 Project Status

## 🧠 Run This Project Locally
### 🟢 Latest Run Status
![Python](https://img.shields.io/badge/Python-3.8%2B-blue)
![Flask](https://img.shields.io/badge/Flask-2.3.3-green)
![OpenCV](https://img.shields.io/badge/OpenCV-4.8.0-orange)
![Last Commit](https://img.shields.io/github/last-commit/yesiamrajeev/FaceDetection_Prototype3)
![GitHub Issues](https://img.shields.io/github/issues/yesiamrajeev/FaceDetection_Prototype3)

### Install Dependencies
```bash
pip install -r requirements.txt
```
**Build Status**: ✅ Operational
**Last Tested**: October 2024
**Features Working**:
- ✅ Real-time face detection
- ✅ Web interface via Flask
- ✅ Attendance logging system
- ✅ Haar cascade integration

### Run the App
```bash
python app.py
```

Then open your browser and visit:
```
http://127.0.0.1:5000/
```

---

## 🧾 Folder Structure
```
yesiamrajeev/
├── app.py # Main Flask app
├── Attendance/ # Attendance-related logic
├── static/ # Images, CSS, JS, or demo videos
├── templates/ # HTML templates for UI
├── haarcascade_frontalface_default.xml # Face detection model
├── requirements.txt # Required dependencies
└── README.md # You are here
```



## 💡 Pro Tip
Make more than **4 valid PRs** to different repositories to ensure all count towards Hacktoberfest.
> Some repos may be excluded — so always aim for 5+ PRs!
### 🚀 Recent Updates
- **Improved error handling** in `app.py` with better user feedback
- **Enhanced UI/UX** in `templates/home.html` with updated form labels
- **Updated dependencies** in `requirements.txt` for better compatibility
- **Optimized face detection** pipeline in `Attendance/` module

## 👥 Contributors

### 🌟 Our Amazing Team
Thanks to these wonderful developers who made this project better:

## 🌟 Contributors
Thanks to these **wonderful people** 👨🏻‍💻 who made this project better with their contributions!
<!-- CONTRIBUTORS START -->
<!-- CONTRIBUTORS END -->
<!-- Copy this table and add new contributors -->
| Contributor | Role | Key Contributions |
|-------------|------|-------------------|
| [@yesiamrajeev](https://github.com/yesiamrajeev) | Project Maintainer | Project architecture, core face detection, Flask integration |
| [@iamironman-png](https://github.com/iamironman-png) | Contributor | Documentation, code improvements, PR reviews |
| [@abbasabro](https://github.com/abbasabro)| Contributor | Documentation |

✨ _Want to see your name here?_
Start contributing now — your PR will add you to the list automatically after merge!
### 📈 Contribution Stats
![GitHub Contributors](https://img.shields.io/github/contributors/yesiamrajeev/FaceDetection_Prototype3)
![GitHub PRs](https://img.shields.io/github/issues-pr/yesiamrajeev/FaceDetection_Prototype3)
![GitHub Forks](https://img.shields.io/github/forks/yesiamrajeev/FaceDetection_Prototype3)
![GitHub Stars](https://img.shields.io/github/stars/yesiamrajeev/FaceDetection_Prototype3)

## 📞 Connect with the Maintainer

- **Maintainer**: [@yesiamrajeev](https://github.com/yesiamrajeev)
- **Email**: rajeev.220077@gmail.com
- **Location**: Bhubaneswar, India

## 📣 Connect With Me
👤 **Maintainer:** [@yesiamrajeev](https://github.com/yesiamrajeev)
📧 **Email:** rajeev.220077@gmail.com
🌍 **Location:** Bhubaneswar, India
## 📜 License

Follow and ⭐ the repo to stay updated with new contribution ideas!
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

## 🪴 Let's Code. Collaborate. Contribute.
> “Every pull request plants a seed — let’s grow together.” 🌱
> **"Every pull request plants a seed — let’s grow together."** 🌱