IP Library › Granted Patent US 9,779,527
Granted Patent B2
US 9,779,527 · App. 14/287,196 · Granted Oct 3, 2017

Method, terminal device and storage medium for processing image

Inventors: Mingyong Tang (Beijing, CN); Bo Zhang (Beijing, CN); Zhinong Zhou (Beijing, CN)
Assignee: XIAOMI INC.
G06T11/60G06K9/00221G06K2009/00322
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 9,779,527
App. No.
14/287,196
Granted
Oct 3, 2017
Kind
B2
Abstract

The present disclosure discloses a method and a terminal device for processing an image. The method includes: acquiring an image; recognizing a face contained in the image; acquiring information of character features according to the face in the image; processing the image according to the information of character features; and obtaining the processed image. In the embodiments of the present disclosure, by automatically recognizing the face in the image, and acquiring the information of character features thereby acquiring a cosmetic process mode corresponding to the information of character features, and then processing the image according to the selected cosmetic process mode, manual setting of cosmetic process parameters can be avoided and the efficiency of image processing can be improved.

Claims (44)

1. A method for processing an image, comprising:

acquiring the image, wherein the image contains a plurality of faces;

recognizing the plurality of faces contained in the image;

matching the recognized faces with faces prestored in a database;

retrieving, according to a preset correspondence between information of character features and the faces prestored in the database, information of character features on the recognized faces, wherein the information of character features comprises an age and a gender of a person for each of the plurality of faces respectively;

acquiring a preset cosmetic process mode corresponding to the retrieved information of character features without manual setting, wherein the preset cosmetic process mode is acquired by querying a corresponding table between a plurality of pieces of information of character features and a plurality of preset cosmetic process modes, and comprises a preset cosmetic process option and a cosmetic process level regarding the cosmetic process option;

processing each of the plurality of faces in the image with the preset cosmetic process mode corresponding to the age and the gender of the person for each of the plurality of faces respectively; and

obtaining a processed image.

2. The method according to claim 1 , wherein the information of character features comprises one or more categories of an identity, an age and a gender of a person.

3. The method according to claim 2 , wherein the information of character features is the identity of the person.

4. The method according to claim 2 , wherein the information of character features is the age and the gender of the person.

5. The method according to claim 2 , wherein the information of character features is the age of the person.

6. The method according to claim 2 , wherein the information of character features is the gender of the person.

7. The method according to claim 1 , wherein the preset cosmetic process option comprises one or more options of whitening, freckle removing, slimming, under-eye dark circle removing, eye beautifying, eye brightening and special cosmetic effects.

8. The method according to claim 1 , wherein the image is an image captured by a camera or an image selected from a picture library.

9. The method according to claim 1 , wherein processing the image with the preset cosmetic process mode further comprises:

marking the face in the image with a preset figure; and

displaying a nickname corresponding to the retrieved information of character features at a side of the preset figure.

10. A terminal device for processing an image, comprising:

a processor; and

a memory for storing instructions executable by the processor, for performing:

acquiring the image, wherein the image contains a plurality of faces;

recognizing the plurality of faces contained in the image;

matching the recognized faces with faces prestored in a database;

retrieving, according to a preset correspondence between information of character features and the faces prestored in the database, information of character features on the recognized faces, wherein the information of character features comprises an age and a gender of a person for each of the plurality of faces respectively;

acquiring a preset cosmetic process mode corresponding to the retrieved information of character features without manual setting, wherein the preset cosmetic process mode is acquired by querying a corresponding table between a plurality of pieces of information of character features and a plurality of preset cosmetic process modes, and comprises a preset cosmetic process option and a cosmetic process level regarding the cosmetic process option;

processing each of the plurality of faces in the image with the preset cosmetic process mode corresponding to the age and the gender of the person for each of the plurality of faces respectively; and

obtaining a processed image.

11. The terminal device according to claim 10 , wherein the information of character features is an identity of a person.

12. The terminal device according to claim 10 , wherein the information of character features is an age and a gender of a person.

13. The terminal device according to claim 10 , wherein the information of character features is an age of a person.

14. The terminal device according to claim 10 , wherein the information of character features is a gender of a person.

15. The terminal device according to claim 10 , wherein the image is an image captured by a camera or an image selected from a picture library.

16. The terminal device according to claim 10 , wherein processing the image with the preset cosmetic process mode further comprises:

marking the face in the image with a preset figure; and

displaying a nickname corresponding to the information of character features at a side of the preset figure.

17. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a terminal device, causes the terminal device to perform a method for processing an image, the method comprising:

acquiring the image, wherein the image contains a plurality of faces;

recognizing the plurality of faces contained in the image;

matching the recognized faces with faces prestored in a database;

retrieving, according to a preset correspondence between information of character features and the faces prestored in the database, information of character features on the recognized faces, wherein the information of character features comprises an age and a gender of a person for each of the plurality of faces respectively;

acquiring a preset cosmetic process mode corresponding to the retrieved information of character features without manual setting, wherein the preset cosmetic process mode is acquired by querying a corresponding table between a plurality of pieces of information of character features and a plurality of preset cosmetic process modes, and comprises a preset cosmetic process option and a cosmetic process level regarding the cosmetic process option;

processing each of the plurality of faces in the image with the preset cosmetic process mode corresponding to the age and the gender of the person for each of the plurality of faces respectively; and

obtaining a processed image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2014
From: TANG, MINGYONG; ZHANG, BO; ZHOU, ZHINONG
To: XIAOMI INC.
Reel/Frame 032961/0970 →
Priority Claims (1)
CN 2013 1 0357087 · Aug 15, 2013 · national
Continuity (2)
Continuation PCTCN2014072373 · Feb 21, 2014
Related Publication 20150049924A1 · Feb 19, 2015