{"id":28939220,"url":"https://github.com/dipan313/sarathi","last_synced_at":"2026-04-02T18:51:59.226Z","repository":{"id":300447985,"uuid":"1005976317","full_name":"dipan313/SARATHI","owner":"dipan313","description":"🚘 SARATHI – A real-time AI-based attention monitoring system for drivers and pilots that detects drowsiness, posture issues, and inattention. Built with Python, MediaPipe, OpenCV, and Streamlit.","archived":false,"fork":false,"pushed_at":"2025-06-21T18:35:35.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T19:25:05.426Z","etag":null,"topics":["blinker","matplotlib","mediapipe","opencv","pygame","python","raspberry-pi","streamlit","t"],"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/dipan313.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,"zenodo":null}},"created_at":"2025-06-21T07:56:20.000Z","updated_at":"2025-06-21T18:35:38.000Z","dependencies_parsed_at":"2025-06-21T19:35:25.239Z","dependency_job_id":null,"html_url":"https://github.com/dipan313/SARATHI","commit_stats":null,"previous_names":["dipan313/sarathi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dipan313/SARATHI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipan313%2FSARATHI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipan313%2FSARATHI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipan313%2FSARATHI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipan313%2FSARATHI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipan313","download_url":"https://codeload.github.com/dipan313/SARATHI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipan313%2FSARATHI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386809,"owners_count":23150873,"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":["blinker","matplotlib","mediapipe","opencv","pygame","python","raspberry-pi","streamlit","t"],"created_at":"2025-06-23T00:07:16.104Z","updated_at":"2025-12-30T21:31:53.282Z","avatar_url":"https://github.com/dipan313.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚘 SARATHI – Unified Attention Monitoring for Transportation\n\n\u003e \"A moment’s lapse. A lifetime lost. SARATHI watches, warns, and saves.\"\n\n---\n\n\n## 📍 Overview\n\n**SARATHI** is a real-time AI-based driver and pilot attention monitoring system that **detects drowsiness**, **unsafe posture**, and **inattentiveness**. It serves as a **digital co-pilot**, ensuring that no fatigue-related accident goes unnoticed.\n\nDeveloped during **Hack4Bengal 4.0** – Eastern India's Largest Hackathon, SARATHI addresses one of the deadliest causes of transport-related deaths — **fatigue**.\n\n---\n\n## YouTube Video Link : https://youtu.be/lDf7jZFTieQ\n\n---\n\n\n| Front View | Side View |\n|--------|---------|\n| ![Front View](https://github.com/user-attachments/assets/8fb8087d-81d5-4952-8b27-e60a220ff531) | ![Side View](https://github.com/user-attachments/assets/3d908436-dbb5-400b-803e-ace2f6a058f7) |\n\n\n\n## 🚀 Key Features (USPs)\n\n- ✅ **Dual-layer Detection**: Simultaneously monitors **eye behavior**, **head pose**, and **body posture**\n- 🖼 **Screenshot Capture**: Takes periodic screenshots during alert states  \n- 📣 **Smart Alerts**: Audio alarm + visual warnings when fatigue is detected  \n- 💡 **Lightweight**: No heavy ML models — optimized for laptops \u0026 Raspberry Pi  \n- 🔋 **Low Resource Usage**: CPU-efficient, real-time performance  \n- 🔧 **Fully Modular**: Easily extendable for dual camera or IoT deployment\n\n---\n\n## 📊 Impact \u0026 Benefits\n\n| 🚗 Road Safety | 🚌 Fleet Monitoring | ✈ Pilot Awareness |\n|----------------|---------------------|--------------------|\n| Reduces fatigue-related accidents | Real-time monitoring for public transport | Can scale to cockpit fatigue detection |\n\n---\n\n## 🧠 Tech Stack\n\n| Category | Tools/Technologies |\n|---------|-------------------|\n| Language | Python |\n| Libraries | OpenCV, MediaPipe, NumPy, Pygame |\n| UI | Streamlit |\n| Audio | Pygame |\n| Utilities | jsonschema, tornado |\n| Future Hardware | Raspberry Pi 4, external buzzer/cam |\n\n---\n\n## ⚙ Installation \u0026 Run Guide\n\n### 🔄 1. Clone the Repository\n\nbash\ngit clone https://github.com/your-username/sarathi.git\n\nbash\ncd sarathi\n\n\n### 🛠 2. Install Requirements\n\nbash\npip install -r requirements.txt\n\n\n### ▶ 3. Launch the App\n\nbash\nstreamlit run driver_state_detection/app.py\n\n\n\u003e ⚠ Make sure your webcam is connected and accessible.\n\n---\n\n## 🧪 Technical Workflow\n\nSARATHI performs **attention analysis** using:\n- 👁 **Eye landmarks** to detect prolonged closure or gaze shifts\n- 🧠 **Head pose** (pitch, yaw, roll) to monitor orientation\n- 🧍 **Posture deviation** using shoulder \u0026 spine angles\n\n🧠 **If any threshold is crossed**:\n- Screenshot is captured\n- Audio alarm is triggered\n- Visual status bar updates on Streamlit UI\n\n---\n\n## 🧗‍♂ Challenges Faced\n\n- ⚠ Real-time processing without GPU\n- 🌙 Handling low-light conditions\n- ❗ Ensuring accuracy while minimizing false alarms\n- 📐 Angle-sensitive posture detection\n- 🧠 Calibrating thresholds across multiple face orientations\n\n---\n\n## 🌱 Future Enhancements\n\n- 📷 **Dual camera setup** (side + front view) using IoT (e.g., Raspberry Pi)\n- 🧘 **User posture calibration** on startup for custom thresholds\n- ✋ **Gesture-based alert dismissal** using hand detection\n- 🚨 **SOS Trigger**: Auto-message if alert persists beyond limit\n- 🌒 **Night mode** via IR camera support\n\n---\n\n## 🏁 Developed At\n\n**Hack4Bengal 4.0 – June 2025**  \nTeam Name: **Dot Slash**  \nTeam Lead: **Dipan Mazumder**  \nTeam Member: **Subhas Pramanik**\n\n---\n\n## 🕉 Why the Name \"SARATHI\"?\n\nIn ancient Indian tradition, *SARATHI* means “charioteer” — the one who safely drives the warrior through chaos.  \nIn our context, SARATHI acts as a *modern digital guide, **monitoring attentiveness, **preventing fatigue-induced danger, and **saving lives* through intelligence.\n\n---\n\n## 📬 Contact\n\n| 📧 Email | 💻 GitHub | 🔗 LinkedIn |\n|----------|-----------|--------------|\n| [Dipan Mazumder](mailto:dipanmazumder313@gmail.com)\u003cbr\u003e[Subhas Pramanik ](mailto:subhaspramanik38@gmail.com) | [Dipan Mazumder](https://github.com/dipan313)\u003cbr\u003e[Subhas Pramanik](https://github.com/subhas-pramanik-09) | [Dipan Mazumder](https://www.linkedin.com/in/dipan-mazumder-953453279/)\u003cbr\u003e[Subhas Pramanik](https://www.linkedin.com/in/subhas-pramanik) |\n\n---\n\n\u003e Built to protect. Designed to alert. SARATHI is not just code — it's a life-saving companion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipan313%2Fsarathi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipan313%2Fsarathi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipan313%2Fsarathi/lists"}