WO2020168861A1 - 指纹模板获取方法及相关装置 - Google Patents

指纹模板获取方法及相关装置 Download PDF

Info

Publication number
WO2020168861A1
WO2020168861A1 PCT/CN2020/071849 CN2020071849W WO2020168861A1 WO 2020168861 A1 WO2020168861 A1 WO 2020168861A1 CN 2020071849 W CN2020071849 W CN 2020071849W WO 2020168861 A1 WO2020168861 A1 WO 2020168861A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
pixel
pictures
picture
gray
Prior art date
Application number
PCT/CN2020/071849
Other languages
English (en)
French (fr)
Inventor
郭子青
陈然
欧锦荣
李虎
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020168861A1 publication Critical patent/WO2020168861A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification

Definitions

  • This application relates to the technical field of electronic equipment, and in particular to a fingerprint template acquisition method and related devices.
  • the embodiments of the present application provide a fingerprint template acquisition method and related devices, in order to visually improve the fingerprint template entry speed and shorten the fingerprint template acquisition time.
  • an embodiment of the application provides a fingerprint template acquisition method, which is applied to an electronic device, the electronic device includes a display screen and an under-screen fingerprint module set relative to a preset area of the display screen, the method include:
  • Output fingerprint entry guide information and when a user's touch operation on the preset area is detected, perform an accumulation reference operation according to the multiple fingerprint pictures, and output fingerprint entry success information;
  • the preset operation includes the following operations: outputting the fingerprint entry guide information, and detecting the touch operation, and when the touch operation is detected, outputting the fingerprint entry success information, the first operation includes For any operation in the preset operation, N is a positive integer;
  • the target picture obtained according to the accumulation reference operation is stored as a fingerprint template.
  • an embodiment of the present application provides a fingerprint template acquisition device, which is applied to an electronic device, the electronic device includes a display screen and an under-screen fingerprint module set relative to a preset area of the display screen, the fingerprint
  • the template acquisition device includes a processing unit and a communication unit, wherein,
  • the processing unit is configured to continuously collect user fingerprint information multiple times through the communication unit to obtain multiple fingerprint pictures; and to output fingerprint entry guide information through the communication unit, and when it is detected that the user is directed to the preset During the touch operation of the area, the accumulation reference operation is performed according to the multiple fingerprint pictures, and the fingerprint entry success information is output through the communication unit; and used to repeat the preset operation until the preset operation is performed at the Nth time In the process of detecting the completion of the accumulation reference operation, the execution of the first operation in the preset operation is terminated, and the fingerprint entry completion prompt information is output through the communication unit, and the preset operation includes the following operations: The fingerprint entry guide information, and the detection of the touch operation, and when the touch operation is detected, output the fingerprint entry success information, the first operation includes any one of the preset operations, N is a positive integer; and used to store the target image obtained according to the accumulation reference operation as a fingerprint template.
  • embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
  • the above-mentioned program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the foregoing computer-readable storage medium stores a computer program for electronic data exchange, wherein the foregoing computer program enables a computer to execute In one aspect, some or all of the steps described in any method.
  • embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute For example, some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • FIG. 1 is a schematic diagram of fingerprint collection by an electronic device according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for acquiring a fingerprint template provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another fingerprint template obtaining method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another fingerprint template obtaining method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of yet another electronic device provided by an embodiment of the present application.
  • Fig. 6 is a block diagram of functional units of a fingerprint template acquiring device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may be electronic devices with data transmission capabilities.
  • the electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or devices connected to wireless modems.
  • Other processing equipment, and various forms of user equipment User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
  • Fingerprint recognition technology associates a person with his fingerprint. By comparing his fingerprint with a pre-saved fingerprint module, and identifying the minutiae feature points of different fingerprints, his true identity can be verified.
  • Feature points refer to the breakpoints, bifurcation points and turning points where the fingerprint lines are often interrupted, branched or turned.
  • Each person’s fingerprint pattern is unique in pattern, breakpoint, bifurcation and turning point. And its uniqueness is the same throughout life. It is this uniqueness and stability that we can create fingerprint recognition technology.
  • Fingerprint recognition technology has the advantages of fast recognition speed, convenient collection and low price, and is widely used in many disciplines such as image processing, pattern recognition, and computer vision. As shown in Figure 1, Figure 1 is a schematic diagram of an electronic device 101 collecting fingerprints.
  • the electronic device 101 includes a display screen 102 and an under-screen fingerprint module 104 set relative to a preset area 103 of the display screen 102.
  • the lower fingerprint module 104 is a fingerprint module under the optical screen, and 105 is an enlarged image of the fingerprint.
  • the display screen in the preset area refers to the reflected light (the reflected light includes the light reflected by the fingerprint) back to the under-screen fingerprint module 104, and finally forms a fingerprint image.
  • the fingerprint image includes the fingerprint image and screen noise in the preset area.
  • FIG. 2 is a schematic flowchart of a fingerprint template obtaining method according to an embodiment of the present application, which is applied to the electronic device as shown in FIG. 1, and the electronic device includes a display screen and As shown in the figure, the fingerprint template acquisition method includes:
  • S201 The electronic device continuously collects user fingerprint information for multiple times to obtain multiple fingerprint pictures.
  • the trigger condition for the electronic device to continuously collect user fingerprint information multiple times to obtain multiple fingerprint images may be detecting that the user needs to enter the fingerprint template.
  • each time the user fingerprint information is collected one fingerprint image is obtained, and each time the user's fingerprint information is collected, one fingerprint image is obtained.
  • the operation process may include: outputting fingerprint entry guidance information, detecting a user's touch operation on the preset area, and when the touch operation is detected, obtaining a fingerprint image through the fingerprint module under the screen.
  • the number of consecutive times is preset in the electronic device by the technician before the electronic device leaves the factory, for example, it may be 16, 17, 18, etc., which are not limited here.
  • the fingerprint picture includes a fingerprint image and various noises in a preset area of the display screen.
  • S202 The electronic device outputs fingerprint entry guide information, and when a user's touch operation on the preset area is detected, performs an accumulation reference operation according to the multiple fingerprint pictures, and outputs fingerprint entry success information.
  • the fingerprint entry guide information is used to prompt the user to enter the fingerprint, which includes the location of the fingerprint entry, etc.
  • the output of the fingerprint input guide information is the 18th time, but at the 18th time, the user's fingerprint picture is not obtained, but the user's touch on the preset area is detected During the control operation, a message indicating the success of this fingerprint entry will be output to inform the user, and the cumulative benchmark operation will be performed at the same time.
  • the accumulation criterion refers to the operation of determining the noise in the preset area of the display screen according to the accumulation of multiple fingerprint images, thereby removing the noise in the fingerprint image and obtaining a fingerprint template of higher quality.
  • the position and intensity are different, and the position of the noise (stains, obstacles, etc.) is the same. Therefore, the specific implementation of determining the noise in the preset area of the display screen based on the accumulation of multiple fingerprint images can be based on the pixels at the same location in multiple images
  • the gray value of is accumulated and divided by the number of pictures to determine the gray average value of each pixel. In the process of determining the gray average value, the fingerprint’s influence becomes extremely small due to the different strength and position of the fingerprint. Therefore,
  • the picture obtained by the average gray value formed by each pixel can be a noise picture.
  • S203 The electronic device repeats the preset operation until the completion of the accumulation reference operation is detected during the Nth execution of the preset operation, terminates the execution of the first operation in the preset operation, and outputs Prompt message for fingerprint entry completion;
  • the preset operation includes the following operations: outputting the fingerprint entry guide information, and detecting the touch operation, and when the touch operation is detected, outputting the fingerprint entry success information, the first
  • the operation includes any one of the preset operations.
  • N is a positive integer, and N can be 1, 2, 3, etc., which is not limited here.
  • detecting the completion of the accumulation reference operation is detecting the generation of the following target picture to determine the completion of the execution of the accumulation reference operation.
  • the electronic device repeatedly executes the preset operation until it is detected in the process of executing the preset operation for the Nth time that the execution of the accumulation reference operation is completed as a parallel operation of two processes, and the two parallel operations may be operation A : Repeat the preset operation; Operation B: Detect whether the accumulation reference operation is completed.
  • the terminating the execution of the first operation in the preset operation includes terminating the execution of the first operation and the operations after the first operation.
  • the first operation is to detect the touch operation, then the first operation is terminated.
  • An operation includes terminating the execution of the detection of the touch operation, and after terminating the execution, when the touch operation is detected, the operation of outputting the fingerprint entry success information.
  • the electronic device stores the target picture obtained according to the accumulation reference operation as a fingerprint template.
  • the fingerprint template is used to compare the entered fingerprint image in the fingerprint unlocking process to determine whether the fingerprint image matches the fingerprint template, and the unlocking operation can be performed only when it matches.
  • the electronic device continuously collects user fingerprint information multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guidance information, and when detecting a user's touch operation on a preset area, Perform the accumulation benchmark operation on the fingerprint images and output the fingerprint entry success message. Then, repeat the preset operation until the completion of the accumulation benchmark operation is detected during the Nth execution of the preset operation, and terminate the first preset operation Operate, and output the fingerprint entry completion prompt message.
  • the preset operations include the following operations: output fingerprint entry guidance information, detect touch operation, when touch operation is detected, output fingerprint entry success information, and finally store the information obtained according to the accumulated reference operation
  • the target image is used as a fingerprint template.
  • the electronic device obtains multiple fingerprint images, that is, after ensuring the accuracy of the accumulation reference calculation, in the process of outputting the fingerprint entry guidance information multiple times, it does not perform the fingerprint image acquisition operation but executes the accumulation reference
  • the operation is helpful to shorten the time of fingerprint template acquisition, and at the same time, it makes the user mistakenly believe that the fingerprint entry operation is still in progress, and avoids the vision that the user thinks the phone is in a stuck state after performing the cumulative benchmark operation after acquiring all the fingerprints entered by the user.
  • the effect is conducive to visually improving the speed of fingerprint template entry.
  • the performing the accumulation reference operation according to the multiple fingerprint pictures includes:
  • the first grayscale average value of the multiple target pixel points is used as the noise average value, and the noise of any one of the multiple fingerprint images is removed according to the noise average value to obtain the target image.
  • each fingerprint picture is obtained through the fingerprint module under the same screen, which means that the size and resolution of each fingerprint picture are the same, that is, the pixel array on each fingerprint picture is the same, therefore,
  • the specific implementation manner of determining the first gray value of each pixel in the first group of fingerprint pictures in the multiple fingerprint pictures is as follows: Add the gray values of pixels at the same position on each fingerprint image in the first group of fingerprint images, and then divide by the number of fingerprint images in the first group of fingerprint images to determine the first gray level of each pixel Average value.
  • the first group of fingerprint pictures includes 3 fingerprint pictures (picture 1, picture 2, picture 3), each fingerprint picture has 5 pixels (respectively pixel 1, pixel 2 , Pixel 3, Pixel 4, Pixel 5), the first gray value of pixel 1 is: (gray value of pixel 1 in picture 1 + gray value of pixel 1 in picture 2 + picture 3
  • the gray value of middle pixel point 1)/3 the first gray value average value of pixel point 1.
  • the calculation method of the first gray value average value of pixel point 2, pixel point 3, pixel point 4, and pixel point 5 is the same as that of pixel point 1.
  • the first gray-scale average value of is described, so I won’t repeat it here.
  • the specific implementation method of the second gray-scale average value is the same as the foregoing first gray-scale average value implementation method, and will not be repeated here.
  • the target pixel is selected as the target pixel, that is, the noise pixel.
  • the specific implementation method is to combine the gray values of the multiple target pixels in any one fingerprint image.
  • the picture obtained after subtracting the first gray-scale mean value is the target picture.
  • the selection of any one of the multiple fingerprint images can be various, for example, it can be based on the amount of change in the gray value of the multiple fingerprint images, and the fingerprint image with the largest amount of change is selected. Any one of the fingerprint pictures, or the fingerprint picture with the smallest number of pixels with the same gray value among multiple fingerprint pictures may be selected as the any one fingerprint picture, which is not limited here.
  • the electronic device groups multiple fingerprint pictures, and determines the mean value of noise by the gray-scale mean value of each pixel of the first group of fingerprint pictures and the second group of fingerprint pictures, and then obtains the target picture without noise. It helps to improve the quality of the fingerprint template in the target image.
  • the first group of fingerprint images in the plurality of fingerprint images is determined according to the gray value of each pixel in each fingerprint image.
  • Mean gray value including:
  • the first gray-scale average value of each pixel of the first group of fingerprint images is determined according to the reference gray-scale average value of each of the regions.
  • the specific implementation of parallel execution of the reference gray-scale mean value of each pixel in at least two fingerprint images in each region may be parallel execution of at least two fingerprint images in each region through multiple threads
  • the first gray level average value of each pixel is the first gray level average value obtained by adding the reference gray level average values of the corresponding pixels in each area, and then dividing by the area number of at least two areas.
  • the electronic device partitions multiple fingerprint images in the first set of fingerprint images, and then executes the reference gray-scale mean value of each region in parallel to determine the gray-scale mean value of the first set of fingerprint images, which improves the string The execution speed of the line execution, thereby improving the speed of obtaining fingerprint templates.
  • the performing the accumulation reference operation according to the multiple fingerprint pictures includes:
  • the third operation and the fourth operation are performed in parallel, and the third operation is to perform the accumulation reference operation for at least one set of fingerprint pictures in the at least two sets of fingerprint pictures to obtain the first reference picture, and the fourth operation Performing the operation of the accumulation reference for fingerprint pictures other than the at least one set of fingerprint pictures in the at least two sets of fingerprint pictures to obtain a second reference picture;
  • the specific implementation manners for determining the target picture according to the first reference picture and the second reference picture may be various, for example, it may be the target of selecting the fingerprint template of the two reference pictures with higher integrity.
  • the electronic device performs the third operation and the fourth operation in parallel, rather than serially processing multiple fingerprint images, which is beneficial to increase the speed of fingerprint template acquisition and avoid jams.
  • the two reference pictures obtained by the fingerprint picture determine the final target picture, which is beneficial to improve the quality and accuracy of fingerprint acquisition.
  • the determining the target picture according to the first reference picture and the second reference picture includes:
  • the target picture is generated according to the coordinates and gray value of each pixel of the first fingerprint image, and the coordinates and gray value of each pixel of the second fingerprint image.
  • each time the user enters a fingerprint the pressing force and the entered fingerprint range are different, therefore, according to the coordinates and gray values of each pixel of the first fingerprint image, and the second fingerprint image
  • the specific implementation of generating the target image by the coordinates and gray value of each pixel point can be to determine the number of pixels in the first fingerprint image and the number of pixels in the second fingerprint image.
  • For the pixels of the first fingerprint image obtain the pixels in the second reference picture with different gray values from those in the first reference picture, and convert the gray values of these pixels according to the coordinates of these pixels in the second reference picture.
  • the degree value is added to the first reference picture to generate the target picture, or alternatively, when there are more pixels on the left side of the first fingerprint image than on the right, select all the pixels on the left side of the first fingerprint image in the first reference picture.
  • the pixel points and all the pixels on the right side of the second fingerprint image in the second reference picture are combined as the target picture, which is not limited here.
  • the electronic device determines the final target picture according to the first reference picture and the second reference picture obtained by the accumulation reference operation, instead of acquiring the target picture according to the accumulation reference operation, which is beneficial to improve the accuracy of fingerprint template acquisition And completeness.
  • the terminating execution of the first operation in the preset operation includes:
  • the electronic device first detects whether the operation currently being performed is a touch operation, and when it is a touch operation, it terminates the operation of outputting the fingerprint entry success message without terminating the current touch operation. This prevents the user from seeing the unreasonable message that the fingerprint entry is completed without touching the fingerprint entry guide information after outputting the fingerprint entry information, which helps to improve the rationality of the interaction between the electronic device and the user.
  • the storing the target picture obtained according to the accumulation reference operation as a fingerprint template includes:
  • the target picture is stored as a fingerprint template.
  • the specific implementation manner of determining the ratio of the signal amount of the target picture to the spatial noise obtained according to the accumulation reference operation includes determining the signal amount and the spatial noise of the target picture, and then calculating the ratio of the signal amount to the spatial noise, wherein,
  • the specific calculation method of the signal amount of the target image is to determine the first average value of the gray values of all the convex points in the fingerprint image, and determine the second average value of the gray values of all the pixels of the concave points.
  • One average value is subtracted from the second average value to obtain the value of the signal amount; among them, the specific calculation method of the spatial noise of the target image is to determine the flatness of the concave point, and determine the spatial noise according to the flatness. The higher the flatness, the more the spatial noise Smaller, the lower the flatness, the greater the spatial noise.
  • the electronic device detects the quality of the target picture by the ratio of the signal amount of the target picture to the spatial noise.
  • the ratio of the signal amount to the spatial noise is greater than the preset threshold, it indicates that the noise of the target picture is small, and then stores
  • the target image is used as a fingerprint template, which helps to improve the reliability and accuracy of the fingerprint template.
  • FIG. 3 is a schematic flowchart of a fingerprint template acquisition method provided by an embodiment of the present application, which is applied to the electronic device described in FIG.
  • the electronic device includes a display screen and an under-screen fingerprint module set relative to the preset area of the display screen.
  • the fingerprint template acquisition method includes:
  • S301 The electronic device continuously collects user fingerprint information for multiple times to obtain multiple fingerprint pictures.
  • S302 The electronic device outputs fingerprint entry guide information, and when a user's touch operation on the preset area is detected, performs an accumulation reference operation according to the multiple fingerprint pictures, and outputs fingerprint entry success information.
  • S303 The electronic device repeatedly executes the preset operation until it is detected that the accumulation reference operation is completed during the Nth execution of the preset operation.
  • S304 The electronic device determines whether the operation currently being performed is a detection touch operation.
  • the electronic device determines the ratio of the signal amount of the target picture obtained according to the accumulation reference operation to the spatial noise.
  • the electronic device stores the target picture as a fingerprint template when detecting that the ratio of the signal amount to the spatial noise of the target picture is greater than a preset threshold.
  • the electronic device continuously collects user fingerprint information multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guidance information, and when detecting a user's touch operation on a preset area, Perform the accumulation benchmark operation on the fingerprint images and output the fingerprint entry success message. Then, repeat the preset operation until the completion of the accumulation benchmark operation is detected during the Nth execution of the preset operation, and terminate the first preset operation Operation, and output the fingerprint entry completion prompt message.
  • the preset operations include the following operations: output fingerprint entry guidance information, detect touch operation, when the touch operation is detected, output fingerprint entry success information, and finally store the information obtained according to the accumulated reference operation
  • the target image is used as a fingerprint template.
  • the electronic device acquires multiple fingerprint images, that is, after ensuring the accuracy of the accumulation reference calculation, in the process of outputting the fingerprint entry guidance information multiple times, it does not perform the fingerprint image acquisition operation but executes the accumulation reference
  • the operation is helpful to shorten the time of fingerprint template acquisition, and at the same time, it makes the user mistakenly believe that the fingerprint entry operation is still in progress, and avoids the user's vision that the mobile phone is in a stuck state after performing the cumulative benchmark operation after acquiring all the fingerprints entered by the user.
  • the effect is conducive to visually improving the speed of fingerprint template entry.
  • the electronic device first detects whether the operation currently being performed is a touch operation, and when it is a touch operation, it terminates the operation of outputting the fingerprint entry success information, and does not terminate the current touch operation to avoid outputting fingerprints. After entering the guidance information, the user sees an unreasonable message that the fingerprint entry has been completed without touching it, which helps to improve the rationality of the interaction between the electronic device and the user.
  • the electronic device detects the quality of the target picture by the ratio of the signal amount of the target picture to the spatial noise.
  • the ratio of the signal amount to the spatial noise is greater than the preset threshold, it indicates that the noise of the target picture is small, and then stores the target picture as a fingerprint
  • the template helps to improve the reliability and accuracy of the fingerprint template.
  • FIG. 4 is a schematic flowchart of a fingerprint template obtaining method provided by an embodiment of the present application, which is applied to the electronic device described in FIG.
  • the electronic device includes an under-screen fingerprint module set relative to the preset area of the display screen.
  • the fingerprint template acquisition method includes:
  • S401 The electronic device continuously collects user fingerprint information for multiple times to obtain multiple fingerprint pictures.
  • the electronic device outputs fingerprint entry guide information, and when a user's touch operation on the preset area is detected, outputs fingerprint entry success information, and obtains the gray value of each pixel in each fingerprint image .
  • the electronic device determines the first average gray value of each pixel of the first group of fingerprint images in the multiple fingerprint images according to the gray value of each pixel in each fingerprint image .
  • the electronic device determines a second average gray value of each pixel in the second group of fingerprint images in the multiple fingerprint images according to the gray value of each pixel in each fingerprint image .
  • the electronic device determines a plurality of target pixels with the same first gray-scale average value and the second gray-scale average value.
  • the electronic device uses the first grayscale average value of the multiple target pixels as a noise average value, and removes the noise of any one of the multiple fingerprint images according to the noise average value to obtain a target image .
  • the electronic device repeats the preset operation until the target picture is detected during the Nth execution of the preset operation, terminates the execution of the first operation in the preset operation, and outputs the fingerprint entry Complete the prompt message;
  • the preset operation includes the following operations: outputting the fingerprint entry guide information, and detecting the touch operation, and when the touch operation is detected, outputting the fingerprint entry success information, the first The operation includes any one of the preset operations, and N is a positive integer.
  • the electronic device stores the target picture as a fingerprint template.
  • the electronic device continuously collects user fingerprint information multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guidance information, and when detecting a user's touch operation on a preset area, Perform the accumulation benchmark operation on the fingerprint images and output the fingerprint entry success message. Then, repeat the preset operation until the completion of the accumulation benchmark operation is detected during the Nth execution of the preset operation, and terminate the first preset operation Operate, and output the fingerprint entry completion prompt message.
  • the preset operations include the following operations: output fingerprint entry guidance information, detect touch operation, when touch operation is detected, output fingerprint entry success information, and finally store the information obtained according to the accumulated reference operation
  • the target image is used as a fingerprint template.
  • the electronic device obtains multiple fingerprint images, that is, after ensuring the accuracy of the accumulation reference calculation, in the process of outputting the fingerprint entry guidance information multiple times, it does not perform the fingerprint image acquisition operation but executes the accumulation reference
  • the operation is helpful to shorten the time of fingerprint template acquisition, and at the same time, it makes the user mistakenly believe that the fingerprint entry operation is still in progress, and avoids the vision that the user thinks the phone is in a stuck state after performing the cumulative benchmark operation after acquiring all the fingerprints entered by the user.
  • the effect is conducive to visually improving the speed of fingerprint template entry.
  • the electronic device groups multiple fingerprint pictures, and determines the mean value of noise by the gray-scale mean value of each pixel of the first group of fingerprint pictures and the second group of fingerprint pictures, thereby obtaining a target picture without noise, which is beneficial to improve the target picture The quality of the fingerprint template.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device includes a display screen and The under-screen fingerprint module set in the preset area of the display screen, as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the One or more programs 521 are stored in the foregoing memory 520 and configured to be executed by the foregoing application processor 510, and the one or more programs 521 include instructions for performing the following steps:
  • Output fingerprint entry guide information and when a user's touch operation on the preset area is detected, perform an accumulation reference operation according to the multiple fingerprint pictures, and output fingerprint entry success information;
  • the preset operation includes the following operations: outputting the fingerprint entry guide information, and detecting the touch operation, and when the touch operation is detected, outputting the fingerprint entry success information, the first operation includes For any operation in the preset operation, N is a positive integer;
  • the target picture obtained according to the accumulation reference operation is stored as a fingerprint template.
  • the electronic device continuously collects user fingerprint information multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guidance information, and when detecting a user's touch operation on a preset area, Perform the accumulation benchmark operation on the fingerprint images and output the fingerprint entry success message. Then, repeat the preset operation until the completion of the accumulation benchmark operation is detected during the Nth execution of the preset operation, and terminate the first preset operation Operation, and output the fingerprint entry completion prompt message.
  • the preset operations include the following operations: output fingerprint entry guidance information, detect touch operation, when the touch operation is detected, output fingerprint entry success information, and finally store the information obtained according to the accumulated reference operation
  • the target image is used as a fingerprint template.
  • the electronic device obtains multiple fingerprint images, that is, after ensuring the accuracy of the accumulation reference calculation, in the process of outputting the fingerprint entry guidance information multiple times, it does not perform the fingerprint image acquisition operation but executes the accumulation reference
  • the operation is helpful to shorten the time of fingerprint template acquisition, and at the same time, it makes the user mistakenly believe that the fingerprint entry operation is still in progress, and avoids the vision that the user thinks the phone is in a stuck state after performing the cumulative benchmark operation after acquiring all the fingerprints entered by the user.
  • the effect is conducive to visually improving the speed of fingerprint template entry.
  • the instructions in the program 521 are specifically used to perform the following operations: obtain the grayscale of each pixel in each fingerprint image Value; and used to determine the first average value of each pixel in the first group of fingerprint images in the plurality of fingerprint images according to the gray value of each pixel in each fingerprint image; And used for determining the second average gray value of each pixel in the second group of fingerprint pictures in the multiple fingerprint pictures according to the gray value of each pixel in each fingerprint picture; and For determining a plurality of target pixel points with the same first grayscale mean value and the second grayscale mean value; and for using the first grayscale mean value of the plurality of target pixels as a noise mean value, and according to The noise average value removes the noise of any one of the multiple fingerprint pictures to obtain the target picture.
  • the instructions in the program 521 are specifically used to perform the following operations: divide the first group of fingerprint images in the multiple fingerprint images into at least two regions, each of which includes at least Two fingerprint images; and used to execute in parallel the reference grayscale mean value of each pixel in at least two fingerprint images in each of the regions; and used to determine the mean value of each pixel according to the reference grayscale mean value of each of the regions The first gray-scale average value of each pixel of the first group of fingerprint images.
  • the instructions in the program 521 are specifically used to perform the following operation: divide the multiple fingerprint images into at least two sets of fingerprints Picture; and used to perform a third operation and a fourth operation in parallel, the third operation is to perform the accumulation reference operation for at least one of the at least two sets of fingerprint pictures to obtain a first reference picture, The fourth operation is to perform the operation of the accumulation reference for fingerprint pictures of the at least two sets of fingerprint pictures except the at least one set of fingerprint pictures to obtain a second reference picture; and to obtain a second reference picture according to the first set of fingerprint pictures; The reference picture and the second reference picture determine the target picture.
  • the instructions in the program 521 are specifically used to perform the following operations: determining the first reference picture The coordinate and gray value of each pixel in the first fingerprint image in the reference picture; and the coordinate and gray value used to determine each pixel in the second fingerprint image in the second reference picture; and The coordinate and gray value of each pixel of the first fingerprint image and the coordinate and gray value of each pixel of the second fingerprint image generate the target picture.
  • the instruction in the program 521 is specifically used to perform the following operation: determine whether the operation currently being performed is detecting the touch And, if yes, terminate the execution of the operation of outputting the fingerprint entry success information in the preset operation; and if not, terminate the execution of the currently executing operation.
  • the instructions in the program 521 are specifically used to perform the following operations: determining all the images obtained according to the accumulation reference operation The ratio of the signal amount of the target picture to the spatial noise; and when it is detected that the ratio of the signal amount of the target picture to the spatial noise is greater than a preset threshold, storing the target picture as a fingerprint template.
  • the electronic device includes hardware structures and/or software modules corresponding to each function.
  • this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the electronic device into functional units according to the foregoing method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 6 is a block diagram of the functional units of the fingerprint template obtaining device 600 involved in an embodiment of the present application.
  • the fingerprint template acquisition device 600 is applied to an electronic device, the electronic device includes a display screen and an under-screen fingerprint module set relative to a preset area of the display screen, and the fingerprint template acquisition device 600 includes a processing unit 601 and a communication unit 602, of which:
  • the processing unit 601 is configured to continuously collect user fingerprint information for multiple times through the communication unit 602 to obtain multiple fingerprint pictures; and is configured to output fingerprint entry guide information through the communication unit 602, and when the user is detected In the touch operation of the preset area, the accumulation reference operation is performed according to the multiple fingerprint pictures, and the fingerprint entry success information is output through the communication unit 602; and used to repeat the preset operation until the Nth execution In the process of the preset operation, it is detected that the execution of the accumulation reference operation is completed, the execution of the first operation in the preset operation is terminated, and the fingerprint entry completion prompt information is output through the communication unit 602, the preset operation includes The following operations: output the fingerprint entry guide information, and detect the touch operation, and when the touch operation is detected, output the fingerprint entry success information, the first operation includes the preset operation In any operation of, N is a positive integer; and is used to store the target picture obtained according to the accumulation reference operation as a fingerprint template.
  • the fingerprint template obtaining device 600 may further include a storage unit 603 for storing program codes and data of the electronic device.
  • the processing unit 601 may be a processor
  • the communication unit 602 may be a touch screen or a transceiver
  • the storage unit 603 may be a memory.
  • the electronic device continuously collects user fingerprint information multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guidance information, and when detecting a user's touch operation on a preset area, Perform the accumulation benchmark operation on the fingerprint images and output the fingerprint entry success message. Then, repeat the preset operation until the completion of the accumulation benchmark operation is detected during the Nth execution of the preset operation, and terminate the first preset operation Operate, and output the fingerprint entry completion prompt message.
  • the preset operations include the following operations: output fingerprint entry guidance information, detect touch operation, when touch operation is detected, output fingerprint entry success information, and finally store the information obtained according to the accumulated reference operation
  • the target image is used as a fingerprint template.
  • the electronic device obtains multiple fingerprint images, that is, after ensuring the accuracy of the accumulation reference calculation, in the process of outputting the fingerprint entry guidance information multiple times, it does not perform the fingerprint image acquisition operation but executes the accumulation reference
  • the operation is helpful to shorten the time of fingerprint template acquisition, and at the same time, it makes the user mistakenly believe that the fingerprint entry operation is still in progress, and avoids the vision that the user thinks the phone is in a stuck state after performing the cumulative benchmark operation after acquiring all the fingerprints entered by the user.
  • the effect is conducive to visually improving the speed of fingerprint template entry.
  • the processing unit 601 is specifically configured to: obtain the gray value of each pixel in each fingerprint picture; and According to the gray value of each pixel in each fingerprint picture, determine the first gray value of each pixel in the first group of fingerprint pictures in the multiple fingerprint pictures; The gray value of each pixel in each fingerprint picture determines the second gray value of each pixel in the second group of fingerprint pictures in the multiple fingerprint pictures; and is used to determine the first A plurality of target pixels having the same gray-scale mean value and the second gray-scale mean value; and used for taking the first gray-scale mean value of the plurality of target pixels as the noise mean value and removing according to the noise mean value
  • the target image is obtained by noise of any one of the multiple fingerprint images.
  • the processing unit 601 is specifically configured to: divide the first group of fingerprint images in the multiple fingerprint images into at least two regions, and each region includes at least two fingerprint images; And used to execute in parallel the reference gray-scale mean value of each pixel in at least two fingerprint images in each of the regions; and used to determine the first set of fingerprints according to the reference gray-scale mean value of each of the regions The first gray-scale average value of each pixel of the picture.
  • the processing unit 601 is specifically configured to: divide the multiple fingerprint pictures into at least two groups of fingerprint pictures; and The third operation and the fourth operation are performed in parallel, and the third operation is to perform the accumulation reference operation for at least one set of fingerprint pictures in the at least two sets of fingerprint pictures to obtain the first reference picture, and the fourth operation Perform the accumulation reference operation for fingerprint pictures in the at least two sets of fingerprint pictures excluding the at least one set of fingerprint pictures to obtain a second reference picture; and for obtaining a second reference picture according to the first reference picture and the The second reference picture determines the target picture.
  • the processing unit 601 is specifically configured to: determine the first reference picture in the first reference picture.
  • the coordinates and gray value of each pixel of the image, and the coordinates and gray value of each pixel of the second fingerprint image are used to generate the target picture.
  • the processing unit 601 is specifically configured to: determine whether the operation currently being performed is the detection of the touch operation; and If so, terminate the execution of the operation of outputting the fingerprint entry success information through the communication unit 602 in the preset operation; and if not, terminate the execution of the currently executed operation.
  • the processing unit 601 is specifically configured to: determine the signal of the target picture obtained according to the accumulation reference operation And is used for storing the target picture as a fingerprint template when it is detected that the ratio of the signal amount of the target picture to the spatial noise is greater than a preset threshold.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment ,
  • the aforementioned computer includes electronic equipment.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program. Part or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Image Input (AREA)
  • Collating Specific Patterns (AREA)

Abstract

本申请实施例公开了一种指纹模板获取方法及相关装置,方法包括:连续多次采集用户指纹信息以获取多张指纹图片;输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息;重复执行预设操作直到在第N次执行预设操作的过程中检测到累加基准操作执行完成,终止执行预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息;存储根据累加基准操作得到的目标图片作为指纹模板。本申请实施例有利于从视觉上提升指纹模板录入速度,以及缩短指纹模板获取时长。

Description

指纹模板获取方法及相关装置 技术领域
本申请涉及电子设备技术领域,具体涉及一种指纹模板获取方法及相关装置。
背景技术
随着移动通信技术的发展,电子设备(例如智能手机)的应用越来越广泛,为了保障电子设备中各种数据的安全性,设置了指纹解锁功能,而为了使显示屏的屏幕足够大,光学屏下指纹模组应运而生。
目前,由于光学屏下指纹的噪声比电容指纹远远要严重,指纹在录入的时候需要进行噪声处理,该处理需要耗时2-3s,这便会导致用户的录入体验不好,在录入的最后用户会认为手机处于卡顿的状态。
发明内容
本申请实施例提供了一种指纹模板获取方法及相关装置,以期从视觉上提升指纹模板录入速度,以及缩短指纹模板获取时长。
第一方面,本申请实施例提供一种指纹模板获取方法,应用于电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,所述方法包括:
连续多次采集用户指纹信息以获取多张指纹图片;
输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并输出指纹录入成功信息;
重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;
存储根据所述累加基准操作得到的目标图片作为指纹模板。
第二方面,本申请实施例提供一种指纹模板获取装置,应用于电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,所述指纹模板获取装置包括处理单元和通信单元,其中,
所述处理单元,用于通过所述通信单元连续多次采集用户指纹信息以获取多张指纹图片;以及用于通过所述通信单元输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并通过所述通信单元输出指纹录入成功信息;以及用于重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并通过所述通信单元输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;以及用于存储根据所述累加基准操作得到的目标图片作为指纹模板。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处 理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
下面将对本申请实施例所涉及到的附图作简单地介绍。
图1是本申请实施例提供的一种电子设备采集指纹的示意图;
图2是本申请实施例提供的一种指纹模板获取方法的流程示意图;
图3是本申请实施例提供的另一种指纹模板获取方法的流程示意图;
图4是本申请实施例提供的另一种指纹模板获取方法的流程示意图;
图5是本申请实施例提供的又一种电子设备的结构示意图;
图6是本申请实施例提供的一种指纹模板获取装置的功能单元组成框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以是具备数据传输能力的电子设备,该电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。
下面对本申请实施例进行详细介绍。
指纹识别技术把一个人同他的指纹对应起来,通过将他的指纹和预先保存的指纹模组进行比较,通过不同指纹的细节特征点来进行鉴别,就可以验证他的真实身份。特征点是指指纹纹路经常出现中断、分叉或转折的断点、分叉点和转折点。每个人的指纹纹路在图案、断点、分叉点和转折点上各不相同,是唯一的。且其唯一性是终生不变的,正是依靠这种唯一性和稳定性,我们才能创造指纹识别技术。指纹识别技术拥有识别速度快、采集方便和价格低廉等优点,被广泛应用于图像处理、模式识别、计算机视觉等众多学科领域。 如图1所示,图1为一个电子设备101采集指纹的示意图,该电子设备101包括显示屏102和相对于所述显示屏102的预设区域103设置的屏下指纹模组104,该屏下指纹模组104为光学屏下指纹模组,105为指纹放大图,当用户手指接触屏幕时,显示屏102预设区域发出的光线穿透盖板将指纹纹理照亮,形成指纹光膜,预设区域的显示屏指反射光线(该反射光线包括指纹反射回的光线)回传给屏下指纹模组104,最终形成指纹图片,该指纹图片包括指纹图像以及预设区域的屏幕噪声等。
请参阅图2,图2是本申请实施例提供了一种指纹模板获取方法的流程示意图,应用于如图1中所述的电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,如图所示,本指纹模板获取方法包括:
S201,电子设备连续多次采集用户指纹信息以获取多张指纹图片。
其中,电子设备连续多次采集用户指纹信息以获取多张指纹图片的触发条件可以是检测到用户需要录入指纹模板的操作,其中,每次采集用户指纹信息获取一张指纹图片,每次采集的操作过程可以是:输出指纹录入引导信息、检测用户针对所述预设区域的触控操作、当检测到所述触控操作时,通过所述屏下指纹模组获取指纹图片。
其中,连续多次的次数是由技术人员在电子设备出厂前预设置在所述电子设备中的,例如可以是16次、17次、18次等,在此不做限定。
其中,所述指纹图片包括指纹图像以及显示屏预设区域的各类噪声等。
S202,所述电子设备输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并输出指纹录入成功信息。
其中,所述指纹录入引导信息用于提示用户录入指纹,其中,包括录入指纹的位置等。
其中,当连续多次的次数为17次时,这次输出指纹录入引导信息为第18次,但是第18次时,并不获取用户的指纹图片,但是在检测到用户针对预设区域的触控操作时,会输出本次指纹录入成功的消息告知用户,同时执行累加基准的操作。
其中,累加基准是指根据多张指纹图片的累加确定显示屏预设区域的噪声,从而去除指纹图片中的噪声得到质量较高的指纹模板的操作,其中,由于用户每次录入指纹时按压的位置和力度不同,而噪声(污渍,障碍物等)的位置相同,因此,根据多张指纹图片的累加确定显示屏预设区域的噪声的具体实现方式可以是根据多张图片相同位置的像素点的灰度值进行累加,并除以图片数量,确定每个像素点的灰度均值,在确定灰度均值的过程中由于指纹的力度和位置不同,导致指纹的影响变得极小,因此,通过每个像素点形成的灰度均值得到的图片可以为噪声图片。
S203,所述电子设备重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并输出指纹录入完成提示信息;
其中,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数,N可以是1、2、3等,在此不做限定。
其中,检测到所述累加基准操作执行完成为检测到下述目标图片的生成以确定所述累加基准操作执行完成。
其中,所述电子设备重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成为两个过程的并行操作,两个并行操作可以是操作A:重复执行预设操作;操作B:检测所述累加基准操作是否执行完成。
其中,所述终止执行所述预设操作中的第一操作,包括终止执行第一操作以及所述第 一操作之后的操作,例如所述第一操作为检测所述触控操作,那么终止第一操作包括了终止执行检测所述触控操作,以及终止执行之后的在检测到所述触控操作时,输出所述指纹录入成功信息的操作。
S204,所述电子设备存储根据所述累加基准操作得到的目标图片作为指纹模板。
其中,所述指纹模板用于以后在指纹解锁过程中,对录入的指纹图像进行比对,确定指纹图像是否与指纹模板匹配,当匹配时,才能执行解锁操作。
可以看出,本申请实施例中,电子设备连续多次采集用户指纹信息以获取多张指纹图片,并输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息,然后,重复执行预设操作直到在第N次执行预设操作的过程中检测到累加基准操作执行完成,终止预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息,最后,存储根据累加基准操作得到的目标图片作为指纹模板。可见,电子设备在获取多张指纹图片之后,也就是在保障了累加基准计算的精度后,在多次输出指纹录入引导信息的过程中,并没有执行指纹图片的获取操作而是执行累加基准的操作,有利于缩短指纹模板获取的时长,同时,让用户误认为当前还在进行指纹录入的操作,避免在获取用户录入所有的指纹后执行累加基准操作造成的用户认为手机处于卡顿状态的视觉效果,有利于从视觉上提升指纹模板录入速度。
在一个可能的示例中,所述根据所述多张指纹图片执行累加基准操作,包括:
获取每张指纹图片中每个像素点的灰度值;
根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值;
根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值;
确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素点;
以所述多个目标像素点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片。
其中,每张指纹图片均是通过同一屏下指纹模组获取的,也就是说每张指纹图片的大小和分辨率是一样的,即每张指纹图片上的像素点阵列是一样的,因此,根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值的具体实现方式为,将第一组指纹图片中的每张指纹图片上相同位置的像素点的灰度值相加,然后除以第一组指纹图片中指纹图片的数量,进而确定每个像素点的第一灰度均值,举例而言,第一组指纹图片中包括3张指纹图片(分别是图片1、图片2、图片3),每张指纹图片上有5个像素点(分别是像素点1、像素点2、像素点3、像素点4、像素点5),像素点1的第一灰度均值为:(图片1中像素点1的灰度值+图片2中像素点1的灰度值+图片3中像素点1的灰度值)/3=像素点1的第一灰度均值,像素点2、像素点3、像素点4、像素点5的第一灰度均值的计算方法同像素点1的第一灰度均值所述,在此不做赘述。
其中,所述第二灰度均值的具体实现方法同上述第一灰度均值的实现方法相同,在此不做赘述。
其中,由于在第一组指纹图片中的多张指纹图片中,每张指纹图片的噪声是不变的(例如污渍、刮痕等),但是每张指纹图片中用户按压的力度等是不同的,因此,选取第一灰度均值和第二灰度均值相同的为目标像素点,即为噪声像素点。
其中,根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片的具体实现方式是在任意一张指纹图片中,将多个目标像素点的灰度值减去第一 灰度均值后得到的图片为目标图片。
其中,所述多张指纹图片中任意一张指纹图片的选取可以是多种多样的,例如可以是根据多张指纹图片中灰度值的变化量,选取变化量最大的一张指纹图片为所述任意一张指纹图片,或者可以是选取多张指纹图片中相同灰度值的像素点数量最少的指纹图片为所述任意一张指纹图片,在此不做限定。
可见,本示例中,电子设备通过将多张指纹图片分组,通过第一组指纹图片和第二组指纹图片的每个像素点的灰度均值确定噪声均值,进而获得没有噪声的目标图片,有利于提升目标图片中指纹模板的质量。
在这个可能的示例中,所述根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值,包括:
将所述多张指纹图片中所述第一组指纹图片分为至少两个区域,每个所述区域中包括至少两张指纹图片;
并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值;
根据每个所述区域的参考灰度均值确定所述第一组指纹图片的所述每个像素点的所述第一灰度均值。
其中,并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值的具体实现方式可以是通过多个线程并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值,其中,多个线程的数量可以是与至少两个区域的区域数量一致,也可以不一致,例如,多个线程的数量可以是2个,区域数量可以是4个,或者线程数量4个,区域数量4个,在此不做限定。
其中,每个像素点的第一灰度均值为每个区域的对应像素点的参考灰度均值相加,然后除以至少两个区域的区域数量得到的第一灰度均值。
可见,本示例中,电子设备通过将第一组指纹图片中的多张指纹图片分区,然后并行执行每个区域的参考灰度均值,进而确定第一组指纹图片的灰度均值,提升了串行执行的执行速度,进而提升指纹模板的获取速度。
在一个可能的示例中,所述根据所述多张指纹图片执行累加基准操作,包括:
将所述多张指纹图片分为至少两组指纹图片;
并行执行第三操作和第四操作,所述第三操作为针对所述至少两组指纹图片中的至少一组指纹图片执行所述累加基准的操作以获取第一参考图片,所述第四操作为针对所述至少两组指纹图片中除所述至少一组指纹图片之外的指纹图片执行所述累加基准的操作以获取第二参考图片;
根据所述第一参考图片和所述第二参考图片确定所述目标图片。
其中,根据所述第一参考图片和所述第二参考图片确定所述目标图片的具体实现方式可以是多种多样的,例如可以是选取两张参考图片中指纹模板完整度较高的为目标图片,或者可以是选取两张参考图片中指纹模板的清晰度较高的为目标图片等,在此不做限定。
其中,也可以同时并行三个操作、四个操作等,每个操作针对一组或者多组指纹图片执行累加基准的操作,在此不做限定。
可见,本示例中,电子设备通过并行执行第三操作和第四操作,而非将多张指纹图片进行串行处理,有利于提升指纹模板获取的速度,避免卡顿,同时,根据至少两组指纹图片获取的两张参考图片确定最后的目标图片,有利于提升指纹获取的质量以及准确性。
在这个可能的示例中,所述根据所述第一参考图片和所述第二参考图片确定所述目标图片,包括:
确定所述第一参考图片中第一指纹图像的每个像素点的坐标和灰度值;
确定所述第二参考图片中第二指纹图像的每个像素点的坐标和灰度值;
根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片。
其中,由于用户每次录入指纹时,按压的力度和录入的指纹范围不同,因此,所述根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片的具体实现方式可以是确定第一指纹图像的像素点与第二指纹图像的像素点的多少,当第二指纹图像的像素点多于第一指纹图像的像素点时,获取第二参考图片中与第一参考图片中像素点的灰度值不同的像素点,按照第二参考图片中这些像素点的坐标将这些像素点的灰度值添加至第一参考图片中,生成目标图片,或者可以是,当第一指纹图像左侧的像素点多于右侧的像素点时,选取第一参考图片中第一指纹图像左侧所有像素点和第二参考图片中第二指纹图像右侧所有像素点组合为所述目标图片,在此不做限定。
可见,本示例中,电子设备根据累加基准操作获取的第一参考图片和第二参考图片来确定最终的目标图片,而不是根据累加基准操作便获取目标图片,有利于提升指纹模板获取的准确性和完整度。
在一个可能的示例中,所述终止执行所述预设操作中的第一操作,包括:
确定当前正在执行的操作是否为检测所述触控操作;
若是,则终止执行所述预设操作中的所述输出所述指纹录入成功信息的操作;
若否,则终止执行所述当前正在执行的操作。
可见,本示例中,电子设备先检测当前正在执行的操作是否为触控操作,当是触控操作时,终止的是输出所述指纹录入成功信息的操作,而不终止当前的触控操作,避免在输出指纹录入引导信息之后,用户还没有触控,便看到指纹录入完成的不合理消息,有利于提升电子设备与用户交互之间的合理性。
在一个可能的示例中,所述存储根据所述累加基准操作得到的目标图片作为指纹模板,包括:
确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值;
当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
其中,确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值的具体实现方式包括确定目标图片的信号量以及空域噪声,然后计算信号量与空域噪声的比值,其中,目标图片的信号量的具体计算方法为确定指纹图像中所有凸点的像素点的灰度值的第一平均值,以及确定所有凹点的像素点的灰度值的第二平均值,通过第一平均值与第二平均值相减获得信号量的值;其中,目标图片的空域噪声的具体计算方法为确定凹点的平整度,根据平整度确定空域噪声,平整度越高,空域噪声越小,平整度越低,空域噪声越大。
可见,本示例中,电子设备通过目标图片的信号量与空域噪声的比值对目标图片进行质量检测,当信号量与空域噪声的比值大于预设阈值时,表明目标图片的噪声很小,进而存储目标图片作为指纹模板,有利于提升指纹模板的可靠性和准确性。
与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种指纹模板获取方法的流程示意图,应用于如图1中所述的电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,如图所示,本指纹模板获取方法包括:
S301,电子设备连续多次采集用户指纹信息以获取多张指纹图片。
S302,所述电子设备输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并输出指纹录入成功信息。
S303,所述电子设备重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成。
S304,所述电子设备确定当前正在执行的操作是否为检测触控操作。
S305,若是所述触控操作,所述电子设备则终止执行所述预设操作中的输出所述指纹录入成功信息的操作,并输出指纹录入完成提示信息。
S306,若不是所述触控操作,则终止执行所述当前正在执行的操作,并输出指纹录入完成提示信息。
S307,所述电子设备确定根据所述累加基准操作得到的目标图片的信号量与空域噪声的比值。
S308,所述电子设备当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
可以看出,本申请实施例中,电子设备连续多次采集用户指纹信息以获取多张指纹图片,并输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息,然后,重复执行预设操作直到在第N次执行预设操作的过程中检测到累加基准操作执行完成,终止预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息,最后,存储根据累加基准操作得到的目标图片作为指纹模板。可见,电子设备在获取多张指纹图片之后,也就是在保障了累加基准计算的精度后,在多次输出指纹录入引导信息的过程中,并没有执行指纹图片的获取操作而是执行累加基准的操作,有利于缩短指纹模板获取的时长,同时,让用户误认为当前还在进行指纹录入的操作,避免在获取用户录入所有的指纹后执行累加基准操作造成的用户认为手机处于卡顿状态的视觉效果,有利于从视觉上提升指纹模板录入速度。
此外,电子设备先检测当前正在执行的操作是否为触控操作,当是触控操作时,终止的是输出所述指纹录入成功信息的操作,而不终止当前的触控操作,避免在输出指纹录入引导信息之后,用户还没有触控,便看到指纹录入完成的不合理消息,有利于提升电子设备与用户交互之间的合理性。
此外,电子设备通过目标图片的信号量与空域噪声的比值对目标图片进行质量检测,当信号量与空域噪声的比值大于预设阈值时,表明目标图片的噪声很小,进而存储目标图片作为指纹模板,有利于提升指纹模板的可靠性和准确性。
与上述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种指纹模板获取方法的流程示意图,应用于如图1中所述的电子设备,所述电子设备包括相对于显示屏的预设区域设置的屏下指纹模组,如图所示,本指纹模板获取方法包括:
S401,电子设备连续多次采集用户指纹信息以获取多张指纹图片。
S402,所述电子设备输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,并输出指纹录入成功信息,获取每张指纹图片中每个像素点的灰度值。
S403,所述电子设备根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值。
S404,所述电子设备根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值。
S405,所述电子设备确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素 点。
S406,所述电子设备以所述多个目标像素点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到目标图片。
S407,所述电子设备重复执行预设操作直到在第N次执行所述预设操作的过程中检测到得到所述目标图片,终止执行所述预设操作中的第一操作,并输出指纹录入完成提示信息;
其中,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数。
S408,所述电子设备存储所述目标图片作为指纹模板。
可以看出,本申请实施例中,电子设备连续多次采集用户指纹信息以获取多张指纹图片,并输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息,然后,重复执行预设操作直到在第N次执行预设操作的过程中检测到累加基准操作执行完成,终止预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息,最后,存储根据累加基准操作得到的目标图片作为指纹模板。可见,电子设备在获取多张指纹图片之后,也就是在保障了累加基准计算的精度后,在多次输出指纹录入引导信息的过程中,并没有执行指纹图片的获取操作而是执行累加基准的操作,有利于缩短指纹模板获取的时长,同时,让用户误认为当前还在进行指纹录入的操作,避免在获取用户录入所有的指纹后执行累加基准操作造成的用户认为手机处于卡顿状态的视觉效果,有利于从视觉上提升指纹模板录入速度。
此外,电子设备通过将多张指纹图片分组,通过第一组指纹图片和第二组指纹图片的每个像素点的灰度均值确定噪声均值,进而获得没有噪声的目标图片,有利于提升目标图片中指纹模板的质量。
与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,该电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令:
连续多次采集用户指纹信息以获取多张指纹图片;
输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并输出指纹录入成功信息;
重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;
存储根据所述累加基准操作得到的目标图片作为指纹模板。
可以看出,本申请实施例中,电子设备连续多次采集用户指纹信息以获取多张指纹图片,并输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息,然后,重复执行预设操作直到在第 N次执行预设操作的过程中检测到累加基准操作执行完成,终止预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息,最后,存储根据累加基准操作得到的目标图片作为指纹模板。可见,电子设备在获取多张指纹图片之后,也就是在保障了累加基准计算的精度后,在多次输出指纹录入引导信息的过程中,并没有执行指纹图片的获取操作而是执行累加基准的操作,有利于缩短指纹模板获取的时长,同时,让用户误认为当前还在进行指纹录入的操作,避免在获取用户录入所有的指纹后执行累加基准操作造成的用户认为手机处于卡顿状态的视觉效果,有利于从视觉上提升指纹模板录入速度。
在一个可能的示例中,在所述根据所述多张指纹图片执行累加基准操作方面,所述程序521中的指令具体用于执行以下操作:获取每张指纹图片中每个像素点的灰度值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值;以及用于确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素点;以及用于以所述多个目标像素点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片。
在这个可能的示例中,在所述根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值方面,所述程序521中的指令具体用于执行以下操作:将所述多张指纹图片中所述第一组指纹图片分为至少两个区域,每个所述区域中包括至少两张指纹图片;以及用于并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值;以及用于根据每个所述区域的参考灰度均值确定所述第一组指纹图片的所述每个像素点的所述第一灰度均值。
在一个可能的示例中,在所述根据所述多张指纹图片执行累加基准操作方面,所述程序521中的指令具体用于执行以下操作:将所述多张指纹图片分为至少两组指纹图片;以及用于并行执行第三操作和第四操作,所述第三操作为针对所述至少两组指纹图片中的至少一组指纹图片执行所述累加基准的操作以获取第一参考图片,所述第四操作为针对所述至少两组指纹图片中除所述至少一组指纹图片之外的指纹图片执行所述累加基准的操作以获取第二参考图片;以及用于根据所述第一参考图片和所述第二参考图片确定所述目标图片。
在这个可能的示例中,在所述根据所述第一参考图片和所述第二参考图片确定所述目标图片方面,所述程序521中的指令具体用于执行以下操作:确定所述第一参考图片中第一指纹图像的每个像素点的坐标和灰度值;以及用于确定所述第二参考图片中第二指纹图像的每个像素点的坐标和灰度值;以及用于根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片。
在一个可能的示例中,在所述终止执行所述预设操作中的第一操作方面,所述程序521中的指令具体用于执行以下操作:确定当前正在执行的操作是否为检测所述触控操作;以及用于若是,则终止执行所述预设操作中的所述输出所述指纹录入成功信息的操作;以及用于若否,则终止执行所述当前正在执行的操作。
在一个可能的示例中,在所述存储根据所述累加基准操作得到的目标图片作为指纹模板方面,所述程序521中的指令具体用于执行以下操作:确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值;以及用于当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是, 电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图6是本申请实施例中所涉及的指纹模板获取装置600的功能单元组成框图。该指纹模板获取装置600应用于电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,该指纹模板获取装置600包括处理单元601和通信单元602,其中:
所述处理单元601,用于通过所述通信单元602连续多次采集用户指纹信息以获取多张指纹图片;以及用于通过所述通信单元602输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并通过所述通信单元602输出指纹录入成功信息;以及用于重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并通过所述通信单元602输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;以及用于存储根据所述累加基准操作得到的目标图片作为指纹模板。
其中,所述指纹模板获取装置600还可以包括存储单元603,用于存储电子设备的程序代码和数据。所述处理单元601可以是处理器,所述通信单元602可以是触控显示屏或者收发器,存储单元603可以是存储器。
可以看出,本申请实施例中,电子设备连续多次采集用户指纹信息以获取多张指纹图片,并输出指纹录入引导信息,且当检测到用户针对预设区域的触控操作时,根据多张指纹图片执行累加基准操作,并输出指纹录入成功信息,然后,重复执行预设操作直到在第N次执行预设操作的过程中检测到累加基准操作执行完成,终止预设操作中的第一操作,并输出指纹录入完成提示信息,预设操作包括以下操作:输出指纹录入引导信息,检测触控操作,在检测到触控操作时,输出指纹录入成功信息,最后,存储根据累加基准操作得到的目标图片作为指纹模板。可见,电子设备在获取多张指纹图片之后,也就是在保障了累加基准计算的精度后,在多次输出指纹录入引导信息的过程中,并没有执行指纹图片的获取操作而是执行累加基准的操作,有利于缩短指纹模板获取的时长,同时,让用户误认为当前还在进行指纹录入的操作,避免在获取用户录入所有的指纹后执行累加基准操作造成的用户认为手机处于卡顿状态的视觉效果,有利于从视觉上提升指纹模板录入速度。
在一个可能的示例中,在所述根据所述多张指纹图片执行累加基准操作方面,所述处理单元601具体用于:获取每张指纹图片中每个像素点的灰度值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值;以及用于确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素点;以及用于以所述多个目标像素 点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片。
在这个可能的示例中,在所述根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值方面,所述处理单元601具体用于:将所述多张指纹图片中所述第一组指纹图片分为至少两个区域,每个所述区域中包括至少两张指纹图片;以及用于并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值;以及用于根据每个所述区域的参考灰度均值确定所述第一组指纹图片的所述每个像素点的所述第一灰度均值。
在一个可能的示例中,在所述根据所述多张指纹图片执行累加基准操作方面,所述处理单元601具体用于:将所述多张指纹图片分为至少两组指纹图片;以及用于并行执行第三操作和第四操作,所述第三操作为针对所述至少两组指纹图片中的至少一组指纹图片执行所述累加基准的操作以获取第一参考图片,所述第四操作为针对所述至少两组指纹图片中除所述至少一组指纹图片之外的指纹图片执行所述累加基准的操作以获取第二参考图片;以及用于根据所述第一参考图片和所述第二参考图片确定所述目标图片。
在这个可能的示例中,在所述根据所述第一参考图片和所述第二参考图片确定所述目标图片方面,所述处理单元601具体用于:确定所述第一参考图片中第一指纹图像的每个像素点的坐标和灰度值;以及用于确定所述第二参考图片中第二指纹图像的每个像素点的坐标和灰度值;以及用于根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片。
在一个可能的示例中,在所述终止执行所述预设操作中的第一操作方面,所述处理单元601具体用于:确定当前正在执行的操作是否为检测所述触控操作;以及用于若是,则终止执行所述预设操作中的所述通过所述通信单元602输出所述指纹录入成功信息的操作;以及用于若否,则终止执行所述当前正在执行的操作。
在一个可能的示例中,在所述存储根据所述累加基准操作得到的目标图片作为指纹模板方面,所述处理单元601具体用于:确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值;以及用于当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实 现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种指纹模板获取方法,其特征在于,应用于电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,所述方法包括:
    连续多次采集用户指纹信息以获取多张指纹图片;
    输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并输出指纹录入成功信息;
    重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;
    存储根据所述累加基准操作得到的目标图片作为指纹模板。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述多张指纹图片执行累加基准操作,包括:
    获取每张指纹图片中每个像素点的灰度值;
    对所述多张指纹图片中对应位置的像素点的灰度值进行叠加,计算得出所述多张指纹图片中所述每个像素点的灰度均值;
    根据所述每个像素点的灰度均值形成所述目标图片。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述多张指纹图片执行累加基准操作,包括:
    获取每张指纹图片中每个像素点的灰度值;
    根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值;
    根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值;
    确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素点;
    以所述多个目标像素点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值,包括:
    将所述多张指纹图片中所述第一组指纹图片分为至少两个区域,每个所述区域中包括至少两张指纹图片;
    并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值;
    根据每个所述区域的参考灰度均值确定所述第一组指纹图片的所述每个像素点的所述第一灰度均值。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述多张指纹图片执行累加基准操作,包括:
    将所述多张指纹图片分为至少两组指纹图片;
    并行执行第三操作和第四操作,所述第三操作为针对所述至少两组指纹图片中的至少一组指纹图片执行所述累加基准的操作以获取第一参考图片,所述第四操作为针对所述至少两组指纹图片中除所述至少一组指纹图片之外的指纹图片执行所述累加基准的操作以获取第二参考图片;
    根据所述第一参考图片和所述第二参考图片确定所述目标图片。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第一参考图片和所述第二参考图片确定所述目标图片,包括:
    确定所述第一参考图片中第一指纹图像的每个像素点的坐标和灰度值;
    确定所述第二参考图片中第二指纹图像的每个像素点的坐标和灰度值;
    根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述终止执行所述预设操作中的第一操作,包括:
    确定当前正在执行的操作是否为检测所述触控操作;
    若是,则终止执行所述预设操作中的所述输出所述指纹录入成功信息的操作;
    若否,则终止执行所述当前正在执行的操作。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述存储根据所述累加基准操作得到的目标图片作为指纹模板,包括:
    确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值;
    当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
  9. 一种指纹模板获取装置,其特征在于,应用于电子设备,所述电子设备包括显示屏和相对于所述显示屏的预设区域设置的屏下指纹模组,所述指纹模板获取装置包括处理单元和通信单元,其中,
    所述处理单元,用于通过所述通信单元连续多次采集用户指纹信息以获取多张指纹图片;以及用于通过所述通信单元输出指纹录入引导信息,且当检测到用户针对所述预设区域的触控操作时,根据所述多张指纹图片执行累加基准操作,并通过所述通信单元输出指纹录入成功信息;以及用于重复执行预设操作直到在第N次执行所述预设操作的过程中检测到所述累加基准操作执行完成,终止执行所述预设操作中的第一操作,并通过所述通信单元输出指纹录入完成提示信息,所述预设操作包括以下操作:输出所述指纹录入引导信息,以及检测所述触控操作,以及在检测到所述触控操作时,输出所述指纹录入成功信息,所述第一操作包括所述预设操作中的任一操作,N为正整数;以及用于存储根据所述累加基准操作得到的目标图片作为指纹模板。
  10. 根据权利要求9所述的装置,其特征在于,在所述根据所述多张指纹图片执行累加基准操作方面,所述处理单元具体用于:获取每张指纹图片中每个像素点的灰度值;以及用于对所述多张指纹图片中对应位置的像素点的灰度值进行叠加,计算得出所述多张指纹图片中所述每个像素点的灰度均值;以及用于根据所述每个像素点的灰度均值形成所述目标图片。
  11. 根据权利要求9所述的装置,其特征在于,在所述根据所述多张指纹图片执行累加基准操作方面,所述处理单元具体用于:获取每张指纹图片中每个像素点的灰度值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值;以及用于根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第二组指纹图片的所述每个像素点的第二灰度均值;以及用于确定所述第一灰度均值和所述第二灰度均值相同的多个目标像素点;以及用于以所述多个目标像素点的所述第一灰度均值作为噪声均值,并根据所述噪声均值去除所述多张指纹图片中任意一张指纹图片的噪声得到所述目标图片。
  12. 根据权利要求11所述的装置,其特征在于,在所述根据所述每张指纹图片中所述每个像素点的灰度值确定所述多张指纹图片中第一组指纹图片的所述每个像素点的第一灰度均值方面,所述处理单元具体用于:将所述多张指纹图片中所述第一组指纹图片分为至少两个区域,每个所述区域中包括至少两张指纹图片;以及用于并行执行每个所述区域中至少两张指纹图片中所述每个像素点的参考灰度均值;以及用于根据每个所述区域的参考灰度均值确定所述第一组指纹图片的所述每个像素点的所述第一灰度均值。
  13. 根据权利要求9所述的装置,其特征在于,在所述根据所述多张指纹图片执行累加基准操作方面,所述处理单元具体用于:将所述多张指纹图片分为至少两组指纹图片;以及用于并行执行第三操作和第四操作,所述第三操作为针对所述至少两组指纹图片中的至少一组指纹图片执行所述累加基准的操作以获取第一参考图片,所述第四操作为针对所述至少两组指纹图片中除所述至少一组指纹图片之外的指纹图片执行所述累加基准的操作以获取第二参考图片;以及用于根据所述第一参考图片和所述第二参考图片确定所述目标图片。
  14. 根据权利要求13所述的装置,其特征在于,在所述根据所述第一参考图片和所述第二参考图片确定所述目标图片方面,所述处理单元具体用于:确定所述第一参考图片中第一指纹图像的每个像素点的坐标和灰度值;以及用于确定所述第二参考图片中第二指纹图像的每个像素点的坐标和灰度值;以及用于根据所述第一指纹图像的每个像素点的坐标和灰度值,以及所述第二指纹图像的每个像素点的坐标和灰度值生成所述目标图片。
  15. 根据权利要求9-14任一项所述的装置,其特征在于,在所述终止执行所述预设操作中的第一操作方面,所述处理单元具体用于:确定当前正在执行的操作是否为检测所述触控操作;以及用于若是,则终止执行所述预设操作中的所述通过所述通信单元输出所述指纹录入成功信息的操作;以及用于若否,则终止执行所述当前正在执行的操作。
  16. 根据权利要求9-15任一项所述的装置,其特征在于,在所述存储根据所述累加基准操作得到的目标图片作为指纹模板方面,所述处理单元具体用于:确定根据所述累加基准操作得到的所述目标图片的信号量与空域噪声的比值;以及用于当检测到所述目标图片的所述信号量与空域噪声的比值大于预设阈值时,存储所述目标图片作为指纹模板。
  17. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1-8中任一项所述的方法。
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-8任一项所述的方法中的步骤的指令。
  19. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-8任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,权利要求1-8任一项所述的方法得以实现。
PCT/CN2020/071849 2019-02-20 2020-01-13 指纹模板获取方法及相关装置 WO2020168861A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910126486.6 2019-02-20
CN201910126486.6A CN109886189B (zh) 2019-02-20 2019-02-20 指纹模板获取方法及相关装置

Publications (1)

Publication Number Publication Date
WO2020168861A1 true WO2020168861A1 (zh) 2020-08-27

Family

ID=66928590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071849 WO2020168861A1 (zh) 2019-02-20 2020-01-13 指纹模板获取方法及相关装置

Country Status (2)

Country Link
CN (2) CN113239817A (zh)
WO (1) WO2020168861A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113239817A (zh) * 2019-02-20 2021-08-10 Oppo广东移动通信有限公司 指纹模板获取方法及相关装置
CN111443934B (zh) * 2020-03-31 2023-05-16 广州市百果园信息技术有限公司 灰度用户确定方法、装置、设备及存储介质
CN115131835B (zh) * 2022-09-02 2023-01-13 荣耀终端有限公司 指纹识别方法和电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025419A (zh) * 2016-01-29 2017-08-08 北京小米移动软件有限公司 指纹模板录入方法及装置
CN108053371A (zh) * 2017-11-30 2018-05-18 努比亚技术有限公司 一种图像处理方法、终端及计算机可读存储介质
CN109886189A (zh) * 2019-02-20 2019-06-14 Oppo广东移动通信有限公司 指纹模板获取方法及相关装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942540A (zh) * 2014-04-10 2014-07-23 杭州景联文科技有限公司 基于曲波纹理分析和svm-knn分类的假指纹检测算法
CN105659253B (zh) * 2014-08-25 2020-09-04 华为技术有限公司 指纹提取方法和装置
KR101639986B1 (ko) * 2015-10-07 2016-07-15 크루셜텍 (주) 지문 등록 및 인증 속도 향상을 위한 지문 정보 프로세싱 방법 및 그 장치
CN105335707B (zh) * 2015-10-19 2018-05-08 广东欧珀移动通信有限公司 一种待识别指纹图像的获取方法、装置及移动终端
US9836592B2 (en) * 2015-11-19 2017-12-05 Hewlett-Packard Development Company, L.P. Fingerprint scans with power buttons
CN105956448B (zh) * 2016-05-27 2017-11-24 广东欧珀移动通信有限公司 一种指纹解锁方法、装置及用户终端
CN106055955B (zh) * 2016-05-30 2017-10-24 广东欧珀移动通信有限公司 一种解锁控制方法及终端设备
CN107025434A (zh) * 2017-03-08 2017-08-08 广东欧珀移动通信有限公司 一种指纹注册方法及移动终端
CN107179871A (zh) * 2017-04-28 2017-09-19 广东欧珀移动通信有限公司 指纹识别区域显示方法及相关产品
CN107169479A (zh) * 2017-06-26 2017-09-15 西北工业大学 基于指纹验证的智能移动设备敏感数据防护方法
CN108205663B (zh) * 2017-12-29 2020-03-06 深圳前海联动云软件科技有限公司 一种基于指纹识别的汽车启动系统
CN109241859B (zh) * 2018-08-13 2021-05-04 Oppo广东移动通信有限公司 指纹识别方法及相关产品

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025419A (zh) * 2016-01-29 2017-08-08 北京小米移动软件有限公司 指纹模板录入方法及装置
CN108053371A (zh) * 2017-11-30 2018-05-18 努比亚技术有限公司 一种图像处理方法、终端及计算机可读存储介质
CN109886189A (zh) * 2019-02-20 2019-06-14 Oppo广东移动通信有限公司 指纹模板获取方法及相关装置

Also Published As

Publication number Publication date
CN109886189B (zh) 2021-06-04
CN113239817A (zh) 2021-08-10
CN109886189A (zh) 2019-06-14

Similar Documents

Publication Publication Date Title
WO2020168861A1 (zh) 指纹模板获取方法及相关装置
CN110209273B (zh) 手势识别方法、交互控制方法、装置、介质与电子设备
US11386717B2 (en) Fingerprint inputting method and related device
KR101581954B1 (ko) 실시간으로 피사체의 손을 검출하기 위한 장치 및 방법
WO2020168858A1 (zh) 数据自校准方法及相关装置
WO2020156033A1 (zh) 指纹验证方法及相关装置
US20200311380A1 (en) Method for fingerprint recognition, electronic device, and non-transitory computer-readable storage medium
JP4790653B2 (ja) 画像処理装置、制御プログラム、コンピュータ読み取り可能な記録媒体、電子機器及び画像処理装置の制御方法
WO2020216091A1 (zh) 图像处理方法及相关装置
US20220067330A1 (en) Calibration method, electronic device, and non-transitory computer-readable storage medium
US20150227789A1 (en) Information processing apparatus, information processing method, and program
WO2020192532A1 (zh) 指纹图像处理方法及相关装置
TW201423612A (zh) 手勢辨識裝置及方法
JP2016091457A (ja) 入力装置、指先位置検出方法及び指先位置検出用コンピュータプログラム
US9690430B2 (en) Touch detection apparatus, touch detection method and recording medium
TW201939260A (zh) 一種利用手勢模擬滑鼠操作的方法、裝置及終端
CN106406638B (zh) 一种触摸点轮廓生成方法及设备
CN110879131A (zh) 目视光学系统的成像质量测试方法、成像质量测试装置和电子设备
CN110187806A (zh) 指纹模板录入方法及相关装置
CN116562318A (zh) 一种基于pda终端的编码格式检测方法、装置及电子设备
CN106101542B (zh) 一种图像处理方法及终端
CN114677737A (zh) 生物信息识别方法、装置、设备及介质
CN110210397B (zh) 指纹录入方法及相关设备
CN115793893B (zh) 触摸书写笔迹生成方法、装置、电子设备及存储介质
US20180074648A1 (en) Tapping detecting device, tapping detecting method and smart projecting system using the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20759508

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20759508

Country of ref document: EP

Kind code of ref document: A1