CN107967418B - Face recognition method and mobile terminal - Google Patents

Face recognition method and mobile terminal Download PDF

Info

Publication number
CN107967418B
CN107967418B CN201711216023.6A CN201711216023A CN107967418B CN 107967418 B CN107967418 B CN 107967418B CN 201711216023 A CN201711216023 A CN 201711216023A CN 107967418 B CN107967418 B CN 107967418B
Authority
CN
China
Prior art keywords
brightness
mobile terminal
light
environment
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711216023.6A
Other languages
Chinese (zh)
Other versions
CN107967418A (en
Inventor
翟康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711216023.6A priority Critical patent/CN107967418B/en
Publication of CN107967418A publication Critical patent/CN107967418A/en
Application granted granted Critical
Publication of CN107967418B publication Critical patent/CN107967418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a face recognition method and a mobile terminal, wherein the method comprises the following steps: when a face recognition instruction triggered by a mobile terminal is detected, acquiring the ambient light brightness of the environment where the mobile terminal is located; if the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, a soft light of the mobile terminal is turned on; and carrying out face recognition on the target user to obtain a face recognition result. Therefore, in the technical scheme of the invention, the soft light of the mobile terminal is used as the supplementary light source to improve the ambient light brightness of the environment where the mobile terminal is located, so that the light incoming amount of the front camera of the mobile terminal is increased, and the success rate of face recognition under a dark light condition is increased. In the technical scheme of the invention, the success rate of face recognition under the dim light condition can be ensured without improving the hardware parameters of the camera, thereby saving the hardware cost.

Description

Face recognition method and mobile terminal
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a face recognition method and a mobile terminal.
Background
With the advent of the full-screen era, a face recognition technology is favored by more and more mobile terminal manufacturers, and is applied to scenes such as face recognition unlocking, face recognition payment and the like. At present, each manufacturer mainly ensures the success rate of face recognition in a dark environment by improving the hardware parameters of a camera on a mobile terminal, so that the hardware cost is higher.
Disclosure of Invention
The embodiment of the invention provides a face recognition method and a mobile terminal, and aims to solve the problem that in the prior art, the success rate of face recognition is ensured by improving hardware parameters of a camera, so that the hardware cost is high.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention further provides a face recognition method, where the method includes:
when a face recognition instruction triggered by a mobile terminal is detected, acquiring the ambient light brightness of the environment where the mobile terminal is located;
if the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, a soft light of the mobile terminal is turned on;
and carrying out face recognition on the target user to obtain a face recognition result.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the ambient light brightness of the environment where the mobile terminal is located under the condition that a face recognition instruction triggered by the mobile terminal is detected;
the first starting unit is used for starting a soft light of the mobile terminal under the condition that the ambient light brightness acquired by the first acquiring unit is lower than a preset first brightness threshold;
and the identification unit is used for carrying out face identification on the target user to obtain a face identification result.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a face recognition program that is stored in the memory and is executable on the processor, where the face recognition program implements the steps of the face recognition method when executed by the processor.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a face recognition program is stored on the computer-readable storage medium, and when being executed by a processor, the face recognition program implements the steps of the face recognition method.
In the embodiment of the invention, the soft light of the mobile terminal is used as the supplementary light source to improve the environmental light brightness of the environment where the mobile terminal is located, so that the light inlet quantity of the front camera of the mobile terminal is increased, and the success rate of face recognition under a dark light condition is increased. Therefore, in the embodiment of the invention, the success rate of face recognition under the dark light condition can be ensured without improving the hardware parameters of the camera, so that the hardware cost is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a face recognition method according to an embodiment of the invention;
FIG. 2 is a diagram illustrating an example of a predetermined first relationship table according to an embodiment of the invention;
FIG. 3 is a flow chart of a face recognition method according to another embodiment of the invention;
FIG. 4 is a diagram of an example of a predetermined second relationship table according to one embodiment of the invention;
fig. 5 is a schematic structural diagram of a mobile terminal of an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a face recognition method and a mobile terminal.
First, a face recognition method provided by an embodiment of the present invention is described below.
It should be noted that the face recognition method provided in the embodiment of the present invention is applicable to a mobile terminal with a soft light, and is particularly applicable to a mobile terminal with a front soft light, and in practical applications, the mobile terminal may include: smart phones, tablets, smart watches, and the like. In addition, the method is also applicable to a computer device with a front soft light, and in practical application, the computer device may include: notebook computers, desktop machines, security devices, and the like.
Fig. 1 is a flowchart of a face recognition method according to an embodiment of the present invention, and as shown in fig. 1, the method may include the following steps:
in step 101, when a face recognition instruction triggered by a mobile terminal is detected, the ambient light brightness of the environment where the mobile terminal is located is obtained.
In the embodiment of the present invention, an Interface for triggering a face recognition instruction may be provided for a User, and the Interface may be disposed on a Graphical User Interface (GUI) of a mobile terminal, where the form of the Interface may include: buttons, icons, or specific areas of human-computer interaction, etc.; in addition, the interface may also be a hardware button of the mobile terminal, such as a power key and a home key. When the interface is a button or an icon, a user can trigger a face recognition instruction by clicking the button or the icon; when the interface is a feature area capable of human-computer interaction, a user can trigger a face recognition instruction by clicking the feature area or performing gesture operation on the feature area; when the interface is a power key or a home key, the user can trigger the face recognition instruction by pressing the power key or the home key.
In consideration of the fact that the face recognition consumes a relatively large amount of electricity (the sensor needs to be always in a working state) when the screen of the mobile terminal is turned off, in the embodiment of the present invention, it may be preferable to set that the operation related to the face recognition is executed only when the screen is bright, and at this time, the face recognition instruction may be used to trigger the bright screen of the mobile terminal and trigger the mobile terminal to execute the operation related to the face recognition when the screen is bright. In addition, the operation related to the face recognition can be executed in both the screen bright state and the screen off state, and at this time, the face recognition instruction can be only used for triggering the mobile terminal to execute the operation related to the face recognition.
In the embodiment of the invention, if the face recognition instruction triggered by the mobile terminal is not detected, the step of acquiring the ambient light brightness of the environment where the mobile terminal is located is not executed.
In the embodiment of the invention, the ambient light brightness of the environment where the mobile terminal is located can be obtained through the photosensitive sensor in the mobile terminal.
In step 102, when the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, a soft light of the mobile terminal is turned on.
In order to identify the environment brightness of the environment where the mobile terminal is located under which condition the soft light needs to be turned on, in the embodiment of the present invention, a brightness threshold, that is, a first brightness threshold, is set in advance for the environment brightness of the environment where the mobile terminal is located, if the environment brightness of the environment where the mobile terminal is located is lower than the first brightness threshold, it is determined that the current environment light is dark, that is, the condition for turning on the soft light is met currently, and at this time, the soft light of the mobile terminal is turned on.
In the embodiment of the invention, when the environmental light brightness of the environment where the mobile terminal is located is lower than the preset first brightness threshold, the soft light of the mobile terminal can be automatically turned on; or when the environmental light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, outputting a prompt message to prompt the user to start the soft light of the mobile terminal, and then starting the soft light of the mobile terminal according to a soft light starting instruction triggered by the user. At this time, the user may trigger the soft light turn-on instruction by making a specific gesture operation on the screen of the mobile terminal, where the specific gesture operation may include: double click, long press, stroke, etc.
In the embodiment of the present invention, preferably, the soft light is a front soft light of the mobile terminal. When the mobile terminal has a plurality of soft lights, one of the soft lights may be turned on, or a plurality of soft lights may be turned on, or all of the soft lights may be turned on, which is not limited in the embodiments of the present invention.
In the embodiment of the invention, the soft light of the mobile terminal is turned on, and the main purpose is to supplement light for the front camera of the mobile terminal and improve the light inlet quantity of the front camera of the mobile terminal.
In an optional embodiment provided by the present invention, in order to ensure that the soft light is suddenly turned on in a low-light environment, the brightness of the soft light is too large and too glaring, and a maximum brightness threshold may be set for the brightness of the soft light, at this time, the step 102 may include:
when the environmental light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, the soft light of the mobile terminal is controlled to emit light with the light emitting brightness lower than a preset second brightness threshold.
In this embodiment, a maximum brightness threshold, that is, a second brightness threshold, may be set for the brightness of the soft light in advance, and when the soft light of the mobile terminal is turned on, the brightness of the soft light should be lower than the second brightness threshold.
In the embodiment, the mobile terminal can open the threshold setting authority to the user, and when the second brightness threshold needs to be set, the user can set the value of the second brightness threshold by himself through the threshold setting authority; in addition, the value of the second brightness threshold may also be automatically set by the mobile terminal, and specifically, the mobile terminal may calculate the value of the second brightness threshold through a certain algorithm.
As can be seen from the foregoing embodiments, in this embodiment, a maximum brightness threshold is set in advance for the brightness of the soft light of the mobile terminal, so as to ensure that the soft light is suddenly turned on in a low-light environment, and the brightness of the soft light is not too dazzling.
In another preferred embodiment provided by the present invention, in order to ensure that the soft light is suddenly turned on in a low-light environment, the brightness of the soft light is suddenly too high and too dazzling, and the brightness of the soft light may be gradually changed from dark to bright, in this case, the step 102 may include:
when the environmental light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, controlling a soft light of the mobile terminal to emit light in a mode of gradually changing from dark to bright.
It can be seen from the above embodiment that, in this embodiment, the soft light through controlling the mobile terminal gradually becomes bright by dark for user's eyes can slowly adapt to the increase of soft light luminance, thereby guarantee to open the soft light suddenly under the low light environment, the luminance of this soft light can not be too dazzling suddenly.
In a preferred embodiment provided by the present invention, in order to ensure that the brightness of the soft light is more reasonable and also consider reasonable use of the electric quantity of the mobile terminal, the brightness of the soft light may be set to be automatically adjusted along with the ambient brightness, at this time, the step 102 may include:
when the environmental brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, determining the brightness of the soft light corresponding to the environmental brightness of the environment where the mobile terminal is located according to a preset first relation table; controlling a soft light of the mobile terminal to emit light according to the determined brightness of the soft light; wherein, the preset first relation table records the corresponding relation between the ambient light brightness and the brightness of the soft light.
In this embodiment, preferably, the ambient light brightness may be classified in advance, and correspondingly, the light-emitting brightness of the soft light may also be classified, and at this time, the corresponding relationship between the ambient light brightness level and the light-emitting brightness level of the soft light recorded in the first relationship table is preset.
Under the circumstance, when the environment brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, the environment brightness level corresponding to the environment brightness of the environment where the mobile terminal is located is determined, then the soft light brightness level corresponding to the environment brightness level is determined according to the determined environment brightness level and a preset first relation table, and finally the soft light of the mobile terminal is controlled to emit light according to the determined soft light brightness level.
In one example, as shown in fig. 2, fig. 2 shows the corresponding relationship between the ambient light brightness level and the luminescent brightness level of the soft-light in the preset first relationship table, wherein the ambient light brightness level is divided into: level 1, level 2, …, level n, and the brightness is in a decreasing trend; the brightness grade of the soft light is as follows: level n, level n-1, …, level 1, and brightness rendering increasing trend; the environment light brightness grade 1 corresponds to the soft light brightness grade n, the environment light brightness grade 2 corresponds to the soft light brightness grade n-1, …, the environment light brightness grade n corresponds to the soft light brightness grade 1, the environment light brightness grade 1 is lower than the preset environment light brightness threshold, and the soft light brightness grade 1 is lower than the preset soft light brightness threshold.
It can be seen from the above embodiment that, in this embodiment, the luminance of the soft light is automatically adjusted along with the ambient brightness by setting the luminance of the soft light, so that the luminance of the soft light is more reasonable, and the reasonable use of the electric quantity of the mobile terminal is taken into consideration.
In step 103, face recognition is performed on the target user to obtain a face recognition result.
In the embodiment of the invention, the process of identifying the face of the target user by the mobile terminal is carried out when the soft light of the mobile terminal is in a luminous state.
In the embodiment of the present invention, any face recognition algorithm in the prior art may be used to implement the operation of step 103, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the face recognition result may include: the face information of the target user is matched with the face information prestored in the mobile terminal, and the face information of the target user is not matched with the face information prestored in the mobile terminal.
As can be seen from the above embodiments, in the embodiments, the soft light of the mobile terminal is used as a supplementary light source to improve the ambient light brightness of the environment where the mobile terminal is located, so as to improve the light entering amount of the front camera of the mobile terminal, thereby improving the success rate of face recognition under a dark light condition. Therefore, in the embodiment of the invention, the success rate of face recognition under the dark light condition can be ensured without improving the hardware parameters of the camera, so that the hardware cost is saved.
Optionally, in the embodiment of the present invention, the face recognition result in step 103 may be used for authentication, and at this time, after step 103, the following steps may be further added:
and performing authentication according to the face recognition result, wherein the authentication comprises the following steps: face recognition unlocking or face recognition payment.
Taking face recognition unlocking as an example, when the face recognition result is that the face information of the target user is matched with the face information prestored in the mobile terminal, opening a screen lock of the mobile terminal, namely, the face recognition unlocking is successful; and when the face recognition result is that the face information of the target user is not matched with the face information prestored in the mobile terminal, the screen lock of the mobile terminal is not opened, namely, the face recognition unlocking fails.
Taking face recognition payment as an example, when the face recognition result is that the face information of the target user is matched with the face information stored in the mobile terminal in advance, performing online payment, namely the face recognition payment is successful; and when the face recognition result is that the face information of the target user is not matched with the face information prestored in the mobile terminal, the online payment is not carried out, namely the face recognition payment fails.
In the embodiment of the invention, the soft light of the mobile terminal can be closed when the authentication is detected to be successful. Specifically, the soft light of the mobile terminal can be automatically closed when the authentication is detected to be successful; or when the authentication is successfully detected, outputting a prompt message to prompt the user to close the soft light of the mobile terminal, and then closing the soft light of the mobile terminal according to a soft light closing instruction triggered by the user. At this time, the user may trigger the soft light turn-off instruction by making a specific gesture operation on the screen of the mobile terminal, where the specific gesture operation may include: double click, long press, stroke, etc.
As can be seen from the above embodiments, in this embodiment, after the authentication is successful, the soft light can be automatically turned off or prompted to turn off, so as to save the electric quantity of the mobile terminal, and further avoid affecting the normal operation of other applications in the mobile terminal.
Fig. 3 is a flowchart of a face recognition method according to another embodiment of the present invention, in order to solve the problem that the ambient light brightness measured by the photosensitive sensor is inaccurate due to the brightness of the screen of the mobile terminal, as shown in fig. 3, the method may include the following steps:
in step 301, when a face recognition instruction triggered by a mobile terminal is detected, the ambient light brightness of the environment where the mobile terminal is located is obtained.
Step 301 in the embodiment of the present invention is similar to step 101 in the embodiment shown in fig. 1, and details of the embodiment of the present invention are not repeated herein, please refer to the contents in the embodiment shown in fig. 1.
In step 302, it is determined whether the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, if so, step 303 is executed, otherwise, step 304 is executed.
In order to identify the environment brightness of the environment where the mobile terminal is located under which condition the soft light needs to be turned on, in the embodiment of the present invention, a brightness threshold, that is, a first brightness threshold, is set in advance for the environment brightness of the environment where the mobile terminal is located. Whether the current ambient light is dark or not is determined by judging whether the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold value or not, namely whether the current ambient light is in a dark light scene or not is determined, if the ambient light brightness of the environment where the mobile terminal is located is lower than the first light brightness threshold value, the current ambient light is considered to be dark, namely the condition of opening the soft light is met currently, and at the moment, the soft light of the mobile terminal is opened. If the ambient light brightness of the environment where the mobile terminal is located is larger than or equal to the first light brightness threshold value, whether the screen brightness of the mobile terminal influences the ambient light brightness measured by the photosensitive sensor is further judged, if the screen brightness of the mobile terminal influences the ambient light brightness measured by the photosensitive sensor, the influence of the screen brightness is removed, a scene with dark ambient light is restored, and a soft light of the mobile terminal is turned on.
In step 303, the soft light of the mobile terminal is turned on.
In the embodiment of the invention, when the environmental light brightness of the environment where the mobile terminal is located is lower than the first light brightness threshold, the soft light of the mobile terminal is directly turned on. Specifically, three implementations of step 102 in the embodiment shown in fig. 1 can be adopted.
In step 304, detecting whether the mobile terminal is set to automatically adjust the screen brightness; if not, go to step 304.
In the embodiment of the invention, when the environmental light brightness of the environment where the mobile terminal is located is greater than or equal to the first light brightness threshold, whether the mobile terminal is set to automatically adjust the screen brightness is detected. The automatic adjustment of the screen brightness refers to: the mobile terminal automatically adjusts the screen brightness of the mobile terminal according to the ambient light brightness. When the mobile terminal is set to automatically adjust the screen brightness, the screen brightness of the mobile terminal is controlled by a photosensitive sensor of the mobile terminal, namely the screen brightness of the mobile terminal automatically changes along with the change of the ambient light brightness; when the mobile terminal is set not to automatically adjust the screen brightness, the screen brightness of the mobile terminal is not controlled by the photosensitive sensor of the mobile terminal, namely, the screen brightness of the mobile terminal does not automatically change along with the ambient light brightness.
In step 305, the screen brightness of the mobile terminal is obtained.
In the embodiment of the invention, when the screen brightness of the mobile terminal is not controlled by the photosensitive sensor of the mobile terminal, the screen brightness of the mobile terminal is obtained, and whether the soft light of the mobile terminal is turned on or not is determined according to the screen brightness.
In step 306, when the screen brightness of the mobile terminal is greater than a preset third brightness threshold, a soft light of the mobile terminal is turned on.
In the embodiment of the present invention, in order to identify a situation where the screen brightness of the mobile terminal needs to be turned on, in the embodiment of the present invention, a brightness threshold, that is, a third brightness threshold, is set for the screen brightness of the mobile terminal in advance, and if the screen brightness of the mobile terminal is greater than the preset third brightness threshold, it is determined that the current actual ambient light is dark, that is, the condition for turning on the soft light is met, and at this time, the soft light of the mobile terminal is turned on. Because the screen brightness of the mobile terminal has great influence on the ambient light brightness measured by the photosensitive sensor, at the moment, the influence of the screen brightness needs to be removed, and the actual scene with darker light is restored.
In the embodiment of the invention, when the screen brightness of the mobile terminal is lower than the preset third brightness threshold, the soft light of the mobile terminal can be automatically turned on; and when the screen brightness of the mobile terminal is lower than a preset third brightness threshold, outputting a prompt message to prompt a user to start the soft light of the mobile terminal, and then starting the soft light of the mobile terminal according to a soft light starting instruction triggered by the user. At this time, the user may trigger the soft light turn-on instruction by making a specific gesture operation on the screen of the mobile terminal, where the specific gesture operation may include: double click, long press, stroke, etc.
In the embodiment of the present invention, preferably, the soft light is a front soft light of the mobile terminal. When the mobile terminal has a plurality of soft light lamps, one of the soft light lamps may be turned on, or a plurality of soft light lamps may be turned on, or all of the soft light lamps may be turned on.
In the embodiment of the invention, the soft light of the mobile terminal is turned on, so that the light supplement is performed for the front camera of the mobile terminal, and the light inlet quantity of the front camera of the mobile terminal is improved.
In an alternative embodiment of the present invention, in order to eliminate the influence of the screen brightness on the ambient light brightness measured by the photosensitive sensor, step 306 may include:
when the screen brightness of the mobile terminal is greater than a preset third brightness threshold, determining the brightness of the soft light corresponding to the screen brightness of the mobile terminal according to a preset second relation table, wherein the preset second relation table records the corresponding relation between the screen brightness and the brightness of the soft light;
and controlling the soft light of the mobile terminal to emit light according to the determined brightness of the soft light.
In this embodiment, it is preferable that the screen brightness is classified in advance, and correspondingly, the light-emitting brightness of the soft light is also classified, and at this time, the correspondence between the screen brightness level and the light-emitting brightness level of the soft light is recorded in the preset second relationship table.
In this case, when the screen brightness of the mobile terminal is lower than the preset third brightness threshold, the screen brightness level corresponding to the screen brightness of the mobile terminal is determined first, then the luminescent brightness level of the soft light corresponding to the screen brightness level is determined according to the determined screen brightness level and the preset second relation table, and finally the soft light of the mobile terminal is controlled to emit light according to the determined luminescent brightness level of the soft light.
In one example, as shown in fig. 4, fig. 4 shows the corresponding relationship between the screen brightness levels and the luminescent brightness levels of the soft-light in the preset second relationship table, wherein the screen brightness levels are divided into: level 1, level 2, …, level n, and the brightness is in a decreasing trend; the brightness grade of the soft light is as follows: level n, level n-1, …, level 1, and brightness rendering increasing trend; the screen brightness level 1 corresponds to the brightness level n of the soft light, the screen brightness level 2 corresponds to the brightness level n-1, … of the soft light, the screen brightness level n corresponds to the brightness level 1 of the soft light, the brightness level 1 of the soft light is lower than a preset screen brightness threshold, and the brightness level 1 of the soft light is lower than a preset brightness threshold of the soft light.
It can be seen from the above embodiment that, in the embodiment, the brightness of the soft light is automatically adjusted along with the screen brightness, so that the brightness of the soft light is more reasonable, and the reasonable use of the electric quantity of the mobile terminal is considered.
In another alternative embodiment provided by the present invention, in order to eliminate the influence of the screen brightness on the ambient light brightness measured by the photosensitive sensor, in this case, the step 306 may include:
when the screen brightness of the mobile terminal is larger than a preset third brightness threshold, performing difference calculation on the environment brightness of the environment where the mobile terminal is located and the screen brightness of the mobile terminal to obtain the actual environment brightness of the environment where the mobile terminal is located;
determining the brightness of the soft light corresponding to the actual environment brightness of the environment where the mobile terminal is located according to a preset third relation table, wherein the preset third relation table records the corresponding relation between the environment brightness and the brightness of the soft light;
and controlling the soft light of the mobile terminal to emit light according to the determined brightness of the soft light.
In this embodiment, when the screen brightness of the mobile terminal is greater than the preset third brightness threshold, the difference between the ambient light brightness of the environment where the mobile terminal is located and the screen brightness of the mobile terminal may be calculated to remove the brightness affected by the screen brightness in the ambient light brightness measured by the photosensor, so as to obtain the actual ambient light brightness, and then the brightness of the soft light may be determined according to the actual ambient light brightness.
In this embodiment, preferably, the ambient light brightness may be classified in advance, and correspondingly, the light-emitting luminance of the soft light may also be classified, and at this time, the corresponding relationship between the ambient light brightness level and the light-emitting luminance level of the soft light recorded in the third relationship table is preset.
In this case, after the actual environment brightness of the environment where the mobile terminal is located is determined, the environment brightness level corresponding to the actual environment brightness of the environment where the mobile terminal is located is determined, then the soft light brightness level corresponding to the environment brightness level is determined according to the determined environment brightness level and a preset third relation table, and finally the soft light of the mobile terminal is controlled to emit light according to the determined soft light brightness level.
According to the embodiment, the brightness of the environment light brightness measured by the photosensitive sensor, which is affected by the screen brightness, can be removed, so that an actual scene with darker light is restored, and the problem that the environment light brightness measured by the photosensitive sensor is inaccurate due to the screen brightness of the mobile terminal is solved.
In step 307, face recognition is performed on the target user to obtain a face recognition result.
In the embodiment of the invention, the process of identifying the face of the target user by the mobile terminal is carried out when the soft light of the mobile terminal is in a luminous state.
In the embodiment of the present invention, any face recognition algorithm in the prior art may be used to implement the operation of step 307, which is not limited in the embodiment of the present invention.
As can be seen from the above embodiments, in the embodiments, the soft light of the mobile terminal is used as a supplementary light source to improve the ambient light brightness of the environment where the mobile terminal is located, so as to improve the light entering amount of the front camera of the mobile terminal, thereby improving the success rate of face recognition under a dark light condition. In addition, the screen brightness can be acquired as supplement, and the problem that the environment light brightness measured by the photosensitive sensor is inaccurate due to the screen brightness of the mobile terminal is solved. Therefore, in the embodiment of the invention, the success rate of face recognition under the dark light condition can be ensured without improving the hardware parameters of the camera, so that the hardware cost is saved.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 may include: a first obtaining unit 501, a first opening unit 502 and an identifying unit 503,
a first obtaining unit 501, configured to obtain, when a face recognition instruction triggered for a mobile terminal is detected, ambient light brightness of an environment where the mobile terminal is located;
a first starting unit 502, configured to start a soft light of the mobile terminal when the ambient light brightness acquired by the first acquiring unit 501 is lower than a preset first brightness threshold;
the identifying unit 503 is configured to perform face identification on the target user to obtain a face identification result.
As can be seen from the above embodiments, in the embodiments, the soft light of the mobile terminal is used as a supplementary light source to improve the ambient light brightness of the environment where the mobile terminal is located, so as to improve the light entering amount of the front camera of the mobile terminal, thereby improving the success rate of face recognition under a dark light condition. Therefore, in the embodiment of the invention, the success rate of face recognition under the dark light condition can be ensured without improving the hardware parameters of the camera, so that the hardware cost is saved.
Optionally, the first opening unit 502 may include:
the first luminance determining subunit is configured to determine, according to a preset first relationship table, luminance of a soft light corresponding to the ambient luminance of an environment where the mobile terminal is located, where a correspondence relationship between the ambient luminance and the luminance of the soft light is recorded in the preset first relationship table;
and the first light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light according to the light-emitting brightness determined by the first light-emitting brightness determining subunit.
Optionally, the first opening unit 502 may include:
and the second light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light with the light-emitting brightness lower than a preset second brightness threshold value.
Optionally, the first opening unit 502 may include:
and the third light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light in a mode of gradually changing from dark to light.
Optionally, the mobile terminal 500 may further include:
the detection unit is configured to detect whether the mobile terminal is set to automatically adjust the screen brightness when the ambient light brightness acquired by the first acquisition unit 501 is greater than or equal to the preset first brightness threshold;
the second acquisition unit is used for acquiring the screen brightness of the mobile terminal under the condition that the detection result of the detection unit is negative;
and the second starting unit is used for starting the soft light of the mobile terminal under the condition that the screen brightness acquired by the second acquiring unit is greater than a preset third brightness threshold value.
Optionally, the second opening unit may include:
a second luminance determining subunit, configured to determine, according to a preset second relationship table, the luminance of the soft light corresponding to the screen luminance of the mobile terminal when the screen luminance acquired by the second acquiring unit is greater than a preset third luminance threshold, where a correspondence relationship between the screen luminance and the luminance of the soft light is recorded in the preset second relationship table;
and the fourth light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light according to the light-emitting brightness of the soft light determined by the second light-emitting brightness determination subunit.
Optionally, the second opening unit may include:
the actual environment brightness determining subunit is configured to, when the screen brightness acquired by the second acquiring unit is greater than a preset third brightness threshold, perform difference calculation on the environment brightness of the environment where the mobile terminal is located and the screen brightness of the mobile terminal to obtain the actual environment brightness of the environment where the mobile terminal is located;
a third light-emitting brightness determining subunit, configured to determine, according to a preset third relationship table, light-emitting brightness of a soft-light lamp corresponding to actual ambient light brightness of an environment where the mobile terminal is located, where a corresponding relationship between the ambient light brightness and the light-emitting brightness of the soft-light lamp is recorded in the preset third relationship table;
and the fifth light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light according to the light-emitting brightness of the soft light determined by the third light-emitting brightness determination subunit.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 or fig. 3, and is not described herein again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, and as shown in fig. 6, the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to, when a face recognition instruction triggered for a mobile terminal is detected, obtain an ambient light brightness of an environment where the mobile terminal is located;
if the environmental light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, a soft light of the mobile terminal is turned on;
and carrying out face recognition on the target user to obtain a face recognition result.
In the technical scheme of the invention, the soft light of the mobile terminal is used as a supplementary light source to improve the environmental light brightness of the environment where the mobile terminal is located, so that the light inlet quantity of the front camera of the mobile terminal is increased, and the success rate of face recognition under a dark light condition is increased. Therefore, in the embodiment of the invention, the success rate of face recognition under the dark light condition can be ensured without improving the hardware parameters of the camera, so that the hardware cost is saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a face recognition program stored in the memory 609 and capable of running on the processor 610, where the face recognition program is executed by the processor 610 to implement each process of the above-mentioned face recognition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a face recognition program is stored on the computer-readable storage medium, and when being executed by a processor, the face recognition program implements each process of the face recognition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A face recognition method, comprising:
when a face recognition instruction triggered by a mobile terminal is detected, acquiring the ambient light brightness of the environment where the mobile terminal is located;
if the ambient light brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, a front soft light of the mobile terminal is turned on;
carrying out face recognition on a target user to obtain a face recognition result,
wherein opening the front soft light of the mobile terminal includes:
pre-grading the environmental light brightness and grading the brightness of the soft light to obtain a preset first relation table, wherein the preset first relation table records the corresponding relation between the environmental light brightness level and the brightness level of the soft light,
when the environment brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, firstly determining an environment brightness grade corresponding to the environment brightness of the environment where the mobile terminal is located, then determining a soft light brightness grade corresponding to the environment brightness grade according to the determined environment brightness grade and a preset first relation table, and finally controlling a soft light of the mobile terminal to emit light according to the determined soft light brightness grade;
when the ambient light brightness of the environment where the mobile terminal is located is larger than or equal to the preset first brightness threshold value, detecting whether the mobile terminal is set to automatically adjust the screen brightness; when the mobile terminal is not set to automatically adjust the screen brightness, acquiring the screen brightness of the mobile terminal; when the screen brightness of the mobile terminal is larger than a preset third brightness threshold, starting a soft light of the mobile terminal;
wherein, when the screen brightness of the mobile terminal is greater than a preset third brightness threshold, the soft light of the mobile terminal is turned on, including:
when the screen brightness of the mobile terminal is greater than a preset third brightness threshold, determining the brightness of the soft light corresponding to the screen brightness of the mobile terminal according to a preset second relation table, wherein the preset second relation table records the corresponding relation between the screen brightness and the brightness of the soft light; controlling a soft light of the mobile terminal to emit light according to the determined brightness of the soft light; or
When the screen brightness of the mobile terminal is larger than a preset third brightness threshold, performing difference calculation on the environment brightness of the environment where the mobile terminal is located and the screen brightness of the mobile terminal to obtain the actual environment brightness of the environment where the mobile terminal is located; determining the brightness of the soft light corresponding to the actual environment brightness of the environment where the mobile terminal is located according to a preset third relation table, wherein the preset third relation table records the corresponding relation between the environment brightness and the brightness of the soft light; and controlling the soft light of the mobile terminal to emit light according to the determined brightness of the soft light.
2. The method according to claim 1, wherein said turning on a soft light of the mobile terminal comprises:
and controlling a soft light of the mobile terminal to emit light with the luminance lower than a preset second luminance threshold.
3. The method according to claim 1, wherein said turning on a soft light of the mobile terminal comprises:
and controlling a soft light of the mobile terminal to emit light in a mode of gradually changing from dark to bright.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the ambient light brightness of the environment where the mobile terminal is located under the condition that a face recognition instruction triggered by the mobile terminal is detected;
the first starting unit is used for starting a front soft light of the mobile terminal under the condition that the ambient light brightness acquired by the first acquiring unit is lower than a preset first brightness threshold;
the detection unit is used for detecting whether the mobile terminal is set to automatically adjust the screen brightness or not under the condition that the ambient light brightness acquired by the first acquisition unit is greater than or equal to the preset first brightness threshold value;
the second acquisition unit is used for acquiring the screen brightness of the mobile terminal under the condition that the detection result of the detection unit is negative;
the second starting unit is used for starting the soft light of the mobile terminal under the condition that the screen brightness acquired by the second acquiring unit is greater than a preset third brightness threshold;
the identification unit is used for carrying out face identification on the target user to obtain a face identification result,
wherein the first opening unit includes:
the first luminous brightness determining subunit classifies the ambient light brightness and the luminous brightness of the soft light in advance to obtain a preset first relation table, the preset first relation table records the corresponding relation between the ambient light brightness level and the luminous brightness level of the soft light,
the first lighting control subunit is used for determining an environment brightness grade corresponding to the environment brightness of the environment where the mobile terminal is located when the environment brightness of the environment where the mobile terminal is located is lower than a preset first brightness threshold, then determining a soft light lighting brightness grade corresponding to the environment brightness grade according to the determined environment brightness grade and a preset first relation table, and finally controlling a soft light of the mobile terminal to light according to the determined soft light lighting brightness grade;
wherein the second opening unit includes:
a second luminance determining subunit, configured to determine, according to a preset second relationship table, the luminance of the soft light corresponding to the screen luminance of the mobile terminal when the screen luminance acquired by the second acquiring unit is greater than a preset third luminance threshold, where a correspondence relationship between the screen luminance and the luminance of the soft light is recorded in the preset second relationship table;
the fourth light-emitting control subunit is configured to control the soft light of the mobile terminal to determine, according to the second light-emitting brightness, light-emitting brightness of the soft light determined by the sub-unit; or
The second opening unit includes:
the actual environment brightness determining subunit is configured to, when the screen brightness acquired by the second acquiring unit is greater than a preset third brightness threshold, perform difference calculation on the environment brightness of the environment where the mobile terminal is located and the screen brightness of the mobile terminal to obtain the actual environment brightness of the environment where the mobile terminal is located;
a third light-emitting brightness determining subunit, configured to determine, according to a preset third relationship table, light-emitting brightness of a soft-light lamp corresponding to actual ambient light brightness of an environment where the mobile terminal is located, where a corresponding relationship between the ambient light brightness and the light-emitting brightness of the soft-light lamp is recorded in the preset third relationship table;
and the fifth light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light according to the light-emitting brightness of the soft light determined by the third light-emitting brightness determination subunit.
5. The mobile terminal of claim 4, wherein the first enabling unit comprises:
and the second light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light with the light-emitting brightness lower than a preset second brightness threshold.
6. The mobile terminal of claim 4, wherein the first enabling unit comprises:
and the third light-emitting control subunit is used for controlling the soft light of the mobile terminal to emit light in a mode of gradually changing from dark to light.
7. A mobile terminal comprising a processor, a memory and a face recognition program stored on the memory and executable on the processor, the face recognition program when executed by the processor implementing the steps of the face recognition method according to any one of claims 1 to 3.
CN201711216023.6A 2017-11-28 2017-11-28 Face recognition method and mobile terminal Active CN107967418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711216023.6A CN107967418B (en) 2017-11-28 2017-11-28 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711216023.6A CN107967418B (en) 2017-11-28 2017-11-28 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107967418A CN107967418A (en) 2018-04-27
CN107967418B true CN107967418B (en) 2022-05-20

Family

ID=61997944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711216023.6A Active CN107967418B (en) 2017-11-28 2017-11-28 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107967418B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960179A (en) * 2018-07-16 2018-12-07 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109842720A (en) * 2018-11-30 2019-06-04 努比亚技术有限公司 A kind of intelligent control method, terminal and computer readable storage medium
CN112752010B (en) * 2019-10-29 2022-07-22 北京小米移动软件有限公司 Shooting method, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065862A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic device
CN104320578A (en) * 2014-10-22 2015-01-28 厦门美图之家科技有限公司 Method for performing self-shot soft light compensation on basis of screen luminance
CN106357989A (en) * 2016-11-24 2017-01-25 维沃移动通信有限公司 Brightness adjustment method and mobile terminal
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
WO2017161867A1 (en) * 2016-03-22 2017-09-28 中兴通讯股份有限公司 Screen brightness adjustment method and apparatus, and intelligent terminal
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5889247B2 (en) * 2013-07-02 2016-03-22 キヤノン株式会社 Image processing apparatus, image processing method, image processing program, and imaging apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065862A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic device
CN104320578A (en) * 2014-10-22 2015-01-28 厦门美图之家科技有限公司 Method for performing self-shot soft light compensation on basis of screen luminance
WO2017161867A1 (en) * 2016-03-22 2017-09-28 中兴通讯股份有限公司 Screen brightness adjustment method and apparatus, and intelligent terminal
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
CN106357989A (en) * 2016-11-24 2017-01-25 维沃移动通信有限公司 Brightness adjustment method and mobile terminal
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face

Also Published As

Publication number Publication date
CN107967418A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN107798303B (en) Method for adjusting screen backlight and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN108920059B (en) Message processing method and mobile terminal
CN107645609B (en) Brightness adjusting method and mobile terminal
CN108227996B (en) Display control method and mobile terminal
CN107832689B (en) Fingerprint identification method and mobile terminal
CN108628515B (en) Multimedia content operation method and mobile terminal
CN108334272B (en) Control method and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN108345425B (en) Application management method and mobile terminal
CN107635072B (en) Control method of mobile terminal and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
CN108600557B (en) Screen on-off control method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
CN108196753B (en) Interface switching method and mobile terminal
CN109521937B (en) Screen display control method and mobile terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN107967418B (en) Face recognition method and mobile terminal
CN108984145B (en) Brightness adjusting method and electronic equipment
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN109933196B (en) Screen control method and device and terminal equipment
CN110769303A (en) Playing control method and device and mobile terminal
CN107888780B (en) Illumination control method of mobile terminal and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant