CN103390151A - Face detection method and device - Google Patents

Face detection method and device Download PDF

Info

Publication number
CN103390151A
CN103390151A CN2012101415775A CN201210141577A CN103390151A CN 103390151 A CN103390151 A CN 103390151A CN 2012101415775 A CN2012101415775 A CN 2012101415775A CN 201210141577 A CN201210141577 A CN 201210141577A CN 103390151 A CN103390151 A CN 103390151A
Authority
CN
China
Prior art keywords
face
cluster areas
threshold
human face
people
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101415775A
Other languages
Chinese (zh)
Other versions
CN103390151B (en
Inventor
张本好
罗小伟
黄玉春
彭晓峰
林福辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201210141577.5A priority Critical patent/CN103390151B/en
Publication of CN103390151A publication Critical patent/CN103390151A/en
Application granted granted Critical
Publication of CN103390151B publication Critical patent/CN103390151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are a face detection method and device. The face detection method comprises the steps of obtaining a plurality of area frames by the utilization of a face detection algorithm, carrying out clustering analysis on the area frames to obtain at least one cluster area, counting the number of the area frames in the cluster areas, and determining the cluster area with the number of the area frames being larger than a first threshold value as a face area. By means of the technical scheme of the face detection method and device, the complexity of face detection is reduced, and the false detection rate and the missing detection rate are low.

Description

Method for detecting human face and device
Technical field
The present invention relates to the image technique field, relate in particular to a kind of method for detecting human face and device.
Background technology
Recognition of face (Face Recognition) is refered in particular to and is utilized the relatively people's face visual signature information of analyzing to carry out the computer technology that identity is differentiated, be the emphasis of present artificial intelligence and pattern-recognition, be widely used in the field such as monitoring, gate control system, video conference of national security, military security, identification, bank and customs.
It is the key link in recognition of face that people's face detects (Face Detection), people's face detects and refers to for any one secondary given image, adopt certain strategy to search for to determine wherein whether contain people's face it, if it is return to position, size and the attitude of people's face.
According to the difference of people's face knowledge of utilizing, method for detecting human face can be divided into: based on the method for detecting human face of feature with based on the method for detecting human face of learning.Method for detecting human face based on feature comprises: low-level image feature analytical approach, cohort characterization method and deforming template method, the low-level image feature analytical approach comprises again the method for detecting human face of skin color based.Method for detecting human face based on study can be divided into according to the difference of learning method: based on the method for bayesian criterion, based on the method (ANN of artificial neural network, artificial neural network), the method for support vector machine (SVM, support vector machine), based on method of Adaboost etc.
The method for detecting human face of skin color based mainly detects pixel according to the colouring information of pixel and whether belongs to the colour of skin, from a large amount of scenery, image is carried out skin color segmentation, and by skin pixel point in image is carried out cluster analysis, find possible human face region.It does not rely on facial minutia, have relative stability for situations such as rotation, expression changes, and the color of energy and most of background objects distinguishes.But the method for detecting human face of skin color based is owing to depending on fixing priori pattern, so adaptive faculty is poor, when image is subject to illumination effect, low for environment or the colour cast people face verification and measurement ratio of colour cast, detect effect poor, even inspection does not measure people's face sometimes.In addition, the method for detecting human face of skin color based also is subject to noise and various impact of blocking, and then affects final detection effect.
Based on the method for detecting human face of Adaboost, its basic thought is that same training set is used different features, trains different Weak Classifiers, then these Weak Classifiers is combined and forms a strong classifier.This method is not vulnerable to the impact of color, but false drop rate is high.In order to reduce false drop rate, usually need to gather a large amount of training samples, carry out strict training, extract more rectangular characteristic parameter, and then increased the complexity of calculating.For mini-plant, as: handheld device, due to the restriction of equipment own resource, makes this method not too be useful in the people's face in detected image on mini-plant, for the handheld device of low side, this method even can not be used for people's face of detected image on low side devices.
Therefore, provide a kind of complexity, false drop rate and loss all low method for detecting human face become one of present problem demanding prompt solution.
The correlation technique that other relevant people's faces detect can also be US2006072811A1 referring to publication number, and denomination of invention behaviour face detects the U.S. Patent application of (Face detection).
Summary of the invention
The problem that the present invention solves is to provide all low method for detecting human face and devices of a kind of complexity, false drop rate and loss.
In order to address the above problem, the invention provides a kind of method for detecting human face, comprising:
Utilize people's face detection algorithm to obtain a plurality of regional frames in image;
Described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Add up the number of the regional frame in each cluster areas, the number of definite area frame is human face region greater than the cluster areas of first threshold.
Optionally, described method for detecting human face also comprises:
Determine human face region based on the number of regional frame less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold.
Optionally, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of described cluster areas;
The number of described skin pixel point than described cluster areas in the value of number of pixel during greater than the 3rd threshold value, determine that described cluster areas is human face region.
Optionally, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of arbitrary regional frame in described cluster areas;
The number of described skin pixel point than described arbitrary regional frame in the value of number of pixel during greater than the 4th threshold value, determine that described cluster areas is human face region.
Optionally, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of the predeterminable area of arbitrary regional frame in described cluster areas;
During greater than the 5th threshold value, determine that described cluster areas is human face region than the value of the number of the pixel in described predeterminable area in the number of described skin pixel point.
Optionally, described regional frame is rectangle frame, and described predeterminable area is determined by following manner:
width∈0.25W~1W,height∈0.25H~1H;
Wherein, width is the wide of described predeterminable area, and height is the height of described predeterminable area, and W is the wide of described rectangle frame, and H is the height of described rectangle frame.
Optionally, described method for detecting human face also comprises: the number of definite area frame is non-face zone less than the cluster areas of Second Threshold.
Optionally, described first threshold is the integer between [10,40].
Optionally, described Second Threshold is the integer between [5,8].
Optionally, the span of described the 3rd threshold value is [0.3~0.8].
Optionally, described Face Detection algorithm is the Face Detection algorithm based on Gauss model or Bayesian model.
Optionally, described method for detecting human face also comprises: before the number of the regional frame in each cluster areas of statistics, remove in described cluster areas and meet pre-conditioned regional frame.
Optionally, describedly pre-conditionedly be: at the center of described regional frame to the distance at the center of cluster areas than the value of the width of described regional frame less than distance threshold.
Optionally, described regional frame is rectangle frame, and the scope of described distance threshold is [0.5W, W], and wherein W is the wide of described rectangle frame.
Optionally, described people's face detection algorithm and Face Detection algorithm carry out at different color spaces.
Optionally, described people's face detection algorithm is the adaboost algorithm.
For addressing the above problem, the present invention also provides a kind of people's face pick-up unit, comprising:
Acquiring unit, be used for utilizing people's face detection algorithm to obtain a plurality of regional frames of image;
The cluster analysis unit, be used for described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Statistic unit, for the number of the regional frame of adding up each cluster areas;
The first determining unit, the number that is used for the definite area frame is human face region greater than the cluster areas of first threshold.
Compared with prior art, technical scheme of the present invention has the following advantages:
A plurality of regional frames that obtain by people's face detection algorithm are carried out cluster analysis, add up the number of regional frame in each cluster areas, with this, detect human face region, for the method for detecting human face of skin color based, because it is subjected to illumination effect less, therefore loss is low; For the method for detecting human face based on Adaboost, owing to need not to gather a large amount of samples in the training process of detecting device, therefore reduced the complexity that people's face detects; And, after adopting people's face detection algorithm to obtain regional frame, first carry out cluster analysis, then the regional frame number in cluster areas is added up, also reduced the false drop rate that people's face detects.
In the number of the regional frame of cluster areas during less than first threshold and greater than Second Threshold, features of skin colors based on described cluster areas is determined human face region, compared to the method for detecting human face of skin color based with based on people's face detection algorithm of Adaboost, carry out people's face by the statistics of the regional frame number in conjunction with cluster areas and Face Detection algorithm and detect, further reduced loss and false drop rate that people's face detects.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for detecting human face of the embodiment of the present invention one;
What Fig. 2 was that the employing Adaboost algorithm of the embodiment of the present invention one detects may be the distribution schematic diagram of human face region;
Fig. 3 is the schematic diagram that concerns between the picture number of the embodiment of the present invention one and rectangle frame;
Fig. 4 is the structural representation of people's face pick-up unit of the embodiment of the present invention one;
Fig. 5 is the schematic flow sheet of the method for detecting human face of the embodiment of the present invention two;
Fig. 6 be the embodiment of the present invention two predeterminable area choose schematic diagram;
Fig. 7 is the structural representation of people's face pick-up unit of the embodiment of the present invention two.
Embodiment
, for above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can be in the situation that do similar popularization without prejudice to intension of the present invention.Therefore the present invention is not subjected to the restriction of following public embodiment.
People's face detection algorithm of existing skin color based easily is subject to illumination effect, therefore lower to the verification and measurement ratio of people's face, although and based on the method for detecting human face of Adaboost, can obtain by strict training the strong classifier of cascade to detect exactly people's face, but during the training strong classifier, computation complexity is higher, is not suitable for the image in mini-plant is detected.
The inventor considers whether can carry out accurately and comprehensively detecting to people's face under the prerequisite that does not increase computation complexity, the inventor finds through long-term research, when adopting people's face detection algorithm detected image, can detect a plurality of regional frames, after a plurality of regional frames are carried out cluster analysis, can obtain different cluster areas, and in each cluster areas, the detection of the number of regional frame and human face region there is close relationship.
Therefore, the inventor proposes, and the judgement of the number by the regional frame to cluster areas detects human face region.
Embodiment one
Fig. 1 is the schematic flow sheet of the method for detecting human face of the embodiment of the present invention one, and as shown in Figure 1, described method for detecting human face comprises:
Step S11: utilize people's face detection algorithm to obtain a plurality of regional frames in image;
Step S12: described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Step S13: add up the number of the regional frame in each cluster areas, the number of definite area frame is human face region greater than the cluster areas of first threshold.
Execution step S11, can apply existing human face detection tech in this step and obtain a plurality of regional frames in image, as: can adopt algorithm based on bayesian criterion, based on the algorithm of artificial neural network, algorithm or the Adaboost algorithm of support vector machine, image be detected, obtain a plurality of regional frames in image.In the present embodiment, to adopt the Adaboost algorithm, image is detected as example and describes.
Described employing Adaboost algorithm detects actual referring to image and forms strong classifier by the Adaboost algorithm, utilizes described strong classifier to detect image.In general, can, by the positive sample that comprises people's face that gathers some and the negative sample that does not comprise people's face, form the sample training collection.Practice Weak Classifier for different sample training training, then these Weak Classifiers that obtain on different training sets are gathered, form a strong classifier.Described different sample training collection is to realize by adjusting weight corresponding to each sample.
While starting to train at first, the weight that each sample (comprising positive sample and negative sample) is corresponding is identical, trains a Weak Classifier h under this sample distribution 1(x).For h 1(x) sample of wrong minute, increase its corresponding weight; And for h 1(x) sample of correct classification, reduce its weight.Make the sample of wrong minute highlight, and obtain new sample distribution.The situation of according to mistake, dividing simultaneously, is given h 1(x) weight, represent that the significance level of this Weak Classifier, mistake are got fewer weight larger.Under new sample distribution, again to Weak Classifier h 1(x) train, obtain Weak Classifier h 2(x) and weight.The like,, through T circulation, just obtained T Weak Classifier, and T the weight that Weak Classifier is corresponding.Finally this T Weak Classifier is added up and just obtained strong classifier by its corresponding weight.Form strong classifier and can form the detailed process of strong classifier with reference to the Adaboost algorithm that utilizes of prior art.
In this step, while adopting Adaboost Algorithm for Training strong classifier, in order to reduce computation complexity, in training process, the extraction of the quantity of training sample, training parameter can be carried out suitable choosing.After obtaining strong classifier by the Adaboost Algorithm for Training, utilize described strong classifier to detect image.
In addition, need to prove, while adopting the Adaboost algorithm to detect people's face, carry out at gray space, therefore, if image to be detected is coloured image, before obtaining regional frame in image to be detected by the Adaboost algorithm, should be first with image transitions to be detected to gray space.
For the strong classifier that adopts the Adaboost algorithm to form, strong classifier during detection (detecting device) is generally rectangular window, and detecting device is to detect according to the pixel level line slip in image to be detected.Therefore, can detect a plurality of rectangle frames (the rectangle frame size is indefinite) in the place that people's face is arranged.
What Fig. 2 was that the employing Adaboost algorithm of the embodiment of the present invention one detects may be the distribution schematic diagram of human face region, for convenience of explanation, has only provided a corresponding regional frame of people's face in Fig. 2.For a plurality of people's faces in piece image, each people's face place all should occur and similar situation shown in Figure 2.
As shown in Figure 2, a plurality of rectangle frames that detecting device detects are in fact corresponding people's face, also can say these a plurality of rectangle frames in fact corresponding be the same area.Therefore, need to carry out cluster analysis to this situation merges.The rectangle frame that detects is merged it by clustering algorithm, to obtain corresponding cluster areas.For example: the rectangle frame that detects can be merged according to its center, the rectangle frame of namely center being assembled is merged into a rectangular area, described rectangular area is carries out the cluster areas that obtains after cluster analysis, the length of described cluster areas and wide can being taken at are respectively carried out in merging process rectangle frame, the maximal value of the maximal value of rectangle frame length and rectangle frame width, the center of described rectangular area is the center of cluster areas.In actual applications, specifically adopt which kind of clustering algorithm that a plurality of rectangle frames are carried out cluster analysis and merge to form cluster areas, by actual demand, determined.
Execution step S12, carry out cluster analysis to a plurality of rectangle frames that obtain in step S11, obtains N cluster areas (N 〉=1), is also N candidate face zone.And for N cluster areas, it all carries out cluster analysis by at least one rectangle frame and merges acquisition, has all comprised in other words at least one rectangle frame for each cluster areas.
In the present embodiment,, in order to prevent from cluster process occurring deviation, also comprise that the rectangle frame to carrying out cluster analysis detects, in other words the rectangle frame in cluster areas is detected, to remove ineligible rectangle frame.Particularly, the center of calculating exactly rectangle frame to the center c of cluster areas apart from d (referring to Fig. 2), when described d does not meet following formula, this rectangle frame is picked out cluster areas.
d W i > rec _ ratio
Wherein, W iFor the width of i rectangle frame in cluster areas, rec_ratio is distance threshold.In the present embodiment, rec_ratio gets 0.5W i~W iBetween.
Execution step S13, add up the rectangle frame in N cluster areas obtaining in step S12 (candidate face zone), and the number by the rectangle frame added up detects human face region.The inventor has carried out a large amount of experiments, gather a large amount of images and performed step respectively S11 and S12, find when the cluster areas that obtains is human face region, the number of the rectangle frame of this cluster areas meets some requirements, and has obtained to detect according to the number of the rectangle frame in Statistical Clustering Analysis zone the fiducial interval of people's face.Particularly, be exactly the number of rectangle frame of cluster areas during greater than first threshold, the cluster areas of acquisition is human face region.Described first threshold is associated with the target detection rate of people's face detection algorithm, and described target detection rate comprises: the false drop rate of the accuracy of target detection, the loss of target detection and target detection.
Fig. 3 is the schematic diagram that concerns between the picture number of the embodiment of the present invention one and rectangle frame.As shown in Figure 3, in figure, horizontal ordinate has represented the number of the rectangle frame of cluster areas, and ordinate has represented the number of the image that gathers.As shown in Figure 3, in the present embodiment, in the image that collects, while human face region being detected, the number of rectangle frame is all greater than 1.In the present embodiment in other words, not there will be the situation of only having a rectangle frame at human face region.When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 2 has 139 width; When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 4 has 78 width; When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 15 has 162 width; ...; When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 20 has 173 width; ...; When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 25 has 186 width; When cluster areas was human face region, in cluster areas, the number of rectangle frame was that the image of 30 has 151 width; ...; During in high fiducial interval shown in Figure 3, described cluster areas is human face region when the number of the rectangle frame of the cluster areas in the image that collects.Described first threshold is the integer between [10,40], and in the present embodiment, described first threshold gets 10.Number by the rectangle frame to cluster areas is added up, and can detect soon the position of people's face.
Corresponding to above-mentioned method for detecting human face, the present embodiment also provides a kind of people's face pick-up unit, and Fig. 4 is the structural representation of people's face pick-up unit of the embodiment of the present invention one, and as shown in Figure 4, described people's face pick-up unit comprises:
Acquiring unit 101, be used for utilizing people's face detection algorithm to obtain a plurality of regional frames of image.
Cluster analysis unit 102, be connected with described acquiring unit 101, is used for described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas.
Statistic unit 103, be connected with described cluster analysis unit 102, is used for the number of the regional frame of each cluster areas of statistics.
The first determining unit 104, be connected with described statistic unit 103, and the number that is used for the definite area frame is human face region greater than the cluster areas of first threshold.
In the present embodiment, described people's face detection algorithm can be the Adaboost algorithm, and described first threshold is the integer between [10~40].
In the present embodiment, described people's face pick-up unit also comprises: remove the unit (not shown), before the number for the regional frame in described statistic unit 103 each cluster areas of statistics, remove in described cluster areas and meet pre-conditioned regional frame.Describedly pre-conditionedly be: at the center of described regional frame to the distance at the center of cluster areas than the value of the width of described regional frame less than distance threshold.Regional frame described in the present embodiment is rectangle frame, and the scope of described distance threshold is [0.5W, W], and wherein W is the wide of described rectangle frame.
In the present embodiment, the course of work of described people's face pick-up unit can be carried out referring to above-mentioned method for detecting human face, repeats no more herein.
Embodiment two
In embodiment one, while having provided number at the regional frame of cluster areas greater than first threshold, determine that this cluster areas is human face region.In the testing process of reality, the satisfied situation greater than first threshold of number that the regional frame of cluster areas also may occur, the present embodiment is during to the situation in the discontented sufficient embodiment one of the number of the regional frame of cluster areas, and whether the how to confirm cluster areas is that human face region describes.
Fig. 5 is the schematic flow sheet of the method for detecting human face of the embodiment of the present invention two, and as shown in Figure 5, described method for detecting human face comprises:
Step S 11: utilize people's face detection algorithm to obtain a plurality of regional frames in image;
Step S12: described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Step S13: add up the number of the regional frame in each cluster areas, the number of definite area frame is human face region greater than the cluster areas of first threshold;
Step S14: based on the number of regional frame, less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold, determine human face region;
Step S15: the number of definite area frame is non-face zone less than the cluster areas of Second Threshold.
Similar in step S11~S13 and embodiment one in the present embodiment, so locate no longer to describe in detail.
Please continue referring to Fig. 3, between the zone of transition shown in Fig. 3, the number that is regional frame in the cluster areas that detects is less than first threshold and greater than the situation of Second Threshold, described Second Threshold is associated with the target detection rate of people's face detection algorithm, described Second Threshold is the integer between [5~8], in the present embodiment, described Second Threshold gets 5.For the number of the rectangle frame of cluster areas is in cluster areas between zone of transition, utilize the features of skin colors of this cluster areas to determine human face region.
Particularly, step S14 comprises:
Step S141: utilize the Face Detection algorithm to detect the skin pixel point of the predeterminable area of arbitrary regional frame in described cluster areas;
Step S142: in the number of described skin pixel point, than the value of the number of the pixel in described predeterminable area, during greater than the 5th threshold value, determine that described cluster areas is human face region.
Execution step S141, due to the cluster areas correspondence after cluster analysis at least one rectangle frame, therefore, utilize the Face Detection algorithm to detect the skin pixel point of the predeterminable area of arbitrary rectangle frame in described cluster areas.
Fig. 6 be the embodiment of the present invention two predeterminable area choose schematic diagram, described predeterminable area is rectangle, the wide width of described predeterminable area is between 0.25W~1W, W is wide (unit is pixel) of rectangle frame, the high height of described predeterminable area is between 0.25H~1H, and H is the height (unit is pixel) of rectangle frame.
In general, for the human face region structure of rectangle, vertically it equally spacedly can be divided into three zones, wherein eyes and eyebrow are usually located at 1/3 top zone of rectangular area; Face is usually located at 1/3 zone on the lower, rectangular area, and nose is positioned at remaining 1/3 zone that mediates.Detect human face region owing to being based on features of skin colors in the present embodiment, and the features of skin colors of eyes, eyebrow and face region is not obvious, therefore, for human face region to be detected (rectangular area), described predeterminable area choose the impact that should as far as possible avoid eyes eyebrow and face, choose the zone line (containing nosed zone) of described rectangular area.In the present embodiment, the choosing as shown in Figure 6 of described predeterminable area, the center that is centered close to rectangle frame of described predeterminable area, described predeterminable area wide
Figure BDA00001615480700121
The height of described predeterminable area
After selected predeterminable area, can apply the skin pixel point of the described predeterminable area of existing Face Detection technology for detection, as: the skin pixel point that can adopt predeterminable area as described in detecting based on the Face Detection algorithm of Gauss model, also can adopt the skin pixel point that detects described predeterminable area based on the Face Detection algorithm of Bayesian model, and while adopting the Face Detection algorithm to detect skin pixel point, the space at image place can be any one in other color spaces such as YCbCr space, yuv space, YIQ space.The concrete skin pixel point that detects described predeterminable area based on the Face Detection algorithm of which kind of model that adopts, determined by actual conditions.
Execution step S142, the number of statistics skin pixel point, during greater than the 5th threshold value, determine that described cluster areas is human face region than the value of the number of all pixels in predeterminable area in the number of the skin pixel point of predeterminable area.That is:
count width × height > limit _ ratio
Wherein, count is the number of the skin pixel point of predeterminable area, and weight * height is the number of the pixel in predeterminable area, and limit_ratio is the 5th threshold value.
Described the 5th threshold value is determined by test, the scope of the 5th threshold value described in the present embodiment be [0.5~1), can get 0.5,0.6,0.7 etc. as, described the 5th threshold value.
In another embodiment, determine that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region is by detecting the skin pixel point of cluster areas based on the number of regional frame, and the skin pixel point in cluster areas and the pixel in whole cluster areas are compared to carry out, particularly, comprising:
Utilize the Face Detection algorithm to detect the skin pixel point of described cluster areas;
The number of described skin pixel point than described cluster areas in the value of number of pixel during greater than the 3rd threshold value, determine that described cluster areas is human face region.
Described the 3rd threshold value is determined by test, and in the present embodiment, the span of described the 3rd threshold value is [0.3,0.8].Can get 0.3,0.4,0.5 etc. as, described the 3rd threshold value.
In another embodiment, determine that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region is by detecting the skin pixel point number of the arbitrary regional frame in described cluster areas based on the number of regional frame, and the pixel number in described skin pixel point number and this regional frame is compared to carry out, particularly, comprising:
Utilize the Face Detection algorithm to detect the skin pixel point of arbitrary regional frame in described cluster areas;
The number of described skin pixel point than described arbitrary regional frame in the value of number of pixel during greater than the 4th threshold value, determine that described cluster areas is human face region.
Described the 4th threshold value is determined by test, in the present embodiment, the span of described the 4th threshold value be [0.5~1), can get 0.5,0.6,0.7,0.8 etc. as, described the 4th threshold value.
, for the number of regional frame in the cluster areas that the detects situation less than Second Threshold, when namely the number of the rectangle frame shown in Fig. 3 is positioned at low fiducial interval, determine that this cluster areas is non-face zone.
Need to prove, in the present embodiment, be the number by the rectangle frame in Statistical Clustering Analysis zone, and the number of rectangle frame is classified and obtained some fiducial intervals.Yet Fig. 3 has only provided a kind of dividing mode of fiducial interval, namely according to the number of rectangle frame, marks off three fiducial intervals, when the number of the rectangle frame of adding up a certain cluster areas belongs to high fiducial interval, determines that this cluster areas is human face region.When the number of the rectangle frame of adding up a certain cluster areas belongs to low fiducial interval, determine that this cluster areas is non-face zone.When the number of the rectangle frame of adding up a certain cluster areas belongs between zone of transition, to determine whether this cluster areas is human face region further combined with the Face Detection algorithm.When practice, the division of fiducial interval not only is confined to shown in Figure 3, as, fiducial interval, can be divided into 2,4,5 etc., specifically how to divide rational fiducial interval and can test and determine by the data sample to collecting.Therefore, the division of fiducial interval should be as the restriction to technical solution of the present invention.
Corresponding to above-mentioned method for detecting human face, the embodiment of the present invention also provides a kind of people's face pick-up unit, and Fig. 7 is the structural representation of people's face pick-up unit of the embodiment of the present invention two, and as shown in Figure 7, described people's face pick-up unit comprises:
Acquiring unit 101, be used for utilizing people's face detection algorithm to obtain a plurality of regional frames of image.
Cluster analysis unit 102, be connected with described acquiring unit 101, is used for described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas.
Statistic unit 103, be connected with described cluster analysis unit 102, is used for the number of the regional frame of each cluster areas of statistics.
The first determining unit 104, be connected with described statistic unit 103, and the number that is used for the definite area frame is human face region greater than the cluster areas of first threshold.
The second determining unit 105, be connected with described statistic unit 103, is used for determining human face region based on the number of regional frame less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold.
The 3rd determining unit 106, be connected with described statistic unit 103, and the number that is used for the definite area frame is non-face zone less than the cluster areas of Second Threshold.
Second Threshold described in the present embodiment is the integer between [5~8], and described the second determining unit 105 comprises:
The 3rd detecting unit (not shown), be used for utilizing the Face Detection algorithm to detect the skin pixel point of the predeterminable area of the arbitrary regional frame of described cluster areas.
The 3rd determines the subelement (not shown), is used for number at described skin pixel point and during greater than the 5th threshold value, determines that described cluster areas is human face region than the value of the number of the pixel in described predeterminable area.
Described Face Detection algorithm is the Face Detection algorithm based on Gauss model or Bayesian model.Described the 5th threshold value is determined by test, the span of the 5th threshold value described in the present embodiment be [0.5~1), can get 0.5,0.6,0.7 etc. as, described the 5th threshold value.
In another embodiment, described the second determining unit comprises:
The first detecting unit, utilize the Face Detection algorithm to detect the skin pixel point of described cluster areas;
First determines subelement, be used for number at described skin pixel point than described cluster areas in the value of number of pixel during greater than the 3rd threshold value, determine that described cluster areas is human face region.
Described the 3rd threshold value is determined by test, and in the present embodiment, the span of described the 3rd threshold value is [0.3,0.8].Can get 0.3,0.4,0.5 etc. as, described the 3rd threshold value.
In another embodiment, described the second determining unit comprises:
The second detecting unit, utilize the Face Detection algorithm to detect the skin pixel point of arbitrary regional frame in described cluster areas;
Second determines subelement, be used for number at described skin pixel point than described arbitrary regional frame in the value of number of pixel during greater than the 4th threshold value, determine that described cluster areas is human face region.
Described the 4th threshold value is determined by test, in the present embodiment, the span of described the 4th threshold value be [0.5~1), can get 0.5,0.6,0.7,0.8 etc. as, described the 4th threshold value.
The course of work of the face of people described in the present embodiment pick-up unit, can carry out referring to above-mentioned method for detecting human face, no longer launches concrete detailed description the in detail herein.
In sum, technical scheme of the present invention has following beneficial effect at least:
A plurality of regional frames that obtain by people's face detection algorithm are carried out cluster analysis, add up the number of regional frame in each cluster areas, with this, detect human face region, for the method for detecting human face of skin color based, because it is subjected to illumination effect less, therefore loss is low; For the method for detecting human face based on Adaboost, owing to need not to gather a large amount of samples in the training process of detecting device, therefore reduced the complexity that people's face detects; And, after adopting people's face detection algorithm to obtain regional frame, first carry out cluster analysis, then the regional frame number in cluster areas is added up, also reduced the false drop rate that people's face detects.
In the number of the regional frame of cluster areas during less than first threshold and greater than Second Threshold, features of skin colors based on described cluster areas is determined human face region, compared to the method for detecting human face of skin color based with based on people's face detection algorithm of Adaboost, carry out people's face by the statistics of the regional frame number in conjunction with cluster areas and Face Detection algorithm and detect, further reduced loss and false drop rate that people's face detects.
While detecting skin pixel point, can detect the skin pixel point of described cluster areas, also can detect the skin pixel point of arbitrary regional frame in described cluster areas, can also detect the skin pixel point of the predeterminable area of arbitrary regional frame in described cluster areas, and then utilize the skin pixel point to determine human face region, therefore have very large dirigibility.
Although the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement to make possible change and modification to technical solution of the present invention; therefore; every content that does not break away from technical solution of the present invention;, to any simple modification, equivalent variations and modification that above embodiment does, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.

Claims (32)

1. a method for detecting human face, is characterized in that, comprising:
Utilize people's face detection algorithm to obtain a plurality of regional frames in image;
Described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Add up the number of the regional frame in each cluster areas, the number of definite area frame is human face region greater than the cluster areas of first threshold.
2. method for detecting human face as claimed in claim 1, is characterized in that, also comprises:
Determine human face region based on the number of regional frame less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold.
3. method for detecting human face as claimed in claim 2, is characterized in that, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of described cluster areas;
The number of described skin pixel point than described cluster areas in the value of number of pixel during greater than the 3rd threshold value, determine that described cluster areas is human face region.
4. method for detecting human face as claimed in claim 2, is characterized in that, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of arbitrary regional frame in described cluster areas;
The number of described skin pixel point than described arbitrary regional frame in the value of number of pixel during greater than the 4th threshold value, determine that described cluster areas is human face region.
5. method for detecting human face as claimed in claim 2, is characterized in that, described number based on regional frame determines that less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold human face region comprises:
Utilize the Face Detection algorithm to detect the skin pixel point of the predeterminable area of arbitrary regional frame in described cluster areas;
During greater than the 5th threshold value, determine that described cluster areas is human face region than the value of the number of the pixel in described predeterminable area in the number of described skin pixel point.
6. method for detecting human face as claimed in claim 5, is characterized in that, described regional frame is rectangle frame, and described predeterminable area is determined by following manner:
width∈0.25W~1W,height∈0.25H~1H;
Wherein, width is the wide of described predeterminable area, and height is the height of described predeterminable area, and W is the wide of described rectangle frame, and H is the height of described rectangle frame.
7. method for detecting human face as claimed in claim 1 or 2, is characterized in that, also comprises: the number of definite area frame is non-face zone less than the cluster areas of Second Threshold.
8. method for detecting human face as described in claim 1~6 any one, is characterized in that, described first threshold is the integer between [10,40].
9. method for detecting human face as described in claim 2~6 any one, is characterized in that, described Second Threshold is the integer between [5,8].
10. method for detecting human face as claimed in claim 3, is characterized in that, the span of described the 3rd threshold value is [0.3~0.8].
11. method for detecting human face as described in claim 3~5 any one, is characterized in that, described Face Detection algorithm is the Face Detection algorithm based on Gauss model or Bayesian model.
12. method for detecting human face as claimed in claim 1, is characterized in that, also comprises: before the number of the regional frame in each cluster areas of statistics, remove in described cluster areas and meet pre-conditioned regional frame.
13. method for detecting human face as claimed in claim 12, is characterized in that, describedly pre-conditionedly is: at the center of described regional frame to the distance at the center of cluster areas than the value of the width of described regional frame less than distance threshold.
14. method for detecting human face as claimed in claim 13, is characterized in that, described regional frame is rectangle frame, and the scope of described distance threshold is [0.5W, W], and wherein W is the wide of described rectangle frame.
15. method for detecting human face as described in claim 3~5 any one, is characterized in that, described people's face detection algorithm and Face Detection algorithm carry out at different color spaces.
16. method for detecting human face as claimed in claim 1, is characterized in that, described people's face detection algorithm is the adaboost algorithm.
17. people's face pick-up unit, is characterized in that, comprising:
Acquiring unit, be used for utilizing people's face detection algorithm to obtain a plurality of regional frames of image;
The cluster analysis unit, be used for described a plurality of regional frames are carried out cluster analysis, to obtain at least one cluster areas;
Statistic unit, for the number of the regional frame of adding up each cluster areas;
The first determining unit, the number that is used for the definite area frame is human face region greater than the cluster areas of first threshold.
18. people's face pick-up unit as claimed in claim 17, is characterized in that, also comprises:
The second determining unit, be used for determining human face region based on the number of regional frame less than first threshold and greater than the features of skin colors of the cluster areas of Second Threshold.
19. people's face pick-up unit as claimed in claim 18, is characterized in that, described the second determining unit comprises:
The first detecting unit, utilize the Face Detection algorithm to detect the skin pixel point of described cluster areas;
First determines subelement, be used for number at described skin pixel point than described cluster areas in the value of number of pixel during greater than the 3rd threshold value, determine that described cluster areas is human face region.
20. people's face pick-up unit as claimed in claim 18, is characterized in that, described the second determining unit comprises:
The second detecting unit, utilize the Face Detection algorithm to detect the skin pixel point of arbitrary regional frame in described cluster areas;
Second determines subelement, be used for number at described skin pixel point than described arbitrary regional frame in the value of number of pixel during greater than the 4th threshold value, determine that described cluster areas is human face region.
21. people's face pick-up unit as claimed in claim 18, is characterized in that, described the second determining unit comprises:
The 3rd detecting unit, be used for utilizing the Face Detection algorithm to detect the skin pixel point of the predeterminable area of the arbitrary regional frame of described cluster areas;
The 3rd determines subelement, is used for number at described skin pixel point and during greater than the 5th threshold value, determines that described cluster areas is human face region than the value of the number of the pixel in described predeterminable area.
22. people's face pick-up unit as claimed in claim 21 is characterized in that described regional frame is rectangle frame, described predeterminable area is determined by following manner:
width∈0.25W~1W,height∈0.25H~1H;
Wherein, width is the wide of described predeterminable area, and height is the height of described predeterminable area, and W is the wide of described rectangle frame, and H is the height of described rectangle frame.
23. people's face pick-up unit as described in claim 17 or 18, is characterized in that, also comprises:
The 3rd determining unit, the number that is used for the definite area frame is non-face zone less than the cluster areas of Second Threshold.
24. people's face pick-up unit as described in claim 17~22 any one is characterized in that described first threshold is the integer between [10,40].
25. people's face pick-up unit as described in claim 18~22 any one is characterized in that described Second Threshold is the integer between [5,8].
26. people's face pick-up unit as claimed in claim 19 is characterized in that the span of described the 3rd threshold value is [0.3~0.8].
27. people's face pick-up unit as described in claim 19~21 any one is characterized in that described Face Detection algorithm is the Face Detection algorithm based on Gauss model or Bayesian model.
28. people's face pick-up unit as claimed in claim 17, is characterized in that, also comprises:
Remove unit, before the number for the regional frame of adding up each cluster areas at described statistic unit, remove in described cluster areas and meet pre-conditioned regional frame.
29. people's face pick-up unit as claimed in claim 28, is characterized in that, describedly pre-conditionedly is: at the center of described regional frame to the distance at the center of cluster areas than the value of the width of described regional frame less than distance threshold.
30. people's face pick-up unit as claimed in claim 29 is characterized in that described regional frame is rectangle frame, the scope of described distance threshold is [0.5W, W], and wherein W is the wide of described rectangle frame.
31. people's face pick-up unit as described in claim 19~21 any one is characterized in that described people's face detection algorithm and Face Detection algorithm carry out at different color spaces.
32. people's face pick-up unit as claimed in claim 17 is characterized in that described people's face detection algorithm is the adaboost algorithm.
CN201210141577.5A 2012-05-08 2012-05-08 Method for detecting human face and device Active CN103390151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210141577.5A CN103390151B (en) 2012-05-08 2012-05-08 Method for detecting human face and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210141577.5A CN103390151B (en) 2012-05-08 2012-05-08 Method for detecting human face and device

Publications (2)

Publication Number Publication Date
CN103390151A true CN103390151A (en) 2013-11-13
CN103390151B CN103390151B (en) 2016-09-07

Family

ID=49534420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210141577.5A Active CN103390151B (en) 2012-05-08 2012-05-08 Method for detecting human face and device

Country Status (1)

Country Link
CN (1) CN103390151B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824090A (en) * 2014-02-17 2014-05-28 北京旷视科技有限公司 Adaptive face low-level feature selection method and face attribute recognition method
CN105512685A (en) * 2015-12-10 2016-04-20 小米科技有限责任公司 Object identification method and apparatus
CN105894020A (en) * 2016-03-30 2016-08-24 重庆大学 Specific target candidate box generating method based on gauss model
CN107851192A (en) * 2015-05-13 2018-03-27 北京市商汤科技开发有限公司 For detecting the apparatus and method of face part and face
CN108021881A (en) * 2017-12-01 2018-05-11 腾讯数码(天津)有限公司 A kind of skin color segmentation method, apparatus and storage medium
CN109376693A (en) * 2018-11-22 2019-02-22 四川长虹电器股份有限公司 Method for detecting human face and system
CN109961004A (en) * 2019-01-24 2019-07-02 深圳市梦网百科信息技术有限公司 A kind of polarization light source method for detecting human face and system
CN111815959A (en) * 2020-06-19 2020-10-23 浙江大华技术股份有限公司 Vehicle violation detection method and device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159018A (en) * 2007-11-16 2008-04-09 北京中星微电子有限公司 Image characteristic points positioning method and device
CN101183428A (en) * 2007-12-18 2008-05-21 北京中星微电子有限公司 Image detection method and apparatus
US20090110303A1 (en) * 2007-10-31 2009-04-30 Kabushiki Kaisha Toshiba Object recognizing apparatus and method
US20100156834A1 (en) * 2008-12-24 2010-06-24 Canon Kabushiki Kaisha Image selection method
US20100182480A1 (en) * 2009-01-16 2010-07-22 Casio Computer Co., Ltd. Image processing apparatus, image matching method, and computer-readable recording medium
CN102184385A (en) * 2011-04-19 2011-09-14 天津工业大学 Structural-feature-based face detection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090110303A1 (en) * 2007-10-31 2009-04-30 Kabushiki Kaisha Toshiba Object recognizing apparatus and method
CN101159018A (en) * 2007-11-16 2008-04-09 北京中星微电子有限公司 Image characteristic points positioning method and device
CN101183428A (en) * 2007-12-18 2008-05-21 北京中星微电子有限公司 Image detection method and apparatus
US20100156834A1 (en) * 2008-12-24 2010-06-24 Canon Kabushiki Kaisha Image selection method
US20100182480A1 (en) * 2009-01-16 2010-07-22 Casio Computer Co., Ltd. Image processing apparatus, image matching method, and computer-readable recording medium
CN102184385A (en) * 2011-04-19 2011-09-14 天津工业大学 Structural-feature-based face detection method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824090A (en) * 2014-02-17 2014-05-28 北京旷视科技有限公司 Adaptive face low-level feature selection method and face attribute recognition method
CN103824090B (en) * 2014-02-17 2017-02-08 北京旷视科技有限公司 Adaptive face low-level feature selection method and face attribute recognition method
CN107851192A (en) * 2015-05-13 2018-03-27 北京市商汤科技开发有限公司 For detecting the apparatus and method of face part and face
CN105512685A (en) * 2015-12-10 2016-04-20 小米科技有限责任公司 Object identification method and apparatus
CN105894020A (en) * 2016-03-30 2016-08-24 重庆大学 Specific target candidate box generating method based on gauss model
CN105894020B (en) * 2016-03-30 2019-04-12 重庆大学 Specific objective candidate frame generation method based on Gauss model
CN108021881A (en) * 2017-12-01 2018-05-11 腾讯数码(天津)有限公司 A kind of skin color segmentation method, apparatus and storage medium
CN108021881B (en) * 2017-12-01 2023-09-01 腾讯数码(天津)有限公司 Skin color segmentation method, device and storage medium
CN109376693A (en) * 2018-11-22 2019-02-22 四川长虹电器股份有限公司 Method for detecting human face and system
CN109961004A (en) * 2019-01-24 2019-07-02 深圳市梦网百科信息技术有限公司 A kind of polarization light source method for detecting human face and system
CN111815959A (en) * 2020-06-19 2020-10-23 浙江大华技术股份有限公司 Vehicle violation detection method and device and computer readable storage medium
CN111815959B (en) * 2020-06-19 2021-11-16 浙江大华技术股份有限公司 Vehicle violation detection method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN103390151B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN103390151A (en) Face detection method and device
CN103839065B (en) Extraction method for dynamic crowd gathering characteristics
CN104063722B (en) A kind of detection of fusion HOG human body targets and the safety cap recognition methods of SVM classifier
CN105095829B (en) A kind of face identification method and system
CN103198493B (en) A kind ofly to merge and the method for tracking target of on-line study based on multiple features self-adaptation
CN105023008A (en) Visual saliency and multiple characteristics-based pedestrian re-recognition method
CN104268596B (en) A kind of Car license recognition device and its detection method of license plate and system
CN102915433B (en) Character combination-based license plate positioning and identifying method
CN107230267B (en) Intelligence In Baogang Kindergarten based on face recognition algorithms is registered method
CN103871077B (en) A kind of extraction method of key frame in road vehicles monitoring video
CN104992148A (en) ATM terminal human face key points partially shielding detection method based on random forest
CN105160317A (en) Pedestrian gender identification method based on regional blocks
CN102521565A (en) Garment identification method and system for low-resolution video
CN106355138A (en) Face recognition method based on deep learning and key features extraction
CN105069448A (en) True and false face identification method and device
CN103679118A (en) Human face in-vivo detection method and system
CN102332094B (en) Semi-supervised online study face detection method
CN103093212A (en) Method and device for clipping facial images based on face detection and face tracking
CN106250936A (en) Multiple features multithreading safety check contraband automatic identifying method based on machine learning
CN109145742A (en) A kind of pedestrian recognition method and system
CN103778409A (en) Human face identification method based on human face characteristic data mining and device
CN101984453B (en) Human eye recognition system and method
CN105426828A (en) Face detection method, face detection device and face detection system
CN102867188A (en) Method for detecting seat state in meeting place based on cascade structure
CN109344886B (en) Occlusion number plate distinguishing method based on convolutional neural network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180423

Address after: 300456 Tianjin Binhai New Area free trade pilot area (Dongjiang Bonded Port Area), Asia Road 6865 financial and Trade Center North District 1 Building 1 door 1802 room -7

Patentee after: Xinji Lease (Tianjin) Co.,Ltd.

Address before: Zuchongzhi road in Pudong Zhangjiang hi tech park Shanghai 201203 Lane 2288 Pudong New Area Spreadtrum Center Building 1

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20131113

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xinji Lease (Tianjin) Co.,Ltd.

Contract record no.: 2018990000196

Denomination of invention: Face detection method and device

Granted publication date: 20160907

License type: Exclusive License

Record date: 20180801

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221014

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 300456 Tianjin Binhai New Area free trade pilot area (Dongjiang Bonded Port Area), Asia Road 6865 financial and Trade Center North District 1 Building 1 door 1802 room -7

Patentee before: Xinji Lease (Tianjin) Co.,Ltd.