Patent ID: 8811747

Claim:
A method for modifying a digital image, the method comprising: identifying, by a computing device, two or more individual regions in a digital image that each include a face; evaluating the two or more individual regions by the computing device, wherein the evaluating the two or more individual regions comprises at least one of: assigning a fitness score to each of the two or more individual regions; or assigning a class to each of the two or more individual regions; padding, by the computing device, each of the two or more individual regions to form individual padded regions; and defining, by the computing device, a combined padded region based on at least one of the fitness score of each of the two or more individual regions or the class of each of the two or more individual regions, wherein the combined padded region comprises the individual padded regions, wherein the evaluating the two or more individual regions comprises assigning a fitness score to each of the two or more individual regions based on size, blink status, gaze direction, expression, pose, occlusion, sharpness, exposure, or contrast of the face in each of the two or more individual regions, and wherein the defining the combined padded region comprises defining a first combined padded region including only those of the two or more individual regions having a fitness score above a preselected threshold.