WO2019223068A1 - Iris image local enhancement method, device, equipment and storage medium - Google Patents

Iris image local enhancement method, device, equipment and storage medium Download PDF

Info

Publication number
WO2019223068A1
WO2019223068A1 PCT/CN2018/094396 CN2018094396W WO2019223068A1 WO 2019223068 A1 WO2019223068 A1 WO 2019223068A1 CN 2018094396 W CN2018094396 W CN 2018094396W WO 2019223068 A1 WO2019223068 A1 WO 2019223068A1
Authority
WO
WIPO (PCT)
Prior art keywords
iris image
iris
enhanced
initial
pixel
Prior art date
Application number
PCT/CN2018/094396
Other languages
French (fr)
Chinese (zh)
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 平安科技(深圳)有限公司
Publication of WO2019223068A1 publication Critical patent/WO2019223068A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/193Preprocessing; Feature extraction
    • G06T5/73
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/197Matching; Classification

Definitions

  • the present application relates to the field of image processing, and in particular, to a method, a device, a device, and a storage medium for locally enhancing an iris image.
  • iris has the characteristics of uniqueness, stability, collectability and non-invasiveness.
  • high-definition iris images are often used as training sets, but due to the limitations of acquisition equipment and changes in the acquisition environment, the quality of the acquired iris images will be poor, such as low contrast and noise interference. Such issues will affect the highlighting of iris texture features, and then affect the clarity and recognition efficiency of the iris image training set.
  • the overall contrast of the collected iris image is usually adjusted dynamically.
  • the accuracy of the iris image processed in the recognition system is still not high.
  • a local iris image enhancement method includes:
  • the iris image set includes an iris image, and the iris image includes a user identifier
  • the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  • An iris image local enhancement device includes:
  • An iris image set acquisition module configured to obtain an iris image set, wherein the iris image set includes an iris image, and the iris image includes a user identifier;
  • the iris sequence acquisition module is used to calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the order of the contrast, to obtain the corresponding Initial iris sequence;
  • the initial iris set acquisition module is used to obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
  • a first enhanced iris image set acquisition module configured to perform local enhancement processing on the initial iris image in the initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set;
  • a second enhanced iris image set acquisition module is configured to sharpen the first enhanced iris image in the first enhanced iris image set by using a Laplacian to obtain a second enhanced iris image set.
  • a computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the iris image set includes an iris image, and the iris image includes a user identifier
  • the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  • One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the iris image set includes an iris image, and the iris image includes a user identifier
  • the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  • FIG. 1 is an application scene diagram of an iris image local enhancement method according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for locally enhancing an iris image in an embodiment of the present application
  • step S10 in FIG. 2 is a flowchart of a specific implementation of step S10 in FIG. 2;
  • step S20 in FIG. 2 is a flowchart of a specific implementation of step S20 in FIG. 2;
  • step S40 in FIG. 2 is a flowchart of a specific implementation of step S40 in FIG. 2;
  • step S50 in FIG. 2 is a flowchart of a specific implementation of step S50 in FIG. 2;
  • FIG. 7 (a) is an example diagram of an initial iris image in the embodiment of the present application.
  • FIG. 7 (b) is an example diagram of a second enhanced iris image in the embodiment of the present application.
  • FIG. 8 is a schematic diagram of an iris image local enhancement device according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a computer device in an embodiment of the present application.
  • the local enhancement method of the iris image provided in the present application can be applied in a computer device or system to enhance the iris image to solve the problem of low recognition accuracy of the iris image.
  • the computer device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the system may include a server and a client.
  • FIG. 1 shows an application scene diagram of the local enhancement method of the iris image applied in the system.
  • the server and the client are connected through the network, the client collects or obtains the iris image, and the server obtains the iris image from the client.
  • the client can be a camera, camera, scanner, or other device with a photographing function. (Phone, tablet, etc.), or a storage device that stores iris images.
  • the server can be implemented by a server or a server cluster composed of a plurality of servers.
  • a method for locally enhancing an iris image is provided.
  • the method is applied to a computer device as an example for description, and includes the following steps:
  • the iris image set includes an iris image, and the iris image includes a user logo.
  • the iris image set refers to an image set composed of iris images, and the iris image refers to an image obtained by photographing an iris inside a user's eye through a camera device.
  • the iris image set may be acquired in real time, or may be stored in a computer device in advance.
  • An iris image set may include iris images of one user, and may also include iris images of multiple users.
  • an iris image set includes iris images of N users. If each user has M iris images, then the iris image set has M * N iris images.
  • the iris image set includes at least two iris images.
  • the user logo refers to the logo of the user to which the iris image belongs, and is used to classify the iris image according to the user. Each iris image corresponds to a user logo, and the iris image of the same user corresponds to the same user logo.
  • a predetermined number of iris images can be acquired by photographing the eyes of the user to form an iris image set, or a predetermined number of pre-stored iris images can be acquired from a computer device to form an iris image set, or acquired by photographing the eyes of the user Part of the iris image, and another part of the pre-stored iris image is obtained from the computer equipment, and the two together constitute the iris image set.
  • multiple iris images of several users can be selected as the iris image set during the same time period. For example, it can be collected at noon on a rainy day or in the afternoon on a sunny day. This can avoid the problem that the contrast of the iris images in the iris image set that are acquired is greatly different due to light changes.
  • S20 Calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the descending order of the contrast to obtain the initial iris sequence corresponding to each user ID.
  • contrast is an index to measure image quality.
  • the contrast of an iris image is the ratio of black and white of the image, which is used to represent the gradation of the iris image from black to white.
  • the larger the ratio the more the gradation of the iris image from black to white, and the richer the color expression.
  • the effect of contrast on visual effects is very critical.
  • the larger the contrast the clearer and sharper the image, and the brighter and more vivid the colors.
  • the high-contrast iris image has more obvious advantages in detail performance, sharpness, and high-speed moving object performance in some dark scenes.
  • the initial iris sequence refers to an iris sequence in which the iris image corresponding to each user's logo is arranged in order of increasing contrast.
  • the iris sequence corresponding to the iris image corresponding to each user ID is arranged in descending order of contrast as a sub-iris sequence corresponding to the user ID.
  • the contrast calculation is performed on the multiple iris images of each user identifier one by one, and the multiple iris images corresponding to each user identifier are sorted according to the order of the contrast from large to small, to obtain the sub-substance corresponding to each user identifier. Iris sequence. The larger the contrast, the higher the sharpness of the iris image.
  • the iris images corresponding to each user's logo in the iris image set are arranged in order of increasing contrast. For example: there are N user IDs in the initial iris sequence, and each user ID includes M iris images, then there are N sub-iris sequences, and these N sub-iris sequences together form the initial iris sequence, and the iris in each sub-iris sequence The images are arranged in order of increasing contrast.
  • S30 Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID according to the order of increasing contrast, and form an initial iris set.
  • the preset number is a preset value, which is used to select a certain number of iris images for subsequent enhancement processing.
  • the preset number may be set according to a requirement of a training sample size. For example, if the number of training samples required for each user identification is P in subsequent model training, a preset number can be set to P.
  • a preset number of values may be set according to the number of iris images corresponding to each user identifier. For example, in the case of 30 images collected by each user's logo, the corresponding preset number can be set to 10, that is, only the 30 iris images need to be displayed in the order of the contrast in each user logo.
  • 10 iris images can be selected as the initial iris set from large to small.
  • the initial iris set is a set composed of a preset number of iris images with a contrast value selected from the initial iris sequence.
  • the iris image with larger contrast is selected to form the initial iris set, thereby excluding iris images with lower contrast, reducing some redundant images, reducing the workload of subsequent iris image enhancement processing, accelerating the speed of iris image enhancement processing, and improving subsequent iris.
  • Image processing efficiency At the same time, because the iris image with a large contrast is selected as the initial iris set, the enhancement degree of the iris image can be improved, and the recognition rate of the iris image can be improved.
  • S40 Perform local enhancement processing on the initial iris image in the initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set.
  • Optimized Contrast Enhancement is an algorithm that estimates the atmospheric light area A and the optimal transmittance t (x, y) based on the atmospheric scattering model, and then restores the image to enhance the contrast of the image.
  • the atmospheric scattering model expression is:
  • a layered search method is first used to search the bright pixels (pixels with a high gray value) of the initial iris image I (x, y) in the initial iris image set, and then the atmospheric light area A is obtained.
  • the initial iris image I (x, y) is segmented. Assuming that the scene depth of each segment in the initial iris image is the same, find the optimal transmittance t (x, y) of the segment in the initial iris image.
  • the contrast of the original iris image I (x, y) is restored maximally to obtain a first enhanced iris image J (x, y).
  • the loss of detail information of the initial iris image with low contrast is avoided, and the detail information of the initial iris image is better protected.
  • the dark pixels (pixels with low gray values) of the initial iris image are well protected. ) Is also enhanced to a greater degree, so the initial iris image is sharper overall. Therefore, the first enhanced iris image set with rich and clear texture can be obtained to improve subsequent recognition accuracy.
  • the initial iris image in the initial iris set is the input of the optimized contrast algorithm, and the first enhanced iris image is the output of the optimized contrast algorithm.
  • the dark pixels of the iris image have also been greatly enhanced, and the detailed information of the iris image is more abundant.
  • S50 The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator to obtain a second enhanced iris image set.
  • the first enhanced iris image refers to an iris image obtained by using an optimized contrast algorithm to enhance the initial iris image in the initial iris set.
  • Laplacian operator is a second-order differential operator, which is suitable for improving image blur caused by diffuse reflection of light.
  • the principle is that during the process of shooting and recording an image, light spots diffusely reflect light to its surrounding area. This diffuse reflection of light causes a certain degree of blurring in the image. The degree of blurring is relative to that of images taken under normal circumstances. It is said that it is often a constant multiple of the Laplace operator. Therefore, sharpening the Laplace operator on the image can reduce the blur of the image and improve the sharpness of the image. Therefore, by sharpening the first enhanced iris image, highlighting the edge detail features of the first enhanced iris image, and improving the contour definition of the first enhanced iris image.
  • Sharpening processing refers to the transformation of sharpening an image to enhance the target boundaries and image details in the image.
  • the second enhanced iris image refers to an iris image obtained by performing a sharpening process on the iris image in the first enhanced iris concentration using a Laplacian operator. After the first enhanced iris image is sharpened by the Laplacian operator, the edge detail features of the image are enhanced, and the highlights in the first enhanced iris image are also suppressed, thereby protecting the details of the first enhanced iris image.
  • the process of sharpening the first enhanced iris image by using a Laplacian may be: using a Laplacian to obtain a second derivative of a gray value of a pixel of the first enhanced iris image, and a second order The pixel corresponding to the derivative at zero is the edge pixel of the image.
  • Such processing can more clearly show the edges of the iris texture, so as to obtain a clear iris training set with richer texture details and improve the recognition effect.
  • the enhanced contrast algorithm when used to enhance the initial iris image, since the contrast of the initial iris image is improved as a whole, the dark pixels of the initial iris image are enhanced and the bright pixels (higher gray values) are enhanced. Pixels) to enhance, so that the gray value of some bright pixels overflows and is over-enhanced, thereby generating highlight areas. For this reason, the Laplacian operator in the sharpening process is used to reduce the contrast of bright pixels, which can suppress the highlights in the first enhanced iris image.
  • the advantages of local enhancement processing and sharpening processing combined with Laplace operator processing, the highlights generated during the local enhancement process by the optimized contrast algorithm are suppressed, making the second enhanced iris detail information richer.
  • an iris image set is first obtained, a contrast calculation is performed on the iris image set in the iris image set, and an iris image with a high contrast in the iris image set is extracted to form an initial iris set, thereby reducing the iris image with poor quality and reducing
  • the redundant operation is helpful to improve the enhancement degree of the iris image and the efficiency of subsequent enhancement processing.
  • the initial iris image in the initial iris set is subjected to local contrast enhancement processing using an optimized contrast algorithm, which improves the contrast of the initial iris image, and at the same time, the dark pixels of the initial iris image are also effectively enhanced.
  • the enhanced first enhanced iris image is sharpened to suppress the highlights generated during the local enhancement process by the optimized contrast algorithm.
  • the second enhanced iris image is obtained after the sharpening process, retaining more details of the iris image.
  • the contrast of the iris image is improved, so that the texture features of the iris image are more clear, so that the iris training set with richer and clearer texture details is obtained, and the accuracy of subsequent recognition is improved.
  • step S10 obtaining an iris image set includes the following steps:
  • S11 Obtain the measured distance between the human eye and the camera in real time. If the measured distance is not within the distance threshold, a prompt message is sent.
  • the measured distance refers to the distance between the user's eyes and the camera
  • the distance threshold refers to a preset distance value given by repeated tests during the experimental measurement. If the subject is at the distance threshold, the data collected by the computer equipment The image quality is better than the images acquired at other locations.
  • the distance threshold range refers to the limit set above and below the distance threshold. It is easy to understand that the measured distance can also capture a clear image within a certain range where the distance threshold fluctuates. Under the condition that the image quality is clear, in order to facilitate the fast shooting of the image, a range of the distance threshold ⁇ a% can be set as the distance threshold range. Optionally, a can be 5, 10, 15, and so on.
  • the prompt information is used to prompt the user to make corresponding adjustments in order to take a clear image.
  • the prompt information includes, but is not limited to, arrow identification (such as arrows in different directions), text prompt information (such as too far, appropriate or close), and voice Information (such as "Please approach the camera", “Collecting” or "Please stay away from the camera”).
  • the measured distance After obtaining the measured distance, determine whether the measured distance is within the distance threshold. If it is not within the distance threshold, send a prompt message, and the user adjusts accordingly according to the prompt information, and then obtain the measured distance until the measured distance is within the distance threshold. By guiding the user within the range of the distance threshold, it is beneficial to improve the quality of the subsequently acquired iris image.
  • the focal length of the infrared camera can be used as the distance threshold.
  • the infrared camera can be manually or automatically adjusted to determine the focal length of the camera according to the sharpness of the image. .
  • the corresponding prompt information is sent by comparing the measured distance and the distance threshold range, which can guide the user to quickly adjust the position and improve the efficiency of iris image collection.
  • the quality of the iris obtained by shooting is better. Continuous shooting can obtain multiple iris images of the same person, which is convenient and fast, and provides a better quality iris image set for subsequent enhancement processing.
  • the measured distance between the user's eyes and the camera is obtained, and the measured distance is compared with the distance threshold range, and corresponding prompt information is fed back to the user according to the comparison result.
  • the user adjusts according to the prompt information, and when the measured distance is within the threshold range
  • the camera is controlled for continuous shooting to obtain the iris image, which can quickly and easily obtain the iris image, which also improves the quality of the iris image.
  • step S20 the contrast of the iris image in the iris image set is calculated, and specifically includes the following steps:
  • a pixel is a basic element of a digital image, and a pixel is obtained by discretizing a continuous space when an analog image is digitized.
  • Each pixel has integer row (height) and integer column (width) position coordinates, while each pixel has integer grayscale or color values.
  • An image is made up of many pixels.
  • digital image data can be represented by a matrix, so matrix theory and matrix algorithms can be used to analyze and process digital images.
  • the pixel information of a grayscale image is a matrix, the rows of the matrix correspond to the height of the image, the columns of the matrix correspond to the width of the image, and the matrix elements correspond to the pixels of the image.
  • the value of the matrix element is the grayscale value of the pixel, which represents the grayscale image.
  • a gray value corresponding to each pixel of the iris image can be obtained through an image information acquisition tool. That is, the path corresponding to the image is given, and the image under the path is read through the path. For example, this can be achieved with the imread function:
  • jpg is the format of the image
  • lean is the name of the image
  • D: ⁇ is the path of the lean image
  • I is the matrix corresponding to the lean image.
  • the center pixel is the pixel located at the center in a given area. In this implementation, sequentially referring to each pixel as the center pixel means that in a given area, each pixel in the area is regarded as the center pixel. For example, if there are 15 pixels in the area, and these 15 pixels are used as the center pixels, then there are 15 center pixels.
  • the boundary pixel When the boundary pixel is the center pixel, the boundary pixel can be regarded as the center pixel by extending the pixel, that is, the gray value of a pixel that does not exist in the neighborhood of the boundary pixel is set to be equal to the gray value of the boundary pixel.
  • the matrix of an iris image is:
  • the gray value of the pixels in the first row and the first column is 22, and there are no pixels in the left and upper parts.
  • the gray values of the left and upper pixels are set to the boundary.
  • the gray value of the same pixel size, that is, the gray value of the left and upper parts are both 22.
  • the neighborhood pixel refers to the pixel adjacent to the center pixel position.
  • the pixel p at the coordinate (x, y) has two horizontal and two vertical adjacent pixels, and each pixel distance (x, y) One unit distance.
  • the coordinates are: (x-1, y), (x + 1, y), (x, y-1), (x, y + 1).
  • This pixel set is defined as the four neighborhoods of pixel p, which is represented by N4 (p).
  • pixel p has 4 diagonally adjacent pixels with coordinates: (x-1, y-1), (x + 1, y-1), (x-1, y + 1), (x + 1, y + 1).
  • These four diagonally adjacent pixels and N4 (p) are collectively referred to as the 8-neighborhood of pixel P and are represented by N8 (P).
  • the difference between the gray value of each central pixel and the pixel of the corresponding neighborhood is 4. If the gray value of the central pixel is h (x, y) Display, then the difference between the gray value of the pixel and the corresponding pixel in the 4 neighborhoods can be obtained by the following formula:
  • the number k of differences between gray values can be obtained by the following formula:
  • the number k of differences between gray values can be obtained by the following formula:
  • the contrast of the iris image is represented by C, and the difference between the gray value of each central pixel and the gray value of the corresponding neighboring pixel in the iris image is q 1 , q 2 ... q k , and k is a positive integer.
  • the specific calculation formula for the contrast C of the iris image is as follows:
  • the contrast C is a specific value.
  • the gray value of each pixel of the iris image is obtained, and each pixel is sequentially used as the center pixel.
  • the gray value of the center pixel and the gray value of the preset neighborhood pixel are calculated Degree difference
  • the number of gray value differences is calculated by presetting the size of the neighborhood and the number of rows and columns of the corresponding matrix of the iris image, and then comparing the gray value of each central pixel in the iris image with The gray value difference corresponding to the neighboring pixels is squared and summed and then divided by the number of gray value difference values.
  • the obtained result is the contrast of the iris image.
  • steps S21 to S24 the contrast of the iris image can be calculated simply and quickly, and a high-quality iris image can be filtered out by comparing the contrast.
  • an optimized contrast algorithm is used to perform local enhancement processing on the initial iris image in the initial iris set, which specifically includes:
  • the atmospheric scattering model refers to a model established by forward scattering and backward scattering of the atmosphere, and is used for image restoration.
  • the atmospheric light is regarded as a light source.
  • the atmospheric light area can be considered as determined.
  • the pixel with the largest gray value of the image is used as the atmospheric light area A.
  • the variance of the gray value of the blurred area based on the iris image is relatively small.
  • the layer search method estimates the atmospheric light area A.
  • the smallest component is used as the atmospheric light area A, in the formula , (X, y) are the coordinate values of the pixels of the initial iris image, I r (x, y), I g (x, y), I b (x, y) are the red component, the green component, and the blue color
  • the restoration of the initial iris image depends on the value of the transmittance t (x, y), so in a local sub-image block, the optimal transmittance is estimated by solving the maximum contrast value of the initial iris image t (x, y).
  • the mean square error of gray values in a local area is used as a criterion for judging image contrast.
  • the region B its formula for calculating the optimal contrast is as follows:
  • E contrast is the value of the optimized contrast corresponding to region B
  • c ⁇ ⁇ r, g, b ⁇ is the index label of the color channel.
  • (x, y) is the coordinate value of the pixel in the initial iris image
  • I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm
  • J (x, y) is the first output of the optimized contrast algorithm.
  • image restoration refers to using the prior knowledge of the degradation process to restore the original appearance of the degraded image.
  • the specific realization of the restoration is achieved by the following formula (that is, the rewrite of the atmospheric scattering model formula),
  • the transmittance t (x, y) is a fixed value
  • the atmospheric light area A is a fixed area (for example, 32 ⁇ 32)
  • I (x, y) is the gray of the initial iris image input for the optimized contrast algorithm.
  • Degree value, J (x, y) is J (x, y) is the gray value of the first enhanced iris image output by the optimized contrast algorithm, that is, the gray value of the restored iris image.
  • the atmospheric light area A and transmittance t (x, y) of the iris image in the first enhanced iris image set are calculated based on the atmospheric scattering model, and then the initial iris image is restored to obtain the first enhanced iris image.
  • the optimized contrast algorithm enhances the initial iris image, so that the contrast of the initial iris image is improved. Based on the atmospheric scattering model, the detailed information of the iris image is also protected, and the clarity of the first enhanced iris image is improved.
  • step S50 the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator, which specifically includes the following steps:
  • S51 Obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to sharpen the gray value of each pixel to obtain the sharpened pixels. grayscale value.
  • the first enhanced iris image in the first enhanced iris image set can be directly read to obtain the gray value of each iris image pixel.
  • the specific reading method is similar to step S21, and is not repeated here.
  • the Laplace operator based on second-order differential is defined as:
  • Each pixel gray value of the gray value R (x, y) of the first enhanced iris image is sharpened according to the following formula to obtain the sharpened pixel gray value.
  • S52 Obtain a corresponding second enhanced iris image based on the sharpened pixel gray value in the first enhanced iris image.
  • the sharpened pixel gray value is replaced with the gray value at the original (x, y) pixel to obtain a second enhanced iris image.
  • the Laplace operator Four-neighbor sharpening template matrix Laplace operator sharpening is performed on a first enhanced iris image in the first enhanced iris image set using a four-neighbor sharpening template matrix H.
  • FIG. 7 (a) and Fig. 7 (b) it shows the iris image after the initial contrast enhancement of the initial iris image (Fig. 7 (a)) and the sharpening of the Laplacian operator. Comparison of two enhanced iris images ( Figure 7 (b)). It can be seen that the overall contrast of the initial iris image is low, and the overall contrast of the second enhanced iris image is effectively improved compared to the original iris image (the iris image in the human eye image shows more information), the dark pixels are brightened, and the edges The details are rich.
  • the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set is obtained, and Laplacian sharpening processing is performed to obtain the sharpened pixel gray value.
  • a corresponding second enhanced iris image is obtained.
  • the iris image that has been enhanced by the optimized contrast algorithm is sharpened using Laplacian.
  • the edge features of the image are enhanced while suppressing the highlights in the local enhancement process of the first enhanced iris image, thereby protecting the first enhancement. Details of the iris image.
  • the above steps are not only simple and convenient, and improve the real-time performance of the iris image processing, but also the edge features of the second enhanced iris image are more prominent after processing, the overall contrast of the iris image set is greatly improved, and the texture characteristics of the iris image are enhanced. , It is helpful to improve the accuracy of iris image recognition.
  • the iris images of 50 human eyes were collected according to the method of steps S11 and S12 in this embodiment, and each human eye has a total of 600 iris image sets to calculate the iris.
  • the top 3 contrasts of each human eye are selected, of which 2 are used for training and 1 is used for verification.
  • the enhanced iris images are sharpened by using the method of steps S51 to S52 in this embodiment to obtain a processed training set and Validation set. Extract the texture features from the unprocessed training set and the processed training set respectively.
  • the recognition algorithm recognizes them by calculating the Euclidean distance or by a Support Vector Machine (SVM) classifier, and calculates the comparison recognition rate as part of the iris image. Enhancement of the enhancement algorithm.
  • the results show that the recognition rate of the unprocessed iris image is 83%, and the recognition rate of the iris image after the local enhancement method of the iris image in this embodiment is 98.9%, and the recognition rate is increased by 15.9%.
  • SVM Support Vector Machine
  • an iris image local enhancement device corresponds to the iris image local enhancement method in the above-mentioned one-to-one correspondence.
  • the iris image local enhancement device includes an iris image set acquisition module 10, an iris sequence acquisition module 20, an initial iris set acquisition module 30, a first enhanced iris image set acquisition module 40, and a second enhanced iris image set acquisition. Module 50.
  • the implementation functions of the iris image set acquisition module 10, the iris sequence acquisition module 20, the initial iris set acquisition module 30, the first enhanced iris image set acquisition module 40, and the second enhanced iris image set acquisition module 50 are the same as those of the iris in the above embodiment.
  • the steps corresponding to the image local enhancement method correspond one by one. In order to avoid redundant description, this embodiment is not detailed one by one.
  • the iris image set acquisition module 10 is configured to acquire an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier.
  • the iris sequence acquisition module 20 is used to calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the order of the contrast, to obtain the initial corresponding to each user ID. Iris sequence.
  • the initial iris set acquisition module 30 is configured to obtain a preset number of iris images from the initial iris sequence corresponding to each user identifier according to the order of increasing contrast, to form an initial iris set.
  • a first enhanced iris image set acquisition module 40 is configured to perform local enhancement processing on an initial iris image in an initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set.
  • a second enhanced iris image set acquisition module 50 is configured to sharpen the first enhanced iris image in the first enhanced iris image set using a Laplacian operator to obtain a second enhanced iris image set.
  • the iris image set acquisition module 10 includes a measured distance detection unit 11 and an iris image set acquisition unit 12.
  • the measured distance detection unit 11 is configured to obtain the measured distance of the human eye and the camera in real time, and if the measured distance is not within the distance threshold, a prompt message is sent.
  • the iris image set obtaining unit 12 is configured to control the camera to continuously shoot if the actual measured distance is within a distance threshold, to obtain an iris image set.
  • the iris sequence acquisition module 20 further includes a contrast calculation unit 21 for calculating the contrast of the iris image in the iris image set.
  • the contrast calculation unit 21 includes a gray value acquisition sub-unit 211, a gray value difference acquisition sub unit 212, a gray number difference number acquisition sub unit 213, and a contrast calculation sub unit 214.
  • the gray value acquisition subunit 211 is configured to acquire a gray value of each pixel of the iris image in the iris image set, and sequentially use each pixel as a central pixel.
  • the gray value difference obtaining subunit 212 is configured to calculate a difference between a gray value of each center pixel and a gray value of a corresponding neighbor pixel according to a preset neighborhood size.
  • the number-of-gray-values acquisition subunit 213 is configured to obtain the number of differences between the gray-scale values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image.
  • the contrast calculation subunit 214 is configured to perform a square sum of the difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighboring pixel, and divide it by the number of differences Number to obtain the contrast of the iris image.
  • the first enhanced iris image set acquisition module 40 further includes an atmospheric scattering model parameter acquisition unit 41 and a first enhanced iris image set acquisition unit 42.
  • the atmospheric scattering model parameter obtaining unit 41 is configured to calculate the atmospheric light region A and the transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model.
  • the first enhanced iris image set acquisition unit 42 is configured to perform image restoration on the initial iris image based on the atmospheric light area A and the transmittance t (x, y):
  • (x, y) is the coordinate value of the pixel in the initial iris image
  • I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm
  • J (x, y) is the output of the optimized contrast algorithm The first enhanced gray value of the iris image.
  • the second enhanced iris image set acquisition module 50 includes a sharpened gray value acquisition unit 51 and a second enhanced iris image acquisition unit 52.
  • the sharpened gray value obtaining unit 51 is configured to obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to determine the gray value of each pixel. Perform sharpening to obtain the gray value of the sharpened pixel.
  • the second enhanced iris image acquisition unit 52 is configured to acquire a corresponding second enhanced iris image based on the sharpened pixel gray value in the first enhanced iris image.
  • Each module in the above-mentioned iris image local enhancement device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer device includes a processor, a memory, and a network interface connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer-readable instructions.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a method for local enhancement of an iris image.
  • a computer device which includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor.
  • the processor implements the computer-readable instructions to implement the iris image of the foregoing embodiment.
  • the steps of the local enhancement method include, for example, steps S10 to S50 shown in FIG. 2.
  • the processor executes the computer-readable instructions, the functions of the modules / units of the iris image local enhancement device of the embodiment described above are implemented, for example, modules 10 to 50 shown in FIG. 8. To avoid repetition, we will not repeat them here.
  • One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to execute the iris image part in the above embodiment
  • the steps of the enhancement method, or the functions of each module / unit of the iris image local enhancement device in the above embodiment are implemented when the computer-readable instructions are executed by one or more processors. To avoid repetition, details are not repeated here.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.

Abstract

Disclosed in the invention are an iris image local enhancement method, device, equipment and a storage medium. The iris image local enhancement method comprises steps of: acquiring an iris image set; calculating contrasts of iris images and sorting the iris images according to a sequence from a large contrast to a small contrast to obtain an initial iris sequence; obtaining a preset number of iris images from the initial iris sequence according to the sequence from a large contrast to a small contrast to form an initial iris set; carrying out local enhancement processing on initial iris images by using an optimized contrast algorithm to obtain a first enhanced iris image set; and sharpening first enhanced iris images by using a Laplacian operator to obtain a second enhanced iris image set. According to the iris image local enhancement method, the overall contrast of the initial iris images is improved, internal details are enhanced, highlight generated during an enhancement process is suppressed, the enhancement effect is good, and the recognition accuracy of the iris images is improved.

Description

虹膜图像局部增强方法、装置、设备及存储介质Method, device, equipment and storage medium for local enhancement of iris image
本申请以2018年5月25日提交的申请号为201810511986.7,名称为“虹膜图像局部增强方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on a Chinese invention patent application filed on May 25, 2018 with the application number 201810511986.7, entitled "Method, Device, Device, and Storage Medium for Partial Enhancement of Iris Images", and claims priority.
技术领域Technical field
本申请涉及图像处理领域,尤其涉及一种虹膜图像局部增强方法、装置、设备及存储介质。The present application relates to the field of image processing, and in particular, to a method, a device, a device, and a storage medium for locally enhancing an iris image.
背景技术Background technique
虹膜作为一种重要的身份鉴别特征,具有唯一性、稳定性、可采集性和非侵犯性等特点。在虹膜识别系统中,经常需要清晰度较高的虹膜图像作为训练集,但是由于采集设备的限制和采集环境变化等因素的影响,都会导致采集的虹膜图像质量不佳,如对比度低和噪声干扰等问题都会影响虹膜纹理特征的凸显,进而影响虹膜图像训练集的清晰度和识别效率。为了提高识别的准确率,往往需要对虹膜图像进行增强处理,以凸显图像的纹理特征。目前通常只是对采集到的虹膜图像的对比度进行整体动态调整,然而经过如此处理的虹膜图像在识别系统中的准确率还是不高。As an important identification feature, iris has the characteristics of uniqueness, stability, collectability and non-invasiveness. In iris recognition systems, high-definition iris images are often used as training sets, but due to the limitations of acquisition equipment and changes in the acquisition environment, the quality of the acquired iris images will be poor, such as low contrast and noise interference. Such issues will affect the highlighting of iris texture features, and then affect the clarity and recognition efficiency of the iris image training set. In order to improve the accuracy of recognition, it is often necessary to enhance the iris image to highlight the texture features of the image. Currently, the overall contrast of the collected iris image is usually adjusted dynamically. However, the accuracy of the iris image processed in the recognition system is still not high.
发明内容Summary of the Invention
基于此,有必要针对上述技术问题,提供一种虹膜图像局部增强方法、装置、设备及存储介质,以解决虹膜图像识别准确率不高的问题。Based on this, it is necessary to provide a method, a device, a device, and a storage medium for local enhancement of an iris image in response to the above technical problems, in order to solve the problem of low accuracy of iris image recognition.
一种虹膜图像局部增强方法,包括:A local iris image enhancement method includes:
获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
一种虹膜图像局部增强装置,包括:An iris image local enhancement device includes:
虹膜图像集获取模块,用于获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;An iris image set acquisition module, configured to obtain an iris image set, wherein the iris image set includes an iris image, and the iris image includes a user identifier;
虹膜序列获取模块,用于计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;The iris sequence acquisition module is used to calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the order of the contrast, to obtain the corresponding Initial iris sequence;
初始虹膜集获取模块,用于从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;The initial iris set acquisition module is used to obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
第一增强虹膜图像集获取模块,用于采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;A first enhanced iris image set acquisition module, configured to perform local enhancement processing on the initial iris image in the initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set;
第二增强虹膜图像集获取模块,用于对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。A second enhanced iris image set acquisition module is configured to sharpen the first enhanced iris image in the first enhanced iris image set by using a Laplacian to obtain a second enhanced iris image set.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set. One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得更加明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the application will become apparent from the description, the drawings, and the claims.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings used in the description of the embodiments of the application will be briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请一实施例中虹膜图像局部增强方法的应用场景图;FIG. 1 is an application scene diagram of an iris image local enhancement method according to an embodiment of the present application; FIG.
图2是本申请实施例中虹膜图像局部增强方法的一流程图;2 is a flowchart of a method for locally enhancing an iris image in an embodiment of the present application;
图3是图2中步骤S10的一具体实施方式的一流程图;3 is a flowchart of a specific implementation of step S10 in FIG. 2;
图4是图2中步骤S20的一具体实施方式的一流程图;4 is a flowchart of a specific implementation of step S20 in FIG. 2;
图5是图2中步骤S40的一具体实施方式的一流程图;5 is a flowchart of a specific implementation of step S40 in FIG. 2;
图6是图2中步骤S50的一具体实施方式的一流程图;6 is a flowchart of a specific implementation of step S50 in FIG. 2;
图7(a)是本申请实施例中一初始虹膜图像的示例图;FIG. 7 (a) is an example diagram of an initial iris image in the embodiment of the present application; FIG.
图7(b)是本申请实施例中一第二增强虹膜图像的示例图;7 (b) is an example diagram of a second enhanced iris image in the embodiment of the present application;
图8是本申请实施例中虹膜图像局部增强装置的一示意图;8 is a schematic diagram of an iris image local enhancement device according to an embodiment of the present application;
图9是本申请实施例中计算机设备的一示意图。FIG. 9 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
本申请提供的虹膜图像局部增强方法,可以应用在计算机设备或系统中,用于对虹膜图像进行增强处理,以解决虹膜图像识别准确率不高的问题。其中,计算机设备可以但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。The local enhancement method of the iris image provided in the present application can be applied in a computer device or system to enhance the iris image to solve the problem of low recognition accuracy of the iris image. Among them, the computer device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
可选地,若该虹膜图像局部增强方法应用在系统中,该系统可以包括服务端和客户端。图1示出该虹膜图像局部增强方法应用在系统中的应用场景图。其中,服务端和客户端之间通过网络进行连接,客户端采集或者获取虹膜图像,服务端从客户端获取虹膜图像,客户端具体可以是摄像机、照相机、扫描仪或其他带有拍照功能的设备(手机或平板电脑等),或者存储有虹膜图像的存储设备。客户端可以为一个,也可以为复数个。服务端具体可以用一个服务器实现或者用复数个服务器组成的服务器集群实现。Optionally, if the iris image local enhancement method is applied in a system, the system may include a server and a client. FIG. 1 shows an application scene diagram of the local enhancement method of the iris image applied in the system. Among them, the server and the client are connected through the network, the client collects or obtains the iris image, and the server obtains the iris image from the client. The client can be a camera, camera, scanner, or other device with a photographing function. (Phone, tablet, etc.), or a storage device that stores iris images. There can be one or more clients. The server can be implemented by a server or a server cluster composed of a plurality of servers.
在一实施例中,如图2所示,提供一种虹膜图像局部增强方法,以该方法应用在计算机设备中为例进行说明,包括以下步骤:In an embodiment, as shown in FIG. 2, a method for locally enhancing an iris image is provided. The method is applied to a computer device as an example for description, and includes the following steps:
S10:获取虹膜图像集,虹膜图像集包括虹膜图像,虹膜图像包括用户标识。S10: Acquire an iris image set. The iris image set includes an iris image, and the iris image includes a user logo.
其中,虹膜图像集是指由虹膜图像组成的图像集合,而虹膜图像是指通过摄像设备拍摄用户眼睛内部的虹膜所得到的图像。可选地,虹膜图像集可以是实时采集的,也可以预先存储在计算机设备中。一个虹膜图像集可以包括一个用户的虹膜图像,也可以包括多个用户的虹膜图像。例如,一个虹膜图像集中包括N个用户的虹膜图像,若每个用户都有M幅虹膜图像,那么该虹膜图像集就有M*N幅虹膜图像。优选地,虹膜图像集中包括至少两幅虹膜图像。用户标识是指虹膜图像所属用户的标识,用于对虹膜图像按照所属用户进行分类,每一虹膜图像对应一用户标识,同一用户的虹膜图像对应相同的用户标识。The iris image set refers to an image set composed of iris images, and the iris image refers to an image obtained by photographing an iris inside a user's eye through a camera device. Optionally, the iris image set may be acquired in real time, or may be stored in a computer device in advance. An iris image set may include iris images of one user, and may also include iris images of multiple users. For example, an iris image set includes iris images of N users. If each user has M iris images, then the iris image set has M * N iris images. Preferably, the iris image set includes at least two iris images. The user logo refers to the logo of the user to which the iris image belongs, and is used to classify the iris image according to the user. Each iris image corresponds to a user logo, and the iris image of the same user corresponds to the same user logo.
在一个具体实施方式中,可通过拍摄用户的眼睛获取预定数量的虹膜图像组成虹膜图像集,或者从计算机设备中获取预定数量的预先存储的虹膜图像组成虹膜图像集,或者通过拍摄用户的眼睛获取部分虹膜图像,再从计算机设备中获取另一部分预先存储的虹膜图像,两者共同组成虹膜图像集。In a specific embodiment, a predetermined number of iris images can be acquired by photographing the eyes of the user to form an iris image set, or a predetermined number of pre-stored iris images can be acquired from a computer device to form an iris image set, or acquired by photographing the eyes of the user Part of the iris image, and another part of the pre-stored iris image is obtained from the computer equipment, and the two together constitute the iris image set.
优选地,可选择在相同时间段内,采集若干用户的多幅虹膜图像作为虹膜图像集。例 如,可以在阴雨天的中午采集,也可以在晴天的下午采集,这样能够避免获取的虹膜图像集中不同的虹膜图像因光线变化导致对比度相差较大的问题。Preferably, multiple iris images of several users can be selected as the iris image set during the same time period. For example, it can be collected at noon on a rainy day or in the afternoon on a sunny day. This can avoid the problem that the contrast of the iris images in the iris image set that are acquired is greatly different due to light changes.
S20:计算虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列。S20: Calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the descending order of the contrast to obtain the initial iris sequence corresponding to each user ID.
其中,对比度是一种衡量图像质量的指标,具体来说,虹膜图像的对比度是图像黑与白的比值,用于表征虹膜图像从黑到白的渐变层次。该比值越大,说明虹膜图像从黑到白的渐变层次越多,从而色彩表现越丰富。对比度对视觉效果的影响非常关键,一般来说对比度越大,图像越清晰醒目,色彩也越鲜明艳丽。对比度高的虹膜图像在一些暗部场景中的细节表现、清晰度和高速运动物体表现上优势更加明显。Among them, contrast is an index to measure image quality. Specifically, the contrast of an iris image is the ratio of black and white of the image, which is used to represent the gradation of the iris image from black to white. The larger the ratio, the more the gradation of the iris image from black to white, and the richer the color expression. The effect of contrast on visual effects is very critical. Generally speaking, the larger the contrast, the clearer and sharper the image, and the brighter and more vivid the colors. The high-contrast iris image has more obvious advantages in detail performance, sharpness, and high-speed moving object performance in some dark scenes.
初始虹膜序列,是指每个用户标识对应的虹膜图像按照对比度由大到小的顺序排列组成的虹膜序列。每个用户标识对应的虹膜图像按照对比度由大到小的顺序排列组成的虹膜序列为该用户标识对应的子虹膜序列。具体地,对每个用户标识的多幅虹膜图像一一进行对比度计算,并依据对比度由大到小的顺序对每个用户标识对应的多幅虹膜图像进行排序,得到每个用户标识对应的子虹膜序列。对比度越大的虹膜图像,清晰度也会越高,因此将虹膜图像集中每个用户标识对应的虹膜图像按照对比度从大到小的顺序排列。例如:初始虹膜序列中有N个用户标识,每个用户标识都包括M幅虹膜图像,则有N个子虹膜序列,且这N个子虹膜序列一起组成了初始虹膜序列,每个子虹膜序列中的虹膜图像是按照对比度由大到小的顺序排列的。The initial iris sequence refers to an iris sequence in which the iris image corresponding to each user's logo is arranged in order of increasing contrast. The iris sequence corresponding to the iris image corresponding to each user ID is arranged in descending order of contrast as a sub-iris sequence corresponding to the user ID. Specifically, the contrast calculation is performed on the multiple iris images of each user identifier one by one, and the multiple iris images corresponding to each user identifier are sorted according to the order of the contrast from large to small, to obtain the sub-substance corresponding to each user identifier. Iris sequence. The larger the contrast, the higher the sharpness of the iris image. Therefore, the iris images corresponding to each user's logo in the iris image set are arranged in order of increasing contrast. For example: there are N user IDs in the initial iris sequence, and each user ID includes M iris images, then there are N sub-iris sequences, and these N sub-iris sequences together form the initial iris sequence, and the iris in each sub-iris sequence The images are arranged in order of increasing contrast.
容易理解地,由于对比度是衡量图像质量的一种重要指标,因此,可通过计算比较每幅虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中的虹膜图像进行排序,进而将对比度较大的虹膜图像作为虹膜图像选取的标准,便于后续从中挑选对比度较大的虹膜图像进行处理,得到更具纹理特征的虹膜图像。It is easy to understand that because contrast is an important indicator of image quality, you can calculate and compare the contrast of each iris image, and sort the iris images in the iris image set in descending order of contrast, and then An iris image with a large contrast is used as a criterion for selecting an iris image, which is convenient for subsequent selection of an iris image with a high contrast for processing to obtain an iris image with more texture characteristics.
S30:从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集。S30: Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID according to the order of increasing contrast, and form an initial iris set.
其中,预设数量是预先设定好的一个数值,用于选取一定数量的虹膜图像后续再进行增强处理。可选地,该预设数量可以根据训练样本量的要求来设定。例如:若在后续的模型训练中,要求每个用户标识的训练样本数量为P,则可以设定预设数量为P。可选地,可以根据每一用户标识对应的虹膜图像的数量来设置预设数量的值。例如,在每个用户标识采集的图像为30幅的情况下,对应的预设数量可以设置为10幅,即只需要在这30幅虹膜图像中,按照对比度的大小顺序,在每个用户标识对应的初始虹膜序列中按照从大至小选取10幅虹膜图像作为初始虹膜集即可。初始虹膜集是从初始虹膜序列中选取的对比度数值靠前的预设数量的虹膜图像组成的集合。通过选取对比度较大的虹膜图像组成初始虹膜集,从而排除对比度较小的虹膜图像,减少了一些冗余图像,减轻后续虹膜图像增强处理的工作量,加快虹膜图像增强处理的速度,提高后续虹膜图像的处理效率。同时,由于选取对比度较大的虹膜图像作为初始虹膜集,能够提高虹膜图像的增强程度,进而提升虹膜图像的识别率。The preset number is a preset value, which is used to select a certain number of iris images for subsequent enhancement processing. Optionally, the preset number may be set according to a requirement of a training sample size. For example, if the number of training samples required for each user identification is P in subsequent model training, a preset number can be set to P. Optionally, a preset number of values may be set according to the number of iris images corresponding to each user identifier. For example, in the case of 30 images collected by each user's logo, the corresponding preset number can be set to 10, that is, only the 30 iris images need to be displayed in the order of the contrast in each user logo. In the corresponding initial iris sequence, 10 iris images can be selected as the initial iris set from large to small. The initial iris set is a set composed of a preset number of iris images with a contrast value selected from the initial iris sequence. The iris image with larger contrast is selected to form the initial iris set, thereby excluding iris images with lower contrast, reducing some redundant images, reducing the workload of subsequent iris image enhancement processing, accelerating the speed of iris image enhancement processing, and improving subsequent iris. Image processing efficiency. At the same time, because the iris image with a large contrast is selected as the initial iris set, the enhancement degree of the iris image can be improved, and the recognition rate of the iris image can be improved.
S40:采用优化对比度算法对初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集。S40: Perform local enhancement processing on the initial iris image in the initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set.
其中,优化对比度算法(Optimized Contrast Enhancement,OCE)是指基于大气散射模型估算出大气光区域A和最优透射率t(x,y)后,对图像进行复原,以使图像对比度得到增强的算法。大气散射模型表达式为:Among them, Optimized Contrast Enhancement (OCE) is an algorithm that estimates the atmospheric light area A and the optimal transmittance t (x, y) based on the atmospheric scattering model, and then restores the image to enhance the contrast of the image. . The atmospheric scattering model expression is:
I(x,y)=t(x,y)J(x,y)+(1-t(x,y))A;I (x, y) = t (x, y) J (x, y) + (1-t (x, y)) A;
在一个具体实施方式中,首先采用分层搜索方法搜索初始虹膜图像集中的初始虹膜图像I(x,y)的亮像素(灰度值偏高的像素)进而求得大气光区域A,然后对初始虹膜图像I(x,y)进行分块,假设初始虹膜图像中每个分块的场景深度是相同的,找出初始虹膜图像中分块的最优透射率t(x,y),最后根据估算出的大气光区域A和最优透射率t(x,y),最大化复原初始虹膜图像I(x,y)的对比度,得到第一增强虹膜图像J(x,y)。通过基于大气散射模型的优化对比度算法,避免了对比度低的初始虹膜图像的细节信息的损失,对初始虹膜图像的细节信息保护得较好,初始虹膜图像的暗像素(灰度值偏低的像素)也得到较大程度的增强,所以初始虹膜图像整体上更为清晰。因此,可以得到纹理丰富清晰的第一增强虹膜图像集,以提高后续的识别精度。本实施例中,初始虹膜集中的初始虹膜图像即为优化对比度算法的输入,第一增强虹膜图像为优化对比度算法的输出。由于基于大气散射模型,虹膜图像的暗像素也得到了较大程度的增强,同时虹膜图像的细节信息更加丰富。In a specific embodiment, a layered search method is first used to search the bright pixels (pixels with a high gray value) of the initial iris image I (x, y) in the initial iris image set, and then the atmospheric light area A is obtained. The initial iris image I (x, y) is segmented. Assuming that the scene depth of each segment in the initial iris image is the same, find the optimal transmittance t (x, y) of the segment in the initial iris image. Finally, According to the estimated atmospheric light area A and the optimal transmittance t (x, y), the contrast of the original iris image I (x, y) is restored maximally to obtain a first enhanced iris image J (x, y). By optimizing the contrast algorithm based on the atmospheric scattering model, the loss of detail information of the initial iris image with low contrast is avoided, and the detail information of the initial iris image is better protected. The dark pixels (pixels with low gray values) of the initial iris image are well protected. ) Is also enhanced to a greater degree, so the initial iris image is sharper overall. Therefore, the first enhanced iris image set with rich and clear texture can be obtained to improve subsequent recognition accuracy. In this embodiment, the initial iris image in the initial iris set is the input of the optimized contrast algorithm, and the first enhanced iris image is the output of the optimized contrast algorithm. Based on the atmospheric scattering model, the dark pixels of the iris image have also been greatly enhanced, and the detailed information of the iris image is more abundant.
S50:对第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。S50: The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator to obtain a second enhanced iris image set.
其中,第一增强虹膜图像是指对初始虹膜集中的初始虹膜图像采用优化对比度算法进行增强处理后得到的虹膜图像。拉普拉斯算子(Laplacian operator)是一种二阶微分算子,适用于改善因为光线的漫反射造成的图像模糊。其原理是,在摄像记录图像的过程中,光点将光漫反射到其周围区域,这种由于光的漫反射造成了图像一定程度的模糊,其模糊程度相对与正常情形下拍摄的图像来说,往往是拉普拉斯算子的常数倍,因此,对图像进行拉普拉斯算子锐化变换可以减少图像的模糊,提高图像的清晰度。因此,通过对第一增强虹膜图像进行锐化处理,突出第一增强虹膜图像的边缘细节特征,提高了第一增强虹膜图像的轮廓清晰度。The first enhanced iris image refers to an iris image obtained by using an optimized contrast algorithm to enhance the initial iris image in the initial iris set. Laplacian operator is a second-order differential operator, which is suitable for improving image blur caused by diffuse reflection of light. The principle is that during the process of shooting and recording an image, light spots diffusely reflect light to its surrounding area. This diffuse reflection of light causes a certain degree of blurring in the image. The degree of blurring is relative to that of images taken under normal circumstances. It is said that it is often a constant multiple of the Laplace operator. Therefore, sharpening the Laplace operator on the image can reduce the blur of the image and improve the sharpness of the image. Therefore, by sharpening the first enhanced iris image, highlighting the edge detail features of the first enhanced iris image, and improving the contour definition of the first enhanced iris image.
锐化处理是指对图像进行锐化的变换,用于加强图像中的目标边界和图像细节。第二增强虹膜图像是指对第一增强虹膜集中的虹膜图像采用拉普拉斯算子进行锐化处理后得到的虹膜图像。第一增强虹膜图像经过拉普拉斯算子锐化处理后,图像边缘细节特征被加强的同时也抑制了第一增强虹膜图像中的高光,从而保护了第一增强虹膜图像的细节。Sharpening processing refers to the transformation of sharpening an image to enhance the target boundaries and image details in the image. The second enhanced iris image refers to an iris image obtained by performing a sharpening process on the iris image in the first enhanced iris concentration using a Laplacian operator. After the first enhanced iris image is sharpened by the Laplacian operator, the edge detail features of the image are enhanced, and the highlights in the first enhanced iris image are also suppressed, thereby protecting the details of the first enhanced iris image.
可选地,对第一增强虹膜图像采用拉普拉斯算子进行锐化的过程可以是:用拉普拉斯算子对第一增强虹膜图像像素的灰度值求二阶导数,二阶导数等于零处对应的像素就是图像的边缘像素,这样的处理可以将虹膜纹理边缘更加清晰的呈现出来,以便获取纹理细节更丰富的清晰的虹膜训练集,提高识别效果。Optionally, the process of sharpening the first enhanced iris image by using a Laplacian may be: using a Laplacian to obtain a second derivative of a gray value of a pixel of the first enhanced iris image, and a second order The pixel corresponding to the derivative at zero is the edge pixel of the image. Such processing can more clearly show the edges of the iris texture, so as to obtain a clear iris training set with richer texture details and improve the recognition effect.
进一步地,采用优化对比度算法对初始虹膜图像进行增强处理时,由于在整体上提高了初始虹膜图像的对比度,因此,对初始虹膜图像暗像素增强的同时也对亮像素(灰度值偏高的像素)进行增强,使得部分亮像素的灰度值溢出,被过分增强,进而产生高光区域。为此,采用锐化处理中的拉普拉斯算子降低亮像素的对比度,可以抑制第一增强虹膜图像 中的高光。通过融合了局部增强处理和锐化处理的优点,并结合拉普拉斯算子处理,抑制了优化对比度算法进行局部增强过程中产生的高光,使得第二增强虹膜细节信息更为丰富。Further, when the enhanced contrast algorithm is used to enhance the initial iris image, since the contrast of the initial iris image is improved as a whole, the dark pixels of the initial iris image are enhanced and the bright pixels (higher gray values) are enhanced. Pixels) to enhance, so that the gray value of some bright pixels overflows and is over-enhanced, thereby generating highlight areas. For this reason, the Laplacian operator in the sharpening process is used to reduce the contrast of bright pixels, which can suppress the highlights in the first enhanced iris image. By combining the advantages of local enhancement processing and sharpening processing, combined with Laplace operator processing, the highlights generated during the local enhancement process by the optimized contrast algorithm are suppressed, making the second enhanced iris detail information richer.
本实施例中,首先获取虹膜图像集,对虹膜图像集中的虹膜图像进行对比度计算,并提取出虹膜图像集中对比度较大的虹膜图像组成初始虹膜集,从而减少了质量不佳的虹膜图像,减少了冗余操作,有利于提高虹膜图像的增强程度和后续增强处理的效率。然后对初始虹膜集中的初始虹膜图像采用优化对比度算法进行局部增强处理,提高了初始虹膜图像的对比度,同时初始虹膜图像的暗像素也得到有效增强。最后对增强后的第一增强虹膜图像进行锐化处理,以抑制优化对比度算法进行局部增强过程中产生的高光,同时锐化处理后得到第二增强虹膜图像,保留了更多的虹膜图像的细节,整体上提高了虹膜图像的对比度,使虹膜图像的纹理特征更加清晰,以便得到纹理细节更丰富清晰的虹膜训练集,提高后续识别的准确率。In this embodiment, an iris image set is first obtained, a contrast calculation is performed on the iris image set in the iris image set, and an iris image with a high contrast in the iris image set is extracted to form an initial iris set, thereby reducing the iris image with poor quality and reducing The redundant operation is helpful to improve the enhancement degree of the iris image and the efficiency of subsequent enhancement processing. Then, the initial iris image in the initial iris set is subjected to local contrast enhancement processing using an optimized contrast algorithm, which improves the contrast of the initial iris image, and at the same time, the dark pixels of the initial iris image are also effectively enhanced. Finally, the enhanced first enhanced iris image is sharpened to suppress the highlights generated during the local enhancement process by the optimized contrast algorithm. At the same time, the second enhanced iris image is obtained after the sharpening process, retaining more details of the iris image. As a whole, the contrast of the iris image is improved, so that the texture features of the iris image are more clear, so that the iris training set with richer and clearer texture details is obtained, and the accuracy of subsequent recognition is improved.
在一实施例中,如图3所示,步骤S10中,即获取虹膜图像集,具体包括如下步骤:In an embodiment, as shown in FIG. 3, in step S10, obtaining an iris image set includes the following steps:
S11:实时获取人眼和摄像头的实测距离,若实测距离不在距离阈值范围内,则发送提示消息。S11: Obtain the measured distance between the human eye and the camera in real time. If the measured distance is not within the distance threshold, a prompt message is sent.
其中,实测距离是指用户的眼睛距离摄像头的距离,距离阈值是指实验测定的过程中,通过反复测试给定的一个预设距离值,若被拍摄物在距离阈值处,计算机设备所采集的图像相比其他的位置处采集的图像质量更优。距离阈值范围是指在距离阈值上下所设定的界限,容易理解地,实测距离在距离阈值上下波动的一定范围内,也能拍摄到清晰的图像。在保证图像质量清晰的条件下,为了方便快速拍摄图像,可以设置该距离阈值±a%的数值范围作为距离阈值范围,可选地,a可以为5、10或15等。提示信息是用于提示用户进行相应的调整以便拍摄清晰图像,提示信息包括但不限于箭头标识(如不同方向的箭头)、文字提示信息(如距离过远、距离适当或距离过近)和语音信息(如“请您靠近摄像头”、“正在采集”或“请您远离摄像头”)等。Among them, the measured distance refers to the distance between the user's eyes and the camera, and the distance threshold refers to a preset distance value given by repeated tests during the experimental measurement. If the subject is at the distance threshold, the data collected by the computer equipment The image quality is better than the images acquired at other locations. The distance threshold range refers to the limit set above and below the distance threshold. It is easy to understand that the measured distance can also capture a clear image within a certain range where the distance threshold fluctuates. Under the condition that the image quality is clear, in order to facilitate the fast shooting of the image, a range of the distance threshold ± a% can be set as the distance threshold range. Optionally, a can be 5, 10, 15, and so on. The prompt information is used to prompt the user to make corresponding adjustments in order to take a clear image. The prompt information includes, but is not limited to, arrow identification (such as arrows in different directions), text prompt information (such as too far, appropriate or close), and voice Information (such as "Please approach the camera", "Collecting" or "Please stay away from the camera").
获取到实测距离后,判断实测距离是否在距离阈值范围内,如果不在距离阈值范围内,发送提示信息,用户根据提示信息进行相应的调整,再获取实测距离,直到实测距离在距离阈值范围内为止,通过引导用户在距离阈值范围内,有利于提高后续获取的虹膜图像的质量。After obtaining the measured distance, determine whether the measured distance is within the distance threshold. If it is not within the distance threshold, send a prompt message, and the user adjusts accordingly according to the prompt information, and then obtain the measured distance until the measured distance is within the distance threshold. By guiding the user within the range of the distance threshold, it is beneficial to improve the quality of the subsequently acquired iris image.
在一个具体实施方式中,以红外摄像头为例,可以将红外摄像头的焦距作为距离阈值,具体地,可通过红外摄像头本身手动或自动对焦的方式进行调节,根据图像的清晰度确定该摄像头的焦距。In a specific implementation, taking an infrared camera as an example, the focal length of the infrared camera can be used as the distance threshold. Specifically, the infrared camera can be manually or automatically adjusted to determine the focal length of the camera according to the sharpness of the image. .
本实施例中,通过对实测距离和距离阈值范围的比较来发送对应的提示信息,可以引导用户快速地调整位置,提高虹膜图像采集的效率。In this embodiment, the corresponding prompt information is sent by comparing the measured distance and the distance threshold range, which can guide the user to quickly adjust the position and improve the efficiency of iris image collection.
S12:若实测距离在距离阈值范围内,则控制摄像头进行连续拍摄,获取虹膜图像集。S12: If the measured distance is within the distance threshold, the camera is controlled to perform continuous shooting to obtain an iris image set.
可以理解地,当用户眼睛距离摄像头的距离在距离阈值范围内,这种情况下拍摄获取的虹膜质量较佳。连续拍摄可以获取同样一个人的多张虹膜图像,方便快捷,为后续的增强处理提供了质量较佳的虹膜图像集。Understandably, when the distance between the user's eyes and the camera is within the distance threshold, in this case, the quality of the iris obtained by shooting is better. Continuous shooting can obtain multiple iris images of the same person, which is convenient and fast, and provides a better quality iris image set for subsequent enhancement processing.
本实施例中,通过获取用户眼睛与摄像头的实测距离,并将实测距离与距离阈值范围进行比较,根据比较结果反馈对应的提示信息给用户,用户依据提示信息进行调整,当实 测距离在阈值范围内,控制摄像头进行连续拍摄,获取虹膜图像,可以方便快捷地获取到虹膜图像,也提高了虹膜图像的质量。In this embodiment, the measured distance between the user's eyes and the camera is obtained, and the measured distance is compared with the distance threshold range, and corresponding prompt information is fed back to the user according to the comparison result. The user adjusts according to the prompt information, and when the measured distance is within the threshold range Inside, the camera is controlled for continuous shooting to obtain the iris image, which can quickly and easily obtain the iris image, which also improves the quality of the iris image.
在一实施例中,如图4所示,步骤S20中,即计算虹膜图像集中的虹膜图像的对比度,具体包括如下步骤:In an embodiment, as shown in FIG. 4, in step S20, the contrast of the iris image in the iris image set is calculated, and specifically includes the following steps:
S21:获取虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素。S21: Obtain the gray value of each pixel of the iris image in the iris image set, and use each pixel as the central pixel in turn.
其中,像素(Pixel)是数字图像的基本元素,像素是在模拟图像数字化时对连续空间进行离散化得到的。每个像素具有整数行(高)和整数列(宽)位置坐标,同时每个像素都具有整数灰度值或颜色值。一幅图像是由很多像素构成的。具体地,数字图像数据可以用矩阵来表示,因此可以采用矩阵理论和矩阵算法对数字图像进行分析和处理。灰度图像的像素信息就是一个矩阵,矩阵的行对应图像的高,矩阵的列对应图像的宽,矩阵元素对应图像的像素,矩阵元素的值就是像素的灰度值,它表示灰度图像中颜色的深度。具体地,可通过图像信息获取工具获取到虹膜图像的每个像素对应的灰度值。即给出图像对应的路径,通过路径读取到该路径下的图像。例如,可以通过imread函数实现:Among them, a pixel is a basic element of a digital image, and a pixel is obtained by discretizing a continuous space when an analog image is digitized. Each pixel has integer row (height) and integer column (width) position coordinates, while each pixel has integer grayscale or color values. An image is made up of many pixels. Specifically, digital image data can be represented by a matrix, so matrix theory and matrix algorithms can be used to analyze and process digital images. The pixel information of a grayscale image is a matrix, the rows of the matrix correspond to the height of the image, the columns of the matrix correspond to the width of the image, and the matrix elements correspond to the pixels of the image. The value of the matrix element is the grayscale value of the pixel, which represents the grayscale image. The depth of the color. Specifically, a gray value corresponding to each pixel of the iris image can be obtained through an image information acquisition tool. That is, the path corresponding to the image is given, and the image under the path is read through the path. For example, this can be achieved with the imread function:
I=imread('D:\lena.jpg');I = imread ('D: \ lena.jpg');
其中,jpg为图像的格式,lean为图像的名称,“D:\”为lean图像的路径,I为lean图像对应的矩阵。中心像素是指在给定的区域内,位于中心位置的像素。本实施中,依次将每个像素作为中心像素是指在给定的区域内,将区域内的每个像素都作为中心像素。例如,区域内有15个像素,这15个像素依次作为中心像素,那么就有15个中心像素。当边界的像素作为中心像素时,可通过扩展像素的方式将边界像素看作中心像素,即边界像素邻域内不存在的像素的灰度值设置成与该边界像素灰度值相等。例如一虹膜图像的矩阵为:Among them, jpg is the format of the image, lean is the name of the image, "D: \" is the path of the lean image, and I is the matrix corresponding to the lean image. The center pixel is the pixel located at the center in a given area. In this implementation, sequentially referring to each pixel as the center pixel means that in a given area, each pixel in the area is regarded as the center pixel. For example, if there are 15 pixels in the area, and these 15 pixels are used as the center pixels, then there are 15 center pixels. When the boundary pixel is the center pixel, the boundary pixel can be regarded as the center pixel by extending the pixel, that is, the gray value of a pixel that does not exist in the neighborhood of the boundary pixel is set to be equal to the gray value of the boundary pixel. For example, the matrix of an iris image is:
Figure PCTCN2018094396-appb-000001
Figure PCTCN2018094396-appb-000001
其中,第一行第一列的像素的灰度值为22,其左部和上部均不存在像素,那么在计算对比度时,将其左部和上部的像素的灰度值设置成与该边界像素相同的大小的灰度值,即左部和上部的灰度值均为22。Among them, the gray value of the pixels in the first row and the first column is 22, and there are no pixels in the left and upper parts. When calculating the contrast, the gray values of the left and upper pixels are set to the boundary. The gray value of the same pixel size, that is, the gray value of the left and upper parts are both 22.
S22:根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差。S22: Calculate the difference between the gray value of each center pixel and the gray value of the corresponding neighborhood pixel according to the preset neighborhood size.
其中,邻域像素是指与中心像素位置相邻的像素,例如,位于坐标(x,y)的像素p有两个水平和两个垂直的相邻像素,每个像素距(x,y)一个单位距离。坐标分别为:(x-1,y),(x+1,y),(x,y-1),(x,y+1)。此像素集合定义为像素p的4个邻域,用N4(p)表示。另外,像素p还有4个对角相邻像素,坐标为:(x-1,y-1),(x+1,y-1),(x-1,y+1),(x+1,y+1)。这四个对角相邻像素和N4(p)共同称为像素P的8邻域,用N8(P)表示。Among them, the neighborhood pixel refers to the pixel adjacent to the center pixel position. For example, the pixel p at the coordinate (x, y) has two horizontal and two vertical adjacent pixels, and each pixel distance (x, y) One unit distance. The coordinates are: (x-1, y), (x + 1, y), (x, y-1), (x, y + 1). This pixel set is defined as the four neighborhoods of pixel p, which is represented by N4 (p). In addition, pixel p has 4 diagonally adjacent pixels with coordinates: (x-1, y-1), (x + 1, y-1), (x-1, y + 1), (x + 1, y + 1). These four diagonally adjacent pixels and N4 (p) are collectively referred to as the 8-neighborhood of pixel P and are represented by N8 (P).
若预设邻域大小取4,即取4邻域,则每个中心像素与对应邻域的像素的灰度值之差有4个,若中心像素的灰度值用h(x,y)表示,那么其与对应4邻域的像素的灰度值之差可通过如下公式得到:If the default neighborhood size is 4, that is, the neighborhood of 4 is taken, then the difference between the gray value of each central pixel and the pixel of the corresponding neighborhood is 4. If the gray value of the central pixel is h (x, y) Display, then the difference between the gray value of the pixel and the corresponding pixel in the 4 neighborhoods can be obtained by the following formula:
q 1=h(x-1,y)-h(x,y); q 1 = h (x-1, y) -h (x, y);
q 2=h(x,y-1)-h(x,y); q 2 = h (x, y-1) -h (x, y);
q 3=h(x+1,y)-h(x,y); q 3 = h (x + 1, y) -h (x, y);
q 4=h(x,y+1)-h(x,y); q 4 = h (x, y + 1) -h (x, y);
容易理解地,当中心像素为边界像素时,其对应的灰度值之差q 1、q 2、q 3、q 4中至少有一个值为0。 It is easy to understand that when the central pixel is a boundary pixel, at least one of the differences q 1 , q 2 , q 3 , and q 4 of the corresponding gray value is 0.
S23:基于预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中灰度值之差的个数。S23: Obtain the number of differences in gray values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image.
例如,设一虹膜图像对应的矩阵为
Figure PCTCN2018094396-appb-000002
则矩阵M的行数m=3,列数n=5。容易理解地,通过图像信息获取工具,能够获取到该虹膜图像对应的矩阵,进而获取矩阵的行数和列数。
For example, let the matrix corresponding to an iris image be
Figure PCTCN2018094396-appb-000002
Then the number of rows m = 3 and the number of columns n = 5 of the matrix M. It is easy to understand that through the image information acquisition tool, the matrix corresponding to the iris image can be acquired, and then the number of rows and columns of the matrix can be acquired.
若预设邻域大小为4,矩阵的行数和列数分别为m和n,则灰度值之差的个数k可通过如下公式得到:If the preset neighborhood size is 4, and the number of rows and columns of the matrix is m and n, respectively, the number k of differences between gray values can be obtained by the following formula:
k=4×(m-2)×(n-2)+3×(2×(m-2)+2×(n-2))+4×2;k = 4 × (m-2) × (n-2) + 3 × (2 × (m-2) + 2 × (n-2)) + 4 × 2;
若预设邻域大小为8,矩阵的行数和列数分别为m和n,则灰度值之差的个数k可通过如下公式得到:If the preset neighborhood size is 8, and the number of rows and columns of the matrix is m and n, respectively, the number k of differences between gray values can be obtained by the following formula:
k=8×(m-2)×(n-2)+6×(2×(m-2)+2×(n-2))+4×3。k = 8 × (m-2) × (n-2) + 6 × (2 × (m-2) + 2 × (n-2)) + 4 × 3.
S24:将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中灰度值之差的个数,得到该虹膜图像的对比度。S24: Sum the difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighboring pixel, and divide it by the number of differences in the gray value in the iris image to obtain the iris image. Contrast.
其中,虹膜图像的对比度用C表示,虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差分别为q 1、q 2…q k,k为正整数。虹膜图像的对比度C的具体计算公式如下: Among them, the contrast of the iris image is represented by C, and the difference between the gray value of each central pixel and the gray value of the corresponding neighboring pixel in the iris image is q 1 , q 2 … q k , and k is a positive integer. The specific calculation formula for the contrast C of the iris image is as follows:
C=(q 1 2+q 2+…+q k 2)/k; C = (q 1 2 + q 2 + ... + q k 2 ) / k;
由公式可知,对比度C是一个具体的数值。As can be seen from the formula, the contrast C is a specific value.
本实施例中,首先获取虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素,根据预设邻域大小,计算中心像素的灰度值与预设邻域像素的灰度值差值,该灰度值差值的个数通过预设邻域的大小和虹膜图像对应矩阵的行数和列数计算得到后,将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值差值进行平方求和之后除以灰度值差值的个数,所得到结果即是该虹膜图像的对比度。通过步骤S21至步骤S24可以简单快速地计算出虹膜图像的对比度,还能通过比较对比度筛选出质量高的虹膜图像。In this embodiment, first, the gray value of each pixel of the iris image is obtained, and each pixel is sequentially used as the center pixel. According to the preset neighborhood size, the gray value of the center pixel and the gray value of the preset neighborhood pixel are calculated Degree difference, the number of gray value differences is calculated by presetting the size of the neighborhood and the number of rows and columns of the corresponding matrix of the iris image, and then comparing the gray value of each central pixel in the iris image with The gray value difference corresponding to the neighboring pixels is squared and summed and then divided by the number of gray value difference values. The obtained result is the contrast of the iris image. Through steps S21 to S24, the contrast of the iris image can be calculated simply and quickly, and a high-quality iris image can be filtered out by comparing the contrast.
在一实施例中,步骤S40中,如图5所示,即采用优化对比度算法对初始虹膜集中的初始虹膜图像进行局部增强处理,具体包括:In an embodiment, in step S40, as shown in FIG. 5, an optimized contrast algorithm is used to perform local enhancement processing on the initial iris image in the initial iris set, which specifically includes:
S41:基于大气散射模型计算初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y)。S41: Calculate the atmospheric light area A and transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model.
其中,大气散射模型是指对大气发生前向散射与后向散射建立的模型,用于对图像进行复原。将大气光视为光源,对于固定场景,大气光区域可以认为是确定的,通常将图像灰度值最大的像素作为大气光区域A。在一个具体实施方式中,为了避免将最大的像素作为大气光区域A对大气光估计产生不利的影响,基于虹膜图像的模糊区域灰度值的方差比较小,采用基于四叉树细分的分层搜索方法估计大气光区域A。具体方法是:首先从中心将初始虹膜图像划分为4个大小相同的矩形区域,依次计算初始虹膜图像的各个矩形区域灰度值的均值和标准差的差值,选出差值较大的区域,直到矩形区域的大小小于预设值,然后选中该矩形区域,使用公式d=|(I r(x,y),I g(x,y),I b(x,y))-(255,255,255)|取灰度值最小的像素点的r,g,b(r,g,b分别代表RGB三色模式中的红色分量、绿色分量及蓝色分量)最小分量作为大气光区域A,公式中,(x,y)为初始虹膜图像的像素点的坐标值,I r(x,y),I g(x,y),I b(x,y)分别为红色分量、绿色分量及蓝色分量的灰度值,d为初始虹膜图像对应的矩形区域与预设矩形区域灰度值的差值。 Among them, the atmospheric scattering model refers to a model established by forward scattering and backward scattering of the atmosphere, and is used for image restoration. The atmospheric light is regarded as a light source. For a fixed scene, the atmospheric light area can be considered as determined. Generally, the pixel with the largest gray value of the image is used as the atmospheric light area A. In a specific implementation, in order to avoid the largest pixel as the atmospheric light area A from adversely affecting the atmospheric light estimation, the variance of the gray value of the blurred area based on the iris image is relatively small. The layer search method estimates the atmospheric light area A. The specific method is: first divide the initial iris image into four rectangular regions of the same size from the center, calculate the difference between the mean value and the standard deviation of the gray values of each rectangular region of the initial iris image in order, and select the region with the larger difference Until the size of the rectangular area is smaller than the preset value, then select the rectangular area and use the formula d = | (I r (x, y), I g (x, y), I b (x, y))-(255,255,255 ) | Take r, g, b of the pixel with the smallest gray value (r, g, b respectively represent the red component, green component and blue component in the RGB tri-color mode) The smallest component is used as the atmospheric light area A, in the formula , (X, y) are the coordinate values of the pixels of the initial iris image, I r (x, y), I g (x, y), I b (x, y) are the red component, the green component, and the blue color, respectively The gray value of the component, d is the difference between the gray value of the rectangular area corresponding to the initial iris image and the preset rectangular area.
在估计出大气光区域A之后,初始虹膜图像的恢复取决于透射率t(x,y)的值,因此在一个局部子图像块中,通过求解初始虹膜图像对比度最大值估计出优化的透射率t(x,y)。在一个具体实施方式中,采用局部区域的灰度值均方差作为判断图像对比度的标准。给定区域B,其优化对比度计算公式如下:After the atmospheric light area A is estimated, the restoration of the initial iris image depends on the value of the transmittance t (x, y), so in a local sub-image block, the optimal transmittance is estimated by solving the maximum contrast value of the initial iris image t (x, y). In a specific implementation manner, the mean square error of gray values in a local area is used as a criterion for judging image contrast. Given the region B, its formula for calculating the optimal contrast is as follows:
Figure PCTCN2018094396-appb-000003
Figure PCTCN2018094396-appb-000003
其中,E contrast是区域B对应的优化对比度的数值,c∈{r,g,b}是颜色通道的索引标签,
Figure PCTCN2018094396-appb-000004
分别是J(x,y)、I(x,y)在局部区域B中的像素均值,N B为区域B中像素点的数目。
Among them, E contrast is the value of the optimized contrast corresponding to region B, and c∈ {r, g, b} is the index label of the color channel.
Figure PCTCN2018094396-appb-000004
The pixel averages of J (x, y) and I (x, y) in local area B, respectively, and N B is the number of pixel points in area B.
S42:基于大气光区域A和透射率t(x,y),采用如下公式对初始虹膜图像进行图像复原:S42: Based on the atmospheric light area A and the transmittance t (x, y), the following formula is used to perform image restoration on the initial iris image:
Figure PCTCN2018094396-appb-000005
Figure PCTCN2018094396-appb-000005
其中,(x,y)为初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法输入的初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的第一增强虹膜图像的灰度值。Among them, (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the first output of the optimized contrast algorithm. An enhanced gray value of the iris image.
其中,图像复原是指用退化过程的先验知识,去恢复已被退化图像的本来面目。复原的具体实现通过以下公式(即大气散射模型公式的重写)实现,Among them, image restoration refers to using the prior knowledge of the degradation process to restore the original appearance of the degraded image. The specific realization of the restoration is achieved by the following formula (that is, the rewrite of the atmospheric scattering model formula),
Figure PCTCN2018094396-appb-000006
Figure PCTCN2018094396-appb-000006
式中,透射率t(x,y)为一固定值,大气光区域A为一固定区域,(例如32×32),I(x,y)为为优化对比度算法输入的初始虹膜图像的灰度值,J(x,y)为J(x,y)为优化对比度算法输出的第一增强虹膜图像的灰度值,即恢复出的虹膜图像的灰度值。In the formula, the transmittance t (x, y) is a fixed value, the atmospheric light area A is a fixed area (for example, 32 × 32), and I (x, y) is the gray of the initial iris image input for the optimized contrast algorithm. Degree value, J (x, y) is J (x, y) is the gray value of the first enhanced iris image output by the optimized contrast algorithm, that is, the gray value of the restored iris image.
本实施例中,基于大气散射模型计算第一增强虹膜图像集中的虹膜图像的大气光区域A和透射率t(x,y),然后对初始虹膜图像进行复原,得到第一增强虹膜图像,通过优化的对比度算法对初始虹膜图像进行增强,使得初始虹膜图像的对比度都得到了提高,由于基于大气散射模型,也使得虹膜图像的细节信息得以保护,提高了第一增强虹膜图像的清晰度。In this embodiment, the atmospheric light area A and transmittance t (x, y) of the iris image in the first enhanced iris image set are calculated based on the atmospheric scattering model, and then the initial iris image is restored to obtain the first enhanced iris image. The optimized contrast algorithm enhances the initial iris image, so that the contrast of the initial iris image is improved. Based on the atmospheric scattering model, the detailed information of the iris image is also protected, and the clarity of the first enhanced iris image is improved.
在一实施例中,如图6所示,步骤S50中,即对第一增强虹膜图像集中的第一增强虹膜 图像采用拉普拉斯算子进行锐化处理,具体包括如下步骤:In an embodiment, as shown in FIG. 6, in step S50, the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator, which specifically includes the following steps:
S51:获取第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值。S51: Obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to sharpen the gray value of each pixel to obtain the sharpened pixels. grayscale value.
具体地,可以直接读入第一增强虹膜图像集中的第一增强虹膜图像,获取每一虹膜图像像素灰度值,具体的读入方式和步骤S21类似,在此不再赘述。Specifically, the first enhanced iris image in the first enhanced iris image set can be directly read to obtain the gray value of each iris image pixel. The specific reading method is similar to step S21, and is not repeated here.
基于二阶微分的拉普拉斯算子定义为:The Laplace operator based on second-order differential is defined as:
Figure PCTCN2018094396-appb-000007
Figure PCTCN2018094396-appb-000007
对于第一增强虹膜图像R(x,y),其二阶导数为:For the first enhanced iris image R (x, y), its second derivative is:
Figure PCTCN2018094396-appb-000008
Figure PCTCN2018094396-appb-000008
因此,拉普拉斯算子
Figure PCTCN2018094396-appb-000009
为:
Therefore, Laplacian
Figure PCTCN2018094396-appb-000009
for:
Figure PCTCN2018094396-appb-000010
Figure PCTCN2018094396-appb-000010
得到拉普拉斯算子
Figure PCTCN2018094396-appb-000011
之后,用拉普拉斯算子
Figure PCTCN2018094396-appb-000012
对第一增强虹膜图像的灰度值R(x,y)的每一像素灰度值都根据下述公式进行锐化,得到锐化后的像素灰度值,式中,g(x,y)为锐化后的像素灰度值。
Get Laplace operator
Figure PCTCN2018094396-appb-000011
After that, use Laplacian
Figure PCTCN2018094396-appb-000012
Each pixel gray value of the gray value R (x, y) of the first enhanced iris image is sharpened according to the following formula to obtain the sharpened pixel gray value. ) Is the gray value of the sharpened pixel.
Figure PCTCN2018094396-appb-000013
Figure PCTCN2018094396-appb-000013
S52:基于第一增强虹膜图像中锐化后的像素灰度值,获取对应的第二增强虹膜图像。S52: Obtain a corresponding second enhanced iris image based on the sharpened pixel gray value in the first enhanced iris image.
将锐化后的像素灰度值替换原(x,y)像素处的灰度值得到第二增强虹膜图像。The sharpened pixel gray value is replaced with the gray value at the original (x, y) pixel to obtain a second enhanced iris image.
在一个具体实施方式中,拉普拉斯算子
Figure PCTCN2018094396-appb-000014
选用四邻域锐化模板矩阵
Figure PCTCN2018094396-appb-000015
采用四邻域锐化模板矩阵H对第一增强虹膜图像集中的一幅第一增强虹膜图像进行拉普拉斯算子锐化。
In a specific embodiment, the Laplace operator
Figure PCTCN2018094396-appb-000014
Four-neighbor sharpening template matrix
Figure PCTCN2018094396-appb-000015
Laplace operator sharpening is performed on a first enhanced iris image in the first enhanced iris image set using a four-neighbor sharpening template matrix H.
如图7(a)和图7(b)所示,展示了对一幅初始虹膜图像(图7(a))进行优化对比度算法增强和拉普拉斯算子锐化后的虹膜图像即第二增强虹膜图像(图7(b))的对比图。可以看出,初始虹膜图像的整体对比度较低,第二增强虹膜图像相对于初始虹膜图像,整体对比度得到有效提升(人眼图像中的虹膜图像显示出更多信息),暗像素提亮,边缘细节比较丰富。As shown in Fig. 7 (a) and Fig. 7 (b), it shows the iris image after the initial contrast enhancement of the initial iris image (Fig. 7 (a)) and the sharpening of the Laplacian operator. Comparison of two enhanced iris images (Figure 7 (b)). It can be seen that the overall contrast of the initial iris image is low, and the overall contrast of the second enhanced iris image is effectively improved compared to the original iris image (the iris image in the human eye image shows more information), the dark pixels are brightened, and the edges The details are rich.
在本实施例中,首先获取第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,对其进行拉普拉斯锐化处理,得到锐化后的像素灰度值后再获取对应的第二增强虹膜图像。将经过优化对比度算法增强处理之后的虹膜图像采用拉普拉斯算子进行锐化,图像边缘细节特征被加强的同时抑制了第一增强虹膜图像局部增强过程中的高光,从而保护了第一增强虹膜图像的细节。此外,上述步骤不仅简单方便,提高虹膜图像处理的实时性,而且处理后得到第二增强虹膜图像边缘细节特征更加突出明了,虹膜图像集的整体对比度得到较大提高,增强了虹膜图像的纹理特征,有利于提高虹膜图像的识别的准确率。In this embodiment, first, the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set is obtained, and Laplacian sharpening processing is performed to obtain the sharpened pixel gray value. A corresponding second enhanced iris image is obtained. The iris image that has been enhanced by the optimized contrast algorithm is sharpened using Laplacian. The edge features of the image are enhanced while suppressing the highlights in the local enhancement process of the first enhanced iris image, thereby protecting the first enhancement. Details of the iris image. In addition, the above steps are not only simple and convenient, and improve the real-time performance of the iris image processing, but also the edge features of the second enhanced iris image are more prominent after processing, the overall contrast of the iris image set is greatly improved, and the texture characteristics of the iris image are enhanced. , It is helpful to improve the accuracy of iris image recognition.
值得说明的是,为了验证该虹膜图像局部增强方法的有效性,按照本实施例中步骤S11 和步骤S12的方法采集50个人眼虹膜图像,每个人眼6张共计600幅虹膜图像集,计算虹膜图像集的对比度,选取每个人眼对比度靠前的3幅,其中2幅用作训练,1幅用作验证。将此300张虹膜图像经过本实施例中的优化对比度算法进行局部增强后,并将增强的虹膜图像采用本实施例中步骤S51至步骤S52的方法进行锐化处理,得到处理后的训练集和验证集。将未经处理训练集和经过处理训练集分别提取纹理特征,识别算法通过计算欧式距离或者通过支持向量机(Support Vector Machine,SVM)分类器来识别的,计算比较识别率,作为该虹膜图像局部增强算法的增强效果。结果显示:未经处理的虹膜图像的识别率为83%,虹膜图像经本实施例中的虹膜图像局部增强方法处理后的识别率为98.9%,识别率提升了15.9%。It is worth noting that in order to verify the effectiveness of the local enhancement method of the iris image, the iris images of 50 human eyes were collected according to the method of steps S11 and S12 in this embodiment, and each human eye has a total of 600 iris image sets to calculate the iris. For the contrast of the image set, the top 3 contrasts of each human eye are selected, of which 2 are used for training and 1 is used for verification. After the 300 iris images are partially enhanced by the optimized contrast algorithm in this embodiment, the enhanced iris images are sharpened by using the method of steps S51 to S52 in this embodiment to obtain a processed training set and Validation set. Extract the texture features from the unprocessed training set and the processed training set respectively. The recognition algorithm recognizes them by calculating the Euclidean distance or by a Support Vector Machine (SVM) classifier, and calculates the comparison recognition rate as part of the iris image. Enhancement of the enhancement algorithm. The results show that the recognition rate of the unprocessed iris image is 83%, and the recognition rate of the iris image after the local enhancement method of the iris image in this embodiment is 98.9%, and the recognition rate is increased by 15.9%.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
在一实施例中,提供一种虹膜图像局部增强装置,该虹膜图像局部增强装置与上述实施例中虹膜图像局部增强方法一一对应。如图8所示,该虹膜图像局部增强装置包括虹膜图像集获取模块10、虹膜序列获取模块20、初始虹膜集获取模块30、第一增强虹膜图像集获取模块40和第二增强虹膜图像集获取模块50。其中,虹膜图像集获取模块10、虹膜序列获取模块20、初始虹膜集获取模块30、第一增强虹膜图像集获取模块40和第二增强虹膜图像集获取模块50的实现功能与上述实施例中虹膜图像局部增强方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。In one embodiment, an iris image local enhancement device is provided. The iris image local enhancement device corresponds to the iris image local enhancement method in the above-mentioned one-to-one correspondence. As shown in FIG. 8, the iris image local enhancement device includes an iris image set acquisition module 10, an iris sequence acquisition module 20, an initial iris set acquisition module 30, a first enhanced iris image set acquisition module 40, and a second enhanced iris image set acquisition. Module 50. The implementation functions of the iris image set acquisition module 10, the iris sequence acquisition module 20, the initial iris set acquisition module 30, the first enhanced iris image set acquisition module 40, and the second enhanced iris image set acquisition module 50 are the same as those of the iris in the above embodiment. The steps corresponding to the image local enhancement method correspond one by one. In order to avoid redundant description, this embodiment is not detailed one by one.
虹膜图像集获取模块10,用于获取虹膜图像集,虹膜图像集包括虹膜图像,虹膜图像包括用户标识。The iris image set acquisition module 10 is configured to acquire an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier.
虹膜序列获取模块20,用于计算虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列。The iris sequence acquisition module 20 is used to calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the order of the contrast, to obtain the initial corresponding to each user ID. Iris sequence.
初始虹膜集获取模块30,用于从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集。The initial iris set acquisition module 30 is configured to obtain a preset number of iris images from the initial iris sequence corresponding to each user identifier according to the order of increasing contrast, to form an initial iris set.
第一增强虹膜图像集获取模块40,用于采用优化对比度算法对初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集。A first enhanced iris image set acquisition module 40 is configured to perform local enhancement processing on an initial iris image in an initial iris set using an optimized contrast algorithm to obtain a first enhanced iris image set.
第二增强虹膜图像集获取模块50,用于对第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。A second enhanced iris image set acquisition module 50 is configured to sharpen the first enhanced iris image in the first enhanced iris image set using a Laplacian operator to obtain a second enhanced iris image set.
具体地,虹膜图像集获取模块10包括实测距离检测单元11、虹膜图像集获取单元12。Specifically, the iris image set acquisition module 10 includes a measured distance detection unit 11 and an iris image set acquisition unit 12.
实测距离检测单元11,用于实时获取人眼和摄像头的实测距离,若实测距离不在距离阈值范围内,则发送提示消息。The measured distance detection unit 11 is configured to obtain the measured distance of the human eye and the camera in real time, and if the measured distance is not within the distance threshold, a prompt message is sent.
虹膜图像集获取单元12,用于若实测距离在距离阈值范围内,则控制摄像头进行连续拍摄,获取虹膜图像集。The iris image set obtaining unit 12 is configured to control the camera to continuously shoot if the actual measured distance is within a distance threshold, to obtain an iris image set.
具体地,虹膜序列获取模块20还包括对比度计算单元21,用于计算虹膜图像集中的虹膜图像的对比度。Specifically, the iris sequence acquisition module 20 further includes a contrast calculation unit 21 for calculating the contrast of the iris image in the iris image set.
具体地,对比度计算单元21包括灰度值获取子单元211、灰度值的差值获取子单元212、灰度值的差值个数获取子单元213和对比度计算子单元214。Specifically, the contrast calculation unit 21 includes a gray value acquisition sub-unit 211, a gray value difference acquisition sub unit 212, a gray number difference number acquisition sub unit 213, and a contrast calculation sub unit 214.
灰度值获取子单元211,用于获取虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素。The gray value acquisition subunit 211 is configured to acquire a gray value of each pixel of the iris image in the iris image set, and sequentially use each pixel as a central pixel.
灰度值的差值获取子单元212,用于根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差。The gray value difference obtaining subunit 212 is configured to calculate a difference between a gray value of each center pixel and a gray value of a corresponding neighbor pixel according to a preset neighborhood size.
灰度值的差值个数获取子单元213,用于基于预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中灰度值之差的个数。The number-of-gray-values acquisition subunit 213 is configured to obtain the number of differences between the gray-scale values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image.
对比度计算子单元214,用于将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中灰度值之差的个数,得到该虹膜图像的对比度。The contrast calculation subunit 214 is configured to perform a square sum of the difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighboring pixel, and divide it by the number of differences Number to obtain the contrast of the iris image.
具体地,第一增强虹膜图像集获取模块40还包括大气散射模型参数获取单元41和第一增强虹膜图像集获取单元42。Specifically, the first enhanced iris image set acquisition module 40 further includes an atmospheric scattering model parameter acquisition unit 41 and a first enhanced iris image set acquisition unit 42.
大气散射模型参数获取单元41,用于基于大气散射模型计算初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y)。The atmospheric scattering model parameter obtaining unit 41 is configured to calculate the atmospheric light region A and the transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model.
第一增强虹膜图像集获取单元42,用于基于大气光区域A和透射率t(x,y),采用如下公式对初始虹膜图像进行图像复原:The first enhanced iris image set acquisition unit 42 is configured to perform image restoration on the initial iris image based on the atmospheric light area A and the transmittance t (x, y):
Figure PCTCN2018094396-appb-000016
Figure PCTCN2018094396-appb-000016
其中,(x,y)为初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法的输入的初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的第一增强虹膜图像的灰度值。Among them, (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the output of the optimized contrast algorithm The first enhanced gray value of the iris image.
具体地,第二增强虹膜图像集获取模块50包括锐化后灰度值获取单元51和第二增强虹膜图像获取单元52。Specifically, the second enhanced iris image set acquisition module 50 includes a sharpened gray value acquisition unit 51 and a second enhanced iris image acquisition unit 52.
锐化后灰度值获取单元51,用于获取第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值。The sharpened gray value obtaining unit 51 is configured to obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to determine the gray value of each pixel. Perform sharpening to obtain the gray value of the sharpened pixel.
第二增强虹膜图像获取单元52,用于基于第一增强虹膜图像中锐化后的像素灰度值,获取对应的第二增强虹膜图像。The second enhanced iris image acquisition unit 52 is configured to acquire a corresponding second enhanced iris image based on the sharpened pixel gray value in the first enhanced iris image.
关于虹膜图像局部增强装置的具体限定可以参见上文中对于虹膜图像局部增强方法的限定,在此不再赘述。上述虹膜图像局部增强装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the iris image local enhancement device, refer to the foregoing limitation on the iris image local enhancement method, which will not be repeated here. Each module in the above-mentioned iris image local enhancement device may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种虹膜图像局部增强方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer device includes a processor, a memory, and a network interface connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by a processor to implement a method for local enhancement of an iris image.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现上述实施例虹膜图像局部增强方法的步骤,例如图2所示的步骤S10至步骤S50。或者,处理器执行计算机可读指令时实现上述实施例虹膜图像局部增强装置的各模块/单元的功能,例如图8所示的模块10至模块50。为避免重复,这里不再赘述。In one embodiment, a computer device is provided, which includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor. The processor implements the computer-readable instructions to implement the iris image of the foregoing embodiment. The steps of the local enhancement method include, for example, steps S10 to S50 shown in FIG. 2. Alternatively, when the processor executes the computer-readable instructions, the functions of the modules / units of the iris image local enhancement device of the embodiment described above are implemented, for example, modules 10 to 50 shown in FIG. 8. To avoid repetition, we will not repeat them here.
一个或多个存储有计算机可读指令的非易失性可读存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述实施例中虹膜图像局部增强方法的步骤,或者,计算机可读指令被一个或多个处理器执行时实现上述实施例中虹膜图像局部增强装置的各模块/单元的功能,为避免重复,这里不再赘述。One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to execute the iris image part in the above embodiment The steps of the enhancement method, or the functions of each module / unit of the iris image local enhancement device in the above embodiment are implemented when the computer-readable instructions are executed by one or more processors. To avoid repetition, details are not repeated here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by using computer-readable instructions to instruct related hardware. The computer-readable instructions can be stored in a non-volatile computer. In the readable storage medium, the computer-readable instructions, when executed, may include the processes of the embodiments of the methods described above. Wherein, any reference to the storage, storage, database, or other media used in the embodiments provided in this application may include non-volatile storage. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the above-mentioned division of functional units and modules is used as an example. In practical applications, the above functions can be assigned by different functional units, Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to describe the technical solution of the present application, but not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of this application.

Claims (20)

  1. 一种虹膜图像局部增强方法,其特征在于,包括:A method for local enhancement of an iris image, comprising:
    获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
    计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
    从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
    采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
    对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  2. 如权利要求1所述的虹膜图像局部增强方法,其特征在于,所述获取虹膜图像集,包括:The method for locally enhancing an iris image according to claim 1, wherein the acquiring an iris image set comprises:
    实时获取人眼和摄像头的实测距离,若所述实测距离不在距离阈值范围内,则发送提示消息;Obtain the measured distance between the human eye and the camera in real time, and send a prompt message if the measured distance is not within the distance threshold;
    若所述实测距离在距离阈值范围内,则控制所述摄像头进行连续拍摄,获取所述虹膜图像集。If the measured distance is within a distance threshold, the camera is controlled to perform continuous shooting to obtain the iris image set.
  3. 如权利要求1所述的虹膜图像局部增强方法,其特征在于,所述计算所述虹膜图像集中的虹膜图像的对比度,包括:The method for locally enhancing an iris image according to claim 1, wherein the calculating the contrast of the iris image in the iris image set comprises:
    获取所述虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素;Acquiring the gray value of each pixel of the iris image in the iris image set, and sequentially using each pixel as the center pixel;
    根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差;Calculate the difference between the gray value of each center pixel and the gray value of the corresponding neighborhood pixel according to the preset neighborhood size;
    基于所述预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中所述灰度值之差的个数;Obtaining the number of differences between the gray values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image;
    将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中所述灰度值之差的个数,得到该虹膜图像的对比度。The difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighborhood pixel is squared and summed, and then divided by the number of the difference in the gray value in the iris image to obtain the iris image Contrast.
  4. 如权利要求1所述的虹膜图像局部增强方法,其特征在于,所述采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,包括:The method for local enhancement of an iris image according to claim 1, wherein the step of locally enhancing the initial iris image in the initial iris set by using an optimized contrast algorithm comprises:
    基于大气散射模型计算所述初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y);Calculating the atmospheric light area A and the transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model;
    基于所述大气光区域A和所述透射率t(x,y),采用如下公式对所述初始虹膜图像进行图像复原:Based on the atmospheric light area A and the transmittance t (x, y), image restoration is performed on the initial iris image using the following formula:
    Figure PCTCN2018094396-appb-100001
    Figure PCTCN2018094396-appb-100001
    其中,(x,y)为所述初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法输入的所述初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的所述第一增强虹膜图像的灰度值。Where (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the optimized contrast The gray value of the first enhanced iris image output by the algorithm.
  5. 如权利要求1所述的虹膜图像局部增强方法,其特征在于,所述对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,包括:The method for locally enhancing an iris image according to claim 1, wherein the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator, comprising:
    获取所述第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值;Obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to sharpen the gray value of each pixel to obtain a sharpened pixel grayscale value;
    基于第一增强虹膜图像中所述锐化后的像素灰度值,获取对应的第二增强虹膜图像。A corresponding second enhanced iris image is acquired based on the sharpened pixel gray value in the first enhanced iris image.
  6. 一种虹膜图像局部增强装置,其特征在于,包括:An iris image local enhancement device includes:
    虹膜图像集获取模块,用于获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;An iris image set acquisition module, configured to obtain an iris image set, wherein the iris image set includes an iris image, and the iris image includes a user identifier;
    虹膜序列获取模块,用于计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对所述虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;The iris sequence acquisition module is used to calculate the contrast of the iris images in the iris image set, and sort the iris images corresponding to each user ID in the iris image set in the order of increasing contrast, to obtain each user ID Corresponding initial iris sequence;
    初始虹膜集获取模块,用于从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;The initial iris set acquisition module is used to obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
    第一增强虹膜图像集获取模块,用于采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理;A first enhanced iris image set acquisition module, configured to perform local enhancement processing on the initial iris image in the initial iris set using an optimized contrast algorithm;
    第二增强虹膜图像集获取模块,用于对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。A second enhanced iris image set acquisition module is configured to sharpen the first enhanced iris image in the first enhanced iris image set by using a Laplacian to obtain a second enhanced iris image set.
  7. 如权利要求6所述的虹膜图像局部增强装置,其特征在于,所述第一增强虹膜图像集获取模块,包括:The local iris image enhancement device according to claim 6, wherein the first enhanced iris image set acquisition module comprises:
    大气散射模型参数获取单元,用于基于大气散射模型计算所述初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y);An atmospheric scattering model parameter obtaining unit, configured to calculate an atmospheric light region A and a transmittance t (x, y) of an initial iris image in the initial iris set based on the atmospheric scattering model;
    第一增强虹膜图像集获取单元,用于基于所述大气光区域A和所述透射率t(x,y),采用如下公式对所述初始虹膜图像进行图像复原:A first enhanced iris image set obtaining unit is configured to perform image restoration on the initial iris image based on the atmospheric light area A and the transmittance t (x, y):
    Figure PCTCN2018094396-appb-100002
    Figure PCTCN2018094396-appb-100002
    其中,(x,y)为所述初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法输入的所述初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的所述第一增强虹膜图像的灰度值。Where (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the optimized contrast The gray value of the first enhanced iris image output by the algorithm.
  8. 如权利要求6所述的虹膜图像局部增强装置,其特征在于,所述第二增强虹膜图像集获取模块,包括:The local iris image enhancement device according to claim 6, wherein the second enhanced iris image set acquisition module comprises:
    锐化后灰度值获取单元,用于获取所述第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值;A sharpened gray value obtaining unit is configured to obtain a gray value of each pixel of a first enhanced iris image in the first enhanced iris image set, and use a Laplacian operator for each pixel's gray value Both are sharpened to obtain the gray value of the sharpened pixel;
    第二增强虹膜图像获取单元,用于基于第一增强虹膜图像中所述锐化后的像素灰度值,获取对应的第二增强虹膜图像。A second enhanced iris image acquisition unit is configured to acquire a corresponding second enhanced iris image based on the sharpened pixel gray value in the first enhanced iris image.
  9. 如权利要求6所述的虹膜图像局部增强装置,其特征在于,所述虹膜图像集获取模块包括:The local iris image enhancement device according to claim 6, wherein the iris image set acquisition module comprises:
    实测距离检测单元,用于实时获取人眼和摄像头的实测距离,若所述实测距离不在距 离阈值范围内,则发送提示消息;A measured distance detection unit, configured to obtain the measured distance of the human eye and the camera in real time, and send a prompt message if the measured distance is not within the distance threshold;
    虹膜图像集获取单元,用于若所述实测距离在距离阈值范围内,则控制所述摄像头进行连续拍摄,获取所述虹膜图像集。An iris image set acquiring unit is configured to control the camera to continuously shoot if the measured distance is within a distance threshold, to acquire the iris image set.
  10. 如权利要求6所述的虹膜图像局部增强装置,其特征在于,所述虹膜序列获取模块包括:The local iris image enhancement device according to claim 6, wherein the iris sequence acquisition module comprises:
    灰度值获取子单元,用于获取所述虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素;A gray value acquisition subunit, configured to acquire a gray value of each pixel of an iris image in the iris image set, and sequentially use each pixel as a center pixel;
    灰度值的差值获取子单元,用于根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差;A subunit for obtaining a difference in gray values, for calculating a difference between a gray value of each center pixel and a gray value of a corresponding neighbor pixel according to a preset neighborhood size;
    灰度值的差值个数获取子单元,用于基于所述预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中所述灰度值之差的个数;A subunit for obtaining the number of differences in gray values, for obtaining the number of differences in the gray values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image ;
    对比度计算子单元,用于将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中所述灰度值之差的个数,得到该虹膜图像的对比度。A contrast calculation subunit, configured to perform a square sum of the difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighboring pixel, and divide it by the difference between the gray values in the iris image Number, to obtain the contrast of the iris image.
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. The computer-readable instructions are characterized in that the processor executes the computer-readable instructions. When computer-readable instructions are instructed, the following steps are implemented:
    获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
    计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
    从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
    采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
    对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  12. 如权利要求11所述的计算机设备,其特征在于,所述获取虹膜图像集,包括:The computer device according to claim 11, wherein the acquiring an iris image set comprises:
    实时获取人眼和摄像头的实测距离,若所述实测距离不在距离阈值范围内,则发送提示消息;Obtain the measured distance between the human eye and the camera in real time, and send a prompt message if the measured distance is not within the distance threshold;
    若所述实测距离在距离阈值范围内,则控制所述摄像头进行连续拍摄,获取所述虹膜图像集。If the measured distance is within a distance threshold, the camera is controlled to perform continuous shooting to obtain the iris image set.
  13. 如权利要求11所述的计算机设备,其特征在于,所述计算所述虹膜图像集中的虹膜图像的对比度,包括:The computer device of claim 11, wherein the calculating the contrast of an iris image in the iris image set comprises:
    获取所述虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像素;Acquiring the gray value of each pixel of the iris image in the iris image set, and sequentially using each pixel as the center pixel;
    根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差;Calculate the difference between the gray value of each center pixel and the gray value of the corresponding neighborhood pixel according to the preset neighborhood size;
    基于所述预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中所述灰度值之差的个数;Obtaining the number of differences between the gray values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image;
    将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中所述灰度值之差的个数,得到该虹膜图像的对比度。The difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighborhood pixel is squared and summed, and then divided by the number of the difference in the gray value in the iris image to obtain the iris image Contrast.
  14. 如权利要求11所述的计算机设备,其特征在于,所述采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,包括:The computer device according to claim 11, wherein the step of locally enhancing the initial iris image in the initial iris set by using an optimized contrast algorithm comprises:
    基于大气散射模型计算所述初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y);Calculating the atmospheric light area A and the transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model;
    基于所述大气光区域A和所述透射率t(x,y),采用如下公式对所述初始虹膜图像进行图像复原:Based on the atmospheric light area A and the transmittance t (x, y), image restoration is performed on the initial iris image using the following formula:
    Figure PCTCN2018094396-appb-100003
    Figure PCTCN2018094396-appb-100003
    其中,(x,y)为所述初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法输入的所述初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的所述第一增强虹膜图像的灰度值。Where (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the optimized contrast The gray value of the first enhanced iris image output by the algorithm.
  15. 如权利要求11所述的计算机设备,其特征在于,所述对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,包括:The computer device according to claim 11, wherein the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator, comprising:
    获取所述第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值;Obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to sharpen the gray value of each pixel to obtain a sharpened pixel grayscale value;
    基于第一增强虹膜图像中所述锐化后的像素灰度值,获取对应的第二增强虹膜图像。A corresponding second enhanced iris image is acquired based on the sharpened pixel gray value in the first enhanced iris image.
  16. 一个或多个存储有计算机可读指令的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more non-volatile readable storage media storing computer readable instructions, characterized in that when the computer readable instructions are executed by one or more processors, the one or more processors are caused to execute The following steps:
    获取虹膜图像集,所述虹膜图像集包括虹膜图像,所述虹膜图像包括用户标识;Acquiring an iris image set, where the iris image set includes an iris image, and the iris image includes a user identifier;
    计算所述虹膜图像集中的虹膜图像的对比度,并按照对比度由大到小的顺序对虹膜图像集中每个用户标识对应的虹膜图像进行排序,得到每个用户标识对应的初始虹膜序列;Calculating the contrast of the iris images in the iris image set, and sorting the iris images corresponding to each user ID in the iris image set in order of increasing contrast, to obtain an initial iris sequence corresponding to each user ID;
    从每个用户标识对应的初始虹膜序列中依据对比度由大到小的顺序获取预设数量的虹膜图像,组成初始虹膜集;Obtain a preset number of iris images from the initial iris sequence corresponding to each user ID in order of increasing contrast, to form an initial iris set;
    采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,得到第一增强虹膜图像集;Using an optimized contrast algorithm to locally enhance the initial iris image in the initial iris set to obtain a first enhanced iris image set;
    对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,得到第二增强虹膜图像集。The first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian to obtain a second enhanced iris image set.
  17. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述获取虹膜图像集,包括:The non-volatile readable storage medium according to claim 16, wherein the obtaining an iris image set comprises:
    实时获取人眼和摄像头的实测距离,若所述实测距离不在距离阈值范围内,则发送提示消息;Obtain the measured distance between the human eye and the camera in real time, and send a prompt message if the measured distance is not within the distance threshold;
    若所述实测距离在距离阈值范围内,则控制所述摄像头进行连续拍摄,获取所述虹膜图像集。If the measured distance is within a distance threshold, the camera is controlled to perform continuous shooting to obtain the iris image set.
  18. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述计算所述虹膜图像集中的虹膜图像的对比度,包括:The non-volatile readable storage medium of claim 16, wherein the calculating the contrast of an iris image in the iris image set comprises:
    获取所述虹膜图像集中虹膜图像的每个像素的灰度值,并依次将每个像素作为中心像 素;Acquiring the gray value of each pixel of the iris image in the iris image set, and sequentially using each pixel as the central pixel;
    根据预设邻域大小,计算每个中心像素的灰度值与对应邻域像素的灰度值之差;Calculate the difference between the gray value of each center pixel and the gray value of the corresponding neighborhood pixel according to the preset neighborhood size;
    基于所述预设邻域大小和该虹膜图像对应矩阵的行数和列数,获取该虹膜图像中所述灰度值之差的个数;Obtaining the number of differences between the gray values in the iris image based on the preset neighborhood size and the number of rows and columns of the corresponding matrix of the iris image;
    将该虹膜图像中每个中心像素的灰度值与对应邻域像素的灰度值之差进行平方求和之后除以该虹膜图像中所述灰度值之差的个数,得到该虹膜图像的对比度。The difference between the gray value of each central pixel in the iris image and the gray value of the corresponding neighborhood pixel is squared and summed, and then divided by the number of the difference in the gray value in the iris image to obtain the iris image Contrast.
  19. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述采用优化对比度算法对所述初始虹膜集中的初始虹膜图像进行局部增强处理,包括:The non-volatile readable storage medium according to claim 16, wherein performing the local enhancement processing on the initial iris image in the initial iris set by using an optimized contrast algorithm comprises:
    基于大气散射模型计算所述初始虹膜集中的初始虹膜图像的大气光区域A和透射率t(x,y);Calculating the atmospheric light area A and the transmittance t (x, y) of the initial iris image in the initial iris set based on the atmospheric scattering model;
    基于所述大气光区域A和所述透射率t(x,y),采用如下公式对所述初始虹膜图像进行图像复原:Based on the atmospheric light area A and the transmittance t (x, y), image restoration is performed on the initial iris image using the following formula:
    Figure PCTCN2018094396-appb-100004
    Figure PCTCN2018094396-appb-100004
    其中,(x,y)为所述初始虹膜图像中像素的坐标值,I(x,y)为优化对比度算法输入的所述初始虹膜图像的灰度值,J(x,y)为优化对比度算法输出的所述第一增强虹膜图像的灰度值。Where (x, y) is the coordinate value of the pixel in the initial iris image, I (x, y) is the gray value of the initial iris image input by the optimized contrast algorithm, and J (x, y) is the optimized contrast The gray value of the first enhanced iris image output by the algorithm.
  20. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述对所述第一增强虹膜图像集中的第一增强虹膜图像采用拉普拉斯算子进行锐化处理,包括:The non-volatile readable storage medium according to claim 16, wherein the first enhanced iris image in the first enhanced iris image set is sharpened by using a Laplacian operator, comprising: :
    获取所述第一增强虹膜图像集中的第一增强虹膜图像的每个像素的灰度值,采用拉普拉斯算子对每个像素的灰度值都进行锐化,得到锐化后的像素灰度值;Obtain the gray value of each pixel of the first enhanced iris image in the first enhanced iris image set, and use the Laplacian to sharpen the gray value of each pixel to obtain a sharpened pixel grayscale value;
    基于第一增强虹膜图像中所述锐化后的像素灰度值,获取对应的第二增强虹膜图像。A corresponding second enhanced iris image is acquired based on the sharpened pixel gray value in the first enhanced iris image.
PCT/CN2018/094396 2018-05-25 2018-07-04 Iris image local enhancement method, device, equipment and storage medium WO2019223068A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810511986.7A CN108830175A (en) 2018-05-25 2018-05-25 Iris image local enhancement methods, device, equipment and storage medium
CN201810511986.7 2018-05-25

Publications (1)

Publication Number Publication Date
WO2019223068A1 true WO2019223068A1 (en) 2019-11-28

Family

ID=64145358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/094396 WO2019223068A1 (en) 2018-05-25 2018-07-04 Iris image local enhancement method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108830175A (en)
WO (1) WO2019223068A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159058A (en) * 2021-05-27 2021-07-23 中国工商银行股份有限公司 Method and device for identifying image noise points
CN113379694A (en) * 2021-06-01 2021-09-10 大连海事大学 Radar image local point-surface contrast product ship detection method
CN115526806A (en) * 2022-10-25 2022-12-27 昆山腾云达信息咨询技术服务中心(有限合伙) Automatic black-light image color correction method based on artificial intelligence
CN116596928A (en) * 2023-07-18 2023-08-15 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics
CN117351034A (en) * 2023-12-04 2024-01-05 深圳市丰源升科技有限公司 Perovskite battery laser scribing method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126191B (en) * 2019-12-10 2023-08-08 张杰辉 Iris image acquisition method, iris image acquisition device and storage medium
CN113128374A (en) * 2021-04-02 2021-07-16 西安融智芙科技有限责任公司 Sensitive skin detection method and sensitive skin detection device based on image processing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1445714A (en) * 2003-03-19 2003-10-01 上海交通大学 Iris marking normalization process method
CN104240205A (en) * 2014-09-26 2014-12-24 北京无线电计量测试研究所 Iris image enhancement method based on matrix completion
CN105426847A (en) * 2015-11-19 2016-03-23 北京理工大学 Nonlinear enhancing method for low-quality natural light iris images

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10667981B2 (en) * 2016-02-29 2020-06-02 Mentor Acquisition One, Llc Reading assistance system for visually impaired
CN107124531A (en) * 2017-05-26 2017-09-01 努比亚技术有限公司 A kind of image processing method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1445714A (en) * 2003-03-19 2003-10-01 上海交通大学 Iris marking normalization process method
CN104240205A (en) * 2014-09-26 2014-12-24 北京无线电计量测试研究所 Iris image enhancement method based on matrix completion
CN105426847A (en) * 2015-11-19 2016-03-23 北京理工大学 Nonlinear enhancing method for low-quality natural light iris images

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113159058A (en) * 2021-05-27 2021-07-23 中国工商银行股份有限公司 Method and device for identifying image noise points
CN113159058B (en) * 2021-05-27 2022-11-11 中国工商银行股份有限公司 Method and device for identifying image noise points
CN113379694A (en) * 2021-06-01 2021-09-10 大连海事大学 Radar image local point-surface contrast product ship detection method
CN113379694B (en) * 2021-06-01 2024-02-23 大连海事大学 Radar image local point-to-face contrast product ship detection method
CN115526806A (en) * 2022-10-25 2022-12-27 昆山腾云达信息咨询技术服务中心(有限合伙) Automatic black-light image color correction method based on artificial intelligence
CN115526806B (en) * 2022-10-25 2023-10-20 昆山腾云达信息咨询技术服务中心(有限合伙) Artificial intelligence-based black light image automatic color correction method
CN116596928A (en) * 2023-07-18 2023-08-15 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics
CN116596928B (en) * 2023-07-18 2023-10-03 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics
CN117351034A (en) * 2023-12-04 2024-01-05 深圳市丰源升科技有限公司 Perovskite battery laser scribing method and system
CN117351034B (en) * 2023-12-04 2024-02-13 深圳市丰源升科技有限公司 Perovskite battery laser scribing method and system

Also Published As

Publication number Publication date
CN108830175A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2019223069A1 (en) Histogram-based iris image enhancement method, apparatus and device, and storage medium
WO2019223068A1 (en) Iris image local enhancement method, device, equipment and storage medium
EP3338217B1 (en) Feature detection and masking in images based on color distributions
WO2019153739A1 (en) Identity authentication method, device, and apparatus based on face recognition, and storage medium
WO2017076040A1 (en) Image processing method and device for use during continuous shooting operation
US10750160B2 (en) Gaze correction of multi-view images
US20130170755A1 (en) Smile detection systems and methods
US11138695B2 (en) Method and device for video processing, electronic device, and storage medium
US10176616B2 (en) Automatic capture and refinement of a digital image of a group of people without user intervention
WO2014186422A1 (en) Image masks for face-related selection and processing in images
KR20200023651A (en) Preview photo blurring method and apparatus and storage medium
US11538175B2 (en) Method and apparatus for detecting subject, electronic device, and computer readable storage medium
JP2016523397A (en) Method and system for information recognition
WO2021083059A1 (en) Image super-resolution reconstruction method, image super-resolution reconstruction apparatus, and electronic device
CN106056064A (en) Face recognition method and face recognition device
US20130216154A1 (en) Method of performing eye circle correction an image and related computing device
US20220124128A1 (en) Sharing physical writing surfaces in videoconferencing
CN110730381A (en) Method, device, terminal and storage medium for synthesizing video based on video template
US11315360B2 (en) Live facial recognition system and method
WO2019223066A1 (en) Global enhancement method, device and equipment for iris image, and storage medium
CN109447942B (en) Image ambiguity determining method, apparatus, computer device and storage medium
CN111369478A (en) Face image enhancement method and device, computer equipment and storage medium
WO2019223067A1 (en) Multiprocessing-based iris image enhancement method and apparatus, and device and medium
US20180012066A1 (en) Photograph processing method and system
CN113592753A (en) Image processing method and device based on industrial camera shooting and computer equipment

Legal Events

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

Ref document number: 18919819

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/03/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18919819

Country of ref document: EP

Kind code of ref document: A1