This is a simple Python script for a action cam that records the birds arriving at a feeding station on my balcony. The script is like a security cam that records video when it detects movement. The recorded videos are saved in MP4 format.
The Project has moved to https://github.com/infinitel8p/Security-Cam where a more advanced version with dashboard and other features is in the works.
- Python 3.x
- OpenCV
- imutils
- Clone this repository to your local machine.
- Install the required libraries by running
pip install -r requirements.txt
. - Run the script by running
python main.py
. - Position your camera towards the target and make sure it captures a good view.
- Wait for the birds to arrive and see the recordings saved in the
./videos/
folder.
The Bird Cam project is a Python script that can be used to record birds arriving at a feeding station on a balcony. The script uses OpenCV to capture the video and detect motion in the frame. When motion is detected, the script starts recording the video and saves it in the MP4 format. The recordings are saved in the ./videos/ folder with a timestamp as the filename.
The script can be easily modified to work with any camera that captures video. Furthermore it can also be used for other purposes, such as monitoring a room or keeping an eye on a pet.