Help With OpenCV 3.2 for Finding Contours.

My team is struggling with filtering contours using GRIP and OpenCV. Whenever we run our program, it creates contours around ceiling lights and parts of the ceiling in addition to the boiler. We are using green LEDs and when we filter the hue through GRIP, the boiler disappears with the ceiling lights.

Would changing the brightness help? We have tried looking online for how to change the brightness with OpenCV 3.2, but haven’t found anything.
We have even tried putting sunglasses on our camera, but the screen automatically raised the brightness to compensate.

Any help would be much appreciated.

You want to change the exposure on your camera, not the brightness. Unfortunately, OpenCV has really poor support for adjusting things like exposure, I would highly recommend using cscore instead. You can find information about the python bindings for cscore at http://robotpy.readthedocs.io/en/stable/vision/index.html .