Patent ID: 9652662
Date: 2017-05-16
CPC Classifications: G06K,G06T

Claim:
1. An image processing device comprising: a face detector which detects a face region including a face of a person from an input image signal; a determination portion which determines, in the input image signal of the face region, an addition amount of a pixel value to be added to the input image signal of the face region based on a size of a difference in a pixel value between adjacent pixels; and a signal corrector which adds the addition amount to the pixel value of the input image signal of the face region, wherein a pixel having a larger pixel value of the input image signal is defined to be convex compared to a pixel having a smaller pixel value of the input image signal in the face region, the determination portion includes: a light source corrector which corrects the illumination direction of the light source set by the light source setting portion, the light source setting portion sets the illumination direction of the light source such that the face is illuminated from below of a front of the face, the normal line estimation portion estimates the normal line direction such that the normal line direction becomes closer to parallel to a plane including the face region as the difference in the pixel value becomes larger, the addition amount calculator calculates the addition amount such that the addition amount becomes smaller as an angle formed by the normal line direction and the illumination direction of the light source becomes larger, the input image signal is input for each frame, the direction detector detects the direction of the face for each frame, the light source setting portion sets a light source vector which represents the illumination direction of the light source based on the direction of the face for each frame, a frame immediately before a first frame is defined as a second frame, the light source corrector corrects the light source vector set by the light source setting portion for each frame, the addition amount calculator calculates the addition amount using the light source vector corrected by the light source corrector for each frame, and a corrected light source vector Lc(t) of the first frame corrected by the light source corrector is calculated using a light source vector L(t) of the first frame set by the light source setting portion and a corrected light source vector Lc(t−1) obtained when a light source vector L(t−1) of the second frame set by the light source setting portion is corrected by the light source corrector.