Fingerprint identification method, electronic device and readable storage medium

By detecting and adjusting the screen brightness of the electronic device according to different membrane types, the problem of reducing fingerprint recognition efficiency and accuracy due to the influence of film is solved, and efficient fingerprint recognition in different membranes is achieved.

CN118447541BActive Publication Date: 2025-06-06HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311548020.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2025-06-06
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

Current optical fingerprint technology has the problem of reducing fingerprint recognition efficiency and accuracy due to the influence of filming on electronic devices.

Method used

By detecting whether the screen of the electronic device covers the film material and adjusting the screen brightness according to different film material types, the signal-to-noise ratio of fingerprint recognition is improved. The specific method includes adjusting the first screen brightness in the case of a hydrogel film or a tempered film, adjusting the second screen brightness through three primary color light detection in the case of a heterochromatic light transmission film, and adjusting the third screen brightness through contrast calculation in the case of a anti-peeping film.

Benefits of technology

When the electronic device screen covers different types of membrane materials, adjusting the screen brightness through adaptation can significantly improve the efficiency and accuracy of fingerprint recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447541B_ABST
    Figure CN118447541B_ABST
Patent Text Reader

Abstract

The present application relates to the field of terminal technology, and discloses a fingerprint recognition method, an electronic device, and a readable storage medium. The method includes: after detecting the fingerprint recognition operation of the user, the electronic device determines the film information of the screen, and controls the screen to illuminate the user's finger with a light brightness that matches the film information to collect fingerprint information, wherein the signal-to-noise ratio of the fingerprint signal corresponding to the light brightness satisfies the signal-to-noise ratio condition, for example, the signal-to-noise ratio of the fingerprint signal corresponding to the light brightness is greater than the signal-to-noise ratio corresponding to other brightness. Based on the above method, when the screen of the electronic device is covered with a film material, the screen brightness can be adjusted based on different film materials to improve the efficiency and accuracy of fingerprint recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a fingerprint recognition method, an electronic device and a readable storage medium. Background Art

[0002] Currently, optical fingerprint technology has been widely used in electronic devices to realize functions such as fingerprint unlocking and fingerprint payment. Among them, optical fingerprint technology is a fingerprint recognition technology that uses light to obtain the user's fingerprint image. For example, Figure 1 As shown, when the user presses the finger on the fingerprint area 101 of the full-screen mobile phone 10, the screen 102 will emit bright light to illuminate the entire finger surface, and the finger can reflect the light to the fingerprint sensor 103 below the screen 102. The fingerprint sensor 103 can obtain the user's fingerprint information by analyzing the received finger reflected light to generate a fingerprint image. If it is determined that the generated fingerprint image matches the pre-stored fingerprint image, the identity authentication can be completed to realize the fingerprint unlocking function.

[0003] However, there are currently some situations where when users put films on mobile phones and other electronic devices (for example, anti-blue light films, anti-peep films, etc.), the film material may affect the ability of light to transmit, thereby affecting the intensity of light received by the fingerprint sensor and reducing the efficiency and accuracy of fingerprint recognition. Summary of the invention

[0004] The present application provides a fingerprint recognition method, an electronic device and a readable storage medium, which can improve the efficiency and accuracy of fingerprint recognition when the screen of the electronic device is covered with a film material.

[0005] In a first aspect, the present application provides a fingerprint recognition method, which is applied to an electronic device, the method comprising: detecting a user's fingerprint recognition operation; having a film above a fingerprint detection area corresponding to the electronic device, and collecting a fingerprint image with a first screen brightness, wherein the first screen brightness is related to the film.

[0006] In the present application, the first screen brightness can be the screen brightness for collecting fingerprint images mentioned later. For example, when the film material is a hydrogel film or a tempered film, the first screen brightness can be the first brightness mentioned later; when the film material is a heterochromatic light-transmitting film, the first screen brightness can be the primary color light mentioned later that can maximize the signal-to-noise ratio; when the film material is an anti-peep film, the first screen brightness can be the third brightness mentioned later.

[0007] In the embodiment of the present application, when the electronic device detects the user's fingerprint recognition operation, the electronic device will detect whether the screen is covered with a film material. If it is determined that the screen of the electronic device is covered with a film material, the screen brightness will be adjusted to a first screen brightness that is adapted to the film material, and the first screen brightness will be used to illuminate the user's finger surface to collect the fingerprint image.

[0008] In some embodiments, when a user presses the touch screen of an electronic device, the touch screen can detect the position and strength of the pressing. If it is determined that the pressed area is a fingerprint area of ​​the screen, the pressing intensity reaches a preset intensity threshold, etc., it indicates that a fingerprint recognition instruction has been detected.

[0009] It can be understood that the first screen brightness is related to the film material covering the screen of the electronic device. In this way, when the screen of the electronic device is covered with a film material, the screen brightness can be adjusted based on different film materials to improve the efficiency and accuracy of fingerprint recognition.

[0010] In a possible implementation of the first aspect above, the method further includes: determining a first screen brightness related to the film based on the material of the film and a signal-to-noise ratio of a fingerprint signal collected by the electronic device at different display brightnesses.

[0011] It can be understood that in the embodiment of the present application, the brightness of the first screen is related to the material of the film, and the screen brightness can be adjusted based on the different film materials; at the same time, the performance of the fingerprint recognition technology can be measured by the signal-to-noise ratio, wherein, when the signal-to-noise ratio is higher, it means that the fingerprint sensor can better distinguish between fingerprint signals and noise, and the accuracy and reliability of fingerprint recognition are higher. Therefore, the brightness of the first screen can also be determined based on the signal-to-noise ratio of the light reflected by the user's finger received by the electronic device.

[0012] In a possible implementation of the first aspect above, the material of the film can be determined in the following manner: based on the material information in the identification information of the film, the material of the film is determined; or, based on the difference between the intensity of light emitted and the intensity of light received by the electronic device during fingerprint recognition, the material of the film is determined.

[0013] It can be understood that in some embodiments, during the film material manufacturing process, the film material manufacturer usually embeds relevant specific information directly into the film material, and the electronic device can directly obtain the material information in the identification information hidden in the film material.

[0014] In other embodiments, during the fingerprint recognition process of the electronic device, the material of the film can be determined by analyzing the difference between the intensity of the emitted light and the intensity of the received light. For example, if the difference between the intensity of the emitted light and the intensity of the received light is small, the material of the film can be a hydrogel film or a tempered film; if the received light distribution is uneven, for example, the light intensity in the center area is high and the light intensity in the edge area is low, it can be determined that the material of the film is a privacy film.

[0015] In a possible implementation of the first aspect above, the method of determining the first screen brightness related to the film based on the material of the film and the signal-to-noise ratio of the fingerprint signal collected by the electronic device at different display brightnesses includes: obtaining multiple signal-to-noise ratios of the fingerprint signal corresponding to the electronic device at multiple screen brightnesses; selecting a first signal-to-noise ratio that meets the signal-to-noise ratio condition from the multiple signal-to-noise ratios; and determining the first screen brightness based on the first signal-to-noise ratio and the material of the film.

[0016] In the present application, to determine the first screen brightness, it is first necessary to adjust the screen brightness to different brightness ranges, and obtain the signal-to-noise ratio corresponding to each brightness, select the first signal-to-noise ratio that meets the signal-to-noise ratio conditions, and determine the first screen brightness based on the material of the film obtained above and the first signal-to-noise ratio.

[0017] In a possible implementation of the first aspect, the signal-to-noise ratio condition includes at least one of the following: the first signal-to-noise ratio is greater than or equal to a signal-to-noise ratio threshold; the first signal-to-noise ratio is a maximum signal-to-noise ratio among multiple signal-to-noise ratios; the first signal-to-noise ratio is any one of the top N signal-to-noise ratios among the multiple signal-to-noise ratios.

[0018] In the present application, a first signal-to-noise ratio is selected from the signal-to-noise ratios corresponding to the brightness of each screen, wherein the first signal-to-noise ratio may be greater than or equal to a preset signal-to-noise ratio threshold; or, the first signal-to-noise ratio is greater than the signal-to-noise ratios corresponding to other screen brightnesses; or, after arranging the signal-to-noise ratios corresponding to the brightness of each screen from large to small, the first signal-to-noise ratio is any one of the first N signal-to-noise ratios.

[0019] In a possible implementation of the first aspect above, the first screen brightness is determined based on the first signal-to-noise ratio and the material of the film, including: corresponding to the material of the film being a hydrogel film or a tempered film, determining that the screen brightness corresponding to the first signal-to-noise ratio is the first screen brightness.

[0020] In the present application, if it is detected that the screen of the electronic device is covered with a hydrogel film or a tempered film, the screen brightness can be adjusted to a first brightness corresponding to a first signal-to-noise ratio, and the user's finger surface can be illuminated by the first brightness to collect a fingerprint image.

[0021] In some embodiments, since the first signal-to-noise ratio satisfies the above-mentioned signal-to-noise ratio condition, the fingerprint recognition efficiency can be improved when the screen of the electronic device is covered with a hydrogel film or a tempered film.

[0022] In a possible implementation of the first aspect, the first screen brightness is determined based on the first signal-to-noise ratio and the material of the film, including: corresponding to the material of the film being a heterochromatic light-transmitting film, adjusting the screen brightness of the electronic device to a first brightness corresponding to the first signal-to-noise ratio; when the screen brightness of the electronic device is the first brightness, obtaining multiple signal-to-noise ratios of the fingerprint signal corresponding to the electronic device under multiple primary colors of light; selecting a second signal-to-noise ratio that meets the signal-to-noise ratio condition from the multiple signal-to-noise ratios, and determining that the primary color light corresponding to the first brightness and the second signal-to-noise ratio is the first screen brightness.

[0023] It can be understood that in the embodiment of the present application, after the screen brightness is adjusted to the first brightness, it is also necessary to use different primary color lights to illuminate the finger surface respectively and obtain the corresponding signal-to-noise ratio at the first brightness, so as to collect the fingerprint image with the primary color light corresponding to the signal-to-noise ratio that meets the signal-to-noise ratio condition.

[0024] In some embodiments, when the screen of an electronic device is covered with a heterochromatic light-transmitting film, only a specific color band is allowed to pass through the film layer, and electronic devices usually emit white light bands for fingerprint recognition, which will reduce the transmittance and affect the fingerprint recognition efficiency. Therefore, by using primary color light that can increase the signal-to-noise ratio to collect fingerprint images, the fingerprint recognition efficiency can be improved when the screen of the electronic device is covered with a heterochromatic light-transmitting film.

[0025] In a possible implementation of the first aspect above, the first screen brightness is determined based on the first signal-to-noise ratio and the material of the film, including: corresponding to the material of the film being an anti-peep film, obtaining multiple second brightnesses within a first brightness range corresponding to the first brightness, wherein the first brightness is the screen brightness corresponding to the first signal-to-noise ratio; detecting multiple contrasts of the electronic device under multiple second brightnesses, wherein the contrast is the contrast between the center position and the edge position of the fingerprint detection area; selecting a first contrast that meets the contrast condition from the multiple contrasts, and determining that the screen brightness corresponding to the first contrast is the first screen brightness.

[0026] It can be understood that in the present application, after adjusting the screen brightness to the first brightness, the screen brightness can be adjusted within a small range corresponding to the first brightness, the contrast corresponding to each brightness can be obtained, and the screen brightness corresponding to the contrast that meets the contrast condition can be selected as the first screen brightness.

[0027] In some embodiments, when the screen of an electronic device is covered with an anti-peep film, the brightness of the center area of ​​the fingerprint will decrease slightly, while the brightness of the edge area of ​​the fingerprint will decrease significantly during fingerprint recognition due to the reduction in viewing angle. By increasing the contrast between the center and edge of the fingerprint detection area, the fingerprint recognition efficiency can be improved.

[0028] In a possible implementation of the first aspect, a calculation method for each contrast among the multiple contrasts includes the following formula:

[0029] L=(M2-M1) / M0

[0030] Wherein, L represents contrast, M2 represents the average brightness of the center position of the fingerprint detection area, M1 represents the average brightness of the edge position of the fingerprint detection area, and M0 represents the average brightness of the fingerprint detection area.

[0031] It can be understood that in the present application, the contrast between the center position and the edge position of the fingerprint detection area corresponding to each brightness can be obtained through the above formula.

[0032] In some embodiments, the center position and edge position of the fingerprint detection area can be set arbitrarily. For example, an area the size of 5 frames of images is selected as the center position at the center point of the fingerprint detection area, and an area the size of 5 frames of images is selected as the edge position at the outermost circle of the fingerprint detection area.

[0033] In a possible implementation of the first aspect, the contrast condition includes at least one of the following: the first contrast is greater than or equal to a contrast threshold; the first contrast is the largest contrast among multiple contrasts; the first contrast is any one of the first N contrasts among multiple contrasts.

[0034] In the present application, a first contrast is selected from the contrasts corresponding to the brightness of each screen, wherein the first contrast may be greater than or equal to a preset contrast threshold; or, the first contrast is greater than the contrasts corresponding to other screen brightnesses; or, after arranging the contrasts corresponding to the brightness of each screen from large to small, the first contrast is any one of the first N contrasts.

[0035] In a possible implementation of the first aspect above, the method further includes: detecting information of a second film of the electronic device; the information corresponding to the second film is different from the information of the first film stored in the electronic device, and determining a second screen brightness corresponding to the information of the second film.

[0036] In the present application, the electronic device may store relevant information about the first film and relevant data about the brightness of the first screen that matches the first film. When performing fingerprint recognition, if it is detected that the current second film information of the electronic device is the same as the stored first film information, the first screen brightness may be used directly to capture the fingerprint image; if it is detected that the current second film information of the electronic device is different from the stored first film information, the fingerprint recognition method mentioned in the present application needs to be re-executed to determine the second screen brightness for capturing the fingerprint image.

[0037] In some embodiments, after determining the second screen brightness corresponding to the information of the second film, the stored relevant information of the first film and the relevant data of the first screen brightness matching the first film can be deleted, and the relevant information of the second film and the relevant data of the second screen brightness matching the second film can be saved.

[0038] In a possible implementation of the first aspect, the information of the film includes: one or more of the material of the film, the thickness of the film, the light transmittance of the film, and the light leakage rate of the film.

[0039] It can be understood that in the embodiment of the present application, there may be many factors that affect the signal-to-noise ratio, including but not limited to: the material of the film, the thickness of the film, the light transmittance of the film, and the light leakage rate of the film.

[0040] In some embodiments, different film materials have different transmittances and light leakage rates. For example, the transmittance of a hydrogel film is greater than that of a privacy film. For another example, if the material of the film is a privacy film, the center of the fingerprint detection area will be brighter than the edge, indicating that the transmittances and light leakage rates of different areas of the privacy film are different.

[0041] In some other embodiments, the information of the film may also include the thickness of the film. Since different films of the same material may have different thicknesses, different signal-to-noise ratios may correspond to the same screen brightness.

[0042] In a second aspect, the present application provides an electronic device, comprising: a memory and a processor. The memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the fingerprint recognition method mentioned in the present application.

[0043] In a third aspect, the present application provides a readable storage medium, wherein the readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the fingerprint recognition method mentioned in the present application.

[0044] In a fourth aspect, the present application provides a computer program product, including: a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium contains a program for executing the fingerprint recognition method mentioned in the present application.

[0045] The beneficial effects of the second to fourth aspects mentioned above can be referred to the relevant descriptions in the first aspect mentioned above and various possible implementations of the first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 According to some embodiments of the present application, a schematic diagram of the structure of an optical fingerprint mobile phone performing fingerprint recognition is shown;

[0047] Figure 2 According to some embodiments of the present application, a schematic diagram of a scenario in which fingerprint unlocking fails is shown;

[0048] Figure 3A According to some embodiments of the present application, a schematic diagram of the relationship between brightness and signal-to-noise ratio corresponding to film information of different materials is shown;

[0049] Figure 3B According to some embodiments of the present application, a schematic diagram showing the relationship between brightness and signal-to-noise ratio corresponding to tempered films of different thicknesses is shown;

[0050] Figure 4A According to some embodiments of the present application, a schematic diagram of the hardware structure of an electronic device is shown;

[0051] Figure 4B According to some embodiments of the present application, a schematic diagram of the hardware structure of a fingerprint sensor is shown;

[0052] Figure 4C According to some embodiments of the present application, a schematic flow chart of a fingerprint recognition method is shown;

[0053] Figure 5 According to some embodiments of the present application, a schematic diagram of a scene in which a mask layer is used to cover the screen brightness of a non-fingerprint area is shown;

[0054] Figure 6 According to some embodiments of the present application, a schematic diagram of a fingerprint collection scenario after the screen of an electronic device is covered with an anti-peep film is shown;

[0055] Figure 7 According to some embodiments of the present application, a schematic diagram of a fingerprint recognition method corresponding to different film information is shown;

[0056] Figure 8 According to some embodiments of the present application, a schematic diagram of a system architecture in an electronic device is shown;

[0057] Fig. 9 According to some embodiments of the present application, a specific flow chart of a fingerprint recognition method is shown;

[0058] Fig.10 According to some embodiments of the present application, a schematic diagram of a process of fingerprint unlocking when the screen of an electronic device is covered with a heterochromatic light-transmitting film is shown. DETAILED DESCRIPTION

[0059] The illustrative embodiments of the present application include, but are not limited to, a fingerprint recognition method, an electronic device, and a readable storage medium.

[0060] In order to more clearly understand the solution of the present application, the relevant field terms involved in the present application are first explained.

[0061] (1) Light intensity: refers to the intensity of light received by the fingerprint sensor. The fingerprint sensor can obtain fingerprint information based on the reflected light received from the user's finger, thereby generating a fingerprint image. The amount of light directly affects the quality of the fingerprint image. Too high or too low light intensity will result in a decrease in the quality of the generated fingerprint image.

[0062] (2) Signal Amount: It is the strength of the fingerprint feature signal extracted by the fingerprint sensor from the received light. A higher signal amount can provide a more obvious and easier to analyze fingerprint image.

[0063] (3) Noise: It is the interference signal received by the fingerprint sensor. For example, after the electronic device is covered with a film, the light reflected by the finger may be refracted when passing through the film material, resulting in increased noise. Correspondingly, the fingerprint sensor receives more interference signals after the electronic device is covered with a film.

[0064] (4) Signal-to-noise ratio (SNR): It is the ratio of fingerprint signal to noise, which can be used to measure the performance of fingerprint recognition technology. When the SNR is higher, it means that the fingerprint sensor can better distinguish fingerprint signal from noise, and the accuracy and reliability of fingerprint recognition are higher.

[0065] (5) Contrast: refers to the difference in brightness or color between different areas in an image or object. It can measure the difference between the brightest and darkest parts of an image.

[0066] Still taking the above mobile phone 10 as an example, Figure 2 A schematic diagram of a fingerprint recognition scenario is shown.

[0067] like Figure 2 As shown in (a), the screen 102 of the mobile phone 10 is covered with a tempered film 104. Figure 2As shown in (b), the user can press the finger on the fingerprint area 101 to unlock the fingerprint. At this time, if the user presses the screen in the area 101 for a short time, for example, the user's finger just touches the area 101 and then leaves, or the position where the user presses the screen deviates from the area 101, etc., the mobile phone 10 may display Figure 2 The failure prompt interface shown in (c) is shown in the figure. Figure 2 (c), the failure prompt interface may include a prompt box 105, and the content of the prompt box 105 may include, for example, "Fingerprint matching failed, please try again".

[0068] For the above Figure 2 In the scenario shown, the reason why the mobile phone 10 cannot recognize the user's fingerprint may be that the tempered film 104 blocks the light generated by the screen 102 by absorption, reflection or refraction. In this scenario, when the user performs fingerprint recognition on the screen 102 of the mobile phone 10, the efficiency and accuracy of the mobile phone 10 in recognizing the user's fingerprint may be low, so the recognition time required is longer.

[0069] In order to solve the above problems, the present application provides a fingerprint recognition method. In the method of the present application, when a mobile phone or other electronic device receives a relevant instruction from a user to perform fingerprint recognition, it can first detect whether the screen of the electronic device is covered with a film. Furthermore, when it is determined that the screen of the electronic device is covered with a film, the material of the film can be identified, and the screen can be controlled to use a light brightness that matches the material of the film to illuminate the user's finger to collect fingerprint information, so as to improve the signal-to-noise ratio of the light reflected by the finger received by the fingerprint sensor. In this way, for films of different materials, the electronic device can control the screen to use the corresponding light brightness to collect clearer user fingerprint information, which is conducive to improving the efficiency and accuracy of fingerprint recognition.

[0070] Among them, different film materials correspond to different screen brightness. When the electronic device determines through the touch screen detection function that the film information is different from the stored film information (such as the film information stored when the fingerprint is recorded, the film information stored when the film is detected for the first time, etc.), it can be matched by calculating the corresponding brightness and the signal-to-noise ratio of the light reflected by the user's finger received by the screen. When the signal-to-noise ratio corresponding to the light brightness used by the screen meets the signal-to-noise ratio condition, the light brightness can be considered to be the brightness parameter that matches the corresponding film material. At this time, the ratio of fingerprint signal to noise is also large, and the fingerprint sensor can better extract the fingerprint signal from the light reflected by the user's finger to generate a fingerprint image. The electronic device has a higher recognition efficiency and accuracy in response to the user's fingerprint recognition operation.

[0071] In some embodiments, the signal-to-noise ratio corresponding to the light brightness used by the above-mentioned screen satisfies the signal-to-noise ratio condition, which may include: the signal-to-noise ratio is greater than or equal to a preset signal-to-noise ratio threshold; or, the signal-to-noise ratio corresponding to the light brightness used by the screen is greater than the signal-to-noise ratio corresponding to other brightnesses; or, after arranging the signal-to-noise ratios corresponding to each brightness from large to small, the signal-to-noise ratio corresponding to the light brightness used by the screen is any one of the first N signal-to-noise ratios. It should be understood that the signal-to-noise ratio condition can be set arbitrarily, and this application does not limit this.

[0072] Combine the following Figure 3A and Figure 3B Taking the mobile phone 10 as an example, the process of illuminating the user's finger on the control screen mentioned above with light brightness corresponding to the film material is introduced.

[0073] like Figure 3A As shown, the mobile phone 10 can adjust the screen brightness multiple times and obtain the SNR corresponding to each brightness. Among them, when the screen of the mobile phone 10 is in the initial unfilmed state, the size of the SNR will not change with the screen brightness. However, when the screen of the mobile phone 10 is covered with a hydrogel film, a tempered film, a heterochromatic light-transmitting film or an anti-peep film, by adjusting the screen brightness to a higher or lower brightness range, different SNRs corresponding to each brightness can be obtained, and the brightness corresponding to the SNR that meets the signal-to-noise ratio condition corresponding to each film material is selected as the light brightness that needs to be matched. For the sake of ease of description, the SNR that meets the signal-to-noise ratio condition corresponding to the above-mentioned film materials can be described as the "first SNR" below.

[0074] Among them, the SNR that meets the signal-to-noise ratio condition may include: an SNR greater than or equal to a preset signal-to-noise ratio threshold; or, the maximum SNR among the SNRs corresponding to each brightness; or, any SNR ranked in the top N positions among the SNRs corresponding to each brightness.

[0075] The following example uses the signal-to-noise ratio condition to obtain the maximum SNR among the SNRs corresponding to each brightness. Figure 3A As shown, after the screen of the mobile phone 10 is covered with a hydrogel film, when the screen brightness value is lower than 800nit, the SNR will increase as the screen brightness increases; and when the screen brightness value is higher than 800nit, the SNR will decrease as the screen brightness value increases. Therefore, after the screen of the mobile phone 10 is covered with a hydrogel film, the screen brightness can be adjusted to 800nit to obtain the maximum SNR value, thereby improving the efficiency of fingerprint recognition. It should be understood that if the screen of the mobile phone 10 is covered with a tempered film, a different color transparent film or an anti-peep film, the first SNR can be obtained based on the same method, which will not be repeated here.

[0076] It should be understood that when the screen of the mobile phone 10 is covered with a film of the same material, since different films of the same material may have different thicknesses, the brightness corresponding to the first SNR may also be different. For example, the screen of the mobile phone 10 may be covered with a tempered film A or a tempered film B, wherein the tempered film B is thicker than the tempered film A. Figure 3B In the example, when the screen of the mobile phone 10 is covered with tempered film A, the brightness corresponding to the first SNR is 800 nit; when the screen of the mobile phone 10 is covered with tempered film B, the brightness corresponding to the first SNR is 1000 nit. Therefore, when it is detected that the thickness of the film material is different, the screen brightness needs to be readjusted to obtain the first SNR.

[0077] It should also be understood that different materials have different effects on the transmittance and light leakage of light, resulting in different SNRs for the same screen brightness. For example, since the hydrogel film is a transparent thin film material, it has little effect on the transmittance of light; however, when the screen of an electronic device is covered with a privacy film, in order to achieve a blurry or black screen when observing the electronic device from the side, the privacy film uses a grating structure or special optical materials. These grating structures reduce the transmittance by 30% to 40%, which will significantly reduce the SNR; for another example, since the heterochromatic transparent film only allows specific color bands to pass through the film layer, and electronic devices usually emit white light bands for fingerprint recognition, it will reduce the transmittance and increase the light leakage, affecting the efficiency of fingerprint recognition.

[0078] Therefore, for different film materials, the screen brightness corresponding to the first SNR may also be different, and the fingerprint recognition rate after adjusting the screen brightness based on the first SNR may also change differently. Figure 3A The corresponding relationship between SNR and brightness is shown in Table 1 below. The fingerprint recognition rate of the mobile phone 10 before and after adjusting the screen brightness under different film application conditions is shown in Table 1. The initial screen brightness of the mobile phone 10 is 600 nit.

[0079] Table 1:

[0080]

[0081] In Table 1, if the mobile phone 10 is not covered with a film, the fingerprint recognition rate before and after adjusting the screen brightness is 97%. This change shows that when the mobile phone 10 is not covered with a film, adjusting the screen brightness has no effect on the SNR and fingerprint recognition rate.

[0082] In Table 1, when the screen of the mobile phone 10 is covered with a hydrogel film or a tempered film, the SNR can be significantly increased by adjusting the screen brightness, thereby improving the fingerprint recognition rate. For example, in Table 1, if the screen of the mobile phone 10 is covered with a hydrogel film, after adjusting the screen brightness to the brightness corresponding to the first SNR (i.e., 800nit), the fingerprint recognition rate will increase from 95% to 96.5%; for another example, if the screen of the mobile phone 10 is covered with a tempered film, after adjusting the screen brightness to the brightness corresponding to the first SNR (i.e., 800nit), the fingerprint recognition rate will increase from 93% to 96.3%. This change shows that when the screen of the mobile phone 10 is covered with a hydrogel film or a tempered film, the fingerprint recognition rate can be effectively improved by adjusting the screen brightness to the brightness corresponding to the first SNR.

[0083] However, in Table 1, when the screen of the mobile phone 10 is covered with a different color transparent film (such as the anti-blue light film in Table 1) or a privacy film, the fingerprint recognition rate after adjusting the screen brightness is still low. Among them, the different color transparent film is a functional film that selectively reflects or absorbs only a specific color band. For example, the anti-blue light film can block the blue light emitted by the screen from passing through, thereby protecting the user's eyes from blue light stimulation.

[0084] It should be understood that when the screen of an electronic device is covered with a different color transparent film (for example, an anti-blue light film, a gray-coated mirror film, a diamond film, etc.) or an anti-peep film, after adjusting the screen brightness to the brightness corresponding to the first SNR, it is also necessary to adapt the screen brightness based on the type of film material through different screen brightness adjustment methods to significantly improve the efficiency and accuracy of fingerprint recognition.

[0085] For example, if the material of the detection film is a heterochromatic light-transmitting film, the surface of the finger can be illuminated by using three primary colors (i.e., red, green, and blue) respectively, and the corresponding SNR can be obtained to determine the corresponding primary color light that can maximize the first SNR, and use the primary color light as the screen brightness for the final fingerprint recognition to illuminate the finger surface, thereby significantly improving the fingerprint recognition rate. For ease of description, the SNR determined based on the three primary colors of reflected light detection can be described as the "second SNR" below, where, when the film material is a heterochromatic light-transmitting film, the second SNR is greater than the first SNR.

[0086] For another example, if the material of the detection film is an anti-peep film, the screen brightness can be adjusted by calculating the brightness difference between the center of the fingerprint and the edge of the fingerprint at different brightnesses (i.e., contrast). Since the greater the contrast between the center area of ​​the fingerprint and the edge area of ​​the fingerprint, the greater the SNR, the higher the fingerprint recognition efficiency. Therefore, the brightness corresponding to the maximum contrast can be used as the screen brightness for the final fingerprint recognition to illuminate the finger surface, thereby significantly improving the fingerprint recognition rate. For ease of description, the SNR determined based on the contrast calculation can be described as the "third SNR" below, where, when the film material is an anti-peep film, the third SNR is greater than the first SNR.

[0087] It is understood that the fingerprint recognition method provided in the embodiment of the present application is applicable to electronic devices including but not limited to mobile phones, computers, tablet computers, augmented reality (AR) devices, laptop computers, and any other electronic devices with optical fingerprint technology. This application does not limit this.

[0088] Combine the following Figure 4A As shown, still taking the electronic device as a mobile phone 10 as an example, the hardware structure diagram of the electronic device of the present application is exemplified.

[0089] like Figure 4A As shown, the mobile phone 10 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 200, a display screen 210, and the like.

[0090] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute the only possible implementation of the mobile phone 10. In other embodiments of the present application, the mobile phone 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0091] The processor 110 may include one or more processing units, for example, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor, a microprocessor (MCU), an artificial intelligence (AI) processor, or a programmable logic device (FPGA) and other processing modules or processing circuits. Among them, different processing units can be independent devices or integrated in one or more processors. A storage unit can also be set in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory, which can save instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the storage unit, avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.

[0092] The audio module 150 is used to convert a digital audio signal into an analog audio signal output, or to convert an analog audio input into a digital audio signal. The audio module 150 can also be used to encode and decode an audio signal. In some embodiments, the audio module 150 can be arranged in the processor 110, or some functional modules of the audio module 150 can be arranged in the processor 110. In some embodiments, the audio module 150 can include a speaker, an earpiece, a microphone, and an earphone interface.

[0093] The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, etc. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 10. The external memory card communicates with the processor 110 through the external memory interface to implement a data storage function. The universal serial bus interface is used for the mobile phone 10 to communicate with other electronic devices.

[0094] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0095] It can be understood that in the embodiment of the present application, the processor can be used to execute the method steps performed by the fingerprint recognition method of the present application.

[0096] The power module 140 may include a power source, a power management component, etc. The power source may be a battery. The power management component is used to manage the charging of the power source and the power supply of the power source to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module is used to receive charging input from the charger; the power management module is used to connect the power source, and the charging management module is connected to the processor 110. The power management module receives input from the power source and / or the charging management module, and supplies power to the processor 110, the display screen 210, the camera 170, and the wireless communication module 120, etc.

[0097] The display screen 210 has a light-emitting component, which can be controlled to emit light of different brightness to illuminate the surface of the user's finger.

[0098] exist Figure 4A In the embodiment, the sensor module 190 may include a fingerprint sensor 103. In addition, the sensor module 190 may also include a proximity light sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an electromagnetic wave absorption rate sensor, a sound sensor, etc.

[0099] The fingerprint sensor 103 can receive light reflected by the user's finger. Figure 1 As shown, after the screen 102 emits bright light to illuminate the surface of the user's finger, the fingerprint sensor 103 can receive the light reflected from the user's finger, extract the fingerprint feature signal in the light and generate a fingerprint image.

[0100] refer to Figure 4B The structure of the fingerprint sensor 103 shown in the figure, in the embodiment of the present application, the fingerprint sensor 103 may specifically include a signal receiving unit 1031, a processing unit 1032, and a storage unit 1033. Among them, the signal receiving unit 1031 can be used to receive the light reflected by the user's finger and transmit it to the processing unit 1032, and the fingerprint feature signal and the noise signal are extracted by the processing unit 1032, and the corresponding signal-to-noise ratio is calculated. It can be understood that the processing unit 1032 can determine whether the signal-to-noise ratio threshold (such as the above-mentioned first SNR) corresponding to the corresponding film material is reached according to the calculated signal-to-noise ratio, and then send a control instruction to the processor 110 or the control unit of the display screen 210 to control the brightness of the display screen 210 to be adjusted to the brightness corresponding to the maximum signal-to-noise ratio. In addition, the storage unit 1033 can store the entered fingerprint information for fingerprint authentication.

[0101] In the embodiment of the present application, the display screen 210 can be used to detect the user's fingerprint recognition operation, and can also detect the film information of the mobile phone 10 and transmit it to the fingerprint sensor 103. If the fingerprint sensor 103 determines that the film material type is a heterochromatic light-transmitting film, the display screen 210 can be controlled to illuminate the surface of the user's finger through different primary colors of light respectively, and the fingerprint sensor 103 receives the primary color light reflected by the user's finger, calculates the signal-to-noise ratio, and controls the brightness of the display screen 210 to be adjusted to the primary color light corresponding to the maximum signal-to-noise ratio; if the film material type is determined to be an anti-peep film, the fingerprint sensor 103 can calculate the contrast between the fingerprint center area and the fingerprint edge area after receiving the light reflected by the user's finger, and control the brightness of the display screen 210 to be adjusted to the brightness corresponding to the maximum contrast.

[0102] Based on the electronic device mentioned above, combined with the process of illuminating the user's finger with light brightness that matches the film material on the control screen mentioned above, the specific implementation process of the fingerprint recognition method provided by the present application is described in detail based on the specific structure and flow chart.

[0103] Figure 4C According to an embodiment of the present application, a flowchart of an implementation method of a fingerprint recognition method is shown.

[0104] It can be understood that in the embodiments of the present application, Figure 4C The execution subject of each step of the process shown can be an electronic device, for example, the mobile phone 10, and the execution subject of each step will not be repeatedly described in the following description of each step. The specific process of fingerprint recognition is as follows:

[0105] S401: receiving a fingerprint recognition instruction.

[0106] Exemplarily, in an embodiment of the present application, when a user presses the touch screen of an electronic device, the touch screen can detect the position and intensity of the pressing. If it is determined that the pressed area is a fingerprint area of ​​the screen, the pressing intensity reaches a preset intensity threshold, etc., it indicates that a fingerprint recognition instruction is detected, which will trigger the electronic device to execute the following steps S402 to S409.

[0107] In some embodiments, the user can press a finger on the fingerprint area of ​​the electronic device to light up the screen, and after the electronic device receives the fingerprint recognition instruction, the following steps S402 to S409 can be triggered.

[0108] S402: Control the screen light-emitting component to emit light, and generate a mask for covering the non-fingerprint area.

[0109] Exemplarily, in an embodiment of the present application, after receiving the user's fingerprint recognition command, the screen light-emitting component will emit light. Since the screen of some electronic devices cannot independently control the light emission of the fingerprint area when performing fingerprint recognition, it is necessary to first cover a layer of mask above the screen display content, and the mask does not cover the fingerprint area. In this way, when the light-emitting component of the electronic device screen emits light, the fingerprint area can receive light with higher brightness, while other areas will not display brightness. Among them, a mask is a graphic used to block, hide or limit a specific area. For example, covering a non-fingerprint area with a mask can block the screen brightness of the non-fingerprint area.

[0110] In some embodiments, taking fingerprint unlocking of mobile phone 10 as an example, Figure 5 As shown in (a), the initial state of the mobile phone 10 can be a black screen state, in which the light-emitting component of the screen 102 does not emit light. When the user presses the finger on the fingerprint area 101, the screen 102 of the mobile phone 10 lights up. Figure 5 As shown in (b), the screens of both the fingerprint area 101 and the non-fingerprint area 1021 will display brightness. At this time, the mobile phone 10 can add a mask on the non-fingerprint area 1021 to cover the screen brightness of the non-fingerprint area 1021, as shown in FIG. Figure 5 As shown in (c), only the brightness of the fingerprint area 101 is displayed on the screen 102. Next, the mobile phone 10 can execute steps S403 to S409.

[0111] It is understood that after the mobile phone 10 completes the fingerprint recognition process, the mask can be removed. Figure 5 As shown in (d), the screen of the non-fingerprint area 1021 can restore the brightness.

[0112] S403: Obtaining screen film information.

[0113] For example, in an embodiment of the present application, after the brightness of the screen in the non-fingerprint area is masked by a mask, and only the brightness of the screen in the fingerprint area is displayed on the screen of the electronic device, step S403 can be executed to obtain the screen film information for fingerprint recognition.

[0114] Among them, the electronic device can obtain the film information through the touch panel check (TP CHECK) function. Among them, TP CHECK is a detection program built into the electronic device, which can be used to detect the film information. When the fingerprint recognition command is received, TP CHECK will be triggered to execute. In the film material manufacturing process, the film material manufacturer usually embeds the relevant specific information directly into the film material. When the electronic device executes TP CHECK, it can distinguish the type of film material by directly obtaining the specific identification hidden in the film material.

[0115] In some embodiments, during the fingerprint recognition process of the electronic device, the material of the film can also be determined by analyzing the difference between the intensity of the emitted light and the intensity of the received light. For example, if the difference between the intensity of the emitted light and the intensity of the received light is small, the material of the film can be a hydrogel film or a tempered film; if the received light distribution is uneven, for example, the light intensity in the center area is high and the light intensity in the edge area is low, it can be determined that the material of the film is a privacy film. It should be understood that the present application does not limit the method of obtaining the film information.

[0116] In some embodiments, the film information may include: film material type, film material transmittance, and film material light leakage rate. The types of film materials may include: hydrogel film made of silicone material or high-toughness plastic material, tempered film made of multi-layer glass material, heterochromatic light-transmitting film made of optical coating or optical material, and privacy film made of grating structure. Since different film materials have different transmittance and light leakage rates (for example, the transmittance of hydrogel film is greater than that of privacy film), Figure 3A As shown, different film materials will have different first SNRs, and the brightness corresponding to the first SNR values ​​will also be different.

[0117] In addition, the film information may also include the film material thickness. Since different films of the same material may have different thicknesses, the brightness corresponding to the first SNR may also be different. Figure 3B When the screen of the mobile phone 10 is covered with tempered film A or tempered film B, different SNR thresholds can be preset accordingly, such as the first SNR mentioned above. Among them, the brightness corresponding to the first SNR of tempered films of different thicknesses can also be different. For details, please refer to the above Figure 3B The relevant description will not be repeated here.

[0118] In some embodiments, the above step S403 may be executed first to obtain the film information of the screen, and then the above step S402 may be executed to generate a mask for covering the non-fingerprint area. The present application does not specifically limit the execution order of the above step S402 and step S403.

[0119] S404: Obtain a first SNR corresponding to the current film information, and adjust the screen brightness to a first brightness corresponding to the first SNR value.

[0120] For example, in the embodiment of the present application, each film information has a corresponding SNR, and when the screen brightness is adjusted to the brightness corresponding to the first SNR corresponding to the current film information, the efficiency of fingerprint recognition can be improved. The first SNR is the SNR that meets the signal-to-noise ratio condition obtained during multiple adjustments of the screen brightness.

[0121] In some embodiments, when fingerprint recognition is performed for the first time, the current film information, the corresponding first SNR and the first brightness can be saved; when subsequent fingerprint recognition is performed, TP CHECK can obtain the film information. If it is determined that the film information is the same as the stored film information, the first SNR corresponding to the current film information can be directly obtained, and the screen brightness can be adjusted to the first brightness corresponding to the first SNR value.

[0122] In some embodiments, the first SNR and the first brightness can be determined by adjusting the screen brightness multiple times, as described above. Figure 3A and Figure 3B As shown, the screen brightness needs to be adjusted to different brightness ranges, and the SNR corresponding to each brightness is obtained, the maximum SNR is selected as the first SNR, and the brightness corresponding to the first SNR is selected as the first brightness. Figure 3B As shown, when the screen of the electronic device is covered with tempered film A, the first SNR is 8 and the first brightness is 800nit. If the second fingerprint recognition is performed and the film information is detected to be the same as the film information of tempered film A, the screen brightness can be directly adjusted to 800nit to improve the fingerprint recognition efficiency.

[0123] S405: It is detected that the film material is a heterochromatic light-transmitting film, and based on the detection of the reflected light of the three primary colors, the screen brightness is adjusted from the first brightness to the second brightness.

[0124] For example, in an embodiment of the present application, when the screen of an electronic device is covered with a heterochromatic light-transmitting film, only a specific color band is allowed to pass through the film layer, and the electronic device usually emits a white light band for fingerprint recognition, which will reduce the transmittance and affect the fingerprint recognition efficiency. Therefore, when it is detected that the type of film material is a heterochromatic light-transmitting film, after adjusting the screen brightness to the first brightness, it is also necessary to use the three primary colors (i.e., red, green, and blue) at the first brightness to illuminate the finger surface respectively and obtain the corresponding SNR, determine the primary color light corresponding to the second SNR (SNR that meets the signal-to-noise ratio condition), and use the primary color light at the first brightness (i.e., the second brightness) as the final screen brightness for fingerprint recognition to illuminate the finger surface, so as to significantly improve the fingerprint recognition rate. Among them, the second SNR corresponding to the second brightness is greater than the first SNR corresponding to the first brightness.

[0125] The following takes the case where the screen of the mobile phone 10 is covered with a heterochromatic light-transmitting film as an example, and briefly introduces the scenario of performing three-primary color reflected light detection after the screen of the electronic device is covered with a heterochromatic light-transmitting film. After detecting that the screen of the mobile phone 10 is covered with a heterochromatic light-transmitting film, the mobile phone 10 can first emit red light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR1. Next, the mobile phone 10 can emit green light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR2. Then, the mobile phone 10 can emit blue light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR3. If it is determined that SNR2 is the maximum signal-to-noise ratio, the mobile phone 10 will emit green light corresponding to the maximum signal-to-noise ratio to illuminate the surface of the finger, and the fingerprint sensor will analyze the received green light reflected from the finger, obtain the user's fingerprint information and generate a fingerprint image. If it is determined that the generated fingerprint image matches the pre-stored fingerprint image, the identity authentication can be completed to realize the fingerprint recognition function.

[0126] S406: It is detected that the film material is an anti-peep film, and based on contrast calculation, the screen brightness is adjusted from the first brightness to the third brightness.

[0127] For example, in the embodiment of the present application, when the screen of the electronic device is covered with an anti-peep film, the brightness of the central area of ​​the fingerprint will decrease slightly, while the brightness of the edge area of ​​the fingerprint will decrease significantly during fingerprint recognition due to the reduction in the viewing angle. Therefore, after adjusting the screen brightness to the first brightness, it is also necessary to adjust the screen brightness to the third brightness by calculating the contrast between the central area of ​​the fingerprint and the edge area of ​​the fingerprint to increase the SNR, thereby significantly improving the efficiency and accuracy of fingerprint recognition. Among them, the third SNR corresponding to the third brightness is greater than the first SNR corresponding to the first brightness.

[0128] In some embodiments, after the screen brightness is adjusted to the first brightness, the screen brightness can be adjusted within a small range corresponding to the first brightness, the contrast corresponding to each brightness is obtained, and the screen brightness corresponding to the contrast that meets the contrast condition is selected as the third brightness. It should be understood that the adjustment range of the screen brightness can be set arbitrarily, and this application does not limit this.

[0129] Among them, the contrast that meets the contrast condition may include: a contrast greater than or equal to a preset contrast threshold; or the maximum contrast among the contrasts corresponding to each brightness; or any contrast ranked in the top N positions among the contrasts corresponding to each brightness.

[0130] The following takes the screen cover of mobile phone 10 as an example. Figure 6 , briefly introduces the process of contrast calculation after the screen of an electronic device is covered with an anti-peep film. Figure 6The area S0 in (a) is the fingerprint collection area after the screen of the mobile phone 10 is covered with an anti-peep film. After the screen of the mobile phone 10 is covered with an anti-peep film, the screen brightness of the fingerprint center area is greater than that of the fingerprint edge area. For the convenience of description, the brightness of the fingerprint area screen can be described as "spot brightness" below. Therefore, the dark spot area of ​​the fingerprint edge area and the bright spot area of ​​the fingerprint center area can be divided in area S0, as shown in FIG. Figure 6 As shown in (b), region S1 is a dark spot region, and region S2 is a bright spot region. By improving the contrast between region S2 and region S1, the efficiency and accuracy of fingerprint recognition after the screen of the mobile phone 10 is covered with an anti-peep film can be significantly improved. Formula (I) shows the calculation method of the contrast between region S2 and region S1:

[0131] L=(M2-M1) / M0 Formula (I)

[0132] Wherein, L represents the contrast between region S2 and region S1; M2 is the brightness of region S2, which may be the average brightness of all pixels in region S2; M1 is the brightness of region S1, which may be the average brightness of all pixels in region S1; M0 is the brightness of region S0, which may be the average brightness of all pixels in region S0.

[0133] Among them, area S1 and area S2 can be selected based on the size of the preset area. For example, an area of ​​5 frames of images is selected in the center of the fingerprint as the bright spot area S2, and an area of ​​5 frames of images is selected at the edge of the fingerprint as the dark spot area S1. It should be understood that area S1 and area S2 can also be selected arbitrarily, and this application does not limit this.

[0134] It should be understood that after the screen of the electronic device is covered with an anti-peep film, the screen brightness is adjusted in different brightness ranges to obtain different contrast L. Among them, the contrast and SNR are linearly related, and the SNR (i.e., the third SNR) that meets the signal-to-noise ratio condition can be obtained by determining the contrast that meets the contrast condition. Therefore, the third brightness corresponding to the contrast that meets the contrast condition is used as the brightness for fingerprint recognition to illuminate the finger surface, which can significantly improve the efficiency and accuracy of fingerprint recognition.

[0135] S407: Based on the film material, determine whether to use the first brightness, the second brightness, or the third brightness to illuminate the finger surface.

[0136] For example, in an embodiment of the present application, if the film material is a hydrogel film or a tempered film, the screen brightness can be adjusted to a first brightness to illuminate the finger surface to obtain a fingerprint image; if the film material is a heterochromatic light-transmitting film, the screen brightness can be adjusted to a second brightness to illuminate the finger surface to obtain a fingerprint image; if the film material is an anti-peep film, the screen brightness can be adjusted to a third brightness to illuminate the finger surface to obtain a fingerprint image.

[0137] It should be understood that if it is detected that the electronic device is not filmed when recording the fingerprint, and the film information is detected during fingerprint recognition, the electronic device needs to execute the above process during fingerprint recognition to determine the optimal brightness that is suitable for the current film information. For example, if the film material is a hydrogel film or a tempered film, after executing step S404, the first brightness is used to illuminate the finger surface; if the film material is a heterochromatic light-transmitting film, after executing steps S404 and S405, the second brightness is used to illuminate the finger surface; if the film material is a privacy film, after executing steps S404 and S406, the third brightness is used to illuminate the finger surface.

[0138] In addition, the electronic device can store the current film information and the data related to the screen brightness adapted to the current film information. When fingerprint recognition is performed next time, if the film information of the electronic device is detected to be the same as the stored film information, the stored data related to the screen brightness can be directly used for fingerprint recognition. If the film information of the electronic device is detected to be different from the stored film information when fingerprint recognition is performed next time, the stored film information and the data related to the screen brightness adapted to the film information can be deleted, and the new film information and the data related to the screen brightness adapted to the new film information can be re-stored.

[0139] It should also be understood that if it is detected that the electronic device has a film when recording the fingerprint, the electronic device can execute the above process to determine the optimal brightness that is suitable for the current film information. For example, if the film material is a hydrogel film or a tempered film, after executing step S404, the first brightness is used to illuminate the surface of the finger; if the film material is a heterochromatic light-transmitting film, after executing steps S404 and S405, the second brightness is used to illuminate the surface of the finger; if the film material is a privacy film, after executing steps S404 and S406, the third brightness is used to illuminate the surface of the finger. In order to store the most realistic fingerprint image, the electronic device can store the current film information and store the relevant data of the screen brightness that is suitable for the current film information. When performing fingerprint recognition, if it is detected that the film information of the electronic device is the same as the film information when the fingerprint is recorded, the relevant data of the screen brightness stored when the fingerprint is recorded can be directly used for fingerprint recognition.

[0140] S408: Receive the light reflected by the user's finger and generate a fingerprint image.

[0141] For example, in the embodiment of the present application, after the light of the screen illuminates the surface of the finger, the finger can reflect the light to the fingerprint sensor under the screen, and the fingerprint sensor can obtain the user's fingerprint information and generate a fingerprint image by analyzing the received finger reflected light. Figure 1 As shown, the fingerprint sensor 103 can generate a fingerprint image by extracting fingerprint feature signals from light reflected from the finger.

[0142] S409: Compare the generated fingerprint image with the pre-stored fingerprint image, complete the fingerprint recognition function and delete the mask.

[0143] For example, in the embodiment of the present application, after the fingerprint sensor generates a fingerprint image by extracting the fingerprint signal in the light reflected by the finger, it is also necessary to compare the generated fingerprint image with the pre-stored fingerprint image. If it is determined that the generated fingerprint image matches the pre-stored fingerprint image, the identity authentication can be completed to realize fingerprint recognition; if it is determined that the generated fingerprint image is different from the pre-stored fingerprint image, the fingerprint recognition fails.

[0144] In addition, after the fingerprint image comparison is completed, the mask in the above step S402 needs to be deleted to display the screen brightness of the non-fingerprint area, such as Figure 5 As shown in (c) and (d).

[0145] In this way, based on the above method, when using the fingerprint unlocking technology of an optical fingerprint electronic device, different screen brightness can be adapted based on different film information, so that the fingerprint sensor receives a stronger fingerprint signal, thereby improving the efficiency and accuracy of fingerprint recognition.

[0146] It should be understood that based on the fingerprint recognition method mentioned in this application, it is necessary to detect the film information of the electronic device, and then adjust the brightness of different light spots based on different film information. Figure 7 As shown, when the electronic device detects that the user presses the screen (701), the electronic device can obtain relevant information through the touch screen detection function (702). If it is detected that the electronic device has no film (703), the initial light spot brightness is used to illuminate the surface of the user's finger (704), and then a fingerprint image is generated based on the reflected light from the user's finger (705).

[0147] exist Figure 7In the example, when it is detected that the electronic device has a film (706), the electronic device needs to be brightened (707) before generating a fingerprint image based on the light reflected from the user's finger (708). If it is determined that the film material is an ordinary soft film (709), the fingerprint image can be directly generated after the light spot is brightened; if it is determined that the film material is a heterochromatic transparent film (7010), it is necessary to perform three-primary color reflected light detection (7011) and light spot brightening (7012) before generating a fingerprint image based on the light reflected from the user's finger (7013). If it is determined that the film material is an anti-peep film (7014), it is necessary to perform contrast calculation (7015) and light spot brightening (7016) before generating a fingerprint image based on the light reflected from the user's finger (7017).

[0148] The fingerprint recognition method described above in the present application can be performed by an electronic device, wherein the electronic device can be any electronic device with optical fingerprint technology, such as a mobile phone, a computer, a tablet computer, an augmented reality (AR) device, a laptop computer, etc. The present application does not limit this.

[0149] The following still takes the electronic device as a mobile phone 10 as an example. Figure 8 , briefly describe the system architecture of the electronic device.

[0150] like Figure 8 , which shows a software structure diagram of the mobile phone 10. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces.

[0151] In some embodiments, The system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime ( runtime), the system library, the hardware abstraction layer (HAL) layer, and the kernel layer.

[0152] like Figure 8 As shown, the application layer may include a series of application packages, for example, may include camera, gallery, short message, calendar and other applications.

[0153] The application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. In some embodiments, the application layer may include a mask control module for implementing the above-mentioned drawing of a mask layer to cover the screen brightness of the non-fingerprint area.

[0154] The application framework layer includes some predefined functions that can be used to implement the above-mentioned adaptive adjustment of the light spot brightness. Figure 8 As shown, the application framework layer may include a window manager, a content provider, a view system, a graphics drawing, a resource manager, a notification manager, etc. Among them, the mask layer may be drawn through a graphics drawing API.

[0155] The view system includes visual controls that can be used to build applications. The display interface can be composed of one or more views. Among them, the view system can control the mask to be displayed on the screen.

[0156] The window manager is used to manage window programs. The window manager can obtain the display screen size and help the view system display mask layers, etc.

[0157] It can be understood that the application layer and the application framework layer run in a virtual machine, and the virtual machine executes the Java files of the application layer and the application framework layer as binary files.

[0158] The system library can include multiple functional modules, such as surface manager, media database, 2D graphics engine, etc.

[0159] The HAL layer is an interface layer between the operating system software and the hardware components, which provides an interface for the interaction between the upper software and the lower hardware. The HAL layer abstracts the underlying hardware into software containing the corresponding hardware interface. By accessing the HAL layer, the settings of the underlying hardware devices can be realized, for example, the related hardware components can be enabled or disabled at the HAL layer. In some embodiments, the core architecture of the HAL layer is composed of at least one of C++ or C.

[0160] In the present application, the HAL layer can send the instructions for generating a mask layer to cover the non-fingerprint area screen related to the present application to the application framework layer. For example, after the HAL layer receives the instruction to draw the mask layer, it can pass it to the application framework layer and the application layer to realize the drawing of the mask.

[0161] Continue to refer Figure 8 The kernel layer can include display drivers, camera drivers, sensor drivers, and fingerprint drivers. The fingerprint driver is responsible for communicating with the fingerprint sensor and providing corresponding interfaces for the application layer to call. After receiving the fingerprint recognition instruction, the fingerprint driver can send an instruction to draw the mask layer to the HAL layer, which is sent by the HAL layer to the application framework layer to draw the mask layer through the graphics drawing API. In addition, the fingerprint driver can also implement fingerprint unlocking, fingerprint payment and other functions in the application layer through interaction with the application layer.

[0162] Combine the following Fig. 9 The flowchart shown is a specific description of the fingerprint recognition method mentioned in the embodiment of the present application.

[0163] Compared with the flow chart shown in FIG4 above, Fig. 9 The flowchart shown provides a detailed introduction to the screen brightness adjustment methods corresponding to different film-sticking conditions.

[0164] It can be understood that in the embodiments of the present application, Fig. 9 The execution subject of each step of the illustrated process can be an electronic device, for example, the mobile phone 10 mentioned above. The execution subject of each step will not be repeatedly described below when describing each step.

[0165] Specifically, Fig. 9 The specific implementation process of fingerprint recognition includes the following steps:

[0166] S901: Receive a fingerprint recognition instruction.

[0167] Exemplarily, in an embodiment of the present application, when a user presses the touch screen of an electronic device, the touch screen can detect the position and intensity of the pressing. If it is determined that the pressed area is a fingerprint area of ​​the screen, the pressing intensity reaches a preset intensity threshold, etc., it indicates that a fingerprint recognition instruction is detected, and the electronic device will be triggered to execute the following steps S902 to S917.

[0168] In some embodiments, the user can press a finger on the fingerprint area of ​​the electronic device to light up the screen, and after the electronic device receives the fingerprint recognition instruction, the following steps S902 to S917 can be triggered.

[0169] S902: Control the screen light-emitting component to emit light, and generate a mask for covering the non-fingerprint area.

[0170] Exemplarily, in an embodiment of the present application, after receiving the user's fingerprint recognition command, the screen light-emitting component will emit light. Since the screen of some electronic devices cannot independently control the light emission of the fingerprint area when performing fingerprint recognition, it is necessary to first cover a layer of mask above the screen display content, and the mask does not cover the fingerprint area. In this way, when the light-emitting component of the electronic device screen emits light, the fingerprint area can receive light with higher brightness, while other areas will not display brightness. Among them, a mask is a graphic used to block, hide or limit a specific area. For example, covering a non-fingerprint area with a mask can block the screen brightness of the non-fingerprint area.

[0171] In some embodiments, referring to the above Figure 5 As shown, a brief introduction is given by taking fingerprint unlocking of mobile phone 10 as an example. Figure 5 As shown in (a), the initial state of the mobile phone 10 is a black screen state. When the user presses the finger on the fingerprint area 101, the above Figure 5As shown in (b), the screen 102 of the mobile phone 10 is bright, that is, the screens of the fingerprint area 101 and the non-fingerprint area 1021 will display brightness. At this time, the mobile phone 10 can add a mask on the non-fingerprint area 1021 to cover the screen brightness of the non-fingerprint area 1021. Figure 5 As shown in (c), the screen 102 only displays the brightness of the fingerprint area 101. Next, the mobile phone 10 can execute steps S903 to S917, and after completing the fingerprint recognition process, the mask can be removed. Figure 5 As shown in (d), the screen of the non-fingerprint area 1021 will display brightness again.

[0172] S903: Obtaining screen film information.

[0173] For example, in an embodiment of the present application, after the brightness of the screen in the non-fingerprint area is masked by a mask, and only the brightness of the screen in the fingerprint area is displayed on the screen of the electronic device, step S903 can be executed to obtain the screen film information for fingerprint recognition.

[0174] Among them, the electronic device can obtain the film information through the touch panel check (TP CHECK) function. Among them, TP CHECK is a detection program built into the electronic device, which can be used to detect the film information. When the fingerprint recognition command is received, TP CHECK will be triggered to execute. In the film material manufacturing process, the film material manufacturer usually embeds the relevant specific information directly into the film material. When the electronic device executes TP CHECK, it can distinguish the type of film material by directly obtaining the specific identification hidden in the film material.

[0175] In other embodiments, during the fingerprint recognition process of the electronic device, the material of the film can be determined by analyzing the difference between the intensity of the emitted light and the intensity of the received light. For example, if the difference between the intensity of the emitted light and the intensity of the received light is small, the material of the film can be a hydrogel film or a tempered film; if the received light distribution is uneven, for example, the light intensity in the center area is high and the light intensity in the edge area is low, it can be determined that the material of the film is a privacy film.

[0176] In some embodiments, the film information may include: film material type, film material transmittance, and film material light leakage rate. The types of film materials may include hydrogel film, tempered film, heterochromatic light-transmitting film, and privacy film. Since different film materials have different transmittances and light leakage rates (for example, the transmittance of hydrogel film is greater than that of privacy film), Figure 3A As shown, different film materials will have different first SNRs, and the brightness corresponding to the first SNR values ​​will also be different.

[0177] In addition, the film information may also include the film material thickness. Since different films of the same material may have different thicknesses, the brightness corresponding to the first SNR may also be different. Figure 3B As shown, when the screen of the mobile phone 10 is covered with tempered film A or tempered film B, it will correspond to different first SNRs and the brightness corresponding to the first SNR will also be different.

[0178] S904: It is detected that the electronic device has no film.

[0179] For example, in an embodiment of the present application, if the film information shows that the screen of the electronic device is in an initial unfilmed state, step S905 can be directly executed to illuminate the surface of the user's finger using the initial screen brightness of the electronic device to collect a fingerprint image.

[0180] S905: Illuminate the finger surface using the initial screen brightness.

[0181] For example, in the embodiments of the present application, Figure 3A As shown, when the electronic device is in the initial unfilmed state, adjusting the screen brightness has no effect on the SNR and fingerprint recognition rate. Therefore, the initial screen brightness of the electronic device can be directly used to illuminate the surface of the user's finger to collect the fingerprint image.

[0182] S906: Detecting the screen covering film material of the electronic device.

[0183] Exemplarily, in an embodiment of the present application, the film condition of the electronic device can be obtained through TP CHECK. When the screen covering film material of the electronic device is determined, it is also necessary to determine the type of film material based on the film information obtained in the above step S902, for example, hydrogel film, tempered film, heterochromatic light-transmitting film, anti-peep film, etc.

[0184] In some embodiments, TP CHECK is a detection program built into electronic devices that can be used to detect film information. When a fingerprint recognition command is received, TP CHECK is triggered to execute. During the film material manufacturing process, film material manufacturers usually embed relevant specific information directly into the film material. When the electronic device executes TP CHECK, it can distinguish the type of film material by directly obtaining the specific identification hidden in the film material.

[0185] S907: Obtain a first SNR corresponding to the current film information, and adjust the screen brightness to a first brightness corresponding to the first SNR value.

[0186] For example, in the embodiment of the present application, each film information has a corresponding SNR, and when the screen brightness is adjusted to the first brightness corresponding to the first SNR corresponding to the current film information, the efficiency of fingerprint recognition can be improved. The first SNR is the SNR that meets the signal-to-noise ratio condition obtained during multiple adjustments of the screen brightness.

[0187] In some embodiments, the first SNR and the first brightness can be determined by adjusting the screen brightness multiple times, as described above. Figure 3A and Figure 3B As shown, the screen brightness needs to be adjusted to different brightness ranges, and the SNR corresponding to each brightness is obtained, the maximum SNR is selected as the first SNR, and the brightness corresponding to the first SNR is selected as the first brightness. Figure 3B As shown, when the screen of the electronic device is covered with tempered film A, the first SNR is 8 and the first brightness is 800nit. If the second fingerprint recognition is performed and the film information is detected to match the film information of tempered film A, the screen brightness can be directly adjusted to 800nit to improve the fingerprint recognition efficiency.

[0188] S908: The film material type is detected to be a hydrogel film or a tempered film.

[0189] Exemplarily, in an embodiment of the present application, the type of film material can be determined to be a hydrogel film or a tempered film based on the film information obtained above, wherein the hydrogel film or the tempered film has little effect on the light transmittance and light leakage rate.

[0190] S909: Illuminate the finger surface using the first brightness.

[0191] For example, in the embodiment of the present application, referring to Table 1 above, if the film material is a hydrogel film or a privacy film, the SNR can be significantly increased by adjusting the screen brightness, thereby improving the fingerprint recognition rate. Therefore, the mobile phone 10 can directly use the first brightness to illuminate the surface of the user's finger and collect the fingerprint image.

[0192] S910: It is detected that the film material type is a heterochromatic light-transmitting film.

[0193] For example, in the embodiment of the present application, the type of film material can be determined as a heterochromatic light-transmitting film based on the film-sticking information obtained above, wherein the heterochromatic light-transmitting film only allows a specific color band to pass through the film layer.

[0194] S911: Use three primary color lights to illuminate the finger surface respectively, and obtain the SNR corresponding to each primary color light.

[0195] For example, in the embodiment of the present application, since the heterochromatic light-transmitting film only allows a specific color band to pass through the film layer, and the electronic device usually emits a white light band for fingerprint recognition, the transmittance will be reduced, affecting the fingerprint recognition efficiency. Therefore, when it is detected that the type of film material is a heterochromatic light-transmitting film, after adjusting the screen brightness to the first brightness, it is also necessary to use the three primary colors (i.e., red, green, and blue) to illuminate the finger surface respectively and obtain the corresponding SNR, determine the primary color light corresponding to the second SNR (SNR that meets the signal-to-noise ratio condition), and use the primary color light as the final screen brightness (second brightness) for fingerprint recognition to illuminate the finger surface, so as to significantly improve the fingerprint recognition rate. Among them, the second SNR corresponding to the second brightness is greater than the first SNR corresponding to the first brightness.

[0196] S912: Select the primary color light corresponding to the maximum SNR as the second brightness, and use the second brightness to illuminate the finger surface.

[0197] For example, in the embodiment of the present application, after obtaining the SNR corresponding to each primary color light, the maximum SNR can be used as the second SNR, and the second brightness corresponding to the second SNR is used to illuminate the user's finger surface to collect the fingerprint image.

[0198] In some embodiments, the primary color light corresponding to the SNR that meets the signal-to-noise ratio condition can also be used as the second brightness, and this application does not limit this. For example, the primary color light corresponding to the SNR greater than or equal to the preset SNR threshold can be used as the second brightness, and this application does not limit this.

[0199] In some embodiments, the electronic device may first emit red light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR1. Next, the electronic device may emit green light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR2. Then, the electronic device emits blue light to illuminate the surface of the finger, and the fingerprint sensor receives the light reflected from the finger and determines that the signal-to-noise ratio is SNR3. If SNR2 is determined to be the maximum signal-to-noise ratio, green light corresponding to the maximum signal-to-noise ratio will be emitted to illuminate the surface of the finger, and the fingerprint sensor will analyze the received green light reflected from the finger to obtain the user's fingerprint information and generate a fingerprint image.

[0200] S913: The film material type is detected to be an anti-peep film.

[0201] For example, in the embodiment of the present application, the type of film material can be determined to be an anti-peep film based on the film information obtained above. The anti-peep film will cause the brightness of the fingerprint center area to decrease slightly during fingerprint recognition, while the brightness of the fingerprint edge area will decrease significantly.

[0202] S914: Adjust screen brightness and obtain contrasts corresponding to each brightness.

[0203] For example, in the embodiment of the present application, if the type of film material is determined to be an anti-peep film, the screen brightness needs to be continuously adjusted, and then the contrast between the fingerprint center area and the fingerprint edge area corresponding to each brightness is calculated by the above formula (1).

[0204] S915: Select the brightness corresponding to the maximum contrast as the third brightness, and use the third brightness to illuminate the finger surface.

[0205] Exemplarily, in the embodiment of the present application, after obtaining the contrasts corresponding to the respective brightnesses, it is necessary to select the third brightness corresponding to the maximum contrast to illuminate the finger surface and capture an image.

[0206] In some embodiments, the contrast and SNR are linearly related, so by determining the maximum value of the contrast, the maximum value of the SNR (i.e., the third SNR) can be obtained. Therefore, using the third brightness corresponding to the maximum value of the contrast as the brightness for fingerprint recognition to illuminate the finger surface can significantly improve the efficiency and accuracy of fingerprint recognition.

[0207] In some embodiments, the brightness corresponding to the contrast that meets the contrast condition can also be used as the third brightness, and this application does not limit this. For example, arranging the contrast from large to small, the brightness corresponding to the first three contrasts can all be used as the third brightness, and this application does not limit this.

[0208] S916: Receive the light reflected by the finger and generate a fingerprint image.

[0209] For example, in the embodiment of the present application, after the light of the screen illuminates the surface of the finger, the finger can reflect the light to the fingerprint sensor under the screen, and the fingerprint sensor can obtain the user's fingerprint information and generate a fingerprint image by analyzing the received finger reflected light. Figure 1 As shown, the fingerprint sensor 103 can generate a fingerprint image by extracting fingerprint feature signals from light reflected from the finger.

[0210] S917: Compare the generated fingerprint image with the pre-stored fingerprint image, complete the fingerprint recognition function and delete the mask.

[0211] For example, in the embodiment of the present application, after the fingerprint sensor generates a fingerprint image by extracting the fingerprint signal in the light reflected by the finger, it is also necessary to compare the generated fingerprint image with the pre-stored fingerprint image. If it is determined that the generated fingerprint image matches the pre-stored fingerprint image, the identity authentication can be completed to realize fingerprint recognition; if it is determined that the generated fingerprint image is different from the pre-stored fingerprint image, the fingerprint recognition fails.

[0212] In addition, after completing the fingerprint image comparison, it is necessary to delete the mask in the above step S902 to display the screen brightness of the non-fingerprint area. Figure 5 (c) and (d) and the related description are not repeated here.

[0213] In this way, based on the above method, when using the fingerprint unlocking technology of an optical fingerprint electronic device, different screen brightness can be adapted based on different film information, so that the fingerprint sensor receives the fingerprint signal, thereby improving the efficiency and accuracy of fingerprint recognition.

[0214] The following example uses a different-color transparent film on an electronic device and uses fingerprint unlocking on the electronic device. Fig.10 The flowchart shown in the figure details the fingerprint recognition method when the electronic device is affixed with a different color transparent film. The fingerprint recognition method can be performed by an electronic device, such as the mobile phone 10, and the specific process of fingerprint recognition is as follows:

[0215] S1001: Detecting the user touching the fingerprint area screen.

[0216] Exemplarily, in an embodiment of the present application, when a user presses the touch screen of an electronic device, the touch screen can detect the position and intensity of the pressing. If it is determined that the pressed area is a fingerprint area of ​​the screen, the pressing intensity reaches a preset intensity threshold, etc., it indicates that a fingerprint recognition instruction is detected, which will trigger the electronic device to execute the following steps S1002 to S1007.

[0217] S1002: Obtain a fingerprint template.

[0218] Exemplarily, in an embodiment of the present application, after detecting a fingerprint unlocking instruction, the electronic device may first extract a pre-stored fingerprint template, that is, a pre-stored fingerprint image for unlocking.

[0219] S1003: Generate a fingerprint image.

[0220] Exemplarily, in an embodiment of the present application, after detecting a fingerprint unlocking command, the electronic device can emit bright light to illuminate the entire surface of the finger, and at the same time the finger can reflect the light onto the fingerprint sensor under the screen. The fingerprint sensor can obtain the user's fingerprint information and generate a fingerprint image by extracting the received finger reflected light.

[0221] After the electronic device is affixed with a different-color light-transmitting film, the specific process of generating the fingerprint image may include steps S1003a to S1003h.

[0222] S1003a: Determine whether it is an accidental touch operation. If yes, proceed to S1003b; if no, proceed to S1003c.

[0223] For example, in the embodiment of the present application, the user's touch information can be subjected to an anti-false touch detection and determination. If it is a false touch operation by the user, the process can be turned to S1003b to repeat the false touch detection and determination. If it is not a false touch operation by the user, the process can be turned to S1003c to perform three-primary color reflected light detection on the electronic device.

[0224] In some embodiments, it is possible to determine whether it is an accidental touch operation by the user based on the time the user presses the fingerprint area of ​​the mobile phone, the range of the pressing of the fingerprint area of ​​the mobile phone, etc. For example, when the user presses the fingerprint area screen for a short time and does not reach the preset time threshold, it can be determined as an accidental touch operation; for another example, when the user presses the fingerprint area screen for a small range (for example, the user's touch information is only detected within 50% of the fingerprint area of ​​the electronic device), it can be determined as an accidental touch operation.

[0225] S1003b: Repeat the false touch prevention detection and determination.

[0226] For example, in the embodiment of the present application, after determining that the operation of pressing the screen by the user is a false touch operation, if the user's touch information can still be detected, the false touch prevention detection and determination can be repeated.

[0227] S1003c: Perform three-primary-color reflected light detection.

[0228] For example, in an embodiment of the present application, when an electronic device is affixed with a different-color light-transmitting film, three-primary-color reflected light detection is required for fingerprint unlocking.

[0229] The three-primary-color reflected light detection of the electronic device includes reddish reflected light detection at S1003d, greenish reflected light detection at S1003e, and bluish reflected light detection at S1003f.

[0230] S1003d: Perform reddish reflected light detection and obtain a signal-to-noise ratio SNR1.

[0231] Exemplarily, in the embodiment of the present application, the reddish reflected light detection may be as follows: the electronic device emits red light to illuminate the surface of the finger, and the fingerprint sensor receives the red light reflected by the finger and determines SNR1.

[0232] S1003e: Perform green reflected light detection and obtain a signal-to-noise ratio SNR2.

[0233] Exemplarily, in the embodiment of the present application, the green reflected light detection may be as follows: the electronic device emits green light to illuminate the surface of the finger, and the fingerprint sensor receives the green light reflected by the finger and determines SNR2.

[0234] S1003f: Perform blue reflected light detection and obtain the signal-to-noise ratio SNR3.

[0235] Exemplarily, in the embodiment of the present application, the detection of bluish reflected light may be as follows: the electronic device emits blue light to illuminate the surface of the finger, and the fingerprint sensor receives the blue light reflected by the finger and determines SNR3.

[0236] S1003g: Determine the maximum signal-to-noise ratio, and adjust the screen brightness to the primary color light corresponding to the maximum signal-to-noise ratio to illuminate the finger surface.

[0237] Exemplarily, in an embodiment of the present application, after performing the above-mentioned three-primary-color reflected light detection, it is necessary to judge the size of the signal-to-noise ratios SNR1, SNR2, and SNR3, determine the primary color light corresponding to the maximum signal-to-noise ratio, and use the primary color light as the light for fingerprint recognition, that is, adjust the screen brightness to the second brightness mentioned in the above step S912.

[0238] S1003h: Receive the light reflected by the user's finger and generate a fingerprint image.

[0239] For example, in the embodiment of the present application, after the light of the screen illuminates the surface of the finger, the finger can reflect the light to the fingerprint sensor under the screen, and the fingerprint sensor can obtain the user's fingerprint information and generate a fingerprint image by analyzing the received finger reflected light. Figure 1 As shown, the fingerprint sensor 103 can generate a fingerprint image by extracting fingerprint feature signals from light reflected from the finger.

[0240] S1004: Compare the generated fingerprint image with the pre-stored fingerprint image.

[0241] Illustratively, in the embodiment of the present application, the electronic device may perform fingerprint comparison between the fingerprint template obtained in S1002 and the fingerprint image generated in S1003.

[0242] S1005: Determine whether the fingerprint comparison is successful. If yes, proceed to S1006; if no, proceed to S1007.

[0243] For example, in the embodiment of the present application, if the fingerprint comparison in S1004 is successful, the process may proceed to S1006 to implement fingerprint unlocking. If the fingerprint comparison fails, the process may proceed to S1007 to prompt the user that the unlocking has failed.

[0244] S1006: Implement fingerprint unlocking.

[0245] Exemplarily, in an embodiment of the present application, if it is determined that the generated fingerprint image matches a pre-stored fingerprint image, identity authentication can be completed to implement the fingerprint unlocking function.

[0246] S1007: Unlock failed.

[0247] Exemplarily, in an embodiment of the present application, if the generated fingerprint image is different from the pre-stored fingerprint image, the fingerprint unlocking fails, and the user may be prompted that the unlocking failed.

[0248] In some embodiments, the user may be prompted of the unlocking failure in any manner, such as a pop-up message box stating “Unlocking failed” or a voice reminder, etc. This application does not limit this.

[0249] In this way, based on the above method, the success rate of fingerprint unlocking can be improved when a different-color light-transmitting film is affixed to an electronic device.

[0250] An embodiment of the present application provides an electronic device, including: a memory and a processor, wherein the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the fingerprint recognition method mentioned in the present application.

[0251] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the fingerprint recognition method mentioned in the present application.

[0252] The embodiment of the present application further provides a computer program product, including: a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium contains a program for executing the fingerprint recognition method mentioned in the present application.

[0253] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0254] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.

[0255] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0256] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier wave, infrared signal digital signal, etc.) using the Internet in an electrical, optical, acoustic or other form of propagation signal. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0257] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0258] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0259] It should be noted that in the examples and descriptions of the application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the above elements.

[0260] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A fingerprint recognition method, applied to electronic equipment, It is characterized in that The method comprises: The user's fingerprint recognition operation is detected; A film is provided above the fingerprint detection area corresponding to the electronic device, and a fingerprint image is collected at a first screen brightness, wherein the first screen brightness is related to the film; and Corresponding to the material of the film being a heterochromatic light-transmitting film that allows a specific color band to pass through the film layer, the method for determining the brightness of the first screen includes: Adjusting the screen brightness of the electronic device to a first brightness corresponding to a first signal-to-noise ratio, where the first signal-to-noise ratio satisfies a signal-to-noise ratio condition; The first screen brightness is determined based on the signal-to-noise ratio of the fingerprint signal collected by the electronic device at the first brightness of different primary color lights.

2. The method according to claim 1, It is characterized in that Also includes: The first screen brightness associated with the film is determined based on the material of the film and the signal-to-noise ratio of the fingerprint signal collected by the electronic device at different display brightnesses.

3. The method according to claim 2, It is characterized in that The material of the film is determined by: Determine the material of the film based on the material information in the identification information of the film; or, The material of the film is determined based on the difference between the intensity of light emitted and the intensity of light received by the electronic device during the fingerprint recognition process.

4. The method according to claim 2, It is characterized in that The determining the first screen brightness related to the film based on the material of the film and the signal-to-noise ratio of the fingerprint signal collected by the electronic device at different display brightnesses includes: Acquire multiple signal-to-noise ratios of fingerprint signals corresponding to the electronic device at multiple screen brightnesses; Selecting the first signal-to-noise ratio that satisfies the signal-to-noise ratio condition from the multiple signal-to-noise ratios, wherein the screen brightness corresponding to the first signal-to-noise ratio is a first brightness; The first screen brightness is determined based on the first signal-to-noise ratio and the material of the film.

5. The method according to claim 4, It is characterized in that The signal-to-noise ratio condition includes at least one of the following: The first signal-to-noise ratio is greater than or equal to a signal-to-noise ratio threshold; The first signal-to-noise ratio is the largest signal-to-noise ratio among the multiple signal-to-noise ratios; The first signal-to-noise ratio is any one of first N signal-to-noise ratios among the multiple signal-to-noise ratios.

6. The method according to claim 4, It is characterized in that The determining the first screen brightness based on the first signal-to-noise ratio and the material of the film includes: Corresponding to the material of the film being a hydrogel film or a tempered film, the first brightness corresponding to the first signal-to-noise ratio is determined to be the first screen brightness.

7. The method according to claim 4, It is characterized in that The determining the first screen brightness based on the signal-to-noise ratio of the fingerprint signal collected by the electronic device at the first brightness of different primary color lights includes: When the screen brightness of the electronic device is a first brightness, obtaining multiple signal-to-noise ratios of fingerprint signals corresponding to the electronic device under multiple primary color lights; A second signal-to-noise ratio that meets the signal-to-noise ratio condition is selected from the multiple signal-to-noise ratios, and the primary color light corresponding to the first brightness and the second signal-to-noise ratio is determined to be the first screen brightness.

8. The method according to claim 4, It is characterized in that The determining the first screen brightness based on the first signal-to-noise ratio and the material of the film includes: Corresponding to the material of the film being an anti-peep film, a plurality of second brightnesses within a first brightness range corresponding to the first brightness are obtained; Detecting a plurality of contrasts of the electronic device at a plurality of second brightnesses, wherein the contrasts are contrasts between a central position and an edge position of a fingerprint detection area; A first contrast that meets a contrast condition is selected from the multiple contrasts, and a screen brightness corresponding to the first contrast is determined as the first screen brightness.

9. The method according to claim 8, It is characterized in that The calculation method of each contrast ratio in the plurality of contrast ratios includes the following formula: ; Wherein, L represents contrast, M2 represents the average brightness of the center position of the fingerprint detection area, M1 represents the average brightness of the edge position of the fingerprint detection area, and M0 represents the average brightness of the fingerprint detection area.

10. The method according to claim 8, It is characterized in that The contrast condition includes at least one of the following: The first contrast is greater than or equal to a contrast threshold; The first contrast is the largest contrast among the multiple contrasts; The first contrast is any one of first N contrasts among the plurality of contrasts.

11. The method according to claim 1, It is characterized in that The method further comprises: Detecting information about a second film of the electronic device; The information corresponding to the second film is different from the information of the first film stored in the electronic device, and the second screen brightness corresponding to the information of the second film is determined.

12. The method according to claim 11, It is characterized in that The information of the film includes: one or more of the material of the film, the thickness of the film, the light transmittance of the film, and the light leakage rate of the film.

13. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the fingerprint recognition method described in any one of claims 1-12.

14. A readable storage medium, It is characterized in that The readable storage medium stores instructions, and when the instructions are executed on the electronic device, the electronic device executes the fingerprint recognition method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Fingerprint collection method and related product

    CN107256383A

  • Method and device for adjusting operation mode of equipment and electronic equipment

    CN113157082A