Patent ID: 7822235

Claim:
Within a digital camera, a method of digital image processing using face detection for achieving a desired image parameter, comprising: identifying a group of pixels that correspond to a face in a foreground region within a digital image taken with flash; determining first initial values of relative exposure of pixels of the group of pixels; determining second initial values of relative exposure of pixels other than pixels of the group of pixels and located within a background region of the digital image; comparing the first and second initial values, respectively, with a desired relative exposure of pixels based on known flash characteristics and with one or more desired relative exposures of background region pixels; and determining adjusted values of relative exposure separately for the foreground and background regions based on the comparing of the first and second initial values with a desired relative exposure of pixels based on known flash characteristics and with a desired relative exposure of pixels within said background region, and on a comparison of relative exposures corresponding to the first and second initial values.