惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
J
Java Code Geeks
爱范儿
爱范儿
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
The GitHub Blog
The GitHub Blog
I
InfoQ
月光博客
月光博客
博客园 - 聂微东
博客园 - Franky
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built a local first AI CCTV assistant using Gemma 4 + F...
Dhanush Redd · 2026-05-25 · via DEV Community

This is a submission for the Gemma 4 Challenge: Build with Gemma 4

What I Built

I Built a local-first AI CCTV assistant Using Gemma 4, Frigate, and Home Assistant

Most CCTV notifications are noisy and not actually useful.

Typical camera alerts are mostly:

Motion detected at Front Door

That tells me something happened, but not what actually happened.

Was it:

  • a delivery person?
  • someone waiting outside?
  • a suspicious stranger?
  • or just random movement?

I wanted a system that could intelligently summarize what was happening on my cameras while keeping everything completely local and privacy-friendly.

So I built a local AI-powered surveillance assistant using:

  • Frigate for movement detection
  • Home Assistant for automations
  • Gemma 4 running locally through Ollama
  • Mobile notifications for real-time summaries

Now instead of generic motion alerts, I receive notifications like:

“A person wearing a dark shirt approached the gate, waited briefly, and left.”

All processed locally without sending any footage to the cloud.

The system continuously monitors my WiFi connected CCTV cameras using Frigate. Frigate is an open-source NVR that performs real-time object detection on video feeds. You can learn more about Frigate here.

How it works

Whenever Frigate detects a person:

  1. Relevant frames are sent to a locally running Gemma 4 model
  2. Frigate creates an event with the video clip and the AI summary.
  3. Home Assistant automation triggers
  4. A rich notification is sent directly to my phone

The result is a much more useful home surveillance experience.

Instead of manually checking every alert, I can instantly understand what happened from the notification itself.

Demo

Demo notification

Video demo will be added here soon.

Code

You can find the YAML configuration for Frigate and Home Assistant automations in this GitHub Gist.

Update prompt and other alert / review settings as per your requirements in the Frigate config

If you run into any issues while setting it up, feel free to comment below. Your WiFi cameras should provide an RTSP stream that can be integrated into the Frigate configuration. Just refer to your camera’s documentation for instructions on retrieving the stream URL.

How I Used Gemma 4

I used the gemma4:e2b model running locally through Ollama.

The model runs inside a dedicated Proxmox container with GPU passthrough enabled for faster inference.

I specifically chose E2B variant because:

  • it is lightweight enough for local deployment
  • inference latency is low
  • it works well for concise visual summarization tasks

Without Gemma 4, the system would only know:

“A person was detected.”

With Gemma 4, the system understands and communicates:

  • what the person is doing
  • where they moved
  • how long they stayed
  • and whether the event is important

That dramatically improves the usefulness of camera notifications.