CN109886189B - Fingerprint template acquisition method and related device - Google Patents

Fingerprint template acquisition method and related device Download PDF

Info

Publication number
CN109886189B
CN109886189B CN201910126486.6A CN201910126486A CN109886189B CN 109886189 B CN109886189 B CN 109886189B CN 201910126486 A CN201910126486 A CN 201910126486A CN 109886189 B CN109886189 B CN 109886189B
Authority
CN
China
Prior art keywords
fingerprint
pictures
preset
picture
outputting
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
Application number
CN201910126486.6A
Other languages
Chinese (zh)
Other versions
CN109886189A (en
Inventor
郭子青
陈然
欧锦荣
李虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910126486.6A priority Critical patent/CN109886189B/en
Priority to CN202110536799.6A priority patent/CN113239817A/en
Publication of CN109886189A publication Critical patent/CN109886189A/en
Priority to PCT/CN2020/071849 priority patent/WO2020168861A1/en
Application granted granted Critical
Publication of CN109886189B publication Critical patent/CN109886189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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

The embodiment of the application discloses a fingerprint template acquisition method and a related device, wherein the method comprises the following steps: continuously and repeatedly acquiring user fingerprint information to acquire a plurality of fingerprint pictures; outputting fingerprint input guide information, and when detecting that a user performs touch operation on a preset area, executing accumulated reference operation according to a plurality of fingerprint pictures and outputting fingerprint input success information; repeatedly executing the preset operation until the completion of the execution of the accumulation reference operation is detected in the process of executing the preset operation for the Nth time, terminating the execution of the first operation in the preset operation, and outputting a prompt message for finishing the fingerprint input, wherein the preset operation comprises the following operations: outputting fingerprint input guide information, detecting touch operation, and outputting fingerprint input success information when the touch operation is detected; and storing the target picture obtained according to the accumulation benchmark operation as a fingerprint template. The embodiment of the application is favorable for visually improving the fingerprint template input speed and shortening the fingerprint template acquisition time.

Description

Fingerprint template acquisition method and related device
Technical Field
The application relates to the technical field of electronic equipment, in particular to a fingerprint template obtaining method and a related device.
Background
Along with the development of mobile communication technology, the application of electronic equipment (for example, a smart phone) is more and more extensive, in order to ensure the security of various data in the electronic equipment, a fingerprint unlocking function is set, and in order to make the screen of a display screen large enough, a fingerprint module under an optical screen is produced.
At present, the noise of the fingerprint under the optical screen is far more serious than that of the capacitance fingerprint, the fingerprint needs to be subjected to noise processing when being input, the processing needs to take 2-3s, the input experience of a user is not good, and the user can think that the mobile phone is in a stuck state at the last time of input.
Disclosure of Invention
The embodiment of the application provides a fingerprint template acquisition method and a related device, aiming at visually improving the input speed of a fingerprint template and shortening the acquisition time of the fingerprint template.
In a first aspect, an embodiment of the present application provides a fingerprint template obtaining method, which is applied to an electronic device, where the electronic device includes a display screen and an underscreen fingerprint module set in a preset area of the display screen, and the method includes:
continuously and repeatedly acquiring user fingerprint information to acquire a plurality of fingerprint pictures;
outputting fingerprint input guide information, and when detecting that a user performs touch operation on the preset area, executing accumulation benchmark operation according to the multiple fingerprint pictures and outputting fingerprint input success information;
repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting prompt information of finishing fingerprint input, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer;
and storing the target picture obtained according to the accumulation benchmark operation as a fingerprint template.
In a second aspect, an embodiment of the present application provides a fingerprint template obtaining apparatus, which is applied to an electronic device, where the electronic device includes a display screen and an off-screen fingerprint module set in a preset area of the display screen, the fingerprint template obtaining apparatus includes a processing unit and a communication unit, where,
the processing unit is used for continuously collecting user fingerprint information for multiple times through the communication unit to obtain multiple fingerprint pictures; the fingerprint input guide information is output through the communication unit, and when touch operation of a user for the preset area is detected, accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output through the communication unit; and the system is used for repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting fingerprint entry completion prompt information through the communication unit, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer; and the fingerprint template is used for storing the target picture obtained according to the accumulation benchmark operation.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides 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 perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an electronic device for collecting a fingerprint according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a fingerprint template obtaining method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another fingerprint template obtaining method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another fingerprint template obtaining method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a fingerprint template obtaining apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may be an electronic device with data transmission capability, and the electronic device may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
The following describes embodiments of the present application in detail.
Fingerprint identification technique corresponds one person with his fingerprint, compares through the fingerprint module with his fingerprint and prestore, distinguishes through the minutiae characteristic point of different fingerprints, just can verify his true identity. The characteristic points refer to break points, bifurcation points and turning points of interruption, bifurcation or turning of fingerprint lines. The fingerprint lines of each person are different from each other on the pattern, the break point, the bifurcation point and the turning point and are unique. And the uniqueness is invariable throughout the life, and just by means of the uniqueness and the stability, the fingerprint identification technology can be created. The fingerprint identification technology has the advantages of high identification speed, convenience in acquisition, low price and the like, and is widely applied to a plurality of subject fields such as image processing, mode identification, computer vision and the like. As shown in fig. 1, fig. 1 is a schematic view of an electronic device 101 collecting fingerprints, the electronic device 101 includes a display screen 102 and a fingerprint module 104 under the screen, which is set in a preset area 103 of the display screen 102, the fingerprint module 104 under the screen is an optical screen fingerprint module, 105 is a fingerprint enlarged image, when a finger of a user touches the screen, light emitted from the preset area of the display screen 102 penetrates through a cover plate to illuminate a fingerprint texture, so as to form a fingerprint optical film, reflected light (including light reflected back by the fingerprint) is transmitted back to the fingerprint module 104 under the screen by the display screen in the preset area, so as to finally form a fingerprint picture, and the fingerprint picture includes a fingerprint image, screen noise in the preset area, and the like.
Referring to fig. 2, fig. 2 is a schematic flowchart of a fingerprint template obtaining method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1, where the electronic device includes a display screen and an underscreen fingerprint module set in a preset area of the display screen, and as shown in the figure, the fingerprint template obtaining method includes:
s201, the electronic equipment collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures.
The triggering condition for continuously collecting the user fingerprint information for multiple times by the electronic device to obtain multiple fingerprint pictures can be the operation that the user needs to enter a fingerprint template, wherein the user fingerprint information is collected to obtain one fingerprint picture every time, and the operation process of collection every time can be as follows: outputting fingerprint input guide information, detecting touch operation of a user aiming at the preset area, and acquiring a fingerprint picture through the under-screen fingerprint module when the touch operation is detected.
The number of times of the consecutive times is preset in the electronic device by a technician before the electronic device leaves the factory, and may be, for example, 16 times, 17 times, 18 times, and the like, which is not limited herein.
The fingerprint picture comprises a fingerprint image, various noises in a preset area of a display screen and the like.
S202, the electronic equipment outputs fingerprint input guide information, and when touch control operation of a user for the preset area is detected, accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output.
The fingerprint input guide information is used for prompting a user to input a fingerprint, wherein the fingerprint input guide information comprises a position of inputting the fingerprint and the like.
When the number of times of continuous multiple times is 17, the output of the fingerprint input guide information is 18 th time, but the fingerprint picture of the user is not acquired at the 18 th time, but when the touch operation of the user on the preset area is detected, a message that the fingerprint input is successful is output to inform the user, and meanwhile, the operation of accumulating the reference is executed.
The accumulation benchmark refers to an operation of determining noise in a preset area of a display screen according to accumulation of a plurality of fingerprint pictures, so as to remove the noise in the fingerprint pictures to obtain a fingerprint template with higher quality, wherein the positions and the forces of pressing by a user every time the user inputs a fingerprint are different, and the positions of the noise (stains, obstacles and the like) are the same, so that the specific implementation mode of determining the noise in the preset area of the display screen according to the accumulation of the plurality of fingerprint pictures can be accumulation according to gray values of pixel points at the same positions of the plurality of pictures, and the gray average value of each pixel point is determined by dividing the number of the pictures, and the influence of the fingerprint is extremely small due to the difference of the forces and the positions of the fingerprints in the process of determining the gray average value, so that the picture obtained through the gray average value formed by each pixel point can.
S203, the electronic equipment repeatedly executes preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminates the execution of the first operation in the preset operations, and outputs prompt information of finishing the fingerprint input;
wherein the preset operation comprises the following operations: outputting the fingerprint entry guide information, detecting the touch operation, and outputting the fingerprint entry success information when the touch operation is detected, where the first operation includes any one of the preset operations, N is a positive integer, and N may be 1, 2, 3, and the like, which is not limited herein.
Wherein the detection of the completion of the execution of the accumulation reference operation is detection of generation of a target picture to determine that the execution of the accumulation reference operation is completed.
The electronic device repeatedly executes the preset operation until it is detected that the execution of the accumulation reference operation is completed in the process of executing the preset operation for the nth time, and the two parallel operations may be operations a: repeatedly executing preset operation; and operation B: detecting whether the accumulation reference operation is executed completely.
If the termination of the execution of the first operation in the preset operations includes termination of the execution of the first operation and operations after the first operation, for example, the first operation is the detection of the touch operation, the termination of the first operation includes termination of the execution of the detection of the touch operation, and termination of the execution of operations after the termination of the execution of the detection of the touch operation, which outputs the fingerprint entry success information when the touch operation is detected.
And S204, the electronic equipment stores the target picture obtained according to the accumulation benchmark operation as a fingerprint template.
The fingerprint template is used for comparing the input fingerprint image in the fingerprint unlocking process later, determining whether the fingerprint image is matched with the fingerprint template, and executing unlocking operation when the fingerprint image is matched with the fingerprint template.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
In one possible example, the performing an accumulation reference operation according to the plurality of fingerprint pictures includes:
acquiring the gray value of each pixel point in each fingerprint picture;
determining a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures according to the gray value of each pixel point in each fingerprint picture;
determining a second gray level average value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures according to the gray level value of each pixel point in each fingerprint picture;
determining a plurality of target pixel points with the same first gray average value and the same second gray average value;
and taking the first gray average values of the target pixel points as a noise average value, and removing the noise of any one of the fingerprint pictures according to the noise average value to obtain the target picture.
Each fingerprint picture is acquired through the same under-screen fingerprint module, that is, the size and the resolution of each fingerprint picture are the same, that is, the pixel point arrays on each fingerprint picture are the same, therefore, the specific implementation mode for determining the first gray level mean value of each pixel point of the first group of fingerprint pictures in the plurality of fingerprint pictures according to the gray level value of each pixel point in each fingerprint picture is that the gray level values of the pixel points at the same position on each fingerprint picture in the first group of fingerprint pictures are added, and then the sum is divided by the number of the fingerprint pictures in the first group of fingerprint pictures to determine the first gray level mean value of each pixel point, for example, the first group of fingerprint pictures comprises 3 fingerprint pictures (picture 1, picture 2 and picture 3 respectively), and each fingerprint picture has 5 pixel points (picture point 1 respectively), Pixel 2, pixel 3, pixel 4, pixel 5), the first gray average of pixel 1 is: (the gray value of the pixel point 1 in the picture 1 + the gray value of the pixel point 1 in the picture 2 + the gray value of the pixel point 1 in the picture 3)/3 is the first gray average value of the pixel point 1, and the calculation method of the first gray average values of the pixel point 2, the pixel point 3, the pixel point 4 and the pixel point 5 is the same as that of the first gray average value of the pixel point 1, and is not described herein again.
The specific implementation method of the second gray level mean value is the same as the implementation method of the first gray level mean value, and is not described herein again.
Because the noise of each fingerprint picture is not changed (such as stains, scratches and the like) in a plurality of fingerprint pictures in the first group of fingerprint pictures, but the pressing force of the user in each fingerprint picture is different, the target pixel point which is the same as the first gray level mean value and the second gray level mean value is selected, and the target pixel point is the noise pixel point.
The specific implementation manner of obtaining the target picture by removing the noise of any one of the plurality of fingerprint pictures according to the noise mean value is that in any one of the fingerprint pictures, a picture obtained by subtracting a first gray mean value from gray values of a plurality of target pixel points is used as the target picture.
The selection of any one of the fingerprint pictures may be various, for example, a fingerprint picture with the largest variation may be selected as the any one fingerprint picture according to the variation of the gray scale values in the fingerprint pictures, or a fingerprint picture with the smallest number of pixel points with the same gray scale value in the fingerprint pictures may be selected as the any one fingerprint picture, which is not limited herein.
Therefore, in this example, the electronic device groups a plurality of fingerprint images, and determines the noise mean value through the gray mean value of each pixel point of the first group of fingerprint images and the second group of fingerprint images, so as to obtain a target image without noise, which is beneficial to improving the quality of the fingerprint template in the target image.
In this possible example, the determining a first mean grayscale value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures according to the grayscale value of each pixel point in each fingerprint picture includes:
dividing the first group of fingerprint pictures in the plurality of fingerprint pictures into at least two areas, wherein each area comprises at least two fingerprint pictures;
executing the reference gray average value of each pixel point in at least two fingerprint pictures in each region in parallel;
and determining the first gray average value of each pixel point of the first group of fingerprint pictures according to the reference gray average value of each region.
The specific implementation manner of executing the reference gray level mean value of each pixel point in at least two fingerprint pictures in each region in parallel may be that the reference gray level mean value of each pixel point in at least two fingerprint pictures in each region is executed in parallel through a plurality of threads, where the number of the plurality of threads may be the same as or different from the number of the regions of at least two regions, for example, the number of the plurality of threads may be 2, the number of the regions may be 4, or the number of the threads is 4, and the number of the regions is 4, which is not limited herein.
The first gray average value of each pixel point is the reference gray average value of the corresponding pixel points of each region, and then the reference gray average value is divided by the number of the regions of at least two regions to obtain the first gray average value.
Therefore, in this example, the electronic device divides a plurality of fingerprint pictures in the first group of fingerprint pictures, and then executes the reference gray level mean value of each region in parallel, so as to determine the gray level mean value of the first group of fingerprint pictures, thereby increasing the execution speed of serial execution, and further increasing the acquisition speed of the fingerprint template.
In one possible example, the performing an accumulation reference operation according to the plurality of fingerprint pictures includes:
dividing the plurality of fingerprint pictures into at least two groups of fingerprint pictures;
executing a third operation and a fourth operation in parallel, wherein the third operation is to execute the operation of accumulating the benchmark for at least one of the at least two groups of fingerprint pictures to acquire a first reference picture, and the fourth operation is to execute the operation of accumulating the benchmark for the fingerprint pictures except the at least one group of fingerprint pictures in the at least two groups of fingerprint pictures to acquire a second reference picture;
determining the target picture according to the first reference picture and the second reference picture.
The specific implementation manner of determining the target picture according to the first reference picture and the second reference picture may be various, for example, the target picture with the higher integrity of the fingerprint template in the two reference pictures may be selected, or the target picture with the higher definition of the fingerprint template in the two reference pictures may be selected, which is not limited herein.
The method may also perform three operations, four operations, and the like simultaneously, and each operation performs an operation of accumulating a reference for one or more groups of fingerprint pictures, which is not limited herein.
Therefore, in this example, the electronic device performs the third operation and the fourth operation in parallel instead of performing serial processing on multiple fingerprint pictures, which is beneficial to improving the speed of acquiring the fingerprint template and avoiding blockage, and meanwhile, the final target picture is determined according to two reference pictures acquired by at least two groups of fingerprint pictures, which is beneficial to improving the quality and accuracy of acquiring the fingerprint.
In this possible example, the determining the target picture from the first reference picture and the second reference picture comprises:
determining coordinates and gray values of each pixel point of a first fingerprint image in the first reference picture;
determining coordinates and gray values of each pixel point of a second fingerprint image in the second reference picture;
and generating the target picture according to the coordinates and the gray value of each pixel point of the first fingerprint image and the coordinates and the gray value of each pixel point of the second fingerprint image.
Wherein, when the user inputs the fingerprint each time, the pressing force and the inputted fingerprint range are different, therefore, the specific implementation manner of generating the target picture according to the coordinates and gray values of each pixel point of the first fingerprint image and the coordinates and gray values of each pixel point of the second fingerprint image can be to determine the number of pixel points of the first fingerprint image and the number of pixel points of the second fingerprint image, when the pixel points of the second fingerprint image are more than the pixel points of the first fingerprint image, to obtain pixel points of the second reference picture which are different from the gray values of the pixel points of the first reference picture, to add the gray values of the pixel points to the first reference picture according to the coordinates of the pixel points of the second reference picture to generate the target picture, or, when the pixel points on the left side of the first fingerprint image are more than the pixel points on the right side, all pixel points on the left side of the first fingerprint image in the first reference picture and all pixel points on the right side of the second fingerprint image in the second reference picture are selected and combined into the target picture, and the combination is not limited herein.
As can be seen, in this example, the electronic device determines the final target picture according to the first reference picture and the second reference picture obtained by the accumulation benchmark operation, instead of obtaining the target picture according to the accumulation benchmark operation, which is beneficial to improving the accuracy and the integrity of fingerprint template obtaining.
In one possible example, the terminating performing a first operation of the preset operations includes:
determining whether the currently executed operation is to detect the touch operation;
if so, terminating the operation of outputting the fingerprint input success information in the preset operation;
if not, terminating the execution of the operation currently executed.
Therefore, in this example, the electronic device detects whether the currently executed operation is a touch operation, and when the currently executed operation is the touch operation, the operation of outputting the fingerprint entry success information is terminated instead of terminating the current touch operation, so that after the fingerprint entry guidance information is output, the user does not have touch, and sees an unreasonable message of completing the fingerprint entry, which is beneficial to improving the rationality between the electronic device and the user interaction.
In one possible example, the storing the target picture obtained according to the accumulation reference operation as a fingerprint template includes:
determining the ratio of the semaphore of the target picture to the spatial domain noise obtained according to the accumulation reference operation;
and when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value, storing the target picture as a fingerprint template.
The specific implementation mode of determining the ratio of the semaphore of the target picture to the spatial noise obtained according to the accumulated benchmark operation comprises the steps of determining the semaphore of the target picture and the spatial noise, and then calculating the ratio of the semaphore to the spatial noise, wherein the specific calculation method of the semaphore of the target picture is to determine a first average value of gray values of pixel points of all convex points in a fingerprint image and determine a second average value of gray values of pixel points of all concave points, and the first average value and the second average value are subtracted to obtain the value of the semaphore; the specific calculation method of the airspace noise of the target picture is to determine the flatness of the concave points, and the airspace noise is determined according to the flatness, wherein the higher the flatness is, the smaller the airspace noise is, the lower the flatness is, and the larger the airspace noise is.
Therefore, in this example, the electronic device performs quality detection on the target picture according to the ratio of the semaphore of the target picture to the spatial noise, and when the ratio of the semaphore to the spatial noise is greater than a preset threshold, it indicates that the noise of the target picture is very small, and then the target picture is stored as the fingerprint template, which is beneficial to improving the reliability and accuracy of the fingerprint template.
Referring to fig. 3, fig. 3 is a schematic flowchart of a fingerprint template obtaining method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1, where the electronic device includes a display screen and an off-screen fingerprint module set in a preset area of the display screen, and as shown in the figure, the fingerprint template obtaining method includes:
s301, the electronic equipment collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures.
S302, the electronic equipment outputs fingerprint input guide information, and when touch control operation of a user for the preset area is detected, accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output.
And S303, the electronic equipment repeatedly executes preset operation until the completion of the execution of the accumulation reference operation is detected in the process of executing the preset operation for the Nth time.
S304, the electronic equipment determines whether the operation currently executed is a touch detection operation.
S305, if the touch operation is performed, the electronic equipment terminates the execution of the operation of outputting the fingerprint input success information in the preset operation, and outputs a fingerprint input completion prompt message.
And S306, if the touch operation is not the touch operation, stopping executing the currently executed operation, and outputting a prompt message for finishing fingerprint input.
S307, the electronic equipment determines the ratio of the semaphore of the target picture to the spatial noise, which is obtained according to the accumulation reference operation.
S308, when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value, the electronic equipment stores the target picture as a fingerprint template.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
In addition, the electronic equipment detects whether the operation currently executed is touch operation, when the operation is touch operation, the operation of outputting the fingerprint entry success information is terminated, the current touch operation is not terminated, the unreasonable message that the fingerprint entry is finished is avoided that a user does not have touch after the fingerprint entry guide information is output, and the rationality between the electronic equipment and the user interaction is favorably improved.
In addition, the electronic equipment detects the quality of the target picture according to the ratio of the semaphore of the target picture to the airspace noise, when the ratio of the semaphore to the airspace noise is larger than a preset threshold value, the noise of the target picture is very small, and then the target picture is stored as the fingerprint template, so that the reliability and the accuracy of the fingerprint template are improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a fingerprint template obtaining method provided by an embodiment of the present application, and the method is applied to the electronic device shown in fig. 1, where the electronic device includes an off-screen fingerprint module set in a preset area of a display screen, and as shown in the figure, the fingerprint template obtaining method includes:
s401, the electronic equipment collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures.
S402, the electronic equipment outputs fingerprint input guide information, and when the touch operation of the user for the preset area is detected, outputs the fingerprint input success information, and obtains the gray value of each pixel point in each fingerprint picture.
S403, the electronic device determines a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures according to the gray value of each pixel point in each fingerprint picture.
S404, the electronic equipment determines a second gray level mean value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures according to the gray level value of each pixel point in each fingerprint picture.
S405, the electronic equipment determines a plurality of target pixel points with the same first gray average value and the same second gray average value.
S406, the electronic device takes the first gray average values of the target pixel points as a noise average value, and removes the noise of any one of the fingerprint pictures according to the noise average value to obtain a target picture.
S407, the electronic equipment repeatedly executes preset operations until the target picture is detected to be obtained in the process of executing the preset operations for the Nth time, terminates execution of the first operation in the preset operations, and outputs prompt information for finishing fingerprint input;
wherein the preset operation comprises the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer.
S408, the electronic equipment stores the target picture as a fingerprint template.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
In addition, the electronic equipment determines the noise mean value through grouping a plurality of fingerprint pictures and the gray mean value of each pixel point of the first group of fingerprint pictures and the second group of fingerprint pictures, so that a target picture without noise is obtained, and the quality of a fingerprint template in the target picture is favorably improved.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application, the electronic device including a display screen and an underscreen fingerprint module set in a 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, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for:
continuously and repeatedly acquiring user fingerprint information to acquire a plurality of fingerprint pictures;
outputting fingerprint input guide information, and when detecting that a user performs touch operation on the preset area, executing accumulation benchmark operation according to the multiple fingerprint pictures and outputting fingerprint input success information;
repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting prompt information of finishing fingerprint input, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer;
and storing the target picture obtained according to the accumulation benchmark operation as a fingerprint template.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
In one possible example, in terms of performing an accumulation reference operation from the plurality of fingerprint pictures, the instructions in the program 521 are specifically configured to: acquiring the gray value of each pixel point in each fingerprint picture; and a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the gray value of each pixel point in each fingerprint picture; the second gray level average value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the gray level value of each pixel point in each fingerprint picture; the target pixel points are used for determining that the first gray average value and the second gray average value are the same; and the noise removing unit is used for taking the first gray average values of the target pixel points as noise average values and removing the noise of any one of the fingerprint pictures according to the noise average values to obtain the target picture.
In this possible example, in the aspect that the first mean grayscale value of each pixel point of the first group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the grayscale value of each pixel point in each fingerprint picture, the instructions in the program 521 are specifically configured to perform the following operations: dividing the first group of fingerprint pictures in the plurality of fingerprint pictures into at least two areas, wherein each area comprises at least two fingerprint pictures; the reference gray level mean value of each pixel point in at least two fingerprint pictures in each region is executed in parallel; and the first gray average value of each pixel point of the first group of fingerprint pictures is determined according to the reference gray average value of each region.
In one possible example, in terms of performing an accumulation reference operation from the plurality of fingerprint pictures, the instructions in the program 521 are specifically configured to: dividing the plurality of fingerprint pictures into at least two groups of fingerprint pictures; and means for performing a third operation and a fourth operation in parallel, the third operation being a step of performing the operation of accumulating the reference for at least one of the at least two sets of fingerprint pictures to obtain a first reference picture, the fourth operation being a step of performing the operation of accumulating the reference for fingerprint pictures other than the at least one set of fingerprint pictures of the at least two sets of fingerprint pictures to obtain a second reference picture; and means for determining the target picture from the first reference picture and the second reference picture.
In this possible example, in the aspect of determining the target picture from the first reference picture and the second reference picture, the instructions in the program 521 are specifically configured to: determining coordinates and gray values of each pixel point of a first fingerprint image in the first reference picture; the coordinate and the gray value of each pixel point of the second fingerprint image in the second reference picture are determined; and the target picture is generated according to the coordinates and the gray value of each pixel point of the first fingerprint image and the coordinates and the gray value of each pixel point of the second fingerprint image.
In one possible example, in terms of the terminating execution of the first operation of the preset operations, the instructions in the program 521 are specifically configured to perform the following operations: determining whether the currently executed operation is to detect the touch operation; if so, terminating the operation of outputting the fingerprint input success information in the preset operation; and if not, terminating the execution of the operation currently being executed.
In one possible example, in terms of storing the target picture obtained according to the accumulation reference operation as a fingerprint template, the instructions in the program 521 are specifically configured to perform the following operations: determining the ratio of the semaphore of the target picture to the spatial domain noise obtained according to the accumulation reference operation; and the fingerprint template storage unit is used for storing the target picture as a fingerprint template when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of a fingerprint template acquisition apparatus 600 according to an embodiment of the present application. This fingerprint template acquisition device 600 is applied to electronic equipment, electronic equipment include the display screen and for the fingerprint module under the screen that the preset area of display screen set up, this fingerprint template acquisition device 600 includes processing unit 601 and communication unit 602, wherein:
the processing unit 601 is configured to continuously acquire user fingerprint information multiple times through the communication unit 602 to obtain multiple fingerprint pictures; the fingerprint input guidance information is output through the communication unit 602, and when a touch operation of a user on the preset area is detected, an accumulation reference operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output through the communication unit 602; and the fingerprint input completion prompting device is used for repeatedly executing preset operations until the completion of the execution of the accumulation reference operation is detected in the process of executing the preset operation for the Nth time, terminating the execution of a first operation in the preset operations, and outputting fingerprint input completion prompting information through the communication unit 602, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer; and the fingerprint template is used for storing the target picture obtained according to the accumulation benchmark operation.
The fingerprint template obtaining apparatus 600 may further include a storage unit 603 for storing program codes and data of an electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in the embodiment of the application, the electronic device collects user fingerprint information continuously for multiple times to obtain multiple fingerprint pictures, and outputs fingerprint entry guide information, and when a touch operation of a user on a preset area is detected, an accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint entry success information is output, then, the preset operation is repeatedly executed until the completion of the accumulation benchmark operation is detected in the process of executing the preset operation for the nth time, a first operation in the preset operation is terminated, and fingerprint entry completion prompt information is output, wherein the preset operation includes the following operations: outputting fingerprint input guide information, detecting touch operation, outputting fingerprint input success information when the touch operation is detected, and finally storing a target picture obtained according to the accumulated benchmark operation as a fingerprint template. Therefore, after the electronic equipment acquires a plurality of fingerprint pictures, namely after the precision of accumulated reference calculation is ensured, in the process of outputting fingerprint input guide information for a plurality of times, the acquisition operation of the fingerprint pictures is not executed, but the operation of accumulated reference is executed, so that the time length for acquiring the fingerprint template is favorably shortened, meanwhile, a user mistakenly considers that the fingerprint input operation is currently carried out, the visual effect that the user thinks that the mobile phone is in a stuck state due to the fact that the accumulated reference operation is executed after all fingerprints are acquired by the user is avoided, and the fingerprint template input speed is favorably improved visually.
In one possible example, in terms of performing an accumulation reference operation according to the multiple fingerprint pictures, the processing unit 601 is specifically configured to: acquiring the gray value of each pixel point in each fingerprint picture; and a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the gray value of each pixel point in each fingerprint picture; the second gray level average value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the gray level value of each pixel point in each fingerprint picture; the target pixel points are used for determining that the first gray average value and the second gray average value are the same; and the noise removing unit is used for taking the first gray average values of the target pixel points as noise average values and removing the noise of any one of the fingerprint pictures according to the noise average values to obtain the target picture.
In this possible example, in the aspect that the first mean grayscale value of each pixel point of the first group of fingerprint pictures in the plurality of fingerprint pictures is determined according to the grayscale value of each pixel point in each fingerprint picture, the processing unit 601 is specifically configured to: dividing the first group of fingerprint pictures in the plurality of fingerprint pictures into at least two areas, wherein each area comprises at least two fingerprint pictures; the reference gray level mean value of each pixel point in at least two fingerprint pictures in each region is executed in parallel; and the first gray average value of each pixel point of the first group of fingerprint pictures is determined according to the reference gray average value of each region.
In one possible example, in terms of performing an accumulation reference operation according to the multiple fingerprint pictures, the processing unit 601 is specifically configured to: dividing the plurality of fingerprint pictures into at least two groups of fingerprint pictures; and means for performing a third operation and a fourth operation in parallel, the third operation being a step of performing the operation of accumulating the reference for at least one of the at least two sets of fingerprint pictures to obtain a first reference picture, the fourth operation being a step of performing the operation of accumulating the reference for fingerprint pictures other than the at least one set of fingerprint pictures of the at least two sets of fingerprint pictures to obtain a second reference picture; and means for determining the target picture from the first reference picture and the second reference picture.
In this possible example, in terms of the determining the target picture according to the first reference picture and the second reference picture, the processing unit 601 is specifically configured to: determining coordinates and gray values of each pixel point of a first fingerprint image in the first reference picture; the coordinate and the gray value of each pixel point of the second fingerprint image in the second reference picture are determined; and the target picture is generated according to the coordinates and the gray value of each pixel point of the first fingerprint image and the coordinates and the gray value of each pixel point of the second fingerprint image.
In one possible example, in terms of the termination of the execution of the first operation of the preset operations, the processing unit 601 is specifically configured to: determining whether the currently executed operation is to detect the touch operation; and if yes, terminating the operation of outputting the fingerprint entry success information through the communication unit 602 in the preset operation; and if not, terminating the execution of the operation currently being executed.
In one possible example, in terms of storing the target picture obtained according to the accumulation reference operation as a fingerprint template, the processing unit 601 is specifically configured to: determining the ratio of the semaphore of the target picture to the spatial domain noise obtained according to the accumulation reference operation; and the fingerprint template storage unit is used for storing the target picture as a fingerprint template when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. The fingerprint template obtaining method is applied to electronic equipment, the electronic equipment comprises a display screen and an under-screen fingerprint module which is arranged relative to a preset area of the display screen, and the method comprises the following steps:
continuously and repeatedly acquiring user fingerprint information to acquire a plurality of fingerprint pictures;
outputting fingerprint input guide information, and when detecting that a user performs touch operation on the preset area, executing accumulation benchmark operation according to the multiple fingerprint pictures and outputting fingerprint input success information;
repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting prompt information of finishing fingerprint input, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer;
storing a target picture obtained according to the accumulation benchmark operation as a fingerprint template;
wherein the performing an accumulation benchmark operation according to the plurality of fingerprint pictures comprises:
acquiring the gray value of each pixel point in each fingerprint picture; determining a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures according to the gray value of each pixel point in each fingerprint picture; determining a second gray level average value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures according to the gray level value of each pixel point in each fingerprint picture; determining a plurality of target pixel points with the same first gray average value and the same second gray average value; and taking the first gray average values of the target pixel points as a noise average value, and removing the noise of any one of the fingerprint pictures according to the noise average value to obtain the target picture.
2. The method according to claim 1, wherein said determining a first mean gray level value of each pixel point of a first group of fingerprint pictures of the plurality of fingerprint pictures according to the gray level value of each pixel point of each fingerprint picture comprises:
dividing the first group of fingerprint pictures in the plurality of fingerprint pictures into at least two areas, wherein each area comprises at least two fingerprint pictures;
executing the reference gray average value of each pixel point in at least two fingerprint pictures in each region in parallel;
and determining the first gray average value of each pixel point of the first group of fingerprint pictures according to the reference gray average value of each region.
3. The method according to any one of claims 1-2, wherein the storing the target picture obtained according to the accumulated reference operation as a fingerprint template comprises: determining the ratio of the semaphore of the target picture to the spatial domain noise obtained according to the accumulation reference operation;
and when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value, storing the target picture as a fingerprint template.
4. The fingerprint template obtaining method is applied to electronic equipment, the electronic equipment comprises a display screen and an under-screen fingerprint module which is arranged relative to a preset area of the display screen, and the method comprises the following steps:
continuously and repeatedly acquiring user fingerprint information to acquire a plurality of fingerprint pictures;
outputting fingerprint input guide information, and when detecting that a user performs touch operation on the preset area, executing accumulation benchmark operation according to the multiple fingerprint pictures and outputting fingerprint input success information;
repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting prompt information of finishing fingerprint input, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer;
storing a target picture obtained according to the accumulation benchmark operation as a fingerprint template;
wherein the performing an accumulation benchmark operation according to the plurality of fingerprint pictures comprises: dividing the plurality of fingerprint pictures into at least two groups of fingerprint pictures; executing a third operation and a fourth operation in parallel, wherein the third operation is to execute the operation of accumulating the benchmark for at least one of the at least two groups of fingerprint pictures to acquire a first reference picture, and the fourth operation is to execute the operation of accumulating the benchmark for the fingerprint pictures except the at least one group of fingerprint pictures in the at least two groups of fingerprint pictures to acquire a second reference picture; determining the target picture according to the first reference picture and the second reference picture.
5. The method of claim 4, wherein the determining the target picture from the first reference picture and the second reference picture comprises:
determining coordinates and gray values of each pixel point of a first fingerprint image in the first reference picture;
determining coordinates and gray values of each pixel point of a second fingerprint image in the second reference picture;
and generating the target picture according to the coordinates and the gray value of each pixel point of the first fingerprint image and the coordinates and the gray value of each pixel point of the second fingerprint image.
6. The method of claim 4, wherein the terminating execution of a first operation of the preset operations comprises:
determining whether the currently executed operation is to detect the touch operation;
if so, terminating the operation of outputting the fingerprint input success information in the preset operation;
if not, terminating the execution of the operation currently executed.
7. The method according to any one of claims 4-6, wherein the storing the target picture obtained according to the accumulated reference operation as the fingerprint template comprises:
determining the ratio of the semaphore of the target picture to the spatial domain noise obtained according to the accumulation reference operation;
and when the ratio of the semaphore of the target picture to the spatial noise is detected to be larger than a preset threshold value, storing the target picture as a fingerprint template.
8. A fingerprint template acquisition device is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a display screen and an under-screen fingerprint module which is arranged corresponding to a preset area of the display screen, the fingerprint template acquisition device comprises a processing unit and a communication unit, wherein,
the processing unit is used for continuously collecting user fingerprint information for multiple times through the communication unit to obtain multiple fingerprint pictures; the fingerprint input guide information is output through the communication unit, and when touch operation of a user for the preset area is detected, accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output through the communication unit; and the system is used for repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting fingerprint entry completion prompt information through the communication unit, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer; the fingerprint template is used for storing a target picture obtained according to the accumulation benchmark operation as a fingerprint template;
wherein the performing an accumulation benchmark operation according to the plurality of fingerprint pictures comprises:
acquiring the gray value of each pixel point in each fingerprint picture; determining a first gray average value of each pixel point of a first group of fingerprint pictures in the plurality of fingerprint pictures according to the gray value of each pixel point in each fingerprint picture; determining a second gray level average value of each pixel point of a second group of fingerprint pictures in the plurality of fingerprint pictures according to the gray level value of each pixel point in each fingerprint picture; determining a plurality of target pixel points with the same first gray average value and the same second gray average value; and taking the first gray average values of the target pixel points as a noise average value, and removing the noise of any one of the fingerprint pictures according to the noise average value to obtain the target picture.
9. A fingerprint template acquisition device is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a display screen and an under-screen fingerprint module which is arranged corresponding to a preset area of the display screen, the fingerprint template acquisition device comprises a processing unit and a communication unit, wherein,
the processing unit is used for continuously collecting user fingerprint information for multiple times through the communication unit to obtain multiple fingerprint pictures; the fingerprint input guide information is output through the communication unit, and when touch operation of a user for the preset area is detected, accumulation benchmark operation is executed according to the multiple fingerprint pictures, and fingerprint input success information is output through the communication unit; and the system is used for repeatedly executing preset operations until the completion of the execution of the accumulation benchmark operation is detected in the process of executing the preset operations for the Nth time, terminating the execution of the first operation in the preset operations, and outputting fingerprint entry completion prompt information through the communication unit, wherein the preset operations comprise the following operations: outputting the fingerprint input guide information, detecting the touch operation, and outputting the fingerprint input success information when the touch operation is detected, wherein the first operation comprises any one of the preset operations, and N is a positive integer; the fingerprint template is used for storing a target picture obtained according to the accumulation benchmark operation as a fingerprint template;
wherein the performing an accumulation benchmark operation according to the plurality of fingerprint pictures comprises: dividing the plurality of fingerprint pictures into at least two groups of fingerprint pictures; executing a third operation and a fourth operation in parallel, wherein the third operation is to execute the operation of accumulating the benchmark for at least one of the at least two groups of fingerprint pictures to acquire a first reference picture, and the fourth operation is to execute the operation of accumulating the benchmark for the fingerprint pictures except the at least one group of fingerprint pictures in the at least two groups of fingerprint pictures to acquire a second reference picture; determining the target picture according to the first reference picture and the second reference picture.
10. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910126486.6A 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device Active CN109886189B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201910126486.6A CN109886189B (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device
CN202110536799.6A CN113239817A (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device
PCT/CN2020/071849 WO2020168861A1 (en) 2019-02-20 2020-01-13 Method for obtaining fingerprint template and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910126486.6A CN109886189B (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110536799.6A Division CN113239817A (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device

Publications (2)

Publication Number Publication Date
CN109886189A CN109886189A (en) 2019-06-14
CN109886189B true CN109886189B (en) 2021-06-04

Family

ID=66928590

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910126486.6A Active CN109886189B (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device
CN202110536799.6A Pending CN113239817A (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110536799.6A Pending CN113239817A (en) 2019-02-20 2019-02-20 Fingerprint template acquisition method and related device

Country Status (2)

Country Link
CN (2) CN109886189B (en)
WO (1) WO2020168861A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886189B (en) * 2019-02-20 2021-06-04 Oppo广东移动通信有限公司 Fingerprint template acquisition method and related device
CN111443934B (en) * 2020-03-31 2023-05-16 广州市百果园信息技术有限公司 Gray scale user determination method, device, equipment and storage medium
CN117649684A (en) * 2022-09-02 2024-03-05 荣耀终端有限公司 Fingerprint identification method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942540A (en) * 2014-04-10 2014-07-23 杭州景联文科技有限公司 False fingerprint detection algorithm based on curvelet texture analysis and SVM-KNN classification
CN105956448A (en) * 2016-05-27 2016-09-21 广东欧珀移动通信有限公司 Fingerprint unlocking method and apparatus, and user terminal
CN107169479A (en) * 2017-06-26 2017-09-15 西北工业大学 Intelligent mobile equipment sensitive data means of defence based on fingerprint authentication
CN107179871A (en) * 2017-04-28 2017-09-19 广东欧珀移动通信有限公司 Fingerprint recognition region display methods and Related product
CN108205663A (en) * 2017-12-29 2018-06-26 李文清 A kind of vehicle startup system based on fingerprint recognition
CN108764015A (en) * 2015-10-19 2018-11-06 广东欧珀移动通信有限公司 A kind of acquisition methods, device and the mobile terminal of fingerprint image to be identified
CN109241859A (en) * 2018-08-13 2019-01-18 Oppo广东移动通信有限公司 Fingerprint identification method and Related product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105659253B (en) * 2014-08-25 2020-09-04 华为技术有限公司 Fingerprint extraction method and device
KR101639986B1 (en) * 2015-10-07 2016-07-15 크루셜텍 (주) Fingerprint information processing method and apparatus for speed improvement of fingerprint registration and authentification
US9836592B2 (en) * 2015-11-19 2017-12-05 Hewlett-Packard Development Company, L.P. Fingerprint scans with power buttons
CN107025419B (en) * 2016-01-29 2020-11-10 北京小米移动软件有限公司 Fingerprint template inputting method and device
CN107609375B (en) * 2016-05-30 2020-01-21 Oppo广东移动通信有限公司 Unlocking control method and related product
CN107025434A (en) * 2017-03-08 2017-08-08 广东欧珀移动通信有限公司 A kind of fingerprint register method and mobile terminal
CN108053371B (en) * 2017-11-30 2022-04-19 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium
CN109886189B (en) * 2019-02-20 2021-06-04 Oppo广东移动通信有限公司 Fingerprint template acquisition method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942540A (en) * 2014-04-10 2014-07-23 杭州景联文科技有限公司 False fingerprint detection algorithm based on curvelet texture analysis and SVM-KNN classification
CN108764015A (en) * 2015-10-19 2018-11-06 广东欧珀移动通信有限公司 A kind of acquisition methods, device and the mobile terminal of fingerprint image to be identified
CN105956448A (en) * 2016-05-27 2016-09-21 广东欧珀移动通信有限公司 Fingerprint unlocking method and apparatus, and user terminal
CN107179871A (en) * 2017-04-28 2017-09-19 广东欧珀移动通信有限公司 Fingerprint recognition region display methods and Related product
CN107169479A (en) * 2017-06-26 2017-09-15 西北工业大学 Intelligent mobile equipment sensitive data means of defence based on fingerprint authentication
CN108205663A (en) * 2017-12-29 2018-06-26 李文清 A kind of vehicle startup system based on fingerprint recognition
CN109241859A (en) * 2018-08-13 2019-01-18 Oppo广东移动通信有限公司 Fingerprint identification method and Related product

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于MMX技术的指纹图像并行处理算法;谢红芝等;《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》;20050715(第3期);I136-18 *
指纹图像的预处理算法;孙以雷等;《计算机测量与控制》;20060525;第14卷(第5期);第655-657页 *

Also Published As

Publication number Publication date
WO2020168861A1 (en) 2020-08-27
CN113239817A (en) 2021-08-10
CN109886189A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109800731B (en) Fingerprint input method and related device
CN109886189B (en) Fingerprint template acquisition method and related device
CN102460507B (en) Biometric authentication device, biometric authentication method and computer program for biometric authentication
EP2866170B1 (en) Image processing device and image processing method
KR101581954B1 (en) Apparatus and method for a real-time extraction of target's multiple hands information
CN109901754B (en) Data self-calibration method and related device
CN108345907B (en) Recognition method, augmented reality device, and storage medium
CN110209273A (en) Gesture identification method, interaction control method, device, medium and electronic equipment
WO2020156033A1 (en) Fingerprint verification method and related apparatus
CN109640066B (en) Method and device for generating high-precision dense depth image
CN105718031A (en) Gesture recognition method and device
CN106203326B (en) A kind of image processing method, device and mobile terminal
CN107272899B (en) VR (virtual reality) interaction method and device based on dynamic gestures and electronic equipment
CN112802081B (en) Depth detection method and device, electronic equipment and storage medium
CN106406638B (en) Touch point contour generation method and equipment
CN113052754B (en) Method and device for blurring picture background
CN112532884B (en) Identification method and device and electronic equipment
CN106682669A (en) Image processing method and mobile terminal
CN115578483A (en) Method, device and equipment for generating strip-diffuse image and computer storage medium
CN110210397B (en) Fingerprint input method and related equipment
CN107563262A (en) Direction air navigation aid, device and fingerprint image sensor based on fingerprint recognition
CN111179332B (en) Image processing method and device, electronic equipment and storage medium
CN113689378A (en) Method and device for judging accurate positioning of test strip, storage medium and terminal
CN112348112A (en) Training method and device for image recognition model and terminal equipment
CN112771521A (en) Operation response method, operation response device and mobile terminal

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