{"id":23136969,"url":"https://github.com/shayanriyaz/drowsy-detector","last_synced_at":"2025-07-18T03:09:17.596Z","repository":{"id":90554412,"uuid":"298759237","full_name":"ShayanRiyaz/Drowsy-Detector","owner":"ShayanRiyaz","description":"Helping people sleep on the road but in a safe way.","archived":false,"fork":false,"pushed_at":"2020-09-27T15:38:33.000Z","size":71696,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"new-master","last_synced_at":"2025-04-04T09:29:01.943Z","etag":null,"topics":["hackathon","javascript","ml","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/ShayanRiyaz.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":"2020-09-26T07:14:42.000Z","updated_at":"2020-12-04T13:38:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8020b7a-514c-438b-8d03-e8761b96a3c2","html_url":"https://github.com/ShayanRiyaz/Drowsy-Detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShayanRiyaz/Drowsy-Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayanRiyaz%2FDrowsy-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayanRiyaz%2FDrowsy-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayanRiyaz%2FDrowsy-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayanRiyaz%2FDrowsy-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShayanRiyaz","download_url":"https://codeload.github.com/ShayanRiyaz/Drowsy-Detector/tar.gz/refs/heads/new-master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayanRiyaz%2FDrowsy-Detector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261031333,"owners_count":23100014,"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":["hackathon","javascript","ml","python"],"created_at":"2024-12-17T12:26:21.008Z","updated_at":"2025-06-20T22:41:10.326Z","avatar_url":"https://github.com/ShayanRiyaz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cdiv align = \"center\"\u003eDrowsy Detector\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\"\u003e\n\u003c/p\u003e\n\n## ShellHacks Competition\n\n\nHow to run for now:\n\n1. If dependencies haven't been installed run:\n```pip install -r requirements.txt```\n\n2. run\n```python VideoStreaming/main.py```\n\n\n## Functions\n\n### Step 1\n```get_frame()```\n'''\nUses camera to track the users eyes, in case user has eyes closed for more than 15 frames, send ```Alert```.\n'''\n### Step 2\n```\ndef simulated_user_path(start_address, end_address):\n    points = get_points_along_path(API_KEY,start_address,end_address)\n\n    times,coords = [],[]\n    for time,geo in points.items():\n        times.append(times)\n        coords.append(geo)\n    \n    return times,coords\n```\nCreates a simulated user path from ```start_address``` to ```end_address``. This path also includes the latitude and longitude generated by the external algorithm.\n \n### Step 3 \n ```find_places(journey_coords_1,journey_coords_2)``` \n Gets the users current-coodinates and When Drowsey alert is recieved finds the closest ```gas_station```\n\n### Step 4\n``` updateGraphData()``` :Function in /VideoStreaming/static/scripts/script.js Updates the Drowsy instance vs time graph.\n\n\n\nThank you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayanriyaz%2Fdrowsy-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshayanriyaz%2Fdrowsy-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayanriyaz%2Fdrowsy-detector/lists"}