A digital photographing apparatus capable of precisely and immediately performing autofocusing on a person being photographed, and a method of controlling the same are provided. The digital photographing apparatus comprises a face detecting unit that detects a face, a body detecting unit that detects a body, which may or may not exclude the face, an autofocus information obtaining unit, and an autofocus object determining unit. The autofocus object determining unit analyzes face autofocus information obtained from the face by the autofocus information obtaining unit and body autofocus information obtained from the body, and then selects the face part and/or the body as an object of autofocusing.
Legal claims defining the scope of protection, as filed with the USPTO.
1. 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.
2. The digital photographing apparatus of claim 1 , wherein, when obtaining the autofocus information from the detected body part excluding the face part, the autofocus information obtaining unit obtains the autofocus information from a central region of the detected body part excluding the face part.
3. The digital photographing apparatus of claim 1 , wherein the autofocus object determining unit selects one of the face part and the body part as an object of autofocusing.
4. The digital photographing apparatus of claim 3 , wherein the autofocus object determining unit selects one of the face part and the body part as the object of autofocusing on the ground that which one of the autofocus information obtained from the face part and the autofocus information obtained from the body part corresponds to more precise autofocusing information.
5. The digital photographing apparatus of claim 1 , wherein the body part detecting unit detects the body part excluding the face part, based on information obtained by the face part detecting unit.
6. The digital photographing apparatus of claim 1 , wherein the autofocus object determining unit selects the face part as an object of autofocusing when autofocus information obtained from the face part by the autofocus information obtaining unit is appropriate for autofocusing, and selects both the face part and a body part as an object of autofocusing when the autofocus information from the face part is not appropriate for autofocusing.
7. The digital photographing apparatus of claim 1 ,wherein the autofocus object determining unit selects the face part as an object of autofocusing when autofocus information obtained from the face part by the autofocus information obtaining unit is appropriate for autofocusing, selects the body part as an object of autofocusing when the autofocus information from the face part is not appropriate for autofocusing and autofocus information obtained from the body part by the autofocus information obtaining unit is appropriate for autofocusing, and selects both the face part and the body part as an object of autofocusing when both the autofocus information from the face part and the body part are not appropriate for autofocusing.
8. The digital photographing apparatus of claim 1 , wherein the autofocus information obtaining unit is configured to move a focus lens through a range, and to compute a focus value for the face part and a focus value for the body part for multiple positions through the range to obtain autofocus information from the face part and to obtain autofocus information from the body part respectively.
9. The digital photographing apparatus of claim 1 , wherein the body part excludes any face part.
10. A method of controlling a digital photographing apparatus, the method comprising: (a) detecting a face part; (b) detecting a body part excluding the face part; (c) obtaining autofocus information from the face part; (d) obtaining autofocus information from the body part excluding the face part; and (e) comparing the autofocus information from the face part with the autofocus information from the body, and selecting one of the face part and the body part as an object of autofocusing; wherein : step (c) comprises: (c-1) converting an image including the face part to a black and white image; (c-2) assigning a binary value to each pixel of the black and white image according to differences in brightness values between adjacent pixels; and (c-3) determining the number of pixels having the binary value of 1 in the face part; step (d) comprises: (d-1) converting an image including the body part to a black and white image; (d-2) assigning a binary value to each pixel of the black and white image according to differences in brightness values between adjacent pixels; and (d-3) determining the number of pixels having the binary value of 1 in the body part; and step e) comprises 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.
11. The method of claim 10 , wherein during step (d), the autofocus information is obtained from a central region of the detected body part.
12. The method of claim 10 , wherein step (e) comprises selecting as an object of autofocusing one of the face part and the body part in terms of which one of the autofocus information obtained from the face part and the autofocus information obtained from the body part corresponds to a more precise autofocus information.
13. The method of claim 10 , wherein during step (b), information obtained when detecting the face part is used.
14. The method of claim 10 , wherein obtaining autofocus information from the face part and obtaining autofocus information from the body part excluding the fact part, comprises: moving a focus lens through a range and computing a focus value for the face part and a focus value for the body part for multiple positions through the range to obtain autofocus information from the face part and to obtain autofocus information from the body part respectively.
15. The method of claim 10 , wherein the body part excludes any face part.
16. A non-transitory computer readable medium having recorded thereon a computer program for executing the method of claim 10 .
17. A method of controlling a digital photographing apparatus, the method comprising: (a) detecting a face part from an image; (c) obtaining autofocus information from the face part; (f) if the autofocus information from the face part is appropriate for autofocusing, selecting the face part as an object of autofocusing; and (g) if the autofocus information from the face part is not appropriate for autofocusing, (g-1) detecting a body part and obtaining autofocus information from a body part; (g-2 a ) if the autofocus information from the body part is appropriate for autofocusing, selecting the body part as an object of autofocusing; and (g-3) if the autofocus information from the body part is not appropriate for autofocusing, selecting both the face part and the body part as an object of autofocusing wherein: step (c) comprises: 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; step (g-1) comprises: 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 step (g-2 a ) comprises 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.
18. The method of claim 17 , wherein step (g) comprises detecting a body part excluding the face part, and selecting the body part as an object of autofocusing, or both the face part and the body part as an object of autofocusing.
19. The method of claim 17 , further comprising step (b) detecting a body part excluding the face part.
20. The method of claim 17 , wherein step (g-1) comprises detecting a body part excluding the face part, and obtaining autofocus information from the body part.
21. The method of claim 17 , wherein the body part excludes any face part.
22. A non-transitory computer readable medium having recorded thereon a computer program for executing the method of claim 17 .
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
October 16, 2007
February 5, 2013
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.