{"id":24782150,"url":"https://github.com/danitilahun/face_recognition","last_synced_at":"2026-04-28T23:02:11.995Z","repository":{"id":274621478,"uuid":"923513537","full_name":"Danitilahun/face_recognition","owner":"Danitilahun","description":"This repository likely contains code and resources for implementing facial recognition systems. It may include tools for detecting, analyzing, and recognizing faces in images or videos using machine learning or deep learning techniques. ","archived":false,"fork":false,"pushed_at":"2025-01-28T11:41:54.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T12:33:06.037Z","etag":null,"topics":["face-detection","face-recognition","image-processing","opencv","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Danitilahun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-28T11:37:37.000Z","updated_at":"2025-01-28T12:21:04.000Z","dependencies_parsed_at":"2025-01-28T12:33:08.528Z","dependency_job_id":"bc22633a-fbee-43a9-8d78-b0003131d443","html_url":"https://github.com/Danitilahun/face_recognition","commit_stats":null,"previous_names":["danitilahun/face_recognition"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danitilahun%2Fface_recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danitilahun%2Fface_recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danitilahun%2Fface_recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danitilahun%2Fface_recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danitilahun","download_url":"https://codeload.github.com/Danitilahun/face_recognition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245214353,"owners_count":20578792,"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","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":["face-detection","face-recognition","image-processing","opencv","python"],"created_at":"2025-01-29T11:16:17.006Z","updated_at":"2026-04-28T23:02:11.893Z","avatar_url":"https://github.com/Danitilahun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real Time Face Recognition (OpenCV)\n\nCreate a fast real-time face recognition app with Python and OpenCV.\n\n## Installation\n\n```bash\npip install -r requirements.txt\n```\n\nRequired packages:\n- opencv-python\n- opencv-contrib-python\n- pillow\n- pyyaml\n\n## Configuration\n\nAll settings are stored in `src/settings/settings.py`:\n- Camera settings (resolution, device index)\n- Face detection parameters\n- Training parameters\n- File paths\n- Confidence threshold (how confident the model has to be to recognize a face)\n\nYou can modify these settings without changing the code.\n\n## Usage\n\nThe system works in three steps:\n\n### 1. Capture Face Data\nRun `face_taker.py` to capture training images:\n```bash\npython src/face_taker.py\n```\n- Enter your name when prompted\n- :rotating_light: The script captures 120 images of your face. Make sure to have a good lighting and move your head around to capture different angles.\n- Keep your face centered in the frame\n- Images are saved in the `images` folder\n- Your name and ID are stored in `names.json`\n- Press 'ESC' to exit early\n\nFormat of `names.json`:\n```json\n{\n    \"1\": \"Joe\",\n    \"2\": \"Jane\"\n}\n```\n\n### 2. Train the Model\nRun `face_train.py` to create the recognition model:\n```bash\npython src/face_trainer.py\n```\n- Processes all images in the `images` folder\n- Creates a trained model file `trainer.yml`\n- Shows number of faces trained\n\nNote: Training images are saved as: `Users-{id}-{number}.jpg`\n### 3. Run Face Recognition\nRun `face_recognizer.py` to start real-time recognition:\n```bash\npython src/face_recognizer.py\n```\n- Your webcam will open and start recording\n- Recognizes faces in real-time\n- Shows name and confidence level\n- Press 'ESC' to exit\n\n## Project Structure\n```\n├── src/\n│   ├── settings/\n│   │   ├── __init__.py      # init file\n│   │   ├── settings.py      # Configuration settings\n│   ├── __init__.py      # init file\n│   ├── face_taker.py    # Capture training images\n│   ├── face_trainer.py  # Train the model\n│   └── face_recognizer.py # Real-time recognition\n├── images/              # Training images\n├── names.json           # Name-ID mappings\n└── trainer.yml          # Trained model\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanitilahun%2Fface_recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanitilahun%2Fface_recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanitilahun%2Fface_recognition/lists"}