8. An apparatus for generating a strong classifier for face detection, the apparatus having a processor comprising: a determining module, configured to determine, according to a size of a prestored image training sample, a parameter of each of one or more weak classifiers of the image training sample; a processing module, configured to obtain, according to a preset threshold of each of the one or more weak classifiers and the parameter of each weak classifier, a sketch value of each of the one or more weak classifiers of the image training sample; a selecting module, configured to calculate, according to the sketch value of each weak classifier obtained by the processing module and an initial weight of the image training sample, a weighted classification error of each of the one or more weak classifiers of the image training sample; and to obtain, according to the weighted classification error of each of tweak classifier, one or more optimal weak classifiers at least one optimal weak classifier according to the weighted classification error; and a generating module, configured to generate a strong classifier for face detection according to the one or more optimal weak classifiers selected by the selecting module.
8. An apparatus for generating a strong classifier for face detection, the apparatus having a processor comprising: a determining module, configured to determine, according to a size of a prestored image training sample, a parameter of each of one or more weak classifiers of the image training sample; a processing module, configured to obtain, according to a preset threshold of each of the one or more weak classifiers and the parameter of each weak classifier, a sketch value of each of the one or more weak classifiers of the image training sample; a selecting module, configured to calculate, according to the sketch value of each weak classifier obtained by the processing module and an initial weight of the image training sample, a weighted classification error of each of the one or more weak classifiers of the image training sample; and to obtain, according to the weighted classification error of each of tweak classifier, one or more optimal weak classifiers at least one optimal weak classifier according to the weighted classification error; and a generating module, configured to generate a strong classifier for face detection according to the one or more optimal weak classifiers selected by the selecting module. 10. The apparatus according to claim 8 , wherein the processor further comprises: a setting module, configured to set an initial number of optimal weak classifiers; a judging module, configured to determine whether a number of optimal weak classifiers obtained by the selection module is less than a preset number; a second updating module, configured to determine the total number of optimal weak classifiers according to the number of optimal weak classifiers that are obtained by the selecting module and the initial number of optimal weak classifiers that is set by the setting module; and a first updating module, configured to, when a determining result of the judging module is that the total number of obtained optimal weak classifiers is less than the preset number, update a weight of the image training sample to obtain an updated weight of the image training sample, wherein the selecting module is configured to calculate a weighted classification error of each of the weak classifiers according to the sketch value obtained by the processing module and the updated weight of the image training sample to obtain an updated weighted classification error of each of the one or more weak classifiers of the image training sample and to obtain, according to the updated weighted classification error of each weak classifier, one or more updated optimal weak classifiers; wherein the second updating module is configured to update the total number of obtained optimal weak classifiers according to the number of optimal weak classifiers that are obtained by the selecting module; and the generating module is configured to, when the determining result of the judging module is that the total number of obtained optimal weak classifiers is not less than the preset number, generate the strong classifier for face detection according to the optimal weak classifiers selected by the selecting module.