Image processing device, image processing method and storage medium
By adjusting and aligning the matching processing of the visible image and the near-infrared image to detect the pupil area, the problem of complexity and high cost of multi-light source equipment in the existing technology is solved, and low-cost and efficient pupil detection is achieved.
Patent Information
- Application Number
- CN201880100702.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2038-12-18
AI Technical Summary
The existing technology requires multiple light sources and imaging equipment when detecting pupils, resulting in high equipment cost and complicated installation. The optical axis and optical path need to be adjusted, which increases the cost and difficulty of installation.
By receiving the visible image and the near-infrared image of the face, adjusting the brightness of the visible image to match the frequency distribution of the near-infrared image, aligning the two positions, inverting the brightness of the visible image and adding it to the near-infrared image, to detect the pupil area .
It reduces the cost of pupil detection, simplifies equipment installation, improves the accuracy and performance of pupil detection, and avoids the use of redundant equipment.
Smart Images

Figure CN113453618B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a technology for processing an image, and more particularly to a technology for detecting a pupil from an image. Background Art
[0002] For example, at a passage gate equipped with a camera, when an image of a body part (such as an iris or face) of a person to be authenticated is imaged by a camera for authentication and the person to be authenticated does not stop, it is necessary to quickly specify the position of the part in the image. In the case where the iris or face is used as the part to be authenticated, if the position of the pupil can be quickly detected, the position of the iris or face can be quickly determined based on the position of the pupil. The human pupil has a retroreflective property with respect to near-infrared light (for example, an electromagnetic wave with a wavelength of about 850 nanometers (nm)). PTL 1 discloses a pupil detection device that detects the pupil based on the brightness difference of the pupil of a differential image in two images of a subject irradiated with light of two different wavelengths (for example, 850nm and 950nm) across 900nm.
[0003] Reference List
[0004] Patent Literature
[0005] [Patent Document 1] Japanese Patent No. 4528980 Summary of the invention
[0006] Technical issues
[0007] In the technology disclosed in patent document 1, it is required that the optical axes of two light sources emitting light of different wavelengths and the optical axes of two imaging devices selectively receiving the light of the wavelengths are common. Therefore, it is necessary to adjust the installation position of the two light sources, the two imaging devices, and the device (such as a half-reflecting mirror) that changes the optical path so that the optical axes of the light source and the imaging device are common. In addition, it is necessary to correctly adjust the light emission time and imaging time of the light source so that the imaging device receiving the light of the wavelength emitted by the light source performs imaging while the light source emits light. In order to make the two light sources emit light at the same time and simultaneously obtain two images illuminated by two wavelengths of light, a device is needed to separate the light into light with a wavelength greater than about 900nm and light with a wavelength less than about 900nm. Such a device can be a dichroic mirror, which separates the light into light with a wavelength greater than about 900nm and light with a wavelength less than about 900nm. This device can be a combination of a low-pass filter and a high-pass filter, each of which has a cut-off wavelength of about 900nm.
[0008] Therefore, in the technology of PTL 1, in order to detect the pupil from the image, in addition to the device for capturing the image, two light sources, a device for separating near-infrared light of a specific wavelength, etc. are required. In addition, in addition to the two imaging devices, it is also necessary to properly arrange the two light sources and a device such as a half mirror. That is, the technology of PTL 1 requires the cost of these devices and the cost of properly installing these devices.
[0009] An object of the present disclosure is to provide an image processing device that reduces the cost of detecting a pupil.
[0010] Technical Solutions
[0011] An image processing device according to one aspect of the present disclosure includes: a first input device for receiving a visible image of a face; a second input device for receiving a near-infrared image of the face; an adjustment device for adjusting the brightness of the visible image based on the frequency distribution of pixel values of the visible image and the frequency distribution of pixel values of the near-infrared image; an alignment device for specifying the relative position of the visible image corresponding to the near-infrared image; an inversion device for inverting the adjusted brightness of the visible image; a pupil detection device for detecting an area of the pupil from a composite image obtained by adding the visible image and the near-infrared image whose brightness are inverted based on the relative position; and an output device for outputting information about the detected pupil.
[0012] An image processing method according to one aspect of the present disclosure includes receiving a visible image of a face; receiving a near-infrared image of the face; adjusting the brightness of the visible image based on a frequency distribution of pixel values of the visible image and a frequency distribution of pixel values of the near-infrared image; an alignment device that specifies a relative position of the visible image corresponding to the near-infrared image; inverting the adjusted brightness of the visible image; detecting a region of a pupil from a composite image obtained by adding the visible image and the near-infrared image whose brightness are inverted based on the relative position; and outputting information about the detected pupil.
[0013] A storage medium according to one aspect of the present disclosure stores a program that causes a computer to execute a first input process for receiving a visible image of a face; a second input process for receiving a near-infrared image of a face; an adjustment process for adjusting the brightness of the visible image based on a frequency distribution of pixel values of the visible image and a frequency distribution of pixel values of the near-infrared image; an alignment process for specifying a relative position of the visible image corresponding to the near-infrared image; an inversion process for inverting the adjusted brightness of the visible image; a pupil detection process for detecting an area of the pupil from a composite image obtained by adding a visible image and a near-infrared image whose brightness are inverted based on the relative position; and an output process for outputting information about the detected pupil.
[0014] One aspect of the present disclosure is also achieved through a storage medium storing the above program.
[0015] Effects of the Invention
[0016] The present disclosure has the effect of reducing the cost for detecting the pupil. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a block diagram illustrating an example of a configuration of an image processing system according to a first exemplary embodiment of the present disclosure.
[0018] Figure 2 is a flowchart illustrating an example of the operation of the image processing apparatus of the first exemplary embodiment of the present disclosure.
[0019] Figure 3 is a flowchart illustrating an example of the operation of the image processing apparatus of the first exemplary embodiment of the present disclosure.
[0020] Figure 4 is a block diagram illustrating an example of the configuration of an authentication system of a first modification and a second modification of the first exemplary embodiment of the present disclosure.
[0021] Figure 5 is a flowchart illustrating an entire example of the operation of the authentication system of the first modification and the second modification of the first exemplary embodiment of the present disclosure.
[0022] Figure 6 is a flowchart illustrating an example of the operation of pupil detection processing of the image processing apparatus 100 of first to fourth modifications of the first exemplary embodiment of the present disclosure.
[0023] Figure 7 is a flowchart illustrating an example of the operation of the authentication process of the authentication device of the first and fourth modifications of the first exemplary embodiment of the present disclosure.
[0024] Figure 8 is a flowchart illustrating an example of the operation of an authentication process of an authentication device of the second modification of the first exemplary embodiment of the present disclosure.
[0025] Fig. 9 is a block diagram illustrating an example of a configuration of an image processing system of a third modification of the first exemplary embodiment of the present disclosure.
[0026] Fig.10 is a flowchart illustrating an entire example of the operation of the image processing system of the third modification of the first exemplary embodiment of the present disclosure.
[0027] Fig.11 is a flowchart illustrating an entire example of the operation of a sunglasses determination process of the image processing system of the third modification of the first exemplary embodiment of the present disclosure.
[0028] Fig.12 is a block diagram illustrating an example of a configuration of an authentication system of a fourth modification of the first exemplary embodiment of the present disclosure.
[0029] Fig.13 is a flowchart illustrating an entire example of the operation of the authentication system of the fourth modification of the first exemplary embodiment of the present disclosure.
[0030] Fig.14 is a flowchart illustrating an example of the operation of a light control process of the authentication system of the fourth modification of the first exemplary embodiment of the present disclosure.
[0031] Fig.15 is a block diagram illustrating an example of a configuration of an image processing apparatus of a second exemplary embodiment of the present disclosure.
[0032] Fig.16 is a flowchart illustrating an example of the operation of the image processing apparatus of the second exemplary embodiment of the present disclosure.
[0033] Fig.17 : is a block diagram illustrating an example of a configuration of a computer capable of realizing an image processing apparatus and an authentication apparatus according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Next, exemplary embodiments of the present disclosure are described in detail with reference to the accompanying drawings.
[0035] <First Exemplary Embodiment>
[0036] First, the configuration of the image processing apparatus according to the first exemplary embodiment is described, and then, the operation of the image processing apparatus according to the first exemplary embodiment is described.
[0037] <Configuration>
[0038] Figure 1 1 is a block diagram illustrating an example of a configuration of an image processing system 1 according to the first exemplary embodiment. The image processing system 1 includes an image processing apparatus 100 , a visible imaging apparatus 200 , and a near-infrared imaging apparatus 300 .
[0039] Figure 1 The image processing device 100 shown includes a first input unit 110, a second input unit 120, an adjustment unit 130, a first detection unit 140, a second detection unit 150, an alignment unit 160, an inversion unit 170, a third detection unit 180, and an output unit 190. A visible imaging device 200 and a near infrared imaging device 300 are connected to the image processing device 100.
[0040] The visual imaging device 200 is an imaging device that performs imaging within the visible light wavelength range. The visual imaging device 200 is implemented by, for example, a video camera or a digital camera. The visual imaging device 200 outputs the captured image. The image output by the visual imaging device 200 may be a color image. The image output by the visual imaging device 200 may be a grayscale image. The format of the image is any format that can be decoded by the image processing device 100.
[0041] The near-infrared imaging device 300 is an imaging device that performs imaging in a near-infrared wavelength range in which the human retina has a retroreflective property. The near-infrared imaging device 300 is implemented by an infrared camera that can image near-infrared light in a wavelength range in which the human retina has a retroreflective property (for example, a wavelength range including a wavelength of 850 nm). The near-infrared imaging device 300 outputs a captured image. The image output by the near-infrared imaging device 300 is, for example, a grayscale image. The format of the image may be any format that can be decoded by the image processing device 100.
[0042] Visual imaging device 200 and near infrared imaging device 300 are installed so that the same object can be imaged. For example, visual imaging device 200 and near infrared imaging device 300 can be installed adjacent to each other. Visual imaging device 200 and near infrared imaging device 300 can be installed so that their optical axes are oriented in similar directions. It is not necessary for the optical axis of visual imaging device 200 to be the same as the optical axis of near infrared imaging device 300. Visual imaging device 200 and near infrared imaging device 300 can be installed, for example, at a door (such as a passage door), beside a door, etc. For example, visual imaging device 200 and near infrared imaging device 300 can be configured to image a person (such as a person's face) at the same moment by installing a door at visual imaging device 200 and near infrared imaging device 300. It is not necessary for the visual angle of visual imaging device 200 and the number of pixels to be the same as the visual angle of near infrared imaging device 300 and the number of pixels.
[0043] Hereinafter, a case is described where the visible imaging device 200 and the near-infrared imaging device 300 image the face of the same person at the same time.
[0044] The image processing device 100 is connected to the visible imaging device 200 in a wireless manner, a wired manner, or a combination thereof, so that the image processing device 100 can receive the image captured by the visible imaging device 200. Similarly, the image processing device 100 is connected to the near-infrared imaging device 300 in a wireless manner, a wired manner, or a combination thereof, so that the image processing device 100 can receive the image captured by the near-infrared imaging device 300.
[0045] The first input unit 110 receives an image captured by the visual imaging device 200 from the visual imaging device 200. In the case where the visual imaging device 200 outputs a color image, the first input unit 110 converts the received color image into a grayscale image. The method of converting the color image into a grayscale image may be any of the existing methods according to the color space of the pixel value of each pixel. For example, in the case where the pixel value of a pixel is represented by the contrast values of the three colors of red, green and blue, the method of conversion may be to set the value obtained by applying a predetermined weight to each of the contrast values of the three colors of the pixel value and adding them for each pixel of the color image as the pixel value of the grayscale image. In the case where the pixel value of the color image contains brightness as a component, the brightness may be set as the pixel value of the grayscale image. In the following description, the grayscale image output by the visual imaging device 200 and received by the first input unit 110 and the grayscale image converted from the color image output by the visual imaging device 200 and received by the first input unit 110 are represented as visual input images. Visual input images are sometimes also represented as visual images. The first input unit 110 transmits the visual input image to the adjustment unit 130. The first input unit 110 may transmit the visual input image to the first detection unit 140.
[0046] The second input unit 120 receives an image captured by the near-infrared imaging device 300 from the near-infrared imaging device 300. In the following description, the image output by the near-infrared imaging device 300 and received by the second input unit 120 is represented as a near-infrared input image. The near-infrared input image is sometimes also represented as a near-infrared image. The second input unit 120 sends the received near-infrared input image to the adjustment unit 130 and the second detection unit 150. The second input unit 120 may send the received near-infrared input image to the third detection unit 180.
[0047] The adjustment unit 130 receives a visible input image from the first input unit. The adjustment unit 130 further receives a near-infrared input image from the second input unit 120. The adjustment unit 130 matches the brightness level of the visible input image with the brightness level of the pixel value of the near-infrared input image based on the frequency distribution (i.e., histogram) of the pixel value (i.e., brightness) of the visible input image and the frequency distribution of the pixel value of the near-infrared input image. The adjustment unit 130 adjusts the pixel value of the visible input image so that the histogram of the visible input image is close to the histogram of the near-infrared input image, for example, as follows.
[0048] Specifically, the adjustment unit 130 first generates a histogram of a visible input image and a histogram of a near-infrared input image. The number and width of the intervals of the histogram can be appropriately determined. The adjustment unit 130 further detects the peak value of the dark portion in the histogram of the visible input image and the histogram of the near-infrared input image. The peak value of the dark portion can be, for example, an interval representing the frequency of the darkest pixel value among the intervals that meet a predetermined standard in amplitude, and the interval represents the peak value of the histogram (i.e., the maximum value of the frequency). The above-mentioned predetermined standard can be, for example, a properly determined constant that exceeds multiplication by a mode value less than 1. The peak value of the dark portion is not limited to this example. For example, this can be a pixel value represented by an interval of the highest frequency among the peak values within a predetermined range from the interval associated with the darkest pixel value. The pixel value represented by the interval can be a representative value (e.g., an average value, a maximum value, a minimum value, etc.) of the range of pixel values associated with the interval. In the following description, the pixel value representing the peak value of the dark portion of the histogram (i.e., the pixel value represented by the interval of the peak value of the dark portion of the histogram) is represented as a dark portion peak pixel value.
[0049] The adjustment unit 130 first calculates a value obtained by subtracting the peak pixel value of the dark portion of the visible input image from the peak pixel value of the dark portion of the near-infrared input image (hereinafter, referred to as a dark portion offset value). The calculated dark portion offset value is added to the pixel value of each pixel of the visible input image so that the peak value of the dark portion of the histogram of the visible input image coincides with the peak value of the dark portion of the histogram of the near-infrared input image.
[0050] The adjustment unit 130 may further adjust the pixel values of the visible input image so that, for example, the histogram of the pixel values of the visible input image is closest to the histogram of the pixel values of the near-infrared input image in a range other than the range including the peak value of the dark portion. The range including the peak value of the above-mentioned dark portion may be, for example, a range of an interval including the peak value of the dark portion, in which an interval of a frequency higher than a value obtained by multiplying a predetermined constant by the frequency of the peak value of the dark portion is continuous. The predetermined constant may be appropriately determined. In the following description, among the range of intervals of frequency distribution represented by the histogram, a range that is not excluded as a range including the peak value of the dark portion is represented as an object range.
[0051] For example, the adjustment unit 130 may adjust the pixel value of the visible input image by multiplying the adjustment magnification by the difference between the pixel value of each pixel of the visible input image in a state where the dark portion offset value is added to the pixel value of each pixel and the dark portion peak pixel value. In other words, the pixel value of the visible input image in this case is adjusted to change the pixel value of each pixel of the visible input image to the sum of the dark portion peak pixel value and the value obtained by multiplying the adjustment magnification by the value obtained by subtracting the dark portion peak pixel value from the pixel value. For example, the adjustment unit 130 may calculate an adjustment value with which the histogram of the visible input image in the case of adjusting the pixel value of the visible input image is most consistent with the histogram of the near-infrared input image.
[0052] The adjustment unit 130 can calculate an adjustment magnification at which the frequency distribution of the object range in the histogram of the visible input image under adjustment is closest to the distribution of the object range in the histogram of the near-infrared input image. Specifically, for example, the adjustment unit 130 can calculate the average value of the absolute value of the frequency difference of the relevant intervals in the common range between the object range of the histogram of the adjusted visible input image and the object range of the histogram of the near-infrared input image as a value representing the distribution proximity. Then, the adjustment unit 130 can specify an adjustment magnification at which the value representing the distribution proximity is the smallest. The adjustment unit 130 makes the adjusted visible input image under the condition that the adjustment magnification is the specified adjustment magnification a visible input image in which the pixel values are adjusted so that the histogram is close to the histogram of the near-infrared input image (hereinafter, represented as an adjusted visible image).
[0053] In the case where the pixel value of the pixel of the visible image after adjustment becomes less than the possible minimum value as the pixel value, the adjustment unit 130 changes the pixel value of the pixel to the possible minimum value as the pixel value. In the case where the pixel value of the pixel of the visible image after adjustment becomes greater than the possible maximum value as the pixel value, the adjustment unit 130 changes the pixel value of the pixel to the possible maximum value as the pixel value. The possible minimum value as the pixel value may be, for example, the minimum value (i.e., the lower limit) of the pixel value within the value range of the pixel value of the visible input image. The possible maximum value as the pixel value may be, for example, the maximum value (i.e., the upper limit) of the pixel value within the value range of the pixel value of the visible input image. Even in the case where the pixel value of the pixel of the visible image after adjustment is not included in the value range of the pixel value of the visible input image, the adjustment unit 130 does not have to change the pixel value of the pixel to the upper limit or lower limit of the value range of the pixel value.
[0054] The adjustment unit 130 can further detect the peak value of the bright part of the histogram of the near-infrared input image. The peak value of the bright part can be, for example, a bin representing the frequency of the brightest pixel value among the intervals where the frequency meets the predetermined standard in amplitude, and the bin represents the peak value of the histogram (i.e., the maximum value of the frequency). The peak value of the bright part can be, for example, a bin representing the frequency of the brightest pixel value among the intervals where the frequency meets the predetermined standard in amplitude, and the bin represents the peak value of the histogram (i.e., the maximum value of the frequency). The above-mentioned predetermined standard can be, for example, a properly determined constant that exceeds the mode value of 1 by a multiple. The peak value of the bright part is not limited to this example. For example, this can be a pixel value represented by the highest frequency interval among the peak values in a predetermined range from the interval associated with the brightest pixel value. The pixel value represented by the interval can be a representative value (e.g., average value, maximum value, minimum value, etc.) of the range of pixel values associated with the interval.
[0055] Then, the adjustment unit 130 may exclude a range including a peak value of a bright portion from the object range of the near-infrared input image. The range including a peak value of a bright portion excluded from the object range may be, for example, a range of an interval including a peak value of a bright portion, in which intervals having a frequency higher than a value obtained by multiplying a predetermined constant by the frequency of the peak value of the bright portion are continuous. The predetermined constant may be appropriately determined.
[0056] The adjustment unit 130 may further detect the peak value of the bright part of the histogram of the visible input image by a method similar to the case of detecting the peak value of the bright part of the histogram of the near-infrared input image. The predetermined standard in the case of detecting the peak value of the bright part of the histogram of the visible input image may be different from the predetermined standard in the case of detecting the peak value of the bright part of the histogram of the near-infrared input image.
[0057] In the case of detecting the peak of the bright part of the histogram of the visual input image, the range including the peak of the bright part may be excluded from the object range of the visual input image. The range including the peak of the bright part of the visual input image may be defined similarly to the range including the peak of the bright part of the near-infrared input image. In the case of not detecting the peak of the bright part of the histogram of the visual input image, the adjustment unit 130 does not perform processing for excluding the range including the peak of the bright part of the visual input image from the object range.
[0058] When a range including a peak of a bright portion is excluded from an object range in at least one of the near infrared input image and the visible input image, the adjustment unit 130 adjusts the visible input image based on the object range from which the range including the peak of the bright portion is excluded.
[0059] The first detection unit 140 receives the visual input image from the first input unit 110. The first detection unit 140 detects a face from the received visual image. The method by which the first detection unit 140 detects a face from the visual input image may be any of various existing methods. In the case where no face is detected from the visual input image, the image processing device 100 may terminate the processing of the visual input image. In the case where the first detection unit 140 detects a face from the visual input image, the adjustment unit 130 may perform the above-mentioned adjustment on the visual input image.
[0060] The second detection unit 150 receives the near infrared image from the second input unit 120. The second detection unit 150 detects a face from the received near infrared image. The method by which the second detection unit 150 detects a face from the near infrared image may be any of various existing methods.
[0061] In the case where the first detection unit 140 detects a face from the visible input image and further, the second detection unit 150 detects a face from the near-infrared image, for example, the alignment unit 160 performs alignment between the adjusted visible image and the near-infrared image as follows. For example, the alignment unit 160 specifies the relative position between the adjusted visible image and the near-infrared input image, at which the difference (for example, an indicator indicating the size of the difference described later) in the overlapping portion where the adjusted visible image is superimposed on the near-infrared input image is minimum. The relative position can be represented by, for example, a vector representing a translation. The relative position can also be represented by, for example, a translation and a rotation (for example, an angle of rotation). Various existing methods can be used as a method for specifying the relative position.
[0062] Specifically, for example, the alignment unit 160 may specify a relative position between the adjusted visible image and the near-infrared input image at which the average of the absolute values of the differences in the pixel values of the respective overlapping pixels in the portion where the adjusted visible image is superimposed on the near-infrared input image is the smallest. In this case, the index indicating the size of the difference in the overlapping portion between the adjusted visible image and the near-infrared input image is the average of the absolute values of the differences in the pixel values of the respective pixels. The index may be another index indicating the size of the difference between the images.
[0063] When calculating the difference between the adjusted visible image and the near-infrared input image, the alignment unit 160 does not have to use the pixels whose pixel values are included in the range of the interval including the peak value of the dark part and the pixels whose pixel values are included in the range of the interval including the peak value of the bright part in the histogram of the adjusted visible image. Similarly, when calculating the difference between the adjusted visible image and the near-infrared input image, the alignment unit 160 does not have to use the pixels whose pixel values are included in the range of the interval including the peak value of the dark part and the pixels whose pixel values are included in the range of the interval including the peak value of the bright part in the histogram of the near-infrared input image. In the case where the pixel value of at least one of the pixels of the adjusted visible image and the pixels of the near-infrared input image overlapping each other is included in any one of the range including the peak value of the bright part and the range including the peak value of the dark part, the alignment unit 160 may exclude these pixels from the calculation of the difference between the pixel values. For example, the alignment unit 160 may calculate the index indicating the size of the difference between the images only from the pixels that are not excluded from the calculation of the difference between the pixel values.
[0064] The first detection unit 140 may detect feature points of the face from the visual input image and send information about the detected feature points of the face to the alignment unit 160. The information about the feature points is, for example, the position of the feature points in the image from which the feature points are extracted, the type of the feature points, etc. The information about the feature points is not limited to the above examples. The second detection unit 150 may detect feature points of the face from the near-infrared input image and send the detected feature points of the face to the alignment unit 160. The feature points of the face may be, for example, predetermined feature points (such as the outer corners of the eyes, the inner corners of the eyes, the pupils, the corners of the mouth, and the tip of the nose).
[0065] The alignment unit 160 may receive information about feature points of the face in the visible input image from the first detection unit 140 and receive feature points of the face in the near-infrared input image from the second detection unit 150. Then, the alignment unit 160 calculates the relative position between the visible input image and the near-infrared input image, with the visible input image superimposed on the near-infrared input image so that the difference in position between the relevant feature points of the face becomes minimum. Specifically, the alignment unit 160 may calculate the conversion of coordinates so that the coordinates of the feature points of the face detected in the visible input image become the coordinates of the feature points of the face corresponding to the feature points of the face in the visible input image detected in the near-infrared input image. As a method of calculating the conversion of coordinates, various existing methods may be applied.
[0066] The inversion unit 170 receives the adjusted visible image from the adjustment unit 130. The inversion unit 170 inverts the pixel values of the adjusted visible image and generates an inverted visible image in which the pixel values of the adjusted visible image are inverted. The inversion of the pixel value may be, for example, subtracting the pixel value from the maximum value of the pixel value within the value range of the pixel value of the image. The inversion of the pixel value may be, for example, changing the positive sign of the pixel value to a negative sign.
[0067] For example, the third detection unit 180 receives the inverted visible image from the inversion unit 170, and receives the input near-infrared image from the second input unit 120. The third detection unit 180 further receives the relative position between the adjusted visible image and the near-infrared input image from the alignment unit 160, at which the difference in the overlapping portion when the adjusted visible image is superimposed on the near-infrared input image is minimum. The third detection unit 180 generates: a synthetic image obtained by superimposing the adjusted visible image on the near-infrared input image in an area where the adjusted visible image and the near-infrared input image overlap each other at the received relative position. Specifically, the third detection unit 180 calculates the sum of the pixel value of the adjusted visible image and the pixel value of each overlapping pixel of the near-infrared input image in the area where the adjusted visible image and the near-infrared input image overlap each other, and generates a synthetic image whose calculated sum is the pixel value of the pixel at the position. Overlapping pixels refer to pixels that exist at the same position when two images overlap each other.
[0068] As described above, the pupil of a person has a retroreflective property with respect to near-infrared electromagnetic waves. Therefore, in the near-infrared input image, the area of the pupil becomes bright. However, since the pupil of a person does not have a retroreflective property with respect to visible light, the area of the pupil becomes dark in the visible input image. In the inverted visible image, the pupil area is relatively bright. Therefore, in the composite image in which the pixel value of the inverted visible image and the pixel value of the near-infrared input image are added for each relevant pixel, the area of the pupil is expected to be very bright.
[0069] The third detection unit 180 detects the pupil in the synthesized image. Specifically, for example, first, the third detection unit 180 binarizes the synthesized image. For example, the third detection unit 180 may set the pixel values of pixels having pixel values included in the interval of the peak value of brightness and pixels having pixel values brighter than those of the synthesized image to 1, and, for example, set the pixel values of other pixels to 0. The third detection unit 180 may determine the frequency threshold based on the frequency of the peak value of brightness (for example, multiplying by a constant less than one of the peak frequencies, i.e., the mode value). The third detection unit 180 may set the pixel values of pixels of the synthesized image having pixel values within the range of continuous intervals (the range includes the interval of the mode value) whose frequency exceeds the threshold or the pixel values indicating the pixel values brighter than those indicated by the interval to 1, and set the pixel values of other pixels to 0. The third detection unit 180 may binarize the synthesized image by another method. The third detection unit 180 may detect a connected area of a predetermined area or larger area of pixels having a brighter pixel value of two pixel values set by binarization as the area of the pupil. The third detection unit 180 may detect, for example, a connection area whose area is included in a predetermined range determined in advance by experiments in the above connection area as the area of the pupil. The third detection unit 180 may detect a connection area whose ratio of the short radius to the long radius in the above connection area is less than a predetermined value as the area of the pupil. In the following description, the third detection unit 180 may be represented as the pupil detection unit 180.
[0070] The output unit 190 outputs information about the pupil detected by the third detection unit 180. Specifically, the output unit 190 may output information indicating the area of the pupil in the near-infrared input image. The information indicating the area of the pupil may be information that can specify the pixels included in the area detected as the area of the pupil (e.g., a list of coordinates of the pixels included in the area detected as the area of the pupil). The information about the pupil may be, for example, information indicating the position of the pupil (e.g., the centroid coordinates of the area representing the pupil, etc.). The information indicating the position of the pupil may be, for example, information indicating the position of the pupil in the near-infrared input image. The information indicating the position of the pupil may be, for example, information indicating the position of the pupil in the visible input image. In addition to the information indicating the position of the pupil, the information indicating the pupil may also include a relative position. The information indicating the position of the pupil may include information indicating the position of the pupil in the near-infrared input image and information indicating the position of the pupil in the visible input image. The information about the pupil may be other information.
[0071] <<Operation>>
[0072] Next, the operation of the image processing apparatus 100 of the exemplary embodiment will be described in detail with reference to the drawings.
[0073] Figure 2 and 3 is a flowchart illustrating an example of the operation of the image processing apparatus 100 of the exemplary embodiment.
[0074] exist Figure 2 In the operation shown, the first input unit 110 obtains a visible image from, for example, the visible imaging device 200, and the second input unit 120 obtains a near-infrared image from, for example, the near-infrared imaging device 300 (step S101). The visible image obtained in step S101 is the above-mentioned visible input image. The near-infrared image obtained in step S101 is the above-mentioned near-infrared input image.
[0075] Next, the first detection unit 140 detects a face in the visible image obtained by the first input unit 110. Then, the second detection unit 150 detects a face in the near-infrared image obtained by the second input unit 120 (step S102). In the case where there is an image in which a face is not detected, that is, in the case where a face is not detected from either the visible image or the near-infrared image (step S103 is yes), the image processing device 100 terminates the process as shown in FIG. Figure 2 and 3 When a face is detected from both the visible image and the near-infrared image, the image processing device 100 performs the operation of step S104.
[0076] The adjustment unit 130 generates a histogram of the brightness of each pixel in the visible image and the near-infrared image (step S104). The adjustment unit 130 matches the brightness level of the visible image with the brightness level of the near-infrared image based on the generated histogram (step S105). In step S105, the adjustment unit 130 adjusts the pixel values of the visible image (herein, the visible input image) so that the histogram of the range other than the range including the peak value of the dark part and the range including the peak value of the bright part is close to the histogram of the near-infrared input image, for example, as described above. Then, the adjustment unit 130 generates an adjusted visible image in which the pixel values are adjusted in this manner.
[0077] Next, the alignment unit 160 performs alignment between the visible image and the near-infrared image (step S106). The visible image of step S106 is the adjusted visible image generated by the adjustment unit 130. The near-infrared image of step S106 is the near-infrared input image. In the alignment of step S106, the alignment unit 160 derives the relative position between the adjusted visible image and the near-infrared input image, wherein the difference in the overlapping portion between the adjusted visible image and the near-infrared input image is minimized. After the operation of step S106, the image processing device 100 performs Figure 3 The operation of step S107 is shown.
[0078] exist Figure 3In the operation shown, next, the inversion unit 170 inverts the pixel values of the visible image (step S107). The visible image of step S107 is the adjusted visible image generated by matching the brightness levels in step S105.
[0079] Next, the third detection unit 180 adds the pixel value of each pixel in the overlapping portion between the adjusted visible image and the near-infrared input image at the relative position obtained by the alignment in step S106, thereby generating a composite image (step S108). The third detection unit 180 detects the pupil from the composite image (step S109).
[0080] Then, the output unit 190 outputs information about the detected pupil (step S110 ).
[0081] <<Effect>>
[0082] The above exemplary embodiment has the effect of reducing the cost of detecting the pupil. This is because the adjustment unit 130 makes an adjustment to match the brightness level of the visible image with the brightness level of the near-infrared image, and the alignment unit 160 performs alignment of the visible image and the near-infrared image. Therefore, it is not necessary to adjust so that the optical axes of the four devices including two light sources and two imaging devices are the same. Therefore, a device such as a half-reflecting mirror that bends the optical axis is not required. It is not necessary to correctly arrange two light sources, two imaging devices, multiple half-reflecting mirrors, etc. Therefore, the cost of detecting the pupil can be reduced.
[0083] This exemplary embodiment also has the effect of improving the performance of pupil detection. This is because the adjustment unit 130 adjusts the pixel value based on the histogram of the range other than the range including the peak value of the dark part and the range including the peak value of the bright part. This is because the alignment unit 160 also uses the pixels in the histogram other than the pixels whose pixel values are included in the range of the pixel value including the peak value of the dark part and the range of the pixel value including the peak value of the bright part for alignment.
[0084] Since the pupil has a retroreflective property with respect to near-infrared light, the area of the pupil in the near-infrared input image is bright. In other words, the pixel values of the pixels included in the area of the pupil of the near-infrared input image take values indicating that it is bright. The pupil does not have a retroreflective property with respect to visible light. Therefore, in the visible input image, the area of the pupil is dark. In other words, the pixel values of the pixels included in the area of the pupil take values indicating that it is dark. In the area outside the pupil, it can be considered that there is usually no area that is dark in the visible input image and the adjusted visible image and bright in the near-infrared input image. In the adjusted visible image and the near-infrared input image adjusted by the adjustment unit 130, the distribution of pixel values is close in the pixels of the histogram having pixel values other than the pixel values that appear as peaks in the dark part and the pixel values that appear as peaks in the bright part.
[0085] In the visible image (visible input image and adjusted visible image), the peak value of the bright part is related to the pixel value of the shadow area, for example, and the peak value of the dark part is related to the pixel value of the area such as the reflection of glasses or tears. In the near-infrared input image, the peak value of the bright part is related to the pixel value of the area such as the pupil or the reflection of glasses, and the peak value of the dark part is related to the pixel value of the part at low temperature, for example. The angle of the reflection of glasses changes depending on the wavelength. Therefore, the area of reflection of glasses in the visible image is different from the area of reflection of glasses in the near-infrared image.
[0086] In an exemplary embodiment, since the influence on adjusting pixel values and alignment can be suppressed in an area where the brightness between the visible image and the near-infrared image is significantly different (such as an area of reflection of glasses), the accuracy of pixel value adjustment and the accuracy of alignment can be improved. Therefore, in an exemplary embodiment, the accuracy of pupil detection can be improved.
[0087] <First Modification of First Exemplary Embodiment>
[0088] Next, referring to the drawings, a first modification of the first exemplary embodiment of the present disclosure is described in detail. First, the configuration of the modification is described, and next, the operation of the modification is described.
[0089] <<Configuration>>
[0090] Figure 4 is a block diagram illustrating an example of the configuration of an authentication system 10 of the present modification.
[0091] Figure 4 The illustrated authentication system 10 includes an image processing device 100 as a pupil detection device, a visible imaging device 200, a near infrared imaging device 300, and an authentication device 400. The image processing device 100, the visible imaging device 200, and the near infrared imaging device 300 are respectively the same as the image processing device 100, the visible imaging device 200, and the near infrared imaging device 300 of the first exemplary embodiment. The authentication device 400 is communicably connected to the image processing device 100. The authentication device 400 may be included in the image processing device 100. In other words, the image processing device 100 may further operate as the authentication device 400.
[0092] The output unit 190 of this modification outputs information about the detected pupil and the facial image. The output unit 190 of this modification may output information about the position of the pupil as the information about the pupil. The facial image may be a visible input image obtained and output by the visible imaging device 200. In this case, the visible input image may be sent to the output unit 190 via, for example, the first input unit 110, the first detection unit 140, the alignment unit 160, and the third detection unit 180. For simplicity, the output unit 190 may be sent to the output unit 190 via Figure 4 The visual input image is sent from the first input unit 110 to the output unit 190 via a path not shown in the figure. The facial image may be an adjusted visual image adjusted by the adjustment unit 130. In this case, the adjusted visual image may be sent to the output unit 190 via, for example, the alignment unit 160 and the third detection unit 180. For simplicity, Figure 4 The adjusted visible image is sent from the adjustment unit 130 to the output unit 190 via a path not shown in the figure. The facial image may be a near infrared input image obtained and output by the near infrared imaging device 300. In this case, the near infrared input image may be sent from the second input unit 120 to the output unit 190 via the alignment unit 160 and the third detection unit 180. The infrared input image may be sent from the second input unit 120 to the output unit 190 via the third detection unit 180. For simplicity, the near infrared input image may be sent from the second input unit 120 to the output unit 190 via the third detection unit 180. Figure 4 The near infrared input image is transmitted from the second input unit 120 to the output unit 190 via a path not shown in the figure. The type of the image transmitted as the face image may be determined in advance.
[0093] The authentication device 400 includes an authentication unit 410 and a second output unit 420 .
[0094] The authentication unit 410 receives information about the detected pupil (e.g., information about the position of the detected pupil) and a facial image from the output unit 190 of the image processing device 100. The authentication unit 410 specifies the position of the authentication part in the facial image, for example, based on the received information about the pupil. The authentication unit 410 performs authentication based on the image of the authentication part with the specified position. The authentication part is at least a part of the face used for authentication. The authentication part may be, for example, an iris. The authentication part may be, for example, a face. The authentication part may be predetermined. The authentication unit 410 uses the image of the authentication part to perform authentication by any existing authentication method. Specifically, for example, the authentication unit 410 extracts an image of an area of the authentication part from the facial image according to the authentication method, and extracts a feature quantity from the extracted area according to the authentication method. Then, the authentication unit 410 performs authentication using the extracted feature quantity. This is described in more detail below.
[0095] In the case where the authentication part is the iris, the authentication unit 410 may extract the iris area from the periphery of the pupil area. In the case where the authentication part is the face, an area where the face area may exist may be estimated based on the detected position of the pupil, and the face area may be extracted from the estimated area. In the case where the authentication part is the face, another feature point of the face may be extracted based on the detected position of the pupil. As the authentication method of the authentication unit 410, various existing methods according to the authentication part may be applied.
[0096] The authentication unit 410 extracts a feature amount according to the authentication method from the image of the area of the authentication part. The authentication unit 410 compares the extracted feature amount with, for example, a feature amount pre-registered in the authentication unit 410. The authentication unit 410 determines, based on the comparison result, whether the person from whom the facial image from which the extracted feature amount is extracted is the same as the person from whom the pre-registered feature amount is extracted.
[0097] The second output unit 420 outputs the authentication result of the authentication unit 410 .
[0098] <<Operation>>
[0099] Figure 5 : is a flowchart illustrating an entire example of the operation of the authentication system 10 of this modification.
[0100] exist Figure 5 In the operation shown, first, the image processing device 100 performs pupil detection processing (step S100). The pupil detection processing will be described later. The above-mentioned information about the pupil is obtained through the pupil detection processing. The output unit 190 outputs information about the detected pupil (e.g., information about the position of the detected pupil) and the facial image to the authentication device 400 (step S110). Then, the authentication device 400 performs authentication processing (step S120). The authentication processing will be described later.
[0101] Figure 6 : is a flowchart illustrating an example of the operation of pupil detection processing of the image processing apparatus 100 of this modification. Figure 6 The operations from step S101 to step S109 shown in FIG. Figure 2 and 3 The operations from step S101 to step S109 of the image processing apparatus 100 of the first exemplary embodiment shown in FIG. 1 are the same. After the operation of step S109, the image processing apparatus 100 terminates the operation. Figure 6 Pupil detection processing shown.
[0102] Figure 7 4 is a flowchart illustrating an example of the operation of the authentication process of the authentication device 400 of the present modification. Figure 7 In the operation shown, first, the authentication unit 410 receives information about the position of the pupil and the facial image (step S121). Next, the authentication unit 410 extracts the region of the authentication part from the facial image based on the position of the pupil (step S122). The authentication unit 410 extracts a feature quantity from the extracted region of the authentication part (step S123). The authentication unit 410 performs authentication based on the extracted feature quantity (step S124). The second output unit 420 outputs the authentication result (step S125).
[0103] <Second Modification of First Exemplary Embodiment>
[0104] Next, a second modification of the first exemplary embodiment is described.
[0105] <<Configuration>>
[0106] Figure 4 : is a block diagram illustrating the configuration of the authentication system 10 of the present modification. The configuration of the authentication system 10 of this modification is the same as that of the first modification of the first exemplary embodiment. This modification is the same as the first modification of the first exemplary embodiment except for the differences described below.
[0107] The output unit 190 of the image processing apparatus 100 outputs the near-infrared input image as a facial image.
[0108] The authentication unit 410 of the authentication device 400 provides the iris as the authentication part. The authentication unit 410 changes the pixel value of the pupil area of the near-infrared input image to another value. The other value may be, for example, a pixel value indicating a brightness darker than the brightness indicated by the average value of the pixel values of the pixels in the iris area. The other value may be a pixel value indicating a brightness darker than the brightness indicated by the pixel value of the pupil area of the near-infrared input image. The other value may be determined in advance by experiments. By changing the pixel value of the pupil area so that the brightness indicated by the pixel value becomes darker, adverse effects such as a reduction in the authentication system due to the pupil area being too bright can be reduced. The authentication unit 410 performs iris authentication as authentication.
[0109] <<Operation>>
[0110] Figure 5 is a flowchart illustrating the operation of the authentication system 10 of the present modification. The overall operation of the authentication system 10 of the present modification is the same as the overall operation of the authentication system 10 of the first modification of the first exemplary embodiment. The operations of steps S100 and S110 of the authentication system 10 of the present modification are the same as the operations of steps S100 and S110 of the authentication system 10 of the first modification of the first exemplary embodiment. However, the facial image output at step S110 is a near-infrared input image. The operation of the authentication process of step S120 of the authentication system 10 of the present modification is different from the operation of the authentication process of step S120 of the authentication system 10 of the first modification of the first exemplary embodiment.
[0111] Figure 8 1 is a flowchart illustrating an example of the operation of the authentication process of the authentication system 10 of the present modification. Figure 8In the operation shown, the authentication unit 410 receives information about the position of the pupil and a facial image (step S221). The facial image received in step S221 is a near-infrared input image. Next, the authentication unit 410 extracts an iris region from the facial image based on the information about the position of the pupil (step S222). The authentication unit 410 sets the pixel value of the pupil region to another value (e.g., a predetermined value) (step S223). The authentication unit 410 extracts a feature quantity from the iris region (step S224). The authentication unit 410 performs authentication based on the extracted feature quantity (step S225). The second output unit 420 outputs the authentication result (step S226).
[0112] <Third Modification of First Exemplary Embodiment>
[0113] Next, a third modification of the first exemplary embodiment is described.
[0114] <<Configuration>>
[0115] Fig. 9 1 is a block diagram illustrating an example of the configuration of an image processing system 2 of the present variation. The image processing system 2 includes an image processing device 101, a visible imaging device 200, and a near-infrared imaging device 300. The image processing device 101 is connected to the visible imaging device 200 so that a visible image obtained by the visible imaging device 200 can be obtained. The image processing device 101 is connected to the near-infrared imaging device 300 so that a near-infrared image obtained by the near-infrared imaging device 300 can be obtained. The image processing device 101 of the variation includes the same components as those of the image processing device 100 of the first exemplary embodiment and a determination unit 181.
[0116] The third detection unit 180 sends the visible image and the information about the detected pupil to the determination unit 181. The third detection unit 180 may send the inverted visible image as a visible image to the determination unit 181. The third detection unit 180 may send the adjusted visible image as a visible image to the determination unit 181. The third detection unit 180 may send the visual input image as a visible image to the determination unit 181. The type of the visible image sent by the third detection unit 180 may be predetermined. The information about the pupil includes information specifying the position of the pupil in the visible image. The information about the pupil may include, for example, information indicating the position of the pupil in the visible image. The information about the pupil may include, for example, a relative position and information indicating the position of the pupil in the near-infrared input image. The relative position is the above-mentioned relative position. Specifically, the relative position is the relative position between the adjusted visible image and the near-infrared input image, at which the difference in the overlapping portion between the adjusted visible image and the near-infrared input image is the smallest.
[0117] The determination unit 181 receives the visible image and the information about the detected pupil. The determination unit 181 detects the pupil at the position of the pupil specified by the information about the pupil in the visible image. In other words, it determines whether the pupil exists at the position of the pupil detected in the visible image.
[0118] For example, in the case where the person to be imaged whose facial image is captured wears sunglasses, in the visible image, the area of the eyes is blocked by the sunglasses that absorb visible light, so that the brightness difference between the iris and the pupil becomes smaller. In the case where the sunglasses are dark sunglasses, there is a case where there is no obvious brightness difference between the iris and the pupil. In the case where the sunglasses are darker colored sunglasses, there is a case where the brightness difference of the portion blocked by the sunglasses cannot be confirmed. However, in general, sunglasses usually transmit near-infrared light. In other words, the transmittance of sunglasses to electromagnetic waves with near-infrared wavelengths is generally higher than the transmittance to visible light. In this case, if there is a bright area due to the reflection of the pupil in the near-infrared input image, the pupil can be detected from the synthetic image.
[0119] For example, the determination unit 181 may detect the pupil based on the difference between the brightness of the detected pupil area and the brightness of, for example, an area surrounding the pupil area (i.e., an area corresponding to the area of the iris) in the visible image. Specifically, for example, in the case where the difference between the average value of the pixel values of the pixels in the pupil area and the average value of the pixel values of the pixels in the area surrounding the pupil area in the visible image is less than a predetermined threshold, the determination unit 181 may determine that the pupil is not detected. That is, in this case, the determination unit 181 may determine that the sunglasses are present. In other words, in this case, the determination unit 181 may detect the sunglasses. For example, in the case where the difference between the average value of the pixel values of the pixels in the pupil area and the average value of the pixel values of the pixels in the area surrounding the pupil area in the visible image is equal to or greater than the above threshold, the determination unit 181 may determine that the pupil is detected. That is, in this case, the determination unit 181 may determine that the sunglasses are not present. In other words, in this case, the determination unit 181 may determine that the sunglasses are not detected.
[0120] The output unit 190 outputs the detection result of the sunglasses. In the case where the authentication device 400 of the first or second modification described above is connected to the image processing device 101, the output unit 190 may output information required for the authentication device 400 to perform authentication.
[0121] <<Operation>>
[0122] Next, the operation of the image processing apparatus 101 of the present modification is described.
[0123] Fig.10 1 is a flowchart showing an example of the overall operation of the image processing apparatus 101 of the present variation. Fig.10 In the operation shown, the image processing device 101 performs pupil detection processing (step S100). The pupil detection processing of step S100 is similar to Figure 5 The pupil detection process of the image processing device 100 of the first modification and the second modification of the first exemplary embodiment shown in step S100 is the same. Next, the image processing device 101 performs a sunglasses determination process (step S130). The sunglasses determination process will be described in detail later. The image processing device 101 may further output information about the detected pupil and the face image (step S110). The operation of step S110 of the image processing device 101 of the present modification is the same as that of the image processing device 100 of the first modification and the second modification of the first exemplary embodiment. Figure 5 The operation of step S110 shown is the same.
[0124] Fig.11 2 is a flowchart illustrating an example of the operation of the sunglasses determination process of the image processing device 100 of the present modification. Fig.11 In the operation shown, the determination unit 181 first obtains information about the position of the pupil and a visible image of the face (step S131). The visible image of the face is the above-mentioned visible input image, the adjusted visible image, or the inverted visible image. The information about the position of the pupil is information that can specify the position of the detected pupil in the visible image. The determination unit 181 determines whether the pupil is detected at the position of the pupil in the visible image (step S132). In the case where the pupil is detected (step S133 is yes), the determination unit 181 determines that there are no sunglasses (step S134). In the case where the pupil is not detected (step S133 is no), the determination unit 181 determines that there are sunglasses (step S135). The output unit 190 outputs the determination result on whether there are sunglasses (step S136).
[0125] <Fourth Modification of First Exemplary Embodiment>
[0126] Next, a fourth modification of the first exemplary embodiment is described.
[0127] <<Configuration>>
[0128] Fig.12 is a block diagram illustrating the configuration of the authentication system 11 of the present modification. Fig.12The authentication system 11 shown includes an image processing device 102, a visible imaging device 200, a near infrared imaging device 300, an authentication device 400, and a light source 500. The visible imaging device 200 and the near infrared imaging device 300 of this modification are the same as the visible imaging device 200 and the near infrared imaging device of the first exemplary embodiment. The authentication device 400 of this modification is the same as the authentication device 400 of the first modification of the first exemplary embodiment. The authentication device 400 of this modification can be the same as the authentication device 400 of the second modification of the first exemplary embodiment. The light source 500 is a light source that emits near infrared light. The light source 500 is configured to be able to externally control the intensity of the emitted near infrared light.
[0129] The image processing apparatus 102 includes the same components as those of the image processing apparatus 100 of the first exemplary embodiment, and a light source control unit 182 .
[0130] The third detection unit 180 of this modification operates similarly to the third detection unit 180 of the first exemplary embodiment. The third detection unit 180 of this modification further determines whether the pupil is detected at the position of the pupil detected in the visible image. The visible image may be any one of a visual input image, an adjusted visible image, and an inverted visible image. A visible image may be predetermined in which it is determined whether the third detection unit 180 detects the pupil. The method for determining whether the third detection unit 180 of this modification detects the pupil from the visible image may be the same as the method for determining whether the pupil is detected from the visible image by the determination unit 181 of the third modification. In the case of determining that the pupil is not detected from the visible image, the third detection unit 180 sends an instruction to the light source control unit 182 to control the increase in the intensity of the near-infrared light emitted by the light source 500.
[0131] The light source control unit 182 controls the light source 500, for example, according to an instruction from the third detection unit 180. Specifically, the light source control unit 182 controls the intensity of the light (i.e., near-infrared light) emitted by the light source 500. The light source control unit 182 may be configured to increase the intensity of the light emitted by the light source 500 by a predetermined amount, for example, upon receiving an instruction from the third detection unit 180. After the light source control unit 182 increases the intensity of the light emitted by the light source 500, the image processing device 102 obtains the visible input image and the near-infrared input image again, and detects the pupil based on the obtained visible input image and the near-infrared input image. At this time, the light source control unit 182 may detect the pupil via the method described in detail for simplicity. Fig.12 The first input unit 110 is instructed to obtain a visual input image and the second input unit 120 is instructed to obtain a near-infrared input image through a path not shown in FIG. The first input unit 110 and the second input unit 120 may be configured to periodically obtain respective images.
[0132] <<Operation>>
[0133] Next, the operation of the authentication system 11 of the present modification will be described.
[0134] Fig.13 : is a flowchart illustrating an example of the operation of the authentication system 11 of the present modification. Fig.13 In the example of the operation shown, the image processing device 102 performs pupil detection processing (step S100). The pupil detection processing of step S100 is the same as the pupil detection processing in the first modification of the first exemplary embodiment. Next, the image processing device 102 performs light source control processing (step S140). As described in detail later, in the case where the pupil is not detected from the visible image, the image processing device 102 increases the intensity of the near-infrared light emitted by the light source 500 through the light source control processing. Then, the image processing device 102 performs pupil detection processing again in a state where the intensity of the near-infrared light increases. The output unit 190 outputs information about the detected pupil obtained by the pupil detection processing and the facial image (step S110). The operation of step S110 is similar to the operation of step S110 in the first modification of the first exemplary embodiment. However, in the case where the pupil detection processing is performed again, the information about the pupil and the facial image sent in step S110 are the information about the pupil and the facial image obtained by the pupil detection processing performed again. Then, the authentication device 400 performs authentication processing (step S120). The authentication process of step S120 is the same operation as the authentication process of step S120 in the first modification of the first exemplary embodiment.
[0135] Fig.14 1 is a flowchart illustrating an example of the operation of the light source control process of the authentication system 11 of the present modification. Fig.14 In the example of the operation in, first, the third detection unit 180 determines whether the pupil is detected at the pupil position in the visible image (step S141). In step S141, similar to the operation of step S132 of the determination unit 181 of the third variation of the first exemplary embodiment, the third detection unit 180 can determine whether the pupil is detected from the visible image. In the case where the pupil is detected from the visible image (step S142 is yes), the image processing device 102 terminates the light source control process. In the case where the pupil is not detected from the visible image (step S142 is no), the light source control unit 182 enhances the irradiated light of the light source 500 (step S143). Then, the image processing device 102 performs pupil detection processing (step S144). The pupil detection processing of step S144 can be the same as the pupil detection processing of step S100.
[0136] For example, in the case where the authentication part is the iris, the person to be imaged wears sunglasses, the absorption of near-infrared light by the sunglasses is not zero, and the brightness of the iris region in the near-infrared input image is reduced. The light source control unit 182 of this modification can increase the brightness of the iris region in the near-infrared input image by increasing the intensity of the near-infrared light emitted by the light source 500. If the brightness of the iris region is increased and a clear image of the iris is obtained, the accuracy of authentication is improved.
[0137] The image processing device 102 may be configured so that after the light source control unit 182 increases the intensity of the near-infrared light emitted by the light source 500, the first input unit 110 does not obtain a visible input image and the second input unit 120 obtains a near-infrared input image. In this case, the output unit 190 may be configured to output information about the pupil detected based on the visible input image and the near-infrared input image obtained first, and the near-infrared light input image obtained after the intensity of the emitted near-infrared light is increased.
[0138] The modifications of the first exemplary embodiment described above may be combined in any manner within the scope of possibility.
[0139] <<Second Exemplary Embodiment>>
[0140] Next, a second exemplary embodiment of the present disclosure is described in detail with reference to the drawings.
[0141] <<Configuration>>
[0142] Fig.15 1 is a block diagram illustrating an example of a configuration of the image processing apparatus 103 of the exemplary embodiment. The image processing apparatus 103 is Fig.15 The example of the configuration shown includes a first input unit 110 , a second input unit 120 , an adjustment unit 130 , an alignment unit 160 , a reversal unit 170 , a pupil detection unit 180 , and an output unit 190 .
[0143] The first input unit 110 receives a visible image of a face. The second input unit 120 receives a near-infrared image of a face. The adjustment unit 130 adjusts the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near-infrared image. The alignment unit 160 specifies the relative position of the visible image corresponding to the near-infrared image. The inversion unit 170 inverts the adjusted brightness of the visible image. The pupil detection unit 180 detects the area of the pupil from a composite image obtained by adding the visible image and the near-infrared image with brightness inverted based on the relative position. The output unit 190 outputs information about the detected pupil. The pupil detection unit 180 corresponds to the third detection unit 180 of the first exemplary embodiment.
[0144] <<Operation>>
[0145] Next, the operation of the image processing apparatus 103 of the exemplary embodiment is described in detail with reference to the drawings.
[0146] Fig.16 1 is a flowchart illustrating an example of the operation of the image processing apparatus 103 of the exemplary embodiment. Fig.16 In the example of the operation shown, first, the first input unit 110 obtains a visible image, and the second input unit 120 obtains a near-infrared image (step S201). The visible image corresponds to the visible input image of the first exemplary embodiment. The near-infrared image corresponds to the near-infrared input image of the first exemplary embodiment. Next, the adjustment unit 130 adjusts the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near-infrared image (step S202). The visible image of step S202 corresponds to the visible input image of the first exemplary embodiment. The method of adjusting the brightness of the visible image may be the same as the method in which the adjustment unit 130 of the first exemplary embodiment adjusts the brightness of the visible input image. The adjustment unit 130 may generate an adjusted visible image with adjusted brightness. Next, the alignment unit 160 performs alignment to specify the relative position of the visible image corresponding to the near-infrared image (step S203). The visible image of step S203 may be a visible image whose brightness is adjusted in step S202 (corresponding to the adjusted visible image of the first exemplary embodiment). Next, the inversion unit 170 inverts the pixel value of the adjusted visible image. The method by which the inversion unit 170 inverts the pixel value of the adjusted visible image may be the same as the method by which the inversion unit 170 of the first exemplary embodiment inverts the pixel value of the adjusted visible image. Then, the pupil detection unit 180 detects the area of the pupil from the composite image obtained by adding the pixel value of the visible image and the near-infrared pixel value based on the relative position (step S205). The visible image of step S205 is the adjusted visible image. Then, the output unit 190 outputs information about the detected pupil (step S206). The information about the pupil may be the same as the information about the pupil output by the output unit 190 of the first exemplary embodiment.
[0147] <<Effect>>
[0148] This exemplary embodiment has an effect of reducing the cost for detecting the pupil. The reason is the same as the reason why the effect of reducing the cost for detecting the pupil is obtained in the first exemplary embodiment.
[0149] <Another Exemplary Embodiment>
[0150] Each of the image processing devices and authentication devices according to the above exemplary embodiments of the present disclosure can be implemented by a computer including a memory loaded with a program read from a storage medium and a processor that executes the program. The computer can be implemented by a plurality of communicatively connected computers. For example, each of the image processing devices and authentication devices according to the above exemplary embodiments can also be implemented by dedicated hardware such as a circuit. Each of the image processing devices and authentication devices according to the above exemplary embodiments can also be implemented by a combination of the above-mentioned computer and dedicated hardware.
[0151] Fig.17 1 is a diagram illustrating an example of a hardware configuration of a computer 1000 that can implement the image processing apparatus and the authentication apparatus according to the above-described exemplary embodiment. Fig.17 In the example shown, the computer 1000 includes a processor 1001, a memory 1002, a storage device 1003, and an input / output (I / O) interface 1004. The computer 1000 can access a storage medium 1005. The memory 1002 and the storage device 1003 are storage devices such as a random access memory (RAM) and a hard disk. The storage medium 1005 is a storage device such as a RAM and a hard disk, a read-only memory (ROM), or a portable storage medium. The storage device 1003 can be a storage medium 1005. The processor 1001 can read / write data and programs from / in the memory 1002 and the storage device 1003. The processor 1001 can access, for example, other devices via the I / O interface 1004. The processor 1001 can access the storage medium 1005. The storage medium 1005 stores any program for operating the computer 1000 as an image processing device and an authentication device according to the above-described exemplary embodiments.
[0152] The processor 1001 loads a program stored in the storage medium 1005 into the memory 1002, the program causing the computer 1000 to operate as a device according to the above exemplary embodiment (i.e., an image processing device or an authentication device). Then, the processor 1001 executes the program loaded into the memory 1002, causing the computer 1000 to operate as the above device.
[0153] The first input unit 110, the second input unit 120, the adjustment unit 130, the first detection unit 140, the second detection unit 150, the alignment unit 160, the inversion unit 170, the third detection unit 180, and the output unit 190 may be implemented by the processor 1001 executing a program loaded into the memory 1002. The determination unit 181 and the light source control unit 182 may also be implemented by the processor 1001 executing a program loaded into the memory 1002. The pupil detection unit 180 may also be implemented by the processor 1001 executing a program loaded into the memory 1002.
[0154] Part or all of the first input unit 110, the second input unit 120, the adjustment unit 130, the first detection unit 140, the second detection unit 150, the alignment unit 160, the inversion unit 170, the third detection unit 180, and the output unit 190 may be implemented by a dedicated circuit. Part or all of the determination unit 181, the light source control unit 182, and the pupil detection unit 180 may also be implemented by a dedicated circuit.
[0155] A part or all of the above-described exemplary embodiments may be described as in the following supplementary notes, but are not limited to the following supplementary notes.
[0156] (Supplementary Note 1)
[0157] An image processing device, comprising:
[0158] a first input device for receiving a visual image of a face;
[0159] a second input device for receiving a near infrared image of a face;
[0160] An adjustment device for adjusting the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near infrared image;
[0161] an alignment device for specifying a relative position of the visible image with respect to the near infrared image;
[0162] an inversion device for inverting the adjusted brightness of the visible image;
[0163] pupil detection means for detecting a pupil area from a composite image obtained by adding a visible image and a near-infrared image whose brightness is inverted based on relative positions; and
[0164] Output means for outputting information about the detected pupil.
[0165] (Supplementary Note 2)
[0166] The image processing device according to Supplementary Note 1, comprising:
[0167] A first detection device for detecting a face from a visible image; and
[0168] The second detection device is used to detect the face from the near infrared image, wherein
[0169] In the case where a face is detected from both the visible image and the near-infrared image, the pupil detection means detects the area of the pupil.
[0170] (Supplementary Note 3)
[0171] The image processing apparatus according to Supplementary Note 1 or 2, wherein:
[0172] The adjustment device adjusts the pixel values of the visible image in such a manner that the distribution of the pixel values of the visible image approaches the distribution of the pixel values of the near-infrared image.
[0173] (Supplementary Note 4)
[0174] The image processing apparatus according to any one of Supplementary Notes 1 to 3, wherein
[0175] The adjustment device adjusts the pixel values of the visible image in such a manner that at least a portion of the shape of the frequency distribution of the visible image is close to the shape of the frequency distribution of the near-infrared image in a range of pixel values other than a first range including the darkest pixel value and a second range including the brightest pixel value of the near-infrared image.
[0176] (Supplementary Note 5)
[0177] The image processing device according to Supplementary Note 4, wherein
[0178] The adjustment device adjusts the pixel value of the visible image in such a manner that the pixel value indicated by the frequency peak in the first range from the darkest pixel value in the frequency distribution of the visible image is consistent with the pixel value indicating the frequency peak in the second range from the darkest pixel value in the frequency distribution of the near-infrared image.
[0179] (Supplementary Note 6)
[0180] The image processing device according to any one of Supplementary Notes 1 to 5, comprising:
[0181] The determining means is used to determine the wearing of sunglasses based on the pixel values of pixels in an area including the pupil area in the visible image.
[0182] (Supplementary Note 7)
[0183] The image processing device according to any one of Supplementary Notes 1 to 6, comprising:
[0184] Light source control means for controlling the intensity of light of a light source for irradiating a face with light based on pixel values of pixels in an area including an area of a pupil.
[0185] (Supplementary Note 8)
[0186] An image processing system, comprising the image processing device according to any one of Supplementary Notes 1 to 7, the image processing system further comprising:
[0187] a visual imaging device for capturing visual images; and
[0188] A near-infrared imaging device that captures near-infrared images.
[0189] (Supplementary Note 9)
[0190] An image processing method, comprising:
[0191] receiving a visual image of a face;
[0192] receiving a near infrared image of a face;
[0193] adjusting the brightness of the visible image based on the frequency distribution of pixel values of the visible image and the frequency distribution of pixel values of the near infrared image;
[0194] Specifying the relative position of the visible image with respect to the near infrared image;
[0195] Inverts the adjusted brightness of the visible image;
[0196] detecting a region of the pupil from a composite image obtained by adding a visible image and a near-infrared image whose brightness is inverted based on relative positions; and
[0197] Outputs information about the detected pupil.
[0198] (Supplementary Note 10)
[0199] The image processing method according to Supplementary Note 9 includes:
[0200] Detecting faces from visual images;
[0201] Detecting faces from near-infrared images, and
[0202] In the case where a face is detected from both the visible image and the near-infrared image, the area of the pupil is detected.
[0203] (Supplementary Note 11)
[0204] The image processing method according to Supplementary Note 9 or 10 includes:
[0205] The pixel values of the visible image are adjusted in such a manner that the distribution of the pixel values of the visible image approaches the distribution of the pixel values of the near-infrared image.
[0206] (Supplementary Note 12)
[0207] The image processing method according to any one of Supplementary Notes 9 to 11, comprising:
[0208] The pixel values of the visible image are adjusted in such a manner that at least a portion of the shape of the frequency distribution of the visible image is close to the shape of the frequency distribution of the near-infrared image in a range of pixel values other than a first range including the darkest pixel values and a second range including the brightest pixel values of the near-infrared image.
[0209] (Supplementary Note 13)
[0210] The image processing method according to Supplementary Note 12 includes:
[0211] The pixel value of the visible image is adjusted in such a manner that a pixel value indicated by a frequency peak in a first range from the darkest pixel value in the frequency distribution of the visible image is consistent with a pixel value indicating a frequency peak in a second range from the darkest pixel value in the frequency distribution of the near-infrared image.
[0212] (Supplementary Note 14)
[0213] The image processing method according to any one of Supplementary Notes 9 to 13, comprising:
[0214] Wearing of sunglasses is determined based on pixel values of pixels in an area including an area of the pupil in the visible image.
[0215] (Supplementary Note 15)
[0216] The image processing method according to any one of Supplementary Notes 9 to 14, comprising:
[0217] The intensity of light of a light source that irradiates the face with light is controlled based on the pixel values of pixels in an area including the area of the pupil.
[0218] (Supplementary Note 16)
[0219] A storage medium storing a program, the program causing a computer to execute:
[0220] receiving a first input process of a visual image of a face;
[0221] receiving a second input process of a near infrared image of a face;
[0222] An adjustment process of adjusting the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near infrared image;
[0223] An alignment process is performed to specify the relative position of the visible image to the near infrared image;
[0224] Inverting the adjusted brightness of the visible image;
[0225] pupil detection processing of detecting a region of the pupil from a composite image obtained by adding a visible image and a near-infrared image whose brightness is inverted based on relative positions; and
[0226] Output processing of outputting information about the detected pupil.
[0227] (Supplementary Note 17)
[0228] The storage medium according to Supplementary Note 16, wherein
[0229] The program causes the computer to further perform:
[0230] A first detection process of detecting a face from a visible image; and
[0231] a second detection process of detecting a face from a near infrared image, and
[0232] In the case where a face is detected from both the visible image and the near-infrared image, the pupil detection process detects the area of the pupil.
[0233] (Supplementary Note 18)
[0234] The storage medium according to Supplementary Note 16 or 17, wherein:
[0235] The adjustment process adjusts the pixel values of the visible image so that the distribution of the pixel values of the visible image approaches the distribution of the pixel values of the near-infrared image.
[0236] (Supplementary Note 19)
[0237] The storage medium according to any one of Supplementary Notes 16 to 18, wherein
[0238] The adjustment processing adjusts the pixel values of the visible image in such a manner that at least a portion of the shape of the frequency distribution of the visible image approaches the shape of the frequency distribution of the near-infrared image in a range of pixel values other than a first range including the darkest pixel values and a second range including the brightest pixel values of the near-infrared image.
[0239] (Supplementary Note 20)
[0240] The storage medium according to Supplementary Note 19, wherein
[0241] The adjustment process adjusts the pixel value of the visible image in such a manner that the pixel value indicated by the frequency peak in the first range from the darkest pixel value in the frequency distribution of the visible image is consistent with the pixel value indicating the frequency peak in the second range from the darkest pixel value in the frequency distribution of the near-infrared image.
[0242] (Supplementary Note 21)
[0243] The storage medium according to any one of Supplementary Notes 16 to 20, wherein
[0244] The program causes the computer to further perform:
[0245] The determination process of determining the wearing of sunglasses is performed based on the pixel values of pixels in an area including the area of the pupil in the visible image.
[0246] (Supplementary Note 22)
[0247] The storage medium according to any one of Supplementary Notes 16 to 21, wherein:
[0248] Programs cause the computer to further perform:
[0249] Light source control processing of controlling the intensity of light of a light source irradiating the light-utilizing face portion based on the pixel values of pixels in an area including the pupil area.
[0250] Although the present disclosure has been particularly shown and described with reference to exemplary embodiments thereof, the present disclosure is not limited to these exemplary embodiments. It will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present disclosure as defined by the claims.
[0251] Reference designator list
[0252] 1 Image Processing System
[0253] 2 Image Processing System
[0254] 10. Authentication System
[0255] 11. Authentication System
[0256] 100 Image processing equipment
[0257] 101 Image processing equipment
[0258] 102 Image processing equipment
[0259] 103 Image processing equipment
[0260] 110 First input unit
[0261] 120 Second input unit
[0262] 130 Adjustment unit
[0263] 140 First Detection Unit
[0264] 150 Second detection unit
[0265] 160 Alignment Unit
[0266] 170 Inversion Unit
[0267] 180 Third Detection Unit
[0268] 180 pupil detection unit
[0269] 181 Determine unit
[0270] 182 Light source control unit
[0271] 190 Output Units
[0272] 200 Visual imaging equipment
[0273] 300 Near-infrared imaging equipment
[0274] 400 Authentication Device
[0275] 410 Authentication Unit
[0276] 420 Second output unit
[0277] 500 Light Source
[0278] 1000 Computer
[0279] 1001 Processor
[0280] 1002 Memory
[0281] 1003 Storage Devices
[0282] 1004 I / O Interface
[0283] 1005 Storage Media
Claims
1. An image processing device, comprising: a first input device for receiving a visual image of a face; a second input device, the second input device being used to receive a near infrared image of the face; An adjustment device, the adjustment device being used to adjust the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near-infrared image; an alignment device, the alignment device being used to specify a relative position of the visible image with respect to the near infrared image; an inversion device for inverting the adjusted brightness of the visible image; pupil detection means for detecting a region of a pupil from a composite image obtained by adding the visible image whose brightness is inverted and the near-infrared image based on the relative position; as well as an output device for outputting information about the detected pupil, The alignment device specifies the relative position using pixels in the visible image and the near-infrared image, wherein there are no pixels with pixel values within a predetermined range including a peak value of a dark portion and no pixels with pixel values within a predetermined range including a peak value of a bright portion.
2. The image processing device according to claim 1, comprising: a first detection device, the first detection device being used to detect a face from the visible image; as well as A second detection device is used to detect a face from the near infrared image, wherein In the case where the face is detected from both the visible image and the near-infrared image, the pupil detection means detects a region of the pupil.
3. The image processing device according to claim 1 or 2, wherein The adjustment device adjusts the pixel values of the visible image in such a manner that the distribution of the pixel values of the visible image approaches the distribution of the pixel values of the near-infrared image.
4. The image processing apparatus according to claim 1 or 2, wherein The adjustment device adjusts the pixel values of the visible image in such a manner that at least a portion of the shape of the frequency distribution of the visible image approaches the shape of the frequency distribution of the near-infrared image in the range of pixel values excluding a first range including the darkest pixel value and a second range including the brightest pixel value of the near-infrared image.
5. The image processing apparatus according to claim 4, wherein The adjustment device adjusts the pixel value of the visible image in such a manner that a pixel value indicated by a frequency peak in a first range from the darkest pixel value in the frequency distribution of the visible image is consistent with a pixel value indicating a frequency peak in a second range from the darkest pixel value in the frequency distribution of the near-infrared image.
6. The image processing device according to claim 1 or 2, comprising: A determination device is used to determine the wearing of sunglasses based on the pixel values of the pixels in an area including the pupil area in the visible image.
7. The image processing device according to claim 1 or 2, comprising: A light source control device for controlling the intensity of light of a light source that irradiates the face with light based on the pixel values of the pixels in the area including the area of the pupil.
8. An image processing system, comprising the image processing device according to claim 1 or 2, the image processing system comprising: a visual imaging device for capturing said visual image; as well as A near infrared imaging device is provided to capture the near infrared image.
9. An image processing method, comprising: receiving a visual image of a face; receiving a near infrared image of the face; adjusting the brightness of the visible image based on the frequency distribution of pixel values of the visible image and the frequency distribution of pixel values of the near infrared image; specifying a relative position of the visible image with respect to the near infrared image; inverting the adjusted brightness of the visible image; detecting a region of a pupil from a composite image obtained by adding the visible image whose brightness is inverted and the near-infrared image based on the relative position; as well as outputting information about the detected pupil, The relative position is specified using pixels in the visible image and the near-infrared image that have no pixel values within a predetermined range including a peak value of a dark portion and no pixel values within a predetermined range including a peak value of a bright portion.
10. A storage medium storing a program, wherein the program causes a computer to execute: receiving a first input process of a visual image of a face; receiving a second input process of a near infrared image of the face; An adjustment process of adjusting the brightness of the visible image based on the frequency distribution of the pixel values of the visible image and the frequency distribution of the pixel values of the near infrared image; Specifying an alignment process of a relative position of the visible image to the near infrared image; an inversion process of inverting the adjusted brightness of the visible image; pupil detection processing of detecting a region of a pupil from a composite image obtained by adding the visible image whose brightness is inverted and the near-infrared image based on the relative position; as well as outputting processing for outputting information about the detected pupil, The relative position is specified using pixels in the visible image and the near-infrared image that have no pixel values within a predetermined range including a peak value of a dark portion and no pixel values within a predetermined range including a peak value of a bright portion.
