Iris recognition method and apparatus, electronic device, and storage medium
By stereo matching the iris image group and positioning the pupil edge, the accuracy problem of iris recognition under complex conditions is solved, and high-accuracy iris recognition under different lighting and facial postures is achieved.
Patent Information
- Application Number
- PCT/CN2025/075701
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-07
- Filing Date
- 2025-02-05
- Publication Date
- 2025-08-14
AI Technical Summary
The accuracy of existing iris recognition technology is affected in the case of changes in pupil size, light changes and blurred pupil edges, making it difficult to accurately locate the pupil edge under complex conditions.
By stereo matching of each two iris images in the iris image group, the pupil edge is positioned, the iris region is determined using the parallax map and feature extraction is performed.
Accurately position the pupil edge under different lighting conditions and facial postures, improve the accuracy of iris recognition, has strong robustness and real-timeness, and reduces pupil edge positioning errors.
Smart Images

Figure CN2025075701_14082025_PF_FP_ABST
Abstract
Description
Iris recognition method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 7, 2024, with application number 202410173894.8 and invention name “A method, device, electronic device and storage medium for iris recognition”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of image processing technology, and in particular to an iris recognition method, device, electronic device and storage medium.
[0003] Background of the Invention
[0004] Iris recognition is a biometric technology that analyzes the texture characteristics of an individual's iris. Highly reliable and unique, iris recognition is widely used in security authentication and identity verification scenarios. Currently, iris recognition methods primarily locate the pupil edge through edge detection and morphological processing. Based on this location, the iris region is determined for iris recognition. However, iris recognition accuracy is affected by changes in pupil size, lighting conditions, and blurred pupil edges. Summary of the Invention
[0005] Embodiments of the present application provide an iris recognition method, apparatus, electronic device, and storage medium to improve the accuracy of iris recognition.
[0006] An iris recognition method provided in an embodiment of the present application includes:
[0007] Acquire an iris image group collected for an object to be identified; the iris image group includes at least two iris images collected from the same eye region of the object to be identified at different acquisition viewing angles;
[0008] Obtaining a disparity map corresponding to the at least two iris images by performing stereo matching on the at least two iris images, wherein the disparity map includes disparity elements, each representing a displacement in a specified direction between two pixel points corresponding to the same eye region element in the at least two iris images;
[0009] determining a pupil edge in one of the at least two iris images based on the displacement amount;
[0010] determining an iris region in the one iris image according to the pupil edge, and obtaining iris features by performing feature extraction on the iris region;
[0011] Based on the iris features, the identity of the object to be identified is identified.
[0012] An iris recognition device provided in an embodiment of the present application includes:
[0013] An image acquisition unit is configured to acquire an iris image group acquired for an object to be identified; the iris image group includes at least two iris images acquired at different acquisition viewing angles for the same eye region of the object to be identified;
[0014] a stereo matching unit configured to obtain a disparity map corresponding to the at least two iris images by performing stereo matching on the at least two iris images, wherein the disparity map includes disparity elements, each representing a displacement in a specified direction between two pixels corresponding to the same eye region element in the at least two iris images;
[0015] a pupil locating unit, configured to determine a pupil edge in one of the at least two iris images based on the displacement;
[0016] an iris feature extraction unit, configured to determine an iris region in the one iris image according to the pupil edge, and obtain iris features by performing feature extraction on the iris region;
[0017] The identification unit is used to identify the object to be identified based on the iris feature.
[0018] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of any one of the above-mentioned iris recognition methods.
[0019] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to perform the steps of any one of the above-mentioned iris recognition methods.
[0020] An embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any one of the above-mentioned iris recognition methods.
[0021] During iris recognition, the present embodiment of the present invention performs stereo matching between every two iris images in a set of iris images to ultimately locate the pupil edge. This allows accurate pupil edge location under varying lighting conditions, facial postures, and expressions, while also being highly robust to interference factors such as noise and occlusion. Consequently, pupil edge location based on this approach can effectively reduce pupil edge location errors.
[0022] BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] FIG1 is a schematic diagram of an example of an application scenario in an embodiment of the present application;
[0025] FIG2 is a schematic diagram of an iris image of a human eye according to an embodiment of the present application;
[0026] FIG3 is a flowchart of an implementation method of an iris recognition method provided in an embodiment of the present application;
[0027] FIG4 is a logic diagram of stereo matching of four iris images in an embodiment of the present application;
[0028] FIG5 is a schematic diagram of a grayscale histogram in an embodiment of the present application;
[0029] FIG6 is a schematic diagram of two iris images in an embodiment of the present application;
[0030] FIG7 is a schematic diagram of a correction principle in an embodiment of the present application;
[0031] FIG8 is a schematic diagram of an iris image before and after correction in an embodiment of the present application;
[0032] FIG9 is a schematic diagram of disparity map fusion in an embodiment of the present application;
[0033] FIG10 is a flow chart of a pupil edge positioning method according to an embodiment of the present application;
[0034] FIG11 is a schematic diagram of a method for determining an iris region in an embodiment of the present application;
[0035] FIG12 is a flow chart of an iris region updating method according to an embodiment of the present application;
[0036] FIG13 is a schematic diagram of a process of identifying an object through feature matching in an embodiment of the present application;
[0037] FIG14 is a schematic diagram of the logic for dividing a candidate iris image set in an embodiment of the present application;
[0038] FIG15 is a modular block diagram of an iris recognition process in an embodiment of the present application;
[0039] FIG16 is a schematic diagram of the structure of an iris recognition device according to an embodiment of the present application;
[0040] FIG17 is a schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;
[0041] FIG18 is a schematic diagram of a hardware structure of another electronic device to which an embodiment of the present application is applied.
[0042] Modes for Carrying Out the Invention
[0043] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solutions of the present application, but not all of them. Based on the embodiments described in this application document, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the technical solutions of the present application.
[0044] The following is an introduction to some concepts involved in the embodiments of this application.
[0045] The pupil is the small circular hole in the center of the iris in an animal or human eye. It is the passageway for light to enter the eye. Contraction of the pupillary sphincter muscle on the iris causes the pupil to constrict, while contraction of the pupillary dilator muscle causes the pupil to dilate. The dilation and constriction of the pupil control the amount of light entering the pupil.
[0046] The iris is a thin, pigmented ring-shaped membrane at the front of the eyeball, located outside the pupil. The center of the circle containing the iris is usually the center of the pupil.
[0047] Iris Recognition: A biometric technology that identifies individuals by analyzing the texture features of the iris.
[0048] Stereo Matching: A computer vision technique that compares the similarities between two stereo views to determine the positions of corresponding points in the image, thereby achieving 3D reconstruction or object positioning.
[0049] Disparity Map: A disparity map is an image that represents the horizontal displacement between corresponding points in the left and right views. Disparity maps can be used to calculate depth information for objects, enabling 3D reconstruction or object localization. In the stereo matching process, a disparity map is a representation of the matching results. Each pixel in the disparity map represents the horizontal displacement between corresponding points in the left and right views. Larger values indicate that the object is closer to the observer (such as the binocular camera described below).
[0050] Artificial Intelligence (AI) is the theory, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also studies the design principles and implementation methods of various intelligent machines, enabling them to perceive, reason, and make decisions. AI technology is an interdisciplinary discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Basic AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, speech processing, natural language processing, and machine learning / deep learning. The technical solutions provided in the embodiments of this application primarily address computer vision and machine learning / deep learning within AI.
[0051] Computer vision (CV) is the science of making machines "see." Specifically, it refers to machine vision, where cameras and computers replace the human eye in identifying and measuring objects, performing further image processing to create images more suitable for human observation or transmission to instrumentation. As a scientific discipline, computer vision studies related theories and technologies, aiming to build artificial intelligence systems capable of extracting information from images or multidimensional data. Computer vision technologies typically include image processing, image recognition, image semantic understanding, image retrieval, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, and common biometric recognition technologies such as facial recognition and fingerprint recognition.
[0052] The technical solution provided in the embodiments of the present application mainly relates to image recognition in computer vision technology. Specifically, the identity of the object to be identified is achieved by identifying the iris image collected based on the object to be identified.
[0053] Biometrics is a recently emerging technology that uses physiological characteristics to verify identity. Compared to traditional identification technologies (such as door keys and passwords), biometrics offers greater stability, security, and portability.
[0054] Iris recognition is a biometric technology that uses the texture characteristics of the iris to authenticate individuals. Compared to other biometric technologies such as facial recognition, palm print recognition, and fingerprint recognition, iris recognition offers unique advantages and is widely used in security and identity verification scenarios. First, the iris is highly bioactive and coexists with human life phenomena, making it impossible to replace a living iris image with a photograph or video. Second, the iris is extremely stable. It forms before birth, takes shape 6-18 months after birth, and remains stable throughout life. Finally, the iris is unique; each iris contains unique information and is highly random. The iris textures of the left and right eyes of the same individual will not be identical.
[0055] The iris recognition solutions of the embodiments of the present application ultimately locate the pupil edge by performing stereo matching between every two iris images in an iris image group. This allows accurate pupil edge location under varying lighting conditions, facial postures, and expressions, resulting in a more accurate determination of the iris range and improved iris recognition accuracy. Furthermore, the iris recognition solutions of the various embodiments are highly robust to interference factors such as noise and occlusion. Furthermore, the iris recognition solutions of the various embodiments offer high real-time performance, enabling rapid pupil edge detection and location, meeting the needs of real-time applications.
[0056] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.
[0057] The solution provided in the embodiments of this application can be applied to iris recognition, such as iris recognition for identity verification. This solution can be applied as a foundational technology in various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving. As shown in Figure 1, it is a schematic diagram of an application scenario in the embodiments of this application. The application scenario diagram includes an iris acquisition device 101 and an iris recognition device 102.
[0058] The iris acquisition device 101, as a front-end device, can be used to acquire iris images of the eye area of the subject to be identified. It may include, but is not limited to, dedicated equipment specifically for iris image acquisition or terminal devices with iris image acquisition capabilities. Such dedicated equipment may include, for example, contact iris acquisition devices, intelligent iris and face recognition integrated devices, portable iris recognition devices, and long-distance contactless iris acquisition and recognition devices. Terminal devices may include mobile phones, tablet computers (PADs), laptops, desktop computers, smart in-vehicle devices, smart voice interaction devices, smart home appliances, smart wearable devices, and aircraft.
[0059] Iris recognition technology is widely used in various fields due to its high security and accuracy. As technology advances, iris capture devices are also constantly improving, becoming more efficient, convenient, and adaptable to a variety of application scenarios. When selecting an iris capture device, consider its capture efficiency, accuracy, portability, and whether it meets the needs of the specific application.
[0060] FIG1 illustrates an iris image acquisition device, such as a binocular camera. As shown in 1011, the binocular camera captures an iris image of an object to be identified 1012. In FIG1 , object to be identified 1012 is a person. Of course, the iris recognition method of the present embodiment is also applicable to other individuals with irises, such as other primates, other mammals, and birds, and will not be further detailed here.
[0061] As shown in Figure 2, it is a schematic diagram of an iris image of a human eye in an embodiment of the present application. The structure of the human eye is composed of the sclera, iris, pupil lens, retina and other parts. As shown in Figure 2, the iris (the gray area in Figure 2) is the annular part located between the black pupil and the white sclera, which contains many interlaced spots, filaments, crowns, stripes, crypts and other detailed features. When the iris is illuminated by infrared light of a certain wavelength (generally between 700-900 nanometers), it generally presents a radial structure from the inside to the outside. These subtle features are called the texture features of the iris. This feature is "unique" and has important application value in various fields.
[0062] It should be noted that the iris images in this article are just simple examples. The texture and other detailed features of the actual iris may not be reflected in the drawings in this article, but this does not mean that it does not contain these features. This is hereby explained.
[0063] The iris recognition device 102 can be any electronic device with iris recognition capabilities, such as a security access control system, an identity authentication device, etc., or a terminal device, a server, etc. Taking the iris recognition device 102 as a server as an example, it can be a standalone physical server, a server cluster or a distributed system consisting of two physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0064] If the iris acquisition device is a terminal device, an iris recognition-related client may also be installed on the terminal device. The client may be software (such as payment software, iris recognition software, etc.), or a web page, mini-program, etc. Correspondingly, the server is a backend server corresponding to the software, web page, mini-program, etc., or a server specifically used for iris recognition, which is not specifically limited in this application.
[0065] In actual application, the iris acquisition device 101 can provide the collected iris image group containing at least two iris images to the iris recognition device 102. The iris recognition device 102 then uses the iris recognition method of the embodiment of the present application to perform stereo matching between every two iris images in the iris image group to obtain a corresponding disparity map; then, based on the obtained disparity maps, the pupil edge is located from any iris image included in the iris image group; based on the pupil edge, the iris area in any iris image is determined, and features are extracted from any iris area to obtain corresponding iris features; based on the extracted iris features, the identity of the object to be identified is identified.
[0066] It should be noted that, in actual applications, when the processing capability of the iris acquisition device is sufficient, the iris recognition device 102 and the iris acquisition device 101 can be implemented by the same device, and the embodiments of the present application do not impose any restrictions on this.
[0067] In the embodiment of the present application, the iris acquisition device 101 and the iris recognition device 102 can be directly or indirectly connected to each other via at least one network. The network can be a wired network or a wireless network, for example, a mobile cellular network or a Wireless Fidelity (WIFI) network. Of course, other possible networks are also possible, and the embodiment of the present application does not limit this.
[0068] It should be noted that what is shown in FIG1 is only an example. In fact, the number of iris acquisition devices and iris recognition devices is not limited and is not specifically limited in the embodiments of this application.
[0069] In the embodiment of the present application, when there are two servers, the two servers can form a blockchain, with the servers being nodes on the blockchain. For example, in the iris recognition method disclosed in the embodiment of the present application, the iris recognition-related data involved can be stored on the blockchain, such as iris images, disparity maps, pupil edges, iris regions, iris features, and identity recognition results.
[0070] The following are some common iris recognition application scenarios:
[0071] (1) Security access control system: Iris recognition can be used in access control systems in enterprises, government agencies, laboratories and other places to ensure that only authorized personnel can enter specific areas.
[0072] (2) Banks and financial institutions: Iris recognition can be used in financial scenarios such as banks and ATMs, providing a safe and convenient way to authenticate customer identities.
[0073] (3) Unlocking electronic devices: Iris recognition can be used to unlock electronic devices such as smartphones and tablets, providing a safer and more convenient unlocking method.
[0074] (4) Attendance system: Iris recognition can be used in the attendance system of enterprises and schools to ensure that the attendance records of employees or students are accurate.
[0075] (5) Medical industry: Iris recognition can be used in medical institutions to authenticate patients and ensure the accuracy and security of medical information.
[0076] (6) Driving license test: Iris recognition can be used in driving license tests to ensure the authenticity of the candidate's identity and prevent cheating.
[0077] (7) Voting system: Iris recognition can be used in election voting systems to ensure the authenticity of voters’ identities and guarantee the fairness of elections.
[0078] (8) Smart Home: Iris recognition can be used in smart home systems to identify family members and provide personalized home services.
[0079] It should be noted that the several iris recognition scenarios listed above are just simple examples. Other iris recognition scenarios are also applicable to the embodiments of the present application and will not be described in detail here.
[0080] In addition, it can be understood that in the specific implementation of this application, related data such as iris images are involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the object, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0081] The following describes the iris recognition method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect.
[0082] 3 , which is a flowchart of an iris recognition method according to an embodiment of the present invention, includes blocks S31 to S35 shown in FIG3 , which are described as follows.
[0083] S31: Acquire a group of iris images collected for the object to be identified.
[0084] The iris image group includes: at least two iris images captured at different capture angles for the same eye region of the object to be identified.
[0085] This step is mainly to collect the iris image of the object (individual) to be identified. In this application, a dedicated iris acquisition device, such as an iris recognition camera, a contact iris acquisition device, a contactless iris acquisition device, etc., can be used to capture a clear iris image.
[0086] The iris images collected in this application are processed using stereo matching technology, which compares the similarities between two or more stereo images to determine the positions of corresponding points in the images, thereby achieving three-dimensional reconstruction or object positioning.
[0087] Therefore, it is necessary to capture iris images at different capture angles for the same eye region of the object to be identified, so as to obtain at least two iris images, wherein each capture angle corresponds to at least one iris image.
[0088] For example, using the left and right cameras of a binocular camera can capture left and right views of the same scene, with the left and right cameras corresponding to different acquisition angles. This allows for iris images of the same eye area of the subject to be identified to be captured by the binocular cameras. These images, with a certain overlap, can be obtained from two different acquisition angles for matching.
[0089] For another example, a monocular camera or other camera may be used to switch different acquisition viewing angles to acquire iris images of the same eye area of the object to be identified, and so on.
[0090] It should be noted that any method of using any iris acquisition device to acquire an iris image group for an object to be identified is applicable to the embodiments of the present application and will not be described in detail here.
[0091] In order to further improve the image quality and thus improve the accuracy of subsequent pupil edge positioning, some preprocessing operations to enhance the image quality may be performed on the collected iris image.
[0092] In the embodiment of the present application, after step S31 and before step S32, the collected iris image may be preprocessed in at least one of the following ways.
[0093] Method 1: De-noise the iris image.
[0094] Image denoising aims to remove noise from images to improve image quality and visual effects. Noise may come from factors such as sensor errors and uneven lighting during image acquisition.
[0095] In the embodiment of the present application, there are many methods for denoising an iris image, including but not limited to some or all of the following.
[0096] (1) Denoising through filters.
[0097] Such as: mean filter, Gaussian filter, median filter, bilateral filter, etc.
[0098] Among them, the mean filter smoothes the iris image and reduces noise by replacing the pixel value with the average value of the pixel's neighborhood. The Gaussian filter uses a Gaussian function as a weight to perform a weighted average on the iris image to achieve a smoothing effect. The median filter takes the current pixel as the center, takes a fixed-size neighborhood (such as 3x3, 5x5, etc.), sorts the pixel values in the neighborhood, and then takes the median as the new value of the current pixel. This method can effectively preserve image edge information while removing noise. The bilateral filter combines spatial proximity and pixel value similarity to retain edge information while removing noise.
[0099] In iris recognition, the commonly used denoising method is median filtering, which can effectively eliminate salt-and-pepper noise.
[0100] (2) Non-local mean denoising: Utilizing the self-similarity of iris images, the entire iris image is averaged to effectively preserve texture and details.
[0101] (3) Wavelet transform: Through multi-scale analysis, the iris image is decomposed into wavelets at different levels, and then the detail coefficients are thresholded, and finally the denoised iris image is reconstructed.
[0102] (IV) Anisotropic diffusion: simulates the heat conduction process and gradually smoothes the iris image through iterative calculation while preserving the edges.
[0103] (5) Total variation denoising: Remove noise by minimizing the total variation of the iris image and maintain the edge and texture information of the iris image.
[0104] (6) Low-rank matrix recovery: The iris image is regarded as a matrix and noise is removed by solving the low-rank matrix recovery problem.
[0105] (7) Deep learning methods: Utilize deep neural networks, such as Convolutional Neural Networks (CNN) and Generative Adversarial Networks (GAN), to learn prior knowledge of iris images and achieve efficient denoising.
[0106] It should be noted that the image denoising methods listed above are only examples. Other methods are also applicable to the embodiments of this application and will not be described in detail here. In addition, the selection of an appropriate denoising method depends on the noise type, image content, and application scenario. In actual applications, it may be necessary to combine multiple methods or adjust parameters to achieve the best denoising effect, which is not specifically limited in this article.
[0107] Method 2: Perform histogram equalization on the iris image.
[0108] Histogram equalization is an image enhancement method that can increase image contrast and make iris texture more visible. The basic idea is to stretch the grayscale levels that appear frequently in the image and reduce the grayscale levels that appear less frequently. This makes the image's grayscale histogram more uniform, thereby improving the overall contrast and visual quality of the image.
[0109] The steps of performing histogram equalization on iris images are summarized as follows.
[0110] (1) Convert the original iris image into a grayscale image, determine its gray level, and statistically obtain a gray histogram, which characterizes the distribution of the number of pixels at each gray level in the iris image.
[0111] As shown in Figure 5, it is a schematic diagram of a gray histogram in an embodiment of the present application. Among them, the horizontal axis k in Figure 5 represents the gray level, and the vertical axis h(k) represents the number of pixels. Figure 5 simply exemplifies 4 gray levels and the distribution of the number of pixels at each gray level. As shown in Figure 5, there are 4 pixels at gray level 0, 5 pixels at gray level 1, 3 pixels at gray level 2, and 4 pixels at gray level 3.
[0112] It should be noted that in fact, there are more gray levels in the image (usually 256), and there are also more pixels in the image. Figure 5 is just a simple example and will not be elaborated here.
[0113] (2) Calculate the cumulative distribution function (Cumulative Distribution Function, CDF) of each gray level.
[0114] The cumulative distribution function, abbreviated as the distribution function, is the integral of the probability density function and can completely describe the probability distribution of a real random variable.
[0115] For example, there are a total of L gray levels (usually 256) in the original iris image, and the number of pixels at each gray level is n i , 0 < i < L. Then the probability of the pixel with gray level i appearing in the image: p x (i) = p(x = i) = n i / n. Among them, n is the total number of pixels in the image.
[0116] The cumulative distribution function of px is the cumulative normalized histogram of the image:
[0117] (3) Use the cumulative distribution function to map the gray values of the original iris image to new gray values, making the gray distribution of the new image more uniform.
[0118] The specific mapping formula is as follows:
[0119] Among them, cdfmin is the minimum value of the cumulative distribution function, M and N respectively represent the number of pixels in length and width, v is the original gray value, and h(v) is the new gray value after mapping.
[0120] In the embodiment of the present application, histogram equalization can simply and effectively improve the contrast of the image, especially for images with a small dynamic range. After histogram equalization processing, the contrast of the iris image is improved, making details such as the iris texture in the iris image clearer, and making the boundary between the pupil and the iris clearer, which is beneficial to subsequent operations such as pupil edge positioning and iris feature extraction.
[0121] Method three: grayscale stretching.
[0122] By linearly stretching the pixel values of the iris image, the contrast range is expanded, making the details of the iris image more obvious.
[0123] In addition to the above-listed methods for enhancing image quality, other methods can be used to enhance image quality, such as sharpening and color correction, which can also be used to improve image quality.
[0124] It should be noted that each method has its own applicable scenarios and advantages, and the selection of the appropriate method depends on the specific application requirements and image characteristics. In the embodiments of the present application, the purpose of image enhancement is to improve the visual effect of the image and make it more suitable for further analysis and processing, such as subsequent pupil edge positioning and iris feature extraction. In actual applications, it may be necessary to combine multiple methods to achieve the optimal enhancement effect, which is not specifically limited here.
[0125] In the above embodiment, by improving the image quality through certain preprocessing operations, the detailed features related to the iris, pupil, etc. in the image can be made clearer, thereby effectively improving the accuracy of subsequent pupil edge positioning.
[0126] S32: Obtain a disparity map between the at least two iris images by performing stereo matching on the at least two iris images.
[0127] In some embodiments, at S32, the iris images may be corrected to eliminate disparity between the iris images. Pupil feature points are extracted from each of the corrected iris images. Pixels corresponding to the same eye region element are determined from the extracted pupil feature points through stereo matching. A disparity map between the at least two iris images is obtained based on the positions of the determined pixels in the iris images in which they reside.
[0128] In some embodiments, in S32 , stereo matching may be performed between every two iris images to obtain a disparity map between every two iris images.
[0129] Each disparity map includes disparity elements. Each disparity element represents the displacement in a specified direction between two pixels corresponding to the same eye region element in the at least two iris images. An eye region element refers to an element in the eye region of the object to be identified, for example, a point on the surface of the eye region. For ease of description, two pixels corresponding to the same eye region element are hereinafter referred to as corresponding points.
[0130] The specified direction is related to the placement position of the iris acquisition device.
[0131] Taking a binocular camera as an example, the disparity map is actually the difference in pixel positions when imaging the same scene from two cameras. Since binocular cameras are positioned horizontally, the positional deviation is reflected in the horizontal direction. Of course, if the cameras are not positioned horizontally, the specified direction can also be other directions. Specific situations require specific analysis and are not discussed here.
[0132] In the embodiment of the present application, when the number of iris images in the iris image group is different, the number of obtained disparity maps is also different.
[0133] For example, if the iris image group includes only two iris images, stereo matching is performed on the two iris images to obtain a disparity map, which reflects the displacement of corresponding points in the two iris images in a specified direction (such as the horizontal direction).
[0134] For another example, if the iris image set contains three or more iris images, and these iris images all correspond to the same eye region of the subject to be identified, there is a certain amount of overlap between each of them (if there is no overlap between a particular iris image and other iris images, or the overlap is not related to the eye, then this iris image can be ignored). Therefore, stereo matching can be performed between every two iris images in the iris image set to obtain at least two disparity maps, where each two iris images correspond to one disparity map.
[0135] As shown in FIG4 , it is a logic diagram of stereo matching of four iris images in an embodiment of the present application.
[0136] Assume that there are four iris images in the iris image group, denoted as iris image 1, iris image 2, iris image 3, and iris image 4. Stereo matching between iris image 1 and iris image 2 can obtain disparity map 1, stereo matching between iris image 1 and iris image 3 can obtain disparity map 2, stereo matching between iris image 1 and iris image 4 can obtain disparity map 3, stereo matching between iris image 2 and iris image 3 can obtain disparity map 4, stereo matching between iris image 2 and iris image 4 can obtain disparity map 5, and stereo matching between iris image 3 and iris image 4 can obtain disparity map 6.
[0137] It should be noted that the disparity map in the embodiment of the present application is consistent in size with the iris image, that is, the disparity map corresponds one-to-one to the pixels in the iris image.
[0138] The following describes the process of performing stereo matching between two iris images to obtain a disparity map:
[0139] Stereo matching is a computer vision technique used to find corresponding points in two stereo images, enabling 3D reconstruction or object localization. In iris recognition, stereo matching can be used to locate the pupil edge.
[0140] In the embodiment of the present application, the stereo matching process in S32 may be implemented according to the following steps, including the following processes S321 to S324 (not shown in FIG3 ).
[0141] S321: Eliminate the parallax between the two iris images by correcting the two iris images.
[0142] Stereo matching technology requires two iris images. Taking the two cameras of a binocular camera as an example, the image taken by the left camera is recorded as the left view, and the image taken by the right camera is recorded as the right view.
[0143] Figure 6 shows two iris images in an embodiment of the present application. The left image in Figure 6 is an image of one eye of the subject to be identified, captured by the left camera of the binocular camera, while the right image is an image of the same eye, captured by the right camera of the binocular camera. Both images can be referred to as iris images, and they have a certain overlap area to facilitate matching.
[0144] Before stereo matching, the images can be rectified to eliminate parallax between the left and right views. Parallax is caused by the positional difference between the left and right eyes, which can affect the accuracy of stereo matching. There are many correction methods, such as binocular stereo rectification, perspective transformation, and affine transformation. Therefore, when forming the disparity map, each point at each position only represents the horizontal displacement of pixels between the left and right views.
[0145] Binocular stereo correction is an image preprocessing method used to eliminate parallax between binocular image pairs, aligning the left and right views to the same horizontal line. This simplifies the stereo matching process and improves matching accuracy. Binocular stereo correction is typically achieved by calculating the camera's intrinsic and extrinsic parameters and performing a geometric transformation on the images.
[0146] Among them, stereo correction is to strictly correspond the two images after eliminating distortion, and use the epipolar constraint to make the epipolar lines of the two images exactly on the same horizontal line. In this way, any point on one image and its corresponding point on the other image must have the same row number, and only one-dimensional search is required in the row to match the corresponding point.
[0147] Binocular correction is based on the monocular intrinsic parameter data (focal length, imaging origin, distortion coefficient) and the binocular relative position relationship (rotation matrix and translation vector) obtained after camera calibration. It eliminates distortion and aligns the left and right views respectively, making the imaging origin coordinates of the left and right views consistent, the optical axes of the two cameras parallel, the left and right imaging planes coplanar, and the epipolar lines aligned.
[0148] As shown in FIG7 , it is a schematic diagram of a correction principle in an embodiment of the present application.
[0149] Assume that there is a point P in space, whose coordinates in the world coordinate system are Pw, its coordinates in the left camera coordinate system in the binocular camera can be expressed as: Pl, and its coordinates in the right camera coordinate system in the binocular camera can be expressed as: Pr.
[0150] As shown in Figure 7, the two images after correction achieve plane coplanarity and epipolar line row alignment, so that any point on one image and its corresponding point on the other image must have the same row number. In this way, only one-dimensional search in the row is required to match the corresponding point, which improves the efficiency of subsequent corresponding point matching.
[0151] During iris recognition, the aforementioned binocular stereo correction method is used to perform stereo correction on the two iris images. Figure 8 is a schematic diagram of iris images before and after correction in an embodiment of the present application. The two iris images on the left side of Figure 8 represent left and right images of the same eye region of the subject being recognized, captured by a binocular camera before correction. The two iris images after binocular stereo correction are shown on the right side of Figure 8.
[0152] In the above embodiment, through image correction, the search range for matching corresponding points in two iris images is reduced from two dimensions to one dimension, which greatly improves the efficiency.
[0153] S322: Extract pupil feature points from each corrected iris image.
[0154] In the embodiment of the present application, it is necessary to extract pupil feature points from the corrected image for matching. Specifically, the extracted pupil feature points include but are not limited to some or all of the following:
[0155] (1) Corner point.
[0156] Corner points are a type of local feature in iris images, usually referring to points with significant angle changes. Corner points have good stability and distinguishability.
[0157] In the embodiment of the present application, algorithms for extracting corner points include Harris corner detection, Shi-Tomasi corner detection, etc., which are not specifically limited in this article.
[0158] (2) Edge points.
[0159] Among them, edge points are also a kind of local features in the image, usually referring to points in the iris image where the grayscale value changes significantly, and can be used to describe the contour and shape information of the object.
[0160] In the embodiment of the present application, the algorithms for extracting edge points include Canny edge detection, Sobel edge detection, Roberts edge detection, Prewitt edge detection, Laplacian edge detection, Laplacian of Gaussian (LoG) edge detection, etc., which are not specifically limited in this article.
[0161] S323: Determine corresponding points from the extracted pupil feature points through stereo matching.
[0162] After the feature points are extracted, a stereo matching algorithm may be used to find corresponding points in two iris images (such as the left view and the right view listed above).
[0163] The stereo matching algorithms include but are not limited to some or all of the following:
[0164] Area-based matching algorithm, feature-based matching algorithm, etc.
[0165] In the embodiment of the present application, stereo matching is mainly used for pupil positioning in iris recognition. Taking the region-based matching algorithm as an example, the positions of corresponding points are determined by comparing the similarity of pixel values in two iris images (such as the left view and right view listed above).
[0166] In various embodiments, pixel value similarity measurement methods include but are not limited to some or all of the following.
[0167] (1) Sum of Squared Differences (SSD) algorithm.
[0168] Among them, SSD is a similarity measurement method used to calculate the difference between two image regions. A smaller SSD value indicates that the two regions are more similar.
[0169] In this embodiment of the present application, the SSD values of the pupil feature points extracted from the two iris images can be compared using an SSD algorithm, and corresponding points can be analyzed based on these values. For example, if the SSD value between two pupil feature points is less than a preset SSD threshold, the two pupil feature points can be considered to be a set of corresponding points in the two iris images.
[0170] (2) Normalized Cross Correlation (NCC) algorithm.
[0171] Among them, NCC is another similarity measurement method used to calculate the correlation between two image regions. A larger NCC value indicates that the two regions are more similar.
[0172] In this embodiment of the present application, the NCC values of pupil feature points extracted from the two iris images can be compared using an NCC algorithm, and corresponding points can be identified based on these values. For example, if the NCC value between two pupil feature points is greater than a preset NCC threshold, the two pupil feature points can be considered to be a set of corresponding points in the two iris images.
[0173] It should be noted that the above-mentioned methods for stereo matching of two iris images are only simple examples. In addition, other stereo matching methods are also applicable to the embodiments of the present application and will not be described in detail here.
[0174] S324: Obtain a disparity map corresponding to the two iris images based on the determined positions of the corresponding points in the corresponding iris images.
[0175] When the human eye (or camera) observes the same object from two slightly different viewpoints, it sees two slightly different images. This difference between the images is referred to in this article as parallax. For example, when we focus our gaze on a distant object, the position of nearby objects in the images seen by the two eyes differs significantly, resulting in a larger parallax. Conversely, the position difference between the images of distant objects is smaller, resulting in a smaller parallax. Based on this principle, our brain is able to interpret these differences (parallax) to understand the three-dimensional structure of the world we see.
[0176] In this context, disparity refers to this spatial difference between images, i.e. the relative position of points in one image in the other. This can be described as a numerical value (e.g., a pixel difference in position) or a brightness level (in a disparity map). This difference, or "disparity," can be used to calculate the depth or distance of an object.
[0177] In an embodiment of the present application, during the process of stereo matching of two iris images, a disparity map is generated, wherein the value of each pixel in the disparity map can represent the horizontal displacement of the corresponding point in the left view and the right view, and a larger value indicates that the object is closer to the observer (such as a binocular camera).
[0178] Assume there is a simplified disparity map, represented as the following two-dimensional matrix:
[0179] [
[0180] [1, 1, 1, 1, 1],
[0181] [1, 3, 3, 3, 1],
[0182] [1, 3, 5, 3, 1],
[0183] [1, 3, 3, 3, 1],
[0184] [1, 1, 1, 1, 1]
[0185] ]
[0186] In the disparity map, larger values indicate that the object is closer to the observer.
[0187] This simplified disparity map shows a pupil-like structure. In this simplified example, you can see that the value in the middle is 5, the values around it gradually decrease, and the value in the center of the matrix changes the most, indicating that the edge of the pupil may be located in this area.
[0188] In the embodiments of the present application, stereo matching technology is used to more accurately locate the pupil edge under complex lighting and pupil size variations. Accurately finding the pupil edge allows for a more accurate determination of the iris range, improving iris recognition accuracy. This maintains good recognition performance even in complex situations such as pupil size variations, lighting changes, and blurred pupil edges.
[0189] In each embodiment, after the disparity map is obtained using a stereo matching algorithm, the position of the pupil can be determined by calculating its depth information to accurately locate the pupil edge, for example, as described below.
[0190] S33: In one of the at least two iris images, determine a pupil edge based on the displacement in the disparity map.
[0191] That is, in S33 , based on the obtained disparity maps, the pupil edge is located from any one of the iris images included in the iris image group.
[0192] As described in the above embodiments, the iris image group in the embodiments of the present application may include two iris images or three or more iris images. When the iris image group includes two iris images, one disparity map may be obtained, and when the iris image group includes three or more iris images, at least two disparity maps may be obtained.
[0193] Therefore, when performing step S33 , different positioning methods may be set according to the number of disparity maps.
[0194] For example, if a disparity map is obtained, the pupil edge can be located from any iris image included in the iris image group based on the disparity map.
[0195] For another example, if at least two disparity maps are obtained, one of the following two positioning methods may be adopted.
[0196] Positioning method 1: Disparity map fusion positioning.
[0197] This method involves fusing at least two disparity maps. Then, based on the fused disparity map, the pupil edge is located in any iris image included in the iris image set. For example, within an iris image, the location where the change in displacement in the fused disparity map meets a preset condition is determined as the pupil edge.
[0198] In some embodiments, when performing image fusion on at least two disparity maps, one implementation method may be:
[0199] The operation is performed at the pixel level, and the pixel values of corresponding points on different disparity maps (ie, disparity element values) are weighted averaged or combined in other forms to obtain the final disparity map.
[0200] As shown in FIG9 , it is a schematic diagram of a disparity map fusion in an embodiment of the present application. Assuming there are three simplified disparity maps, each of which is represented by a two-dimensional matrix, the three disparity maps shown in FIG9 can be represented as follows:
[0201] [
[0202] [1, 1, 1, 1, 1],
[0203] [1, 3, 3, 3, 1],
[0204] [1, 3, 5, 3, 1],
[0205] [1, 3, 3, 3, 1],
[0206] [1, 1, 1, 1, 1]
[0207] ];
[0208] [
[0209] [2, 2, 2, 2, 2],
[0210] [2, 4, 4, 4, 2],
[0211] [2, 4, 6, 4, 2],
[0212] [2, 4, 4, 4, 2],
[0213] [2, 2, 2, 2, 2]
[0214] ];
[0215] [
[0216] [0, 0, 0, 0, 0],
[0217] [0, 2, 2, 2, 0],
[0218] [0, 2, 4, 2, 0],
[0219] [0, 2, 2, 2, 0],
[0220] [0, 0, 0, 0, 0]
[0221] ]
[0222] In each disparity map, larger values indicate that the object is closer to the observer.
[0223] When performing disparity map fusion, the values of corresponding points in the three disparity maps can be averaged. The final fused disparity map can be expressed as the following two-dimensional matrix:
[0224] [
[0225] [1, 1, 1, 1, 1],
[0226] [1, 3, 3, 3, 1],
[0227] [1, 3, 5, 3, 1],
[0228] [1, 3, 3, 3, 1],
[0229] [1, 1, 1, 1, 1]
[0230] ].
[0231] It should be noted that the above-mentioned disparity map fusion methods are just simple examples. In addition, other image fusion methods are also applicable to the embodiments of the present application and will not be described in detail here.
[0232] Positioning method 2: pupil edge fusion positioning.
[0233] This method is as follows: based on each disparity map, a pupil edge is located from an iris image corresponding to the disparity map; then, at least two pupil edges determined based on at least two disparity maps are fused to obtain a fused pupil edge.
[0234] In some embodiments, when performing pupil edge fusion, at least two pupil edges can be aligned in space first, for example, by finding the correspondence between them through feature point matching techniques such as corner detection and descriptor matching. Then, an image fusion algorithm can be applied to merge these edges. Optional image fusion methods include, but are not limited to, some or all of the following: Alpha fusion, pyramid fusion, and Poisson fusion. Among them, Alpha fusion is a process of superimposing the foreground to the background through transparency, while pyramid fusion and Poisson fusion provide different image fusion technologies that can fuse images while maintaining image details.
[0235] In some embodiments, the fused pupil edge may be post-processed, such as morphological operations, to remove possible gaps and discontinuous parts to ensure the continuity and integrity of the edge.
[0236] In the above embodiment, whether fusing at least two disparity maps or fusing at least two pupil positioning results to comprehensively determine a pupil edge, the accuracy of pupil positioning can be improved to a certain extent.
[0237] In summary, the above-mentioned methods of locating the pupil edge in multiple views are just simple examples. Other methods are also applicable to the embodiments of the present application and will not be described in detail here.
[0238] In the embodiments of the present application, regardless of which of the above methods is used, the pupil edge can be determined based on a disparity map. In each embodiment, when locating the pupil edge based on the disparity map, in order to find the position of the pupil edge, the gradient information in the disparity map can be calculated. Among them, the gradient represents the rate of change of the element value in the image, which can be used to detect the edge. Generally, the element value at the edge position changes more. On this basis, after subsequent threshold processing, the position of the pupil edge can be obtained. The embodiments of the present application are:
[0239] As shown in FIG10 , it is a flowchart of a pupil edge positioning method in an embodiment of the present application. The pupil edge is positioned from the iris image in the manner shown in FIG10 , including blocks S101 to S103 as shown in FIG10 .
[0240] S101: extracting gradient information from the disparity map through an edge detection operator to obtain a gradient map corresponding to the disparity map.
[0241] The gradient element at a certain position in the gradient map represents the rate of change of the grayscale value of the pixel corresponding to the position in the disparity map.
[0242] S102: Determine pupil edge points from the disparity map based on the gradient map and a preset gradient threshold.
[0243] S103: Locate the pupil edge from an iris image according to the determined pupil edge point.
[0244] In an embodiment of the present application, in the disparity map matrix, a slightly larger value (such as the number 5 mentioned above) indicates that the pupil is closer. Because the pupil is sunken in the eyeball, in a relatively stereoscopic image, the pupil area will be farther from the actual camera position in depth of field than the iris (having smaller parallax).
[0245] Next, we need to locate the pupil edge based on the disparity map. To find the edge, this paper uses the method of calculating the gradient of the disparity element values of the disparity map. The gradient is a vector that represents the direction and maximum value of the directional derivative of a function (in this case, the grayscale value of the image) at a specific point. In images, the magnitude of the gradient is often used to represent the strength of the edge.
[0246] Taking the disparity map matrix listed above as an example, the values at the center of the matrix change the most, meaning a significant change from 5 to 3 to 1. The values around it remain relatively stable (all 1). Therefore, the gradient has a larger value in this area. Therefore, the gradient map can be obtained by calculating the difference (i.e., the gradient) between each pixel and its neighbors.
[0247] In the embodiments of the present application, the process of calculating the gradient map is implemented using an edge detection operator. The principle of edge detection operators in extracting gradient information is primarily based on the discontinuity of local image characteristics. In an image, edges typically appear as sudden changes in grayscale, color, or texture structure, such as sudden changes in grayscale in an iris image. Each embodiment may use any one or more of the following edge detection operators to detect these edges.
[0248] In various embodiments, edge detection operators include but are not limited to some or all of the following:
[0249] Canny operator, Sobel operator, Roberts operator, Prewitt operator, Laplacian operator, LoG operator.
[0250] In general, these operators each have their own advantages and disadvantages, and are suitable for different conditions. For example, the Roberts operator is simple and fast, but sensitive to noise; the Sobel and Prewitt operators are somewhat resistant to noise, but may lose some edge information; the Laplacian operator accurately locates edges, but is very sensitive to noise; and the Canny operator provides a more comprehensive edge detection method, but is computationally more complex. In practical applications, the selection of an appropriate edge detection operator depends on the specific image content and processing requirements, and this article does not provide specific restrictions.
[0251] For example, by extracting the gradient information in the disparity map using the Canny operator, a gradient map corresponding to the disparity map can be obtained.
[0252] Like the disparity map listed above, the gradient map can also be represented as a two-dimensional matrix. The size of this two-dimensional matrix is the same as that of the original image, that is, the gradient map can also be represented as a 5*5 two-dimensional matrix.
[0253] In the embodiment of the present application, after obtaining the gradient map, a threshold is applied to determine which gradient values can be considered edges. This threshold can be fixed or dynamically calculated. By setting the threshold, it is possible to determine which edges are significant and which are likely caused by noise, thereby obtaining the final edge detection result.
[0254] Because a lower threshold value allows more edges to be detected, the result is more susceptible to noise in the image and more likely to pick out irrelevant features from the image. Conversely, a higher threshold value will miss thin or short line segments. Therefore, choosing an appropriate threshold value is important.
[0255] The dynamic determination method of some embodiments is as follows:
[0256] In the embodiment of the present application, a threshold selection with hysteresis can be used.
[0257] This method uses different thresholds to find the pupil edge. First, an upper threshold is used to find the beginning of the edge. Once a starting point is found, the pupil edge path is followed point by point across the image. The pupil edge position is recorded until the value exceeds the lower threshold.
[0258] This method assumes that the pupil edge point is a continuous boundary and is able to follow the blurred part of the pupil edge point seen before detection without marking the noise points in the image as pupil edge points.
[0259] In other embodiments, considering that a single global threshold may not be sufficient to process the entire image, an adaptive threshold method may be used to adjust the threshold according to the local characteristics of the image.
[0260] In some other embodiments, a fixed threshold can be set based on experience or experimentation, and then the gradient array is filtered based on the threshold, with points whose gradient values are greater than the threshold selected as pupil edge points. For example, the optimal threshold can be determined through experimentation. A lower threshold can be applied initially, then gradually increased to observe the effect of edge detection. The ideal threshold should be able to maximize the extraction of true edges while suppressing noise.
[0261] It should be noted that the two methods of selecting thresholds to find pupil edge points listed above are just simple examples. In addition, other methods are also applicable to the embodiments of the present application and will not be described in detail here.
[0262] In step S103, after determining the pupil edge point, the least squares parabola fitting method (or other fitting methods) can be used to calculate the extreme point coordinates of the edge points in the left and right fixed areas, thereby obtaining the initial center coordinates and radius of the pupil, and then determining the pupil edge.
[0263] In the above embodiment, the present application takes into account that the texture and structural characteristics of the pupil area are different from those of the iris area. If the pupil area is not excluded, it may interfere with the feature extraction. The present application can remove the pupil area from the iris image by locating the pupil edge, thereby reducing interference in the feature extraction process.
[0264] S34: Determine the iris region in the iris image according to the pupil edge, and perform feature extraction on the iris region to obtain iris features.
[0265] 2 , the iris is an annular area outside the pupil. Therefore, after the pupil edge is determined, the annular area within a certain range of the pupil edge can be used as the iris area.
[0266] An annular region with a preset width outside the pupil edge in the iris image is determined as the iris region. Specifically, a preset margin is set around the pupil edge in any iris image; the annular region determined based on the pupil edge and the preset margin is used as the iris region in any iris image.
[0267] In some embodiments, the preset margin represents the difference between the outer and inner diameters of the iris region, i.e., the width of the region. This can generally be determined based on the type of object to be identified, with different preset margins corresponding to different types of objects. For example, the iris region of an adult is approximately 2-4 mm, but this range may vary from person to person; for example, the preset margin can be set to 3 mm. The iris region of an infant is generally narrower, approximately 1-2 mm; for example, the preset margin can be set to 1.5 mm.
[0268] In some embodiments, the width of the iris region of cats and dogs varies depending on breed, age, and individual differences. Generally speaking, the width of the iris region of a cat is approximately 1-2 mm, and the preset margin can be set to 1.5 mm, for example; while the width of the iris region of a dog is approximately 2-4 mm, and the preset margin can be set to 3 mm, for example.
[0269] It should be noted that the preset margin values listed above are just simple examples. They can be flexibly set due to individual differences, etc., and this article does not make specific restrictions.
[0270] As shown in Figure 11, it is a schematic diagram of a method for determining the iris area in an embodiment of the present application. The black circular area is the pupil, and the white circle within the black circular area represents the pupil edge. Once the pupil edge and the preset margin r are determined, the annular area outside the pupil edge with a width of the preset margin r can be determined as the iris area, such as the gray area in Figure 11.
[0271] In the above-described embodiments, the position and size of the pupil edge can help determine the extent of the iris. In some embodiments, by setting a certain margin around the pupil edge, an iris region unrelated to the pupil can be obtained. Because this region contains the main texture information of the iris, it is helpful to improve the accuracy of feature extraction.
[0272] After determining the iris area based on the above method, it is necessary to extract the texture features of the iris. The main purpose is to extract discriminative features from the iris image that can reflect its texture and structural information. These features should have high discrimination and stability so as to be used in the subsequent recognition and matching process.
[0273] In the embodiment of the present application, feature extraction is performed on the iris area to obtain corresponding iris features, including at least one of the following methods.
[0274] Feature extraction method 1: Extract features of the iris area through filters of different scales and directions to obtain corresponding response values; combine the response values extracted by each filter to form the iris features corresponding to the iris area.
[0275] For example, a Gabor filter is used to extract texture features of the iris region. The Gabor filter is a method commonly used in texture analysis and feature extraction. It can capture local texture information of an image at different scales and directions.
[0276] The direction of the Gabor filter is determined by an angle parameter θ defined by the filter kernel. This angle parameter describes the direction of the parallel stripes in the kernel. In practical applications, the direction parameter can take any real value between 0° and 360°, which allows the Gabor filter to respond to features in different directions in the image. This directional selectivity makes the Gabor filter particularly suitable for processing texture information and has been widely used in vision science because it can simulate the sensitivity of the human visual system to directional features.
[0277] The scale of the Gabor filter is a parameter related to the frequency bandwidth and directional selectivity of the Gabor filter. The scale parameter is usually related to the standard deviation σ of the Gaussian envelope function, which determines the width of the filter in the frequency domain. A larger σ value means that the filter has a wider response range in the frequency domain, thereby capturing more frequency components; while a smaller σ value corresponds to a narrower frequency domain response, only capturing frequency components within a specific range. By adjusting these parameters, the Gabor filter can be designed to respond only to image features of a specific scale, making it very useful in multi-scale analysis.
[0278] In iris recognition in this application, Gabor filters can effectively extract iris texture features. Specifically, a series of Gabor filters of different scales and orientations are applied to the iris image. The Gabor filter responses capture the rich details of the iris texture based on spectral and spatial local characteristics. The extracted response values can be used to represent the texture information in the iris image, and these response values are combined to form the feature vector of the iris.
[0279] Among them, the selection of parameters such as Gabor filter scale and direction needs to adapt to the characteristics of iris texture, and an adaptive method can be used to select appropriate filter parameters.
[0280] In the above embodiment, the Gabor filter can simulate the response of the human visual system and effectively extract iris features. Moreover, by adjusting the filter parameters, it can be better adapted to the texture characteristics of the iris, thereby improving the accuracy and robustness of recognition.
[0281] It should be noted that, in addition to the above-mentioned method of using Gabor filter to extract iris features, other filters may also be used to extract iris features, such as Gaussian filter, Butterworth filter, Laplace filter, etc., which will not be detailed here.
[0282] In addition, when selecting filters, it is necessary to consider the characteristics of iris texture and the needs of subsequent feature matching and classification. It is also possible to combine multiple filters and analysis methods to extract more discriminative iris texture features, such as combining Gabor filters and Gaussian filters.
[0283] Feature extraction method 2: By comparing the grayscale value of each pixel in the iris area with the corresponding neighboring pixel points, the iris features corresponding to the iris area are extracted.
[0284] This method is called Local Binary Pattern (LBP), a texture description method that can describe local texture features in an image. Specifically, the LBP algorithm compares the grayscale values of a pixel with its neighboring pixels to generate a binary sequence as the LBP value of the pixel. The neighboring pixels can be multiple adjacent pixels adjacent to the pixel.
[0285] In iris recognition in this application, LBP can be used to extract local texture features of the iris. Applying LBP to the entire iris image can obtain a feature vector describing the iris texture.
[0286] In the above implementation, both the Gabor filter and the LBP algorithm can effectively capture iris texture features, thereby providing strong support for subsequent recognition and matching processes.
[0287] It should be noted that the feature extraction methods listed above are just simple examples. In actual applications, other methods can also be used to extract iris features, such as those based on the LoG operator, scale-invariant feature transform (SIFT), accelerated robust feature extraction (SURF), Fourier transform, multi-scale analysis methods, etc., which can effectively extract the feature information of iris texture to improve the accuracy and robustness of iris recognition. They will not be listed here one by one.
[0288] The Fourier transform converts an image from the spatial domain to the frequency domain, enabling processing with frequency-domain filters. By analyzing the spectral characteristics of iris texture, corresponding frequency-domain filters can be designed to extract specific texture features. Multiscale analysis methods, such as wavelet transform and multiresolution analysis, can also be used to extract iris texture features. These methods analyze images at different scales, thereby capturing the multiscale characteristics of iris texture.
[0289] Any of the feature extraction methods listed above can be used alone or in combination with other feature extraction methods, which is not specifically limited in this article.
[0290] It should be noted that the texture and structural features of the pupil area are different from those of the iris area. In the embodiment of the present application, by locating the pupil edge, the pupil area can be removed from the iris image, eliminating the interference of the pupil area in feature extraction, thereby reducing interference in the iris feature extraction process.
[0291] In an embodiment of the present application, considering that the texture information of the iris area near the edge of the pupil may be affected by lighting, occlusion, etc., by locating the edge of the pupil, corresponding processing strategies can be adopted for these affected areas, such as adjusting filter parameters, enhancing contrast, etc., to optimize the feature extraction effect.
[0292] In some embodiments, before extracting features from the iris region and obtaining corresponding iris features, the contrast of the iris region is enhanced.
[0293] For example, the iris region may be subjected to histogram equalization processing again, or local contrast enhancement, adaptive contrast enhancement, gamma correction, or filtering may be performed to enhance the contrast of the iris region.
[0294] It should be noted that any method of enhancing image contrast is applicable to the embodiments of the present application and will not be described in detail here.
[0295] In other embodiments, before extracting features from the iris area and obtaining corresponding iris features, at least one disparity map may be processed in the following manner to update the iris area. For the specific process, please refer to Figure 12. As shown in Figure 12, it is a flowchart of an iris area updating method in an embodiment of the present application, including boxes S121 to S124.
[0296] S121: Extracting gradient information in the disparity map using different edge detection operators (eg, at least two edge detection operators) to obtain at least two gradient maps corresponding to the disparity map.
[0297] Among them, each edge detection operator corresponds to a gradient map; the gradient elements in the gradient map represent: the rate of change of the grayscale value of each pixel in the disparity map.
[0298] S122: Determine a new pupil edge point from the disparity map based on at least two gradient maps.
[0299] In step S121, for a disparity map, at least two different edge detection operators may be used to perform gradient calculation, for example, using a Sobel operator, a Roberts operator, a Prewitt operator, a LoG operator, and a Canny operator to process the disparity map. Thereafter, step S122 may be performed.
[0300] In some embodiments, when multiple edge detection operators are used simultaneously, the gradient maps extracted by each edge detection operator can be fused. For example, the gradient amplitudes obtained by different operators can be weighted averaged. On this basis, a threshold is applied to the fused gradient map to find new pupil edge points. In some embodiments, the threshold can be a fixed threshold previously set based on experience or through experiments. In other embodiments, the threshold can be a new threshold obtained by adjusting the fixed threshold based on the fused gradient map and the characteristics of different edge detection operators. In yet other embodiments, the threshold can be a threshold selected by using the above-mentioned threshold selection method with hysteresis or adaptive threshold method. Please refer to the above embodiments for details, which will not be repeated here.
[0301] The method of fusing the gradient map is the same as the method of fusing the disparity map, and will not be described in detail here.
[0302] S123: Update the iris region in any iris image according to the new pupil edge point.
[0303] Similar to S103 above, in step S123, after determining the new pupil edge point, the least squares parabola fitting method (or other fitting methods) can be used to calculate the extreme point coordinates of the edge points in the left and right fixed areas, thereby obtaining the initial center coordinates and radius of the pupil, and then determining the new pupil edge.
[0304] On this basis, a preset margin can be set around the new pupil edge in any iris image, and the annular area determined based on the new pupil edge and the preset margin can be used as the new iris area. After extracting the new iris area, the iris features of the area can be re-extracted. The specific implementation method can be found in the above embodiment, and the repeated parts will not be repeated.
[0305] Through the above implementation, the extraction of iris features can be optimized. Even when texture information may be affected by illumination, occlusion, etc., more accurate iris features can be effectively extracted to improve the accuracy of subsequent recognition.
[0306] In some embodiments, after the iris features are extracted, they need to be compared with iris features stored in a pre-built database to identify the individual, for example, as described below.
[0307] S35: Based on the iris features, the identity of the object to be identified is identified.
[0308] In the embodiment of the present application, the recognition process generally adopts a feature matching algorithm, such as calculating the cosine distance, Hamming distance, Minkowski distance, etc. between two iris features to measure the similarity between the two iris features, thereby determining whether they belong to the same individual.
[0309] Taking the calculation of the cosine distance between two iris features as an example, the iris features in the embodiments of the present application can be represented as feature vectors. The cosine similarity between the two feature vectors can be determined by calculating the dot product of the two vectors and then dividing by the product of their respective moduli. The resulting cosine similarity can then be converted into a cosine distance. Assume that the resulting cosine distance is a decimal between 0 and 1, where 0 represents the exact same direction and 1 represents the exact opposite direction.
[0310] If the cosine distance between two iris features is less than a certain threshold, the two iris features can be considered to match. Then, the identity information of the object to be identified can be determined based on the identity information corresponding to the matched iris features.
[0311] Figure 13 is a schematic diagram of the process of identifying an object through feature matching in an embodiment of the present application. Assuming that four iris features are stored in a database, as shown in Figure 13, the iris features of the object to be identified are matched against the iris features in the database. If a successful match is determined with the second of the features, the identity information of the object to be identified is determined based on the identity information associated with each iris feature in the database, thereby identifying the object. As shown in Figure 13, the identification results of the object to be identified include name, gender, age, etc.
[0312] It should be noted that the databases and identity information listed above are just simple examples. In actual applications, the number of iris features stored in the database can be more or less, and accordingly, the stored identity information can also be simpler or more complex. The above are just simple examples and this article does not make specific limitations.
[0313] Based on the above, this application takes into account that over-reliance on a certain type of image may ignore useful information contained in other types of images. In order to further improve the accuracy of iris recognition, multi-source image information, such as infrared images, visible light images, etc., can be combined to improve the accuracy of pupil edge positioning, thereby improving the accuracy of iris recognition.
[0314] In step S31, iris images can be captured in multiple image modes. Iris images from at least two capture perspectives are captured in each image mode, resulting in at least two iris image groups, each corresponding to one image mode. Specifically, the at least two iris image groups are divided into at least two candidate iris image sets, each of the at least two iris image groups including at least two iris images captured in one of the at least two image modes, and each of the at least two candidate iris image sets including candidate iris images captured from the same capture perspective in the at least two image modes.
[0315] In the embodiments of this application, different image modes refer to different ways of capturing and representing image data. For example, in this application, they include but are not limited to the following image modes:
[0316] RGB image mode, infrared image mode, visible light image mode.
[0317] Among them, the iris image collected in the RGB image mode is an RGB image. This type of image is relatively common and will not be described in detail here.
[0318] The iris image collected in the infrared image mode is an infrared image. Since the pupil has a high transmittance to infrared light, the infrared image can highlight the pupil area.
[0319] The iris image collected in the visible light image mode is a visible light image, and the visible light image can clearly show the structure of the entire eye.
[0320] It is necessary to collect both infrared and visible light images of the pupil at the same time. This can be done with specialized equipment, such as a camera with both infrared and visible light modes.
[0321] Before step S32, fusion processing may be performed on the iris images in at least two image modes, for example, as described below.
[0322] At least two iris image groups are divided into candidate iris image sets corresponding to different acquisition perspectives.
[0323] The candidate iris images in each candidate iris image set are iris images collected in different image modes and at the same collection viewing angle.
[0324] Figure 14 shows a schematic diagram of the logic for partitioning a candidate iris image set in an embodiment of the present application. Figure 14 illustrates iris images captured using a binocular camera in three image modes. The images captured by the two cameras of the binocular camera can be referred to as the left and right views. Three iris image groups are captured in the RGB, infrared, and visible light image modes. As shown in Figure 14, iris image group 1 includes a left RGB image and a right RGB image, iris image group 2 includes a left infrared image and a right infrared image, and iris image group 3 includes a left visible light image and a right visible light image.
[0325] In this embodiment of the present application, the number of candidate iris image sets is consistent with the number of acquisition perspectives, and the number of candidate iris images in a candidate iris image set is consistent with the number of image modes. That is, iris images in the same candidate iris image set are iris images acquired in different image modes and at the same acquisition perspective.
[0326] As shown in Figure 14, the binocular camera corresponds to two acquisition perspectives, and two candidate iris image sets can be obtained. For example, candidate iris image set 1 includes: left RGB image, left infrared image and left visible light image; candidate iris image set 2 includes: right RGB image, right infrared image and right visible light image.
[0327] Then, for each pixel point, the corresponding pixel points on each candidate iris image in the same candidate iris image set are subjected to feature fusion to obtain a fused iris image.
[0328] In this process, the features between images are fused. In the embodiment of the present application, the grayscale values of the corresponding pixels on each candidate iris image in the same candidate iris image set are weighted averaged.
[0329] Specifically, the grayscale values of pixels at the same location in at least two candidate iris images are weighted averaged to obtain the grayscale value of the pixel at that location in the corresponding fused iris image. The weights used in this weighted averaging can be flexibly set based on actual needs or determined through experimentation. For example, when fusing RGB, infrared, and visible light images, the weights for each can be set to 1 / 3. This is not a specific limitation in this document.
[0330] In some embodiments, for subsequent pupil edge location, it may be necessary to prioritize information in the infrared image because the infrared image can better highlight the pupil. Therefore, when fusing the RGB, infrared, and visible light images, instead of using a 1 / 3 weighting for each, the infrared image can be weighted more highly than the other two. For example, the weights of the RGB, infrared, and visible light images can be set to 1 / 4, 1 / 2, and 1 / 4, respectively. Another example is setting the weights of the RGB, infrared, and visible light images to 1 / 6, 1 / 2, and 1 / 3, respectively.
[0331] In addition to the grayscale value, other pixel features can also be fused, such as color, transparency, brightness, saturation, etc., which will not be repeated here.
[0332] It should also be noted that in order to further improve the accuracy of iris recognition, in addition to fusing multi-source images, the above-listed methods can also be used to pre-process each iris image in each iris image group, such as performing denoising, histogram equalization and other pre-processing on the collected images to improve image quality. The specific implementation methods can be found in the above embodiments and will not be repeated here.
[0333] Based on the fused iris images, step S32 is executed, where stereo matching is performed between each pair of fused iris images to obtain a corresponding disparity map. Subsequent processes such as pupil edge location, iris region determination, and iris feature extraction can then be performed. For detailed implementations, please refer to the above embodiments, and any repetitions will be omitted.
[0334] In the embodiment of the present application, richer and more accurate information can be obtained by fusing multiple source images. On this basis, when the subsequent recognition process is performed through the fused image, recognition can be performed based on richer and more accurate information, further improving the accuracy of iris recognition.
[0335] The following modularized description of the specific process of iris recognition is given by taking the use of a binocular camera to collect an iris image group containing two iris images (also called an iris image pair) as an example:
[0336] Refer to Figure 15, which is a modular block diagram of an iris recognition process in an embodiment of the present application. Specifically, the above process can be simply divided into the following modules: image acquisition module, preprocessing module, stereo matching module, feature extraction module, recognition and matching module.
[0337] The image acquisition module may acquire iris images of the same eye region of the object to be identified based on the binocular camera to obtain an iris image pair as shown in FIG15 .
[0338] Each iris image in the iris image pair can then be preprocessed using a preprocessing module to improve image quality. Specifically, iris images can be subjected to operations such as denoising and histogram equalization to improve image quality. Figure 15 illustrates histogram equalization as an example. First, the image's grayscale histogram is calculated. Based on this, the cumulative distribution function (CDF) of each grayscale level is calculated. Finally, the CDF is used to map the grayscale values of the original image to new grayscale values, making the grayscale distribution of the new image more uniform, thus completing the histogram equalization process.
[0339] After histogram equalization processing, the contrast of the image is improved and the iris texture is clearer, which is beneficial to the subsequent pupil edge positioning and feature extraction operations.
[0340] In the stereo matching module, a stereo matching algorithm can be used to accurately locate the pupil edge. The process can be summarized as follows: obtaining an iris image pair; correcting the images: Before stereo matching, the images need to be corrected to eliminate the parallax between the left and right eye images; then performing feature extraction. In the corrected images, pupil feature points are extracted for matching. After extracting the feature points, a stereo matching algorithm can be used to find corresponding points in the left and right eye images and obtain a disparity map. After obtaining the disparity map, the pupil edge can be located by calculating its depth information. For detailed implementation, please refer to the above embodiment, and any repetitions will not be repeated here.
[0341] In the feature extraction module, iris features can be extracted based on one or more of the methods listed in Figure 15 for subsequent recognition and matching processes. The specific implementation methods can be found in the above embodiments, and the repeated parts will not be repeated.
[0342] In the recognition and matching module, the extracted iris features can be matched with the iris features in the database to obtain identity recognition results. The specific implementation method can be found in the above embodiment, and the repeated parts will not be repeated.
[0343] In summary, the iris recognition method of the embodiment of the present application can effectively reduce pupil edge positioning errors and improve iris recognition accuracy. Even in complex situations such as pupil size changes, light changes, and blurred pupil edges, it still has good recognition results.
[0344] Based on the same inventive concept, the present invention also provides an iris recognition device. As shown in FIG16 , it is a schematic diagram of the structure of an iris recognition device 1600, which may include:
[0345] The image acquisition unit 1601 is configured to acquire an iris image group collected for the object to be identified; the iris image group includes at least two iris images collected from the same eye region of the object to be identified at different acquisition viewing angles;
[0346] A stereo matching unit 1602 is configured to obtain a disparity map corresponding to the at least two iris images by performing stereo matching on the at least two iris images, wherein the disparity map includes disparity elements, each of which represents a displacement in a specified direction between two pixels corresponding to the same eye region element in the iris images;
[0347] a pupil locating unit 1603, configured to determine a pupil edge in one of the at least two iris images based on the displacement;
[0348] An iris feature extraction unit 1604 is configured to determine an iris region in the iris image based on the pupil edge, and obtain corresponding iris features by performing feature extraction on the iris region;
[0349] The identification unit 1605 is configured to perform identity recognition on the subject based on iris features.
[0350] In some embodiments, the stereo matching unit 1602 is specifically configured to:
[0351] Eliminating parallax between the iris images by correcting the at least two iris images;
[0352] Extract pupil feature points from each rectified iris image respectively;
[0353] Through stereo matching, the pixels corresponding to the same eye area elements (i.e., corresponding points) are determined from the extracted pupil feature points.
[0354] A disparity map between the at least two iris images is obtained based on the determined positions of the corresponding points in the corresponding iris images.
[0355] In some embodiments, the pupil locating unit 1603 is specifically configured to:
[0356] If a disparity map is obtained, then based on the disparity map, the pupil edge is located from any one iris image included in the iris image group;
[0357] If at least two disparity maps are obtained, the at least two disparity maps are fused, and based on the fused disparity map, a pupil edge is located from one of the at least two iris images; alternatively, based on each disparity map, a pupil edge is located from an iris image corresponding to the disparity map, and the at least two determined pupil edges are fused to obtain a fused pupil edge.
[0358] In some embodiments, the pupil locating unit 1603 is specifically configured to:
[0359] Based on a disparity map, the pupil edge is located from an iris image as follows:
[0360] The gradient information in the disparity map is extracted by the edge detection operator to obtain the gradient map corresponding to the disparity map; the gradient elements in the gradient map represent: the rate of change of the value of each disparity element in the disparity map;
[0361] Based on a preset gradient threshold, the pupil edge point is determined from the disparity map;
[0362] The pupil edge is located from an iris image according to the determined pupil edge point.
[0363] In some embodiments, the iris feature extraction unit 1604 is specifically configured to:
[0364] An annular region with a preset width outside the pupil edge in the iris image is determined as the iris region. For example, a preset margin is set around the pupil edge in any iris image; and the annular region determined based on the pupil edge and the preset margin is used as the iris region in any iris image.
[0365] In some embodiments, the iris feature extraction unit 1604 is specifically configured to perform at least one of the following steps:
[0366] The iris region is subjected to feature extraction through filters of different scales and directions to obtain the response values corresponding to each filter; the response values extracted by each filter are combined to form the iris features corresponding to the iris region;
[0367] By comparing the grayscale values of each pixel in the iris area with its adjacent pixels, the iris features corresponding to the iris area are extracted.
[0368] In some embodiments, the iris feature extraction unit 1604 is further configured to enhance the contrast of the iris region before performing feature extraction on the iris region to obtain corresponding iris features.
[0369] In some embodiments, the iris feature extraction unit 1604 is further configured to process at least one disparity map in the following manner to update the iris region before extracting features from the iris region to obtain corresponding iris features:
[0370] Extracting gradient information from the disparity map using different edge detection operators to obtain at least two gradient maps corresponding to the disparity map; wherein each edge detection operator corresponds to one gradient map; and gradient elements in the gradient map represent: the rate of change of the grayscale value of each pixel in the disparity map;
[0371] Determining a new pupil edge point from the disparity map based on at least two gradient maps;
[0372] According to the new pupil edge point, the iris region in any iris image is updated.
[0373] In some embodiments, if there are at least two iris image groups, and each iris image group corresponds to an image pattern, the stereo matching unit 1602 is further configured to:
[0374] Dividing at least two iris image groups into at least two candidate iris image sets, wherein the candidate iris images in each candidate iris image set are: iris images captured in at least two image modes and at the same capture perspective;
[0375] For each pixel point, the corresponding pixel points on each candidate iris image in the same candidate iris image set are subjected to feature fusion to obtain a fused iris image;
[0376] The stereo matching unit 1602 is specifically used for:
[0377] Stereo matching is performed between each two fused iris images to obtain a disparity map corresponding to each two fused iris images.
[0378] In some embodiments, the image mode includes some or all of the following:
[0379] RGB image mode, infrared image mode, visible light image mode.
[0380] In some embodiments, the stereo matching unit 1602 is specifically configured to:
[0381] The grayscale values of the corresponding pixels on each candidate iris image in the same candidate iris image set are weighted averaged.
[0382] In some embodiments, before performing stereo matching between each two iris images to obtain corresponding disparity maps, the stereo matching unit 1602 is further configured to:
[0383] For each iris image in the iris image group, image enhancement processing is performed on the iris image in at least one manner.
[0384] In each embodiment, each of the above units can respectively execute the steps corresponding to the functions of each unit in the method of each embodiment. Therefore, the execution operation of each unit can refer to the description of each step in each embodiment, and will not be repeated here.
[0385] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or two software or hardware.
[0386] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or two processors or memories) can be used to implement one or two modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0387] After introducing the iris recognition method and apparatus according to an exemplary embodiment of the present application, an electronic device according to another exemplary embodiment of the present application will be introduced next.
[0388] Those skilled in the art will appreciate that various aspects of the present application can be implemented as systems, methods, or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation that combines hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."
[0389] Based on the same inventive concept as the above-mentioned method embodiment, an electronic device is also provided in an embodiment of the present application. In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as shown in FIG17 , including a memory 1701 , a communication module 1703 , and one or two processors 1702 .
[0390] Memory 1701 is used to store computer programs executed by processor 1702. Memory 1701 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and programs required for running instant messaging functions, while the data storage area may store various instant messaging messages and operating instruction sets.
[0391] Memory 1701 may be a volatile memory, such as random-access memory (RAM); a non-volatile memory, such as read-only memory, flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing a desired computer program in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1701 may be a combination of the aforementioned memories.
[0392] The processor 1702 may include one or two central processing units (CPUs) or a digital processing unit, etc. The processor 1702 is configured to implement the above iris recognition method when calling the computer program stored in the memory 1701 .
[0393] The communication module 1703 is used to communicate with terminal devices and other servers.
[0394] The specific connection medium between the memory 1701, communication module 1703, and processor 1702 is not limited in the embodiments of the present application. In Figure 17, the memory 1701 and processor 1702 are connected via bus 1704. Bus 1704 is depicted as a bold line in Figure 17. The connection methods between other components are merely schematic and are not intended to be limiting. Bus 1704 can be divided into an address bus, a data bus, a control bus, and the like. For ease of description, Figure 17 depicts only one bold line, but does not represent only one bus or one type of bus.
[0395] The memory 1701 stores a computer storage medium, which stores computer executable instructions for implementing the iris recognition method of the embodiment of the present application. The processor 1702 is used to execute the above iris recognition method, as shown in FIG3 .
[0396] In another embodiment, the electronic device may be another electronic device, such as a terminal device. In this embodiment, the structure of the electronic device may be as shown in FIG18 , including: a communication component 1810 , a memory 1820 , a display unit 1830 , a camera 1840 , a sensor 1850 , an audio circuit 1860 , a Bluetooth module 1870 , a processor 1880 , and other components.
[0397] Memory 1820 can be used to store software programs and data. Processor 1880 executes various functions and data processing of terminal device 110 by running the software programs or data stored in memory 1820. Memory 1820 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Memory 1820 stores an operating system that enables terminal device 110 to operate. In the present application, memory 1820 can store the operating system and various application programs, and may also store computer programs that execute the iris recognition method according to the embodiments of the present application.
[0398] The display unit 1830 can also be used to display information input by the user or information provided to the user, as well as a graphical user interface (GUI) of various menus of the terminal device 110. The display unit 1830 may include a display screen 1832 disposed on the front of the terminal device 110. The display unit 1830 can be used to display, for example, identity recognition results in the embodiments of the present application. The display unit 1830 may include a touch screen 1831 disposed on the front of the terminal device 110, which can collect user touch operations on or near the touch screen, such as clicking a button, dragging a scroll box, etc.
[0399] The terminal device may further include at least one sensor 1850 , such as an acceleration sensor 1851 , a distance sensor 1852 , a fingerprint sensor 1853 , and a temperature sensor 1854 .
[0400] Audio circuit 1860, speaker 1861, and microphone 1862 provide an audio interface between the user and terminal device 110. Processor 1880 is the control center of the terminal device, connecting various components of the terminal using various interfaces and circuits. It executes software programs stored in memory 1820 and accesses data stored in memory 1820 to perform various functions and process data. In some embodiments, processor 1880 may include one or two processing units. Processor 1880 may also integrate an application processor and a baseband processor, with the application processor primarily processing the operating system, user interface, and applications, while the baseband processor primarily handles wireless communications. It is understood that the baseband processor may not be integrated into processor 1880. In this application, processor 1880 can run the operating system, applications, user interface display and touch response, as well as the iris recognition method described in the embodiments of this application. Furthermore, processor 1880 is coupled to display unit 1830.
[0401] In some embodiments, various aspects of the iris recognition method provided in the present application can also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the iris recognition method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device can execute the steps shown in Figure 3.
[0402] The program product may employ any combination of one or two readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or two conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0403] The program product of the embodiment of the present application may be a portable compact disc read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with a command execution system, apparatus, or device.
[0404] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with a command execution system, apparatus, or device.
[0405] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0406] The computer program for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The computer program can be executed entirely on the user electronic device, partially on the user electronic device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0407] It should be noted that although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, depending on the embodiment of the application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by two units.
[0408] Furthermore, although the operations of the method of the present application are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all illustrated operations must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, two steps may be combined into one step, and / or one step may be decomposed into two steps.
[0409] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or two computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing a computer-usable computer program.
[0410] The present application is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program commands. These computer program commands can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the command executed by the processor of the computer or other programmable data processing device produces a device for realizing the function specified in one flow chart or two flows and / or one box or two boxes of the block diagram.
[0411] These computer program commands may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer-readable memory produce a manufactured product including a command device that implements the functions specified in one or both processes in the flowchart and / or one or both boxes in the block diagram.
[0412] These computer program commands can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the commands executed on the computer or other programmable device provide steps for implementing the functions specified in one or both flows of the flowchart and / or one or both blocks of the block diagram.
[0413] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction between these technical features, they can be combined in any way.
[0414] In conclusion, the scope of the claims should not be limited to the exemplary embodiments described above, but should be given the broadest interpretation of the specification as a whole.
Claims
1. An iris recognition method, performed by an electronic device, comprising: Acquire an iris image group collected for a to-be-identified object, the iris image group comprising at least two iris images collected at different acquisition viewing angles for the same eye region of the to-be-identified object; Obtaining a disparity map between the at least two iris images by performing stereo matching on the at least two iris images, wherein the disparity map includes disparity elements, each representing a displacement in a specified direction between two pixels corresponding to the same eye region element in the at least two iris images; determining a pupil edge in one of the at least two iris images based on the displacement amount; determining an iris region in the one iris image according to the pupil edge, and obtaining iris features by performing feature extraction on the iris region; Based on the iris features, the identity of the object to be identified is identified.
2. The method according to claim 1, wherein Obtaining a disparity map between the at least two iris images, comprising: Eliminating parallax between the at least two iris images by correcting the at least two iris images; extracting pupil feature points in each of the at least two corrected iris images; Through stereo matching, the pixels corresponding to the same eye area elements are determined from the extracted pupil feature points; A disparity map between the at least two iris images is obtained based on the determined position of the pixel point in the iris image where the pixel point is located.
3. The method of claim 1, further comprising: When at least two disparity maps are obtained, performing image fusion on the at least two disparity maps, wherein each of the at least two disparity maps is derived from two iris images in the iris image group; Wherein, in one of the at least two iris images, determining the pupil edge based on the displacement comprises: In the iris image, a position where a change in displacement in the fused disparity map meets a preset condition is determined as the pupil edge.
4. The method according to claim 1, wherein In one of the at least two iris images, determining a pupil edge based on the displacement comprises: When at least two disparity maps are obtained, determining, based on each of the at least two disparity maps, in an iris image corresponding to the disparity map, a position where a change in displacement in the disparity map meets a preset condition as the pupil edge, wherein each of the at least two disparity maps is derived from two iris images in the iris image group; and The at least two determined pupil edges are fused to obtain a fused pupil edge.
5. The method according to any one of claims 1 to 4, wherein: Determining a pupil edge based on the displacement includes: Extracting gradient information from the disparity map using an edge detection operator to obtain a gradient map corresponding to the disparity map; wherein the gradient elements in the gradient map represent: a rate of change of the value of each disparity element in the disparity map; Determining pupil edge points in the disparity map based on the gradient map and a preset gradient threshold; The pupil edge is located from the iris image according to the pupil edge point.
6. The method according to any one of claims 1 to 4, wherein: Determining a pupil edge based on the displacement includes: Extracting gradient information from the disparity map using at least two edge detection operators to obtain at least two gradient maps of the disparity map; wherein the at least two gradient maps correspond one-to-one to the at least two edge detection operators; and gradient elements in the gradient maps represent: a rate of change of a value of each disparity element in the disparity map; The at least two gradient maps are fused, and based on the fused gradient map, a pupil edge point is determined from the disparity map.
7. The method according to any one of claims 1 to 4, wherein: Determining an iris region in the one iris image according to the pupil edge includes: An annular area with a preset width outside the pupil edge in the iris image is determined as the iris area.
8. The method according to any one of claims 1 to 4, wherein: The iris features are obtained by extracting features from the iris area, including at least one of the following methods: Extracting features of the iris region using filters of different scales and directions to obtain response values corresponding to each filter; combining the response values of each filter to form iris features corresponding to the iris region; By comparing the grayscale values of each pixel point in the iris area with its adjacent pixel points, the comparison result is used as the iris feature corresponding to the iris area.
9. The method according to claim 6 or 7, wherein: Further including: Before extracting features from the iris region to obtain iris features, the contrast of the iris region is enhanced.
10. The method according to any one of claims 1 to 4, wherein: Further including: Dividing at least two iris image groups into at least two candidate iris image sets, wherein each iris image group in the at least two iris image groups includes at least two iris images acquired in one of at least two image modes, and each candidate iris image set in the at least two candidate iris image sets includes: iris images acquired in the at least two image modes at the same acquisition perspective; For each pixel point, the corresponding pixel points on each candidate iris image in the same candidate iris image set are subjected to feature fusion to obtain a fused iris image; Obtaining disparity maps corresponding to the two iris images by performing stereo matching on the two iris images in the iris image group, including: Stereo matching is performed on the two fused iris images to obtain a disparity map corresponding to the two fused iris images.
11. The method according to claim 10, wherein: The image mode includes some or all of the following: RGB image mode, infrared image mode, visible light image mode.
12. The method of claim 10, wherein: The step of fusing features of corresponding pixels on each candidate iris image in the same candidate iris image set includes: The grayscale values of the corresponding pixels on each candidate iris image in the same candidate iris image set are weighted averaged.
13. The method according to any one of claims 1 to 4, further comprising: Before obtaining a disparity map between the at least two iris images by performing stereo matching on the at least two iris images, image enhancement processing is performed on each iris image in the iris image group in at least one manner.
14. An iris recognition device, comprising: An image acquisition unit, configured to acquire an iris image group collected for an object to be identified; The iris image group includes at least two iris images captured at different capture angles for the same eye region of the object to be identified; a stereo matching unit configured to obtain a disparity map corresponding to the at least two iris images by performing stereo matching on the at least two iris images, wherein the disparity map includes disparity elements, each representing a displacement in a specified direction between two pixel points corresponding to the same eye region element in the at least two iris images; a pupil locating unit, configured to determine a pupil edge in one of the at least two iris images based on the displacement; an iris feature extraction unit, configured to determine an iris region in the one iris image according to the pupil edge, and obtain iris features by performing feature extraction on the iris region; The identification unit is used to identify the object to be identified based on the iris feature.
15. An electronic device comprising a processor and a memory, wherein: The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 13.
16. A computer-readable storage medium comprising a computer program, wherein when the computer program is run on an electronic device, the computer program is configured to cause the electronic device to execute the steps of the method according to any one of claims 1 to 13.
17. A computer program product, comprising a computer program, wherein the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any one of the methods described in claims 1 to 13.
Citation Information
Patent Citations
Multiple iris collecting device using active vision feedback
CN101051349A
Unlocking method and device based on iris, and mobile terminal
CN107194231A
Depth-detecting device and image pickup device
JP2001012919A
Apparatus and method for extracting the pupil using streo camera
KR1020130063606A
Cited By
Inspection robot based on multi-modal data fusion analysis
CN121170741A
Eyelid detection system for evaluating orbicular orbicular muscle movement function of myasthenia patient
CN121259901A
Double-spectrum iris image intelligent identification method and system based on multi-stage characteristics
CN122090500A