An optical sensor system operative for receiving, by a processor, a first image captured by a visible light camera, determining a value of a characteristic of the first image, determining an environmental condition in response to the value being less than a threshold, activating an infrared camera in response to the environmental condition, capturing a second image by the visible light camera and a third image by the infrared camera, generating a fused image in response to the second image and the third image, detecting an object in response to the fused image, and controlling a vehicle in response to the detection of the object.