Patent ID: 8368764

Claim:
A digital photographing apparatus comprising: a face part detecting unit detecting a face part; a body part detecting unit detecting a body part excluding the face part; an autofocus information obtaining unit; and an autofocus object determining unit, wherein the autofocus object determining unit compares autofocus information obtained from the detected face part and autofocus information obtained from the detected body part, and selects at least one of the face part and the body part as an object of autofocusing, where the autofocus information from the face part and the autofocus information from the body part are obtained by the autofocus information obtaining unit wherein: the autofocus information obtaining unit is to obtain the autofocus information from the face part by: converting an image including the face part to a black and white image; assigning a binary value to each pixel of the black and white image according to differences in brightness values between adjacent pixels; and determining the number of pixels having the binary value of 1 in the face part; the autofocus information obtaining unit is to obtain the autofocus information from the face part by: converting an image including the body part to a black and white image; assigning a binary value to each pixel of the black and white image according to differences in brightness values between adjacent pixels; and determining the number of pixels having the binary value of 1 in the body part; and the autofocus object determining unit is to compare the autofocus information obtained from the detected face part and the autofocus information obtained from the detected body part by comparing the number of pixels having the binary value of 1 in the face part with the number of pixels having the binary value of 1 in the body part.