I set up the https://github.com/jeffbass/imagenode and https://github.com/jeffbass/imagehub and https://github.com/jeffbass/imagezmq from earlier
I needed these. (latest openCV has bug)
pip3 install pyyaml numpy virtualenv zmq imutils psutil picamera
pip3 install opencv-contrib-python==4.1.0.25
On the imagehub side, it finds /root/imagenode.yaml and sets up a folder.
Then the imagenode side, it looks for the directory structure with imagenode/ imagezmq/ and imagenode.yaml in the parent folder. You replace the contents with the YAML examples in the tests folder.
Then when it detects motion in the blue box, it takes pics that arrive in ~/imagehub_data/images/2020-04-12#
So this is a good start for various applications.