Fingerprint identification method, mobile terminal and storage medium
By superimposing colors that can neutralize each other with the eye protection mode on the fingerprint window layer, the problem of reducing fingerprint recognition accuracy caused by the eye protection mode is solved, and the accuracy of fingerprint collection is improved based on the eye protection effect.
Patent Information
- Application Number
- CN202210122320.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-12-17
AI Technical Summary
Eye protection mode and screen color adjustment lead to low brightness and distortion in under-screen optical fingerprint recognition, resulting in fingerprint image acquisition errors and reducing the accuracy of fingerprint recognition.
The first preset color is superimposed on the fingerprint window layer, so that it is neutralized with the eye protection mode or color adjustment mode, so that the fingerprint window layer with no color added and the background window layer with added color added on the composite image, ensuring the accuracy of fingerprint acquisition.
While enjoying the eye protection effect, improve the accuracy of fingerprint recognition and reduce the error in fingerprint image acquisition.
Smart Images

Figure CN114495185B_ABST
Abstract
Description
[0001] This application is a divisional application of invention patent application 2021115461513 filed on December 17, 2021. Technical Field
[0002] The present invention relates to the technical field of fingerprint identification, and in particular to a fingerprint identification method, a mobile terminal and a storage medium. Background Art
[0003] Fingerprint recognition technology is widely used in mobile phones, tablets and other terminal devices due to its advantages such as security and convenience. Currently, the most widely used is under-screen fingerprint recognition, and under-screen optical fingerprint recognition is a more common under-screen fingerprint recognition technology. Taking the display panel as OLED as an example, when a finger presses the screen, the light generated by the OLED display panel is used to illuminate the finger pressing area, and the light reflected by the finger is imaged on the image sensor under the screen. The image sensor collects the fingerprint image and compares it with the pre-stored fingerprint image to achieve the purpose of identity authentication. It can be seen that the imaging effect of the fingerprint image has a greater impact on the under-screen optical fingerprint recognition.
[0004] However, when we use terminal devices, the screen will emit blue light, which is very harmful to human eyes. In order to protect human eyes, functions such as eye protection mode and screen color adjustment are proposed. However, functions such as eye protection mode and screen color adjustment will cause low brightness and color distortion, resulting in large errors in the collected fingerprint images, thereby reducing the accuracy of under-screen optical fingerprint recognition. Summary of the invention
[0005] To this end, the present invention provides a fingerprint recognition method to try to solve or at least alleviate the above problems.
[0006] According to one aspect of the present invention, a fingerprint recognition method is provided, which is executed in a mobile terminal, and the method includes: when a finger is detected pressing a fingerprint collection area of a current display interface, obtaining a fingerprint window layer and a background window layer; superimposing a first preset color on the fingerprint window layer to obtain a first fingerprint window layer; superimposing a second preset color on an image corresponding to the first fingerprint window layer and the background window layer to obtain a first image, and displaying it on the current display interface, wherein the first preset color and the second preset color can neutralize each other so that the fingerprint window layer of the first image has an effect without adding color and the background window layer has an effect with adding color; collecting a fingerprint image through the light emitted by the fingerprint window layer of the first image; and comparing the collected fingerprint image with a pre-stored fingerprint image to perform fingerprint recognition.
[0007] Optionally, the step of superimposing a first preset color on the fingerprint window layer to obtain the first fingerprint window layer includes: determining each color component matrix of the fingerprint window layer according to the fingerprint window layer; and performing product processing on each color component matrix of the fingerprint window layer and the color matrix of the first preset color to obtain the first fingerprint window layer.
[0008] Optionally, the color matrix of the first preset color is determined in the following manner: acquiring a color matrix corresponding to the color of the current display interface; and determining an inverse matrix of the color matrix as the color matrix of the first preset color.
[0009] Optionally, the step of superimposing a second preset color on the image corresponding to the first fingerprint window layer and the background window layer to obtain a first image, and displaying it on the current display interface includes: synthesizing the first fingerprint window layer and the background window layer to obtain a second image; superimposing the second preset color on the second image to obtain the first image; and updating the image displayed on the current display interface to the first image.
[0010] Optionally, the step of superimposing a second preset color on the second image to obtain the first image includes: determining each color component matrix of the first fingerprint window layer and each color component matrix of the background window layer of the second image; multiplying each color component matrix of the first fingerprint window layer with the color matrix of the second preset color to obtain the second fingerprint window layer, so that the second fingerprint window layer has an effect of no color added; multiplying each color component matrix of the background window layer with the color matrix of the second preset color to obtain the first background window layer, so that the first background window layer has an effect of adding color; updating the second image according to the second fingerprint window layer and the first background window layer to obtain the first image.
[0011] Optionally, the color of the display interface includes at least a color corresponding to the eye protection mode and a color corresponding to a preset screen color, and the second preset color is the color of the display interface.
[0012] Optionally, the step of collecting the fingerprint image through the light emitted by the fingerprint window layer of the first image includes: emitting light to the finger pressing area through the fingerprint window layer of the first image to obtain the reflected light of the fingerprint; sending the reflected light of the fingerprint to the fingerprint module; and collecting the fingerprint image through the fingerprint module.
[0013] Optionally, the step of comparing the collected fingerprint image with the pre-stored fingerprint image to perform fingerprint recognition includes: determining whether the collected fingerprint image matches the pre-stored fingerprint image, and if so, the fingerprint recognition is successful.
[0014] According to one aspect of the present invention, a mobile terminal is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the method as described above.
[0015] According to one aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a mobile terminal, the mobile terminal executes the method described above.
[0016] According to the technical solution of the present invention, a fingerprint recognition method is provided. When a finger is detected pressing the fingerprint collection area of the current display interface, the method obtains the fingerprint window layer and the background window layer, superimposes the first preset color on the fingerprint window layer to obtain the first fingerprint window layer, superimposes the second preset color on the image corresponding to the first fingerprint window layer and the background fingerprint window layer to obtain the first image, and displays it on the current display interface. The first preset color and the second preset color can be mutually neutralized, so that the fingerprint window layer of the first image has an effect without adding color, and the background window layer has an effect of adding color. Then, the fingerprint image is collected through the light emitted by the fingerprint window layer of the first image, and the collected fingerprint image is compared with the pre-stored fingerprint image to perform fingerprint recognition.
[0017] From the above content, it can be seen that the fingerprint recognition method provided by the present invention obtains a first fingerprint layer by superimposing colors that offset each other with the eye protection mode on the fingerprint window layer, so that when the eye protection mode is superimposed on the image synthesized by the first fingerprint layer and the background window layer, the fingerprint window layer of the image is the effect without adding the eye protection mode, and the background window layer is the effect of adding the eye protection mode. It can be achieved that while enjoying the eye protection effect, the accuracy of fingerprint collection is guaranteed, thereby improving the accuracy of fingerprint recognition.
[0018] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0020] Figure 1 A schematic diagram showing a process of synthesizing and displaying an image on an interface according to an embodiment of the present invention;
[0021] Figure 2 A structural diagram of a mobile terminal 200 according to an embodiment of the present invention is shown;
[0022] Figure 3 A flow chart of a fingerprint identification method 300 according to an embodiment of the present invention is shown;
[0023] Figure 4 A schematic diagram showing a current display interface according to an embodiment of the present invention;
[0024] Figure 5 A schematic diagram showing a current display interface according to another embodiment of the present invention; and
[0025] Figure 6 A schematic diagram of a display interface for updating an image to a first image according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] Fingerprint recognition technology is widely used in mobile phones, tablets and other terminal devices due to its advantages such as security and convenience. Currently, the most widely used is under-screen fingerprint recognition, and under-screen optical fingerprint recognition is a more common under-screen fingerprint recognition technology.
[0028] Taking the display panel as OLED as an example, when a finger presses the screen, the light generated by the OLED display panel is used to illuminate the finger pressing area, and the light reflected by the finger is imaged on the image sensor under the screen. The image sensor collects the fingerprint image and compares it with the pre-stored fingerprint image to achieve the purpose of identity authentication. It can be seen that the imaging effect of the fingerprint image has a great influence on the under-screen optical fingerprint recognition.
[0029] However, when we use terminal devices, the screen will emit blue light, which is very harmful to human eyes. In order to protect human eyes, eye protection mode and screen color adjustment functions are proposed. Among them, eye protection mode achieves the purpose of eye protection by changing the color tone of the screen. Generally, after the image is synthesized, the color matrix of the eye protection mode and the color component matrix of the synthesized image are multiplied and then sent to the display device of the computing device for display. Eye protection mode is also a color condition mode. Color adjustment allows users to adjust the color tone of the screen according to their needs.
[0030] The process of image synthesis and display on the interface is as follows: Figure 1 As shown. First, the fingerprint window layer and other window layers (hereinafter collectively referred to as the background window layer) are obtained, and the size, format, and other forms of each window layer are processed through the pipe display hardware to unify the form of each window layer. After that, the unified window layers are synthesized through a mixer to form an image. The image is then post-processed (post-pipe), that is, some display effects are added to the image, such as adding eye protection mode, color adjustment, etc. to the image. After obtaining the post-processed image, the image is finally displayed on the display interface of the mobile terminal. It should be noted that the mobile terminal in the present invention refers to a computer device that can be used on the move, which can be a mobile phone, a laptop, or a car-mounted computer.
[0031] However, the image displayed on the display interface will have low brightness and color distortion due to the addition of eye protection mode and screen color adjustment, resulting in large errors in the collected fingerprint image, thereby reducing the accuracy of under-screen optical fingerprint recognition.
[0032] In order to solve the above problems, the present invention first provides a fingerprint recognition method, which is executed in a mobile terminal 200. The structural block diagram of the mobile terminal 200 is shown in FIG. Figure 2 As shown, the mobile terminal 200 may include a memory interface 202 , one or more data processors, an image processor and / or a central processing unit 204 , and a peripheral interface 206 .
[0033] The memory interface 202, one or more processors 204 and / or the peripheral interface 206 may be discrete components or integrated in one or more integrated circuits. In the mobile terminal 200, various components may be coupled via one or more communication buses or signal lines. Sensors, devices, and subsystems may be coupled to the peripheral interface 206 to facilitate various functions.
[0034] For example, motion sensor 210, light sensor 212, and distance sensor 214 can be coupled to peripheral interface 206 to facilitate functions such as orientation, lighting, and ranging. Other sensors 216 can also be connected to peripheral interface 206, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, which can help implement related functions.
[0035] The camera subsystem 220 and optical sensor 222 can be used to facilitate the implementation of camera functions such as recording photos and video clips, wherein the camera subsystem and optical sensor can be, for example, a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) optical sensor. Communication functions can be facilitated by one or more wireless communication subsystems 224, wherein the wireless communication subsystem can include a radio frequency receiver and transmitter and / or an optical (e.g., infrared) receiver and transmitter. The specific design and implementation of the wireless communication subsystem 224 can depend on one or more communication networks supported by the mobile terminal 200. For example, the mobile terminal 200 can include a communication subsystem 224 designed to support LTE, 3G, GSM networks, GPRS networks, EDGE networks, Wi-Fi or WiMax networks, and BlueboothTM networks.
[0036] The audio subsystem 226 may be coupled to a speaker 228 and a microphone 230 to facilitate voice-enabled functions such as voice recognition, voice replication, digital recording, and telephony. The I / O subsystem 240 may include a touch screen controller 242 and / or one or more other input controllers 244. The touch screen controller 242 may be coupled to a touch screen 246. For example, the touch screen 246 and the touch screen controller 242 may use any of a variety of touch sensing technologies to detect contact and movement or pause therewith, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies. The one or more other input controllers 244 may be coupled to other input / control devices 248, such as one or more buttons, rocker switches, thumb wheels, infrared ports, USB ports, and / or pointing devices such as styluses. The one or more buttons (not shown) may include an up / down button for controlling the volume of the speaker 228 and / or the microphone 230.
[0037] The memory interface 202 can be coupled to the memory 250. The memory 250 can include a high-speed random access memory and / or a non-volatile memory, such as one or more disk storage devices, one or more optical storage devices, and / or a flash memory (such as NAND, NOR). The memory 250 can store an operating system 272, such as an operating system such as Android, iOS, or Windows Phone. The operating system 272 may include instructions for processing basic system services and performing hardware-dependent tasks. The memory 250 can also store a program 274. When the mobile device is running, the operating system 272 will be loaded from the memory 250 and executed by the processor 204. When the program 274 is running, it will also be loaded from the memory 250 and executed by the processor 204. The program 274 runs on the operating system and uses the interfaces provided by the operating system and the underlying hardware to implement various user-desired functions, such as instant messaging, web browsing, picture management, etc. The program 274 can be provided independently of the operating system, or it can be provided by the operating system. In addition, when the program 274 is installed in the mobile terminal 200, a driver module can also be added to the operating system.
[0038] In some embodiments, the mobile terminal 200 is configured to execute the fingerprint recognition method 300 according to the present invention. The one or more programs 274 of the mobile terminal 200 include instructions for executing the fingerprint recognition method 300 according to the present invention.
[0039] Figure 3 The flowchart of the fingerprint recognition method 300 according to an embodiment of the present invention is shown. The method 300 is suitable for being executed in the mobile terminal 200. Further, the method 300 is suitable for being applied to the mobile terminal 200 in which the eye protection mode or the color adjustment mode has been set in the current display interface. The fingerprint recognition method 30 includes steps S310 to S350.
[0040] When a user wants to perform fingerprint recognition, he or she will first press the finger on the Figure 4 The mobile terminal 200 is shown at the fingerprint collection area 4-1 of the current display interface. At this time, the mobile terminal detects the operation of pressing the fingerprint collection area of the current display interface with a finger, and in response to the operation, executes step S310 to obtain the color of the fingerprint window layer, the background window layer and the current display interface. In other words, obtain Figure 4 The fingerprint window layer of the display interface shown and the background window layer in the display interface except the fingerprint window layer.
[0041] After obtaining the fingerprint window layer and the background window layer of the current display interface, step S320 is then executed to superimpose the first preset color on the fingerprint window layer to obtain the first fingerprint window layer. In one embodiment, step S320 specifically includes:
[0042] Determine the color component matrices of the fingerprint window layer according to the fingerprint window layer, and multiply the color component matrices of the fingerprint window layer with the color matrix of the first preset color to obtain the first fingerprint window layer. At this time, if the first fingerprint window layer and the background window layer are combined into one image, the display effect is as follows: Figure 5 shown.
[0043] In one embodiment, the color matrix of the first preset color is determined by obtaining a color matrix corresponding to the color of the current display interface, and determining an inverse matrix of the color matrix as the color matrix of the first preset color. The present invention does not limit the method of determining the inverse matrix of the color matrix, for example, the undetermined coefficient method, the adjoint matrix inverse matrix method, and the elementary transformation inverse matrix method.
[0044] Then, step S320 includes: determining each color component matrix of the fingerprint window layer according to the fingerprint window layer, determining the inverse matrix of the color matrix corresponding to the color of the current display interface, and performing product processing on each color component matrix of the fingerprint window layer and the inverse matrix respectively to obtain the first fingerprint window layer.
[0045] It should be noted here that the color of the display interface at least includes the color corresponding to the eye protection mode and the color corresponding to the preset screen color. Therefore, from the above content, it can be seen that superimposing the first preset color on the fingerprint window layer is actually superimposing the color that can be neutralized (i.e., offset) with the color corresponding to the eye protection mode or the color adjustment mode to the fingerprint window layer, that is, the first fingerprint layer obtained is a fingerprint window layer superimposed with a color that can offset the color corresponding to the eye protection mode or the color adjustment mode.
[0046] After the fingerprint layer is processed to obtain the first fingerprint layer, step S330 is continued to be executed to superimpose the second preset color on the image corresponding to the first fingerprint window layer and the background window layer to obtain the first image. The second preset color is the color of the current display interface, and the color of the current display interface is as described above, which will not be repeated here. In one embodiment, step S330 specifically includes:
[0047] First, the first fingerprint window layer and the acquired background window layer are synthesized through a mixer to obtain a second image. Therefore, the fingerprint window layer in the second image is added with the first preset color, that is, a color that can offset the color of the current display interface is added, and the background window layer in the second image is not processed in any way.
[0048] Afterwards, the color component matrices of the first fingerprint window layer and the color component matrices of the background window layer of the second image are determined, and the color component matrices of the first fingerprint window layer are multiplied by the color matrices of the second preset color to obtain the second fingerprint window layer. Since the first preset color can offset the color of the current display interface, and the second preset color is the color of the current display interface, by superimposing the second preset color on the first fingerprint layer superimposed with the first preset color, the first preset color and the second preset color can be offset, so that the obtained fingerprint window layer is a fingerprint window layer without adding any color, so that the display effect of the obtained second fingerprint window layer is the effect of adding no color.
[0049] Next, the color component matrices of the background window layer are multiplied by the color matrix of the second preset color to obtain the first background window layer. Since there is no superimposed color in the background window layer, after the color component matrices of the background window layer are multiplied by the color matrix of the second preset color, it is equivalent to superimposing the color of the current display interface on the background window layer, that is, superimposing the eye protection mode or the color adjustment mode, so that the display effect of the obtained first background window layer is the effect of superimposing the eye protection mode or the color adjustment mode.
[0050] Finally, the second image is updated according to the second fingerprint window layer without superimposed color and the first background window layer with superimposed eye protection mode or color adjustment mode to obtain the first image. The image of the current display interface is updated to the first image, that is, the first image with superimposed eye protection mode or color adjustment mode on the background window layer and no superimposed color on the fingerprint window layer is displayed on the current display interface. The schematic diagram of the display interface in which the image is updated to the first image is as shown in FIG. Figure 6 shown.
[0051] After obtaining the first image, continue to execute step S340 to collect the fingerprint image through the light emitted by the fingerprint window layer of the first image. In one embodiment, step S340 includes:
[0052] The fingerprint window layer of the first image is used as a light sending unit, that is, light is sent to the finger pressing area through the fingerprint window layer of the first image to obtain the reflected light of the fingerprint, and the reflected light of the fingerprint is sent to the fingerprint module to collect the fingerprint image through the fingerprint module.
[0053] After the fingerprint image is collected, step S350 is executed to compare the collected fingerprint image with the pre-stored fingerprint image for fingerprint recognition, wherein the pre-processed fingerprint image is a fingerprint image pre-entered and saved by the user, and the fingerprint image is used as the reference image in the subsequent fingerprint recognition process. Specifically, it is determined whether the collected fingerprint image matches the pre-stored fingerprint image. If they match, the fingerprint recognition is successful and the user can perform subsequent operations. If the collected fingerprint image does not match the pre-stored fingerprint image, the fingerprint recognition fails and the user cannot continue to perform other operations.
[0054] It should be noted that each time a user performs fingerprint recognition, steps S310 to S350 need to be executed.
[0055] From the above content, it can be seen that the fingerprint recognition method provided by the present invention obtains a first fingerprint layer by superimposing colors that offset each other with the eye protection mode on the fingerprint window layer, so that when the eye protection mode is superimposed on the image synthesized by the first fingerprint layer and the background window layer, the fingerprint window layer of the image is the effect without adding the eye protection mode, and the background window layer is the effect of adding the eye protection mode. It can be achieved that while enjoying the eye protection effect, the accuracy of fingerprint collection is guaranteed, thereby improving the accuracy of fingerprint recognition.
[0056] The fingerprint recognition method of the present invention can also be applied to a car driving system, which can be a smart driving system. The present invention does not limit the specific application scope of the fingerprint recognition method in the car driving system. For example, the method can perform fingerprint recognition in a car cockpit of a car driving system to improve the accuracy of fingerprint recognition and improve the safety of operating the car cockpit.
[0057] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0058] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the fingerprint recognition method of the present invention according to the instructions in the program code stored in the memory.
[0059] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.
[0060] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the best mode of the present invention.
[0061] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0062] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0063] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0064] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0065] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0066] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0067] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
Claims
1. A fingerprint recognition method, executed in a mobile terminal, comprising: When a finger is detected pressing the fingerprint collection area of the current display interface, the fingerprint window layer and the background window layer are obtained; Superimposing a first preset color on the fingerprint window layer to obtain a first fingerprint window layer; A second preset color is superimposed on the image corresponding to the first fingerprint window layer and the background window layer to obtain a first image, and the first image is displayed on the current display interface, wherein the second preset color is the color of the current display interface, and the first preset color and the second preset color can be neutralized with each other, so that the fingerprint window layer of the first image has an effect of no color added, and the background window layer has an effect of adding color; Collecting a fingerprint image through the light emitted by the fingerprint window layer of the first image; Compare the collected fingerprint image with the pre-stored fingerprint image to perform fingerprint recognition; Wherein, the step of superimposing a first preset color on the fingerprint window layer to obtain a first fingerprint window layer comprises: Determine the color component matrices of the fingerprint window layer according to the fingerprint window layer; The color component matrices of the fingerprint window layer are respectively multiplied with the color matrix of the first preset color to obtain the first fingerprint window layer.
2. The method of claim 1, wherein: The color matrix of the first preset color is determined in the following manner: Get the color matrix corresponding to the color of the current display interface; An inverse matrix of the color matrix is determined as the color matrix of the first preset color.
3. The method according to claim 1 or 2, wherein: The step of superimposing a second preset color on the image corresponding to the first fingerprint window layer and the background window layer to obtain a first image and displaying it on the current display interface includes: Synthesize the first fingerprint window layer and the background window layer to obtain a second image; superimposing the second preset color on the second image to obtain the first image; The image currently displayed on the display interface is updated to the first image.
4. The method of claim 3, wherein: The step of superimposing the second preset color on the second image to obtain the first image comprises: Determine each color component matrix of the first fingerprint window layer and each color component matrix of the background window layer of the second image; Perform product processing on each color component matrix of the first fingerprint window layer and the color matrix of the second preset color respectively to obtain a second fingerprint window layer, so that the second fingerprint window layer has an effect of no color added; Performing product processing on each color component matrix of the background window layer and the color matrix of the second preset color respectively to obtain a first background window layer, so that the first background window layer has an effect of adding color; The second image is updated according to the second fingerprint window layer and the first background window layer to obtain the first image.
5. The method according to claim 1 or 2, wherein: The step of collecting the fingerprint image through the light emitted by the fingerprint window layer of the first image comprises: Sending light to the finger pressing area through the fingerprint window layer of the first image to obtain reflected light of the fingerprint; Send the reflected light of the fingerprint to the fingerprint module; The fingerprint image is collected by the fingerprint module.
6. The method according to claim 1 or 2, wherein: The step of comparing the collected fingerprint image with the pre-stored fingerprint image to perform fingerprint identification includes: It is determined whether the collected fingerprint image matches the pre-stored fingerprint image. If they match, the fingerprint recognition is successful.
7. A mobile terminal, comprising: at least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 6.
8. A readable storage medium storing program instructions, when the program instructions are read and executed by a mobile terminal, the mobile terminal executes the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Fingerprint identification control method and device and computer readable storage medium
CN110188698A
Eye protection mode processing method and device in fingerprint identification mode, terminal and medium
CN113641416A