IP Library › Granted Patent US 12,327,299
Granted Patent B2
US 12,327,299 · App. 17/426,840 · Granted Jun 10, 2025

Facial expression image processing method and apparatus, and electronic device

Inventors: Shaohui Lyu (Beijing, CN); Hui Yang (Beijing, CN); Guangyao Ni (Beijing, CN)
Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
G06T11/00G06T3/40G06V10/70G06V40/161G06V40/168G06V40/174
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,327,299
App. No.
17/426,840
Granted
Jun 10, 2025
Kind
B2
Abstract

A method and an apparatus for processing a facial expression image, an electronic device and a computer-readable storage medium are provided. The method includes: acquiring a first image, the first image comprising a facial image; recognizing a facial expression of the facial image; performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image; and covering the first facial image at a position of the facial image, to acquire a first image effect. Generation of a facial image effect is controlled based on a facial expression, thereby solving the technical problem that the image effect is complicated to produce and is fixed since the processing effect cannot be flexibly configured.

Claims (77)

1. A computer-implemented method for generating image effects, comprising:

acquiring a first image, the first image comprising a facial image;

recognizing a facial expression of the facial image;

performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image, wherein the performing the first processing on the facial image to acquire a first facial image comprises:

computing a position of a pixel in the facial image based on segmenting the facial image from the first image and enlarging the segmented facial image,

assigning a color value to the pixel in the segmented and enlarged facial image based at least in part on a color value of the pixel in the facial image, and

generating a new facial image as the first facial image based on the segmented and enlarged facial image with assigned color values; and

superposing the first facial image on the facial image to generate a first image effect.

2. The method for processing a facial expression image according to claim 1 , wherein the acquiring a first image, the first image comprising a facial image comprises:

acquiring a first video, wherein at least one of video frames in the first video comprises the facial image.

3. The method for processing a facial expression image according to claim 1 , wherein the recognizing a facial expression of the facial image comprises:

recognizing the facial image in the first image;

extracting a feature of the facial expression from the facial image; and

recognizing the facial expression based on the feature of the facial expression.

4. The method for processing a facial expression image according to claim 1 , wherein the performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image comprises:

acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the racial expression as the first facial expression; and

performing the first processing on the facial image based on the processing configuration file to acquire the first facial image.

5. The method for processing a facial expression image according to claim 4 , wherein the acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the facial expression as the first facial expression comprises:

recognizing the facial expression as the first facial expression; and

acquiring the processing configuration file corresponding to the first facial expression, in a case that a level of the first facial expression reaches a preset level.

6. The method for processing a facial expression image according to claim 4 , wherein the acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the facial expression as the first facial expression comprises:

recognizing the facial expression as the first facial expression;

acquiring the processing configuration file corresponding to the first facial expression;

determining a level of the first facial expression; and

setting a processing parameter in the processing configuration file based on the level of the first facial expression.

7. The method for processing a facial expression image according to claim 4 , wherein the performing the first processing on the facial image based on the processing configuration file to acquire the first facial image comprises:

segmenting the facial image from the first image; and

enlarging the facial image segmented from the first image based on the processing configuration file, to acquire an enlarged facial image.

8. The method for processing a facial expression image according to claim 1 , wherein the covering the first facial image at a position of the facial image, to acquire a first image effect comprises:

acquiring a first positioning feature point on the first facial image and a second positioning feature point on the facial image; and

covering the first facial image on the facial image, and causing the first positioning feature point and the second positioning feature point to coincide with each other, to acquire the first image effect.

9. The method for processing a facial expression image according to claim 1 , wherein the acquiring a first image, the first image comprising a facial image comprises:

acquiring the first image, the first image comprising at least two facial images.

10. The method for processing a facial expression image according to claim 9 , wherein the recognizing a facial expression of the facial image comprises:

respectively recognizing facial expressions of the at least two facial images.

11. The method for processing a facial expression image according to claim 10 , wherein the performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image comprises:

performing, in response to recognizing at least one of the facial expressions as the first facial expression, the first processing on the facial image corresponding to the first facial expression to acquire at least one first facial image.

12. The method for processing a facial expression image according to claim 11 , wherein the performing, in response to recognizing at least one of the facial expressions as the first facial expression, the first processing on the facial image corresponding to the first facial expression to acquire at least one first racial image comprises:

in response to recognizing the at least one or the facial expressions as the first facial expression, acquiring a first processing configuration file corresponding to the first facial expression of the facial image; and

performing the first processing on the facial image corresponding to the first facial expression, based on the first processing configuration file to acquire the at least one first facial image.

13. The method for processing a facial expression image according to claim 11 , wherein the covering the first facial image at a position of the facial image, to acquire a first image effect comprises:

covering the at least one first facial image at a position of the facial image corresponding to the at least one first facial image, to acquire the first image effect.

14. An electronic device, comprising:

at least one processor; and

at least one memory configured for storing at least one program, wherein the at least one program, when executed by the at least one processor, causes the at least one processor to perform operations comprising:

acquiring a first image, the first image comprising a facial image;

recognizing a facial expression of the facial image;

performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image, wherein the performing the first processing on the facial image to acquire a first facial image comprises:

computing a position of a pixel in the facial image based on segmenting the facial image from the first image and enlarging the segmented facial image,

assigning a color value to the pixel in the segmented and enlarged facial image based at least in part on a color value of the pixel in the facial image, and

generating a new facial image as the first facial image based on the segmented and enlarged facial image with assigned color values; and

superposing the first facial image on the facial image to generate a first image effect.

15. A non-transitory computer readable storage medium configured to store non-transitory computer readable instructions, the non-transitory computer readable instructions, when executed by a computer, causing the computer to perform operations comprising:

acquiring a first image, the first image comprising a facial image;

recognizing a facial expression of the facial image;

performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image, wherein the performing the first processing on the facial image to acquire a first facial image comprises:

computing a position of a pixel in the facial image based on segmenting the facial image from the first image and enlarging the segmented facial image,

assigning a color value to the pixel in the segmented and enlarged facial image based at least in part on a color value of the pixel in the facial image, and

generating a new facial image as the first facial image based on the segmented and enlarged facial image with assigned color values; and

superposing the first facial image on the facial image to generate a first image effect.

16. The method for processing a facial expression image according to claim 12 , wherein the covering the first facial image at a position of the facial image, to acquire a first image effect comprises:

covering the at least one first facial image at a position of the facial image corresponding to the at least one first facial image, to acquire the first image effect.

17. The electronic device according to claim 14 , wherein the recognizing a facial expression of the facial image comprises:

recognizing the facial image in the first image;

extracting a feature of the facial expression from the facial image; and

recognizing the facial expression based on the feature of the facial expression.

18. The electronic device according to claim 14 , wherein the performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image comprises:

acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the facial expression as the first facial expression; and

performing the first processing on the facial image based on the processing configuration file to acquire the first facial image.

19. The electronic device according to claim 18 , wherein the acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the facial expression as the first facial expression comprises:

recognizing the facial expression as the first facial expression; and

acquiring the processing configuration file corresponding to the first facial expression, in a case that a level of the first facial expression reaches a preset level.

20. The electronic device according to claim 18 , wherein the acquiring a processing configuration file corresponding to the first facial expression, in response to recognizing the facial expression as the first facial expression comprises:

recognizing the facial expression as the first facial expression;

acquiring the processing configuration file corresponding to the first facial expression;

determining a level of the first facial expression; and

setting a processing parameter in the processing configuration file based on the level of the first facial expression.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 6, 2021
From: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 057110/0626 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 6, 2021
From: LYU, SHAOHUI; YANG, HUI; NI, GUANGYAO
To: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
Reel/Frame 057115/0993 →
Priority Claims (1)
CN 201910101335.5 · Jan 31, 2019 · national
Continuity (1)
Related Publication 20220207917A1 · Jun 30, 2022
References Cited (41)
US 11182591B2 · Jin · 2021 [cited by examiner]
US 11455729B2 · Gao · 2022 [cited by examiner]
US 20120113211A1 · Yi · 2012 [cited by examiner]
US 20170024005A1 · Liu · 2017 [cited by examiner]
US 20180068482A1 · Yam · 2018 [cited by examiner]
US 20180115746A1 · Wang · 2018 [cited by applicant]
US 20180204052A1 · Li · 2018 [cited by examiner]
US 20190050548A1 · Zhang · 2019 [cited by examiner]
US 20190116323A1 · Kim · 2019 [cited by examiner]
US 20190220661A1 · Wang · 2019 [cited by examiner]
US 20190251336A1 · Wu · 2019 [cited by examiner]
US 20190294860A1 · Jin · 2019 [cited by examiner]
US 20200074149A1 · Zhang · 2020 [cited by examiner]
US 20200380682A1 · Gao · 2020 [cited by examiner]
US 20210022662A1 · Hyun · 2021 [cited by examiner]
US 20210029305A1 · Tang · 2021 [cited by examiner]
US 20210339755A1 · Inagaki · 2021 [cited by examiner]
US 20210366163A1 · Lin · 2021 [cited by examiner]
US 20210397822A1 · Zhang · 2021 [cited by examiner]
US 20210406305A1 · Shen · 2021 [cited by examiner]
US 20220101652A1 · Lyu · 2022 [cited by examiner]
CN 104780339A · 2015 [cited by applicant]
CN 104780458A · 2015 [cited by applicant]
CN 106372622A · 2017 [cited by applicant]
CN 107705356A · 2018 [cited by applicant]
CN 108022206A · 2018 [cited by applicant]
CN 108198159A · 2018 [cited by applicant]
CN 108229269A · 2018 [cited by applicant]
CN 108495049A · 2018 [cited by applicant]
CN 108734126A · 2018 [cited by applicant]
CN 108830784A · 2018 [cited by applicant]
CN 108985241A · 2018 [cited by applicant]
CN 109034063A · 2018 [cited by applicant]
International Patent Application No. PCT/CN2019/129140; Int'l Search Report; dated Mar. 26, 2020; 3 pages. [cited by applicant]
Zhang Zhao-Xu; “Research on Feature Extraction Based on CNN Deep Learning Model”; CNN; Mar. 2016; p. 41-44 (English Abstract on p. 44). [cited by applicant]
Zhou et al.; “A Survey of Human Face Detection”; Institute of Artificial Intelligence & Robotics; Oct. 2014; 4 pages (contains English Abstract). [cited by applicant]
International Preliminary Report on Patentability for International Application No. PCT/CN2019/129140, mailed Aug. 12, 2021, 11 Pages. [cited by applicant]
International Search Report for International Application No. PCT/CN2021/117199, mailed Dec. 17, 2021, 2 pages. [cited by applicant]
Notice of First Examination Opinion for Chinese Application No. 201910101335.5, mailed Nov. 10, 2021, 9 Pages. [cited by applicant]
Rejection Decision for Chinese Application No. 201910101335.5, mailed Aug. 5, 2022, 5 Pages. [cited by applicant]
Written Opinion for International Application No. PCT/CN2019/129140, mailed Mar. 26, 2020, 7 Pages. [cited by applicant]