Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present 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.
Example one
Referring to fig. 1, a flowchart illustrating steps of a fingerprint identification method according to an embodiment of the present invention is shown. The method is applied to a mobile terminal with a touch screen, wherein the touch screen is provided with a fingerprint identification area, and the method comprises the following steps:
step 101, when detecting that the user touches the fingerprint identification area, detecting an ambient temperature.
In this embodiment, adopt optical fingerprint identification technique under the screen, adopt the touch-sensitive screen to carry out fingerprint identification promptly, be provided with the fingerprint identification region on the touch-sensitive screen. The touch screen can detect whether a user touches the fingerprint identification area, and the detection mode is not limited in detail in the embodiment of the invention and can be set according to actual conditions. When detecting that the user touches the fingerprint identification area, the mobile terminal detects the ambient temperature. Specifically, a temperature sensor, such as a temperature sensitive resistor, may be disposed on the mobile terminal, and the temperature sensor collects the ambient temperature.
And step 102, when the ambient temperature is lower than a preset temperature, adjusting the brightness of the touch screen.
In this embodiment, after the ambient temperature is detected, whether the ambient temperature is lower than the preset temperature is determined. Wherein the preset temperature may be set to a boundary between the normal temperature and the low temperature. For example, if the preset temperature is 0 ℃ and the ambient temperature is 25 ℃, the ambient temperature is determined to be not lower than the preset temperature; and when the ambient temperature is-10 ℃, judging that the ambient temperature is lower than the preset temperature. The preset temperature is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
At low temperature, human fingers are dry and have shallow lines, and the touch screen of the mobile terminal is also subjected to brightness attenuation. Therefore, when the environment temperature is lower than the preset temperature, the brightness of the touch screen is adjusted, and the touch screen emits strong light. Because the touch screen emits strong light, the energy of the light reflected by the finger is strong, the mobile terminal can receive reflected light conveniently, the difference of the reflected light of the wave crest and the wave trough of the finger is large, clear fingerprint images can be formed according to the reflected light, and the success rate of fingerprint identification is further improved.
The brightness of the touch screen can be adjusted, the whole touch screen can be brightened, and the fingerprint identification area can also be brightened only. For example, the fingerprint identification area displays a brighter white color, and the non-fingerprint identification area displays a black color. The advantage of only brightening the fingerprint identification area is to save power consumption of the mobile terminal. The embodiment of the present invention is not limited in detail, and may be set according to actual situations.
And 103, acquiring the fingerprint of the user and performing fingerprint identification.
In this embodiment, the mobile terminal obtains the user fingerprint through the fingerprint identification area, and compares the obtained user fingerprint with a fingerprint preset in the mobile terminal. The fingerprint preset in the mobile terminal is usually collected in a normal temperature environment, that is, the obtained user fingerprint is compared with the preset normal temperature fingerprint. If the preset normal-temperature fingerprint matched with the user fingerprint is found, judging that the fingerprint identification is successful; and if the preset normal-temperature fingerprint matched with the user fingerprint is not found, judging that the fingerprint identification fails.
In summary, in the embodiment of the present invention, when it is detected that the user touches the fingerprint identification area, the ambient temperature is detected; and when the ambient temperature is lower than the preset temperature, brightness adjustment is carried out on the touch screen, and the fingerprint of the user is acquired and subjected to fingerprint identification. At low temperature, the finger of a person can be dry, the lines become shallow, the touch screen can be subjected to brightness attenuation, the brightness of the touch screen is adjusted at the moment, the difference of reflected light can be increased, the success rate of fingerprint identification is improved, and the low-temperature identification performance of the mobile terminal is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a fingerprint identification method according to an embodiment of the present invention is shown. The method is applied to a mobile terminal with a touch screen, wherein the touch screen is provided with a fingerprint identification area, and the method comprises the following steps:
step 201, when detecting that the user touches the fingerprint identification area, detecting an ambient temperature.
Step 202, when the environment temperature is lower than a preset temperature, adjusting the brightness of the touch screen.
In this embodiment, a plurality of preset temperatures may be set, for example, the ambient temperature is lower than the first preset temperature, and the mobile terminal is in a low-temperature environment; the ambient temperature is lower than the second preset temperature, and the mobile terminal is in an ultralow temperature environment. The embodiment of the present invention is not limited in detail, and may be set according to actual situations.
The following steps can be specifically adopted for adjusting the brightness of the touch screen:
and a first substep of determining the current brightness of the touch screen.
And a second substep of adjusting the driving voltage of the touch screen according to the current brightness and a preset identification brightness, so that the touch screen reaches the identification brightness under the driving voltage.
Specifically, the minimum brightness required for identifying a fingerprint, i.e., the identification brightness, may be preset in the mobile terminal. And determining a target driving voltage required by the touch screen to reach the recognition brightness according to the difference between the current brightness and the recognition brightness, and then adjusting the driving voltage.
Step 203, acquiring a user fingerprint and performing fingerprint identification.
And step 204, when the fingerprint identification is successful, setting the fingerprint of the user which is successfully identified as the preset low-temperature fingerprint.
In this embodiment, if the first fingerprint identification is successful, the user fingerprint that is successfully identified is set as the preset low-temperature fingerprint, and the preset low-temperature fingerprint is stored.
And step 205, generating a prompt message to prompt the user to lengthen the touch time and strengthen the touch strength.
In this embodiment, if the first fingerprint identification fails and the user fingerprint needs to be repeatedly acquired, prompt information may be generated on the touch screen to prompt the user to pay attention to the touch time and the touch force, so that the success rate of the fingerprint identification may be increased when the fingerprint identification is performed again.
And step 206, when the fingerprint identification fails, repeating the steps of acquiring the user fingerprint and carrying out fingerprint identification.
In this embodiment, if the fingerprint identification fails, the step of obtaining the fingerprint of the user and performing the fingerprint identification may be repeated. For example, the user fingerprint acquisition and fingerprint recognition are repeated 3 times. The number of repetitions is not limited in detail in the embodiment of the present invention, and may be set according to actual conditions.
Step 207, if the fingerprint identification is successful within the set number of times, determining whether the fingerprint of the user with failed identification meets the preset condition.
In this embodiment, if the repetition times reaches the set times, the fingerprint identification still fails, and a prompt of fingerprint failure may be generated. And if the fingerprint identification is successful within the set times, judging whether the fingerprint of the user with the identification failure meets the preset condition. For example, if the set number of times is 3, and fingerprint identification is successful when the 3 rd time is repeated, the fingerprints of the users with the 1 st and 2 nd identification failures are judged, and whether the fingerprints of the users with the two previous identification failures meet the preset condition is judged.
Optionally, the preset condition is that the similarity between the fingerprint of the user with the failed identification and the fingerprint of the user with the successful identification is greater than a first preset value, and the false recognition rate when the fingerprint of the user with the failed identification is used as the fingerprint of the user with the successful identification is lower than a second preset value.
For example, the similarity of the fingerprint of the user with the failed identification at the 1 st time is 84% compared with the fingerprint of the user with the successful identification at the 3 rd time, and if the fingerprint of the user with the failed identification at the 1 st time is taken as the fingerprint of the user with the successful identification, the false recognition rate is 25%; the similarity of the fingerprint of the user with failed identification at the 2 nd time is 90% compared with the fingerprint of the user with successful identification at the 3 rd time, and if the fingerprint of the user with failed identification at the 2 nd time is taken as the fingerprint of the user with successful identification, the false recognition rate is 25%. The first preset value can be set to 85%, the second preset value is set to 30%, the fingerprint of the user with the 1 st identification failure does not meet the preset condition, and the fingerprint of the user with the 2 nd identification failure meets the preset condition. Or the first preset value is set to be 80%, and the second preset value is set to be 30%, so that the fingerprints of the users who failed in the previous two identification processes meet the preset condition. The first preset value and the second preset value are not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
Wherein the false rate is the ratio of the number of misjudged fingerprints to the total number of fingerprints. For example, after the first fingerprint identification fails, 3 fingerprint identifications are repeated, and when the fingerprint identification is repeated for the 3 rd time, the total number of fingerprints is 4, if the fingerprint of the user with the 1 st identification failure is taken as the fingerprint of the user with the identification success, the fingerprint of the user is a misjudged fingerprint, the number of the misjudged fingerprints is 1, and the false rate is 25%.
And 208, if the preset condition is met, setting the fingerprint of the user with the identification failure as the preset low-temperature fingerprint.
In this embodiment, if the preset condition is satisfied, the fingerprint of the user with the failed identification is set as the preset low-temperature fingerprint, and the preset low-temperature fingerprint is stored. For example, the fingerprint of the user with the failed 2 nd identification satisfies the preset condition, and the fingerprint of the user with the failed 2 nd identification is set as the preset low-temperature fingerprint. Further, a preset ultra-low temperature fingerprint may be set and stored, for example, if the fingerprint of the user whose identification failed does not satisfy the preset condition that the similarity is greater than 85% and the recognition rate is less than 30%, but satisfies the preset condition that the similarity is greater than 80% and the recognition rate is less than 30%, the fingerprint of the user whose identification failed may be set as the preset ultra-low temperature fingerprint. The embodiment of the present invention is not limited in detail, and may be set according to actual situations.
And 209, when the environment temperature is not lower than the preset temperature, performing fingerprint identification according to a preset normal-temperature fingerprint.
In this embodiment, when the ambient temperature is not lower than the preset temperature, the mobile terminal is in a normal temperature environment, and fingerprint identification can be performed according to the preset normal temperature fingerprint first, which is not described herein again.
And 210, if the identification fails when the fingerprint identification is carried out according to the preset normal-temperature fingerprint, carrying out the fingerprint identification according to the preset low-temperature fingerprint.
In this embodiment, when carrying out fingerprint identification failure according to predetermineeing normal atmospheric temperature fingerprint, carry out fingerprint identification according to the predetermined low temperature fingerprint in the mobile terminal, further can discern according to predetermineeing ultra-low temperature fingerprint. The embodiment of the present invention is not limited in detail, and may be set according to actual situations.
In summary, in the embodiment of the present invention, when it is detected that the user touches the fingerprint identification area, the ambient temperature is detected; and when the ambient temperature is lower than the preset temperature, brightness adjustment is carried out on the touch screen, and the fingerprint of the user is acquired and subjected to fingerprint identification. At low temperature, the finger of a person can be dry, the lines become shallow, the touch screen can be subjected to brightness attenuation, the brightness of the touch screen is adjusted at the moment, the difference of reflected light can be increased, the success rate of fingerprint identification is improved, and the low-temperature identification performance of the mobile terminal is improved.
Further, at normal temperature, if fingerprint identification fails according to a preset normal temperature fingerprint, fingerprint identification can be performed according to a preset low temperature fingerprint, so that the normal temperature identification performance of the mobile terminal is improved, and the use experience of a user is improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a fingerprint identification device according to an embodiment of the present invention is shown. The device is deployed on a mobile terminal with a touch screen, the touch screen is provided with a fingerprint identification area, and the device comprises a temperature detection module 301, a brightness adjustment module 302 and a first fingerprint identification module 303:
the temperature detection module 301 is configured to detect an ambient temperature when it is detected that the user touches the fingerprint identification area;
the brightness adjusting module 302 is configured to adjust the brightness of the touch screen when the ambient temperature is lower than a preset temperature;
the first fingerprint identification module 303 is configured to acquire a fingerprint of a user and perform fingerprint identification.
On the basis of fig. 3, optionally, the brightness adjusting module 302 includes:
the current brightness determination submodule is used for determining the current brightness of the touch screen;
and the driving voltage adjusting submodule is used for adjusting the driving voltage of the touch screen according to the current brightness and preset identification brightness so that the touch screen reaches the identification brightness under the driving voltage.
On the basis of fig. 3, optionally, the apparatus further includes a first fingerprint setting module 304, a second fingerprint identifying module 305, a fingerprint determining module 306, and a second fingerprint setting module 307, see fig. 4:
the first fingerprint setting module 304 is configured to set, when fingerprint identification is successful, a user fingerprint that is successfully identified as a preset low-temperature fingerprint;
a second fingerprint identification module 305, configured to repeat the steps of obtaining a user fingerprint and performing fingerprint identification when fingerprint identification fails;
the fingerprint judging module 306 is configured to judge whether the fingerprint of the user with the failed recognition meets a preset condition if the number of repetitions is successful in fingerprint recognition within a set number of times;
a second fingerprint setting module 307, configured to set the user fingerprint that fails to be identified as the preset low-temperature fingerprint if the preset condition is met, where the preset condition is that a similarity between the user fingerprint that fails to be identified and the user fingerprint that succeeds in being identified is greater than a first preset value, and an authentication rate when the user fingerprint that fails to be identified is used as the user fingerprint that succeeds in being identified is lower than a second preset value.
On the basis of fig. 3, optionally, before the second fingerprint identification module 305, the apparatus further includes a prompt information generation module 308, see fig. 4:
and the prompt information generating module 308 is configured to generate prompt information to prompt the user to lengthen the touch time and strengthen the touch strength.
On the basis of fig. 3, optionally, after the temperature detection module 301, the apparatus further includes a third fingerprint identification module 309 and a fourth fingerprint identification module 310, see fig. 4:
a third fingerprint identification module 309, configured to perform fingerprint identification according to a preset normal-temperature fingerprint when the ambient temperature is not lower than the preset temperature;
the fourth fingerprint identification module 310 is configured to perform fingerprint identification according to the preset low-temperature fingerprint if identification fails when performing fingerprint identification according to the preset normal-temperature fingerprint.
The fingerprint identification device provided by the embodiment of the invention can realize each process realized in the method embodiments of fig. 1-2, and is not described again to avoid repetition. In the embodiment of the invention, at low temperature, the finger of a person is dry and has shallow lines, and the touch screen has brightness attenuation, so that the brightness of the touch screen is adjusted, the difference of reflected light can be increased, the success rate of fingerprint identification is improved, and the low-temperature identification performance of the mobile terminal is improved.
Further, at normal temperature, if fingerprint identification fails according to a preset normal temperature fingerprint, fingerprint identification can be performed according to a preset low temperature fingerprint, so that the normal temperature identification performance of the mobile terminal is improved, and the use experience of a user is improved.
Example four
Figure 5 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 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.
Wherein, the processor 410 is configured to detect an ambient temperature when it is detected that the user touches the fingerprint identification area; when the environment temperature is lower than the preset temperature, brightness adjustment is carried out on the touch screen; and acquiring a user fingerprint and performing fingerprint identification.
In the embodiment of the invention, at low temperature, the finger of a person is dry and has shallow lines, and the touch screen has brightness attenuation, so that the brightness of the touch screen is adjusted, the difference of reflected light can be increased, the success rate of fingerprint identification is improved, and the low-temperature identification performance of the mobile terminal is improved.
Further, at normal temperature, if fingerprint identification fails according to a preset normal temperature fingerprint, fingerprint identification can be performed according to a preset low temperature fingerprint, so that the normal temperature identification performance of the mobile terminal is improved, and the use experience of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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 unit 401 can 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 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound 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 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, 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 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, 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 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 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 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 3, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 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 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program 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 409 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 410 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 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 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 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the foregoing fingerprint identification 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 computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the fingerprint identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, 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.