Ask Your Question

Revision history [back]

Color correction renders ball detection useless

Hey All,

My ball detection algorithm works really well when the ball isn't up close to the camera (Logitech HD C525), however, when I bring the ball really close, the camera seems to autofocus, and perform some low light correction which changes the yellowish green color to almost white.

Is there a way I can fix this? Will changing any of the videoCaptureProperties- https://docs.opencv.org/3.3.0/d4/d15/group__videoio__flags__base.html#gaeb8dd9c89c10a5c63c139bf7c4f5704d - help?

image description image description