A fingerprint image common mode interference removal method, system, device and medium
By performing interference marking and contrast replacement on the image of the semiconductor fingerprint recognition sensor, the problem of image deformation caused by common mode interference of the power supply is solved, the accuracy and safety of fingerprint recognition are improved, and the high material and process requirements and costs of traditional methods are avoided. high problem.
Patent Information
- Application Number
- CN202410816670.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Semiconductor fingerprint recognition sensors are affected by common-mode interference from the power supply, causing image deformation and affecting the pass rate and security of fingerprint recognition. Existing solutions such as external metal shells and multiple image acquisitions have high material and process requirements, high costs, Image distortion problem.
By acquiring the fingerprint image to be processed, performing interference marking based on the preset interference rules, obtaining the marked fingerprint image that indicates the presence of beating phenomenon, repeatedly collecting the control fingerprint image, replacing the area to be replaced, obtaining a complete fingerprint image, and reducing the impact of common mode interference.
It improves the accuracy of fingerprint images, reduces the impact of common-mode interference, enhances the accuracy and security of fingerprint identification, and avoids the problems of high material and process requirements and high cost in traditional methods.
Smart Images

Figure CN118379766B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image processing, and in particular to a method, system, device and medium for removing common-mode interference from fingerprint images. Background Art
[0002] With the development of computer information technology, people's lives have gradually entered the digital network era. When performing identification, biometrics can be used, namely fingerprints, faces, voiceprints, etc. The acquisition technology of fingerprint images mainly uses sensors for acquisition, among which small-array semiconductor fingerprint recognition sensors occupy a major position in the fingerprint sensor market. However, many semiconductor fingerprint sensors are deeply affected by common-mode interference of the power supply. Common-mode interference can cause image deformation, which is undoubtedly fatal to semiconductor fingerprint recognition sensors using image recognition algorithms. This deformation will not only affect the pass rate of fingerprint recognition, but also bring challenges to the security of fingerprint recognition.
[0003] Currently, there are two main ways to deal with this effect on the market: external metal shell and multiple image acquisition averaging. The external metal shell mainly shares the ground with the sensor. When the finger touches the metal shell, it shares the ground with the sensor, thereby reducing the interference caused by the fluctuation of the power ground to the image. Multiple image acquisition averaging averages the grayscale of the image through multiple acquisitions to reduce the impact of interference on the image.
[0004] However, this method not only has extremely high requirements on the material of the metal shell and the conductivity of the spraying process; in addition, the metal shell must share the same ground with the semiconductor fingerprint recognition sensor, which also has certain requirements on the conductivity coefficient of the conductive glue and the assembly process of the metal shell. This not only increases the process cost, but also limits the structural shape of the fingerprint module. The image algorithm in the multiple image acquisition and image averaging is mainly characterized by the grayscale brightness of the image, which is why various image filtering methods cannot be used. Multiple image acquisitions for image grayscale averaging, although it seems to average out the interference, will also distort the image and lose the original grayscale gradient of the fingerprint. Summary of the invention
[0005] In order to restore the fingerprint image as much as possible and reduce the impact of common-mode interference, the present application provides a fingerprint image common-mode interference removal method, system, device and medium.
[0006] In the first aspect, the present application provides a fingerprint image common mode interference removal method, which adopts the following technical solution:
[0007] A fingerprint image common mode interference removal method comprises the following steps:
[0008] Acquire a fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image indicating the presence of a beating phenomenon;
[0009] Acquire the area to be replaced according to the marked fingerprint image, and repeatedly acquire the reference fingerprint image, and acquire the reference marked image corresponding to the area to be replaced according to the reference fingerprint image;
[0010] The control mark image is used to update the fingerprint image to be processed based on the area to be replaced to obtain a complete fingerprint image.
[0011] By adopting the above technical solution, the fingerprint image to be processed is first obtained, and the fingerprint image to be processed is interference-marked based on a preset interference rule to obtain a marked fingerprint image representing the existence of a beating phenomenon, and then the area to be replaced is obtained with the marked fingerprint image, and the reference fingerprint image is repeatedly collected, and a reference marked image corresponding to the area to be replaced is obtained in the reference fingerprint image, and the reference marked image replaces the area to be replaced, thereby obtaining a complete fingerprint image without interference beating, restoring the fingerprint image as much as possible, reducing the influence of common mode interference, and improving the accuracy of the obtained complete fingerprint image.
[0012] In one embodiment, the step of obtaining the fingerprint image to be processed comprises the following steps:
[0013] Acquire an original image, divide the original image into designated areas, and mark the designated areas according to the size of pixel grayscale to acquire a pixel-marked image;
[0014] The designated area and its adjacent designated areas are compared in size based on pixel grayscale in turn to obtain the fingerprint image to be processed with pixel comparison marks of the designated area.
[0015] By adopting the above technical scheme, the acquired original image is divided according to the designated areas, and then the pixel grayscale of each designated area is marked to obtain a pixel marked image, and the size of each designated area in the marked pixel marked image is compared with the pixel grayscale of its adjacent area, so as to obtain the fingerprint image to be processed with the pixel comparison mark of the designated area, so as to facilitate the next step of processing of the fingerprint image to be processed, and the fingerprint image to be processed can be interference marked based on the preset interference rule to obtain the marked fingerprint image representing the existence of the beating phenomenon, so as to accurately obtain the area with the beating phenomenon in the original image, and after a series of operations, the complete fingerprint image can be obtained based on the original image, so as to improve the processing of the fingerprint image, thereby improving the accuracy of the sensor in fingerprint image recognition.
[0016] In one embodiment, the interference marking of the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image includes the following steps:
[0017] Sequentially acquiring the designated areas of the fingerprint image to be processed, and acquiring the designated area positions and corresponding designated value sets according to the designated areas;
[0018] Acquire a mark value set corresponding to the specified area position according to the specified value set, wherein the mark value set includes the mark value corresponding to the specified area position;
[0019] The tag values corresponding to the designated area are added according to the tag value set, and the interference tag of the designated area is updated to obtain the tag fingerprint image.
[0020] By adopting the above technical solution, the position of the designated area and the corresponding designated value set are obtained according to the designated area, and the mark value set corresponding to the position of the designated area is obtained according to the designated value set, and all the mark values of the designated area of the fingerprint image to be processed are added, so as to update the mark corresponding to each designated area, and then the marked fingerprint image can be obtained, so as to accurately obtain the fingerprint image with the jumping mark, so as to facilitate the subsequent restoration of the fingerprint image as much as possible, reduce the influence of common mode interference, and improve the accuracy of the acquired fingerprint image.
[0021] In one embodiment, the method of acquiring the set of marked values corresponding to the designated area position according to the designated value set includes the following steps:
[0022] Obtaining a comparison value corresponding to the position of the designated area according to the designated value set, and obtaining an adjacent change value according to the comparison value;
[0023] Screening the adjacent change values in the preset change values, and determining whether the same control jitter value is screened in the preset change values;
[0024] If the same control jitter value is screened out in the preset change value, the mark value of the designated area position is marked as 1;
[0025] If the same control beating value is not screened out in the preset change value, the mark value of the designated area position is marked as 0.
[0026] By adopting the above technical solution, the comparison value corresponding to the specified area position is obtained according to the specified value set, the comparison value is screened in the preset change value, and it is determined whether the same control jump value is screened in the preset change value. If it is screened, the mark value of the specified area position is marked as 1, if it is not screened, the mark value of the specified area position is marked as 0, so that the mark value corresponding to the specified area position can be obtained, and then the various mark values of the specified area can be accurately obtained, which is convenient for the subsequent acquisition of the marked fingerprint image.
[0027] In one embodiment, the step of obtaining the area to be replaced based on the marked fingerprint image includes the following steps:
[0028] Acquiring a replacement area according to the marked fingerprint image;
[0029] Obtaining a region value sum corresponding to the replacement region, and comparing the region value sum with a preset value;
[0030] If the sum of the area values is greater than a preset value, it is determined that the replacement area has a jitter abnormality, and the replacement area is marked to obtain the area to be replaced.
[0031] By adopting the above technical scheme, a replacement area is obtained according to the marked fingerprint image; the area value sum corresponding to the replacement area is obtained, and the area value sum is compared with a preset value; if the area value sum is greater than the preset value, it is determined that there is a jumping abnormality in the replacement area, and the replacement area is marked to obtain the area to be replaced, and the marked fingerprint image is processed to obtain the area to be replaced, so that the area with jumping can be accurately obtained, which is convenient for subsequent replacement, thereby improving the processing of the fingerprint image to be processed to obtain a more complete fingerprint image.
[0032] In one embodiment, the step of obtaining a reference mark image corresponding to the area to be replaced based on the reference fingerprint image includes the following steps:
[0033] Acquire a control grayscale image according to the control fingerprint image, and mark the control grayscale image as abnormal to acquire an abnormally marked image;
[0034] A control mark image is acquired based on the area to be replaced according to the abnormal mark image.
[0035] In one embodiment, the step of obtaining a control mark image based on the area to be replaced according to the abnormal mark image comprises the following steps:
[0036] Finding the pending image at the position of the to-be-replaced area in the abnormal marked image, and determining whether the pending image has an abnormality;
[0037] If there is no abnormality in the pending image, the pending image is used as a comparison mark image of the area to be replaced.
[0038] By adopting the above technical solution, the pending image with the same position as the area to be replaced is found in the comparison mark image, and it is determined whether there is an abnormality in the pending image. If there is no abnormality, the pending image is used as the comparison mark image, so that the area to be replaced with the abnormality in the fingerprint image to be processed can be replaced, thereby improving the accuracy of obtaining a complete fingerprint image.
[0039] In the second aspect, the present application provides a fingerprint image common mode interference removal system, which adopts the following technical solution:
[0040] A fingerprint image common mode interference removal system, comprising:
[0041] An image acquisition module, the image acquisition module is used to acquire a fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on a preset interference rule to acquire a marked fingerprint image;
[0042] An image processing module, the image processing module is used to obtain the area to be replaced according to the marked fingerprint image, and repeatedly collect a reference fingerprint image, and obtain a reference marked image corresponding to the area to be replaced according to the reference fingerprint image;
[0043] An image replacement module is used to update the fingerprint image to be processed with the comparison mark image based on the area to be replaced to obtain a complete fingerprint image.
[0044] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0045] An electronic device, comprising a processor and a memory coupled to each other;
[0046] The memory stores a computer program that can be run on the processor;
[0047] When the computer program is executed by the processor, the fingerprint image common mode interference removal method as described in the first aspect is implemented.
[0048] In a fourth aspect, the present application provides a storage medium, which adopts the following technical solution:
[0049] A storage medium storing at least one instruction, at least one program, a code set or an instruction set, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the fingerprint image common mode interference removal method as described in the first aspect.
[0050] In summary, the present application includes at least one of the following beneficial technical effects:
[0051] 1. First, obtain the fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on the preset interference rule to obtain the marked fingerprint image that indicates the existence of the beating phenomenon, and then obtain the area to be replaced with the marked fingerprint image, repeatedly collect the reference fingerprint image, and obtain the reference marked image corresponding to the area to be replaced in the reference fingerprint image, and replace the area to be replaced with the reference marked image, so as to obtain a fingerprint image without beating, restore the fingerprint image as much as possible, reduce the influence of common mode interference, and improve the accuracy of the acquired fingerprint image;
[0052] 2. Divide the acquired original image according to the designated areas, then mark the pixel grayscale of each designated area to obtain a pixel marked image, and compare the grayscale of each designated area in the marked pixel marked image with that of its adjacent pixels, so as to obtain the fingerprint image to be processed with the pixel comparison mark of the designated area, so as to facilitate the next step of processing the fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on the preset interference rule to obtain a marked fingerprint image representing the existence of the beating phenomenon, so as to accurately obtain the area with the beating phenomenon in the original image, and after a series of operations, obtain a complete fingerprint image based on the original image, so as to improve the processing of the fingerprint image, thereby improving the accuracy of the sensor in fingerprint image recognition;
[0053] 3. Obtain the position of the designated area and the corresponding designated value set according to the designated area, obtain the mark value set corresponding to the position of the designated area according to the designated value set, add all the mark values of the designated area of the fingerprint image to be processed, so as to update the mark corresponding to each designated area, and then obtain the marked fingerprint image, so as to accurately obtain the fingerprint image with the jumping mark, so as to facilitate the subsequent restoration of the fingerprint image as much as possible, reduce the influence of common mode interference, and improve the accuracy of the acquired fingerprint image. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a block diagram of a fingerprint image common mode interference removal method provided in an embodiment of the present application;
[0055] Figure 2 is a schematic diagram of a pixel-marked image and a corresponding fingerprint image to be processed provided in an embodiment of the present application;
[0056] Figure 3 It is a block diagram of a method for obtaining a marked fingerprint image provided by an embodiment of the present application;
[0057] Figure 4 is a schematic diagram of calculating a marked fingerprint image provided by an embodiment of the present application;
[0058] Figure 5 is a block diagram of a method for obtaining a region to be replaced provided in an embodiment of the present application;
[0059] Figure 6 It is a structural block diagram of the electronic device provided in this embodiment.
[0060] Explanation of the reference numerals: 11, processor; 12, memory; 121, computer program. DETAILED DESCRIPTION
[0061] To more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. However, it should be understood by those of ordinary skill in the art that the present application can be implemented without these details. In some cases, in order to avoid unnecessary descriptions that make various aspects of the present application obscure, well-known methods, processes, systems, components and / or circuits that have been described at a higher level will not be described in detail. For those of ordinary skill in the art, it is obvious that various changes can be made to the embodiments disclosed in the present application, and without departing from the principles and scope of the present application, the general principles defined in the present application can be applied to other embodiments and application scenarios. Therefore, the present application is not limited to the embodiments shown, but conforms to the broadest scope consistent with the scope claimed for protection of the present application.
[0062] An embodiment of the present application discloses a method for removing common mode interference of fingerprint images, which is applied to an electronic device. The electronic device includes a processor and a memory coupled to each other. The memory stores a computer program that can be run on the processor, and the computer program is executed by the processor to implement the method for removing common mode interference of fingerprint images.
[0063] like Figure 1 As shown, a fingerprint image common mode interference removal method comprises the following steps:
[0064] S100, obtaining a fingerprint image to be processed, and performing interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image indicating the existence of a beating phenomenon.
[0065] The processor obtains the fingerprint image to be processed, and performs interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image representing the presence of a jumping phenomenon. The above-mentioned fingerprint image to be processed mainly represents an image that needs to be interfered with, and the fingerprint image to be processed is an image that has been pixel-marked.
[0066] In one embodiment, since the fingerprint image to be processed obtained by the processor is obtained by processing the original image, and the original image is obtained by the sensor, the processor obtains the original image obtained by the sensor and processes the original image to obtain the fingerprint image to be processed.
[0067] Obtaining the fingerprint image to be processed includes the following steps:
[0068] S110, obtaining an original image, dividing the original image into designated areas, and marking the designated areas according to the size of pixel grayscale to obtain a pixel marked image.
[0069] S120, sequentially comparing the designated area and its adjacent designated areas based on pixel grayscale to obtain a fingerprint image to be processed with pixel comparison marks of the designated area.
[0070] Among them, the original image is the original fingerprint image obtained by the sensor, and the image has not been processed accordingly. The designated area is the size of the area into which the original image is divided. The designated area here can be set according to actual conditions, and can be set with the size of a unit pixel frame. In this embodiment, the designated area is set to an area of a unit pixel frame size, and the original image is divided into grid images of corresponding sizes. Pixels in each designated area are marked according to the size of the pixel grayscale, thereby obtaining a pixel marked image. The pixel marked image is an image marked according to the size of the pixel grayscale in each designated area.
[0071] For example, the image size of the fingerprint image to be processed is 5*5. Figure 2 As shown in (A), it is a pixel-marked image obtained by pixel grayscale, where each grid in the figure represents a specified area, and the corresponding value in the grid is the pixel grayscale level. Pixel grayscale is the grayscale level of each pixel in the image, and these levels are represented by numbers 0-255, where 0 represents black and 255 represents white. For fingerprint images with common mode interference, the grayscale between adjacent pixels changes from white to black repeatedly, while normal fingerprint pixels are continuous and smooth. Therefore, in order to obtain a more accurate marked fingerprint image, it is necessary to pixel-mark the original image according to the size of the pixel grayscale to obtain a pixel-marked image.
[0072] Since the gray scale changes from white to black repeatedly between adjacent pixels, while the pixels of a normal fingerprint are continuous and smooth, and the position of the common-mode interference image is not fixed and will move back and forth between different rows. Therefore, it is necessary to obtain the fingerprint image to be processed according to the pixel-labeled image in step S120. Taking rows as units, the specified area and its adjacent specified area are compared in size based on pixel gray scale in turn to obtain the fingerprint image to be processed with pixel comparison marks for the specified area.
[0073] It should be noted here that the pixel comparison mark is mainly a value that marks the specified area as 1 or 0, that is, each specified area corresponding to the fingerprint image to be processed is a grid image with a value of 1 or 0. The specific processing method is as follows: taking rows as units, the pixel-labeled image is defined as a grid image of the i-th row and j-th column. If the pixel A[i][j] in the i-th row and j-th column specified area of the pixel-labeled image is greater than A[i][j + 1], then the pixel comparison mark for the specified area of the i-th row and j-th column is marked as 0. Conversely, if A[i][j] is less than A[i][j + 1], then the pixel comparison mark for the specified area of the i-th row and j-th column is marked as 1.
[0074] Exemplarily, as Figure 2 shown, where Figure 2 (A) in represents the pixel-labeled image A, and the pixel-labeled image A is an image for pixel gray-scale marking. Figure 2 (B) in represents the static gray-scale difference array B corresponding to the pixel-labeled image A. The fingerprint image to be processed is the image of the static gray-scale difference array B obtained after pixel gray-scale processing of the pixel-labeled image A.
[0075] As Figure 2 shown in (B) in, assuming that the image gray-scale data of the first row in the pixel-labeled image A is: A[1] = {50, 10, 255, 100, 40}, then the static gray-scale difference array B[1] of the first row of the static gray-scale difference array B is: B[1] = {0, 1, 0, 0, 0}. Among them, the calculation method of the first row of the static gray-scale difference array B is: A[1] is greater than A[2], so B[1] is 0; A[2] is less than A[3], so B[2] is 1; A[3] is greater than A[4], so B[3] is 0; A[4] is greater than A[5], so B[4] is 0. Since there is no subsequent comparison value for the number in the first row and fifth column, the fifth column of the first row in the static gray-scale difference array B is set to 0, and then the complete static gray-scale difference array B[1] corresponding to the original image can be obtained. Similarly, corresponding processing is performed on other rows in the pixel-labeled image A, and then the static gray-scale difference array B corresponding to the pixel-labeled image A, that is, the fingerprint image to be processed, can be obtained.
[0076] In addition, the interference processing in step S100 is mainly performed based on the grayscale change law of the fingerprint image subjected to common mode interference. After the fingerprint image to be processed is subjected to interference processing, a marked fingerprint image that can characterize the beating area can be obtained. The marked fingerprint image is an image that can obtain an image of the deformation area.
[0077] The preset interference law is mainly obtained through the grayscale change law of the fingerprint image of common mode interference. Specifically, therefore, through the above-mentioned specific, the fingerprint image to be processed can be marked with corresponding interference, and then a marked fingerprint image representing the existence of the jumping phenomenon can be obtained. The marked fingerprint image here mainly marks some areas with jumping on the fingerprint image to be processed, and then obtains the marked fingerprint image.
[0078] Combination Figure 3 In one embodiment, interference marking is performed on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image, including the following steps:
[0079] S130, sequentially acquiring designated areas of the fingerprint image to be processed, and acquiring designated area positions and corresponding designated value sets according to the designated areas.
[0080] S140, obtaining a mark value set corresponding to the specified area position according to the specified value set, wherein the mark value set includes the mark value corresponding to the specified area position.
[0081] S150, adding the mark values corresponding to the designated area according to the mark value set, updating the interference mark of the designated area, to obtain a marked fingerprint image.
[0082] The designated area position represents the position formed continuously along each row of grid data of the fingerprint image to be processed based on the designated area as the initial position. In this embodiment, for the convenience of calculation, the designated area position is the position of four consecutive designated areas. The designated value set is the value set representing the pixel comparison mark of four consecutive designated areas in the fingerprint image to be processed. The mark value set represents the set of corresponding mark values formed based on the designated value set of the designated area position. The mark value is the mark value formed based on the designated value set corresponding to the designated area position.
[0083] It should be noted here that there are multiple designated area positions, which are specifically obtained based on the designated area of the fingerprint image to be processed, and the designated areas of the fingerprint image to be processed are obtained in sequence, and the designated areas are obtained in sequence according to each row of the fingerprint image to be processed until all the designated areas of the fingerprint image to be processed are traversed.
[0084] For example, Figure 2As shown in (B) in FIG. 1 , 25 designated areas are included, and then the designated areas are obtained in sequence, and the designated area is taken as the first, and four consecutively connected designated areas are obtained according to the preset route as a group of designated area positions. For example, Figure 2 Taking the first row in as an example, designated area a, designated area b, designated area c, designated area d and designated area e, the designated area position a corresponding to the designated area a is the area corresponding to the designated area a to the designated area d in the figure, and the designated area position b corresponding to the designated area b is the area corresponding to the designated area b to the designated area e in the figure.
[0085] Regarding step S150, the mark values corresponding to the designated area are added according to the mark value set, and the interference mark of the designated area is updated to obtain the marked fingerprint image. It is mainly based on the grid image of the fingerprint image to be processed to process row by row, so as to obtain the mark value corresponding to the designated area of each row, and then the mark value corresponding to the designated area of each row is added to obtain the interference mark of the corresponding row of the marked fingerprint image, and the designated area of each row of the fingerprint image to be processed is processed in turn until the grid image of all rows of the fingerprint image to be processed is traversed.
[0086] In one embodiment, a set of marked values corresponding to a specified area position is obtained according to a specified value set, wherein a method for obtaining the marked values of the specified area position includes the following steps:
[0087] S131, obtaining a comparison value corresponding to a specified area position according to a specified value set, and obtaining an adjacent change value according to the comparison value.
[0088] S132, screening the adjacent change values in the preset change values, and determining whether the same control jitter value is screened out in the preset change values.
[0089] S133: If the same control jitter value is screened out in the preset change value, the mark value of the designated area position is marked as 1.
[0090] S134: If the same control jitter value is not found in the preset change value, the mark value of the designated area position is marked as 0.
[0091] Among them, the comparison value represents the value corresponding to the position of the specified area. Since the pixel comparison mark is 0 or 1, the comparison value obtained is the binary value of the four consecutive specified areas. The adjacent change value is the hexadecimal value obtained based on the comparison value. The preset change value represents the hexadecimal value of the jumping area, and the comparison jump value represents the value that is equal to the adjacent change value corresponding to the specified area position selected from the preset change value.
[0092] Specifically, each group of designated area positions corresponds to a comparison value, and then the corresponding adjacent change value is obtained according to the comparison value, the adjacent change value is screened in the preset change value, and it is determined whether the same control jump value is screened in the preset change value. If the same control jump value is screened in the preset change value, the mark value of the designated area position is marked as 1. If the same control jump value is not screened in the preset change value, the mark value of the designated area position is marked as 0. The preset change value is a group of hexadecimal values, such as 0x02, 0x04, 0x05, 0x0A, 0x0B, 0x0D.
[0093] It should be noted that the marking value is marked according to the position of the designated area, which is convenient for subsequent updating of the marking of the designated area of the fingerprint image to be processed. The adjacent change value is mainly to convert the comparison value into a hexadecimal value according to a preset formula, and the preset formula is the following formula (1).
[0094] X=B[i][j]<<4|B[i][j+1]<<3|B[i][j+2]<<2|B[i][j+3] (1)
[0095] Wherein, i represents the row of the fingerprint image to be processed, and j represents the column of the fingerprint image to be processed.
[0096] Exemplary, combined Figure 4As shown in the figure, assuming that the i-th row data of the fingerprint image B to be processed is {1,1,1,0,1,1,1,1}, here i is taken as the first row of the fingerprint image B to be processed, that is, as shown in B[1][j] in the figure. Then for the i-th row data of the fingerprint image B to be processed, the designated area B[1], the designated area B[2], the designated area B[3], the designated area B[4], the designated area B[5], the designated area B[6], the designated area B[7] and the designated area B[8] can be obtained. Taking the designated area B[1] as an example, the designated area position [1] obtained by the designated area B[1] is the continuous 4 designated areas with the designated area B[1] as the first, which is the designated area B[1]-designated area B[4]. Therefore, the designated value set [1] is {1110}, and the obtained comparison value [1] is 1110. The comparison value [1] is converted according to formula (1) to obtain the corresponding adjacent change value [1] of Ox0E. The adjacent change value [1] is screened in the preset change value, and the same control jump value is not screened. Therefore, the mark values of the corresponding positions of the designated area B[1]-designated area B[4] are all marked as 0. Select designated area B[2] again. Designated area position [2] is the 4 consecutive designated areas starting with designated area B[2], which is designated area B[2]-designated area B[5]. Therefore, designated value set [2] is {1102}, and the obtained comparison value [2] is 1101. Comparison value [2] is converted according to formula (1) to obtain the corresponding adjacent change value [2] of 0x0D. Adjacent change value [2] is filtered in the preset change value, and the same comparison jump value 0x0D is filtered. Therefore, the mark values of the corresponding positions of designated area B[2]-designated area B[5] are all marked as 1. The designated areas of the i-th row of data of the fingerprint image to be processed are obtained in sequence until the i-th row of data of the fingerprint image to be processed is completely processed, and the mark values obtained each time are recorded in sequence according to the acquisition order of the designated areas, such as Figure 4 Finally, according to step S150, the mark values corresponding to the designated area of the i-th row of data of the fingerprint image to be processed are added, and the interference mark of the designated area is updated to obtain the interference mark of the i-th row of the fingerprint image, as shown in FIG. Figure 4 Finally, the other rows of the fingerprint image to be processed are processed in the same way until all the fingerprint images to be processed are traversed.
[0097] S200, acquiring a region to be replaced according to a marked fingerprint image, repeatedly acquiring a reference fingerprint image, and acquiring a reference marked image corresponding to the region to be replaced according to the reference fingerprint image.
[0098] Among them, the area to be replaced represents the size of the area divided in the marked fingerprint image, which is mainly the area with serious interference and jitter. The reference fingerprint image represents the fingerprint image collected again, and the reference mark image represents the area image that needs to be replaced with the area to be replaced, and the reference mark image is the area without interference and jitter. The size of the reference mark image mentioned here is the same as that of the area to be replaced, so that further replacement can be performed.
[0099] It should be noted that the size of the area to be replaced can be selected by taking each line of the marked fingerprint image as a replacement area, or by taking 8*8 pixels or a larger n*n pixel size as the replacement area. For ease of understanding, this embodiment is exemplified by taking each line of the marked fingerprint image as a replacement area.
[0100] Reference Figure 5 In one embodiment, obtaining the area to be replaced based on the marked fingerprint image includes the following steps:
[0101] S210, obtaining a replacement area according to the marked fingerprint image.
[0102] S220, obtaining a region value sum corresponding to the replacement region, and comparing the region value sum with a preset value.
[0103] S230: If the sum of the area values is greater than a preset value, it is determined that the replacement area has a jitter abnormality, and the replacement area is marked to obtain the area to be replaced.
[0104] Among them, the replacement area represents the area corresponding to each line of the marked fingerprint image, the area value sum represents the sum of the mark values of all specified areas in the replacement area, and the preset value represents the minimum standard value for judging the replacement area as an abnormal area. This can be set according to the selection of the replacement area. The replacement area of this embodiment is divided according to each line of the marked fingerprint image, so the preset value is set to Ox35.
[0105] Specifically, the replacement area is obtained according to the marked fingerprint image, the area value sum corresponding to the replacement area is obtained, and the area value sum is compared with the preset value. If the area value sum is greater than the preset value, it is determined that there is a beating abnormality in the replacement area, and the replacement area is marked to obtain the area to be replaced. If the area value sum is less than the preset value, it is determined that there is no beating abnormality in the replacement area, and the replacement area is not used as the area to be replaced. When the area value sum is equal to the preset value, it is processed as if the area value sum is greater than the preset value.
[0106] In step S200, the reference fingerprint image is repeatedly collected, and the reference mark image corresponding to the area to be replaced is obtained based on the reference fingerprint image. Specifically, the fingerprint image is collected one by one. After the collection, the fingerprint image needs to be processed accordingly, so as to obtain the reference mark image corresponding to the area to be replaced.
[0107] In one embodiment, obtaining a reference mark image corresponding to the area to be replaced according to the reference fingerprint image includes the following steps:
[0108] S240, obtaining a control grayscale image according to the control fingerprint image, and marking the control grayscale image as abnormal to obtain an abnormally marked image.
[0109] S250, obtaining a control mark image based on the area to be replaced according to the abnormal mark image.
[0110] Among them, the control grayscale image represents the grayscale processing of the control fingerprint image, and then the corresponding image can be obtained. The specific processing method of obtaining the control grayscale image from the control fingerprint image can be processed according to the operation steps of step S110-step S120, and then the control grayscale image can be obtained. The control grayscale image is abnormally marked to obtain the abnormal marked image, which can be processed according to the operation steps of step S130-step S150 to obtain the corresponding abnormal marked image. It will not be described in detail here.
[0111] In step S200, a control mark image is obtained based on the area to be replaced according to the abnormal mark image. Specifically, the fingerprint image is collected one by one. Each time the collected control fingerprint image is collected, the collected control fingerprint image is processed to obtain the control mark image. The steps on how to obtain the control mark image are as follows.
[0112] In one embodiment, obtaining a control mark image based on the area to be replaced according to the abnormal mark image includes the following steps:
[0113] S251, finding the pending image at the position of the area to be replaced in the abnormality marked image, and determining whether there is an abnormality in the pending image.
[0114] S252: If there is no abnormality in the image to be determined, the image to be determined is used as a reference mark image of the area to be replaced.
[0115] Among them, the pending image is mainly based on finding the image in the same position in the abnormal mark image in the area to be replaced, and judging the pending image to determine whether there is an abnormality in the pending image. If there is no abnormality in the pending image, the pending image will be used as the control mark image of the area to be replaced. If there is an abnormality in the pending image, the pending image will not be used as the control mark image of the area to be replaced.
[0116] It should be noted here that how to determine whether there is an abnormality in the pending image is mainly determined in accordance with steps S210-S230. Since the image size of the control mark image is consistent with that of the area to be replaced, when the control fingerprint image is divided into areas, it is processed in the same way as the fingerprint image to be processed, so that the complete fingerprint image obtained by replacing the area to be replaced with the control mark image can be more accurate.
[0117] S300, updating the fingerprint image to be processed based on the area to be replaced by the comparison mark image to obtain a complete fingerprint image.
[0118] The complete fingerprint image represents the image obtained after anti-interference removal, and the fingerprint image presented by the complete fingerprint image is an image with a complete fingerprint. In the above step S300, the comparison mark image is used to update the fingerprint image to be processed based on the area to be replaced. The image is mainly formed by replacing the area to be replaced in the fingerprint image to be processed with the comparison mark image in the comparison fingerprint image repeatedly obtained in step S200.
[0119] In this embodiment, each row of the marked fingerprint image is used as the replacement area. The specific updating process is: there is an area to be replaced with disturbed abnormal behavior in the marked fingerprint image. If the corresponding abnormal row is judged to be a normal row through the above steps during the secondary image acquisition, the abnormal row in the original marked fingerprint image is replaced with the regional image of the normal row obtained by the secondary image acquisition. The above operation steps are repeated until each area to be replaced in the marked fingerprint image is replaced. The present application can complete the anti-interference processing of the fingerprint image to be processed after about 7 to 9 times of image acquisition.
[0120] The implementation principle is:
[0121] First, the processor obtains the original image for the first time, divides the original image into designated areas, and marks the designated areas according to the size of the pixel grayscale to obtain a pixel-marked image, and compares the size of the designated area with the designated areas adjacent to it based on the pixel grayscale in turn to obtain a fingerprint image to be processed with pixel comparison marks of the designated areas;
[0122] Then, the designated areas of the fingerprint image to be processed are obtained in sequence, and the designated area positions and the corresponding designated value sets are obtained according to the designated areas. And the tag value set corresponding to the designated area positions is obtained according to the designated value set, and the tag value set includes the tag values corresponding to the designated area positions. Then, the tag values corresponding to the designated areas are added according to the tag value set, and the interference marks of the designated areas are updated to obtain the marked fingerprint image;
[0123] Next, the replacement area is obtained based on the marked fingerprint image, the area value sum corresponding to the replacement area is obtained, and the area value sum is compared with the preset value. If the area value sum is greater than the preset value, it is determined that there is a jumping abnormality in the replacement area, and the replacement area is marked to obtain the area to be replaced.
[0124] Finally, the control fingerprint image is repeatedly collected, and the control mark image corresponding to the area to be replaced is obtained based on the control fingerprint image, and the control mark image is used to update the fingerprint image to be processed based on the area to be replaced to obtain a complete fingerprint image.
[0125] The embodiment of the present application also discloses a fingerprint image common mode interference removal system.
[0126] The fingerprint image common mode interference removal system includes an image acquisition module, an image processing module and an image replacement module. The image acquisition module is used to acquire a fingerprint image to be processed, and to perform interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image. The image processing module is used to acquire a region to be replaced based on the marked fingerprint image, and to repeatedly acquire a reference fingerprint image, and to acquire a reference marked image corresponding to the region to be replaced based on the reference fingerprint image. The image replacement module is used to update the fingerprint image to be processed based on the region to be replaced with the reference marked image to obtain a complete fingerprint image.
[0127] The other functions performed in the above-mentioned image acquisition module, image processing module and image replacement module and the technical details of each function are the same or similar to the corresponding features in the fingerprint image common mode interference removal method described above, so they will not be repeated here.
[0128] The embodiment of the present application also discloses an electronic device.
[0129] Reference Figure 6 , the electronic device includes a processor 11 and a memory 12 coupled to each other.
[0130] The memory 12 stores a computer program 121 that can be executed on the processor 11 .
[0131] When the computer program 121 is executed by the processor 11, the fingerprint image common mode interference removal method as described above is implemented.
[0132] The embodiment of the present application also discloses a storage medium.
[0133] The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the fingerprint image common mode interference removal method as mentioned above.
[0134] It should be understood that although the steps in the flowchart of the accompanying drawings are shown in sequence according to the instructions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise clearly stated in this document, the execution of these steps is not strictly limited in order and can be performed in other orders.
[0135] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A fingerprint image common mode interference removal method, characterized in that: The following steps are involved: Acquire a fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image indicating the presence of a beating phenomenon; Acquire the area to be replaced according to the marked fingerprint image, and repeatedly acquire the reference fingerprint image, and acquire the reference marked image corresponding to the area to be replaced according to the reference fingerprint image; Using the control mark image to update the fingerprint image to be processed based on the area to be replaced to obtain a complete fingerprint image; The step of obtaining the fingerprint image to be processed comprises the following steps: Acquire an original image, divide the original image into designated areas, and mark the designated areas according to the size of pixel grayscale to acquire a pixel-marked image; Comparing the designated area with its adjacent designated areas based on pixel grayscale in turn to obtain the fingerprint image to be processed with pixel comparison marks of the designated area; The method of performing interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image includes the following steps: Sequentially acquiring the designated areas of the fingerprint image to be processed, and acquiring the designated area positions and corresponding designated value sets according to the designated areas; The designated area position represents the position formed continuously along each row of grid data of the fingerprint image to be processed based on the designated area as the initial position, and the designated value set represents the value set of pixel comparison marks of four consecutive designated areas in the fingerprint image to be processed; Acquire a mark value set corresponding to the specified area position according to the specified value set, wherein the mark value set includes the mark value corresponding to the specified area position; The tag values corresponding to the designated area are added according to the tag value set, and the interference tag of the designated area is updated to obtain the tag fingerprint image.
2. The fingerprint image common mode interference removal method according to claim 1, characterized in that: The method of acquiring the set of marked values corresponding to the designated area position according to the designated value set includes the following steps: Obtaining a comparison value corresponding to the position of the designated area according to the designated value set, and obtaining an adjacent change value according to the comparison value; Screening the adjacent change values in the preset change values, and determining whether the same control jitter value is screened in the preset change values; If the same control jitter value is screened out in the preset change value, the mark value of the designated area position is marked as 1; If the same control beating value is not screened out in the preset change value, the mark value of the designated area position is marked as 0.
3. The fingerprint image common mode interference removal method according to claim 1, characterized in that: The step of obtaining the area to be replaced based on the marked fingerprint image comprises the following steps: Acquiring a replacement area according to the marked fingerprint image; Obtaining a region value sum corresponding to the replacement region, and comparing the region value sum with a preset value; If the sum of the area values is greater than a preset value, it is determined that the replacement area has a jitter abnormality, and the replacement area is marked to obtain the area to be replaced.
4. The fingerprint image common mode interference removal method according to claim 1, characterized in that: The step of obtaining a reference mark image corresponding to the area to be replaced based on the reference fingerprint image comprises the following steps: Acquire a control grayscale image according to the control fingerprint image, and mark the control grayscale image as abnormal to acquire an abnormally marked image; A control mark image is acquired based on the area to be replaced according to the abnormal mark image.
5. The fingerprint image common mode interference removal method according to claim 4, characterized in that: The step of obtaining a control mark image based on the area to be replaced according to the abnormal mark image comprises the following steps: Finding the pending image at the position of the to-be-replaced area in the abnormal marked image, and determining whether the pending image has an abnormality; If there is no abnormality in the pending image, the pending image is used as a comparison mark image of the area to be replaced.
6. A fingerprint image common mode interference removal system, characterized in that: include: An image acquisition module, the image acquisition module is used to acquire a fingerprint image to be processed, and perform interference marking on the fingerprint image to be processed based on a preset interference rule to acquire a marked fingerprint image, The step of obtaining the fingerprint image to be processed comprises the following steps: Acquire an original image, divide the original image into designated areas, and mark the designated areas according to the size of pixel grayscale to acquire a pixel-marked image; Comparing the designated area with its adjacent designated areas based on pixel grayscale in turn to obtain the fingerprint image to be processed with pixel comparison marks of the designated area; The method of performing interference marking on the fingerprint image to be processed based on a preset interference rule to obtain a marked fingerprint image includes the following steps: Sequentially acquiring the designated areas of the fingerprint image to be processed, and acquiring the designated area positions and corresponding designated value sets according to the designated areas; The designated area position represents the position formed continuously along each row of grid data of the fingerprint image to be processed based on the designated area as the initial position, and the designated value set represents the value set of pixel comparison marks of four consecutive designated areas in the fingerprint image to be processed; Acquire a mark value set corresponding to the specified area position according to the specified value set, wherein the mark value set includes the mark value corresponding to the specified area position; Adding the mark values corresponding to the designated area according to the mark value set, updating the interference mark of the designated area, so as to obtain the marked fingerprint image; An image processing module, the image processing module is used to obtain the area to be replaced according to the marked fingerprint image, and repeatedly collect a reference fingerprint image, and obtain a reference marked image corresponding to the area to be replaced according to the reference fingerprint image; An image replacement module is used to update the fingerprint image to be processed with the comparison mark image based on the area to be replaced to obtain a complete fingerprint image.
7. An electronic device, characterized in that: The electronic device includes a processor and a memory coupled to each other; The memory stores a computer program that can be run on the processor; When the computer program is executed by the processor, the fingerprint image common mode interference removal method as described in any one of claims 1 to 5 is implemented.
8. A storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the fingerprint image common mode interference removal method as described in any one of claims 1-5.
Citation Information
Patent Citations
Gain adjustment processing-based fingerprint imaging method
CN106203365A
Fingerprint image processing method, fingerprint identification apparatus and electronic device
CN108596060A
