{"id":21510125,"url":"https://github.com/pradeep31747/real-time_driver_distraction_detection","last_synced_at":"2026-05-01T23:39:43.970Z","repository":{"id":249901479,"uuid":"832901743","full_name":"Pradeep31747/Real-Time_Driver_Distraction_Detection","owner":"Pradeep31747","description":"The Project aims to enhance road safety by utilizing machine learning and computer vision techniques to identify and alert against driver distractions in real-time. ","archived":false,"fork":false,"pushed_at":"2024-07-24T01:36:00.000Z","size":2496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T15:17:45.929Z","etag":null,"topics":["distracted-driving","keras-tensorflow","opencv","python","real-time"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/Pradeep31747.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":"2024-07-24T00:53:46.000Z","updated_at":"2024-07-24T01:36:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"be07841e-cc21-48d7-9475-544cd3c6ee1a","html_url":"https://github.com/Pradeep31747/Real-Time_Driver_Distraction_Detection","commit_stats":null,"previous_names":["pradeep31747/real-time_driver_distraction_detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pradeep31747/Real-Time_Driver_Distraction_Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradeep31747%2FReal-Time_Driver_Distraction_Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradeep31747%2FReal-Time_Driver_Distraction_Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradeep31747%2FReal-Time_Driver_Distraction_Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradeep31747%2FReal-Time_Driver_Distraction_Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pradeep31747","download_url":"https://codeload.github.com/Pradeep31747/Real-Time_Driver_Distraction_Detection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradeep31747%2FReal-Time_Driver_Distraction_Detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["distracted-driving","keras-tensorflow","opencv","python","real-time"],"created_at":"2024-11-23T21:46:45.852Z","updated_at":"2026-05-01T23:39:43.946Z","avatar_url":"https://github.com/Pradeep31747.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time-Driver-Distraction-Detection\n\nWe've all been there: a light turns green and the car in front of you doesn't budge. \nOr, a previously unremarkable vehicle suddenly slows and starts swerving from side-to-side.\n\nWhen you pass the offending driver, what do you expect to see? \nYou certainly aren't surprised when you spot a driver who is texting, seemingly enraptured by social media,\nor in a lively hand-held conversation on their phone.\n\n![model](./1.PNG)\n\nThe 10 classes to predict are:\n\n- c0: normal driving\n- c1: texting - right\n- c2: talking on the phone - right\n- c3: texting - left\n- c4: talking on the phone - left\n- c5: operating the radio\n- c6: drinking\n- c7: reaching behind\n- c8: hair and makeup\n- c9: talking to passenger\n\n![model](./2.PNG)\n![model](./3.PNG)\n\n### Dependency\n\nThe main Python packages:\n- [Opencv](http://opencv.org/)\n- [NumPy](http://www.numpy.org/)\n- [TensorFlow](http://tensorflow.org)\n- [Keras](https://keras.io)\n\nThe running environment is [Jupyter Notebook](https://jupyter.org/install.html).\n\n### Data\n\nThe dataset is provided by [Kaggle State Farm](https://www.kaggle.com/c/state-farm-distracted-driver-detection/submissions?sortBy=date\u0026group=successful\u0026page=1). You can down load the dataset after creating an ancount.\n\nThe directory should be name as \"capserver\". Under this directory, there should be three folders: \"data\", \"cache\", \"subm\". \n\nThe \"data\" folder is used for the dataset. The cache is created for the storage of the weights and data. And the submission file \".csv\" will be created in the subm folder.\n\n### Run\n\nIn the command line, make sure the you are in the \"capserver\" folder, then run the command as below:\n\n```bash\njupyter notebook final.ipynb\n```\n\nIt will start the jupyter notebook and open the project file in your browser \n\nThe total running time will be around 12 hours in the AWS server P2.xlarge. The running result can be seen in the .ipynb file.\n\n### Application\n\nThe real-time camera application is built in .py file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep31747%2Freal-time_driver_distraction_detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradeep31747%2Freal-time_driver_distraction_detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep31747%2Freal-time_driver_distraction_detection/lists"}