CN111414810B - Fingerprint collection method, electronic device and storage medium - Google Patents
Fingerprint collection method, electronic device and storage medium Download PDFInfo
- Publication number
- CN111414810B CN111414810B CN202010135484.6A CN202010135484A CN111414810B CN 111414810 B CN111414810 B CN 111414810B CN 202010135484 A CN202010135484 A CN 202010135484A CN 111414810 B CN111414810 B CN 111414810B
- Authority
- CN
- China
- Prior art keywords
- image
- electronic device
- fingerprint
- infrared light
- ambient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/12—Fingerprints or palmprints
- G06V40/13—Sensors therefor
- G06V40/1324—Sensors therefor by using geometrical optics, e.g. using prisms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Optics & Photonics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Image Input (AREA)
Abstract
Description
技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种指纹采集方法、电子装置和存储介质。The present application relates to the field of electronic technology, and in particular to a fingerprint collection method, electronic device and storage medium.
背景技术Background technique
电子装置上的液晶显示模组利用红外LED补光,以此来实现液晶显示模组的屏下指纹识别。但是当液晶显示模组在户外或者强光环境下使用时,太阳光中的红外光或者强光中的部分可见光会穿过液晶显示模组,在指纹图像传感器上成像,干扰正常的指纹成像,降低指纹解锁的效率。The liquid crystal display module on the electronic device uses infrared LED to fill the light, so as to realize the under-screen fingerprint recognition of the liquid crystal display module. However, when the LCD module is used outdoors or in a strong light environment, the infrared light in the sun or part of the visible light in the strong light will pass through the LCD module and be imaged on the fingerprint image sensor, interfering with normal fingerprint imaging. Reduce the efficiency of fingerprint unlocking.
发明内容Contents of the invention
本申请公开了一种指纹采集方法、电子装置和存储介质。This application discloses a fingerprint collection method, electronic device and storage medium.
本申请的指纹采集方法用于电子装置,所述电子装置包括液晶显示模组、均设置在所述液晶显示模组下方的指纹传感器及补光灯,所述指纹采集方法包括:在所述电子装置处于干扰环境的情况下,关闭所述补光灯并通过所述指纹传感器采集第一图像;开启所述补光灯并通过所述指纹传感器采集第二图像;根据所述第一图像和所述第二图像形成指纹识别图像。The fingerprint collection method of the present application is used in an electronic device. The electronic device includes a liquid crystal display module, a fingerprint sensor and a fill light all arranged under the liquid crystal display module. The fingerprint collection method includes: in the electronic device When the device is in an interfering environment, turn off the fill light and collect the first image through the fingerprint sensor; turn on the fill light and collect the second image through the fingerprint sensor; according to the first image and the The second image forms a fingerprint recognition image.
上述指纹采集方法中,利用在不同条件下获取的第一图像和第二图像形成指纹识别图像,可以减少指纹识别图像的噪声,进而提高指纹的解锁率。In the above fingerprint collection method, the first image and the second image obtained under different conditions are used to form a fingerprint recognition image, which can reduce the noise of the fingerprint recognition image and thereby improve the unlocking rate of the fingerprint.
本申请还提供一种电子装置,其包括液晶显示模组及均设置在所述液晶显示模组下方的指纹传感器、补光灯和处理器,处理器用于在所述电子装置处于干扰环境的情况下,关闭所述补光灯并通过所述指纹传感器采集第一图像;及用于开启所述补光灯并通过所述指纹传感器采集第二图像;以及用于根据所述第一图像和所述第二图像形成指纹识别图像。如此,上述电子装置利用在不同条件下获取的第一图像和第二图像形成指纹识别图像,可以减少指纹识别图像的噪声,进而提高指纹的解锁率。This application also provides an electronic device, which includes a liquid crystal display module, a fingerprint sensor, a fill light, and a processor that are all disposed under the liquid crystal display module. The processor is used when the electronic device is in an interfering environment. Next, turn off the fill light and collect the first image through the fingerprint sensor; and be used to turn on the fill light and collect the second image through the fingerprint sensor; and be used to collect the second image according to the first image and the fingerprint sensor. The second image forms a fingerprint recognition image. In this way, the above-mentioned electronic device uses the first image and the second image acquired under different conditions to form a fingerprint recognition image, which can reduce the noise of the fingerprint recognition image and thereby improve the unlocking rate of the fingerprint.
本申请还提供一种包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被处理器执行时,使得所述处理器执行以上实施方式所述的指纹采集方法。The present application also provides a non-volatile computer-readable storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor is caused to execute the fingerprint collection method described in the above embodiments. .
本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请实施方式的指纹采集方法的流程图;Figure 1 is a flow chart of a fingerprint collection method according to an embodiment of the present application;
图2是本申请实施方式的指纹采集方法的场景示意图;Figure 2 is a schematic scene diagram of the fingerprint collection method according to the embodiment of the present application;
图3是本申请实施方式的电子装置的部分剖面示意图;Figure 3 is a partial cross-sectional schematic diagram of an electronic device according to an embodiment of the present application;
图4是本申请实施方式的指纹采集方法的另一流程示意图;Figure 4 is another schematic flow chart of the fingerprint collection method according to the embodiment of the present application;
图5是本申请实施方式的指纹采集方法的另一流程示意图;Figure 5 is another schematic flow chart of the fingerprint collection method according to the embodiment of the present application;
图6是本申请实施方式的指纹采集方法的另一流程示意图;Figure 6 is another schematic flow chart of the fingerprint collection method according to the embodiment of the present application;
图7是本申请实施方式的指纹采集方法的又一流程示意图;Figure 7 is another schematic flow chart of the fingerprint collection method according to the embodiment of the present application;
图8是本申请实施方式的指纹采集方法的再一流程示意图;Figure 8 is another schematic flow chart of the fingerprint collection method according to the embodiment of the present application;
图9是本申请实施方式的电子装置的平面示意图;Figure 9 is a schematic plan view of an electronic device according to an embodiment of the present application;
图10是本申请实施方式的电子装置的内部模块示意图。FIG. 10 is a schematic diagram of the internal modules of the electronic device according to the embodiment of the present application.
主要元件符号说明:Description of main component symbols:
电子装置100、液晶显示模组10、指纹传感器20、第一图像201、第二图像202、指纹识别图像203、补光灯30、接近传感器40、光传感器50、处理器60、系统总线70、存储器80、内存储器90、输入装置110。Electronic device 100, liquid crystal display module 10, fingerprint sensor 20, first image 201, second image 202, fingerprint recognition image 203, fill light 30, proximity sensor 40, light sensor 50, processor 60, system bus 70, Memory 80, internal memory 90, input device 110.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application and cannot be understood as limiting the present application.
请参阅图1、图2和图3,本申请实施方式提供了一种指纹采集方法。指纹采集方法用于电子装置100,电子装置100包括液晶显示模组10、均设置在液晶显示模组10下方的指纹传感器20及补光灯30。本申请实施方式的指纹采集方法包括:Please refer to Figure 1, Figure 2 and Figure 3. An embodiment of the present application provides a fingerprint collection method. The fingerprint collection method is used in the electronic device 100 . The electronic device 100 includes a liquid crystal display module 10 , a fingerprint sensor 20 and a fill light 30 that are both arranged below the liquid crystal display module 10 . The fingerprint collection method in the embodiment of this application includes:
S10,在电子装置100处于干扰环境的情况下,关闭补光灯30并通过指纹传感器20采集第一图像201;S10, when the electronic device 100 is in an interference environment, turn off the fill light 30 and collect the first image 201 through the fingerprint sensor 20;
S20,开启补光灯30并通过指纹传感器20采集第二图像202;S20, turn on the fill light 30 and collect the second image 202 through the fingerprint sensor 20;
S30,根据第一图像201和第二图像202形成指纹识别图像203。S30, form a fingerprint recognition image 203 based on the first image 201 and the second image 202.
随着电子技术的发展,屏下指纹解锁已经成为主流,在一些屏下指纹解锁方式中,需要通过红外补光灯发射红外光,红外光穿透屏幕并由用户手指指纹表面反射,再次穿过屏幕并在屏幕下方的指纹传感器上成像,即可获得指纹识别图像,和预先录入的指纹图像对比相似度,达到标准值即可解锁电子装置。但是,红外补光灯发出的红外光与环境中的红外光容易干涉,环境中的红外光会导致指纹传感器的成像品质较差,降低了电子装置的解锁效率。With the development of electronic technology, under-screen fingerprint unlocking has become mainstream. In some under-screen fingerprint unlocking methods, infrared light needs to be emitted through an infrared fill light. The infrared light penetrates the screen and is reflected by the surface of the user's fingerprint, and then passes through again. The screen is imaged on the fingerprint sensor below the screen, and the fingerprint recognition image can be obtained. The similarity is compared with the pre-entered fingerprint image. If the similarity reaches the standard value, the electronic device can be unlocked. However, the infrared light emitted by the infrared fill light easily interferes with the infrared light in the environment. The infrared light in the environment will cause poor imaging quality of the fingerprint sensor and reduce the unlocking efficiency of the electronic device.
本申请实施方式的指纹采集方法中,电子装置利用在不同条件下获取的第一图像201和第二图像202形成指纹识别图像203,可以减少指纹识别图像203的噪声,进而提高指纹的解锁率。In the fingerprint collection method of the embodiment of the present application, the electronic device uses the first image 201 and the second image 202 acquired under different conditions to form the fingerprint recognition image 203, which can reduce the noise of the fingerprint recognition image 203 and thereby improve the fingerprint unlocking rate.
具体地,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种。例如,电子装置100可以为手机、便携式游戏设备、膝上型电脑、掌上电脑(personal digital assistant,PDA)、平板电脑(portable android device,PAD)、便携式互联网设备、可穿戴设备、车载终端、导航仪、音乐播放器以及数据存储设备等。Specifically, the electronic device 100 may be any of various types of computer system devices that are mobile or portable and perform wireless communications. For example, the electronic device 100 may be a mobile phone, a portable game device, a laptop, a personal digital assistant (PDA), a portable android device (PAD), a portable Internet device, a wearable device, a vehicle-mounted terminal, a navigation system instruments, music players and data storage devices, etc.
在步骤S1中,当用户将手指按压在液晶显示模组10上对应的指纹解锁部位上时,指纹传感器20可以透过液晶显示模组采集指纹图像。干扰环境可以包括红外光、紫外光以及强光环境,在本申请实施方式中,干扰环境为红外光和强光环境。红外光环境为具有一定强度且会影响指纹识别图像的形成的红外光环境,例如:太阳光环境下;强光环境为具有一定强度的且会影响指纹识别图像形成的可见光环境,例如:室内强光灯旁。In step S1, when the user presses his finger on the corresponding fingerprint unlocking part on the liquid crystal display module 10, the fingerprint sensor 20 can collect a fingerprint image through the liquid crystal display module. The interference environment may include infrared light, ultraviolet light and strong light environment. In the embodiment of the present application, the interference environment is infrared light and strong light environment. The infrared light environment is an infrared light environment that has a certain intensity and will affect the formation of the fingerprint recognition image, such as in a sunlight environment; the strong light environment is a visible light environment that has a certain intensity and will affect the formation of the fingerprint recognition image, such as: indoor strong light environment. Next to the light.
当判断电子装置100处于干扰环境中时,即电子装置100处于红外光或者强光环境下时,电子装置100关闭补光灯30,通过指纹传感器20采集无自身红外补光灯30下的第一图像,第一图像为根据环境中的红外光或者强光穿透手指或者漏光形成的背景图像。When it is determined that the electronic device 100 is in an interference environment, that is, when the electronic device 100 is in an infrared light or strong light environment, the electronic device 100 turns off the fill light 30 and collects the first image without its own infrared fill light 30 through the fingerprint sensor 20 . Image, the first image is a background image formed based on the infrared light or strong light in the environment penetrating the finger or leaking light.
当判断电子装置100不处于干扰环境中时,电子装置100开启补光灯30获取用户指纹图像。When it is determined that the electronic device 100 is not in an interference environment, the electronic device 100 turns on the fill light 30 to obtain the user's fingerprint image.
在步骤S2中,当采集完第一图像201后,电子装置100会开启补光灯30,采集第二图像202,第二图像202为补光灯30发出的红外光和环境中的红外光、强光同时存在的指纹图像。In step S2, after collecting the first image 201, the electronic device 100 turns on the fill light 30 and collects a second image 202. The second image 202 is the infrared light emitted by the fill light 30 and the infrared light in the environment. Fingerprint image in the presence of strong light at the same time.
在步骤S3中,获得第一图像201和第二图像202的间隔时间非常短,用户按压指纹的位置几乎没有变化,第一图像201和第二图像202之间的差别为第二图像202的成像多了补光灯30的红外光。因此可以利用第一图像201和第二图像202之间的差异获得指纹识别图像203,该指纹识别图像203即是没有环境干扰情况下的指纹图像。In step S3, the interval between obtaining the first image 201 and the second image 202 is very short, the position where the user presses the fingerprint has almost no change, and the difference between the first image 201 and the second image 202 is the imaging of the second image 202 There is an extra infrared light from the fill light 30. Therefore, the difference between the first image 201 and the second image 202 can be used to obtain the fingerprint recognition image 203, which is the fingerprint image without environmental interference.
更多地,由于通过第一图像201和第二图像202获得指纹识别图像203需要消耗相对多的时间,为提高用户的解锁效率,可以设定用户的第一次指纹解锁不进行干扰环境的检测,若用户第一次指纹解锁失败,再使用本申请实施方式的指纹采集方法进行指纹识别图像的采集。如此,可以从整体上提高指纹解锁速率。Furthermore, since it takes a relatively long time to obtain the fingerprint recognition image 203 through the first image 201 and the second image 202, in order to improve the user's unlocking efficiency, it is possible to set the user's first fingerprint unlocking not to detect the interference environment. , if the user fails to unlock the fingerprint for the first time, then use the fingerprint collection method of the embodiment of the present application to collect the fingerprint recognition image. In this way, the fingerprint unlocking speed can be improved as a whole.
请参阅图3和图4,在某些实施方式中,指纹采集方法包括:Please refer to Figure 3 and Figure 4. In some embodiments, the fingerprint collection method includes:
S01,获取电子装置100周围的环境红外光强度;S01, obtain the ambient infrared light intensity around the electronic device 100;
S02,在环境红外光强度大于红外光阈值时,确定电子装置100处于干扰环境。S02: When the ambient infrared light intensity is greater than the infrared light threshold, it is determined that the electronic device 100 is in an interference environment.
如此,能够判断电子装置100处于干扰环境。In this way, it can be determined that the electronic device 100 is in an interference environment.
具体地,环境中不管是室内还是室外,或多或少都会存在红外光,红外光对于指纹传感器20的成像也跟红外光的强度有关,较弱的红外光并不影响指纹识别功能。因此,可以设置红外光阈值,当干扰环境中的红外光的强度大于设定的红外光阈值时,执行本申请实施方式的指纹采集方法进行指纹识别图像的获取。Specifically, infrared light will exist to a greater or lesser extent in the environment, whether indoors or outdoors. The imaging of the fingerprint sensor 20 by infrared light is also related to the intensity of the infrared light. Weaker infrared light does not affect the fingerprint recognition function. Therefore, the infrared light threshold can be set. When the intensity of infrared light in the interference environment is greater than the set infrared light threshold, the fingerprint collection method of the embodiment of the present application is executed to obtain the fingerprint recognition image.
请参阅图5和图9,在某些实施方式中,步骤S01包括:Referring to Figure 5 and Figure 9, in some embodiments, step S01 includes:
S011,获取电子装置100的接近传感器40采集的红外光信号;S011, obtain the infrared light signal collected by the proximity sensor 40 of the electronic device 100;
S012,根据红外光信号确定环境红外光强度。S012, determine the ambient infrared light intensity based on the infrared light signal.
具体地,电子装置100可以是移动终端,移动终端本身带有接近传感器40,接近传感器40可以包括红外线发射器和红外光传感器。本申请实施方式的指纹采集方法可以利用红外光传感器获取红外光信号,并且能根据该红外光信号确定红外光强度,因此无需增设传感器以检测红外光,节省了电子装置100的内部空间。Specifically, the electronic device 100 may be a mobile terminal, and the mobile terminal itself has a proximity sensor 40. The proximity sensor 40 may include an infrared emitter and an infrared light sensor. The fingerprint collection method of the embodiment of the present application can use an infrared light sensor to obtain an infrared light signal, and can determine the infrared light intensity based on the infrared light signal. Therefore, there is no need to add a sensor to detect the infrared light, which saves the internal space of the electronic device 100 .
请参阅图6,在某些实施方式中,指纹采集方法包括:Please refer to Figure 6. In some embodiments, the fingerprint collection method includes:
S03,获取电子装置100周围的环境光强度;S03, obtain the ambient light intensity around the electronic device 100;
S04,在环境光强度大于环境光阈值时,确定电子装置100处于干扰环境。S04: When the ambient light intensity is greater than the ambient light threshold, it is determined that the electronic device 100 is in an interference environment.
具体地,当环境中的可见光强度过高时,部分可见光也会穿透液晶显示模组10,在指纹传感器20上成像,导致获取的指纹识别图像无法解锁电子装置100。因此在检测环境中红外光不超过设定的红外光阈值时,还需要对可光的强度进行检测,可以设定可见光不会对指纹识别图像造成影响的阈值,当可见光强度大于所设定的阈值时,使用本申请实施方式的指纹采集方法进行指纹识别图像的采集。Specifically, when the intensity of visible light in the environment is too high, part of the visible light will also penetrate the liquid crystal display module 10 and be imaged on the fingerprint sensor 20 , causing the acquired fingerprint recognition image to be unable to unlock the electronic device 100 . Therefore, when the infrared light in the detection environment does not exceed the set infrared light threshold, the intensity of the visible light still needs to be detected. The threshold value that visible light will not affect the fingerprint recognition image can be set. When the visible light intensity is greater than the set When the threshold is reached, the fingerprint recognition image is collected using the fingerprint collection method of the embodiment of the present application.
相反地,当检测环境中红外光不大于设定的红外光阈值时,且可见光强度不大于设定的强度阈值时,不采用本申请实施方式的指纹采集方法进行指纹识别图像的采集。On the contrary, when the infrared light in the detection environment is not greater than the set infrared light threshold, and when the visible light intensity is not greater than the set intensity threshold, the fingerprint collection method of the embodiment of the present application is not used to collect fingerprint recognition images.
请参阅图7和图9,在某些实施方式中,步骤S03包括:Referring to Figures 7 and 9, in some embodiments, step S03 includes:
S031,获取电子装置100的光传感器50采集的环境光信号;S031, obtain the ambient light signal collected by the light sensor 50 of the electronic device 100;
S032,根据环境光信号确定环境光强度。S032, determine the ambient light intensity based on the ambient light signal.
具体地,电子装置100可以是移动终端,移动终端中的光传感器50通常用于帮助调节液晶显示模组10的背光强度,使用户在使用移动终端时,液晶显示模组10的亮度能够自动适应环境中的光线强度。因此,本申请实施方式的指纹采集方法可以利用光传感器50获取的环境中的光线强度,当环境中的光线强度大于预设的环境光强度阈值时,确定电子装置100处于干扰环境中,使用本申请实施方式的指纹采集方式进行指纹识别图像的采集。Specifically, the electronic device 100 may be a mobile terminal. The light sensor 50 in the mobile terminal is usually used to help adjust the backlight intensity of the liquid crystal display module 10 so that the brightness of the liquid crystal display module 10 can automatically adapt when the user uses the mobile terminal. The intensity of light in the environment. Therefore, the fingerprint collection method of the embodiment of the present application can use the light intensity in the environment acquired by the light sensor 50. When the light intensity in the environment is greater than the preset ambient light intensity threshold, it is determined that the electronic device 100 is in an interfering environment. The fingerprint collection method of the application embodiment collects fingerprint recognition images.
请参阅图2和图8,在某些实施方式中,步骤S30包括:Referring to Figure 2 and Figure 8, in some embodiments, step S30 includes:
S31,确定第一图像201的第一灰度值和第二图像202的第二灰度值;S31, determine the first grayscale value of the first image 201 and the second grayscale value of the second image 202;
S32,根据第一灰度值和第二灰度值的差值形成指纹识别图像203。S32: Form the fingerprint recognition image 203 based on the difference between the first grayscale value and the second grayscale value.
如此,能够获得无环境红外光和强光干扰的指纹识别图像203。In this way, the fingerprint recognition image 203 without ambient infrared light and strong light interference can be obtained.
具体地,获得第一图像201和第二图像202的间隔时间非常短,用户按压指纹的位置几乎没有变化,第一图像201和第二图像202之间的差别为第二图像202的成像多了补光灯30的红外光。因此可以利用第一图像201和第二图像202之间灰度值的差异,将第一图像201和第二图像202通过灰度值相减获得指纹识别图像203,该指纹识别图像203即是没有环境干扰情况下的指纹图像。Specifically, the interval between obtaining the first image 201 and the second image 202 is very short, the position where the user presses the fingerprint has almost no change, and the difference between the first image 201 and the second image 202 is that the second image 202 is much more The infrared light of the fill light 30. Therefore, the difference in grayscale value between the first image 201 and the second image 202 can be used to subtract the first image 201 and the second image 202 through the grayscale value to obtain the fingerprint recognition image 203. The fingerprint recognition image 203 has no Fingerprint images under environmental interference.
请参阅图2、图9和图10,本申请还提供一种电子装置100,电子装置100包括液晶显示模组10及均设置在液晶显示模组10下方的指纹传感器20、补光灯30和处理器60,处理器60用于在电子装置100处于干扰环境的情况下,关闭补光灯30并通过指纹传感器20采集第一图像;及用于开启补光灯30并通过指纹传感器20采集第二图像;以及用于根据第一图像和第二图像形成指纹识别图像。如此,上述电子装置100能够获得不受干扰环境影响的指纹识别图像,提高指纹的解锁率。Referring to Figures 2, 9 and 10, this application also provides an electronic device 100. The electronic device 100 includes a liquid crystal display module 10, a fingerprint sensor 20, a fill light 30 and a The processor 60 is configured to turn off the fill light 30 and collect the first image through the fingerprint sensor 20 when the electronic device 100 is in an interference environment; and to turn on the fill light 30 and collect the first image through the fingerprint sensor 20 two images; and for forming a fingerprint recognition image based on the first image and the second image. In this way, the above-mentioned electronic device 100 can obtain a fingerprint recognition image that is not affected by interference environments, thereby improving the fingerprint unlocking rate.
具体地,当用户在对电子装置100进行指纹解锁时,将手指放置在对应的指纹解锁位置,处理器60会通过检测组件判断电子装置100是否处于干扰环境下。干扰环境可以包括红外光、紫外光以及强光环境,在本申请实施方式中,干扰环境为红外光和强光环境。Specifically, when the user performs fingerprint unlocking on the electronic device 100 and places the finger at the corresponding fingerprint unlocking position, the processor 60 determines whether the electronic device 100 is in an interference environment through the detection component. The interference environment may include infrared light, ultraviolet light and strong light environment. In the embodiment of the present application, the interference environment is infrared light and strong light environment.
处理器60当判断电子装置100处于干扰环境中时,即电子装置100处于红外光或者强光环境下时,处理器60控制补光灯30关闭,通过指纹传感器20采集无自身红外补光灯30下的第一图像201,第一图像202仅有环境中的红外光或者强光穿透手指或者漏光形成的背景图像。When the processor 60 determines that the electronic device 100 is in an interference environment, that is, when the electronic device 100 is in an infrared light or strong light environment, the processor 60 controls the fill light 30 to turn off, and collects the infrared fill light 30 without its own through the fingerprint sensor 20 The first image 201 and the first image 202 shown below only have a background image formed by infrared light or strong light in the environment penetrating the finger or leaking light.
当处理器60判断电子装置100不处于干扰环境中时,处理器60不会关闭补光灯30,从而使用普通的指纹图像获取方式获取用户指纹图像。When the processor 60 determines that the electronic device 100 is not in an interfering environment, the processor 60 will not turn off the fill light 30, and thus obtains the user's fingerprint image using a common fingerprint image acquisition method.
当采集完第一图像201后,处理器60会开启补光灯30,采集第二图像202,第二图像202为补光灯30发出的红外光和环境中的红外光、强光同时存在的指纹图像。After collecting the first image 201, the processor 60 will turn on the fill light 30 and collect the second image 202. The second image 202 is the coexistence of infrared light emitted by the fill light 30 and infrared light and strong light in the environment. Fingerprint image.
由于获得第一图像201和第二图像202的间隔时间非常短,用户按压指纹的位置几乎没有变化,第一图像201和第二图像202之间的差别为第二图像202的成像多了补光灯30的红外光。因此可以利用第一图像201和第二图像202之间灰度值的差异,将第一图像201和第二图像202通过灰度值相减获得指纹识别图像203,该指纹识别图像203即是没有环境干扰情况下的指纹图像。Since the interval between obtaining the first image 201 and the second image 202 is very short, the position where the user presses the fingerprint has almost no change, and the difference between the first image 201 and the second image 202 provides additional fill light for the imaging of the second image 202 Lamp 30 of infrared light. Therefore, the difference in grayscale value between the first image 201 and the second image 202 can be used to subtract the first image 201 and the second image 202 through the grayscale value to obtain the fingerprint recognition image 203. The fingerprint recognition image 203 has no Fingerprint images under environmental interference.
更多地,由于通过第一图像201和第二图像202获得指纹识别图像203需要通过运算,会消耗相对多的时间,可以设定用户的第一次指纹解锁不进行干扰环境的检测。若第一次指纹解锁失败,处理器60给检测组件发出命令进行干扰环境的检测,若检测出电子装置100处于干扰环境中,使用本申请实施方式所述的方法进行指纹解锁。如此,可以从整体上提高指纹解锁速率。Furthermore, since obtaining the fingerprint recognition image 203 through the first image 201 and the second image 202 requires calculation, which consumes a relatively large amount of time, it is possible to set the user's first fingerprint unlocking not to detect interference with the environment. If the fingerprint unlocking fails for the first time, the processor 60 sends a command to the detection component to detect the interference environment. If it is detected that the electronic device 100 is in the interference environment, the method described in the embodiment of the present application is used to perform fingerprint unlocking. In this way, the fingerprint unlocking speed can be improved as a whole.
在某些实施方式中,处理器60用于获取电子装置100周围的环境红外光强度;及用于在环境红外光强度大于红外光阈值时,确定电子装置100处于干扰环境。如此,能够判断电子装置100是否处于红外光干扰环境。In some embodiments, the processor 60 is configured to obtain the ambient infrared light intensity around the electronic device 100; and to determine that the electronic device 100 is in an interference environment when the ambient infrared light intensity is greater than an infrared light threshold. In this way, it can be determined whether the electronic device 100 is in an infrared light interference environment.
请参阅图8和图10,在某些实施方式中,处理器60用于获取电子装置100的接近传感器40采集的红外光信号;及用于根据红外光信号确定环境红外光强度。如此,能够获得电子装置100所处环境中的红外光强度。Referring to FIGS. 8 and 10 , in some embodiments, the processor 60 is used to obtain the infrared light signal collected by the proximity sensor 40 of the electronic device 100 ; and to determine the ambient infrared light intensity according to the infrared light signal. In this way, the infrared light intensity in the environment where the electronic device 100 is located can be obtained.
在某些实施方式中,处理器60用于获取电子装置100周围的环境光强度;及用于在环境光强度大于环境光阈值时,确定电子装置100处于干扰环境。如此,能够判断电子装置100是否处于强光干扰环境。In some embodiments, the processor 60 is configured to obtain the ambient light intensity around the electronic device 100; and to determine that the electronic device 100 is in an interference environment when the ambient light intensity is greater than the ambient light threshold. In this way, it can be determined whether the electronic device 100 is in a strong light interference environment.
请参阅图2、图8和图10,在某些实施方式中,处理器60用于获取电子装置100的光传感器50采集的环境光信号;及用于根据环境光信号确定环境光强度。如此,能够获得电子装置100所处环境中的可见光强度。Referring to FIG. 2, FIG. 8 and FIG. 10, in some embodiments, the processor 60 is used to obtain the ambient light signal collected by the light sensor 50 of the electronic device 100; and to determine the ambient light intensity according to the ambient light signal. In this way, the visible light intensity in the environment where the electronic device 100 is located can be obtained.
在某些实施方式中,处理器60用于确定第一图像201的第一灰度值和第二图像202的第二灰度值;及用于根据第一灰度值和第二灰度值的差值形成指纹识别图像203。如此,能够获得没有干扰环境影响的指纹识别图像,提高指纹的解锁率。In some embodiments, the processor 60 is configured to determine a first grayscale value of the first image 201 and a second grayscale value of the second image 202; and to determine a first grayscale value according to the first grayscale value and the second grayscale value. The difference forms the fingerprint recognition image 203. In this way, a fingerprint recognition image without interference from the environment can be obtained and the unlocking rate of the fingerprint can be improved.
由于获得第一图像201和第二图像202的间隔时间非常短,用户按压指纹的位置几乎没有变化,第一图像201和第二图像202之间的差别为第二图像202的成像多了补光灯30的红外光。因此可以利用处理器60获得第一图像201和第二图像202的灰度值,通过第一图像201和第二图像202之间灰度值的差异,将第一图像201和第二图像202通过灰度值相减获得指纹识别图像203,该指纹识别图像203即是没有环境干扰情况下的指纹图像。Since the interval between obtaining the first image 201 and the second image 202 is very short, the position where the user presses the fingerprint has almost no change, and the difference between the first image 201 and the second image 202 provides additional fill light for the imaging of the second image 202 Lamp 30 of infrared light. Therefore, the processor 60 can be used to obtain the grayscale values of the first image 201 and the second image 202, and the first image 201 and the second image 202 are passed through the difference in grayscale values between the first image 201 and the second image 202. The fingerprint recognition image 203 is obtained by subtracting the grayscale values. The fingerprint recognition image 203 is the fingerprint image without environmental interference.
请参阅图10,图10为一个实施例中的电子装置100的内部模块示意图。电子装置100包括通过系统总线70连接的处理器60、存储器80(例如为非易失性存储介质)、内存储器90、液晶显示模组10、指纹传感器20、补光灯30、接近传感器40和光传感器50。其中,电子装置100的存储器80存储有操作系统和计算机可读指令。该计算机可读指令可被处理器60执行,以实现上述任意一项实施方式的指纹采集方法。Please refer to FIG. 10 , which is a schematic diagram of the internal modules of the electronic device 100 in one embodiment. The electronic device 100 includes a processor 60 connected through a system bus 70 , a memory 80 (for example, a non-volatile storage medium), an internal memory 90 , a liquid crystal display module 10 , a fingerprint sensor 20 , a fill light 30 , a proximity sensor 40 and a light sensor. Sensor 50. Among them, the memory 80 of the electronic device 100 stores an operating system and computer-readable instructions. The computer-readable instructions can be executed by the processor 60 to implement the fingerprint collection method in any of the above embodiments.
处理器60可用于提供计算和控制能力,支撑整个电子装置100的运行。电子装置100的内存储器90为存储器80中的计算机可读指令运行提供环境。The processor 60 can be used to provide computing and control capabilities to support the operation of the entire electronic device 100 . Internal memory 90 of electronic device 100 provides an environment for execution of computer-readable instructions in memory 80 .
输入装置110也可以是电子装置100外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。The input device 110 may also be a button, trackball or touch pad provided on the housing of the electronic device 100, or may be an external keyboard, touch pad or mouse.
在一个例子中,当用户将指纹按压在液晶显示模组10对应指纹解锁的位置时,处理器60通过系统总线下达指令使接近传感器40进行红外光检测、使光传感器50进行光强度检测,检测的结果通过系统总线70传输到处理器60,处理器60作出相应的判断,通过系统总线70传输控制指令使补光灯开启或者关闭。随后从指纹传感器20获取的第一图像和第二图像得出指纹识别图像,以解锁电子装置100。In one example, when the user presses a fingerprint on the liquid crystal display module 10 at a position corresponding to the fingerprint unlocking, the processor 60 issues an instruction through the system bus to cause the proximity sensor 40 to detect infrared light and the light sensor 50 to detect light intensity. The result is transmitted to the processor 60 through the system bus 70, and the processor 60 makes a corresponding judgment, and transmits a control instruction through the system bus 70 to turn the fill light on or off. A fingerprint recognition image is then derived from the first image and the second image acquired by the fingerprint sensor 20 to unlock the electronic device 100 .
本申请还提供一种包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被处理器60执行时,使得处理器60执行以上任一项实施方式指纹采集方法。The present application also provides a non-volatile computer-readable storage medium containing computer-executable instructions. When the computer-executable instructions are executed by the processor 60, the processor 60 is caused to execute any of the above embodiments of the fingerprint collection method.
本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的示意图,并不构成对本申请方案所应用于其上的电子装置的限定,具体的电子装置可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in the figure is only a schematic diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. Specific electronic devices may include There may be more or fewer parts than shown, or certain parts may be combined, or may have a different arrangement of parts.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010135484.6A CN111414810B (en) | 2020-03-02 | 2020-03-02 | Fingerprint collection method, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010135484.6A CN111414810B (en) | 2020-03-02 | 2020-03-02 | Fingerprint collection method, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111414810A CN111414810A (en) | 2020-07-14 |
| CN111414810B true CN111414810B (en) | 2023-11-24 |
Family
ID=71491076
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010135484.6A Active CN111414810B (en) | 2020-03-02 | 2020-03-02 | Fingerprint collection method, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111414810B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112257571B (en) * | 2020-10-20 | 2025-02-07 | 北京集创北方科技股份有限公司 | Biometric image acquisition method and electronic device |
| CN114495181B (en) * | 2020-11-12 | 2025-11-11 | 华为技术有限公司 | Electronic equipment |
| EP4092567B1 (en) | 2021-04-09 | 2025-06-04 | Shenzhen Goodix Technology Co., Ltd. | Fingerprint recognition method |
| CN113065487B (en) * | 2021-04-09 | 2023-01-31 | 深圳市汇顶科技股份有限公司 | Fingerprint identification method and device and electronic equipment |
| CN116721442A (en) * | 2023-05-19 | 2023-09-08 | 天津极豪科技有限公司 | Fingerprint collection image processing methods, electronic devices and storage media |
| CN119136036A (en) * | 2023-06-12 | 2024-12-13 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic device and storage medium |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104243788A (en) * | 2013-06-06 | 2014-12-24 | 华为终端有限公司 | Method and device obtaining target image, and terminal |
| CN107087075A (en) * | 2017-04-28 | 2017-08-22 | 维沃移动通信有限公司 | A kind of reminding method and mobile terminal based on screen fingerprint recognition |
| CN107239772A (en) * | 2017-06-23 | 2017-10-10 | 深圳市利众信息科技有限公司 | Palm print and palm vein image collecting device and clearance gate |
| CN108256415A (en) * | 2017-11-30 | 2018-07-06 | 北京集创北方科技股份有限公司 | Fingerprint identification method, device and system, electronic equipment |
| WO2018166204A1 (en) * | 2017-03-15 | 2018-09-20 | 广东欧珀移动通信有限公司 | Method for controlling fingerprint recognition module, and mobile terminal and storage medium |
| US10165108B1 (en) * | 2016-10-11 | 2018-12-25 | Amazon Technologies, Inc. | Lock screen optimizations |
| CN109389071A (en) * | 2018-09-29 | 2019-02-26 | 京东方科技集团股份有限公司 | Fingerprint detection method and fingerprint image compensation method and device, electronic device |
| CN109613756A (en) * | 2019-01-29 | 2019-04-12 | 华勤通讯技术有限公司 | LCD display, electronic equipment and control system |
| CN110457977A (en) * | 2018-05-08 | 2019-11-15 | 上海箩箕技术有限公司 | Fingerprint imaging method and fingerprint imaging system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102185854B1 (en) * | 2017-09-09 | 2020-12-02 | 애플 인크. | Implementation of biometric authentication |
-
2020
- 2020-03-02 CN CN202010135484.6A patent/CN111414810B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104243788A (en) * | 2013-06-06 | 2014-12-24 | 华为终端有限公司 | Method and device obtaining target image, and terminal |
| US10165108B1 (en) * | 2016-10-11 | 2018-12-25 | Amazon Technologies, Inc. | Lock screen optimizations |
| WO2018166204A1 (en) * | 2017-03-15 | 2018-09-20 | 广东欧珀移动通信有限公司 | Method for controlling fingerprint recognition module, and mobile terminal and storage medium |
| CN107087075A (en) * | 2017-04-28 | 2017-08-22 | 维沃移动通信有限公司 | A kind of reminding method and mobile terminal based on screen fingerprint recognition |
| CN107239772A (en) * | 2017-06-23 | 2017-10-10 | 深圳市利众信息科技有限公司 | Palm print and palm vein image collecting device and clearance gate |
| CN108256415A (en) * | 2017-11-30 | 2018-07-06 | 北京集创北方科技股份有限公司 | Fingerprint identification method, device and system, electronic equipment |
| CN110457977A (en) * | 2018-05-08 | 2019-11-15 | 上海箩箕技术有限公司 | Fingerprint imaging method and fingerprint imaging system |
| CN109389071A (en) * | 2018-09-29 | 2019-02-26 | 京东方科技集团股份有限公司 | Fingerprint detection method and fingerprint image compensation method and device, electronic device |
| CN109613756A (en) * | 2019-01-29 | 2019-04-12 | 华勤通讯技术有限公司 | LCD display, electronic equipment and control system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111414810A (en) | 2020-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111414810B (en) | Fingerprint collection method, electronic device and storage medium | |
| US11721127B2 (en) | Electronic device and method for identifying falsification of biometric information | |
| US10948949B2 (en) | Electronic apparatus having a hole area within screen and control method thereof | |
| US10558835B2 (en) | Electronic device and method for acquiring fingerprint information | |
| CN108388390B (en) | Apparatus and method for controlling fingerprint sensor | |
| US20190340455A1 (en) | Method and apparatus for processing distortion of fingerprint image | |
| US9922235B2 (en) | Authenticating a user through fingerprint recognition | |
| US20180032815A1 (en) | Electronic device and method for iris authentication thereof | |
| EP3309667A1 (en) | Electronic device having plurality of fingerprint sensing modes and method for controlling the same | |
| US11397598B2 (en) | Electronic device for performing authentication by using multiple biometric sensors and operation method thereof | |
| US20220375253A1 (en) | Electronic device and method for controlling biosensor linked with display by using same | |
| CN108008778A (en) | Electronic device supporting fingerprint verification and its operating method | |
| KR102890456B1 (en) | Method and electronic device for identifying position of sensor using pixels of display | |
| US20180063420A1 (en) | Electronic device including iris recognition sensor and method of operating the same | |
| US10705645B2 (en) | Method for protecting personal information and electronic device thereof | |
| US11023571B2 (en) | Method for registering and authenticating biometric data and electronic device thereof | |
| WO2020216091A1 (en) | Image processing method and related apparatus | |
| US10547767B2 (en) | Electronic device and method for providing adsorption information of foreign substance adsorbed by camera | |
| CN110287861A (en) | Fingerprint identification method, device, storage medium and electronic device | |
| WO2018185992A1 (en) | Biometric authentication device and method | |
| US11327538B2 (en) | Electronic apparatus having a hole area within screen and control method thereof | |
| EP4362481A1 (en) | Method for displaying guide for position of camera, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |