{"id":19416879,"url":"https://github.com/jocelynvelarde/shell-hacks-2024","last_synced_at":"2026-06-14T08:32:58.077Z","repository":{"id":259696113,"uuid":"864370763","full_name":"JocelynVelarde/Shell-Hacks-2024","owner":"JocelynVelarde","description":"EmergencyAct uses surveillance cameras to detect accidents and emergencies in real-time, providing essential insights and support.","archived":false,"fork":false,"pushed_at":"2024-10-03T00:44:14.000Z","size":110464,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T03:31:22.871Z","etag":null,"topics":["computer-vision","generative-ai","mobility-data","transportation"],"latest_commit_sha":null,"homepage":"https://emergencyvision.streamlit.app","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/JocelynVelarde.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-28T03:46:56.000Z","updated_at":"2024-10-21T01:58:45.000Z","dependencies_parsed_at":"2024-10-27T12:30:55.663Z","dependency_job_id":null,"html_url":"https://github.com/JocelynVelarde/Shell-Hacks-2024","commit_stats":null,"previous_names":["jocelynvelarde/shell-hacks-2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JocelynVelarde/Shell-Hacks-2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JocelynVelarde%2FShell-Hacks-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JocelynVelarde%2FShell-Hacks-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JocelynVelarde%2FShell-Hacks-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JocelynVelarde%2FShell-Hacks-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JocelynVelarde","download_url":"https://codeload.github.com/JocelynVelarde/Shell-Hacks-2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JocelynVelarde%2FShell-Hacks-2024/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34315072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":["computer-vision","generative-ai","mobility-data","transportation"],"created_at":"2024-11-10T13:05:58.155Z","updated_at":"2026-06-14T08:32:58.061Z","avatar_url":"https://github.com/JocelynVelarde.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# EmergencyAct: Creating a Safer World for All \n\nCreated for ShellHacks 2024 🦖🌴\n\n**1st Place Winners in @Waymo challenge**\n\n## Authors\n\n- [@JocelynVelarde](https://github.com/JocelynVelarde)\n- [@htovarm7](https://github.com/htovarm7)\n- [@JLDominguezM](https://github.com/JLDominguezM)\n- [@morozovdd](https://github.com/morozovdd)\n\n# Features\nEmergencyAct uses surveillance cameras to detect accidents and emergencies in real-time, providing essential insights and support.\n\n### Main Infrastructure Features\n#### Computer Vision Tools\n- **Object Detection:** Detects a variety of people in an area.\n- **Pose Estimation:** Identifies if a person is in a dangerous position.\n- **Privacy Preservation:** Maintains privacy by using tags without saving biometric data.\n- **Pose Coordinate Change:** Utilizes LLM to determine the position of individuals.\n- **Accident Prevention Recommendations:** Provides suggestions to enhance safety.\n\n#### Generative AI Tools\n- **Timestamp Detection:** Uses Vision AI to detect the time of a fall.\n- **Relative Position Analysis:** Determines the accident location relative to the individual.\n- **Cause Analysis:** Analyzes potential causes based on timestamps.\n- **Emergency Call Prompting:** Crafts messages to call emergency services using text-to-speech.\n- **Dashboard Summary:** Displays a summary of accidents and emergencies.\n\nWe combine various tools to enhance safety in your spaces.\n\n## Tools Used\n- 📌 **Computer Vision:** OpenCV\n- 📌 **Natural Language Processing:** GPT-3.5 Turbo, prompt classification\n- 📌 **Generative AI:** GPT-4-o, base64 image encoding\n- 📌 **Data Visualization:** Plotly\n- 📌 **Model Vision** YOLOv8mpose, ultralytics, pytorch\n- 📌 **Machine Learning** Random Forest (97% test set accuracy), MLP (97% test set accuracy)\n- 📌 **libraries** streamlit, CV2, ultralytics, numpy, base64, os, requests, openai, collections, datetime, torch, pickle, sklearn, joblib, pandas, numpy, fastapi, shutil, pymongo, urllib, aiohttp, json, PIL, gridfs, BASE64.\n\n## Structure\n```bash\nstreamlit_app \n├─ home.py\n├─ .streamlit\n│   └─ secrets.toml\n├─ algorithms\n│  └─ BB_prompt.py\n│  └─ gpt_vision.py\n├─ api\n│  └─ main.py\n├─ assets\n│  └─ images\n├─ features\n│  └─ call_or_sms.py\n│  └─ prompt.py\n├─ input\n│  └─ input_video.avi\n│  └─ input1.avi\n├─ pages\n│  └─ Accident location.py\n│  └─ Cause of accident.py\n│  └─ Emergency call.py\n│  └─ instructions.py\n│  └─ Video analysis.py\n```\n\nDeployed with: Streamlit Cloud\n\n  ## Docs\n\n[DevPost](https://devpost.com/software/emergencyact)\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjocelynvelarde%2Fshell-hacks-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjocelynvelarde%2Fshell-hacks-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjocelynvelarde%2Fshell-hacks-2024/lists"}