{"id":19430725,"url":"https://github.com/jmrashed/face-recognition-login-html-python","last_synced_at":"2026-03-04T04:32:04.767Z","repository":{"id":238827331,"uuid":"637958192","full_name":"jmrashed/face-recognition-login-html-python","owner":"jmrashed","description":"This is a web-based login system that uses face recognition to authenticate users. It is built using HTML, CSS, and Python.","archived":false,"fork":false,"pushed_at":"2025-10-01T10:46:12.000Z","size":1016,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T12:33:35.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jmrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-05-08T19:23:45.000Z","updated_at":"2025-10-01T10:46:16.000Z","dependencies_parsed_at":"2024-05-08T11:31:27.846Z","dependency_job_id":"e095031d-bed6-4010-995e-51d55f22b093","html_url":"https://github.com/jmrashed/face-recognition-login-html-python","commit_stats":null,"previous_names":["jmrashed/face-recognition-login-html-python","mrzstack/face-recognition-login-html-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmrashed/face-recognition-login-html-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fface-recognition-login-html-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fface-recognition-login-html-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fface-recognition-login-html-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fface-recognition-login-html-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/face-recognition-login-html-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fface-recognition-login-html-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30071687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-10T14:26:19.445Z","updated_at":"2026-03-04T04:32:04.757Z","avatar_url":"https://github.com/jmrashed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Recognition Login System\n\nA modern web-based authentication system using facial recognition technology. Built with Flask, OpenCV, and the face_recognition library.\n\n## Features\n\n- Real-time face detection and recognition\n- Web-based interface with camera integration\n- Secure user authentication\n- Modern responsive design\n- RESTful API architecture\n\n## Project Structure\n\n```\nface-recognition-login-html-python/\n├── app.py                 # Main Flask application\n├── requirements.txt       # Python dependencies\n├── README.md             # Project documentation\n├── LICENSE.md            # License information\n├── .gitignore           # Git ignore rules\n├── config/              # Configuration files\n│   └── config.py        # Application configuration\n├── src/                 # Source code\n│   ├── static/          # Static assets\n│   │   ├── css/         # Stylesheets\n│   │   ├── js/          # JavaScript files\n│   │   └── images/      # Image assets\n│   └── templates/       # HTML templates\n│       └── login.html   # Login page template\n├── data/                # Data storage\n│   └── users/           # User face images\n├── models/              # ML models (if needed)\n└── temp/                # Temporary files\n```\n\n## Installation\n\n### Prerequisites\n\n- Python 3.7 or higher\n- pip (Python package installer)\n- Webcam or camera device\n\n### Setup\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/jmrashed/face-recognition-login.git\n   cd face-recognition-login-html-python\n   ```\n\n2. **Create virtual environment (recommended)**\n   ```bash\n   python -m venv venv\n   \n   # On Windows\n   venv\\Scripts\\activate\n   \n   # On macOS/Linux\n   source venv/bin/activate\n   ```\n\n3. **Install dependencies**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Add user images**\n   - Place user photos in the `data/users/` directory\n   - Name format: `email@domain.com.jpg`\n   - Example: `john.doe@example.com.jpg`\n\n5. **Run the application**\n   ```bash\n   python app.py\n   ```\n\n6. **Access the application**\n   - Open your browser and go to `http://localhost:5000`\n\n## Usage\n\n1. **Setup User Images**\n   - Add clear, front-facing photos of users to `data/users/`\n   - Use the email address as the filename (e.g., `user@example.com.jpg`)\n\n2. **Login Process**\n   - Enter your email address\n   - Allow camera access when prompted\n   - Click \"Capture \u0026 Login\" to authenticate\n   - The system will compare your face with the stored image\n\n3. **Authentication Results**\n   - ✅ Success: Welcome message displayed\n   - ❌ Failure: Error message with reason\n\n## API Endpoints\n\n### POST /login\nAuthenticate user with face recognition\n\n**Request Body:**\n```json\n{\n  \"email\": \"user@example.com\",\n  \"image\": \"data:image/jpeg;base64,...\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Welcome user@example.com!\"\n}\n```\n\n## Configuration\n\nEdit `config/config.py` to customize:\n- File upload limits\n- Security settings\n- Debug mode\n- Data paths\n\n## Security Considerations\n\n- Store user images securely\n- Use HTTPS in production\n- Implement rate limiting\n- Add proper authentication tokens\n- Validate file uploads\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Camera not working**\n   - Ensure browser has camera permissions\n   - Check if camera is being used by another application\n\n2. **Face not detected**\n   - Ensure good lighting\n   - Face should be clearly visible and front-facing\n   - Remove glasses or masks if possible\n\n3. **Installation errors on Windows**\n   - Install Visual Studio Build Tools\n   - Install CMake\n   - Use Python 3.7-3.9 for better compatibility\n\n### Windows Installation\n\nIf you encounter issues installing dlib or face_recognition:\n\n```bash\n# Install build tools\npip install cmake\npip install dlib\npip install face_recognition\n```\n\nFor persistent issues, install:\n- Visual Studio Build Tools\n- CMake (standalone)\n\n## Development\n\n### Running in Development Mode\n\n```bash\nexport FLASK_ENV=development  # Linux/macOS\nset FLASK_ENV=development     # Windows\npython app.py\n```\n\n### Adding New Features\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests if applicable\n5. Submit a pull request\n\n## Technologies Used\n\n- **Backend**: Flask (Python web framework)\n- **Face Recognition**: face_recognition library\n- **Computer Vision**: OpenCV, dlib\n- **Frontend**: HTML5, CSS3, JavaScript\n- **Styling**: Bootstrap 5\n- **Image Processing**: Pillow (PIL)\n\n## Browser Compatibility\n\n- Chrome 60+\n- Firefox 55+\n- Safari 11+\n- Edge 79+\n\n*Note: Requires browsers with WebRTC support for camera access*\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Acknowledgments\n\n- [face_recognition](https://github.com/ageitgey/face_recognition) library by Adam Geitgey\n- [dlib](http://dlib.net/) library for machine learning\n- Bootstrap for responsive design\n\n## Support\n\nIf you encounter any issues or have questions, please open an issue on GitHub.\n\n---\n\n**Note**: This system is for educational and demonstration purposes. For production use, implement additional security measures and user management features.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fface-recognition-login-html-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrashed%2Fface-recognition-login-html-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fface-recognition-login-html-python/lists"}