They say that the best way to hide is in plain sight if you want to sneak a peak, so you can create a password-protected web app that connects to your computer’s camera. This will let you keep an eye on how things are going while you are not there and make sure that no one is messing with your belongings.
Combining Golang with OpenCV is an optimal solution for this job. OpenCV can effortlessly capture data from the camera, and Golang makes it very easy to construct a web server for streaming the data onto the network. GoCV made the setup process for this tutorial remarkably easy. In this section, you’ll learn how to connect to your camera and share the video feed with all devices on your network.
If you prefer visual learning, this video tutorial will be of great help to you. It contains links that take you directly to the relevant parts of the tutorial.
If you need to copy and paste the code, you can find it on https://github.com/jempe/spy_camera/releases/tag/tutorial_part1 . It’s easy and quick to access, so take advantage of this resource!