{"id":24986994,"url":"https://github.com/hitthecodelabs/drowsinessdetection-nextjs","last_synced_at":"2025-03-29T10:47:31.665Z","repository":{"id":207249979,"uuid":"718515194","full_name":"hitthecodelabs/DrowsinessDetection-nextjs","owner":"hitthecodelabs","description":"A real-time drowsiness detection Nextjs system using a webcam feed","archived":false,"fork":false,"pushed_at":"2023-11-14T20:40:23.000Z","size":12727,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T11:44:05.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hitthecodelabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-14T08:39:57.000Z","updated_at":"2023-11-14T20:17:36.000Z","dependencies_parsed_at":"2023-11-14T21:37:32.426Z","dependency_job_id":null,"html_url":"https://github.com/hitthecodelabs/DrowsinessDetection-nextjs","commit_stats":null,"previous_names":["hitthecodelabs/drowsinessdetection-nextjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FDrowsinessDetection-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FDrowsinessDetection-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FDrowsinessDetection-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitthecodelabs%2FDrowsinessDetection-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitthecodelabs","download_url":"https://codeload.github.com/hitthecodelabs/DrowsinessDetection-nextjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174531,"owners_count":20735413,"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":[],"created_at":"2025-02-04T11:35:13.146Z","updated_at":"2025-03-29T10:47:31.648Z","avatar_url":"https://github.com/hitthecodelabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DrowsinessDetection-nextjs\n\n## Description\nThis project implements a real-time drowsiness detection system using Next.js and `face-api.js`. The system utilizes a webcam to monitor the user and detect signs of drowsiness through the calculation of the Eye Aspect Ratio (EAR), a common indicator of eye fatigue and drowsiness.\n\n## Features\n- Real-time face detection using a webcam.\n- Calculation of EAR to determine if the user's eyes are closed.\n- Audible alarm alert when drowsiness is detected.\n- Implemented using Next.js for a smooth and modern user experience.\n\n## Technologies Used\n- Next.js\n- React\n- TypeScript\n- `face-api.js` for face detection and EAR calculation.\n- Web Audio API for alarm generation.\n\n## Installation and Usage\nTo use this project, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/hitthecodelabs/DrowsinessDetection-nextjs.git\n```\n2. Navigate to the project directory:\n```bash\ncd DrowsinessDetection-nextjs\n```\n3. Install dependencies:\n```bash\nnpm install\n```\n4. Start the development server:\n```bash\nnpm run dev\n```\n5. Open your browser and go to `http://localhost:3000`.\n\n## Additional Setup\n- Ensure the `face-api.js` model files are placed in the `public/models` directory.\n- Models include `tiny_face_detector_model-weights_manifest.json`, `face_landmark_68_model-weights_manifest.json`, and associated shard files for each model.\n\n## Contributions\nContributions are welcome. Please create a pull request to propose improvements or open an issue to discuss what you would like to change.\n\n## License\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fdrowsinessdetection-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitthecodelabs%2Fdrowsinessdetection-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitthecodelabs%2Fdrowsinessdetection-nextjs/lists"}