Scutterman / GesturesToInputs

Using a webcam and OpenGL, play PC games by waving your arms about
MIT License
0 stars 0 forks source link

Use "Average Value" to automatically adjust ranges #20

Closed Scutterman closed 4 years ago

Scutterman commented 4 years ago

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.