Neural network based object recognition CCTV which sends email once person is detected
- Every 1s the latest frame is requested from video_stream
- Frame is analyzed via ML
- If human detected, for the next 5 seconds continue to request frames from video_stream and store them locally (without analyzing via ML)
- After 5 seconds ask for new latest frame and analyze again
- If no human detected, send email and return to 1, otherwise continue from step 3
- gathers as many frames as camera capable to produce + writing locally
- low cpu hit
- can't show on frame where object was detected
- https://github.com/HackerShackOfficial/Smart-Security-Camera
- https://github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi
python3 -m venv venv
source venv/bin/activate
pip install pipenv
pipenv install
Variables that need to be set: FROM_EMAIL, TO_EMAIL, FROM_EMAIL_PASSWORD, PHOTOS_STORAGE_LOCATION. Everything else can be default
cp .env.example .env
python3 src/TFLite_detection_webcam.py --modeldir=coco-model --resolution=1600x1200 --framerate=30
scp -r [email protected]:/home/pi/tflite/photos .
du -hs .
du -h .
df -h .
df -h
sudo supervisorctl status
sudo supervisorctl restart all
tail -fn 100 /var/log/motioneye-cctv.log