I want to build an IP camera based door security system and object segmentation system. Although the system does not seem to be too complex but running it off a raspberry pi seems to be difficult.
Problem Statement
Set up an IP camera or raspberry pi camera to capture a video feed from the front door. Run an object detection and possibly an image segmentation program on the video feed. Based on the presence of a moving object store the relevant clip of footage to a permanent storage device, keeping storage requirements small, and notify about the same (though IFTTT or email).
Solutions
There are 2 ways to go about solving this problem:
Solution 1
Capture the video footage at 30fps and run the object detection or image segmentation at only 2-5fps. This way I won't be losing relevant information and I can also reduce the load drastically on the image processing system. A drawback here, is that there has to be a deterministic way to grab the 2 or 5 frames on which computer vision must run. Once I identify something of interest then I can store the complete footage (at 30fps) and notify through IFTTT or email.
Solution 2
Another solution is a workaround to computer vision process. I can install a PIR sensor (Passive Infra-Red) along with the camera. This is directly possible if I use a raspberry pi zero, a camera module and a PIR connected to the raspberry pi. Alternatively, I can use the PIR along with a NodeMCU (its like an arduino board with onboard WiFi) and capture the PIR information.
Now if the PIR detects motion it triggers to store the footage clip, notify through IFTTT or email and the cycle continues.
I will work on the 2nd solution first as that seems a little simpler without any computer vision magic. After which I will try to solve it using solution 1.
Comments
Post a Comment