- OpenCV (3.2.0)
- numpy
An overview of the implemented design -
The implemented reader-writer model depicting 3 concurrent readers -
For quick testing purposes, run ./run.sh
. This script starts a server and client process.
The current setup performs the transfer locally at localhost.
To run the individual components, follow the instructions below.
-
Start the server -
python -O server.py -p <port>
To enable debug mode, remove the
-O
flag.
The server retrievesframes_per_payload
number of frames from the webcam and constructs the following payload which is transferred -
-
Start the client -
python client.py -p <port>
This will retrieve the payload from server, unpack and convert to numpy array appropriately, rendering the frames on the fly.