SafeSite is an integrated safety solution for construction sites that combines an entry point attendance system with visual recognition technology to ensure workers are equipped with the necessary safety gear. This project aims to enhance safety, ensure compliance with safety regulations, and streamline attendance tracking.
- RFID-based Attendance System: Track worker entry and exit times using RFID cards.
- Visual Recognition: Verify that workers are wearing required safety gear such as helmets and high-visibility vests.
- Data Management: Store and manage attendance records and safety compliance data in a MySQL database.
- Web Interface: Access and manage data through a user-friendly web interface built with Flask.
- Backend and Frontend: Flask (Python)
- Database: MySQL
- Hardware: RFID reader (MFRC522), Raspberry Pi
- Libraries: OpenCV for visual recognition, Flask-CORS for handling CORS, Requests for HTTP requests
- Python 3.x
- MySQL
-
Clone the repository:
git clone https://github.com/NoealRajeev/SiteShield.git cd safesite -
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` pip install -r requirements.txt
-
Configure MySQL database:
- Create a MySQL database named
projects. - Update the
db_configinapp.pywith your MySQL user and password.
- Create a MySQL database named
-
Start the Flask server:
python app.py
- Ensure the Flask server is running.
- Open your browser and navigate to
http://localhost:5001to access the SafeSite web interface.
- Register Users: Add worker details, including their card ID, name, and designation, to the system.
- RFID Scanning: Workers scan their RFID cards at the entry point. The system records their entry time and checks their safety gear.
- Exit Recording: When workers leave the site, they scan their RFID cards again to record their exit time.
- Data Management: Use the web interface to view and manage attendance records and safety compliance data.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.
SafeSite - Enhancing construction site safety through technology.