This project uses YOLOv4 (You Only Look Once) real-time object detection algorithm to detect objects in a video feed. It records audio and video clips, and sends email notifications with the latest recorded clips as attachments when an object in motion is detected.
This project utilizes the YOLOv4 Tiny model for object detection in a video feed. When an object in motion is detected, it records a 5-second audio and video clip, sends an email notification with the latest clips attached, and stores object detection information in a local SQLite database.
To run this project, you need Python 3.7 or higher and the following libraries:
- OpenCV (cv2)
- NumPy
- smtplib
- email (built-in)
- sqlite3 (built-in)
- os (built-in)
- time (built-in)
- PyAudio
- wave (built-in)
- threading (built-in)
Install the required libraries using pip
:
pip install opencv-python opencv-python-headless numpy PyAudio