Although this is related to OpenCV, it\'s more of an array manipulation technique question than OpenCV.
I currently have a video stream set up using OpenCV and a came