First, you need to identify whether your camera is up to the task or not. If the camera, seeing the very bright lights, just gives you a complete "white" for all different colors, there is absolutely nothing you can do in software to compensate for it.
That said, the first step is to adjust your camera. If you don't want to get in the coding yet, just take a photo of your bright lights with that camera, open it with gimp for example and reduce its brightness. If you as a human can start to distinguish the colors, then you can also do that in software. If reducing brightness simply gives you gray color, then the color information is simply lost at the time the camera took the photo.
Take this with a grain of salt though, as taking a photo with the camera and a video are different things.
Solution 1: If your camera is controllable, you might be able to change settings on it to reduce the sensor exposures to light before producing the image/video. This completely solves your problem, because then it's as if you are not in bright lights any more.
Solution 2: If you can distinguish colors, even if barely, then you can process the image by your own software and reduce the brightness. For this, you need to convert the format of the image received by your camera to HSL and then reduce the Lightness before converting it back to the format your image processing algorithm understands. If your camera outputs RGB for example, you can search for "RGB to HSL" on the internet for code in many languages freely available.
slam
has been tagged? $\endgroup$