# US 2020/0394392 A1 · Method and apparatus for detecting face image

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

- Number: US 2020/0394392 A1
- Document ID: US20200394392A1
- Status: Published application
- Kind: A1
- Application number: 16/701,982
- Filed: 2019-12-03
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd.
- Inventors: Yang WANG; Yan LIU; Junfeng XIONG; Xin HAO
- Web page: https://patentgrep.com/patent/US20200394392A1

## CPC

- G06V 40/162: {using pixel segmentation or colour matching}
- G06V 40/173: {face re-identification, e.g. recognising unknown faces across different face tracks}
- G06V 40/165: {using facial parts and geometric relationships}
- G06V 40/166: {using acquisition arrangements}
- G06V 40/169: {Holistic features and representations, i.e. based on the facial image taken as a whole}
- G06V 40/40: Spoof detection, e.g. liveness detection
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of the present disclosure provide a method and apparatus for detecting a face image, electronic device, and computer readable medium. The method may include: performing facial keypoint detection on an image frame containing a face object; segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result; performing head pose estimation respectively based on the center face area image and the entire face area image; and generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image.

## Claims

### Claim 1

A method for detecting a face image, comprising:
performing facial keypoint detection on an image frame containing a face object;
segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result, the center face area image being a face image excluding a fringe face area, and the entire face area image being a face image containing the fringe face area;
performing head pose estimation respectively based on the center face area image and the entire face area image; and
generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
determining the target face object being the fake face object, in response to determining that the difference between the piece of first head pose information and the piece of second head pose information corresponding to a target face object contained in a plurality of consecutive image frames of a video exceeds a preset difference range.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the piece of first head pose information comprises a first head pose angle vector, and the piece of second head pose information comprises a second head pose angle vector; and
the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
computing a deviation between the first head pose angle vector and the second head pose angle vector; and
determining, in response to determining that the deviation between the first head pose angle vector and the second head pose angle vector is greater than a preset threshold, the target face object contained in the image frame being the fake face object.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result comprises:
determining a boundary of the center face area based on positions of keypoints of five sense organs in the facial keypoint detection result; and
segmenting an image area within the boundary of the center face area from the image frame for use as the center face area image.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
expanding the boundary of the center face area outward by a preset range, for use as a boundary of the entire face area; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
determining a boundary of the entire face area based on positions of fringe facial keypoints in the facial keypoint detection result; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.

### Claim 7

An apparatus for detecting a face image, comprising:
at least one processor; and
a memory storing instructions, wherein the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:
performing facial keypoint detection on an image frame containing a face object;
segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result, the center face area image being a face image excluding a fringe face area, and the entire face area image being a face image containing the fringe face area;
performing head pose estimation respectively based on the center face area image and the entire face area image; and
generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image.

### Claim 8 (depends on 7)

The apparatus according to claim 7, wherein the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
determining the target face object being the fake face object, in response to determining that the difference between the piece of first head pose information and the piece of second head pose information corresponding to a target face object contained in a plurality of consecutive image frames of a video exceeds a preset difference range.

### Claim 9 (depends on 7)

The apparatus according to claim 7, wherein the piece of first head pose information comprises a first head pose angle vector, and the piece of second head pose information comprises a second head pose angle vector; and
the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
computing a deviation between the first head pose angle vector and the second head pose angle vector; and
determining, in response to determining that the deviation between the first head pose angle vector and the second head pose angle vector is greater than a preset threshold, the target face object contained in the image frame being the fake face object.

### Claim 10 (depends on 7)

The apparatus according to claim 7, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result comprises:
determining a boundary of the center face area based on positions of keypoints of five sense organs in the facial keypoint detection result; and
segmenting an image area within the boundary of the center face area from the image frame for use as the center face area image.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
expanding the boundary of the center face area outward by a preset range, for use as a boundary of the entire face area; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.

### Claim 12 (depends on 10)

The apparatus according to claim 10, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
determining a boundary of the entire face area based on positions of fringe facial keypoints in the facial keypoint detection result; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.

### Claim 13

A non-transitory computer readable medium, storing a computer program thereon, wherein the program, when executed by a processor, causes the processor to perform operations, the operations comprising:
performing facial keypoint detection on an image frame containing a face object;
segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result, the center face area image being a face image excluding a fringe face area, and the entire face area image being a face image containing the fringe face area;
performing head pose estimation respectively based on the center face area image and the entire face area image; and
generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image.

### Claim 14 (depends on 13)

The non-transitory computer readable medium according to claim 13, wherein the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
determining the target face object being the fake face object, in response to determining that the difference between the piece of first head pose information and the piece of second head pose information corresponding to a target face object contained in a plurality of consecutive image frames of a video exceeds a preset difference range.

### Claim 15 (depends on 13)

The non-transitory computer readable medium according to claim 13, wherein the piece of first head pose information comprises a first head pose angle vector, and the piece of second head pose information comprises a second head pose angle vector; and
the generating a detection result on whether the target face object contained in the image frame is a fake face object based on a difference between a piece of first head pose information estimated based on the center face area image and a piece of second head pose information estimated based on the entire face area image comprises:
computing a deviation between the first head pose angle vector and the second head pose angle vector; and
determining, in response to determining that the deviation between the first head pose angle vector and the second head pose angle vector is greater than a preset threshold, the target face object contained in the image frame being the fake face object.

### Claim 16 (depends on 13)

The non-transitory computer readable medium according to claim 13, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result comprises:
determining a boundary of the center face area based on positions of keypoints of five sense organs in the facial keypoint detection result; and
segmenting an image area within the boundary of the center face area from the image frame for use as the center face area image.

### Claim 17 (depends on 16)

The non-transitory computer readable medium according to claim 16, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
expanding the boundary of the center face area outward by a preset range, for use as a boundary of the entire face area; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.

### Claim 18 (depends on 16)

The non-transitory computer readable medium according to claim 16, wherein the segmenting a center face area image and an entire face area image of a target face object from the image frame based on a facial keypoint detection result further comprises:
determining a boundary of the entire face area based on positions of fringe facial keypoints in the facial keypoint detection result; and
segmenting a corresponding image area from the image frame based on the boundary of the entire face area, for use as the entire face area image.
