Hacker News Viewer

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

by zeldone on 7/26/2026, 3:53:55 PM

https://github.com/gmrandazzo/CheapSecurity

Comments

by:

7/27/2026, 1:57:25 AM


by: synergy20

<p><pre><code> V4L2 (MJPG) -&gt; cap.read() -&gt; CLAHE(night) -&gt; imencode -&gt; _current_frame (web MJPEG) -&gt; resize .25 -&gt; gray -&gt; blur -&gt; absdiff -&gt; contours -&gt; motion? -&gt; motion? VideoWriter.write() : pre_buffer.append(jpeg) -&gt; on stop: ffmpeg remux fps fix -&gt; Telegram&#x2F;email </code></pre> a mjpeg system basically, all in python but does need opencv

7/27/2026, 1:20:21 AM


by: lormayna

What are the difference with systems like Motion (<a href="https:&#x2F;&#x2F;motion-project.github.io&#x2F;4.0&#x2F;motion_guide.html" rel="nofollow">https:&#x2F;&#x2F;motion-project.github.io&#x2F;4.0&#x2F;motion_guide.html</a>) ?

7/26/2026, 7:57:19 PM


by: kube-system

My question about this project and the numerous similar projects: where do I get a usb camera suitable for this? Webcams typically have unsuitable enclosures, focus behavior, and low light performance.

7/26/2026, 7:26:27 PM


by: drnick1

What is the difference between this and Frigate? Before clicking the link, I thought this would be a hardware solution (build you own camera from open components).

7/26/2026, 6:54:01 PM


by: mattlondon

How does this handle motion detection? Anyone tried it?<p>I have a bunch of Nest cameras and some cheaper Tapo cameras.<p>The &quot;motion detection&quot; is night and day different. The Tapo does some basic frame-diffing and it&#x27;s <i>awful</i>. Shadows? DING DING DiNG MOTION DETECTED! gust of wind made some blades of grass move? Motion! Spider? Motion motion motion! Turn down the sensitivity a notch or two and it won&#x27;t notice a human walk across the frame 2 meters away. The Tapo ones claim to be smart but twigs and leaves still trigger pet&#x2F;person&#x2F;motion alerts. It makes them essentially useless.<p>The Nest cameras are so much better and their &quot;human&quot; detected is usually zero-false-negatives at the cost of one or two false-positives perhaps once every 3 or 4 months, and their app is superior (tapo one frequently needs to be false-killed to load clips). Yes I am aware that the nest ones are streaming back to google 24&#x2F;7.<p>Tldr: naive frame-diffing sucks for this sort of thing if used outside. An open source implementation that has accurate and reliable &quot;human detection&quot; would be amazing. Doesn&#x27;t need to be &quot;AI&quot; - I would hope that there is some sort of computationally reasonable OpenCV way of doing person detection. Perhaps wait for frame-diffing to flag motion then feed it to a more expensive algorithm?

7/26/2026, 5:35:17 PM


by: serf

`motion` is in the big hall of fame for &#x27;software other things are based on&#x27; next to imagemagick and curl.

7/26/2026, 6:54:08 PM


by: ibejoeb

Anyone have camera suggestions? I&#x27;ve got 2 spare raspi 5s that would probably be a good base.

7/26/2026, 4:38:15 PM


by: npodbielski

I always wonder why author of such software will not add some screenshot or gif showing UI and how it does work? In features there is mention of web interface.

7/26/2026, 5:18:10 PM


by: ashish01

[dead]

7/26/2026, 8:51:06 PM