Patent ID: 7825958

Claim:
A method of enabling use of a camera module with a light source to take a picture of a scene, the camera module having a white-balance routine, the light source serving as a flash and emitting a light of changing spectrum when operated, the method comprising: transmitting to the camera module a value representative of a color spectrum capable of being emitted by the light source; operating the light source to emit light; performing a plurality of times a loop comprising: scanning an image; executing the white-balance routine on the image to derive a processed image; and employing the value in the executing of the white-balance routine to refine the value for use in a subsequent performance of the loop, wherein one of the processed images is the picture, and further comprising transmitting another value representative of a level of light available at the scene absent the light source to the camera module, and wherein the loop further comprises executing an exposure routine of the camera module on the image to derive the processed image and employing the another value in the executing of the exposure routine to refine the another value for use in a subsequent performance of the loop.