# US 9,355,302 B2 · Method and electronic equipment for identifying facial features

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,302 B2
- Document ID: US9355302B2
- Status: Granted
- Kind: B2
- Application number: 14/584,366
- Filed: 2014-12-29
- Published: 2015-04-30
- Granted: 2016-05-31
- Earliest claimed: 2013-05-21
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jin Wen He; Yan Bo Long
- Web page: https://patentgrep.com/patent/US9355302B2

## CPC

- G06V 40/168: {Feature extraction; Face representation}
- G06V 40/172: {Classification, e.g. identification}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method for identifying facial features comprises following steps: An image tracing step is performed to receive video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique. A data calculating step is performed to calculate a video data difference between a current face image and the real-time background image. A process setting step is performed to set an iteration number according to the video data difference. A coordinate requesting step is performed to obtain facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates. A localization step is performed to obtain current facial feature coordinates of the current image by conducting an iterative calculation according to the iteration number and based on the initial facial feature coordinates.

## Claims

### Claim 1

A method for identifying facial features, for executed by an electronic equipment, the method comprising:
receiving video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images;
calculating a video data difference between a current face image and the real-time background image;
setting an iteration number according to the video data difference;
obtaining facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates; and
obtaining current facial feature coordinates of the current image, wherein an iterative calculation is conducted according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates, and the step of calculating the video data comprises:
receiving the current face image and the real-time background image that are both subjected to a gray degree treatment;
obtaining difference of the current face image and the real-time background image to form a prospective view image;
classifying pixels of the foreground image in at least two groups according to different criteria for evaluating the gray degree of the pixels of the foreground image, and
giving a weight value to the pixels of the foreground image that are classified within the same group; and
obtaining the video data difference by calculating a ratio of a weighted sum of the pixels number to the pixels number of the foreground image.

### Claim 2

A method for identifying facial features, for executed by an electronic equipment, the method comprising:
receiving video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images;
calculating a video data difference between a current face image and the real-time background image;
setting an iteration number according to the video data difference;
obtaining facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates; and
obtaining current facial feature coordinates of the current image, wherein an iterative calculation is conducted according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates, and the step of calculating the video data comprises:
performing a first test to determine whether the video data difference is less than a first threshold value;
if the video data difference is not less than the first threshold value, the step of setting an iteration number is performed; and
if the video data difference is less than the first threshold value, the facial feature coordinates of the previous face image are referred to as the current facial feature coordinates of the current image.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the step of setting an iteration number further comprises identifying regions of interest (ROIs) of the current face image according to the video data difference; and
the step of obtaining current facial feature coordinates of the current image further comprises conducting the iterative calculation to obtain the current facial feature coordinates of the current image based on the initial facial feature coordinates merely involved in the ROIs.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the step of identifying ROIs of the current face image further comprises performing an illumination normalization treatment on the ROIs.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the step of identifying ROIs of the current face image further comprises:
performing a second test to determine whether the video data difference is greater than a first threshold value; and
if the video data difference is not greater than the second threshold value, the step of obtaining facial feature coordinates of a previous face image is performed.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the step of identifying ROIs of the current face image further comprises:
obtaining a training value of the facial feature coordinates involved in the ROIs if the video data difference is greater than the second threshold value;
referring the facial feature coordinates of the previous face image as the current facial feature coordinates of the current image;
referring the training value of the facial feature coordinates as the initial facial feature coordinates; and
performing the step of obtaining current facial feature coordinates of the current image.

### Claim 7

A method for identifying facial features, for executed by an electronic equipment, the method comprising:
receiving video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images;
calculating a video data difference between a current face image and the real-time background image;
setting an iteration number according to the video data difference;
obtaining facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates; and
obtaining current facial feature coordinates of the current image, wherein an iterative calculation is conducted according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates, and the step of obtaining current facial feature coordinates of the current image comprises:
predicting moving speed and direction of facial features varying between the current face image and the previous face image;
adjusting the initial facial feature coordinates according to the predicted moving speed and direction of the facial features; and
performing the iterative calculation based on the adjusted initial facial feature coordinates to obtain the current feature coordinates of the current image.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the step of obtaining current facial feature coordinates of the current image further comprises adjusting the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the step of obtaining current facial feature coordinates of the current image further comprises: performing a smooth treatment to the current facial feature coordinates of the current image.

### Claim 10

An electronic equipment for identifying facial features, comprising: a display panel; a memory; one or more processors; and one or more modules stored in the memory and configured for execution by the one or more processors, the one or more modules comprising:
an image tracing module, comprising instructions to request video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images on the display panel;
a data calculating module, comprising instructions to calculate a video data difference between a current face image and the real-time background image;
a process setting module, comprising instructions to set an iteration number according to the video data difference;
a coordinate requesting module, comprising instructions to obtain facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates; and
a localization module, comprising instructions to obtain current facial feature coordinates of the current image by conducting an iterative calculation according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates, wherein the data calculating module comprises instructions to:
receive the current face image and the real-time background image that are both subjected to a gray degree treatment;
obtain difference of the current face image and the real-time background image to form a prospective view image;
classify pixels of the foreground image in at least two groups according to different criteria for evaluating the gray degree of the pixels of the foreground image, and
give a weight value to the pixels of the foreground image that are classified within the same group; and
obtain the video data difference by calculating a ratio of a weighted sum of the pixels number to the pixels number of the foreground image.

### Claim 11

An electronic equipment for identifying facial features, comprising: a display panel; a memory; one or more processors; and one or more modules stored in the memory and configured for execution by the one or more processors, the one or more modules comprising:
an image tracing module, comprising instructions to request video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images on the display panel;
a data calculating module, comprising instructions to calculate a video data difference between a current face image and the real-time background image;
a process setting module, comprising instructions to set an iteration number according to the video data difference;
a coordinate requesting module, comprising instructions to obtain facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates;
a localization module, comprising instructions to obtain current facial feature coordinates of the current image by conducting an iterative calculation according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates; and
a first test module, comprising instructions to determine whether the video data difference is less than a first threshold value;
if the video data difference is not less than the first threshold value, the process setting module is executed; and
if the video data difference is less than the first threshold value, the facial feature coordinates of the previous face image are referred to as the current facial feature coordinates of the current image.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein the one or more modules comprises:
a regions of interest (ROIs)-identifying module, comprising instructions to identify regions of interest (ROIs) of the current face image according to the video data difference, wherein the localization module is applied to obtain the current facial feature coordinates of the current image by conducting the iterative calculation based on the initial facial feature coordinates merely involved in the ROIs.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the localization module further comprises instructions to perform an illumination normalization treatment on the ROIs.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein the one or more modules comprises:
a second test module, comprising instructions to determine whether the video data difference is greater than a first threshold value; and
if the video data difference is not greater than the second threshold value, the process designated to the coordinate requesting module is executed.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the one or more modules comprises:
a human face inspection module, comprising instructions to obtain a training value of the facial feature coordinates involved in the ROIs, if the video data difference is greater than the second threshold value, to refer to the training value of the facial feature coordinates as the initial facial feature coordinates, and to execute the localization module.

### Claim 16

An electronic equipment for identifying facial features, comprising: a display panel; a memory; one or more processors; and one or more modules stored in the memory and configured for execution by the one or more processors, the one or more modules comprising:
an image tracing module, comprising instructions to request video data of a plurality of face images and to obtain a real-time background image from the video data by a video tracing technique during a process for displaying the plurality of face images on the display panel;
a data calculating module, comprising instructions to calculate a video data difference between a current face image and the real-time background image;
a process setting module, comprising instructions to set an iteration number according to the video data difference;
a coordinate requesting module, comprising instructions to obtain facial feature coordinates of a previous face image, the previous one of the current face image, serving as initial facial feature coordinates;
a localization module, comprising instructions to obtain current facial feature coordinates of the current image by conducting an iterative calculation according to the iteration number to localize the facial features of the current image based on the initial facial feature coordinates; and
a predict module, comprising instructions to predict moving speed and direction of facial features varying between the current face image and the previous face image, and to adjust the initial facial feature coordinates according to the predicted moving speed and direction of the facial features, whereby the localization module can be used to perform the iterative calculation based on the adjusted initial facial feature coordinates to obtain the current feature coordinates of the current image.

### Claim 17 (depends on 10)

The apparatus according to claim 10, wherein the localization module further comprises instructions to adjust the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 18 (depends on 10)

The apparatus according to claim 10, wherein the one or more modules comprises a smooth module, comprising instructions to perform a smooth treatment to the current facial feature coordinates of the current image.

### Claim 19 (depends on 2)

The method according to claim 2, wherein the step of obtaining current facial feature coordinates of the current image further comprises adjusting the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 20 (depends on 7)

The method according to claim 7, wherein the step of obtaining current facial feature coordinates of the current image further comprises adjusting the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 21 (depends on 2)

The method according to claim 2, wherein the step of obtaining current facial feature coordinates of the current image further comprises: performing a smooth treatment to the current facial feature coordinates of the current image.

### Claim 22 (depends on 7)

The method according to claim 7, wherein the step of obtaining current facial feature coordinates of the current image further comprises: performing a smooth treatment to the current facial feature coordinates of the current image.

### Claim 23 (depends on 11)

The apparatus according to claim 11, wherein the localization module further comprises instructions to adjust the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 24 (depends on 16)

The apparatus according to claim 16, wherein the localization module further comprises instructions to adjust the current feature coordinates of the current image and the predicted moving speed and direction of the facial features.

### Claim 25 (depends on 11)

The apparatus according to claim 11, wherein the one or more modules comprises a smooth module, comprising instructions to perform a smooth treatment to the current facial feature coordinates of the current image.

### Claim 26 (depends on 16)

The apparatus according to claim 16, wherein the one or more modules comprises a smooth module, comprising instructions to perform a smooth treatment to the current facial feature coordinates of the current image.
