Live data from Hacker News

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

github.com

31–40 of 42 posts

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

#31

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.

Check out Thingino. It's an open source firmware you can flash on certain off-the-shelf chinese camera (including wyze), to turn them from cloud spyware to actual fully local ip devices.

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

#32

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

Porting it to C++ should bring also a lot of improvements in terms of.performance

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

#33
post #10

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

For those (like me) who don't know what "motion" refers to here, it's Motion Project, an open-source program to monitor multiple cameras and trigger real-time hooks based on motion detection, etc.:

https://motion-project.github.io/index.html

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

#34

What are the difference with systems like Motion ( https://motion-project.github.io/4.0/motion_guide.html ) ?

Motion is a great software and it overlaps with CheapSecurity. However this software pretend to be: 1. a single-camera-per-instance CCTV with a web dashboard and Telegram bot (motion is a full-featured NVR/motion daemon: multi-camera, masks, timelapse, SQL logging, external triggers, etc...) 2. One independent process per camera; multi-camera is done by running multiple instances. (motion is multi-camera support in one process) 3. Small Flask dashboard with live stream, settings toggles, and bulk actions on recordings. (motion is functional stream/status pages) 4. Specifically optimized for low-power ARM boards like the Odroid XU4 5. Last but not least small Python/Flask/OpenCV codebase, easy to hack on...

That's it

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

#35
post #32

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

Porting it to C++ should bring also a lot of improvements in terms of.performance

Correct! But I have to be honest... I do not like the night vision since with a consumer webcam is not working very well... I will test with a cheap camera that support by default night vision... I will keep you posted!

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

#36

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

Correct! But I have to be honest... I do not like the night vision since with a consumer webcam is not working very well... I will test with a cheap camera that support by default night vision... I will keep you posted!

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

#37
post #31

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.

Check out Thingino. It's an open source firmware you can flash on certain off-the-shelf chinese camera (including wyze), to turn them from cloud spyware to actual fully local ip devices.

thanks!

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

#38
post #2

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

In my experience, budget USB cameras are not reliable as a long-term solution because they randomly stop working in different ways after days of use and must be power-cycled. Instead I would suggest either a direct CSI connection or an external GigE camera.

I was able to keep everything running without a reboot for more than 3 weeks.

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

#39

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.

Updated. You have a gif now that shows a preview of the interface.

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

#40
post #23

Earlier quoted context omitted.

With the price of SBCs nowadays, you'll probably save some money just buying an ip camera. In 2018, I had a project where I needed to capture live video of some test equipment that was in an area off limits to humans. I could get measurements remotely but just not fast enough to stop the test if something went wrong. We also had no idea what to expect if something went wrong so there was no way to setup a trigger for…

> With the price of SBCs nowadays, you'll probably save some money just buying an ip camera. The post you replied to very specifically mentioned using an IP camera. Unless you are paying “proper” money per camera, these days most of them are limited out-of-the-box in ways that are intended to drive you to paying a subscription service to have the recordings stored and processed (and presumably used for AI training wh…

> these days most of them are limited out-of-the-box in ways that are intended to drive you to paying a subscription service

This is why open protocols like RTSP are needed. A camera should never be allowed to communicate directly over the Internet.

Post reply on HN