WO2023220875A1 - 指纹数据获取方法和装置、电子设备、可读存储介质 - Google Patents

指纹数据获取方法和装置、电子设备、可读存储介质 Download PDF

Info

Publication number
WO2023220875A1
WO2023220875A1 PCT/CN2022/093117 CN2022093117W WO2023220875A1 WO 2023220875 A1 WO2023220875 A1 WO 2023220875A1 CN 2022093117 W CN2022093117 W CN 2022093117W WO 2023220875 A1 WO2023220875 A1 WO 2023220875A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
fingerprint
images
latitudinal
meridional
Prior art date
Application number
PCT/CN2022/093117
Other languages
English (en)
French (fr)
Inventor
郝宁
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN202280004119.9A priority Critical patent/CN117413538A/zh
Priority to PCT/CN2022/093117 priority patent/WO2023220875A1/zh
Publication of WO2023220875A1 publication Critical patent/WO2023220875A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present disclosure relates to the field of data processing technology, and in particular to a fingerprint data acquisition method and device, electronic equipment, and readable storage media.
  • the fingerprint sensor detects the user's pressing operation, it can collect the user's fingerprint image, use the above fingerprint image for fingerprint verification, and start the device after the verification is passed, thereby simplifying user operations. Effect.
  • the electronic device will save at least one fingerprint image template as a reference image for the above fingerprint verification process.
  • the above-mentioned fingerprint image template contains the original fingerprint ridge data of the fingerprint. If the fingerprint image template is leaked, personal information will be easily leaked and the user experience will be reduced.
  • the present disclosure provides a fingerprint data acquisition method and device, electronic equipment, and readable storage media to solve the deficiencies of related technologies.
  • a fingerprint data acquisition method including:
  • a first number of latitudinal images and a second number of meridional images are obtained; the size of the first number of latitudinal image splicing images is less than or equal to the size of the fingerprint area; the second number The size of the number of meridional image stitching images is smaller than or equal to the size of the fingerprint area;
  • the characteristic data of the target fingerprint image is used to characterize the fingerprint data of this fingerprint input operation.
  • acquiring a first number of latitudinal images and a second number of meridional images includes:
  • the method before acquiring the first number of latitudinal images and the second number of meridional images, the method further includes:
  • Obtain a preset quantity threshold which refers to the minimum number of overlapping areas in the target fingerprint image; the overlapping area refers to the overlapping area of the latitudinal image and the meridional image;
  • the first quantity and the second quantity are determined according to the preset quantity threshold, and the product of the first quantity and the second quantity is equal to or greater than the preset quantity threshold.
  • obtain preset quantity thresholds including:
  • the preset number threshold corresponding to the security level is obtained.
  • acquiring a first number of latitudinal images and a second number of meridional images includes:
  • the initial fingerprint image is divided horizontally to obtain a first number of latitudinal images, and the initial fingerprint image is divided vertically to obtain a second number of meridional images.
  • obtaining the target fingerprint image based on the first number of latitudinal images and the second number of meridional images includes:
  • each weft image and each meridional image are woven to obtain the target fingerprint image
  • the first distance is the distance between two adjacent weft images
  • the The second distance is the distance between two adjacent meridional images
  • the target fingerprint image includes an overlapping area of each latitudinal image and each meridional image.
  • obtaining the target fingerprint image based on the first number of latitudinal images and the second number of meridional images includes:
  • each weft image between each warp image Sequentially weaving each weft image between each warp image to obtain a woven image;
  • the woven image includes an overlapping area of each weft image and each warp image;
  • the woven image is determined to be the target fingerprint image.
  • the overlapping area in the target fingerprint image includes a new fingerprint after the fingerprints in the latitudinal image and the fingerprint in the meridional image overlap, or the top layer of the latitudinal image and the meridional image The location of the fingerprint of the image.
  • the weaving method includes at least one of the following: square hole weaving, hexagonal hole weaving, trapezoidal weaving, and rice-shaped weaving. Woven, zigzag woven, circular woven, triangle woven.
  • obtaining the target fingerprint image based on the first number of latitudinal images and the second number of meridional images includes:
  • the target fingerprint image is obtained by weaving each weft image between the second number of meridional images in sequence, and the target fingerprint image includes an overlapping area of each weft image and each meridional image.
  • the characteristic data of the target fingerprint image is used for the fingerprint to be recognized in the fingerprint recognition process or as a fingerprint template.
  • a fingerprint data acquisition device including:
  • a latitude and longitude image acquisition module configured to acquire a first number of latitudinal images and a second number of latitudinal images in response to detecting a fingerprint input operation; the size of the first number of latitudinal image splicing images is less than or equal to the fingerprint The size of the area; the size of the second number of meridional image splicing images is less than or equal to the size of the fingerprint area;
  • a target image acquisition module configured to acquire a target fingerprint image based on the first number of latitudinal images and the second number of meridional images
  • a fingerprint data acquisition module is used to acquire characteristic data of the target fingerprint image, where the characteristic data is used to characterize the fingerprint data of this fingerprint input operation.
  • the longitude and latitudinal image acquisition module includes:
  • the latitudinal image acquisition submodule is used to open the first number of row grouped pixels in the fingerprint sensor of the electronic device and obtain the first number of latitudinal images;
  • the meridional image acquisition submodule is used to turn on a second number of pixels grouped in columns in the fingerprint sensor to obtain a second number of meridional images.
  • the device also includes:
  • a threshold acquisition module configured to obtain a preset quantity threshold, which refers to the minimum number of overlapping areas in the target fingerprint image; the overlapping area refers to the overlapping area of the latitudinal image and the meridional image;
  • a quantity acquisition module configured to determine the first quantity and the second quantity according to the preset quantity threshold, and the product of the first quantity and the second quantity is equal to or greater than the preset quantity threshold.
  • the threshold acquisition module includes:
  • the level acquisition sub-module is used to obtain the security level of the current usage scenario of the electronic device
  • the threshold acquisition sub-module is used to obtain the preset quantity threshold corresponding to the security level based on the corresponding relationship between the preset security level and the quantity threshold of the overlapping area in the target fingerprint image.
  • the longitude and latitudinal image acquisition module includes:
  • the initial image acquisition submodule is used to acquire an initial fingerprint image
  • An initial image segmentation submodule is used to segment the initial fingerprint image horizontally to obtain a first number of latitudinal images, and to segment the initial fingerprint image vertically to obtain a second number of meridional images.
  • the target image acquisition module includes:
  • the target image acquisition submodule is used to weave each weft image and each meridional image based on the first distance and the second distance to obtain the target fingerprint image.
  • the first distance is the two adjacent weft images.
  • the distance between images, the second distance is the distance between two adjacent meridional images, and the target fingerprint image includes the overlapping area of each latitudinal image and each meridional image.
  • the target image acquisition module includes:
  • the image weaving sub-module is used to weave each weft image and each warp image to obtain a woven image; the woven image includes the overlapping area of each weft image and each warp image;
  • Quantity acquisition submodule used to acquire the number of overlapping areas in the woven image
  • An image acquisition sub-module configured to trigger the image weaving sub-module when the number of overlapping areas is less than the preset quantity threshold; when the number of overlapping areas exceeds the preset quantity threshold, determine that the weaving sub-module
  • the texture image is the target fingerprint image.
  • the overlapping area in the target fingerprint image includes a new fingerprint after the fingerprints in the latitudinal image and the fingerprint in the meridional image overlap, or the top layer of the latitudinal image and the meridional image The location of the fingerprint of the image.
  • the weaving method includes at least one of the following: square hole weaving, hexagonal hole weaving, trapezoidal weaving, and rice-shaped weaving. Woven, zigzag woven, circular woven, triangle woven.
  • the characteristic data of the target fingerprint image is used for the fingerprint to be recognized in the fingerprint recognition process or as a fingerprint template.
  • an electronic device including: a memory and a processor;
  • the memory is used to store computer programs executable by the processor
  • the processor is used to execute the computer program in the memory to implement the above method.
  • a non-transitory computer-readable storage medium which can implement the above method when an executable computer program in the storage medium is executed by a processor.
  • the solution provided by the embodiments of the present disclosure can obtain a first number of latitudinal images and a second number of meridional images in response to detecting a fingerprint input operation; the first number of latitudinal images are spliced into images The size is less than or equal to the size of the fingerprint area; the size of the second number of meridional image stitching images is less than or equal to the size of the fingerprint area; then, according to the first number of latitudinal images and the second number of The target fingerprint image is acquired through the meridian image; then, characteristic data of the target fingerprint image is obtained, and the characteristic data is used to characterize the fingerprint data of this fingerprint input operation.
  • the target fingerprint image is obtained through the meridional image and the latitudinal image, and the characteristic data of the target fingerprint image is used to represent the fingerprint data.
  • the original fingerprint information which can avoid the leakage of user fingerprint information and improve the use of fingerprint recognition functions.
  • the security is conducive to improving the user experience.
  • Figure 1 is a flow chart of a method for obtaining fingerprint data according to an exemplary embodiment.
  • Figure 2 is a schematic diagram illustrating another effect of acquiring a meridional image and a latitudinal image according to an exemplary embodiment.
  • Figure 3 is a schematic diagram illustrating another effect of acquiring a meridional image and a latitudinal image according to an exemplary embodiment.
  • Figure 4 is a flowchart of obtaining a first quantity and a second quantity according to an exemplary embodiment.
  • Figure 5 is a flowchart illustrating a method of obtaining a preset quantity threshold according to an exemplary embodiment.
  • Fig. 6a is a flowchart of obtaining a target fingerprint image according to an exemplary embodiment.
  • Figure 6b is another flowchart of acquiring a target fingerprint image according to an exemplary embodiment.
  • FIG. 7 is a schematic diagram of a four-corner hole type woven image according to an exemplary embodiment.
  • FIG. 8 is a schematic diagram of weaving images corresponding to different weaving methods according to an exemplary embodiment.
  • FIG. 9 is a flowchart of obtaining a target fingerprint image according to an exemplary embodiment.
  • FIG. 10 is a schematic diagram of obtaining feature points in an overlapping area according to an exemplary embodiment, in which end points are shown in (a) of FIG. 10 and intersection points are shown in (b) of FIG. 10 .
  • Figure 11 is a schematic diagram of a fingerprint model according to an exemplary embodiment.
  • Figure 12 is a block diagram of a fingerprint data acquisition device according to an exemplary embodiment.
  • FIG. 13 is a block diagram of an electronic device according to an exemplary embodiment.
  • embodiments of the present disclosure provide a fingerprint data acquisition method, which can be applied to electronic devices equipped with fingerprint sensors, such as smart phones, tablet computers, digital terminals, personal computers, and so on.
  • the inventive concept of the present disclosure is to rearrange and combine multiple acquired latitudinal images and meridional images into a new image, taking into account that fingerprints in the overlapping areas of the latitudinal and meridional images in the new image will overlap to generate new intersection points , therefore using the new intersection point and the original intersection point as the feature points in the new image, there is no need to include the original fingerprint, which can avoid fingerprint leakage and help improve the experience of using the fingerprint recognition function.
  • FIG. 1 is a flow chart of a method for obtaining fingerprint data according to an exemplary embodiment.
  • a fingerprint data acquisition method includes steps 11 to 13.
  • step 11 in response to detecting the fingerprint input operation, a first number of latitudinal images and a second number of meridional images are acquired.
  • the electronic device can detect the user's fingerprint input operation. For example, when it is detected that the display screen is pressed and the pressed position coincides with the position of the fingerprint icon, the electronic device can determine that the fingerprint input operation is detected.
  • the electronic device may acquire a first number of latitudinal images and a second number of meridional images in response to detecting a fingerprint input operation.
  • the electronic device may acquire an initial fingerprint image.
  • a fingerprint sensor in an electronic device can collect a fingerprint image and send the fingerprint image to the processor of the electronic device, that is, the electronic device can obtain the above-mentioned initial fingerprint image.
  • the above initial fingerprint image can be a RAW image or a PDF image
  • the electronic device may perform horizontal segmentation on the initial fingerprint image to obtain a first number of latitudinal images, and perform vertical segmentation on the initial fingerprint image to obtain a second number of meridional images.
  • the horizontal segmentation may mean that the electronic device divides the pixels into a first number of groups according to the row direction (that is, the width direction of the display screen of the electronic device), and the pixels in each group constitute a latitudinal image.
  • Vertical segmentation may mean that the electronic device divides the pixels into a second number of groups according to the column direction (that is, the height direction of the display screen of the electronic device), and the pixels in each group constitute a meridional image.
  • the size of the first number of latitudinal image splicing images is less than or equal to the initial fingerprint image (or the size of the fingerprint area during the fingerprint input operation) .
  • the size of the second number of meridional image splicing images is smaller than or equal to the initial fingerprint image (or the size of the fingerprint area during the fingerprint input operation).
  • the initial fingerprint image can be divided into latitudinal images or meridional images of different sizes according to requirements; and when subsequent fingerprint data acquisition fails, the above initial fingerprint image can be reused without the need for the user to re-enter, which is conducive to improving the user experience. .
  • the electronic device can turn on a first number of row-grouped pixels in the fingerprint sensor of the electronic device to obtain a first number of latitudinal images; and turn on a second number of column-grouped pixels in the fingerprint sensor, Obtain the second number of meridional images.
  • the meridional image and the latitudinal image can be directly obtained, which reduces the time spent on segmenting the image and helps improve the real-time performance of obtaining fingerprint data.
  • the electronic device may obtain the preset first quantity and the second quantity.
  • the electronic device may group the fingerprint sensor pixels in the electronic device by rows to obtain a first number of groups, and group the fingerprint sensor pixels in the electronic device by columns to obtain a second number of groups.
  • the electronic device can turn on the pixels in each group in turn to obtain a first number of latitudinal images and a second number of meridional images. In this way, in this example, the meridional image and the latitudinal image can be directly obtained, which reduces the time spent on segmenting the image and helps improve the real-time performance of obtaining fingerprint data.
  • the electronic device may obtain a preset quantity threshold, which refers to the minimum number of overlapping areas in the target fingerprint image.
  • the above-mentioned overlapping area refers to the overlapping area of the latitudinal image and the meridional image.
  • the fingerprint template (or fingerprint data to be recognized) needs to have enough feature points to obtain accurate recognition results. Therefore, in this example, the above-mentioned preset quantity threshold is preset to ensure There are enough overlapping areas in subsequent target fingerprint images.
  • the overlapping area in the target fingerprint image includes fingerprints.
  • the fingerprints may include new fingerprints after overlapping the fingerprints in the latitudinal image and the fingerprints in the meridional image, or the overlapping areas in the latitudinal image and the meridional image.
  • the source of the fingerprint in the overlapping area can be selected according to the specific scene, and the corresponding solution falls within the protection scope of the present disclosure.
  • the electronic device may determine the first quantity and the second quantity according to the preset quantity threshold, and the product of the first quantity and the second quantity is equal to or greater than the preset quantity.
  • the preset quantity threshold is L
  • the first quantity is m
  • the second quantity is n
  • L ⁇ m*n or L m*n.
  • the above-mentioned preset quantity threshold can be a fixed value or a dynamic value. Taking the preset quantity threshold as a dynamic value as an example, see Figure 5.
  • the electronic device can obtain the security level of the current usage scenario of the electronic device, such as high security level, medium security level or low security level.
  • the electronic device can obtain the corresponding relationship between the preset security level and the number threshold of the overlapping area in the target fingerprint image. For example, when the security level is high, the number threshold of the corresponding overlapping area is large, which is the characteristic point in the target fingerprint image.
  • the electronic device can obtain security The preset quantity threshold corresponding to the level.
  • the preset quantity threshold is determined by the security level.
  • the security level is high, the preset quantity threshold is large or when the security level is low, the preset quantity threshold is small to meet the needs of different usage scenarios.
  • this example can achieve the effect of security hierarchical management. In scenarios with lower security levels, fewer feature points are used for matching and identification, speeding up the unlocking time and reducing power consumption while ensuring security; In higher scenarios, more feature points are used for matching and recognition to improve safety.
  • step 12 a target fingerprint image is obtained based on the first number of latitudinal images and the second number of meridional images.
  • the electronic device may obtain the target fingerprint image based on the first number of latitudinal images and the second number of meridional images. See Figure 6a, which may include steps 611 to 612.
  • the electronic device may obtain a preset first distance between two adjacent latitudinal images and a preset second distance between two adjacent meridional images.
  • the first distance and the second distance may also be called weaving density.
  • the first number is m
  • the second number is n
  • the latitudinal images include C1 ⁇ Cm
  • the meridional images include P1 ⁇ Pn
  • the first distance refers to the distance X between the latitudinal images Ci and Ci+1
  • the second distance refers to the distance Y between the meridional images Pj and Pj+1
  • i ranges from 1 to m-1
  • j ranges from 1 to n-1
  • X is greater than or equal to 0
  • Y is greater than or equal to 0.
  • both X and Y are smaller than the size of the fingerprint area.
  • the first distance and the second distance may be based on a preset security level, or the first distance and the second distance may be default values.
  • the electronic device may weave each weft image and each warp image to obtain a woven image based on the first distance and the second distance; the woven image includes each weft image and each warp image. to the overlapping area of the image.
  • an overlapping area of the latitudinal image C1 and the meridional image P1 is Pc.
  • the weaving method can be to weave one weft image and one warp image and then weave the next weft image and warp image, until all the weft images and warp images are woven. to the image.
  • a second number of meridional images may be fixed first, and then each weft image may be weaved into the second number of meridional images in sequence to obtain the target fingerprint image.
  • Technical personnel can select an appropriate weaving method according to specific scenarios, and the corresponding solution falls within the protection scope of the present disclosure.
  • the weaving method in step 61 may include at least one of the following: square hole weaving, hexagonal hole weaving, trapezoidal weaving, rice-shaped weaving, zigzag weaving, Round weave, triangle weave.
  • the effect of the four-corner hole type woven fabric corresponding to the woven image is shown in Figure 7
  • the effect of the hexagonal hole type woven fabric corresponding to the woven image is shown in Figure 8 (a)
  • the effect of the trapezoidal hole type woven fabric corresponding to the woven image As shown in (b) of Figure 8, the effect of the rice-shaped weaving corresponding to the woven image is shown in (c) of Figure 8
  • the effect of circular weaving corresponding to the woven image is shown in (e) of Figure 8, and the effect of triangular weaving corresponding to the woven image is shown in (f) of Figure 8.
  • Technicians can select an appropriate shuttle strengthening method according to specific scenarios, such as selecting a solution in which the weft image and the meridional image can form an overlapping area or a solution using fewer weaving times to obtain more overlapping areas.
  • the corresponding solution falls within the scope of the present disclosure. protected range.
  • the electronic device may obtain the target fingerprint image based on the first number of latitudinal images and the second number of meridional images. See Figure 6b, which may include steps 61 to 64.
  • the electronic device may obtain a preset first distance between two adjacent latitudinal images and a preset second distance between two adjacent meridional images.
  • the first distance and the second distance may also be called weaving density.
  • the first distance and the second distance may be based on a preset security level, or the first distance and the second distance may be default values.
  • the first distance and the second distance may be greater than or equal to 0.
  • the electronic device may weave each weft image and each warp image to obtain a woven image based on the first distance and the second distance; the woven image includes each weft image and each warp image. to the overlapping area of the image.
  • the weaving method in step 61 may include at least one of the following: square hole weaving, hexagonal hole weaving, trapezoidal weaving, rice-shaped weaving, zigzag weaving, Round weave, triangle weave.
  • the electronic device may obtain the number of overlapping areas in the woven image.
  • step 64 the electronic device may continue to perform the step of weaving each weft image and each warp image when the number of overlapping areas is less than the preset quantity threshold, that is, continue to perform steps 62 to 64. ; When the number of overlapping areas exceeds the preset number threshold, the electronic device may determine that the woven image is the target fingerprint image.
  • the iterative steps of steps 62 to 64 can be as shown in Figure 9, where the first number is m, the second number is n, the latitudinal image includes C1 ⁇ Cm, and the meridional image includes P1 ⁇ Pn , the first distance refers to the distance X between adjacent latitudinal images, the second distance refers to the distance Y between adjacent meridional images, i ranges from 1 to m-1, and j ranges from 1 ⁇ n-1, X is greater than or equal to 0, Y is greater than or equal to 0.
  • the process shown in Figure 9 is as follows: Obtain each weft image and each warp image; woven the warp image and weft image: splice one warp image according to the warp direction, and splice one weft image according to the weft direction , wherein during the splicing process of the warp image and the weft image, the weaving densities X and Y (i.e., the first distance and the second distance) of the warp image and the weft image are controlled; once weaving is completed, in this process The intersection between the warp image and the weft image in the secondary weaving generates a new overlapping area; determine whether the number of overlapping areas is greater than the preset quantity threshold, and if so, end the process and determine the woven image completed this time. is the target fingerprint image, otherwise the warp and weft images are woven again.
  • obtaining a target fingerprint image containing an overlapping area whose number exceeds the preset number threshold is to obtain a valid fingerprint image, thereby ensuring that valid fingerprint data can be obtained in subsequent steps.
  • this embodiment can obtain the target fingerprint image in one fingerprint input operation, from the existing 10 to 15 times to 1 to 3 times, or even 1 time, which can reduce the number of fingerprint input operations and Reduce operation time and help improve user experience.
  • the electronic device may acquire the target fingerprint image based on the first number of latitudinal images and the second number of meridional images. For example, the electronic device can weave each weft image and each meridional image to obtain a target fingerprint image, where the target fingerprint image includes an overlapping area of each weft image and each meridional image. In this way, this embodiment can directly weave all the weft images into all the meridional images. At this time, the number of overlapping areas in the target fingerprint image exceeds the preset number threshold, which can ensure that valid fingerprint data can be obtained in subsequent steps.
  • the electronic device can sequentially weave each latitudinal image between each longitudinal image based on the first distance and the second distance to obtain the target fingerprint image.
  • the above-mentioned first distance is the distance between two adjacent latitudinal images
  • the second distance is the distance between two adjacent meridional images.
  • the target fingerprint image includes each latitudinal image and each meridional image. overlapping area.
  • the number of overlapping areas in the target fingerprint image is equal to the product of the number of latitudinal images and the number of meridional images, that is, the product of the first number and the second number. In this way, this embodiment can directly weave all the weft images into all the meridional images.
  • the number of overlapping areas in the target fingerprint image exceeds the preset number threshold, which can ensure that valid fingerprint data can be obtained in subsequent steps.
  • the electronic device can sequentially weave each weft image to each warp image to obtain a woven image.
  • the woven image includes the overlapping area of each weft image and each warp image. Then, get the number of overlapping areas in the woven image.
  • the number of overlapping areas is less than the preset number threshold, continue to perform the step of weaving each weft image into the second number of warp images in sequence; when the number of overlapping areas is When the number exceeds the preset quantity threshold, the woven image is determined to be the target fingerprint image.
  • the number of overlapping areas meets the requirements, shortening the time consuming of the weaving process and reducing the amount of data processed in the subsequent use of the fingerprint image.
  • step 13 characteristic data of the target fingerprint image is obtained, and the characteristic data is used to characterize the fingerprint data of this fingerprint input operation.
  • the electronic device can obtain the characteristic data of the target fingerprint image. For example, for each overlapping area, the electronic device can obtain the ridge endpoints (inside the dotted circles) as shown in (a) of Figure 10 and/or (dotted circles) as shown in (b) of Figure 10 in the overlapping area. ) intersection point within the coil.
  • the electronic device can describe and model the above feature points, and finally obtain a fingerprint model similar to that shown in Figure 11. Afterwards, the electronic device can obtain the characteristic data corresponding to the above fingerprint model.
  • a preset fingerprint model such as a convolutional neural network
  • the target fingerprint image is input into the above-mentioned preset fingerprint model, and the preset fingerprint model outputs feature data.
  • Technical personnel can select an appropriate solution for obtaining characteristic data according to specific scenarios, and the corresponding solution falls within the protection scope of the present disclosure.
  • the above characteristic data can be stored in the fingerprint template database and used as a fingerprint template.
  • the above characteristic data can also be used as the fingerprint to be identified to be combined with the fingerprint module database.
  • the fingerprint template in the fingerprint is matched to obtain the fingerprint recognition result, that is, the characteristic data of the above target fingerprint image is used as the fingerprint to be identified in the fingerprint recognition process or as a fingerprint template.
  • the solution provided by the embodiments of the present disclosure can obtain a first number of latitudinal images and a second number of meridional images in response to detecting a fingerprint input operation; the size of the first number of latitudinal image splicing images is less than or Equal to the size of the fingerprint area; the size of the second number of meridional image spliced images is less than or equal to the size of the fingerprint area; then, obtain according to the first number of latitudinal images and the second number of meridional images The target fingerprint image; then, obtain the characteristic data of the target fingerprint image, and the characteristic data is used to characterize the fingerprint data of this fingerprint input operation.
  • the target fingerprint image is obtained through the meridional image and the latitudinal image, and the characteristic data of the target fingerprint image is used to represent the fingerprint data.
  • the original fingerprint information which can avoid the leakage of user fingerprint information and improve the use of fingerprint recognition functions.
  • the security is conducive to improving the user experience.
  • the embodiment of the present disclosure also provides a fingerprint data acquisition device. See Figure 12.
  • the device includes:
  • the latitude and longitude image acquisition module 121 is configured to acquire a first number of latitudinal images and a second number of latitudinal images in response to detecting a fingerprint input operation; the size of the first number of latitudinal image splicing images is less than or equal to The size of the fingerprint area; the size of the second number of meridional image splicing images is less than or equal to the size of the fingerprint area;
  • the target image acquisition module 122 is configured to acquire a target fingerprint image based on the first number of latitudinal images and the second number of meridional images;
  • the fingerprint data acquisition module 123 is used to acquire the characteristic data of the target fingerprint image, and the characteristic data is used to characterize the fingerprint data of this fingerprint input operation.
  • the longitude and latitudinal image acquisition module includes:
  • the latitudinal image acquisition submodule is used to open the first number of row grouped pixels in the fingerprint sensor of the electronic device and obtain the first number of latitudinal images;
  • the meridional image acquisition submodule is used to turn on a second number of pixels grouped in columns in the fingerprint sensor to obtain a second number of meridional images.
  • the device further includes:
  • a threshold acquisition module configured to acquire a preset quantity threshold, which refers to the minimum number of overlapping areas in the target fingerprint image
  • a quantity acquisition module configured to determine the first quantity and the second quantity according to the preset quantity threshold, and the product of the first quantity and the second quantity is equal to or greater than the preset quantity threshold.
  • the threshold acquisition module includes:
  • the level acquisition sub-module is used to obtain the security level of the current usage scenario of the electronic device
  • the threshold acquisition sub-module is used to obtain the preset quantity threshold corresponding to the security level based on the corresponding relationship between the preset security level and the quantity threshold of the overlapping area in the target fingerprint image.
  • the longitude and latitudinal image acquisition module includes:
  • the initial image acquisition submodule is used to acquire an initial fingerprint image
  • An initial image segmentation submodule is used to segment the initial fingerprint image horizontally to obtain a first number of latitudinal images, and to segment the initial fingerprint image vertically to obtain a second number of meridional images.
  • obtaining the target fingerprint image based on the first number of latitudinal images and the second number of meridional images includes:
  • each weft image and each meridional image are woven to obtain the target fingerprint image
  • the first distance is the distance between two adjacent weft images
  • the The second distance is the distance between two adjacent meridional images
  • the target fingerprint image includes an overlapping area of each latitudinal image and each meridional image.
  • the target image acquisition module includes:
  • the image weaving sub-module is used to weave each weft image and each warp image to obtain a woven image; the woven image includes the overlapping area of each weft image and each warp image;
  • Quantity acquisition submodule used to acquire the number of overlapping areas in the woven image
  • An image acquisition sub-module configured to trigger the image weaving sub-module when the number of overlapping areas is less than the preset quantity threshold; when the number of overlapping areas exceeds the preset quantity threshold, determine that the weaving sub-module
  • the texture image is the target fingerprint image.
  • the overlapping area in the target fingerprint image includes a new fingerprint after the fingerprints in the latitudinal image and the fingerprint in the meridional image overlap, or the fingerprint in the latitudinal image and the meridional image The fingerprint of the top-level image.
  • the weaving method includes at least one of the following: four-corner hole type weaving, hexagonal hole type weaving Woven, trapezoidal woven, rice-shaped woven, zigzag woven, circular woven, triangle woven.
  • the target image acquisition module includes:
  • the image acquisition submodule is used to sequentially weave each latitudinal image between the second number of longitudinal images to obtain the target fingerprint image.
  • the target fingerprint image includes each latitudinal image and each longitudinal image. to the overlapping area of the image.
  • the characteristic data of the target fingerprint image is used for the fingerprint to be identified in the fingerprint recognition process or as a fingerprint template.
  • FIG. 13 is a block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device 1300 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
  • the electronic device 1300 may include one or more of the following components: a processing component 1302 , a memory 1304 , a power supply component 1306 , a multimedia component 1308 , an audio component 1310 , an input/output (I/O) interface 1312 , and a sensor component 1314 , communication component 1316, image acquisition component 1318.
  • a processing component 1302 a memory 1304 , a power supply component 1306 , a multimedia component 1308 , an audio component 1310 , an input/output (I/O) interface 1312 , and a sensor component 1314 , communication component 1316, image acquisition component 1318.
  • Processing component 1302 generally controls the overall operations of electronic device 1300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • Processing component 1302 may include one or more processors 1320 to execute computer programs. Additionally, processing component 1302 may include one or more modules that facilitate interaction between processing component 1302 and other components. For example, processing component 1302 may include a multimedia module to facilitate interaction between multimedia component 1308 and processing component 1302.
  • Memory 1304 is configured to store various types of data to support operations at electronic device 1300 . Examples of such data include computer programs for any application or method operating on electronic device 1300, contact data, phonebook data, messages, pictures, videos, etc.
  • Memory 1304 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM erasable programmable read-only memory
  • EPROM Programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory, magnetic or optical disk.
  • Power supply component 1306 provides power to various components of electronic device 1300 .
  • Power supply components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1300 .
  • the power supply component 1306 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the switching device, so that the battery supplies power to the motherboard circuit or not.
  • Multimedia component 1308 includes a screen that provides an output interface between electronic device 1300 and the target object.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. A touch sensor can not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • Audio component 1310 is configured to output and/or input audio file information.
  • audio component 1310 includes a microphone (MIC) configured to receive external audio file information when electronic device 1300 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio file information may be further stored in memory 1304 or sent via communication component 1316 .
  • audio component 1310 also includes a speaker for outputting audio file information.
  • the I/O interface 1312 provides an interface between the processing component 1302 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, a button, etc.
  • Sensor component 1314 includes one or more sensors for providing various aspects of status assessment for electronic device 1300 .
  • the sensor component 1314 can detect the open/closed state of the electronic device 1300, the relative positioning of components, such as the display screen and keypad of the electronic device 1300, and the sensor component 1314 can also detect the position change of the electronic device 1300 or a component. , the presence or absence of the target object in contact with the electronic device 1300 , the orientation or acceleration/deceleration of the electronic device 1300 and the temperature change of the electronic device 1300 .
  • the sensor component 1314 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, where the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.
  • Communication component 1316 is configured to facilitate wired or wireless communication between electronic device 1300 and other devices.
  • the electronic device 1300 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof.
  • the communication component 1316 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel.
  • communications component 1316 also includes a near field communications (NFC) module to facilitate short-range communications.
  • NFC near field communications
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device 1300 may be configured by one or more application specific integrated circuits (ASICs), digital information processors (DSPs), digital information processing devices (DSPDs), programmable logic devices (PLDs), field programmable Programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation.
  • ASICs application specific integrated circuits
  • DSPs digital information processors
  • DSPDs digital information processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Programmed gate array
  • controller microcontroller, microprocessor or other electronic component implementation.
  • a computer-readable storage medium such as a memory including instructions, and the above-mentioned executable computer program can be executed by a processor.
  • the readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Collating Specific Patterns (AREA)
  • Image Input (AREA)

Abstract

本公开是关于一种指纹数据获取方法和装置、电子设备、可读存储介质。该方法包括:响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。本实施例中通过经向图像和纬向图像获取目标指纹图像,并利用目标指纹图像的特征数据来表示指纹数据,无需使用原始指纹信息,可以避免用户指纹信息泄露,提高使用指纹识别功能的安全性,有利于提升使用体验。

Description

指纹数据获取方法和装置、电子设备、可读存储介质 技术领域
本公开涉及数据处理技术领域,尤其涉及一种指纹数据获取方法和装置、电子设备、可读存储介质。
背景技术
目前,多数电子设备会设置有指纹开锁功能,指纹传感器检测到用户的按压操作时可以采集用户指纹图像,并利用上述指纹图像进行指纹验证,并在验证通过后启动设备,达到了简化用户操作的效果。
通常情况下,电子设备会保存至少一个指纹图像模板作为上述指纹验证过程的参考图像。然而,上述指纹图像模板包含指纹的原始指纹谷脊数据,如果泄露指纹图像模板则容易泄露个人信息,降低使用体验。
发明内容
本公开提供一种指纹数据获取方法和装置、电子设备、可读存储介质,以解决相关技术的不足。
根据本公开实施例的第一方面,提供一种指纹数据获取方法,包括:
响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;
根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;
获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
可选地,获取第一数量张纬向图像和第二数量张经向图像,包括:
开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。
可选地,获取第一数量张纬向图像和第二数量张经向图像之前,所述方法还包括:
获取预设数量阈值,所述预设数量阈值是指所述目标指纹图像中重叠区域的最小数量;所述重叠区域是指纬向图像和经向图像的交叠区域;
根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。
可选地,获取预设数量阈值,包括:
获取电子设备当前使用场景的安全等级;
基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,获取所述安全等级对应的预设数量阈值。
可选地,获取第一数量张纬向图像和第二数量张经向图像,包括:
获取一张初始指纹图像;
对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。
可选地,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
基于第一距离和第二距离,梭织各张纬向图像和各张经向图像,得到所述目标指纹图像,所述第一距离为相邻两张纬向图像之间的距离,所述第二距离为相邻两张经向图像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
可选地,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
依次将各张纬向图像梭织到各经向图像之间得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域;
获取所述梭织图像中重叠区域的数量;
当所述重叠区域的数量小于所述预设数量阈值时,继续执行所述梭织各张纬向图像和各张经向图像的步骤;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。
可选地,所述目标指纹图像中重叠区域包括所述纬向图像中指纹和所述经向图像中指纹交叠后的新指纹,或者所述纬向图像和所述经向图像中处于顶层位置的图像的指纹。
可选地,所述梭织各张纬向图像和各张经向图像的步骤中梭织方式包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
可选地,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
依次将各张纬向图像梭织到所述第二数量张经向图像之间得到所述目标指纹图像,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
可选地,所述目标指纹图像的特征数据用于指纹识别过程的待识别指纹或者作为指纹模板。
根据本公开实施例的第二方面,提供一种指纹数据获取装置,包括:
经纬向图像获取模块,用于响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;
目标图像获取模块,用于根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;
指纹数据获取模块,用于获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
可选地,所述经纬向图像获取模块包括:
纬向图像获取子模块,用于开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及,
经向图像获取子模块,用于开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。
可选地,所述装置还包括:
阈值获取模块,用于获取预设数量阈值,所述预设数量阈值是指所述目标指纹图像中重叠区域的最小数量;所述重叠区域是指纬向图像和经向图像的交叠区域;
数量获取模块,用于根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。
可选地,所述阈值获取模块包括:
等级获取子模块,用于获取电子设备当前使用场景的安全等级;
阈值获取子模块,用于基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,获取所述安全等级对应的预设数量阈值。
可选地,所述经纬向图像获取模块包括:
初始图像获取子模块,用于获取一张初始指纹图像;
初始图像分割子模块,用于对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。
可选地,所述目标图像获取模块包括:
目标图像获取子模块,用于基于第一距离和第二距离,梭织各张纬向图像和各张经向图像,得到所述目标指纹图像,所述第一距离为相邻两张纬向图像之间的距离,所述第二距离为相邻两张经向图像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
可选地,所述目标图像获取模块包括:
图像梭织子模块,用于梭织各张纬向图像和各张经向图像得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域;
数量获取子模块,用于获取所述梭织图像中重叠区域的数量;
图像获取子模块,用于当所述重叠区域的数量小于所述预设数量阈值时,触发所述图像梭织子模块;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。
可选地,所述目标指纹图像中重叠区域包括所述纬向图像中指纹和所述经向图像中指纹交叠后的新指纹,或者所述纬向图像和所述经向图像中处于顶层位置的图像的指纹。
可选地,所述梭织各张纬向图像和各张经向图像的步骤中梭织方式包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
可选地,所述目标指纹图像的特征数据用于指纹识别过程的待识别指纹或者作为指纹模板。
根据本公开实施例的第三方面,提供一种电子设备,包括:存储器与处理器;
所述存储器用于存储所述处理器可执行的计算机程序;
所述处理器用于执行所述存储器中的计算机程序,以实现如上述的方法。
根据本公开实施例的第四方面,提供一种非暂态计算机可读存储介质,当所述存储介质中的可执行的计算机程序由处理器执行时,能够实现如上述的方法。
本公开的实施例提供的技术方案可以包括以下有益效果:
由上述实施例可知,本公开实施例提供的方案可以响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;然后,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;之后,获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。这样,本实施例中通过经向图像和纬向图像获取目标指纹图像,并利用目标指纹图像的特征数据来表示指纹数据,无需使用原始指纹信息,可以避免用户指纹信息泄露,提高使用指纹识别功能的安全性,有利于提升使用体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种指纹数据获取方法的流程图。
图2是根据一示例性实施例示出的另一种获取经向图像和纬向图像的效果示意图。
图3是根据一示例性实施例示出的另一种获取经向图像和纬向图像的效果示意图。
图4是根据一示例性实施例示出的一种获取第一数量和第二数量的流程图。
图5是根据一示例性实施例示出的一种获取预设数量阈值的流程图。
图6a是根据一示例性实施例示出的一种获取目标指纹图像的流程图。
图6b是根据一示例性实施例示出的另一种获取目标指纹图像的流程图。
图7是根据一示例性实施例示出的一种四角孔型梭织图像的示意图。
图8是根据一示例性实施例示出的一种不同梭织方式对应的梭织图像的示意图。
图9是根据一示例性实施例示出的一种获取目标指纹图像的流程图。
图10是根据一示例性实施例示出的一种获取重叠区域中特征点的示意图,其中图10的(a)图中示出了端点,图10的(b)图中示出了交叉点。
图11是根据一示例性实施例示出的一种指纹模型的示意图。
图12是根据一示例性实施例示出的一种指纹数据获取装置的框图。
图13是根据一示例性实施例示出的一种电子设备的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性所描述的实施例并不代表与本公开相一致的所有实施例。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置例子。需要说明的是,在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。
为解决上述技术问题,本公开实施例提供了一种指纹数据获取方法,可以适用于设置有指纹传感器的电子设备,如智能手机、平板电脑、数字终端以及个人计算机等等。本公开的发明构思在于,将获取的多张纬向图像和经向图像重新排布组合成新图像,考虑到新图像中纬向图像和经向图像的重叠区域内指纹会重叠生成新交叉点,因此利用新交叉点和原交叉点作为新图像中的特征点,从而无需包含原始指纹,可以避免指纹泄露,有利于提升使用指纹识别功能的体验。
图1是根据一示例性实施例示出的一种指纹数据获取方法的流程图。参见图1,一种指纹数据获取方法,包括步骤11~步骤13。
在步骤11中,响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像。
本实施例中,电子设备可以检测用户的指纹输入操作,例如当检测到显示屏被按压且按压位置与指纹图标位置重合时,电子设备可以确定检测到指纹输入操作。
本实施例中,电子设备可以响应于检测到指纹输入操作,获取第一数量张纬向图像 和第二数量张经向图像。
在一示例中,参见图2,在步骤21中,电子设备可以获取一张初始指纹图像。例如,电子设备中指纹传感器可以采集一张指纹图像,并将该指纹图像发送给电子设备的处理器,即电子设备可以获取到上述初始指纹图像。本示例中,上述初始指纹图像可以为RAW图像或者PDF图像
在步骤22中,电子设备可以对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。其中,横向分割可以是指电子设备按照行方向(即电子设备显示屏的宽度方向)对像素分割成第一数量个分组,每一个分组的像素构成一张纬向图像。竖向分割可以是指电子设备按照列方向(即电子设备显示屏的高度方向)对像素分割成第二数量个分组,每一个分组的像素构成一张经向图像。
可理解的是,考虑到在横向分割时可以仅使用初始指纹图像的一部分,因此第一数量张纬向图像接拼图像的尺寸小于或等于初始指纹图像(或者指纹输入操作时指纹区域的尺寸)。同理,考虑到竖向分割时可以仅使用初始指纹图像一部分,因此第二数量张经向图像接拼图像在尺寸小于或等于初始指纹图像(或者指纹输入操作时指纹区域的尺寸)。
本示例中可以按照需求将初始指纹图像分割成不同尺寸的纬向图像或者经向图像;并且在后续获取指纹数据失败时可以重复使用上述初始指纹图像,无需用户重新输入,有利于提升用户使用体验。
在另一示例中,电子设备可以开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。这样,本示例中可以直接获得经向图像和纬向图像,减少分割图像所用耗时,有利于提升获取指纹数据的实时性。
在又一示例中,参见图3,在步骤31中,电子设备可以获取预设的第一数量和第二数量。在步骤32中,电子设备可以将电子设备内指纹传感器像素按行分组得到第一数量个分组,以及将电子设备内指纹传感器像素按列分组得到第二数量个分组。在步骤33中,电子设备可以依次开启各个分组内的像素,获得第一数量张纬向图像和第二数量张经向图像。这样,本示例中可以直接获得经向图像和纬向图像,减少分割图像所用耗时,有利于提升获取指纹数据的实时性。
关于步骤31中获取第一数量和第二数量的步骤,参见图4,在步骤41中,电子设备可以获取预设数量阈值,该预设数量阈值是指目标指纹图像中重叠区域的最小数量。上述重叠区域是指纬向图像和经向图像的交叠区域。
可理解的是,在指纹识别场景中指纹模板(或者待识别的指纹数据)需要有足够多的特征点才能够获得准确的识别结果,因此本示例中预先设置了上述预设数量阈值,从而保证后续的目标指纹图像中有足够多的重叠区域。
本实施例中,目标指纹图像中重叠区域包括指纹,该指纹可以包括纬向图像中指纹和经向图像中指纹在交叠后的新指纹,或者纬向图像和经向图像中处于重叠区域的顶层位置的图像的(原始)指纹,可以根据具体场景选择重叠区域内指纹的来源,相应方案落入本公开的保护范围。
在步骤42中,电子设备可以根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。例如,预设数量阈值为L,第一数量为m和第二数量为n,则L<m*n或者L=m*n。这样,本示例中通过获取第一数量和第二数量可以保证后续获得足够多的重叠区域。
需要说明的是,上述预设数量阈值可以是一个固定值,也可以是动态值。以预设数量阈值是一个动态值为例,参见图5,在步骤51中,电子设备可以获取电子设备当前使用场景的安全等级,例如高安全等级、中安全等级或者低安全等级。在步骤52中,电子设备可以获取预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,例如,高安全等级时,则对应重叠区域的数量阈值大即目标指纹图像中特征点多;低安全等级时,则对应重叠区域的数量阈值小即目标指纹图像中特征点少;然后基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,电子设备可以获取安全等级对应的预设数量阈值。这样,本示例中通过安全等级来确定预设数量阈值,在安全等级高时预设数量阈值大或者在安全等级低时预设数量阈值小,以满足不同使用场景的需求。并且,本示例中可以达到安全分级管理的效果,在安全等级较低的场景下,使用较少的特征点进行匹配识别,在保证安全的情况下加快解锁时间且利用降低功耗;在安全等级较高的场景下,使用较多的特征点进行匹配识别,以提升安全。
在步骤12中,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像。
本公开的一些实施例中,电子设备可以根据第一数量张纬向图像和第二数量张经向 图像获取目标指纹图像,参见图6a,可以包括步骤611~步骤612。
在步骤611中,电子设备可以获取预设的相邻两张纬向图像之间的第一距离和相邻两张经向图像之间的第二距离。其中,第一距离和第二距离也可称之为梭织密度。参见图7,第一数量为m,第二数量为n,纬向图像包括C1~Cm,经向图像包括P1~Pn,第一距离是指纬向图像Ci和Ci+1之间的距离X,第二距离是指经向图像Pj和Pj+1之间的距离Y,i取值范围为1~m-1,j取值范围为1~n-1,X大于或等于0,Y大于或等于0。可以理解地,X、Y均小于指纹区域的尺寸。示例地,第一距离和第二距离可以根据预设的安全等级,或者,第一距离和第二距离可以为缺省设置的定值。
在步骤612中,电子设备可以基于第一距离和第二距离,梭织各张纬向图像和各张经向图像得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域。继续参见图7,纬向图像C1与经向图像P1的一个重叠区域为Pc。通过设置第一距离和第二距离,能够实现梭织后的拼接图像有别于初始指纹图像,有利于用户初始指纹脱敏的需求。
需要说明的是,梭织方式可以是一张纬向图像和一张经向图像梭织后再梭织下一张纬向图像和经向图像,起到梭织完所有的纬向图像和经向图像。或者,还可以是先固定第二数量张经向图像,然后依次将各张纬向图像梭织到上述第二数量张经向图像中,得到目标指纹图像。或者,还可以是先固定第一数量张纬向图像,然后依次将各张经向图像梭织到上述第一数量张纬向图像中,得到目标指纹图像。技术人员可以根据具体场景选择合适的梭织方式,相应方案落入本公开的保护范围。
在本公开的一些实施例中,上述步骤61中梭织方式可以包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。其中,四角孔型梭织对应梭织图像的效果如图7所示,六角孔型梭织对应梭织图像的效果如图8的(a)图所示,梯形梭织对应梭织图像的效果如图8的(b)图所示、米字型梭织对应梭织图像的效果如图8的(c)图所示、回字形梭织对应梭织图像的效果如图8的(d)图所示、圆形梭织对应梭织图像的效果如图8的(e)图所示、三角形梭织对应梭织图像的效果如图8的(f)图所示。技术人员可以根据具体场景选择合适的梭强方式,例如选取纬向图像和经向图像能够形成重叠区域的方案或者采用较少梭织次数获取更多重叠区域的方案,相应方案落入本公开的保护范围。
本公开的一些实施例中,电子设备可以根据第一数量张纬向图像和第二数量张经向图像获取目标指纹图像,参见图6b,可以包括步骤61~步骤64。
在步骤61中,电子设备可以获取预设的相邻两张纬向图像之间的第一距离和相邻两张经向图像之间的第二距离。其中,第一距离和第二距离也可称之为梭织密度。示例地,第一距离和第二距离可以根据预设的安全等级,或者,第一距离和第二距离可以为缺省设置的定值。第一距离和第二距离可以大于或等于0。
在步骤62中,电子设备可以基于第一距离和第二距离,梭织各张纬向图像和各张经向图像得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域。通过设置第一距离和第二距离,能够实现梭织后的拼接图像有别于初始指纹图像,有利于用户初始指纹脱敏的需求。
在本公开的一些实施例中,上述步骤61中梭织方式可以包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
在步骤63中,电子设备可以获取所述梭织图像中重叠区域的数量。
在步骤64中,电子设备可以在重叠区域的数量小于所述预设数量阈值时,继续执行所述梭织各张纬向图像和各张经向图像的步骤,即继续执行步骤62~步骤64;当重叠区域的数量超过预设数量阈值时,电子设备可以确定所述梭织图像为所述目标指纹图像。
在一些实施例中,步骤62~步骤64的迭代步骤可以如图9所示,其中,第一数量为m,第二数量为n,纬向图像包括C1~Cm,经向图像包括P1~Pn,第一距离是指相邻纬向图像之间的距离X,第二距离是指相邻经向图像之间的距离Y,i取值范围为1~m-1,j取值范围为1~n-1,X大于或等于0,Y大于或等于0。图9所示流程如下:获取各纬向图像和各张经向图像;对经向图像和纬向图像进行梭织:按照经线方向拼接一张经向图像,按照纬线方向拼接一张纬向图像,其中在该经向图像和该纬向图像拼接过程中,控制经向图像和纬向图像的梭织密度X和Y(即第一距离和第二距离);完成一次梭织,在该本次梭织中的经向图像和纬向图像之间的交汇点生成新的重叠区域;确定重叠区域数量是否大于预设数量阈值,若是则结束流程,将本次梭织完成的梭织图像确定为所述目标指纹图像,若否则再次对经向图像和纬向图像进行梭织。
这样,本实施例中获取包含数量超过预设数量阈值的重叠区域的目标指纹图像即获取到有效的指纹图像,从而保证后续步骤中能够获得有效的指纹数据。换言之,本实施例可以在一次指纹输入操作的情况下即可获得目标指纹图像,从现有的10~15次降 至1~3次,甚至1次即可,可以减少指纹输入操作的次数且减少操作时间,有利于提升用户使用体验。
在另一实施例中,电子设备可以根据第一数量张纬向图像和第二数量张经向图像获取目标指纹图像。例如,电子设备可以梭织各张纬向图像和各张经向图像得到目标指纹图像,其中目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。这样,本实施例可以直接将全部纬向图像梭织到全部经向图像之间,此时目标指纹图像中重叠区域的数量超过预设数量阈值,可以保证后续步骤中能够获得有效的指纹数据。
在又一实施例中,电子设备可以基于第一距离和第二距离,依次将各张纬向图像梭织到各张经向图像之间得到目标指纹图像。上述第一距离为相邻两张纬向图像之间的距离,第二距离为相邻两张经向图像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。此时目标指纹图像中重叠区域的数量等于纬向图像的数量和经向图像的数量的乘积,即第一数量和第二数量的乘积。这样,本实施例可以直接将全部纬向图像梭织到全部经向图像之间,此时目标指纹图像中重叠区域的数量超过预设数量阈值,可以保证后续步骤中能够获得有效的指纹数据。并且,相邻两张经向图像以及相邻两张纬向图像之间存在距离,避免通过相邻图像还原出原始指纹,有利于提高目标指纹图像的安全性。
在又一实施例中,电子设备可以依次各张纬向图像梭织到各张经向图像之间得到梭织图像。梭织图像包括各张纬向图像与各张经向图像的重叠区域。然后,获取梭织图像中重叠区域的数量。当所述重叠区域的数量小于所述预设数量阈值时,继续执行所述依次将各张纬向图像梭织到所述第二数量张经向图像之间的步骤;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。本实施例中通过梭织过程中判断重叠区域的数量可以保证重叠区域数量满足需求即可,缩短梭织过程耗时以及减少后续使用指纹图像中处理数据量。
在步骤13中,获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
本实施例中,电子设备可以获取目标指纹图像的特征数据。例如,针对各个重叠区域,电子设备可以获取该重叠区域中如图10的(a)图所示的(虚线圈内的)脊纹端点和/或图10的(b)图所示的(虚线圈内的)交叉点。
然后,电子设备可以对上述特征点进行描述和特征点建模,最终得到一个类似 于图11所示指纹模型。之后,电子设备可以获取上述指纹模型对应的特征数据。
需要说明的是,电子设备内可以存储预设指纹模型,例如卷积神经网络,并将目标指纹图像输入到上述预设指纹模型中,由预设指纹模型输出特征数据。技术人员可以根据具体场景选择合适的获取特征数据的方案,相应方案落入本公开的保护范围。
本实施例中,在获取到目标指纹图像的特征数据后,可以将上述特征数据存储到指纹模板数据库中作为指纹模板使用,还可以将上述特征数据作为待识别指纹使用,以与指纹模组数据库中的指纹模板进行匹配获得指纹识别结果,即上述目标指纹图像的特征数据用于指纹识别过程的待识别指纹或者作为指纹模板。
至此,本公开实施例提供的方案可以响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;然后,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;之后,获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。这样,本实施例中通过经向图像和纬向图像获取目标指纹图像,并利用目标指纹图像的特征数据来表示指纹数据,无需使用原始指纹信息,可以避免用户指纹信息泄露,提高使用指纹识别功能的安全性,有利于提升使用体验。
在本公开实施例提供的一种指纹数据获取方法的基础上,本公开实施例还提供了一种指纹数据获取装置,参见图12,所述装置包括:
经纬向图像获取模块121,用于响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;
目标图像获取模块122,用于根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;
指纹数据获取模块123,用于获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
在一实施例中,所述经纬向图像获取模块包括:
纬向图像获取子模块,用于开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及,
经向图像获取子模块,用于开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。
在一实施例中,所述装置还包括:
阈值获取模块,用于获取预设数量阈值,所述预设数量阈值是指所述目标指纹图像中重叠区域的最小数量;
数量获取模块,用于根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。
在一实施例中,所述阈值获取模块包括:
等级获取子模块,用于获取电子设备当前使用场景的安全等级;
阈值获取子模块,用于基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,获取所述安全等级对应的预设数量阈值。
在一实施例中,所述经纬向图像获取模块包括:
初始图像获取子模块,用于获取一张初始指纹图像;
初始图像分割子模块,用于对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。
在一实施例中,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
基于第一距离和第二距离,梭织各张纬向图像和各张经向图像,得到所述目标指纹图像,所述第一距离为相邻两张纬向图像之间的距离,所述第二距离为相邻两张经向图像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
在一实施例中,所述目标图像获取模块包括:
图像梭织子模块,用于梭织各张纬向图像和各张经向图像得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域;
数量获取子模块,用于获取所述梭织图像中重叠区域的数量;
图像获取子模块,用于当所述重叠区域的数量小于所述预设数量阈值时,触发所述图像梭织子模块;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。
在一实施例中,所述目标指纹图像中重叠区域包括所述纬向图像中指纹和所述经向图像中指纹交叠后的新指纹,或者所述纬向图像和所述经向图像中处于顶层位置的图像的指纹。
在一实施例中,所述依次将各张纬向图像梭织到所述第二数量张经向图像之间的步骤中梭织方式包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
在一实施例中,所述目标图像获取模块包括:
图像获取子模块,用于依次将各张纬向图像梭织到所述第二数量张经向图像之间得到所述目标指纹图像,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
在一实施例中,所述目标指纹图像的特征数据用于指纹识别过程的待识别指纹或者作为指纹模板。
需要说明的是,本实施例中示出的装置与方法实施例的内容相匹配,可以参考上述方法实施例的内容,在此不再赘述。
图13是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备1300可以是智能手机,计算机,数字广播终端,平板设备,医疗设备,健身设备,个人数字助理等。
参照图13,电子设备1300可以包括以下一个或多个组件:处理组件1302,存储器1304,电源组件1306,多媒体组件1308,音频组件1310,输入/输出(I/O)的接口1312,传感器组件1314,通信组件1316,图像采集组件1318。
处理组件1302通常控制电子设备1300的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1302可以包括一个或多个处理器1320来执行计算机程序。此外,处理组件1302可以包括一个或多个模块,便于处理组件1302和其他组件之间的交互。例如,处理组件1302可以包括多媒体模块,以方便多媒体组件1308和处理组件1302之间的交互。
存储器1304被配置为存储各种类型的数据以支持在电子设备1300的操作。这些数据的示例包括用于在电子设备1300上操作的任何应用程序或方法的计算机程序,联系人数据,电话簿数据,消息,图片,视频等。存储器1304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可 擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件1306为电子设备1300的各种组件提供电力。电源组件1306可以包括电源管理系统,一个或多个电源,及其他与为电子设备1300生成、管理和分配电力相关联的组件。电源组件1306可以包括电源芯片,控制器可以电源芯片通信,从而控制电源芯片导通或者断开开关器件,使电池向主板电路供电或者不供电。
多媒体组件1308包括在电子设备1300和目标对象之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示屏(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自目标对象的输入信息。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。
音频组件1310被配置为输出和/或输入音频文件信息。例如,音频组件1310包括一个麦克风(MIC),当电子设备1300处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频文件信息。所接收的音频文件信息可以被进一步存储在存储器1304或经由通信组件1316发送。在一些实施例中,音频组件1310还包括一个扬声器,用于输出音频文件信息。
I/O接口1312为处理组件1302和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。
传感器组件1314包括一个或多个传感器,用于为电子设备1300提供各个方面的状态评估。例如,传感器组件1314可以检测到电子设备1300的打开/关闭状态,组件的相对定位,例如组件为电子设备1300的显示屏和小键盘,传感器组件1314还可以检测电子设备1300或一个组件的位置改变,目标对象与电子设备1300接触的存在或不存在,电子设备1300方位或加速/减速和电子设备1300的温度变化。本示例中,传感器组件1314可以包括磁力传感器、陀螺仪和磁场传感器,其中磁场传感器包括以下至少一种:霍尔传感器、薄膜磁致电阻传感器、磁性液体加速度传感器。
通信组件1316被配置为便于电子设备1300和其他设备之间有线或无线方式的通信。电子设备1300可以接入基于通信标准的无线网络,如WiFi,2G、3G、4G、5G,或它们的组合。在一个示例性实施例中,通信组件1316经由广播信道接收来自外部广播管理系统的广播信息或广播相关信息。在一个示例性实施例中,通信组件1316还包 括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备1300可以被一个或多个应用专用集成电路(ASIC)、数字信息处理器(DSP)、数字信息处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括指令的存储器,上述可执行的计算机程序可由处理器执行。其中,可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (22)

  1. 一种指纹数据获取方法,其特征在于,包括:
    响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;
    根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;
    获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
  2. 根据权利要求1所述的方法,其特征在于,获取第一数量张纬向图像和第二数量张经向图像,包括:
    开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。
  3. 根据权利要求1所述的方法,其特征在于,获取第一数量张纬向图像和第二数量张经向图像之前,所述方法还包括:
    获取预设数量阈值,所述预设数量阈值是指所述目标指纹图像中重叠区域的最小数量;所述重叠区域是指纬向图像和经向图像的交叠区域;
    根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。
  4. 根据权利要求3所述的方法,其特征在于,获取预设数量阈值,包括:
    获取电子设备当前使用场景的安全等级;
    基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,获取所述安全等级对应的预设数量阈值。
  5. 根据权利要求1所述的方法,其特征在于,获取第一数量张纬向图像和第二数量张经向图像,包括:
    获取一张初始指纹图像;
    对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。
  6. 根据权利要求1所述的方法,其特征在于,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
    基于第一距离和第二距离,梭织各张纬向图像和各张经向图像,得到所述目标指纹图像,所述第一距离为相邻两张纬向图像之间的距离,所述第二距离为相邻两张经向图 像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
  7. 根据权利要求1或6所述的方法,其特征在于,根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像,包括:
    梭织各张纬向图像和各张经向图像,得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域;
    获取所述梭织图像中重叠区域的数量;
    当所述重叠区域的数量小于所述预设数量阈值时,继续执行所述梭织各张纬向图像和各张经向图像的步骤;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。
  8. 根据权利要求7所述的方法,其特征在于,所述目标指纹图像中重叠区域包括所述纬向图像中指纹和所述经向图像中指纹交叠后的新指纹,或者所述纬向图像和所述经向图像中处于顶层位置的图像的指纹。
  9. 根据权利要求6所述的方法,其特征在于,所述梭织各张纬向图像和各张经向图像的步骤中梭织方式包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
  10. 根据权利要求1所述的方法,其特征在于,所述目标指纹图像的特征数据用于指纹识别过程的待识别指纹或者作为指纹模板。
  11. 一种指纹数据获取装置,其特征在于,包括:
    经纬向图像获取模块,用于响应于检测到指纹输入操作,获取第一数量张纬向图像和第二数量张经向图像;所述第一数量张纬向图像拼接图像的尺寸小于或等于指纹区域的尺寸;所述第二数量张经向图像拼接图像的尺寸小于或等于指纹区域的尺寸;
    目标图像获取模块,用于根据所述第一数量张纬向图像和所述第二数量张经向图像获取目标指纹图像;
    指纹数据获取模块,用于获取所述目标指纹图像的特征数据,所述特征数据用于表征本次指纹输入操作的指纹数据。
  12. 根据权利要求11所述的装置,其特征在于,所述经纬向图像获取模块包括:
    纬向图像获取子模块,用于开启电子设备的指纹传感器内第一数量个行分组的像素,获得第一数量张纬向图像;以及,
    经向图像获取子模块,用于开启所述指纹传感器内第二数量个列分组的像素,获得第二数量张经向图像。
  13. 根据权利要求11所述的装置,其特征在于,所述装置还包括:
    阈值获取模块,用于获取预设数量阈值,所述预设数量阈值是指所述目标指纹图像中重叠区域的最小数量;所述重叠区域是指纬向图像和经向图像的交叠区域;
    数量获取模块,用于根据所述预设数量阈值,确定所述第一数量和所述第二数量,所述第一数量和所述第二数量的乘积等于或者大于所述预设数量阈值。
  14. 根据权利要求13所述的装置,其特征在于,所述阈值获取模块包括:
    等级获取子模块,用于获取电子设备当前使用场景的安全等级;
    阈值获取子模块,用于基于预设的安全等级和目标指纹图像中重叠区域的数量阈值的对应关系,获取所述安全等级对应的预设数量阈值。
  15. 根据权利要求11所述的装置,其特征在于,所述经纬向图像获取模块包括:
    初始图像获取子模块,用于获取一张初始指纹图像;
    初始图像分割子模块,用于对所述初始指纹图像进行横向分割获得第一数量张纬向图像,以及对所述初始指纹图像进行竖向分割获得第二数量张经向图像。
  16. 根据权利要求11所述的装置,其特征在于,所述目标图像获取模块包括:
    目标图像获取子模块,用于基于第一距离和第二距离,梭织各张纬向图像和各张经向图像,得到所述目标指纹图像,所述第一距离为相邻两张纬向图像之间的距离,所述第二距离为相邻两张经向图像之间的距离,所述目标指纹图像包括各张纬向图像与各张经向图像的重叠区域。
  17. 根据权利要求11或16所述的装置,其特征在于,所述目标图像获取模块包括:
    图像梭织子模块,用于梭织各张纬向图像和各张经向图像得到梭织图像;所述梭织图像包括各张纬向图像与各张经向图像的重叠区域;
    数量获取子模块,用于获取所述梭织图像中重叠区域的数量;
    图像获取子模块,用于当所述重叠区域的数量小于所述预设数量阈值时,触发所述图像梭织子模块;当所述重叠区域的数量超过预设数量阈值时,确定所述梭织图像为所述目标指纹图像。
  18. 根据权利要求17所述的装置,其特征在于,所述目标指纹图像中重叠区域包括所述纬向图像中指纹和所述经向图像中指纹交叠后的新指纹,或者所述纬向图像和所述经向图像中处于顶层位置的图像的指纹。
  19. 根据权利要求16所述的装置,其特征在于,所述梭织各张纬向图像和各张经向图像的步骤中梭织方式包括以下至少一种:四角孔型梭织、六角孔型梭织、梯形梭织、米字型梭织、回字形梭织、圆形梭织、三角形梭织。
  20. 根据权利要求11所述的装置,其特征在于,所述目标指纹图像的特征数据用 于指纹识别过程的待识别指纹或者作为指纹模板。
  21. 一种电子设备,其特征在于,包括:存储器与处理器;
    所述存储器用于存储所述处理器可执行的计算机程序;
    所述处理器用于执行所述存储器中的计算机程序,以实现如权利要求1~10任一项所述的方法。
  22. 一种非暂态计算机可读存储介质,其特征在于,当所述存储介质中的可执行的计算机程序由处理器执行时,能够实现如权利要求1~10任一项所述的方法。
PCT/CN2022/093117 2022-05-16 2022-05-16 指纹数据获取方法和装置、电子设备、可读存储介质 WO2023220875A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280004119.9A CN117413538A (zh) 2022-05-16 2022-05-16 指纹数据获取方法和装置、电子设备、可读存储介质
PCT/CN2022/093117 WO2023220875A1 (zh) 2022-05-16 2022-05-16 指纹数据获取方法和装置、电子设备、可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/093117 WO2023220875A1 (zh) 2022-05-16 2022-05-16 指纹数据获取方法和装置、电子设备、可读存储介质

Publications (1)

Publication Number Publication Date
WO2023220875A1 true WO2023220875A1 (zh) 2023-11-23

Family

ID=88834416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/093117 WO2023220875A1 (zh) 2022-05-16 2022-05-16 指纹数据获取方法和装置、电子设备、可读存储介质

Country Status (2)

Country Link
CN (1) CN117413538A (zh)
WO (1) WO2023220875A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6483932B1 (en) * 1999-08-19 2002-11-19 Cross Match Technologies, Inc. Method and apparatus for rolled fingerprint capture
WO2017091933A1 (zh) * 2015-11-30 2017-06-08 宇龙计算机通信科技(深圳)有限公司 一种指纹采集方法、装置及电子设备
CN107025419A (zh) * 2016-01-29 2017-08-08 北京小米移动软件有限公司 指纹模板录入方法及装置
CN109564625A (zh) * 2018-11-06 2019-04-02 深圳市汇顶科技股份有限公司 基于双感应区的识别指纹方法、指纹识别系统和电子设备
CN110516520A (zh) * 2018-05-22 2019-11-29 义隆电子股份有限公司 指纹注册方法及其电子装置
US20210165987A1 (en) * 2019-12-03 2021-06-03 Samsung Electronics Co., Ltd. Combined fingerprint recognition touch sensor, electronic apparatus including the same, and fingerprint enrollment method
CN113538269A (zh) * 2021-07-09 2021-10-22 Oppo广东移动通信有限公司 图像处理方法及装置、计算机可读存储介质和电子设备
CN113569602A (zh) * 2020-04-28 2021-10-29 联咏科技股份有限公司 显示设备、多指指纹检测装置及其操作方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6483932B1 (en) * 1999-08-19 2002-11-19 Cross Match Technologies, Inc. Method and apparatus for rolled fingerprint capture
WO2017091933A1 (zh) * 2015-11-30 2017-06-08 宇龙计算机通信科技(深圳)有限公司 一种指纹采集方法、装置及电子设备
CN107025419A (zh) * 2016-01-29 2017-08-08 北京小米移动软件有限公司 指纹模板录入方法及装置
CN110516520A (zh) * 2018-05-22 2019-11-29 义隆电子股份有限公司 指纹注册方法及其电子装置
CN109564625A (zh) * 2018-11-06 2019-04-02 深圳市汇顶科技股份有限公司 基于双感应区的识别指纹方法、指纹识别系统和电子设备
US20210165987A1 (en) * 2019-12-03 2021-06-03 Samsung Electronics Co., Ltd. Combined fingerprint recognition touch sensor, electronic apparatus including the same, and fingerprint enrollment method
CN113569602A (zh) * 2020-04-28 2021-10-29 联咏科技股份有限公司 显示设备、多指指纹检测装置及其操作方法
CN113538269A (zh) * 2021-07-09 2021-10-22 Oppo广东移动通信有限公司 图像处理方法及装置、计算机可读存储介质和电子设备

Also Published As

Publication number Publication date
CN117413538A (zh) 2024-01-16

Similar Documents

Publication Publication Date Title
TWI684886B (zh) 安全問題的生成以及身份驗證的方法及裝置
CN105260117B (zh) 应用程序控制方法及装置
KR102173123B1 (ko) 전자장치에서 이미지 내의 특정 객체를 인식하기 위한 방법 및 장치
US10007841B2 (en) Human face recognition method, apparatus and terminal
US20170103252A1 (en) Fingerprint recognition using a liquid crystal display including fingerprint recognition sensors
CN111695382B (zh) 指纹采集区域确定方法和指纹采集区域确定装置
US10237454B2 (en) Method for detecting terminal static layer information, terminal and television
US20180144176A1 (en) Fingerprint template acquisition method and device
US11216075B2 (en) Method, apparatus and device for triggering shooting mode, and storage medium
CN106681612A (zh) 一种应用于移动终端的调节方法及移动终端
CN108551552A (zh) 图像处理方法、装置、存储介质及移动终端
US20190102063A1 (en) Method for displaying icon and related terminal
CN105894042A (zh) 检测证件图像遮挡的方法和装置
CN107562356B (zh) 指纹识别定位方法、装置、存储介质及电子设备
CN106569937B (zh) 页面处理方法及装置
WO2023220875A1 (zh) 指纹数据获取方法和装置、电子设备、可读存储介质
US20180341041A1 (en) Method and device for determining descriptive information of precipitation trend, and readable storage medium
EP3327718A1 (en) Method and device for processing a page
CN113191198A (zh) 指纹识别方法、装置、移动终端及存储介质
CN105976344A (zh) 白板图像处理方法及装置
CN115562539A (zh) 控件显示方法及装置、电子设备和可读存储介质
CN112312021B (zh) 拍摄参数调整方法及装置
CN113507500A (zh) 终端控制方法、装置、计算机设备和计算机可读存储介质
CN108182145B (zh) 验证app界面布局的方法、装置及计算机可读存储介质
CN110392294A (zh) 人体检测方法、装置、电子设备以及存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280004119.9

Country of ref document: CN

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

Ref document number: 22941926

Country of ref document: EP

Kind code of ref document: A1