Arducam B0270 IR-CUT camera slow to catch up after toggling filter

Hi, I’m developing an application where we use the Arducam B0270 IR CUT camera to capture
an object in IR (illuminated with IR LEDs) and also in color (illuminated with white LED)

I’m following the guide: RPI_Motorized_IRCut_Control to control the IR filter from my application.

I have noticed that whenever I switch imaging from IR to white light there is a greenish hue that takes
over the image for a couple of seconds.

On switching from color to IR, there is a purple hue that takes over the image for a couple of seconds
before I get the expected gray image, i.e. there is some transient state that lasts for a couple of seconds before the sensor catches up. See the following images…

Does anyone know why this is happening? Does switching suddenly from IR to White and vice-versa cause some lag in the sensor’s color adjustment algorithm?