Image Processing Device
The image processing device corrects sensitivity differences among RGB pixels using a visible light attenuation filter and customized gain values, enabling high-resolution infrared imaging comparable to monochrome sensors, suitable for applications like driver monitoring systems.
Patent Information
- Application Number
- JP2021024632
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-18
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-02-18
AI Technical Summary
Existing color image sensors struggle to produce high-resolution infrared images due to sensitivity differences and visible light component variations among RGB pixels, leading to irregular brightness patterns.
An image processing device uses a visible light attenuation filter and calculates specific correction gain values for each RGB pixel to normalize luminance, generating a high-resolution monochrome image by correcting sensitivity differences.
This approach enables the stable production of high-resolution infrared images equivalent to those from monochrome IR sensors, reducing checkerboard patterns and enhancing image accuracy for applications like driver monitoring systems.
Smart Images

Figure 0007567542000001 
Figure 0007567542000002 
Figure 0007567542000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device. [Background technology]
[0002] Conventionally, there has been known a technique for detecting the presence, posture, state, etc. of an object (e.g., a person) captured in a captured image obtained by capturing an image of a target area, such as the inside of a vehicle, with a capturing unit (e.g., a camera), and using the detected data for device control, etc. In this case, the higher the resolution of the captured image, the better in order to achieve high accuracy in object detection.
[0003] In addition, for example, from the viewpoint of ensuring the resolution of the captured image and reducing the influence of ambient light, infrared lighting may be used both during the day and at night to capture an image in the infrared region (infrared image). In this case, for example, a monochrome image sensor that is sensitive to the infrared region may be used.
[0004] In addition, when considering image display on a display or image recognition using color information, it is desirable to obtain both RGB (Red, Green, Blue) images and infrared images. For example, when using a general color image sensor, each RGB pixel has sensitivity in the infrared region, so an RGB image can be obtained by using an infrared cut filter, and an infrared image can be obtained by using a visible light cut filter. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2007-184805 A [Patent Document 2] JP 2009-253447 A [Non-patent literature]
[0006] [Non-Patent Document 1] Yuichi Nonaka et al., "Near-infrared color simultaneous imaging and noise reduction method based on visual characteristics," Journal of the Institute of Image Information and Television Engineers, Vol. 73, No. 1, 2019, pp. 177-189 Summary of the Invention [Problem to be solved by the invention]
[0007] However, when using a general color image sensor to obtain an infrared image, there is a problem that it is not possible to obtain a high-resolution infrared image because each pixel color of RGB has a different sensitivity in the infrared region. In addition, there is also a problem that the sensitivity of each pixel color of RGB varies due to the contamination of visible light components.
[0008] SUMMARY OF THE PRESENT EMBODIMENTS Accordingly, one object of the present invention is to provide an image processing device capable of obtaining a high-resolution infrared image by utilizing an image captured by a color image sensor. [Means for solving the problem]
[0009] An image processing device according to an embodiment of the present invention includes an acquisition unit that acquires a captured image having at least a first pixel having a first color component and an infrared component of visible light, a second pixel having a second color component and an infrared component of visible light, and a third pixel having a third color component and an infrared component of visible light from an imaging unit that receives light from a target area illuminated with infrared light by an irradiation unit through a visible light attenuation filter, a calculation unit that calculates an average value of luminance of a plurality of the first pixels, an average value of luminance of a plurality of the second pixels, and an average value of luminance of a plurality of the third pixels for a predetermined range in the captured image, a first correction gain value to be multiplied by the first pixel, and a second correction gain value to be multiplied by the second pixel. The image capturing apparatus includes a determination unit that determines a positive gain value and a third correction gain value to be multiplied by the third pixel such that a ratio of the first correction gain value, the second correction gain value, and the third correction gain value is equal to a ratio of the reciprocal of an average luminance value of the first pixel, the reciprocal of the average luminance value of the second pixel, and the reciprocal of the average luminance value of the third pixel; and a generation unit that generates a monochrome image by using, for the specified range in the captured image, a value obtained by multiplying the luminance of each of the first pixels by the first correction gain value, a value obtained by multiplying the luminance of each of the second pixels by the second correction gain value, and a value obtained by multiplying the luminance of each of the third pixels by the third correction gain value.
[0010] According to this configuration, for example, when an image captured by a color image sensor is used, by performing a brightness correction calculation using the above-mentioned first correction gain value, second correction gain value, and third correction gain value, it is possible to reduce the influence of the difference in sensitivity in the infrared region between the first pixel, the second pixel, and the third pixel, and to obtain a high-resolution monochrome image (infrared image).
[0011] In the image processing device described above, for example, the determination unit determines the first correction gain value, the second correction gain value, and the third correction gain value at a predetermined cycle or when a predetermined condition is satisfied. According to this configuration, for example, the first correction gain value, the second correction gain value, and the third correction gain value are appropriately updated, so that a high-resolution monochrome image (infrared image) can be continuously obtained.
[0012] In the image processing device described above, for example, the calculation unit calculates an average value of luminance of the first pixels, an average value of luminance of the second pixels, and an average value of luminance of the third pixels when the luminance difference of the first pixels is equal to or less than a predetermined value for the predetermined range in the captured image. With this configuration, for example, when the predetermined range is solid and the need for luminance correction of each pixel is high, the correction can be performed.
[0013] In the above-mentioned image processing device, for example, the first color component is green, the second color component is red, and the third color component is blue. With this configuration, for example, when the three color components are the three primary colors of light, the above-mentioned correction can be performed. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a diagram showing an overall configuration of an image processing system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a schematic diagram showing a Bayer type RGB pixel array according to the embodiment. [Diagram 3] FIG. 3 is a graph showing the relationship between the wavelength and the sensitivity of an image signal according to the embodiment. [Figure 4] FIG. 4 is a schematic diagram of a captured image and an enlarged image according to the embodiment. [Diagram 5] FIG. 5 is a flowchart showing the processing by the image processing circuit according to the embodiment. [Figure 6] FIG. 6 is a schematic diagram showing a pixel arrangement of RGB-IR according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, an embodiment of an image processing system including an image processing device of the present disclosure will be described with reference to the drawings. The configuration of the embodiment described below and the actions and effects brought about by the configuration are merely examples, and the present invention is not limited to the following description. In the following embodiment, the image processing system is applied to a vehicle, as an example.
[0016] 1 is a diagram showing an overall configuration of an image processing system S according to an embodiment. The image processing system S includes a camera 1, an ECU 6, and an infrared ray irradiation unit 7 (irradiation unit).
[0017] The ECU 6 controls various devices in the vehicle. The ECU 6 is composed of, for example, a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), an SSD (Solid State Drive), etc. The CPU reads out programs stored in a non-volatile storage device such as a ROM, and executes various arithmetic processing according to the programs.
[0018] The RAM temporarily stores various data used in the calculations of the CPU. The SSD is a rewritable non-volatile storage unit, and can store data even when the power supply of the ECU 6 is turned off. The ECU 6 may be configured to use other logical calculation processors such as a DSP (Digital Signal Processor) or logical circuits instead of the CPU. A HDD (Hard Disk Drive) may be provided instead of the SSD, or the SSD and HDD may be provided separately from the ECU 6. An ECU other than the ECU 6 may be provided in the vehicle.
[0019] For example, the ECU 6 controls the camera 1 and the infrared irradiation unit 7 to capture images of the interior of the vehicle cabin, acquires captured images, detects the presence, posture, state, etc. of objects captured in the captured images, and controls various devices based on the detection data via the in-vehicle network 8. The in-vehicle network 8 is configured as, for example, a CAN (Controller Area Network).
[0020] Therefore, it is desirable to place the camera 1 and the infrared irradiation unit 7 at a position where the interior of the vehicle can be viewed. For example, the camera 1 and the infrared irradiation unit 7 are placed at the center of the upper inside part of the front window of the vehicle, but are not limited thereto. The camera 1 and the infrared irradiation unit 7 may be configured as an integrated camera unit.
[0021] The infrared irradiating unit 7 is, for example, an LED (Light Emitting Diode) light that irradiates infrared rays. The irradiation angle and irradiation intensity of the infrared irradiating unit 7 are set so that the infrared light can be irradiated to an area including at least the area to be photographed by the camera 1.
[0022] The camera 1 mainly comprises a lens 2, a visible light attenuation filter 3, a color image sensor 4 (imaging section), and an image processing circuit 5. The lens 2 is a convex lens that serves as a light collecting means.
[0023] The visible light attenuation filter 3 is a filter that attenuates the visible light that passes through it. For example, the visible light attenuation filter 3 attenuates the visible light that passes through it by about 10%. By using such a visible light attenuation filter 3, it is possible to obtain the sum of the infrared component and the reduced visible light component as the luminance (details will be described later). Note that the visible light attenuation filter 3 may be disposed outside the lens 2 (upper side in FIG. 1).
[0024] The color image sensor 4 is a Bayer type RGB image sensor. Normally, even RGB image sensors have IR (Infrared) sensitivity. For example, a typical color camera uses a Bayer type RGB image sensor and is equipped with an IR cut filter in the optical system, and detects the single colors of R, G, and B not including IR at each pixel. Figure 2 is a schematic diagram showing a Bayer type RGB pixel array of the embodiment.
[0025] Next, Fig. 3 is a graph showing the relationship between the wavelength and sensitivity of an image signal in the embodiment. In Fig. 3, the horizontal axis is the wavelength of the image signal, and the vertical axis is the sensitivity of the image signal. Note that Fig. 3 is a rough graph, not a strict graph.
[0026] In this embodiment, the visible light is attenuated by the visible light attenuation filter 3 to, for example, about 10%, and then received by the color image sensor 4. Lines L1, L2, and L3 indicate the R output, G output, and B output, respectively, which have sensitivity differences near the boundary between visible light and infrared light. Therefore, differences in luminance output for each pixel color (RGB) may occur. Also, luminance differences for each pixel color (RGB) occur when visible light is incident.
[0027] FIG. 4 is a schematic diagram of a captured image and an enlarged image (hereinafter, both are also referred to as "images") in the embodiment. The image in FIG. 4 is a monochrome image that is converted using the brightness of each pixel based on the RGB output, and is an image before correction, which will be described later. Enlarged image B is an enlarged portion of captured image A. In enlarged image B, when focusing on RGB, as described above, there is a sensitivity difference near the boundary between visible light and infrared light for the R output, G output, and B output, and also a brightness difference occurs when visible light is incident, so that an area that is actually plain turns into a checkerboard pattern. The correction for changing this checkerboard pattern to a plain will be described below.
[0028] Returning to Fig. 1, the image processing circuit 5 includes a processing unit 51 and a storage unit 52. The storage unit 52 stores various information for the processing unit 51 to operate, various calculation results, and the like.
[0029] The processing unit 51 includes, as its functional components, an acquisition unit 511, a calculation unit 512, a determination unit 513, a generation unit 514, and a control unit 515.
[0030] The acquisition unit 511 acquires various information from the color image sensor 4 and the ECU 6. For example, the acquisition unit 511 acquires a captured image from the color image sensor 4 that receives light (visible light, infrared light) from a capture target area irradiated with infrared light by the infrared irradiation unit 7 through the visible light attenuation filter 3. The captured image has at least a first pixel having a first color component and an infrared component of visible light, a second pixel having a second color component and an infrared component of visible light, and a third pixel having a third color component and an infrared component of visible light. For example, the first color component is green (G), the second color component is red (R), and the third color component is blue (B). Note that the captured image may have a fourth component (only IR), as will be described in a modified example below.
[0031] The calculation unit 512 calculates an average luminance value of a plurality of first pixels (G), an average luminance value of a plurality of second pixels (R), and an average luminance value of a plurality of third pixels (B) for a specified range in the captured image.
[0032] The predetermined range for which the brightness of the captured image is to be corrected may be the entire range of the captured image, each of the predetermined divided areas, or a range determined to be a plain area.
[0033] When the calculation unit 512 determines that a predetermined range in the captured image is, for example, a plain area, it calculates the average luminance value of a plurality of first pixels (G), the average luminance value of a plurality of second pixels (R), and the average luminance value of a plurality of third pixels (B).
[0034] The blank area may be, for example, a wall or ceiling part in the area to be photographed. Therefore, for example, the average brightness and variance (histogram) within the calculation area (for example, 6×6 pixels, 8×8 pixels, etc.) of the photographed image are calculated for each RGB color component, and the area with little brightness change is determined to be a blank area. Note that only one type of pixel, such as only G pixels (hereinafter simply referred to as "G") among RGB, may be used for the calculation. In other words, for example, when the brightness difference between multiple first pixels (G) is equal to or less than a predetermined value, it may be determined to be a blank area.
[0035] When only G is used in the calculation, the blank area is determined, for example, as follows. First, the average brightness value of G (Gave) in the calculation target region is calculated. Next, the maximum brightness value of G (Gmax) in the calculation target region is calculated. Next, the minimum luminance value of G (Gmin) in the calculation target region is calculated. Set the threshold (Cg) to a value of about 10% to 20% of Gave.
[0036] If the condition "Gmax-Gmin<threshold (Cg)" is satisfied, it is determined to be a blank area. In order to remove noise components, it is preferable to remove maximum and minimum values that are not within a predetermined range, or to calculate them from variance or deviation (σ).
[0037] Moreover, a similar determination may be made for R and B, and if the conditions are satisfied for all of RGB, it may be determined that the area is a blank area.
[0038] The determination unit 513 determines a first correction gain value to be multiplied by the first pixel (G), a second correction gain value to be multiplied by the second pixel (R), and a third correction gain value to be multiplied by the third pixel (B) such that the ratio of the first correction gain value, the second correction gain value, and the third correction gain value is equal to the ratio of the reciprocal of the average luminance value of the first pixel (G), the reciprocal of the average luminance value of the second pixel (R), and the reciprocal of the average luminance value of the third pixel (B).
[0039] For example, the first correction gain value is Gg, the second correction gain value is Gr, and the third correction gain value is Gb. In addition, the average value of the luminance of the first pixel (G) is [G], the average value of the luminance of the second pixel (R) is [R], and the average value of the luminance of the third pixel (B) is [B].
[0040] In that case, for example, each correction gain value can be calculated using G as a reference as follows. Gg = [G] / [G] = 1 Gr=[G] / [R] Gb = [G] / [B]
[0041] The timing when the determination unit 513 newly determines (updates) the first correction gain value, the second correction gain value, and the third correction gain value is a predetermined period or when a predetermined condition is satisfied. The reason for performing the update is as follows.
[0042] Although infrared light is used for shooting, the visible light is not completely cut off by the visible light attenuation filter 3. As the light environment changes from moment to moment, the visible light component is disturbance light, and the light intensity ratio of the visible / infrared components received by the color image sensor 4 is not constant but may change. Therefore, the appropriate correction gain values may also change, so it is preferable to update each correction gain value as appropriate.
[0043] The predetermined cycle is, for example, every frame, every few seconds, every few minutes, etc. Furthermore, when a predetermined condition is satisfied, it is when a change in the light environment of the photographing target area is detected, and specifically, for example, when any of the following (1) to (3) occurs.
[0044] (1) Change in average brightness in the captured image (whole image, each correction area) (2) Changes in camera exposure time (detect changes in light intensity) (3) Changes in the brightness histogram (entire image, each correction area)
[0045] Note that, for example, under conditions where there is almost no visible light, such as at night, the correction gain values are unlikely to change significantly, so it is possible not to update the correction gain values.
[0046] The generating unit 514 generates a monochrome image by using a value obtained by multiplying the luminance of each first pixel (G) by a first correction gain value, a value obtained by multiplying the luminance of each second pixel (R) by a second correction gain value, and a value obtained by multiplying the luminance of each third pixel (B) by a third correction gain value for a predetermined range in the captured image. This makes the average luminance values of RGB after correction consistent, thereby suppressing a checkerboard pattern caused by sensitivity differences between RGB.
[0047] In the above calculation example, each correction gain value is 1 or a value close to 1. Therefore, for example, a normal range for each correction gain value may be determined, and if the normal range is exceeded, a warning may be issued indicating that some kind of problem has occurred. The normal range may be determined, for example, from the maximum sensitivity difference between the colors of the color image sensor 4, the characteristics of the visible light attenuation filter 3, etc.
[0048] The control unit 515 performs processes and controls other than the processes performed by the units 511 to 514. For example, the control unit 515 causes the storage unit 52 to store the monochrome image generated by the generation unit 514, or transmits the same to the ECU 6. The control unit 515 also causes the storage unit 52 to store a color image based on the RGB output from the color image sensor 4, or transmits the same to the ECU 6.
[0049] 5 is a flowchart showing the process performed by the image processing circuit 5 of the embodiment. First, in a state in which the infrared irradiation unit 7 is irradiating the imaging target area with infrared light, the acquisition unit 511 acquires a captured image from the color image sensor 4 in step S1.
[0050] Next, in step S2, control unit 515 performs black level correction on the captured image acquired in step S1.
[0051] Next, in step S3, the calculation unit 512 cuts out a processing area for the captured image.
[0052] Next, in step S4, the processing unit 51 determines whether it is time for correction. That is, the processing unit 51 determines that it is time for correction when the above-mentioned predetermined period or the above-mentioned predetermined condition is satisfied.
[0053] Next, in step S5, the calculation unit 512 extracts a correction area in the captured image. For example, as described above, the range determined to be a plain area in the captured image is set as the correction area.
[0054] Next, in step S6, the calculation unit 512 calculates the average luminance (average luminance value) for each pixel color (RGB) for the correction area in the captured image.
[0055] Next, in step S7, the determination unit 513 determines a correction gain value for each pixel color (RGB).
[0056] Next, in step S8, the generation unit 514 multiplies the luminance by the correction gain value for each RGB pixel to generate a monochrome image.
[0057] In this way, according to the image processing system S of this embodiment, when using an image captured by the color image sensor 4, the above-mentioned first correction gain value Gg, second correction gain value Gr, and third correction gain value Gb are used to perform luminance correction calculations, thereby reducing the influence of the difference in sensitivity in the infrared region between the first pixel (G), the second pixel (R), and the third pixel (B), and a high-resolution monochrome image (infrared image) can be obtained. In other words, since the average luminance values of RGB after correction are the same, checkerboard patterns due to the sensitivity differences between RGB can be suppressed.
[0058] Therefore, it is possible to stably obtain infrared images with a high resolution equivalent to that of a monochrome IR image sensor using a commonly available color image sensor 4. This technology can be applied to a DMS (Driver Monitoring System), for example.
[0059] For example, such high-resolution monochrome images can be used to detect the presence, posture, state, etc. of an object (e.g., a person) captured within the shooting target area, and the detection data can be used for device control, etc. Specifically, for example, when recognizing the line of sight of a vehicle occupant by image processing, Purkinje images and pupils can be detected with high accuracy.
[0060] Moreover, by appropriately updating the first correction gain value Gg, the second correction gain value Gr, and the third correction gain value Gb, it is possible to continuously obtain high-resolution monochrome images (infrared images).
[0061] Furthermore, when the predetermined range is a solid color and the need for luminance correction of each pixel is high, the correction can be performed.
[0062] Moreover, the above-mentioned correction can be performed when the three color components are the three primary colors of light.
[0063] In addition, by using the visible light attenuation filter 3, it is possible to obtain both an infrared image and a color image (RGB image) without exchanging a visible light blocking filter and an infrared blocking filter as in the conventional technology, that is, to obtain the sum of the infrared component and the component with reduced visible light as brightness. The color image can be used for image recognition using color information and display on a display, and can contribute to adding sensing and recognition functions and improving accuracy that were not possible with conventional configurations.
[0064] (Modification) Modifications will be described below. In the above embodiment, the case of a Bayer type RGB pixel array as shown in FIG. 2 has been described. The present invention is not limited to this, and can also be applied to the case of an RGB-IR pixel array. In other words, an RGB-IR image sensor can be used as the color image sensor 4 instead of the RGB image sensor of the Bayer array. This RGB-IR image sensor does not have an IR cut filter, and is provided with pixels that are sensitive only to IR so that only the RGB components can be extracted from the detected signal.
[0065] FIG. 6 is a schematic diagram showing a pixel array of an RGB-IR modified example. Each RGB pixel generally has sensitivity in the IR region with approximately the same characteristics as an IR-only pixel (fourth pixel). Therefore, the RGB output from an RGB-IR image sensor can be expressed as "R+IR", "G+IR", and "B+IR". Therefore, by subtracting the IR component from the RGB output, it is possible to extract each RGB color.
[0066] Furthermore, the time when the above-mentioned predetermined condition is satisfied may be, for example, the time (4) below. (4) When the ratio of the average brightness of the IR pixel to the average brightness of each of the R, G, and B pixels exceeds a certain level (for the entire image or for each correction area).
[0067] The program executed by the image processing circuit 5 of this embodiment may be configured to be provided by recording it on a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disk) in the form of an installable or executable file.
[0068] Furthermore, the program may be configured to be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Also, the program may be configured to be provided or distributed via a network such as the Internet.
[0069] Although the embodiments and modifications of the present invention have been described, these embodiments and modifications are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims.
[0070] For example, when separate correction gain values are calculated for two adjacent plain areas in a captured image, the correction gain value may be gradually changed at the boundary portion.
[0071] Further, part of the functions of the image processing device may be realized by the ECU 6 . [Explanation of symbols]
[0072] 1...camera, 2...lens, 3...visible light attenuation filter, 4...color image sensor, 5...image processing circuit, 6...ECU, 7...infrared irradiation unit, 8...in-vehicle network, 51...processing unit, 52...storage unit, 511...acquisition unit, 512...calculation unit, 513...determination unit, 514...generation unit, 515...control unit, S...image processing system
Claims
1. an acquisition unit that acquires a captured image having at least a first pixel having a first color component and an infrared component of visible light, a second pixel having a second color component and an infrared component of visible light, and a third pixel having a third color component and an infrared component of visible light from an imaging unit that receives light from a target area illuminated with infrared light by an illumination unit through a visible light attenuation filter; a calculation unit that calculates an average value of luminance of a plurality of the first pixels, an average value of luminance of a plurality of the second pixels, and an average value of luminance of a plurality of the third pixels for a predetermined range in the captured image; a determination unit that determines a first correction gain value by which the first pixel is multiplied, a second correction gain value by which the second pixel is multiplied, and a third correction gain value by which the third pixel is multiplied, such that a ratio of the first correction gain value, the second correction gain value, and the third correction gain value is equal to a ratio of a reciprocal of an average value of luminance of the first pixel, a reciprocal of an average value of luminance of the second pixel, and a reciprocal of an average value of luminance of the third pixel; and a generation unit that generates a monochrome image by using, for the specified range in the captured image, a value obtained by multiplying a luminance of each of the first pixels by the first correction gain value, a value obtained by multiplying a luminance of each of the second pixels by the second correction gain value, and a value obtained by multiplying a luminance of each of the third pixels by the third correction gain value.
2. The image processing device according to claim 1 , wherein the determination unit newly determines the first correction gain value, the second correction gain value, and the third correction gain value at a predetermined cycle or when a predetermined condition is satisfied.
3. 2. The image processing device according to claim 1, wherein the calculation unit calculates an average luminance value of the first pixels, an average luminance value of the second pixels, and an average luminance value of the third pixels for the specified range in the captured image when a luminance difference between the first pixels is equal to or less than a specified value.
4. The image processing apparatus of claim 1 , wherein the first color component is green, the second color component is red, and the third color component is blue.
Citation Information
Patent Citations
Color image reproducing device
JP2007184805A
Solid state image sensor for both near-infrared light and visible light, and solid-state imaging apparatus
JP2009253447A
Information input device, information input / output device, and electronic device
JP2010198601A
Solid-state imaging element and image input device
JP2011166477A
Imaging device
JP2017005484A
