[{"content":" Cover photo blurred to protect my location.\nIntro I don\u0026rsquo;t love handing over my sensitive data to Big Tech. When I considered getting a home surveillance system to watch my cat, I worried about where that data was ending up.\nSo I thought why not keep it local.\nAfter a bit of research I found Frigate NVR which addressed all my concerns and came with some pretty powerful features to play with.\nBelow I talk about how I configured Frigate with object detection, face recognition, and more on afforadable hardware!\nHardware Cameras Prices below as of 2026:\n- 4x Tapo C101 (Used on Amazon - $50) - 2x Tapo C217 (Amazon - $60) Im using the C101 camera model indoors and the C217 outdoors.\nBoth of these models support RTSP; the C217 also supports pan/tilt features over ONVIF. PC Hardware You will want a mid-range PC with a decent GPU or a Raspberry Pi to run Frigate.\nObject detection will be best with an AI Coprocessor. If you dont have one but want to test out detection, you could also configure a dedicated GPU to run a lightweight model.\nI\u0026rsquo;m using the Google Coral TPU USB Accelerator (Amazon - ~$100) to run my object detection. This is only one option of many. See Frigate docs for more.\nMy GPU is an NVIDIA GeForce RTX 2060 purchased nearly 10 years ago. All I need it for is rendering the camera stream, but it handles lightweight AI models just fine through the ONNX format.\nTotal cost for cameras and AI Coprocessor: $210.00\nSoftware PC Environment Docker Frigate runs on Docker. Some experience here will go a long way, but it\u0026rsquo;s doable for a beginner and Frigate thorough documentation.\nMake sure you\u0026rsquo;re comfortable with creating containers with a docker-compose.yaml config file, bind mounting, port mapping, and reading the build time logs. These skills will be helpful if things go south.\nOperating System My flavor of Linux is CachyOS. I find Linux a bit more compatible with Docker, but I\u0026rsquo;ve also spun up Frigate containers in Windows no problem. Storage You\u0026rsquo;re gonna want a good amount of storage reserved for the detections and recordings. It all depends on what you choose to record/detect. I have 500GB reserved, but I only save recordings for 72 hours so I rarely cross 200GB of utilization.e\nTailscale Spinning up a container on your home PC is great for keeping your data local, but it\u0026rsquo;s not very useful if you can\u0026rsquo;t deploy outside your home network.\nThat\u0026rsquo;s where Tailscale comes in!\nTailscale lets me set up a private network, aka Tailnet, where I can control who gets in through a convenient desktop or mobile app. That way I can route my home network traffic through a Zero Trust connectivity platform to devices pretty much anywhere.\nI won\u0026rsquo;t bother going over set up of Tailscale; it\u0026rsquo;s quite painless. Just make sure you read up on security and understand the risks.\nCameras The Tapo cameras require you to create an account for setup. After the initial setup, the cameras stream directly to TP-Links proprietary cloud platform.\nI dont love that\u0026hellip;\nI opted to configure RTSP streams and route them locally, while preventing the cameras from directly accessing the internet.\nNOTE: TP-Link does not make it easy to keep the camera streams isolated from external servers. If it were up to me this would be a toggle switch.\nIn order to prevent camera streams from reaching Tapo servers, you must configure each camera with a static IP and a bad gateway. You should do so only after you\u0026rsquo;ve set up the RTSP streams in Frigate.\nConfiguring a bad IP will immediately kick the cameras \u0026ldquo;offline\u0026rdquo;, but you can keep tapping into the RTSP streams.\nNow you have camera streams a wireless camera stream, and the data stays right on your network!\nObject Detection Note: In order to use object detection you must also configure motion detection.\nThe quality of your object detections is going to be dependent on a few key parameters:\n- Model Choice - Input Resolution - Variant Size (if using YOLOv9 models) I\u0026rsquo;m using the small variant of YOLOv9 with an input resolution of 320x320. You might think running larger input resolution would produce better results, but this is not the case.\n320x320 is better shot at detecting small objects than a 640x640 input; the model is only able to fit more objects into a single detection if the camera resolution is increased.\nOnce you\u0026rsquo;ve configured motion detection and object detection, Frigate will start handing over detections for review.\nThe categories of object Frigate will shows depend on a few things: - Limitations of your model - The labels file (provides annotations) - What you configure Frigate to show you\nSemantic Search One of my favorite features available on Frigate is Semantic Search.\nThis feature takes object detections and runs them through another Local AI model from Jina AI, jina-clip-v1, which adds embeddings to your detections. A more digestable blog post on the model lives here.\nYou should also check out this awesome video on embeddings to learn more.\njina-clip-v1 embeds both images and text into the same embedding space, which basically means I can do text→image and image→image search on my detections. For example, here I search my detection database for the term \u0026ldquo;white shirt\u0026rdquo;:\nPretty cool, right? Another feature let\u0026rsquo;s me quickly compare a current detection to the database of historical detections (image→image).\nFace Recognition Setting up facial recognition is super intuitive. Simply add some clear images of the subjects face and Frigate will start classifying people detected with sub_labels based on their face.\nYou can also train these facial detections easily and directly in the user interface. It is crucial you train based on a set of high quality images with diverse lighting, orientation, etc.\nTraining on a poor dataset will quickly degrade the quality of your classifications.\nYou also want to avoid training on images that were already classified with a relatively high score. This could lead to overfitting.\nOutro So that\u0026rsquo;s a brief write-up on how I\u0026rsquo;m using Frigate. There are still plenty of features I want to try out (object states, zones, license plate recognition, and more).\nIf I get the sense enough people care I may end up creating a full tutorial and sharing my anonymized configuration file and Docker Compose file.\nI want more people I know to get into this. I\u0026rsquo;d like some nerds to talk this stuff over with!\n\u0026rsquo;til next time!\n","date":"2026-10-29T15:38:40Z","image":"/p/frigate/frigateScreenshot.jpg","permalink":"/p/frigate/","title":"Private Home Surveillance"},{"content":"Welcome to my first website! I\u0026rsquo;m so happy you are here.\nI put this site together using Hugo and I\u0026rsquo;m hosting it on Google Cloud with a domain i purchased from Cloudflare Registrar.\nWant a site like this? Check out hugo-theme-stack-stater\nPhoto by Eric Erbe, digital colorization by Christopher Pooley, both of USDA, ARS, EMU. - This image was released by the Agricultural Research Service, the research agency of the United States Department of Agriculture, with the ID K11077-1.\n","date":"2026-10-24T21:12:00Z","image":"/p/hello-world/ecoli.jpg","permalink":"/p/hello-world/","title":"Hello World!"}]