This application claims priority from Chinese patent application 200510023256.5, filed on Jan. 5, 2005, the contents of which are incorporated herein by reference.
The present invention relates to a best shooting moment selectable digital camera apparatus, especially relates to a digital camera apparatus that could obtain the person's face state to decide shooting moment. It is suitable for professional and amateur shutterbugs or ordinary users.
The current typical digital camera apparatus has no function of allowing operator to select the best shooting moment. The typical digital camera apparatus has function of allowing operator to review the taken images after photo taking. For example, the user displays the taken images on the display device after photo taking. For numerous taken images especially the more person's images, however, the photos quality is hard to be ensured owing to the instantaneous blinking or mood changing of shot person. The traditional digital camera apparatus couldn't distinguish the shooting moment, couldn't distinguish if the person is being blinking and if the person is wearing a cheerful expression, it thus brings about a tremendous difficulty of shooting moment selection to operator and results in a poor photos quality.
The present invention is proposed to resolve the above problems to provide a best shooting moment selectable digital camera apparatus. This digital camera apparatus has the typical digital camera apparatus's functions not only, but also could decide the instantaneous best shooting moment to take image.
The technical scheme of the present invention is: A best shooting moment selectable digital camera apparatus, comprising a camera head and a memory circuit, characterized in that: the camera apparatus further includes:
Signal processor, including co-series face detecting module, eye & mouth positioning module and blink judging & mouth open judging module, in which:
The face detecting module reads out the digital image from memory circuit and delivers the result into eye & mouth positioning module after face positioning;
The eye & mouth positioning module delivers the result into blink judging & mouth open judging module after eye and mouth positioning;
The blink judging & mouth open judging module sends out the judgment result;
The controlling circuit issues a shoot controlling order when the judgment result of the said blink judging & mouth open judging module means a best shooting moment, and doesn't issue a shoot controlling order if the judgment result doesn't mean a best shooting moment.
The said face detecting module includes the multi-dimensioned template, awaiting-taken image and template matching arithmetic unit, the template matching arithmetic unit receives the multi-dimensioned template and awaiting-taken image in memory, and delivers the arithmetic result into the face image position, the said multi-dimensioned template, awaiting-taken image and face image position are stored at the various address of the memory respectively.
The said eye & mouth positioning module includes the awaiting-taken image, face image position and horizontal projecting & vertical projecting unit, the horizontal projecting & vertical projecting unit receives the awaiting-taken image and face image position in memory, and delivers the arithmetic result into the eye & mouth position, the said awaiting-taken image, face image position and eye & mouth position are stored at the various address of the memory respectively.
The said blink judging & mouth open judging module includes the awaiting-taken image, eye & mouth position and blink judging & mouth open judging unit, the blink judging & mouth open judging unit receives the awaiting-taken image and eye & mouth position in memory, obtains the blink judging & mouth open judging results for each person's face and issues the order to the controlling circuit, the said awaiting-taken image and eye & mouth position are stored at the various address of the memory respectively.
The beneficial effects of the present invention is: At time of photo taking, it could conveniently distinguish each person's face expression, such as, if the eyes are opened and if the person is wearing a cheerful expression, so as to select a best photo taking moment and thus improve greatly the photo taking quality.
As
As
As
As
As
In S801, start the template matching of face detecting.
In S802, assign K=1. K is the index of template.
In S803, take out a certain template Mk.
In S804, divide the template Mk into N small blocks.
In S805, effect the little wave transferring to each of the small blocks.
In S806, take out the max. ¼ element for each small block and form a vector A(k).
In S807, judge if all the templates are gone through. Enter into S808 if YES, and enter into S803 if NO.
In S808, assign K=1. K is the index of template.
In S809, initialize the X and Y for index the Image.
In S810, read in the awaiting-taken photo Image.
In S811, take out the block S of same sized as the module.
In S812, divide the S into N small blocks.
In S813, effect the little wave transferring to each of the small blocks.
In S814, take out the max. ¼ element for each small block and form a vector B(k).
In S815, increase the deviation of X and Y to make it appoint to the next pixel. If the X is smaller than the image width, increase the X only by one pixel width, if X reaches to the image width, set X to zero and increase Y by a pixel.
In S816, observe if the image edge is reached, enter into S817 if YES and enter into S815 if NO. In S817, calculate the distance DistAB(k) of vector A(k) and B(k).
In S818, observe if the DistAB(k) is more than the threshold DistThreoldK measured from face. Enter into S819 if YES and enter into S820 if NO.
In S819, record the face position.
In S820, confirm if all the templates have been processed, enter into S821 if YES and enter into S809 if NO. In S822, end the process.
In S901, project the face image obtained from the face detecting module in the horizontal direction.
In S902, judge that if the image obtained in the last step has two peaks, enter into S904 if YES and enter into S903 if NO.
In S904, record the coordinate position (y1, y2) of the horizontal peak calculated in S902. In fact, the y1 is the projection position along the horizontal direction of the mouth center, and y2 is the projection position along the horizontal direction of the eye center.
In S903, it is concluded that the eyes on face are closed.
In S905, record the peak coordinate position (y1) calculated in S902 and projected in the horizontal direction. In fact, the y1 is the projection position along the horizontal direction of the mouth center.
In S906, project the face image obtained from the face detecting module in the vertical direction.
In S907, judge that if the image obtained in the last step has three peaks, enter into S909 if YES and enter into S908 if NO.
In S909, record the peak coordinate position (x1, x2, x3) calculated in S907 and projected in the vertical direction. In fact, the x1, x2, x3 are respectively the projection position along the vertical direction of the center of right eye, mouth and left eye.
In S910, record the mouth center coordinates (x2, y1).
In S911, initialize the yUp and yDn to the mouth vertical coordinate.
In S912, observe if the pixel value at the coordinates (x2, yUp) is within the lip color area. Enter into S914 if YES and enter into S913 if NO.
In S913, increase the yUp by 1. In fact, it is to increase the vertical coordinate by 1 pixel position.
When search the top edge of lip in S912, S913, the horizontal coordinate x2 is kept invariant, the y2 is increased, the increased y2 is referred to as yUp, and observe if the pixel value at the coordinates (x2, yUp) is within the lip color area.
In S914, observe if the pixel value at the coordinates (x2, yDn) is within the lip color area. Enter into S916 if YES and enter into S915 if NO.
In S915, decrease the yDn by 1. In fact, it is to decrease the vertical coordinate by 1 pixel position.
When search the bottom edge of lip in S914, S915, the horizontal coordinate x2 is kept invariant, the y2 is decreased, the decreased y2 is referred to as yDn, and observe if the pixel value at the coordinates (x2, yDn) is within the lip color area.
In S916, subtract yDn from yUp, and subtract the mouth opening threshold from it. Enter into S918 if it is bigger than the mouth open threshold and enter into S917 if NO.
In S917, judge that the face area image is a closed mouth one.
In S918, judge that the face area image is an opened mouth one.
In S919, end the process.
In S1001, start to calculate.
In S1002, assign X=1. X means the image frames to be collected. It is used to decide which frame of the taken image has the best effect.
In S1003, collect the digital image of ImageX.
In S1004, effect the model matching.
In S1005, record each face location of FA1, FA2, . . . , FaN and the total faces quantity N.
In S1006, assign K=1. K means each face position and is for each matched face block.
In S1007, read in the image block at Fak position from ImageX.
In S1008, project the ImageX.
In S1009, decide if there is any eye projection according to the projection image. Enter into S1010 if YES and enter into S1014 if NO.
In S1010, decide if there is any mouth projection according to the projection image. Enter into S1011 if YES and enter into S1014 if NO.
In S1011, decide if need to judge the mouth open. Enter into S1012 if YES and enter into S1013 if NO.
In S1012, decide if the mouth is opened. Enter into S1013 if YES and enter into S1014 if NO.
In S1013, increase the current better faces by 1.
In S1014, decide if the normal bearing faces currently detected in the collected images being more than that of former detected, enter into S1015 if YES and enter into S1016 if NO.
In 1016, decide if all the faces in the current image are processed, enter into S1017 if YES and enter into S1018 if NO.
In S1017, decide if enough frames are processed, enter into S1020 if YES and enter into S1019 if NO.
In S1020, store the best face image frames from the memory.
In S1021, issue the shoot controlling order to complete the following process and the shooting state setting.
Number | Date | Country | Kind |
---|---|---|---|
200510023256.5 | Jan 2005 | CN | national |