I am building a home surveillance system using Raspberry Pi and OpenCv. Basically, my set up will consist of two devices, the first will be the security camera which will be a raspberry pi zero and a pi camera. The other device will be a main hub (Raspberry Pi 3) which will do all of the heavy lifting such as facial recognition, speech recognition and other operations.
what I want to do is to stream the footage of the security camera to the main hub so that it can process the images. So essentially I want to capture the frame from the pi camera, convert it to a numpy array (if that isn't done by default) and send that data to the main hub to then be converted to back to an image frame to be analysed by Opencv.
I am separating the operations as so since my security camera operates on a raspberry pi zero which is not very fast and cant handle heavy lifting. It is also because my security camera is hooked up to a battery and I am trying to lower the Pi's usage hence why I am dedicating a main hub for the heavy operations.
I am using a python v3 environment on both devices. I am well aware of IoT communication technologies such as mqtt, TCP and so on. But, I would like help with actually implementing such technologies in python script in order to accomplish my needs.