IP Library › Granted Patent US 10,990,806
Granted Patent B2
US 10,990,806 · App. 16/279,901 · Granted Apr 27, 2021

Facial image processing method, terminal, and data storage medium

Inventors: Lina Yuan (Shenzhen, CN); Jiwei Guo (Shenzhen, CN); Yifeng Li (Shenzhen, CN); Liang Wang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06K9/00255G06K9/00268G06K9/00288G06K9/036G06K9/2027H04N5/235H04N5/2354
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 10,990,806
App. No.
16/279,901
Granted
Apr 27, 2021
Kind
B2
Abstract

The present disclosure provides technical solutions for improving facial image capturing, recognition, and authentication, including: collecting a face image in response to a facial scan instruction (e.g., for facial recognition) using a camera of a mobile terminal; calculating a measure of image brightness (e.g., a luminance value) of the collected face image; enhancing, when a value of the measure of image brightness of the collected face image is less than a first preset threshold, luminance of light that is emitted from a display of the mobile terminal to a target luminance value, and re-collecting a face image using the camera of the mobile terminal and calculating a corresponding value of the measure of image brightness for the re-collected face image; and performing, when the value of the measure of image brightness of the re-collected face image falls within a preset value range, facial recognition based on the re-collected face image.

Claims (76)

1. A method, comprising:

at an electronic device having one or more processors, memory, a display, and a camera:

retrieving a preset brightness range from a remote server, wherein the preset brightness range is dependent upon hardware and/or software version information of the electronic device and the preset brightness range includes a first preset threshold brightness;

collecting, using the camera, a face image in response to a facial scan instruction;

calculating a value of a measure of image brightness of the collected face image;

in accordance with a determination that the value of the measure of image brightness is less than the first preset threshold brightness:

enhancing luminance of light that is emitted from a display of the electronic device to a target luminance value according to a difference between the value of the measure of image brightness and the first preset threshold brightness;

re-collecting a face image using the camera while the luminance of light emitted from the display of the electronic device is enhanced to the target luminance value;

calculating a corresponding value for the measure of image brightness for the re-collected face image; and

in accordance with a determination that the value of the measure of image brightness of the re-collected face image falls within the preset brightness range, performing facial recognition based on the re-collected face image.

2. The method according to claim 1 , further comprising:

in accordance with a determination that the value of the measure of image brightness of the collected face image is greater than a second preset threshold brightness:

outputting prompt information to request a user to adjust an external image collection condition of the electronic device; and

re-collecting a face image after the external image collection condition has been adjusted.

3. The method according to claim 1 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining highest luminance that is achievable by the display of the electronic device; and

adjusting luminance of the display of the electronic device to the highest luminance of the display.

4. The method according to claim 1 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining, based on a difference between a brightness of an environment in which the electronic device is located and a required environment brightness, a luminance compensation value; and

increasing luminance of the display of the electronic device in accordance with the luminance compensation value.

5. The method according to claim 1 , further comprising:

displaying, on the display of the electronic device, a user interface control for enhancing luminance of the display, wherein the user interface control visually indicates whether a luminance enhancement mode is currently turned on or turned off.

6. The method according to claim 5 , further comprising:

while the luminance of the light emitted from the display of the electronic device is enhanced to the target luminance value, detecting a user input that activates the user interface control to turn on the luminance enhancement mode; and

in response to receiving the user input, adding a mask layer in a target area on a currently displayed user interface of the electronic device, wherein the target area comprises an area that is outside a facial portion of the face image currently shown on the display of the electronic device, and wherein an overall brightness of the mask layer is greater than an overall brightness of an area of the face image that is covered by the mask layer.

7. An electronic device, comprising:

one or more processors;

a display;

a camera; and

memory comprising instructions, which when executed by the one or more processors, cause the processors to perform operations comprising:

retrieving a preset brightness range from a remote server, wherein the preset brightness range is dependent upon hardware and/or software version information of the electronic device and the preset brightness range includes a first preset threshold brightness;

collecting, using the camera, a face image in response to a facial scan instruction;

calculating a value of a measure of image brightness of the collected face image;

in accordance with a determination that the value of the measure of image brightness is less than the first preset threshold brightness:

enhancing luminance of light that is emitted from the display of the electronic device to a target luminance value according to a difference between the value of the measure of image brightness and the first preset threshold brightness;

re-collecting a face image using the camera while the luminance of light emitted from the display of the electronic device is enhanced to the target luminance value;

calculating a corresponding value for the measure of image brightness for the re-collected face image; and

in accordance with a determination that the value of the measure of image brightness of the re-collected face image falls within the preset brightness range, performing facial recognition based on the re-collected face image.

8. The electronic device according to claim 7 , wherein the operations further comprise:

in accordance with a determination that the value of the measure of image brightness of the collected face image is greater than a second preset threshold brightness:

outputting prompt information to request a user to adjust an external image collection condition of the electronic device; and

re-collecting a face image after the external image collection condition has been adjusted.

9. The electronic device according to claim 7 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining highest luminance that is achievable by the display of the electronic device; and

adjusting luminance of the display of the electronic device to the highest luminance of the display.

10. The electronic device according to claim 7 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining, based on a difference between a brightness of an environment in which the electronic device is located and a required environment brightness, a luminance compensation value; and

increasing luminance of the display of the electronic device in accordance with the luminance compensation value.

11. The electronic device according to claim 7 , wherein the operations further comprise:

displaying, on the display of the electronic device, a user interface control for enhancing luminance of the display, wherein the user interface control visually indicates whether a luminance enhancement mode is currently turned on or turned off.

12. The electronic device according to claim 11 , wherein the operations further comprise:

while the luminance of the light emitted from the display of the electronic device is enhanced to the target luminance value, detecting a user input that activates the user interface control to turn on the luminance enhancement mode; and

in response to receiving the user input, adding a mask layer in a target area on a currently displayed user interface of the electronic device, wherein the target area comprises an area that is outside a facial portion of the face image currently shown on the display of the electronic device, and wherein an overall brightness of the mask layer is greater than an overall brightness of an area of the face image that is covered by the mask layer.

13. A non-transitory computer-readable storage medium storing instructions, the instructions, when executed by one or more processors of an electronic device, cause the processors to perform operations comprising:

retrieving a preset brightness range from a remote server, wherein the preset brightness range is dependent upon hardware and/or software version information of the electronic device and the preset brightness range includes a first preset threshold brightness;

collecting, using a camera of the electronic device, a face image in response to a facial scan instruction;

calculating a value of a measure of image brightness of the collected face image;

in accordance with a determination that the value of the measure of image brightness is less than the first preset threshold brightness:

enhancing luminance of light that is emitted from the display of the electronic device to a target luminance value according to a difference between the value of the measure of image brightness and the first preset threshold brightness;

re-collecting a face image using the camera while the luminance of light emitted from the display of the electronic device is enhanced to the target luminance value;

calculating a corresponding value for the measure of image brightness for the re-collected face image; and

in accordance with a determination that the value of the measure of image brightness of the re-collected face image falls within the preset brightness range, performing facial recognition based on the re-collected face image.

14. The computer-readable storage medium according to claim 13 , wherein the operations further comprise:

in accordance with a determination that the value of the measure of image brightness of the collected face image is greater than a second preset threshold brightness:

outputting prompt information to request a user to adjust an external image collection condition of the electronic device; and

re-collecting a face image after the external image collection condition has been adjusted.

15. The computer-readable storage medium according to claim 13 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining highest luminance that is achievable by the display of the electronic device; and

adjusting luminance of the display of the electronic device to the highest luminance of the display.

16. The computer-readable storage medium according to claim 13 , wherein the enhancing the luminance of light emitted from the display of the electronic device to the target luminance value comprises:

determining, based on a difference between a brightness of an environment in which the electronic device is located and a required environment brightness, a luminance compensation value; and

increasing luminance of the display of the electronic device in accordance with the luminance compensation value.

17. The computer-readable storage medium according to claim 13 , wherein the operations further comprise:

displaying, on the display of the electronic device, a user interface control for enhancing luminance of the display, wherein the user interface control visually indicates whether a luminance enhancement mode is currently turned on or turned off;

while the luminance of the light emitted from the display of the electronic device is enhanced to the target luminance value, detecting a user input that activates the user interface control to turn on the luminance enhancement mode; and

in response to receiving the user input, adding a mask layer in a target area on a currently displayed user interface of the electronic device, wherein the target area comprises an area that is outside a facial portion of the face image currently shown on the display of the electronic device, and wherein an overall brightness of the mask layer is greater than an overall brightness of an area of the face image that is covered by the mask layer.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 26, 2019
From: YUAN, LINA; GUO, JIWEI; LI, YIFENG; WANG, LIANG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 048700/0929 →
Priority Claims (1)
CN 201611046965.X · Nov 23, 2016 · national
Continuity (2)
Continuation PCTCN2017111810 · Nov 20, 2017
Related Publication 20190188454A1 · Jun 20, 2019