🚀 Revolutionize employee attendance tracking with real-time face recognition!
This web application leverages cutting-edge face recognition technology to record employee presence in real-time, log entries, and generate exportable PDF reports. Perfect for modern workplaces!
Future Enhancements with Blockchain Integration
- 1. Immutable Attendance Logs
- 2. Tamper-Proof Audit Trails
- 3. Decentralized Access Control
- 4. Smart Contracts for Payroll Automation
✅ Upload User Image for Recognition
✅ Real-time face recognition with high accuracy
✅ Automatic logging of entry timestamps
✅ Export logs to PDF format for easy reporting
✅ Intuitive web-based interface
Before you begin, ensure the following are installed on your system:
- Node.js (Download from nodejs.org)
- npm (Comes bundled with Node.js)
-
Clone the Repository (If using Git):
git clone https://github.com/your-username/Employee-Entry-Management.git cd Employee-Entry-Managementhttps://github.com/HarK-github/Employee-Entry-Management.githttps://github.com/HarK-github/Employee-Entry-Management.git -
Install Dependencies:
npm install
-
Setup Environment Variables:
- Create a
.envfile in the project root directory. - Add the following configuration:
PORT=8080
- Create a
-
Start the Server:
node index.js
-
Access the Application:
- Open your browser and navigate to:
http://localhost:8080
- Open your browser and navigate to:
-
Click Login to Enter:
- Note: Authentication is currently a dummy page for demonstration purposes.
-
Allow Web Camera Access:
- Grant camera access when prompted by your browser.
-
Upload User Image for Face Recognition:
- Navigate to:
http://localhost:8080/updateimg - Upload your profile image (e.g., "user.png") to the designated folder (e.g.,
/uploads). - This image will be used for face matching during entry detection.
- Click Upload to proceed.
- Navigate to:
-
Start Face Recognition:
- Click Start Capture to begin real-time face recognition.
- The system will detect your presence and update the Work History section.
-
Download Work Report as PDF:
- Click Download Report to export the attendance log as a PDF.
- The PDF will be saved to your device.
- Frontend: HTML, CSS, JavaScript, EJS
- Backend: Node.js, Express.js
- Face Recognition:
face-api.js
- Every employee check-in is hashed (timestamp + user ID + device fingerprint) and recorded on-chain.
- Ensures a tamper-proof and verifiable record of attendance—ideal for audits and compliance.
- ✅ Tech Stack:
Hyperledger Fabricfor private enterprise environmentsEthereum (Goerli or Sepolia testnet)for public prototyping
- Any manual intervention (e.g., HR edits, late log justifications) is also hashed and stored on the blockchain.
- Enables a fully transparent, non-repudiable log of access/modifications, with full traceability of who did what and when.
- Makes post-incident investigations easy and trustworthy.
- Leverage smart contracts to manage role-based access:
- Employees, HR, Admins each have specific permissions.
- Use wallet-based authentication (e.g., MetaMask) to verify identities and sign actions.
- Eliminates reliance on traditional username/password systems.
- Seamlessly link attendance data with payroll through smart contracts.
- If attendance meets policy thresholds (e.g., minimum check-ins), the contract auto-approves salary release.
// Solidity-style pseudocode for payroll logic
if (employeeCheckIns[employeeId][month] >= requiredDays) {
payrollContract.releaseSalary(employeeWallet);
}
|
Harshit Kandpal 👨💻 🔗 |