FACE DETECTION METHOD AND APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM
FIG9 is a flowchart of dividing sample images in a sample image set to split to generate each of nodes of a regression tree according to an embodiment
As shown in FIG9, in an embodiment, the dividing sample images in the sample image set according to the first pixel pair collection, splitting to generate each of nodes of a regression tree includes:performing the following processing on a root node and each of the nodes that are generated by splitting by beginning from the root node of the regression tree:S902: Select a second pixel pair collection randomly from the first pixel pair collection.
flowchart
4
node nodes
['1. A face detection method for a computer device, comprising: obtaining a to-be-detected image; obtaining an initial shape of a current regression tree in a pre-constructed probability regression model; extracting image features from the to-be-detected image and respectively calculating a probability of each of leaf nodes of the current regression tree according to the image features; extracting an error of each of the leaf nodes from the current regression tree; determining a shape error of the current regression tree according to the probability and the error of each of the leaf nodes; calculating, by the compute device, an estimated shape of the current regression tree according to the initial shape and the shape error; and performing iterative calculation by using the estimated shape as an initial shape of a neighboring next regression tree until a last regression tree in the probability regression model, to obtain an estimated shape of the last regression tree as a detected face shape.']