OCCUPANT MONITORING APPARATUS
20190266743 ยท 2019-08-29
Assignee
Inventors
Cpc classification
B60R11/04
PERFORMING OPERATIONS; TRANSPORTING
G06V10/751
PHYSICS
G06T7/80
PHYSICS
G06V20/597
PHYSICS
B60R21/01538
PERFORMING OPERATIONS; TRANSPORTING
International classification
G06T7/80
PHYSICS
Abstract
An occupant monitoring apparatus for measuring the spatial position of an occupant predetermined site with a camera includes a camera capturing an image of a vehicle occupant, an image processor processing the captured image, and a position calculator calculating the spatial position of the occupant predetermined site using the processed image. The camera is installed on a steering wheel of the vehicle away from a rotational shaft to be rotatable together with the steering wheel. The image processor rotates two images captured at two positions by the camera rotated together with the steering wheel to generate rotated images. The position calculator calculates the spatial position of the occupant predetermined site using a linear distance between the two positions, a parallax obtained from the rotated images, and a focal length of the camera.
Claims
1. An occupant monitoring apparatus, comprising: a camera configured to capture an image of an occupant of a vehicle; an image processor configured to process the image of the occupant captured by the camera; and a position calculator configured to calculate a spatial position of a predetermined site of the occupant based on the image processed by the image processor, wherein the camera is installed on a steering wheel of the vehicle away from a rotational shaft to be rotatable together with the steering wheel, the image processor processes two images captured by the camera at two different positions as the camera is rotated together with the steering wheel, and the position calculator calculates the spatial position of the predetermined site based on the two images processed by the image processor.
2. The occupant monitoring apparatus according to claim 1, wherein the image processor includes a face detector configured to detect a face of the occupant from the images captured by the camera, and the position calculator calculates a distance from the camera to a specific part of the face as a spatial position of the face.
3. The occupant monitoring apparatus according to claim 1, wherein the two images include a first captured image captured by the camera rotated by a first rotational angle to a first position and a second captured image captured by the camera rotated by a second rotational angle to a second position, the image processor generates a first rotated image by rotating the first captured image by a predetermined angle, and a second rotated image by rotating the second captured image by a predetermined angle, and the position calculator calculates the spatial position of the predetermined site based on a baseline length that is a linear distance between the first position and the second position, a parallax obtained from the first rotated image and the second rotated image, and a focal length of the camera.
4. The occupant monitoring apparatus according to claim 3, wherein the image processor generates the first rotated image by rotating the first captured image in a first direction by an angle |.sub.2.sub.1|/2, and generates the second rotated image by rotating the second captured image in a second direction opposite to the first direction by an angle |.sub.2.sub.1|/2, and the position calculator calculates the baseline length as B=2.Math.L.Math.sin (|.sub.2.sub.1|/2), and calculates the spatial position of the predetermined site as D=B.Math.(f/), where L is a distance from the rotational shaft of the steering wheel to the camera, .sub.1 is the first rotational angle, .sub.2 is the second rotational angle, B is the baseline length, is the parallax, f is the focal length, and D is a distance from the camera to the predetermined site to define the spatial position of the predetermined site.
5. The occupant monitoring apparatus according to claim 3, further comprising: a rotational angle detector configured to detect a rotational angle of the camera, wherein the rotational angle detector detects the first rotational angle and the second rotational angle based on the first captured image and the second captured image obtained from the camera.
6. The occupant monitoring apparatus according to claim 3, further comprising: a rotational angle detector configured to detect a rotational angle of the camera, wherein the rotational angle detector detects the first rotational angle and the second rotational angle based on output from a posture sensor configured to detect a posture of the camera.
7. The occupant monitoring apparatus according to claim 3, further comprising: a rotational angle detector configured to detect a rotational angle of the camera, wherein the rotational angle detector detects the first rotational angle and the second rotational angle based on output from a steering angle sensor configured to detect a steering angle of the steering wheel.
8. The occupant monitoring apparatus according to claim 1, wherein the position calculator calculates the spatial position of the predetermined site based on the two images when the camera is rotated by at least a predetermined angle within a predetermined period between the two different positions.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION
[0034] An occupant monitoring apparatus according to a first embodiment of the present invention will now be described with reference to the drawings. The structure of the occupant monitoring apparatus will be described first with reference to
[0035] As shown in
[0036] As shown in
[0037] The image processor 2 includes an image memory 21, a face detector 22, a first image rotator 23, a second image rotator 24, and a rotational angle detector 25. The image memory 21 temporarily stores images captured by the camera 1. The face detector 22 detects the face of the driver from the image captured by the camera 1, and extracts feature points in the face (e.g., eyes). Methods for face detection and feature point extraction are known, and will not be described in detail.
[0038] The first image rotator 23 and the second image rotator 24 read images G1 and G2 (described later) captured by the camera 1 from the image memory 21, and rotate the captured images G1 and G2. The rotational angle detector 25 detects rotational angles .sub.1 and .sub.2 (described later) of the camera 1 based on the images captured by the camera 1 obtained from the image memory 21. The rotational angles .sub.1 and .sub.2 detected by the rotational angle detector 25 are provided to the first image rotator 23 and the second image rotator 24, and the first and second image rotators 23 and 24 then rotate the captured images G1 and G2 by predetermined angles based on the rotational angles 1 and .sub.2. This rotation of the images will be described in detail later.
[0039] The position calculator 3 calculates the distance D from the camera 1 to the face 41 shown in
[0040] The driver state determiner 4 detects, for example, eyelid movements and a gaze direction based on the facial information obtained from the face detector 22, and determines the state of the driver 40 in accordance with the detection result. For example, when the eyelids are detected as being closed for longer than a predetermined duration, the driver 40 is determined to be falling asleep. When the gaze is detected as being aside, the driver 40 is determined to be engaging in distracted driving. The output of the driver state determiner 4 is provided to the ECU through the CAN.
[0041] The control unit 5, which includes a central processing unit (CPU), centrally controls the operation of the occupant monitoring apparatus 100. The control unit 5 is thus communicably connected to each unit included in the occupant monitoring apparatus 100 using signal lines (not shown). The control unit 5 also communicates with the ECU through the CAN.
[0042] The storage unit 6, which includes a semiconductor memory, stores, for example, programs for implementing the control unit 5 and associated control parameters. The storage unit 6 also includes a storage area for temporarily storing various data items.
[0043] The face detector 22, the first image rotator 23, the second image rotator 24, the rotational angle detector 25, the position calculator 3, and the driver state determiner 4 are each implemented by software, although they are shown as blocks in
[0044] The principle for measuring the spatial position of the face with the occupant monitoring apparatus 100 will now be described.
[0045]
[0046]
[0047]
[0048] As shown in
[0049] The apparatus according to one or more embodiments of the present invention uses two images captured by the camera 1 at two different positions to calculate the distance D shown in
[0050] The procedure for measuring a distance based on motion stereo performed by the apparatus according to one or more embodiments of the present invention will now be described. As described above, the camera 1 first captures two images at two different positions. The two images include the image G1 shown in
[0051] The two captured images G1 and G2 are then each rotated by a corresponding predetermined angle. More specifically, as shown in
[0052] The rotated image H1 is the captured image G1 rotated up to the mid-angle of the rotational angles between images G1 and G2. The rotated image H2 is also the captured image G2 rotated up to the mid-angle of the rotational angles between the images G1 and G2. The rotated images H1 and H2 thus have the same inclination on a screen. As described above, the captured images G1 and G2 are rotated in opposite directions by the angle |.sub.2.sub.1|/2 to generate the two images H1 and H2 with the same posture, which can also be captured by a typical stereo camera.
[0053] In the present embodiment, the captured images G1 and G2 are directly rotated to generate the rotated images H1 and H2. In some embodiments, as shown in
[0054] The obtained rotated images H1 and H2 will now be used to determine the distance based on stereo vision. For the distance determination, a baseline length, which is the linear distance between two positions of the camera, will first be obtained. The baseline length will be described with reference to
[0055] In
B=2.Math.L.Math.sin(|.sub.2.sub.1|/2)(1)
The distance L is known, and thus the baseline length B is obtained by detecting the angles .sub.1 and .sub.2. The angles .sub.1 and .sub.2 are detected from the captured images G1 and G2 in
[0056] After obtaining the baseline length B, the distance from the camera 1 to a subject is determined in accordance with typical distance measurement based on stereo vision. The distance determination will be described in detail with reference to
[0057]
[0058] Images of a subject Y captured by the cameras 1a and 1b are formed on the imaging surfaces of the image sensors 11a and 11b. The images of the subject Y include images of a specific part of the subject Y formed at a position P1 on the imaging surface of the first camera 1a and at a position P2 on the imaging surface of the second camera 1b. The position P2 is shifted by a parallax from a position P1, which corresponds to the position P1 for the first camera 1a. Geometrically, f/=D/B, where f indicates the focal length of each of the cameras 1a and 1b, and D indicates the distance from the camera 1a or 1b to the subject Y. The distance D is thus calculated with the formula below.
D=B.Math.f/(2)
[0059] In the formula (2), the baseline length B is calculated with the formula (1). The focal length f is known. Thus, the distance D can be calculated by obtaining the parallax . The parallax may be obtained through known stereo matching. For example, the image captured by the second camera 1b is searched for an area having the same luminance distribution as a specific area in the image captured by the first camera 1a, and the difference between those two areas is obtained as the parallax.
[0060] The apparatus according to one or more embodiments of the present invention detects the parallax between the rotated images H1 and H2 in
[0061]
[0062] In step S1, the camera 1 captures images. The images captured by the camera 1 are stored into the image memory 21. In step S2, the rotational angle detector 25 detects the rotational angle of the camera 1 that is rotated together with the steering wheel 51 from the images G1 and G2 (
[0063] In step S6, the control unit 5 determines whether distance measurement based on motion stereo is possible using the data stored in step S5. Measuring the distance to a subject based on motion stereo uses images captured by the camera 1 at two positions that are apart from each other by at least a predetermined distance. Additionally, motion stereo uses two images capturing a subject with no movement. Thus, two images captured at a long time interval, which may capture a moving subject, can cause inaccurate distance measurement. In step S6, the control unit 5 thus determines that distance measurement based on motion stereo is possible when the camera 1 is rotated by at least a predetermined angle (e.g., at least an angle of 10) within a predetermined period (e.g., five seconds) between two different positions. When the camera 1 is not rotated by at least the predetermined angle within the predetermined period, the control unit 5 determines that distance measurement based on motion stereo is not possible.
[0064] When distance measurement is determined possible in step S6 (Yes in step S6), the processing advances to step S7. In step S7, the image rotators 23 and 24 rotate the latest image and the image preceding the latest image by N seconds (N5) by the angle |.sub.2.sub.1|/2, where |.sub.2.sub.1|10. For example, the captured image G1 in
[0065] In step S8, the position calculator 3 calculates the baseline length B with the formula (1) based on the rotational angles .sub.1 and .sub.2 obtained from the storage unit 6. In step S9, the position calculator 3 calculates the parallax based on the rotated images H1 and H2 (
[0066] When the distance measurement based on motion stereo is determined impossible in step S6 (No in step S6), the processing advances to step S12. In step S12, the distance D to the face is corrected based on the change in the size of the face in the captured images. More specifically, the distance in the image (the number of pixels) between any two feature points in the face is stored together with the distance D calculated in step S10 when the distance measurement based on motion stereo is possible (Yes in step S6). The two feature points are, for example, the centers of the two eyes. In step S12, the distance previously calculated in step S10 is corrected in accordance with the amount of change in the distance between the two feature points from the previous image to the current image. More specifically, when m is the distance (the number of pixels) between the feature points and Dx is the calculated distance to the face in the previous step S10, and n is the distance (the number of pixels) between the feature points in the current step S12, the current distance Dy to the face is calculated as Dy=Dx.Math.(m/n), which is the corrected value for the distance to the face. For example, when m is 100 pixels, Dx is 40 cm, and n is 95 pixels, the corrected value for the distance is Dy=40 (cm)100/95=42.1 (cm). As the face moves away from the camera 1 to reduce the size of the face in the image, the distance between the feature points on the image is reduced (n<m). This increases the calculated value for the distance from the camera 1 to the face (Dy>Dx).
[0067] The occupant monitoring apparatus according to the above embodiment includes the camera 1 installed on the steering wheel 51 away from the rotational shaft 52. The camera 1 rotatable together with the steering wheel 51 can thus provide two images G1 and G2 captured at two different positions. The apparatus then rotates the captured images G1 and G2 to generate the rotated images H1 and H2, and uses the parallax obtained from the rotated images H1 and H2 to calculate the distance D from the camera 1 to a specific part of the face 41 (the eyes in the above example). The occupant monitoring apparatus according to the above embodiment measures the spatial position of the face with a simple structure without multiple cameras or a dedicated optical system.
[0068]
[0069] In the occupant monitoring apparatus 100 in
[0070] The occupant monitoring apparatus 200 in
[0071]
[0072] In the occupant monitoring apparatus 100 in
[0073]
[0074] In the occupant monitoring apparatus 300 in
[0075] The occupant monitoring apparatuses 300 and 400 in
[0076] As in the apparatus in
[0077] In addition to the above embodiments, the present invention may be variously embodied in the manner described below.
[0078] In the above embodiments, the camera 1 is installed on the steering wheel 51 at the position shown in
[0079] In the above embodiments, the captured image G1 is rotated clockwise by the angle |.sub.2.sub.1|/2, and the captured image G2 is rotated counterclockwise by the angle |.sub.2.sub.1|/2 (
[0080] In the above embodiments, the distance D from the camera 1 to the face 41 is calculated based on the eyes as the specific part of the face 41. In some embodiments, the specific part may be other than the eyes, and may be the nose, mouth, ears, or eyebrows. The specific part is not limited to a feature point in the face, such as the eyes, nose, mouth, ears, or eyebrows, and may be any other point. The site to be the subject of the distance measurement according to one or more embodiments of the present invention is not limited to the face, and may be other parts such as the head and the neck.
[0081] In the above embodiments, the distance D from the camera 1 to the face 41 is defined as the spatial position of the face 41. In some embodiments, the spatial position may be defined by coordinates, rather than by the distance.
[0082] In the above embodiments, the occupant monitoring apparatuses 100 to 400 each include the driver state determiner 4. In some embodiments, the driver state determiner 4 may be external to the occupant monitoring apparatuses 100 to 400.