Color correction renders ball detection useless

asked 2018-02-28 14:14:52 -0600

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/... - help?

image description image description

edit retag flag offensive close merge delete

Comments

try to disable all automatic function using method set in videocapture with CAP_PROP_SETTINGS

LBerger gravatar imageLBerger ( 2018-03-01 01:38:49 -0600 )edit