Store an average of the HSV value channel across all pixels. Each frame take the average again and the difference will determine the modification made to the Value after HSV conversion.
For now, this will hopefully allow for the average to be taken once when OpenCV adjusts the thresholds and then allow those thresholds to work with the OpenGL process even with the camera "low light compensation" turned off.
Store an average of the HSV value channel across all pixels. Each frame take the average again and the difference will determine the modification made to the Value after HSV conversion.
For now, this will hopefully allow for the average to be taken once when OpenCV adjusts the thresholds and then allow those thresholds to work with the OpenGL process even with the camera "low light compensation" turned off.