Kung-fu machine learning goodness.
This is an example of how you can use the hook feature of the notification server
to invoke a custom script on the event before it generates an alarm.
I currently support object detection and face recognition.
Please don't ask me questions on how to use them. Please read the comments and figure it out.
Read the official docs here
Unit tests (no ML models or pyzmNg needed — pyzmNg is mocked):
pip install pytest pyyaml
python3 -m pytest tests/ -m "not e2e" -vEnd-to-end tests (require real pyzmNg + YOLO models on disk):
# Requires: pyzm installed, models in /var/lib/zmeventnotification/models/
python3 -m pytest tests/test_e2e/ -vAll tests:
python3 -m pytest tests/ -v