Occupant monitoring device
The occupant monitoring device uses near-infrared and color images, converting to YUV format and applying brightness thresholds, to stabilize facial recognition under varying lighting conditions, addressing ambient light disturbances and enhancing accuracy.
Patent Information
- Application Number
- JP2020217265
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-12-25
AI Technical Summary
Existing occupant monitoring systems face challenges in robustly recognizing vehicle occupants due to disturbances from ambient light, such as sunlight and street lamps, which affect the brightness and darkness on the occupant's face, making it difficult to accurately identify facial features.
An occupant monitoring device that acquires both near-infrared and color images, converting RGB images to YUV format, and selectively uses near-infrared or YUV images based on brightness thresholds to stabilize facial recognition, dividing face areas into sub-regions for precise luminance calculations.
The solution effectively suppresses the influence of ambient light, enabling stable facial feature recognition and accurate occupant monitoring, even under varying lighting conditions, while reducing computational load and maintaining cost-effectiveness.
Smart Images

Figure 0007533208000004 
Figure 0007533208000009 
Figure 0007533208000005
Abstract
Description
[Technical field]
[0001] The present invention relates to an occupant monitoring system. [Background technology]
[0002] Patent Document 1 describes an imaging control device for a vehicle. In this imaging control device for a vehicle, a mode selection unit uses vehicle information to select a processing mode for monitoring a passenger, and a region selection unit selects a region corresponding to the selected processing mode. Then, an exposure control unit uses luminance information of the selected region to calculate an exposure condition to be set in the imaging unit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2018 / 158809 Summary of the Invention [Problem to be solved by the invention]
[0004] When monitoring vehicle occupants using images of the occupants, near-infrared images alone may not be sufficient to maintain robustness against disturbance light. Even if color images are used, there is a problem that it is difficult to recognize the faces in the images because disturbance light such as sunlight and streetlights shine on the faces of the occupants while the vehicle is moving, causing the brightness of the face surface to change from moment to moment.
[0005] SUMMARY OF THE PRESENT EMBODIMENT An object of the present invention is to suppress the influence of external light in monitoring vehicle occupants. [Means for solving the problem]
[0006] In order to achieve the above object, the occupant monitoring device according to the present invention includes an acquisition unit that acquires a near-infrared image and a color image in which an occupant of a vehicle is captured, the color image being an RGB image or a YUV image, a selection unit that converts the RGB image into a YUV image when the color image is an RGB image and selects either the near-infrared image or the YUV image, and a determination unit that determines the state of the occupant by using the near-infrared image or the YUV image selected by the selection unit. The selection unit divides an area in the YUV image in which the face of the occupant is captured into a plurality of sub-areas, calculates an average value of luminance values of pixels included in each of the plurality of sub-areas, and selects the near-infrared image if the average value is equal to or greater than a predetermined threshold value, and selects the YUV image if the average value is below the threshold value. Effect of the Invention
[0007] According to the present invention, the influence of external light on monitoring vehicle occupants can be suppressed. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a configuration of an occupant monitoring system; [Diagram 2] FIG. 4 is an explanatory diagram showing a first threshold value and a second threshold value of a luminance value (Y component). [Diagram 3] 4 is a flowchart showing a flow of processing performed by an occupant monitoring device. [Figure 4] 13 is a flowchart showing a flow of a first determination process. [Diagram 5] 13 is a flowchart showing a flow of a second determination process. [Figure 6] FIG. 2 is an explanatory diagram showing an area in which the face of an occupant is photographed. [Figure 7] FIG. 10 is an explanatory diagram showing a state in which an area showing an occupant's face is divided into a plurality of sub-areas. [Figure 8] FIG. 11 is another explanatory diagram showing the area in which the face of the occupant is photographed. [Figure 9]FIG. 11 is another explanatory diagram showing a state in which the area showing the face of the occupant is divided into a plurality of sub-areas. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the present invention will be described based on the illustrated embodiment, however, the present invention is not limited to the embodiment described below.
[0010] FIG. 1 shows an occupant monitoring system 1 mounted on a vehicle. The occupant monitoring system is also called a driver monitoring system (DMS). The occupant monitoring system 1 comprises a camera 2 and an occupant monitoring device 3 that are communicatively connected. The camera 2 is installed near the driver's seat of the vehicle and captures images of the occupants of the vehicle. The occupant monitoring device 3 acquires images captured by the camera 2 and monitors the occupants based on the images. The occupant monitoring device 3 comprises an acquisition unit 31, a selection unit 32, and a determination unit 33. The processing performed by each unit will be described later. The occupant monitoring device 3 is realized by computer hardware, and comprises an arithmetic processing unit, a storage device, and an interface for external communication.
[0011] In the passenger monitoring system 1, passengers are monitored using near-infrared images and color images. Either a near-infrared image or a YUV format image (YUV image) is selected according to the luminance value of the image, and the selected image is used to monitor the passengers. If the color image captured by the camera 2 is an RGB format image (RGB image), the RGB image can be converted to a YUV image based on the ITU-R BT.601 standard defined by the ITU (International Telecommunications Union).
[0012] In near-infrared images, it is sometimes impossible to determine from pixel values whether a color is gray or red.
[0013] Therefore, as long as the luminance value (brightness of the occupant's face) of the area in which the occupant's face is captured is within an appropriate range that does not cause any problems in recognizing the occupant's face, the near-infrared image is used. On the other hand, when the luminance value is outside the predetermined range, that is, when it is considered that the luminance value may adversely affect occupant recognition, the YUV image is used. In the YUV image, the color component value and the luminance value are separated, and the influence of the brightness component on the color component value is small, so that it is possible to appropriately recognize the feature points of the occupant's face even if the luminance value is outside the predetermined range.
[0014] FIG. 2 shows the first and second thresholds for the luminance value (Y component) in a YUV image. Both the first and second thresholds are positive values, and the first threshold is smaller than the second threshold. When the luminance value is equal to or greater than the first threshold and equal to or less than the second threshold, the luminance value is deemed to be within the appropriate range, and the near-infrared image is used. When the luminance value is below the first threshold or above the second threshold, the luminance value is deemed to be outside the appropriate range, and the YUV image is used.
[0015] As an example, the first threshold value may be set to a value equivalent to 20% to 30% of the system upper limit value of the luminance value, and the second threshold value may be set to a value equivalent to 80% of the system upper limit value. The first threshold value and the second threshold value may be stored in a storage device in the occupant monitoring device 3.
[0016] FIG. 3 shows the flow of processing performed by the occupant monitoring device 3. This processing is performed periodically while the vehicle is traveling. In step S1, the acquisition unit 31 acquires a near-infrared image and a color image obtained by the camera 2. The color image is an RGB image or a YUV image. Furthermore, in the same step, the selection unit 32 judges whether or not a first judgment flow has been established. The first judgment flow will be described later. If it is determined that the first judgment flow has not been established, step S2 is next performed, and if it is determined that the first judgment flow has been established, step S4 is next performed.
[0017] In step S2, the selection unit 32 judges whether the second judgment flow is established. The details of the second judgment flow will be described later. If it is judged that the second judgment flow is not established, step S3 is performed next, and if it is judged that the second judgment flow is established, step S4 is performed next.
[0018] In step S3, the selection unit 32 selects a near-infrared image as an image to be used for passenger monitoring. In step S4, the selection unit 32 selects an image in YUV format as an image to be used for passenger monitoring. In step S5, the determination unit 33 determines the state of the passenger using the image selected in step S3 or step S4.
[0019] Details of the first determination flow in step S1 are shown in Fig. 4. In step S11, the selection unit 32 attempts to recognize the face of the occupant captured in the near-infrared image or color image captured by the camera 2, and then determines whether or not the face has been recognized. If it is determined that the face has been recognized, step S12 is then performed, and if not, step S11 is performed again.
[0020] In step S12, if the color image obtained by the camera 2 is an RGB image, the selection unit 32 converts the RGB image into a YUV image. This allows the Y value, i.e., the brightness value, to be obtained. Note that if the color image obtained by the camera 2 is a YUV image, this step does not need to be performed.
[0021] In step S13, the selection unit 32 calculates the average value of the Y components of pixels included in the face region of the YUV image, which corresponds to the face region of the occupant recognized in the near-infrared image. In this way, it is possible to determine the blown-out highlight state of the image obtained by the camera 2. It is also possible to appropriately recognize and determine the face of the occupant. Note that in order to prevent recognition failure due to extreme brightness in some areas, the face region may be divided into multiple regions, and the average value of the Y components may be calculated for each region.
[0022] In step S14, the selection unit 32 judges whether the average value of the Y component calculated in step S13 exceeds the second threshold value. If the judgment result is "YES", it is determined that the luminance is high and judgment using the near-infrared image is not appropriate, and step S15 is performed next; otherwise, step S11 is performed again.
[0023] In step S15, the selection unit 32 assigns a value obtained by adding 1 to the timer variable K to the timer variable K. This timer variable is a variable for determining whether the average value of the Y component in the occupant's face area is continuously greater than the second threshold value over a plurality of frames. The initial value of the timer variable K is 0. In addition, when a predetermined time has elapsed since the timer variable K was updated, the timer variable K is reset to 0.
[0024] In step S16, the selection unit 32 selects whether the timer variable K is equal to or smaller than a preset timer variable threshold K TH If the result of this determination is "YES", step S17 is carried out, and if not, step S11 is carried out again.
[0025] As an example, the timer variable threshold K TH can be set to 2. If the frame counter is used and the image is not stably visible for three or more frames (i.e., the determination result of step S14 is "YES" for three or more frames), the determination result of step S16 becomes "YES" and step S17 is performed. As a result, even if there are several frames for which the determination result of step S14 is "YES", as long as the determination result of step S16 is "NO", the occupant is determined using the near-infrared image instead of the YUV image. Note that the timer variable K TH The value of can also be variable.
[0026] In step S17, the selection unit 32 determines that the condition for switching from the near-infrared image to the YUV image is met. That is, the selection unit 32 sets a flag related to the use of the YUV image. Note that it is also possible to set a predetermined valid period for the flag, and change the flag to unset when the predetermined valid period has elapsed since the flag was set. This allows the YUV image to be used only when necessary, thereby maintaining the accuracy of recognizing the occupant's face.
[0027] Details of the second determination flow in step S2 are shown in Fig. 5. In step S21, the selection unit 32 attempts to recognize the face of the occupant captured in the near-infrared image or color image captured by the camera 2, and then determines whether or not the face has been recognized. If it is determined that the face has been recognized, step S22 is then performed, and if not, step S21 is performed again.
[0028] In step S22, if the color image obtained by the camera 2 is an RGB image, the selection unit 32 converts the RGB image into a YUV image. This allows the Y value, i.e., the brightness value, to be obtained. Note that if the color image obtained by the camera 2 is a YUV image, this step does not need to be performed.
[0029] In step S23, the selection unit 32 divides the area of the YUV image corresponding to the face area recognized in the near-infrared image into a plurality of sub-areas. For example, based on the area of a rectangular area including the area in which the face is captured, the area 6 in which the occupant's face 5 is captured can be divided into 4 sub-areas in the horizontal direction and 4 sub-areas in the vertical direction, totaling 16 sub-areas, as shown in Figs. 6 and 7. In this case, the 16 sub-areas D 11 ~D 14 , D 21 ~D 24 , D 31 ~D 34 , and D 41 ~D 44 is obtained.
[0030] Alternatively, each part of the occupant's face 5, i.e., the right eyebrow 51, the left eyebrow 52, the right eye 53, the left eye 54, the nose 55, and the lips 56, may be recognized, and the region 6 may be divided into a plurality of sub-regions so that each part is included in a single sub-region (so that each part does not span a plurality of sub-regions). 11 , E 21 , E 22 , E 31 ~E 34 , E 41 ~E 43 , E 51 ~E 53 , and E 61 The figure shows how the image is divided into
[0031] Sub-area E 11 are provided so as to include the areas above the right eyebrow 51 and left eyebrow 52 of the occupant. Sub-area E 21 is provided to include the right eyebrow 51, and the sub-region E 22 is positioned to include the left eyebrow 52. Sub-area E 31 is provided to include the right side of the right eye 53 as seen from the occupant, and sub-region E 32 is provided to include the right eye 53. 33 is provided to include the left eye 54, and sub-region E 34 is provided so as to include the area of the left eye 54 on the left side as viewed from the occupant. Sub-area E 41 is provided to include a right side portion of the nose 55 as viewed from the occupant, and the sub-region E 42 is provided to include the nose 55, and the sub-region E 43 is provided so as to include the left portion of the nose 55 as viewed from the occupant. Sub-area E 51 is provided to include a portion of the lips 56 on the right side as viewed from the occupant, and sub-region E 52 is provided to include the lips 56, and the sub-region E 53 is provided so as to include the left side portion of the lips 56 as viewed from the occupant. Sub-area E 61 is provided to include the area below the lips 56.
[0032] When the division as shown in Figures 8 and 9 is performed, sub-regions are formed according to specific parts of the face, so that the luminance can be determined more easily than when the division as shown in Figures 6 and 7 is performed. For example, when the lips straddle multiple sub-regions as shown in Figure 6, the computational load for determining whether or not the facial recognition of the occupant is affected may increase, but this can be avoided by performing the division as shown in Figures 8 and 9.
[0033] Thus, in step S23, the area of the YUV image corresponding to the face area recognized in the near-infrared image is divided into a plurality of sub-areas.
[0034] In step S24, the selection unit 32 calculates the average value of the Y component for each sub-region obtained in step S23.
[0035] In step S25, the selection unit 32 determines whether or not the average value of the Y component calculated for each sub-region in step S24 is below the first threshold value. If n average values among the multiple average values corresponding to the multiple sub-regions respectively are below the first threshold value, the determination result can be "YES", where n is a natural number that is determined in advance. Alternatively, a sub-region including parts such as the eyes and mouth that are important for passenger monitoring (in the example of FIG. 9, sub-region E 32 , E 33 , and E 52 ) falls below the first threshold, the determination result in step S25 may be "YES" regardless of the average values of the Y components of the other sub-regions. If the determination result in this step is "YES", it is determined that the luminance is low and therefore determination using the near-infrared image is not appropriate, and step S26 is then performed; otherwise, step S21 is performed again.
[0036] In step S26, the selection unit 32 determines that the condition for switching from the near-infrared image to the YUV image has been met. That is, the selection unit 32 sets a flag related to the use of the YUV image. Note that it is also possible to set a predetermined validity period for the flag, and change the flag to an unset state when the predetermined validity period has elapsed since the flag was set. This allows the YUV image to be used only when necessary, thereby maintaining the accuracy of recognizing the occupant's face.
[0037] According to the above-described embodiment, since a color image is used, it is possible to perform occupant monitoring using color, such as biometric authentication, and since a near-infrared image or a YUV image is selected according to the brightness value, it is possible to reduce the adverse effects of ambient light on monitoring.
[0038] New applications using color will also be available, such as diagnosing the condition of passengers, determining whether they are hot or cold from their facial color, and changing the temperature settings of the air conditioner.
[0039] In terms of cost, the system can be configured like a conventional driver monitoring system (camera, LED, ECU) by simply adding a sensor with a color filter to colorize the camera and a dual-path filter (a filter that allows visible and near-infrared light to pass through).Since there is no need to add a color camera as a separate component, costs can be kept down despite the fact that the number of applications can be increased.
[0040] When performing color processing, if a separate ISP (Image Signal Processor) is required, it may be added to the camera 2 or the occupant monitoring device 3 .
[0041] By using a monocular camera (Bayer array is RGBC (or RGBW)) and a dual pass filter, it is possible to simultaneously capture a color image and a conventional near-infrared image. Then, a camera is configured that performs internal image processing in the ISP and can output color images and near-infrared images alternately (for example, color images for even frames and near-infrared images for odd frames).
[0042] The near-infrared image can be processed to detect inattentive driving, drowsiness, and the like, as seen in conventional technology. The color image processing involves determining whether or not the driver is wearing a mask or other item (if an item is being worn, the processing method can be changed to a near-infrared image processing method) and judging the facial color (determined by the difference from when the driver started driving), making it possible to detect as quickly as possible if the driver suddenly becomes unwell.
[0043] Next, we will explain how to use color to identify body parts and items worn. The method involves separating and processing only the "red component" and using it to identify the mouth and facial color, which can reduce false positives and false negatives.
[0044] i) How to identify mouths using color (1) Input a color image (2) Converting RGB images to YUV (YCbCr) images (3) The decision unit picks up only the V component (red component) and performs Sobel filter processing. (4) Pattern recognition of the lips is performed while only the red edges remain. (5) Once the “lips” are identified, the degree to which they are open is determined, and drowsiness is assessed based on the degree to which they are open.
[0045] ii) Using color to judge complexion (such as sudden changes in physical condition) (1) Input a color image (2) Converting RGB images to YUV (YCbCr) images (3) The decision unit picks up only the U component (blue component) and performs Sobel filter processing. (4) Only the V component (red component) is picked up and subjected to Sobel filter processing. (5) With only the red edges remaining, pattern recognition of the “lips” is performed. (6) After it has been determined in (5) above that the subject is facing forward, the area where only blue edges remain is compared with the area where only red edges remain, and the amount of change is measured (specifically, the areas of the areas surrounded by the edges obtained from the Sobel filter process are compared for each component). (7) If the measurement results show a sudden increase in the blue or red components, it is assumed that there may be a change in the occupant's physical condition, and a warning is issued to the occupant asking whether there are any problems with their physical condition. (8) If the occupant does not respond to the warning by, for example, pressing a switch, the system will report the situation to another system, for example by issuing a report.
[0046] A Sobel filter is a filter that extracts edges. A Sobel filter that combines horizontal and vertical Sobel filters to emphasize edges in all directions is used.
[0047] In determining the complexion, data on the U component (blue component) and V component (red component) while the vehicle is traveling can be accumulated for a predetermined time period, and the average value of each component can be used. This predetermined time period can be, for example, about 10 to 30 minutes, or it can be variable. The average value of each component is used when calculating the "area of the region surrounded by the edge obtained by the Sobel filter processing" in (6) above. By using such a time average, it is possible to suitably calculate the "area of the region surrounded by the edge" even inside a vehicle where the brightness changes in a short period of time due to external light, etc.
[0048] Note that step S1 may be omitted in Fig. 3. In other words, it is possible to select either the near-infrared image or the YUV image by performing the second determination flow (Fig. 5) using the first threshold value without performing the first determination flow (Fig. 4) using the second threshold value.
[0049] Regarding the embodiments described above, the following supplementary notes are disclosed. [Appendix 1] an acquisition unit for acquiring a near-infrared image and a color image showing a vehicle occupant, the color image being an RGB image or a YUV image; a selection unit that converts the RGB image into a YUV image when the color image is an RGB image, and selects either the near-infrared image or the YUV image; a determination unit that determines a state of the occupant by using the near-infrared image or the YUV image selected by the selection unit; having The selection unit is Dividing an area in the YUV image in which the face of the occupant is captured into a plurality of sub-areas, and calculating an average value of the luminance values of pixels included in each of the plurality of sub-areas; selecting the near-infrared image if the average value is equal to or greater than a predetermined threshold; selecting the YUV image if the average value is below the threshold; Occupant monitoring device. [effect] In this way, it is possible to stably distinguish facial feature points regardless of the brightness on the surface of the face. In other words, even when the pillars of the vehicle are in shadow due to the setting sun or sunlight, or when the direction of the shadow is not constant due to the vehicle's behavior, it is possible to recognize the occupant's face because it is possible to switch to a YUV image in which brightness values are stably separated. Specific examples include when the brightness of parts of the face varies or are in shadow due to the headlights of oncoming vehicles or headlights from vehicles on the rear side. Another example is when part of the face is in shadow due to the lighting of roads or stores. Note that YUV stands for YCbCr. The YUV format can be YUV4:4:4, YUV4:2:2, or YUV4:1:1 (depending on the number of bits and the compression rate).
[0050] [Appendix 2] The occupant monitoring device according to claim 1, wherein the sub-areas are provided for respective parts of the occupant's face. [effect] Compared to equal division, in which the areas of the divided regions are equal, by configuring sub-regions according to facial features, it is possible to easily determine the brightness. Specifically, when parts such as the lips are divided equally, they may span multiple sub-regions, which may increase the computational load required to determine whether or not the recognition of the passenger's face is affected. Furthermore, since it is easy to weight each sub-region based on the presence or absence of a part, it is possible to appropriately recognize the passenger's face. In addition, compared to equal division, it is easier to weight and judge each part. In the case of equal division, there is a possibility that multiple facial parts are included in one sub-region. Even in the case of equal division, it is possible to increase the number of sub-regions to prevent multiple facial parts from being included and to improve accuracy, but there is a risk that the calculation load of the system will increase as the number of sub-regions increases.
[0051] [Appendix 3] The occupant monitoring device according to claim 1 or 2, wherein the determination unit performs a Sobel filter process to extract edge portions from the V component obtained from the YUV image, and recognizes feature points related to the lips of the occupant. [effect] Even in conditions where the lighting is unstable, it is possible to recognize the feature points of the lips.
[0052] [Appendix 4] The occupant monitoring device described in Appendix 1 or 2, wherein the judgment unit performs Sobel filter processing to extract edge portions from the U component and V component obtained from the YUV image, compares the area of the U component that occupies the occupant's face with the area of the V component that occupies the occupant's face, and judges the physical condition of the occupant. [effect] Even if the brightness is unstable, it is possible to recognize the state of the occupant.
[0053] Although the embodiment of the present invention has been described above, the present invention is not limited to the above-described embodiment, and various modifications and changes can be made based on the technical concept of the present invention. [Explanation of symbols]
[0054] 1 Occupant monitoring system 2 Camera 3. Occupant monitoring device 31 Acquisition Department 32 Selection section 33 Judgment section
Claims
1. an acquisition unit for acquiring a near-infrared image and a color image showing a vehicle occupant, the color image being an RGB image or a YUV image; a selection unit that converts the RGB image into a YUV image when the color image is an RGB image, and selects either the near-infrared image or the YUV image; a determination unit that determines a state of the occupant by using the near-infrared image or the YUV image selected by the selection unit; having The selection unit is Dividing an area in the YUV image in which the face of the occupant is captured into a plurality of sub-areas, and calculating an average value of the luminance values of pixels included in each of the plurality of sub-areas; selecting the near-infrared image if the average value is equal to or greater than a predetermined threshold; selecting the YUV image if the average value is below the threshold; Occupant monitoring device.
2. 2. The passenger monitoring device according to claim 1, wherein the sub-regions are provided for respective parts of the passenger's face.
3. 3. The passenger monitoring device according to claim 1, wherein the determining unit performs a Sobel filter process for extracting edge portions from a V component obtained from the YUV image, and recognizes feature points related to the lips of the passenger.
4. 3. The occupant monitoring device according to claim 1, wherein the judgment unit performs a Sobel filter process to extract edge portions from the U component and V component obtained from the YUV image, and compares an area of the U component that occupies the face of the occupant with an area of the V component that occupies the face of the occupant to judge the physical condition of the occupant.
Citation Information
Patent Citations
Driver state determination device and driver state determination method
JP2020152133A
Image pickup control device for vehicle, driver monitoring device, and image pickup control method for vehicle
WO2018158809A1
