This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2012-125223, filed on May 31, 2012, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to an eye direction detecting apparatus, and an eye direction detecting method.
2. Description of the Related Art
Since resolution of a camera has been enhanced, a processing speed of the camera has been increasing, and the camera has been downsized, there has been proposed an eye direction detecting apparatus that detects a position on an observation surface, such as on a monitor screen, which is gazed by a subject, from an image of a face captured by a camera. At the beginning, most of the proposed methods included a method of fixing a head of a subject, and a method of mounting a detecting apparatus on the head of the subject. In recent years, however, a non-contact apparatus has been developed in order to reduce burden on the subject, and an eye direction detecting apparatus having higher precision has been demanded. For example, Japanese Patent Application Laid-open No. 2005-185431 proposes a non-contact type eye direction detecting apparatus that detects an eye direction from a coordinate of a pupil and a corneal reflection.
In order to correctly detect an eye direction, it is necessary that a subject and a camera have a proper positional relationship. Therefore, it is important that whether or not the subject is located on a proper position with respect to the camera can easily be determined, and the position can be adjusted.
However, in the eye direction detecting apparatus of a non-contact type described in Japanese Patent Application Laid-open No. 2005-185431, as the subject can freely move, the precision in the detection result has not always been high. Accordingly, it is necessary that the subject is guided to a proper position in the eye direction detecting apparatus of a non-contact type, in particular.
It is an object of the present invention to at least partially solve the problems in the conventional technology.
To solve the above described problems and achieve the object according to an aspect of the present invention, an eye direction detecting apparatus includes: a display unit; an imaging unit configured to image a subject; a first detecting unit configured to detect a position of an eye of the subject from an image captured by the imaging unit; a second detecting unit configured to detect a distance to the position of the eye of the subject from the imaging unit; and a display control unit configured to display an image representing the position of the eye of the subject corresponding to the position of the eye detected by the first detecting unit onto the display unit with a display manner being changed according to the distance detected by the second detecting unit.
According to another aspect of the present invention, an eye direction detecting apparatus includes: a display unit; an imaging unit configured to image a subject; a first detecting unit configured to detect a position of an eye of the subject from an image captured by the imaging unit; and a display control unit configured to display at least one of a reference image indicating a range of a reference region included in an imaging region of the imaging unit, an imaging-range image indicating a range of an imaging region, and an image representing the position of the eye of the subject on the display unit with a display manner being changed according to a positional relationship between a set region proper for detecting the position of the eye of the subject and the position of the eye of the subject.
According to still another aspect of the present invention, an eye direction detecting method includes: a position detecting step detecting a position of an eye of a subject from an image captured by an imaging unit that captures the subject; a distance detecting step detecting a distance from the imaging unit to the position of the eye of the subject; and a display control step displaying an image indicating the position of the eye of the subject on the display unit with a display manner being changed according to the distance detected in the distance detecting step.
According to still another aspect of the present invention, an eye direction detecting method includes: a position detecting step detecting a position of an eye of a subject from an image captured by an imaging unit that captures the subject; and a display control step displaying at least one of a reference image indicating a range of a reference region included in an imaging region of the imaging unit, an imaging-range image indicating a range of an imaging region, and an image representing the position of the eye of the subject with a display manner being changed according to a positional relationship between a set region proper for detecting the position of the eye of the subject and the position of the eye of the subject.
The above and other objects, features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.
Embodiments of an eye direction detecting apparatus and an eye direction detecting method according to the present invention will be described in detail with reference to the drawings. The present invention is not limited by these embodiments.
Infrared LED (Light Emitting Diode) light sources 203 and 205 are arranged respectively just before the lens of each of the right camera 202 and the left camera 204 in the circumferential direction. The infrared LED light sources 203 and 205 include an inner peripheral LED and an outer peripheral LED, each emitting light of a different wavelength. The infrared LED light sources 203 and 205 detect a pupil of a subject. The method described in Japanese Patent Application Laid-open No. 2008-125619 may be used as the method of detecting a pupil, for example.
When an eye direction is detected, a position is specified by expressing a space with a coordinate. In the present embodiment, a central position on the display screen 101 is defined as an origin, a vertical direction is defined as a Y coordinate (the upward direction is positive), a lateral direction is defined as an X coordinate (the right direction is positive), and a depth direction is defined as a Z coordinate (the front direction is positive).
The speaker 105 outputs sound for calling a subject's attention during a calibration.
The drive IF unit 208 drives each unit included in the stereo camera 102. The drive IF unit 208 serves as an interface between the respective units included in the stereo camera 102 and the control unit 300.
The display unit 210 displays various pieces of information such as a subject image for an examination.
The right camera 202 and the left camera 204 are connected to the drive IF unit 208 via the camera IFs 314 and 315 respectively. Since the drive IF unit 208 drives these cameras, the subject is imaged.
The right camera 202 outputs a frame synchronization signal. The frame synchronization signal is inputted to the left camera 204 and the LED drive control unit 316. Thus, on a first frame, the right and left infrared light sources (wavelength 1—LED 303, wavelength 1—LED 305) emit light with a wavelength 1 by delaying the timing, and with this, the images by the right and left cameras (right camera 202, left camera 204) are taken. On a second frame, the right and left infrared light sources (wavelength 2—LED 304, wavelength 2—LED 306) emit light with a wavelength 2 by delaying the timing, and with this, the images by the right and left cameras are taken.
The infrared LED light source 203 includes the wavelength 1—LED 303, and the wavelength 2—LED 304. The infrared LED light source 205 includes the wavelength 1—LED 305, and the wavelength 2—LED 306.
The wavelength 1—LEDs 303 and 305 emit infrared ray with the wavelength 1. The wavelength 2—LEDs 304 and 306 emit infrared ray with the wavelength 2.
The wavelength 1 is assumed to be less than 900 nm, and the wavelength 2 is assumed to be 900 nm or longer, for example. When the light reflected by the pupil is imaged with the irradiation of the infrared ray with the wavelength of less than 900 nm, a brighter pupil image can be acquired, compared to the case in which the light reflected by the pupil is imaged with the irradiation of the infrared ray with the wavelength of 900 nm or longer.
The speaker drive unit 322 drives the speaker 105.
The control unit 300 entirely controls the eye direction detecting apparatus 100, and outputs the result to the display unit 210, the speaker 105, and the like. The control unit 300 includes a first detecting unit 351, a second detecting unit 352, and a display control unit 353.
The first detecting unit 351 detects the eye direction of the subject from the image captured by the imaging unit (stereo camera 102). The process of detecting the eye direction includes a process of detecting the position of the eye of the subject. In the first embodiment, the first detecting unit 351 detects a viewpoint, which is a point gazed by the subject, among the subject image displayed onto the display screen 101, for example. Any methods conventionally used may be used for the method of detecting the viewpoint by the first detecting unit 351. The method of detecting the viewpoint of the subject by using the stereo camera as described in Japanese Patent Application Laid-open No. 2005-198743 will be described below.
In this case, the first detecting unit 351 detects the eye direction of the subject from the image captured by the stereo camera 102. The first detecting unit 351 detects the eye direction of the subject by using the method described in Japanese Patent Application Laid-open No. 2005-185431 and Japanese Patent Application Laid-open No. 2008-125619, for example. Specifically, the first detecting unit 351 obtains a difference between an image captured with the irradiation of the infrared ray having the wavelength 1 and an image captured with the irradiation of the infrared ray having the wavelength 2, thereby generating an image on which a pupil image is made clear. The first detecting unit 351 calculates the position of the pupil (the position of the eye) of the subject according to a stereoscopic technique by using two images generated respectively from the images captured by the right and left cameras (right camera 202, left camera 204). The first detecting unit 351 also calculates the position of the corneal reflection of the subject by using the images captured by the right and left cameras. The first detecting unit 351 then calculates an eye-direction vector, indicating the eye direction of the subject, from the position of the pupil of the subject and the position of the corneal reflection.
The method of detecting the position of the eye and the eye direction of the subject is not limited thereto. For example, the position of the eye and the eye direction of the subject may be detected by analyzing an image captured with a visible light, not with infrared ray.
The second detecting unit 352 detects the distance from the imaging unit (stereo camera 102) to the position of the eye of the subject. In the first embodiment, the second detecting unit 352 detects a distance dz in the depth direction (Z coordinate direction) between the stereo camera 102 and the eye of the subject as the distance between the imaging unit (stereo camera 102) and the position of the eye of the subject.
Markers 502 and eye position images 503 are displayed on the display screen 101. The eye position image 503 is an image indicating the position of the eye of the subject. The marker 502 is an image corresponding to a size of the eye position image 503 of the subject on a predetermined reference distance.
When the coordinate system (world coordinate system) illustrated in
The display control unit 353 displays the eye position image 503 of the subject on the display screen 101 by changing the display manner according to the distance detected by the second detecting unit 352. The display control unit 353 displays the eye position image 503 on the display screen 101 with the size of the eye position image being changed according to the distance. The display manner is not limited to the size (described later).
The marker 502 is a square marker having a fixed size and having the center of the detected pupil as its center. The eye position image 503 is an image representing the eye position with a circle with the center of the pupil position being defined as its center. When the distance dz coincides with the reference distance dr, the display control unit 353 displays the eye position image 503 whose diameter coincides with the length of the side of the marker 502.
When the eye position is far from the position with the reference distance dr, i.e., when the distance dz is larger than the reference distance dr, the display control unit 353 displays the eye position image 503 whose diameter is smaller than the length of the side of the marker 502 according to the distance dz. When the eye position is closer than the position with the reference distance dr, i.e., when the distance dz is smaller than the reference distance dr, the display control unit 353 displays the eye position image 503 whose diameter is larger than the length of the side of the marker 502 according to the distance dz. The display control unit 353 changes the diameter of the eye position image 503 in proportion to the distance dz, for example.
Thus, the diameter of the eye position image 503 is changed in proportion to the distance dz, for example. Therefore, the subject can intuitively understand that he/she is on the position far from the position with the reference distance dr, when the size of the eye position image 503 is smaller than the marker 502, and that he/she is on the position closer than the position with the reference distance dr, when the size of the eye position image 503 is larger than the marker 502. Accordingly, the subject can adjust his/her position in order to have the reference distance dr.
The display control process by the eye direction detecting apparatus 100 thus configured according to the first embodiment will next be described. The display control process is a process of detecting whether the distance between the subject and the stereo camera 102 is proper or not, and displaying the result, prior to the actual process of detecting an eye direction.
Firstly, when the subject is on the position where he/she is caught by the stereo camera 102 in front of the display screen 101, the first detecting unit 351 acquires the camera image including the pupil image detected by the stereo camera 102 (step S1001). The display control unit 353 draws a frame, indicating the range of the camera image, onto the display screen 101 (step S1002). The frame indicating the camera image may not be displayed unlike illustrated in
The first detecting unit 351 determines whether the pupil of the subject is detected or not from the camera image (step S1003). When the pupil of the subject is not detected for reasons the subject not being on a proper position or the like (step S1003: No), the display control process is ended.
When the pupil of the subject is detected (step S1003: Yes), the first detecting unit 351 calculates the pupil coordinate (X, Y) (step S1004). The display control unit 353 sets a display relative coordinate (X1, Y1) corresponding to the pupil coordinate (X, Y) of the subject in the frame indicating the range of the camera image (step S1005). The display relative coordinate is a coordinate representing the position of the image to be displayed on the display screen 101. For example, the coordinate system in which an upper-left corner of the display screen 101 is set as an origin, the vertical direction is set as the Y coordinate (the downward direction is positive), and the lateral direction is set as the X coordinate (the right direction is positive) may be used as the display relative coordinate. The display control unit 353 draws the marker 502 serving as index and having a fixed size around the display relative coordinate (X1, Y1) (step S1006).
The second detecting unit 352 calculates the distance dz between the stereo camera 102 and the pupil in the depth direction (step S1007).
The display control unit 353 decides a radius R of a circle representing the eye position image 503 according to the distance dz (step S1008). For example, when the distance dz and the size of the eye position image 503 have the relationship illustrated in
Then, the display control unit 353 determines whether the distance dz falls within the prescribed range, i.e., whether the distance dz satisfies dr−A≦dz≦dr+A or not (step S1009). When the distance dz falls within the prescribed range (step S1009: Yes), the display control unit 353 draws the inscribed circle (eye position image 503) of the marker 502 as illustrated in
When the distance dz is out of the prescribed range (step S1009: No), the display control unit 353 draws the circle (the eye position image 503) with the radius R on the display relative coordinate (X1, Y1) (step S1011). For example, when the distance dz is smaller than the reference distance dr−A, the display control unit 353 displays a small circle with the size in proportion to the distance dz in the marker 502 as illustrated in
The process in the flowchart in
Modification 1
In the embodiment described above, the size of the eye position image 503 is changed, as the display manner, according to the distance. In the modification 1, the color of the eye position image 503 is changed according to the distance. In the modification 1, the color of the eye position image 503 is changed. However, not only the color but also brightness may be changed. In the modification 1, the color of the eye position image 503 is changed between the case where the distance dz is not the reference distance dr (or when the distance dz is outside the prescribed range), and the case where the distance dz is the reference distance dr (or when the distance dz falls within the prescribed range). Thus, the subject can confirm whether he/she is on the position with the reference distance dr or not by adjusting his/her position.
When the distance dz is larger than the reference distance dr, for example, the display control unit 353 displays the eye position image 503 with a color of yellow. When the distance dz is shorter than the reference distance dr, for example, the display control unit 353 displays the eye position image 503 with a color of red. When the distance dz coincides with the reference distance dr, for example, the display control unit 353 displays the eye position image 503 with a color of green. Accordingly, the subject can determine whether or not he/she is on the position with the reference distance dr. Any color and any color combination of the eye position image 503 may be used, and the present invention is not limited to the above-mentioned example.
The processes in step S1101 to S1105 are the same as the processes in steps S1001 to S1005 in
The second detecting unit 352 calculates the distance dz between the stereo camera 102 and the pupil in the depth direction (step S1106). Then, the display control unit 353 determines whether the distance dz falls within the prescribed range, i.e., whether the distance dz satisfies dr−A≦dz≦dr+A or not (step S1107). When the distance dz falls within the prescribed range (step S1107: Yes), the display control unit 353 draws a green circle (eye position image 503) on the display relative coordinate (X1, Y1) (step S1108).
When the distance dz is out of the prescribed range (step S1107: No), the display control unit 353 determines whether or not the distance dz is farther than the prescribed range, i.e., whether or not the distance dz satisfies dr+A<dz (step S1109). When the distance dz is farther than the prescribed range (step S1109: Yes), the display control unit 353 draws a yellow circle (eye position image 503) on the display relative coordinate (X1, Y1) (step S1110). When the distance dz is not farther than the prescribed range (step S1109: No), the display control unit 353 draws a red circle (eye position image 503) on the display relative coordinate (X1, Y1) (step S1111).
The process in the flowchart in
The display manner of the eye position image 503 changed according to the distance dz is not only a color, but may be a tone of an image, brightness of the image, and a character, symbol, or a graphic included in the image.
In the modification 1, the display color of the eye position image 503 is changed. However, the display color or brightness of the marker 502 may be changed. The shape of the eye position image 503 is not limited to the circle, and any shape may be employed, so long as it appropriately represents the eye position.
The processes described in
As described above according to the first embodiment effects as described below are obtained, for example.
(1) When the position of the subject is farther than the proper position, the image representing the eye becomes smaller than the marker 502, and when the position of the subject is closer than the proper position, the image representing the eye becomes larger than the marker 502. Accordingly, the subject can instantaneously determine whether he/she is far from the camera or close to the camera, and can adjust his/her position.
(2) When the subject is on the proper position, the color or brightness of the image representing the eye is changed. Therefore, the subject can instantaneously determine whether he/she is on the proper position or not, and can prepare for the start of the eye-direction detection.
(3) An adjustment index can be displayed on a position matching the point of gaze near the center of the monitor (display unit) screen. Therefore, the higher-precise result of the eye-direction detection can be acquired, compared to the method of displaying the position with a slide bar.
In the first embodiment, the display manner of the eye position image is changed according to the distance between the imaging unit and the position of the eye of the subject, i.e., according to the position of the eye in the Z coordinate direction on the coordinate system in
In the second embodiment, the function of a control unit 300-2 is different from the eye direction detecting apparatus 100 according to the first embodiment. The other functions of the eye direction detecting apparatus according to the second embodiment are the same as those of the eye direction detecting apparatus 100 illustrated in
As illustrated in
The display control unit 353-2 displays at least one of the eye position image of the subject, a reference image indicating a range of a reference region, and an imaging-range image indicating a range of an imaging region on the display screen 101, wherein the display manner is changed according to the positional relationship between a set region and the eye position of the subject. The reference region is included in the imaging region, and it is set beforehand as the region indicating a range of an appropriate position of the eye of the subject, for example. The region having a predetermined size in the imaging region including the center of the imaging region may be set as the reference region, for example. The set region indicates a region appropriate for detecting the eye position of the subject. For example, the reference region may be set as the set region, and the imaging region may be set as the set region.
The set region may be changed according to an operation mode of the eye direction detecting apparatus. The operation mode includes a calibration mode for executing calibration for the detection of the eye direction, and a measurement mode for a normal eye-direction detection. In the description below, the reference region is set as the set region, when the operation mode is the calibration mode, and the imaging region is set as the set region, when the operation mode is the measurement mode.
The reference image is an image displayed on the display screen 101 as an image indicating the range corresponding to the reference region. The reference image is displayed on the center of the display screen 101, for example. The display control unit 353-2 changes the color of the reference image according to the positional relationship, and displays the result on the display screen 101. The display manner is not limited to the color. Brightness may be changed.
Firstly, the display control unit 353-2 calculates the range of the camera image in the image displayed on the display screen 101 (step S1301). The display control unit 353-2 draws the frame 1602 (imaging-range image), indicating the range of the camera image, onto the display screen 101 (step S1302). The display control unit 353-2 draws the scale 1601 (reference image) for indicating the proper range of the pupil position on the display screen 101 (step S1303).
When the subject is on the position where he/she is caught by the stereo camera 102 in front of the display screen 101, the first detecting unit 351 acquires the camera image including the pupil image detected by the stereo camera 102 (step S1304). The first detecting unit 351 detects the pupil position in the camera image from the camera image (step S1305).
The first detecting unit 351 determines whether the pupil of the subject is detected or not from the camera image (step S1306). When the pupil of the subject is not detected because of the subject not being on a proper position or the like (step S1306: No), the display control process is ended.
When the pupil of the subject is detected (step S1306: Yes), the first detecting unit 351 calculates the pupil coordinate (X, Y) (step S1307). The display control unit 353-2 sets a display relative coordinate (X1, Y1) corresponding to the pupil coordinate (X, Y) of the subject in the frame 1602 of the imaging-range image (step S1308). The display control unit 353-2 draws a graphic (eye position image 1603) indicating the pupil position on the display relative coordinate (X1, Y1) (step S1309).
The display control unit 353-2 also sets the set region (step S1310). For example, the display control unit 353-2 sets the reference region as the set region in the calibration mode. In the measurement mode, the display control unit 353-2 sets the imaging region as the set region. The display control unit 353-2 determines whether the set region is in the range (reference region) of the scale 1601 or not (step S1311). This determination is equivalent to the determination as to whether the operation mode is the calibration mode or not.
When the set region is within the scale 1601 (step S1311: Yes), the display control unit 353-2 determines whether or not the pupil coordinates (X, Y) of both eyes are within the range of the scale 1601 (within the reference region) (step S1312). When the pupil coordinates (X, Y) of the right and left eyes are within the range of the scale 1601 (step S1312: Yes), the display control unit 353-2 displays the green scale 1601 on the display screen 101 (step S1315). When the pupil coordinates (X, Y) of the right and left eyes are not within the range of the scale 1601 (step S1312: No), the display control unit 353-2 displays the red scale 1601 on the display screen 101 (step S1314).
When the set region is not within the scale 1601 (step S1311: No), the display control unit 353-2 determines whether or not the pupil coordinates (X, Y) of both eyes are within the range of the camera image (within the imaging region) (step S1313). When the pupil coordinates (X, Y) of the right and left eyes are within the range of the camera image (step S1313 Yes), the display control unit 353-2 displays the green scale 1601 on the display screen 101 (step S1317). When the pupil coordinates (X, Y) of the right and left eyes are not within the range of the camera image (step S1313: No), the display control unit 353-2 displays the red scale 1601 on the display screen 101 (step S1316).
If a more correct pupil position is required like in such a case as the calibration for the eye-direction detection (in the calibration mode), the region suitable for shooting the eye portion is set as “the range of the scale 1601” (=reference region). When the two pupils are within the coordinate of the scale 1601 as illustrated in
When a minimum pupil position is required as the case of the normal eye-direction detection (measurement mode), the region suitable for shooting the eye portion is set as the “range of the whole camera image” (=imaging region). When the two pupils are within the coordinate of the scale 1601 as illustrated in
In the second embodiment, the criteria (set region) for determining whether the subject is on the proper position or not is changed according to the operation mode set beforehand and the subject can easily make the determination.
Modification 2
In
The second embodiment produces the effect described below, for example.
(1) The image indicating the eye is displayed with respect to the scale indicating the proper position. Therefore, the subject can determine whether he/she is on the proper position or not, and can adjust his/her position.
(2) When the subject is on the proper position, the color of the image representing the scale is changed. Therefore, the subject can instantaneously determine whether he/she is on the proper position or not, and can prepare for the start of the eye-direction detection.
(3) The detection is executed with the subject being on the proper position, whereby high precise detection result of the eye direction can be obtained.
The eye direction detecting apparatus and the eye direction detecting method according to the present invention brings an effect of enhancing detection precision.
Although the invention has been described with respect to specific embodiments for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
Number | Date | Country | Kind |
---|---|---|---|
2012-125223 | May 2012 | JP | national |