{"slug": "i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam", "title": "🚗 I Built DriveSafe So My Friends Never Have to Scrub Through Hours of Dashcam Footage Again", "summary": "A developer built DriveSafe, a privacy-first platform that uses AI to automatically flag important moments in dashcam footage—such as pedestrians, cyclists, close vehicle encounters, and sudden scene changes—and lets users search past drives in natural language. The system runs on Google's open-weight Gemma 4 vision models via Ollama for local inference, with Temporal orchestrating the video-processing workflow and MongoDB Atlas Vector Search storing 768-dimensional embeddings for historical retrieval. It ships with one-click Docker deployment, an interactive timeline, and FFmpeg clip generation.", "body_md": "*This is a submission for the [Hacktoberfest Weekend Challenge: Build for a Friend](https://dev.to/challenges/hacktoberfest-weekend-2026-10-01)*\n\n**DriveSafe** is a privacy-first AI platform that turns hours of dashcam footage into an intelligent, searchable driving history.\n\nA few of my friends drive regularly and use dashcams. Quite often, someone might cross the road unexpectedly, a close call might happen, or another driver might do something unusual, and they need to find that exact moment in the dashcam footage.\n\nThe problem is that finding one specific moment in hours of video can take several minutes of manually scrubbing through the recording.\n\nI built **DriveSafe** to make this simple. Instead of searching through the entire video, AI identifies important moments automatically and helps you quickly find the exact part of the drive you are looking for.\n\nDriveSafe automatically identifies potentially important moments such as **pedestrians, cyclists, close vehicle encounters, and sudden scene changes**, creates clips and an interactive timeline, and lets you search historical drives using natural language.\n\n🚗 **Live Demo:** [https://drivesafe-gs66.onrender.com/](https://drivesafe-gs66.onrender.com/)\n\n🎥 **Video Demo:** [https://drive.google.com/file/d/1eD3sBaNlxmHwgaiHW-d83Q-_5YtZhKxQ/view?usp=sharing](https://drive.google.com/file/d/1eD3sBaNlxmHwgaiHW-d83Q-_5YtZhKxQ/view?usp=sharing)\n\n💻 **GitHub:** [https://github.com/Mahir-Neema/drivesafe](https://github.com/Mahir-Neema/drivesafe)\n\nDriveSafe is built around **Google Gemma 4**, with **Temporal** handling the durable video-processing workflow.\n\nThe pipeline is:\n\n**Dashcam Video → Temporal Workflow → Frame Extraction → Gemma Vision Analysis → Event Detection → Clip Generation → Embeddings → MongoDB → Searchable Timeline**\n\nI use **Gemma 4 26B** for cloud-based analysis and **Gemma through Ollama** for local, offline inference. Events are embedded using `nomic-embed-text` and stored in MongoDB for vector search across historical drives.\n\nThe project can also be started locally with Docker, including MongoDB and Ollama.\n\nDashcam footage can contain highly personal information, so privacy was a major consideration.\n\nUsing **open-weight Gemma models with Ollama**, DriveSafe can process footage completely locally. In Local Edge Mode, video frames and telemetry remain on the user's machine instead of being sent to external cloud servers.\n\nOpen technologies also made it possible to combine **Gemma, Ollama, Temporal, FFmpeg, MongoDB, and Docker** into one end-to-end system.\n\nImplements **Atlas Vector Search** over **768-dimensional embeddings** to create long-term historical dashcam memory and enable natural-language retrieval across previous drives.\n\nOrchestrates a resilient, durable **`VideoAnalysisWorkflow`** with real-time progress queries, automated retries, heartbeats, and decoupled activity workers.\n\nUses **Gemma 4 vision models** in a dual-inference setup:\n\nDriveSafe combines AI-powered video understanding with a complete end-to-end product experience, including **1-click Docker deployment, interactive timeline visualization, FFmpeg clip generation, vector search, historical drive memory, and automated verification tests**.", "url": "https://wpnews.pro/news/i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam", "canonical_source": "https://dev.to/mahir_neema/drivesafe-35mh", "published_at": "2026-10-04 23:32:10+00:00", "updated_at": "2026-10-04 23:42:08.344217+00:00", "lang": "en", "topics": ["computer-vision", "ai-tools", "ai-products", "mlops", "ai-agents"], "entities": ["DriveSafe", "Google Gemma 4", "Ollama", "Temporal", "MongoDB", "FFmpeg", "Docker", "nomic-embed-text"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam", "markdown": "https://wpnews.pro/news/i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam.md", "text": "https://wpnews.pro/news/i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam.txt", "jsonld": "https://wpnews.pro/news/i-built-drivesafe-so-my-friends-never-have-to-scrub-through-hours-of-dashcam.jsonld"}}