Image processing apparatus, image processing method, and computer program for processing images
An image processing apparatus includes a face direction estimating section that estimates a direction and a degree of swing of a face in a target image including a face image when a front direction of the face is used as a reference, and an image correcting section that transforms a correction target area to be corrected, which includes at least a part of the face image, in accordance with the degree of swing.
1. An image processing apparatus comprising:
a face direction estimating section that estimates a direction of a face and a degree of swing of the face in a target image including a face image when a front direction of the face is used as a reference; and
an image correcting section that transforms a correction target area to be corrected, which includes at least a part of the face image, in accordance with the degree of swing,
wherein the image correcting section reduces a degree of transformation for the correction target area when the degree of swing is larger than a certain value compared to when the degree of swing is smaller than the certain value.
2. An image processing apparatus comprising:
a face direction estimating section that estimates a direction of a face and a degree of swing of the face in a target image including a face image when a front direction of the face is used as a reference; and
an image correcting section that transforms a correction target area to be corrected, which includes at least a part of the face image, in accordance with the degree of swing,
wherein the image correcting section reduces a degree of transformation for an area on the opposite side of the face direction in the correction target area compared to a degree of transformation for an area on the same side as the face direction.
3. An image processing apparatus comprising:
a face direction estimating section that estimates a direction of a face and a degree of swing of the face in a target image including a face image when a front direction of the face is used as a reference; and
an image correcting section that transforms a correction target area to be corrected, which includes at least a part of the face image, in accordance with the degree of swing,
wherein the image correcting section does not transform at least an area on the opposite side of the face direction in the correction target area when the degree of swing is larger than a predetermined threshold value.
4. The image processing apparatus according to claim 1 , wherein when estimating the direction of the face and the degree of swing of the face, the face direction estimating section:
(i) detects an area including an organ image of the face in the target image as an organ area;
(ii) computes a reference width as an index correlated with a width of the face and a reference height as an index correlated with a height of the face on the basis of the organ area; and
(iii) estimates the direction of the face and the degree of swing of the face on the basis of a ratio between the reference width and the reference height.
5. The image processing apparatus according to claim 2 , wherein when estimating the direction of the face and the degree of swing of the face, the face direction estimating section:
(i) detects an area including an organ image of the face in the target image as an organ area;
(ii) computes a reference width as an index correlated with a width of the face and a reference height as an index correlated with a height of the face on the basis of the organ area; and
(iii) estimates the direction of the face and the degree of swing of the face on the basis of a ratio between the reference width and the reference height.
6. The image processing apparatus according to claim 3 , wherein when estimating the direction of the face and the degree of swing of the face, the face direction estimating section:
(i) detects an area including an organ image of the face in the target image as an organ area;
(ii) computes a reference width as an index correlated with a width of the face and a reference height as an index correlated with a height of the face on the basis of the organ area; and
(iii) estimates the direction of the face and the degree of swing of the face on the basis of a ratio between the reference width and the reference height.