Gaze position processing device, imaging device, learning device, gaze position processing method, learning method, and program
By repeatedly detecting the user's line of sight position and generating statistical line of sight position based on reliability, the problem of degradation of line of sight detection accuracy in the prior art is solved, and higher line of sight detection accuracy is achieved.
Patent Information
- Application Number
- JP2020126725
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-07-27
- Publication Date
- 2024-08-22
- Estimated Expiration
- 2040-07-27
AI Technical Summary
When performing multiple line of sight position averaging processing in the prior art, the calculated average line of sight position is affected by the past line of sight position, resulting in a decrease in detection accuracy.
By repeatedly detecting the user's line of sight position, determining its reliability, and calculating the statistical line of sight position based on reliability control, a statistical line of sight position is generated, including moving average and prediction processing.
Improve the accuracy of line of sight detection and reduce errors and delays in line of sight position detection.
Smart Images

Figure 0007538647000018 
Figure 0007538647000015 
Figure 0007538647000013
Abstract
Description
[Technical field]
[0001] The present invention relates to an eye gaze position processing device, an imaging device, a learning device, an eye gaze position processing method, a learning method, and a program. [Background technology]
[0002] Patent Document 1 discloses a method for selecting a distance measurement point by detecting the gaze position within the shooting range of a photographer looking into the field of view of a finder. In Patent Document 1, a distance measurement point is selected according to the priority of a plurality of distance measurement point selection means, so that a distance measurement point can be selected according to the photographer's intention. The imaging device described in Patent Document 1 has a so-called optical finder that enables the photographer to observe an optical image formed on a focusing screen.
[0003] Recently, imaging devices with electronic viewfinders have been available as display devices that do not have an optical viewfinder and play back images captured by an image sensor that receives a light beam that has passed through a photographing optical system. While imaging devices with optical viewfinders have a light beam splitting means, imaging devices with electronic viewfinders do not require a light beam splitting means, and therefore can perform focus detection and subject detection over a wider range within the photographing range.
[0004] Furthermore, Patent Document 1 discloses a technique for suppressing vibration of the gaze position by adding up a plurality of detected gaze positions to calculate an average gaze position. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2011-120887 A Summary of the Invention [Problem to be solved by the invention]
[0006] When multiple gaze positions are added together, the calculated average gaze position is affected by past gaze positions. Therefore, when a predetermined number of gaze positions are added together, a uniform delay occurs in the calculated average gaze position relative to the actual gaze position, which reduces the accuracy of gaze detection.
[0007] The present invention has been made in view of the above circumstances, and has an object to provide a technique for improving the accuracy of gaze detection. [Means for solving the problem]
[0008] In order to solve the above problems, the present invention provides View display methods The present invention provides a gaze position processing device comprising: a detection means for repeatedly detecting a user's gaze position; a first determination means for determining the reliability of the gaze position detected by the detection means; and a generation means for generating statistical gaze positions by calculating statistical values of a plurality of gaze positions detected by the detection means, the generation means controlling the number of gaze positions used to calculate one statistical value based on the reliability. Effect of the Invention
[0009] According to the present invention, it is possible to improve the accuracy of gaze detection.
[0010] Other features and advantages of the present invention will become apparent from the accompanying drawings and the following detailed description of the preferred embodiments of the present invention. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing the configuration of a digital camera 100 equipped with an eye gaze position processing device. [Diagram 2] 3 is a diagram showing the pixel configuration of an imaging unit 22 and the corresponding relationship between a pupil plane and a photoelectric conversion unit. [Diagram 3] 4A and 4B are diagrams showing the configuration of a pixel dedicated to focus detection and the corresponding relationship between a pupil plane and a photoelectric conversion unit. [Figure 4] FIG. 4 is a diagram showing an eye-gaze input operation unit 401 included in the operation unit 70. [Diagram 5] 4 is a flowchart of processing related to focus detection, gaze detection, and shooting operations by the digital camera 100. [Figure 6] 13 is a flowchart of a gaze position correction process. [Figure 7] Schematic diagram showing the relative relationship between the pupil center and the Purkinje image for each gaze direction. [Figure 8] 13 is a conceptual diagram of the x-direction moving average processing and prediction processing when the number of moving averages n=5 and t prediction period=3. [Figure 9] 1 is a conceptual diagram showing the amount of variation in gaze position according to the gaze position when a user looks into an electronic viewfinder and fixates their gaze on one point. [Figure 10] 13 is a flowchart of a gaze position detection process using dictionary data. [Figure 11] FIG. 1 is a diagram showing the correspondence between the gaze directions of the left and right eyes. [Figure 12] FIG. 13 is a conceptual diagram of a process for generating re-learned dictionary data. [Figure 13] FIG. 12 is a diagram for explaining the configuration of an eye information learning device 1201 for generating dictionary data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0013] [First embodiment] <<Configuration of digital camera 100>> FIG. 1 is a block diagram showing the configuration of a digital camera 100 equipped with a gaze position processing device. In FIG. 1, a lens unit 150 is a lens unit equipped with a photographing lens, and is detachable from the digital camera 100. The lens 103 is usually composed of a plurality of lenses, but is shown here as only one lens for simplification. The communication terminal 6 is a communication terminal through which the lens unit 150 communicates with the digital camera 100, and the communication terminal 10 is a communication terminal through which the digital camera 100 communicates with the lens unit 150. The lens unit 150 communicates with the system control unit 50 via the communication terminals 6 and 10, controls the aperture 102 via the aperture drive circuit 2 by the internal lens system control circuit 4, and adjusts the focus by displacing the position of the lens 103 via the AF drive circuit 3.
[0014] The shutter 101 is a focal plane shutter that can freely control the exposure time of the imaging unit 22 under the control of the system control unit 50. The imaging unit 22 is an imaging element that is composed of a CCD, a CMOS element, or the like that converts an optical image into an electrical signal. The A / D converter 23 converts an analog signal into a digital signal. The A / D converter 23 is used to convert an analog signal output from the imaging unit 22 into a digital signal. The signal obtained from the imaging unit 22 is used not only for imaging but also for exposure control and focus detection control. In the imaging unit 22, a pixel in which a photoelectric conversion unit is divided is provided for one microlens. By dividing the photoelectric conversion unit, the entrance pupil is divided, and a phase difference detection signal can be obtained from each photoelectric conversion unit. In addition, an imaging signal can be obtained by adding the signals from the divided photoelectric conversion units. Such a pixel has the advantage that it can be used as both a focus detection pixel and an imaging pixel.
[0015] FIG. 2 is a diagram showing the configuration of pixels of the imaging unit 22 and the corresponding relationship between the pupil plane and the photoelectric conversion unit. 201 indicates a photoelectric conversion unit, 253 indicates a pupil plane, 251 indicates a microlens, and 252 indicates a color filter. In FIG. 2, two photoelectric conversion units 201 are provided, namely, a photoelectric conversion unit 201a (first focus detection pixel) and a photoelectric conversion unit 201b (second focus detection pixel). Light passing through the pupil plane 253a is incident on the photoelectric conversion unit 201a, and light passing through the pupil plane 253b is incident on the photoelectric conversion unit 201b. This allows focus detection to be performed from signals obtained from the photoelectric conversion unit 201a and the photoelectric conversion unit 201b. In addition, an imaging signal can be generated by adding up the signals obtained from the photoelectric conversion unit 201a and the photoelectric conversion unit 201b.
[0016] In this embodiment, by providing the pixels shown in FIG. 2 in the entire screen area of the imaging section 22, it becomes possible to focus on any subject appearing on the screen by phase difference detection.
[0017] In this embodiment, the above focus detection method is used for explanation, but the focus detection method is not limited to this case. For example, the imaging unit 22 may be provided with focus detection dedicated pixels shown in Fig. 3 described later to perform focus detection. Also, the imaging unit 22 may not be provided with focus detection pixels, but only with imaging pixels, and focus detection may be performed by a contrast method.
[0018] FIG. 3 is a diagram showing the configuration of a pixel dedicated to focus detection and the corresponding relationship between a pupil plane and a photoelectric conversion unit. The pixel shown in FIG. 3 is a pixel dedicated to focus detection, unlike that in FIG. 2. The shape of the pupil plane 253 is determined by the aperture 254. Also, in order to detect only light that has passed through the pupil plane 253, it is necessary to separately provide a paired pixel (a pixel that detects light from the pupil plane on the right side, not shown in FIG. 3) to obtain a focus detection signal. By providing the dedicated focus detection pixel shown in FIG. 3 and the imaging pixel in the entire screen area in the imaging unit 22, it becomes possible to focus on any subject appearing on the screen by phase difference detection.
[0019] Returning to FIG. 1, the image processing unit 24 performs predetermined pixel interpolation, resizing such as reduction, and color conversion processing on the data from the A / D converter 23 or the data from the memory control unit 15. The image processing unit 24 also performs predetermined arithmetic processing using the captured image data, and the system control unit 50 performs exposure control and distance measurement control based on the obtained arithmetic results. This allows TTL (through-the-lens) type AF (autofocus) processing, AE (autoexposure) processing, and EF (flash pre-flash) processing to be performed. The image processing unit 24 also performs predetermined arithmetic processing using the captured image data, and TTL type AWB (auto white balance) processing based on the obtained arithmetic results.
[0020] The output data from the A / D converter 23 is written into the memory 32 via the image processing unit 24 and the memory control unit 15, or directly via the memory control unit 15. The memory 32 stores image data obtained by the imaging unit 22 and converted into digital data by the A / D converter 23, and image data to be displayed on the display unit 28. The memory 32 has a storage capacity sufficient to store a predetermined number of still images and a predetermined period of moving images and audio. The memory 32 also serves as a memory for displaying images (video memory).
[0021] The D / A converter 19 converts the image display data stored in the memory 32 into an analog signal and supplies it to the display unit 28. In this way, the image data for display written in the memory 32 is displayed by the display unit 28 via the D / A converter 19. The display unit 28 performs display according to the analog signal from the D / A converter 19 on a display such as an LCD. The digital signal once A / D converted by the A / D converter 23 and stored in the memory 32 is converted to analog in the D / A converter 19 and sequentially transferred to the display unit 28 for display, thereby realizing the function as an electronic viewfinder. This allows for through image display (live view display). Note that the display unit 28 may be provided with an electronic viewfinder that is peered into through an eyepiece (not shown), or a display may be provided on the back of the digital camera 100. Also, both an electronic viewfinder and a display on the back may be provided.
[0022] The non-volatile memory 56 is an electrically erasable and recordable memory, and may be, for example, an EEPROM. Constants, programs, and the like for operating the system control unit 50 are stored in the non-volatile memory 56. The programs referred to here are programs for executing various flowcharts described later in this embodiment.
[0023] The system control unit 50 controls the entire digital camera 100. By executing the programs recorded in the nonvolatile memory 56 described above, each process of this embodiment, which will be described later, is realized. Reference numeral 52 denotes a system memory, which uses a RAM. Constants and variables for the operation of the system control unit 50, programs read from the nonvolatile memory 56, and the like are loaded into the system memory 52. The system control unit 50 also performs display control by controlling the memory 32, the D / A converter 19, the display unit 28, and the like.
[0024] The system timer 53 is a timing unit that measures the time used for various controls and the time of a built-in clock. The power switch 72 is an operating member that switches the power of the digital camera 100 between ON and OFF.
[0025] The mode changeover switch 60, the first shutter switch 62, the second shutter switch 64, and the operation unit 70 are operation members for inputting various operation instructions to the system control unit 50.
[0026] The mode changeover switch 60 changes the operation mode of the system control unit 50 to one of a still image recording mode, a video shooting mode, a playback mode, etc. Modes included in the still image recording mode include an auto shooting mode, an auto scene determination mode, a manual mode, an aperture priority mode (Av mode), and a shutter speed priority mode (Tv mode). In addition, there are various scene modes, which are shooting settings according to shooting scenes, a program AE mode, a custom mode, etc. The mode changeover switch 60 directly changes to one of these modes included in the menu screen. Alternatively, after the screen display is once switched to the menu screen by the mode changeover switch 60, another operating member may be used to switch to one of these modes included in the menu screen. Similarly, the video shooting mode may also include multiple modes.
[0027] The first shutter switch 62 is turned on and generates a first shutter switch signal SW1 when the shutter button 61 provided on the digital camera 100 is pressed halfway (instruction to prepare for shooting) during operation. The first shutter switch signal SW1 starts operations such as AF (autofocus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, and EF (pre-flash) processing.
[0028] The second shutter switch 64 is turned on when the shutter button 61 is fully pressed (photographing instruction) and generates a second shutter switch signal SW2. In response to the second shutter switch signal SW2, the system control unit 50 starts a series of operations for photographing processing, from reading a signal from the imaging unit 22 to writing image data to the recording medium 200.
[0029] The operation unit 70 is various operation members as an input unit that accepts operations from the user. The operation unit 70 is provided with electronic buttons and a cross key for performing menu selection, mode selection, playback of captured moving images, and the like. Each operation member of the operation unit 70 is assigned a function for each scene by selecting and operating various function icons displayed on the display unit 28, and acts as various function buttons. Examples of the function buttons include an end button, a back button, an image forward button, a jump button, a narrowing down button, an attribute change button, and the like. For example, when the menu button is pressed, a menu screen in which various settings can be made is displayed on the display unit 28. The user can intuitively make various settings using the menu screen displayed on the display unit 28, the four directional buttons (up, down, left, and right) and the SET button.
[0030] FIG. 4 is a diagram showing a line-of-sight input operation unit 401 included in the operation unit 70. The line-of-sight input operation unit 401 is an operation member for detecting which part of the display unit 28 the user's line of sight is looking at. FIG. 4(a) shows an example of the line-of-sight input operation unit 401. The configuration of the line-of-sight input operation unit 401 in FIG. 4(a) is a configuration for realizing a method of detecting the rotation angle of the optical axis of the eyeball 400a of the user looking into the viewfinder field and detecting the line of sight of the user from the detected rotation angle, as disclosed in Patent Document 1. A live view image captured through the lens unit 150 is displayed on the display unit 28. 401a indicates an image sensor, 401b indicates a light receiving lens, 401c indicates a dichroic mirror, 401d indicates an eyepiece, and 401e indicates an illumination light source. Infrared light is projected onto the eyeball 400a by the illumination light source 401e. The infrared light reflected by eyeball 400a is reflected by dichroic mirror 401c and captured by image sensor 401a. The captured eyeball image is converted into a digital signal by an A / D converter (not shown) and transmitted to system control unit 50. System control unit 50 extracts the pupil area and the like from the captured eyeball image and calculates the user's line of sight.
[0031] The gaze detection method is not limited to the method shown in FIG. 4(a), and may be a method of photographing both eyes of the user and detecting the gaze. FIG. 4(b) shows an example of a gaze input operation unit 401 different from that shown in FIG. 4(a). In FIG. 4(b), a live view image photographed through the lens unit 150 is displayed on the display unit 28 provided on the back of the digital camera 100. In FIG. 4(b), a camera 401f is provided on the back of the digital camera 100 to photograph the face 400 of the user observing the display unit 28. In FIG. 4(b), the angle of view photographed by the camera 401f is shown by a dotted line. An illumination light source (not shown) projects light onto the user's face, and the camera 401f acquires an eyeball image. The system control unit 50 calculates the user's gaze based on at least one of the eyeballs 400a and 400b included in the eyeball image. The gaze detection method is not limited to this method, and any method capable of detecting which part of the display unit 28 the user is gazing at can be used.
[0032] 1, the power supply control unit 80 is composed of a battery detection circuit, a DC-DC converter, a switch circuit for switching between blocks to be energized, etc., and detects whether a battery is attached, the type of battery, and the remaining battery power. The power supply control unit 80 also controls the DC-DC converter based on the detection results and instructions from the system control unit 50, and supplies the necessary voltage to each unit including the recording medium 200 for the necessary period.
[0033] The power supply unit 30 is made up of a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, etc. The recording medium I / F 18 is an interface with a recording medium 200 such as a memory card or a hard disk. The recording medium 200 is a recording medium such as a memory card for recording captured images, and is made up of a semiconductor memory, a magnetic disk, etc.
[0034] The communication unit 54 is connected to an external device wirelessly or via a wired cable, and transmits and receives video signals and audio signals. The communication unit 54 can also be connected to a wireless LAN (Local Area Network) or the Internet. The communication unit 54 can transmit images (including through images) captured by the imaging unit 22 and images recorded on the recording medium 200, and can also receive image data and various other information from the external device.
[0035] The attitude detection unit 55 detects the attitude of the digital camera 100 with respect to the direction of gravity. Based on the attitude detected by the attitude detection unit 55, it is possible to determine whether the image captured by the imaging unit 22 was captured with the digital camera 100 held horizontally or vertically. The system control unit 50 can add orientation information corresponding to the attitude detected by the attitude detection unit 55 to the image file of the image captured by the imaging unit 22, or rotate and record the image. The attitude detection unit 55 can be an acceleration sensor, a gyro sensor, or the like.
[0036] The digital camera 100 described above is capable of photographing using center point AF and face AF. Center point AF is performing AF on a single point at the center of the photographing screen. Face AF is performing AF on a face in the photographing screen detected by a face detection function.
[0037] The face detection function will now be described. The system control unit 50 sends image data for face detection to the image processing unit 24. Under the control of the system control unit 50, the image processing unit 24 applies a horizontal band-pass filter to the image data. Also, under the control of the system control unit 50, the image processing unit 24 applies a vertical band-pass filter to the processed image data. These horizontal and vertical band-pass filters detect edge components in the image data.
[0038] After that, the system control unit 50 performs pattern matching on the detected edge components to extract candidates for eyes, noses, mouths, and ears. The system control unit 50 then determines that those that satisfy a preset condition (for example, the distance between two eyes, the inclination, etc.) are eye pairs from the extracted eye candidates, and narrows down the eye candidates to only those that have eye pairs. The system control unit 50 then associates the narrowed-down eye candidates with other features (nose, mouth, ears) that form the corresponding face, and detects a face by passing the face through a preset non-face condition filter. The system control unit 50 outputs face information according to the face detection result, and ends the process. At this time, the system control unit 50 stores feature amounts such as the number of faces in the system memory 52. The method of realizing the face detection function is not limited to the above-mentioned method, and the number, size, and features of faces may be detected in the same manner by a method using known machine learning. In addition, the type of subject is not limited to a human face, and animals, vehicles, etc. may be detected.
[0039] As described above, it is possible to perform image analysis on image data displayed as a live view or reproduced, extract features of the image data, and detect subject information. In this embodiment, face information is given as an example of subject information, but subject information can also include various other information such as red-eye detection, eye detection, eye blink detection, and smile detection.
[0040] Furthermore, face AE, face FE, and face WB can be performed simultaneously with face AF. Face AE optimizes the exposure of the entire screen according to the brightness of the detected face. Face FE adjusts the flash light centered on the detected face. Face WB optimizes the WB of the entire screen according to the color of the detected face.
[0041] <<Gaze detection and shooting operation>> Next, the gaze position detection process will be described with reference to Fig. 5. Fig. 5 is a flowchart of the process related to focus detection, gaze detection, and shooting operation by digital camera 100. The process of this flowchart corresponds to the process during live view shooting in which the user performs shooting operations in a live view state (video shooting state) such as a shooting standby state, and is executed mainly by system control unit 50.
[0042] At S1, the system control unit 50 starts the imaging process. After S1, imaging data is repeatedly acquired by the imaging process. In the imaging process, the system control unit 50 drives the imaging unit 22 to acquire imaging data. The acquired imaging data corresponds to an image for detection and display, not a recorded image, which will be described later, and therefore has a smaller size than the recorded image. In the imaging process at S1, an image having a sufficient resolution for focus detection, subject detection, live view display, and the like is acquired. Here, since the driving operation is for shooting a moving image for live view display, the system control unit 50 performs imaging using a so-called electronic shutter, which accumulates and reads charges for a time according to the frame rate for live view display. The live view display performed here is for the user to check the shooting range and shooting conditions, and may be, for example, 30 frames / second (shooting interval 33.3 ms) or 60 frames / second (shooting interval 16.6 ms).
[0043] In S2, the system control unit 50 starts the extraction process of image data and focus detection data. After S2, the extraction process is executed every time imaging data is acquired by the imaging process started in S1. In the extraction process, the system control unit 50 acquires focus detection data obtained from the first focus detection pixel and the second focus detection pixel from the imaging data acquired by the imaging process in S1. The system control unit 50 also generates an imaging signal by adding the output signals of the first focus detection pixel and the second focus detection pixel, and acquires image data obtained by applying color interpolation processing or the like in the image processing unit 24. In this way, image data and focus detection data can be acquired by one shooting. Note that, when the imaging pixel, the first focus detection pixel, and the second focus detection pixel are configured as separate pixels, the system control unit 50 acquires image data by performing interpolation processing or the like in the focus detection pixels.
[0044] In S3, the system control unit 50 starts a live view display process (LV display process). After S3, the LV display process is executed every time image data is acquired by the extraction process started in S2. In the LV display process, the system control unit 50 generates an image for live view display using the image processing unit 24 based on the image data acquired in the extraction process in S2, and displays it on the display unit 28. Note that the image for live view display is, for example, a reduced image that matches the resolution of the display unit 28, and the image processing unit 24 can also perform reduction processing when generating image data in the extraction process in S2. In this case, the system control unit 50 causes the display unit 28 to display the image data acquired in the extraction process in S2. As described above, since shooting and display are performed at a predetermined frame rate during the live view display, the user can adjust the shooting composition and exposure conditions while watching the display unit 28. Also, as described above, in this embodiment, it is possible to detect a human face, an animal, etc. as a subject. In the LV display process, the system control unit 50 also displays a frame indicating the area of the detected subject together with the display of the live view image.
[0045] In S4, the system control unit 50 starts the gaze detection process. After S4, the system control unit 50 repeatedly acquires information (gaze position information) indicating which position on the display unit 28 the user (photographer) is observing, at a predetermined time interval, by using the gaze input operation unit 401, in association with the display image observed by the user. In addition, the system control unit 50 displays the detected gaze position on the display unit 28 to notify the user. The gaze position detected in S4 has an error with respect to the position of the subject intended by the user due to various factors. In addition, although there are individual differences, there is a delay time of about a few tenths of a second from when a person visually recognizes the intended subject until the eyes start moving. In parallel with the process of FIG. 5, the system control unit 50 performs a process (described later with reference to FIG. 6) for suppressing the influence of such an error or delay time.
[0046] In S5, the system control unit 50 detects the on / off state of the first shutter switch 62 (SW1), which indicates the start of preparation for shooting. The system control unit 50 can detect two levels of on / off depending on the amount of depression of the shutter button 61, and the on / off state of SW1 corresponds to the first level of on / off of the shutter button 61. If the on state of SW1 is not detected in S5 (or the off state is detected), the system control unit 50 advances the processing step to S11. On the other hand, if the on state of SW1 is detected in S5, the system control unit 50 advances the processing step to S6.
[0047] In S6, the system control unit 50 performs focus detection processing (setting of a focus detection area and focus detection). The focus detection processing in S6 is repeatedly executed each time a live view image is acquired until it is determined in S5 that SW1 is off.
[0048] In the focus detection process, the system control unit 50 sets a focus detection area using both the gaze position detected by the gaze detection process started in S4 and corrected by the process of Figure 6, and the subject position detected by the subject detection process included in the LV display process started in S3.
[0049] Thereafter, the system control unit 50 obtains the defocus amount and the defocus direction for each focus detection area using the focus detection data corresponding to the set focus detection area. In this embodiment, the system control unit 50 performs processing to generate an image signal for focus detection, calculate the shift amount (phase difference) of the image signal for focus detection, and obtain the defocus amount and the defocus direction from the calculated shift amount.
[0050] The system control unit 50 performs shading correction and filtering on the first and second focus detection signals obtained as image signals for focus detection corresponding to the focus detection area, reduces the light amount difference between the pair of signals, and extracts signals of spatial frequencies for phase difference detection. Next, the system control unit 50 performs shift processing to relatively shift the first and second focus detection signals after filtering in the pupil division direction, and calculates a correlation amount that indicates the degree of coincidence of the signals.
[0051] The kth first focus detection signal after filter processing is denoted as A(k), the second focus detection signal is denoted as B(k), and the range of number k corresponding to the focus detection area is denoted as W. In addition, the shift amount by the shift processing is denoted as s1, and the shift range of the shift amount s1 is denoted as Γ1. Then, the correlation amount COR is calculated by formula (1).
[0052]
number
[0053] The system control unit 50 performs a shift process of the shift amount s1 to match the k-th first focus detection signal A(k) and the k-s1-th second focus detection signal B(k-s1) and subtracts them to generate a shifted subtraction signal. The system control unit 50 calculates the absolute value of the generated shifted subtraction signal, and calculates the sum of the number k within the range W corresponding to the focus detection area to calculate the correlation amount COR(s1). If necessary, the system control unit 50 may add up the correlation amount calculated for each row across multiple rows for each shift amount.
[0054] Next, the system control unit 50 calculates the real-valued shift amount at which the correlation amount becomes the minimum value by sub-pixel calculation from the correlation amount, and sets it as the image shift amount p1. Then, the system control unit 50 detects the defocus amount by multiplying the calculated image shift amount p1 by a conversion coefficient K1 according to the image height of the focus detection area, the F-number of the imaging lens (imaging optical system), and the exit pupil distance.
[0055] In S7, the system control unit 50 drives the lens based on the defocus amount detected in the selected focus detection area. If the detected defocus amount is smaller than a predetermined value, it is not necessary to drive the lens.
[0056] In S9, the system control unit 50 detects the on / off state of the second shutter switch 64 (SW2), which indicates an instruction to start shooting. The release (shooting trigger) switch, which is one of the operation units 70, can detect two levels of on / off depending on the amount of depression, and the above-mentioned SW2 corresponds to the second level of on / off of the release (shooting trigger) switch. If the system control unit 50 does not detect that SW2 is on in S9, it returns to S5 and detects the on / off state of SW1.
[0057] In S9, the system control unit 50 determines whether or not the ON state of SW2 is detected. If the ON state of SW2 is detected, the process proceeds to S10, and if the ON state of SW2 is not detected, the process returns to S5.
[0058] In S10, the system control unit 50 determines whether or not to record an image. In this embodiment, the system control unit 50 switches the image acquisition process during continuous shooting between one for recording images and one for display / focus detection. The switching may be alternate, or, for example, the image acquisition process for display / focus detection may be performed once every three times. This allows high-precision focus detection to be performed without significantly reducing the number of shots per unit time. If it is determined that image recording is to be performed, the process proceeds to S300, and if not, the process proceeds to S400.
[0059] In S300, the system control unit 50 executes a shooting subroutine to obtain an image for recording. After that, the determination in S9 (that is, the determination as to whether or not to continue continuous shooting) is performed again.
[0060] In S400, the system control unit 50 executes imaging / display / focus detection processing during continuous shooting. The contents of the imaging / display / focus detection processing during continuous shooting are the same as the contents of the processing described in S1 to S3 and S6. However, the system control unit 50 appropriately adjusts the display period of the live view image, the display update rate (interval), the display delay, etc. according to the shooting frame rate of the continuous shooting, the generation processing of the recorded image, etc.
[0061] As in this embodiment, when the display period, update rate, and display delay of the display image change during continuous shooting, the user's gaze position is affected to a certain extent. In this embodiment, in consideration of the fact that an error occurs in the detected gaze position depending on the state and switching of the display specifications described above, the system control unit 50 appropriately processes the gaze position and controls the detection process. This makes it possible to obtain a highly accurate gaze position regardless of changes in the display specifications. As described above, the obtained gaze position information is used for setting the focus detection area and linking with the detected subject area. After the process of S400, the judgment of S9 (i.e., judgment of whether to continue continuous shooting or not) is performed again.
[0062] If the ON state of SW1 is not detected in S5 (or the OFF state is detected), the process of S11 is performed. In S11, the system control unit 50 judges whether the OFF state of the main switch is detected. If the OFF state of the main switch is detected, the process of this flowchart ends. If the OFF state of the main switch is not detected, the process returns to S5.
[0063] <<Gaze position correction processing>> Next, the gaze position correction process will be described with reference to Fig. 6. Fig. 6 is a flowchart of the gaze position correction process. The process of this flowchart is executed in parallel with the gaze detection process in S4 of Fig. 5 after the start of the gaze detection process.
[0064] In S201, the system control unit 50 acquires a plurality of gaze positions detected by the most recent gaze detection processes. The number of gaze positions acquired here is the number required for the moving average process performed in S203 and S208 described later.
[0065] In S202, the system control unit 50 acquires focal length information of the photographing lens.
[0066] In S203, the system control unit 50 performs moving average processing using a plurality of gaze positions to calculate a moving average gaze position. The number of data items (the number of gaze positions) for the moving average here is a predetermined number (for example, 5). By calculating the moving average gaze position, it is possible to reduce the vibration component of the gaze position caused by fixational eye movement of the user's gaze.
[0067] In S204, the system control unit 50 detects the pupil diameter when detecting the user's gaze position.
[0068] In S205, the system control unit 50 corrects the moving average gaze position based on the pupil diameter. This correction is necessary because the size of a human pupil changes depending on the intensity of light entering the eyeball, and the gaze detection error changes according to the size of the pupil. In addition, since the amount of correction here changes depending on the moving average gaze position, the system control unit 50 may optimize the amount of correction using the moving average gaze position. In this embodiment, in order to stabilize the correction result, the moving average gaze position acquired in S203 is used instead of the gaze position acquired in S201.
[0069] In S206, the system control unit 50 evaluates the reliability of the gaze position using the focal length acquired in S202 and the moving average gaze position acquired in S203.
[0070] The reliability evaluation of gaze position will be described with reference to Fig. 7 and Fig. 9. Fig. 7 is a schematic diagram showing the relative relationship between the pupil center and the Purkinje image for each gaze direction. Reference numeral 701 indicates a Purkinje image, and 702 indicates a pupil. Fig. 9 is a diagram conceptually showing the amount of variation in gaze position according to the gaze position when a user looks into an electronic viewfinder and gazes at one point. Reference numeral 901 indicates the amount of variation in gaze position when a user gazes at one point at the lower left gaze position.
[0071] Generally, a gaze detection sensor (for example, the gaze input operation unit 401 shown in FIG. 4) is calibrated at the center position and designed to have the best detection accuracy at the center position. A commonly known method for detecting the gaze position is the corneal reflex method, which detects and calculates a change in the relative positional relationship between the center of the pupil and the Purkinje image. This detection method has a problem that the detection accuracy varies depending on the gaze position. The reason is that the near-infrared light used to acquire the Purkinje image is irradiated at a position slightly shifted from the center of the pupil due to the layout problem on the sensor side, but the irradiated light is obliquely incident on the front of the eyeball, so the Purkinje image is observed at a position shifted from the center of the eyeball. In addition to this problem, there is also a problem that the change in gaze detection accuracy depending on the gaze position is anisotropic. One of the reasons for this is that when the pupil center moves in the opening and closing direction of the eyelids (up and down direction) as shown in FIG. 7, the detection accuracy of the pupil center is likely to decrease because a part of the pupil is hidden by the eyelid. Therefore, as shown in FIG. 9, the detection accuracy of the gaze position is higher in the left and right directions than in the up and down directions with respect to the center position.
[0072] As described above, the structure of the gaze detection sensor causes a decrease in gaze detection accuracy. In addition, fixational eye movements are one of the factors that affect gaze detection accuracy due to humans. As for the structure of the eyeball, when the person is looking directly ahead, excluding cases of strabismus, the balance of the extraocular muscles is the best, and fixational eye movements are the most suppressed. The extraocular muscles are composed of the superior rectus muscle, inferior rectus muscle, lateral rectus muscle, medial rectus muscle, superior oblique muscle, and inferior oblique muscle, and fixational eye movements become larger as the balance of the forces that cause these muscles to be used becomes unbalanced. There is currently no firm theory regarding the anisotropy in the up-down and left-right directions because there are large individual differences, but the more the gaze position deviates from the state of looking directly ahead, the more the balance of the forces of the muscles that make up the extraocular muscles becomes unbalanced, and the more fixational eye movements become larger. In addition, it is thought that changing the gaze position in a diagonal direction rather than in the up-down and left-right directions causes the balance of the forces of the muscles that make up the extraocular muscles to become unbalanced, resulting in larger fixational eye movements. As described above, fixational eye movements also change depending on the gaze position, and there are large individual differences. Therefore, by acquiring the magnitude of fixational eye movement of personal data for each gaze position during calibration, it is possible to improve the gaze detection accuracy.
[0073] As described above, the variation in gaze detection accuracy according to gaze position is determined by a combination of the variation caused by the structure of the gaze detection sensor and the variation caused by human fixational eye movement. In order to obtain a highly accurate gaze position taking these factors into account, it is necessary to optimize the gaze position correction process in the subsequent stage based on the reliability of the detected gaze position.
[0074] A possible method for obtaining the reliability of gaze positions is to obtain gaze information data on multiple gaze positions of multiple people in advance, organize the variance data for each gaze position, and take the reciprocal to obtain the reliability evaluation value of the gaze information. By taking the reciprocal of the variance data, if the variance data is small, the variance in gaze positions is small and the value is stable (high reliability), so the reliability value is large. Conversely, if the variance data is large, the variance in gaze positions is large and the value is unstable (low reliability), so the reliability value is small.
[0075] In addition, the longer the focal length, the more the subject being photographed is blurred due to the user's hand shake, and when the user follows the blurred subject with his / her line of sight, the position of the user's line of sight also vibrates, so the reliability may be calculated taking the focal length into consideration. Specifically, the shorter the focal length, the higher the reliability is evaluated, and the longer the focal length, the lower the reliability is evaluated.
[0076] In addition to the above, the reliability may be evaluated taking into consideration that the reliability of the gaze position acquired from the gaze detection sensor changes depending on the degree of eyelid opening. The reason why the reliability of the gaze position changes depending on the degree of eyelid opening is similar to the reason why the gaze detection accuracy differs depending on the gaze position, and the detection accuracy decreases when part of the pupil is hidden by the eyelid. The change in the reliability of the gaze position depending on the degree of eyelid opening can be detected using the gaze detection sensor. If the gaze detection sensor cannot detect the change in the reliability of the gaze position depending on the degree of eyelid opening, the system control unit 50 may detect the degree of eyelid opening using another sensor and evaluate the reliability.
[0077] Considering the above, in S206, the system control unit 50 evaluates the reliability based on at least one of the gaze position, the focal length, and the eyelid opening degree. The gaze position used here is the moving average gaze position corrected in S205.
[0078] For example, the system control unit 50 determines that the reliability is lower the farther the gaze position is from the center of the display unit 28. Furthermore, when the gaze position is a predetermined distance away from the center of the display unit 28 in the opening and closing direction of the user's eyelids, the system control unit 50 determines that the reliability is lower than when the gaze position is the same predetermined distance away from the center of the display unit 28 in a direction perpendicular to the opening and closing direction. The system control unit 50 determines that the reliability is lower the longer the focal length of the photographing optical system is.
[0079] The processes of S204 and S205 can be omitted. In this case, in S206, the system control unit 50 uses the moving average gaze position acquired in S203 instead of the moving average gaze position corrected in S205. The process of S203 can also be omitted. In this case, in S206, the system control unit 50 uses the gaze position acquired in S201 instead of the moving average gaze position corrected in S205.
[0080] In S207, the system control unit 50 sets a control parameter for correcting the gaze position based on the reliability acquired in S206. The gaze position correction process in this embodiment includes a moving average process and a prediction process, but may include only one of the moving average process and the prediction process. The system control unit 50 determines the number of moving averages n (the number of data for the moving average) as a control parameter for the moving average process. In addition, the system control unit 50 determines the prediction period t 予測期間 The relationship between the reliability and the control parameters will be explained together with the explanation of the process of S208.
[0081] The prediction process is necessary because of the delay time caused by the moving average process and the delay time it takes for a person to move their line of sight after visual recognition. Therefore, the system control unit 50 performs feedforward control to compensate for these delay times as the prediction process.
[0082] In S208, the system control unit 50 performs a process (moving average process and prediction process) to correct the gaze position based on the control parameters determined in S207. As a method of predicting the gaze position, a method of deriving an approximation function from the history information of the gaze position to perform correction, a method of controlling the position speed using the position information of the starting point and the end point, etc., can be considered. In performing the prediction process, it is necessary to derive the gaze prediction amount by appropriately performing low-pass processing based on the reliability obtained in S206 because the gaze position to be used takes an oscillatory value due to the influence of fixational eye movement. A representative method of low-pass processing of gaze information is moving average processing, but the more the number of moving averages is increased, the more the delay time for the gaze change increases, resulting in a trade-off with responsiveness. Therefore, a method of determining the number of moving averages using the reliability of the gaze position is effective. That is, in the above-mentioned S207, the system control unit 50 reduces the number of moving averages n in order to emphasize responsiveness when the reliability is high, and increases the number of moving averages n in order to emphasize suppression of the oscillatory component when the reliability is low. In this embodiment, a case where a moving average and a linear approximation function are derived from history information of gaze positions to perform gaze prediction will be described. However, as described in S207, the system control unit 50 may execute only one of the moving average process and the prediction process.
[0083] Figure 8 shows the moving average number n=5, t 予測期間 13 is a conceptual diagram of a moving average process and a prediction process in the x direction when x=3. The moving average process here is performed based on the gaze position acquired in S201.
[0084] 8, 801 indicates the gaze position at time t2, 802 indicates the average value of the gaze positions from times t1 to t5 (moving average gaze position), 803 indicates the slope (speed of change in gaze position) calculated by the least squares method of the gaze positions from times t1 to t5, and 804 indicates the moving average center of gravity time. Also, 805 indicates the gaze position predicted using the moving average gaze position 802 and the slope 803.
[0085] The moving average gaze position X5 at time t=5 can be calculated using equation (2).
[0086]
number
[0087] Next, the x-direction tilt of the gaze position a x can be calculated using equation (3).
[0088]
number
[0089] FIG. 8(b) shows an outline of the gaze position prediction at time t=8 using the results of FIG. 8(a). 現在 ) at time t=8(t 予測 ) to calculate the predicted gaze position X'8 at the moving average center of gravity time t 移動平均重心 , moving average centroid correction time t 移動平均重心補正 , predicted correction time t 予測補正 and the slope a x Using the above, the slope a in equation (7) can be calculated. x To 予測補正 The term multiplied by is the amount of correction due to gaze prediction.
[0090]
number
[0091]
number
[0092]
number
[0093]
number
[0094] In addition, t 予測 =t 現在 +t 予測期間 t 予測期間 is a period corresponding to the delay time from when a person visually recognizes a subject to when the person starts to move his / her line of sight, and can be determined based on an experiment or the like. Here, t 予測期間 = 3. Thus, t 予測期間 However, as described in S207, the system control unit 50 may set t based on the reliability of the eye gaze position. 予測期間 When the reliability of the gaze position is low, the correction component based on the gaze prediction is likely to include a large amount of error. Therefore, the system control unit 50 may determine t 予測期間 The error can be reduced by making smaller than the value corresponding to the delay time mentioned above (the lower the reliability, the closer the gaze position is predicted).
[0095] In the above description, the time and the number of gaze positions are set to the same resolution for ease of understanding. In actual use cases, if the number of acquired gaze positions per unit time is known, it is possible to predict the gaze position using the moving average and equations (2) to (7).
[0096] Furthermore, in the above explanation, only the x direction is used, but the predicted gaze position can also be calculated in the y direction in the same manner.
[0097] In addition, in the above description, the gaze prediction is performed using consecutively acquired gaze positions, but there are cases where the gaze position cannot be partially acquired during gaze position acquisition due to blinking, shutter, etc. Even in such cases, the gaze prediction process can be performed by appropriately associating the acquired gaze information with the timing, taking into account the gaze position at the timing when it could not be acquired, and it is not necessarily the case that gaze prediction cannot be performed unless consecutive gaze positions are used.
[0098] In S209, the system control unit 50 compares the new gaze position (the corrected gaze position calculated in S208) with the original gaze position stored in the non-volatile memory 56, and determines whether to update the original gaze position. If the difference between the new gaze position and the original gaze position is equal to or greater than the threshold, in S210, the system control unit 50 updates the original gaze position stored in the non-volatile memory 56 with the new gaze position. On the other hand, if the difference is less than the threshold, the system control unit 50 does not update the gaze position and ends the processing of this flowchart.
[0099] The reason for providing the gaze position update judgment is that even if the correction process is optimized by increasing or decreasing the moving average number based on the reliability, the component that causes the gaze position to vibrate even though the subject is not moving cannot be completely removed. By providing a dead zone for the update, the vibration component can be further suppressed. In addition, when the gaze position is continuously displayed, even if the user thinks that the gaze position is not moving, the gaze position moves slightly due to fixational eye movement, etc., so providing a judgment threshold for updating the gaze position is effective in reducing the discrepancy between the user's intention and the result of gaze detection. In the gaze position update judgment, based on the result of the reliability evaluation in S206, the threshold may be adjusted to be smaller (decreasing the dead zone) when the reliability is high, and to be larger (expanding the dead zone) when the reliability is low.
[0100] <<Modification of the gaze position correction process>> In the above-mentioned gaze position correction process, a configuration for performing gaze position prediction processing using an approximation function has been described. In the prediction processing using an approximation function, the scale of calculation becomes somewhat large when calculating the coefficients of the approximation function. Therefore, as a modified example, a configuration for predicting the gaze position using position speed control will be described with reference to FIG. 6.
[0101] The processes in S201 to S207 and S209 to S210 are similar to those in the case where the above-mentioned approximation function is used.
[0102] In S208, the system control unit 50 performs prediction processing using the control parameters determined in S207. The prediction processing of the modified example will be described with reference to FIG.
[0103] In the prediction process, the system control unit 50 uses a moving average value as the reference gaze position that is the starting point. The reason is that when performing position control, if the reference starting point vibrates, the vibration component increases and is carried over to the gaze prediction result. The moving average gaze position can be calculated by the above-mentioned formula (2), and in the case of FIG. 8(a), X3 is the moving average gaze position.
[0104] Next, in order to obtain responsiveness, it is better to use the latest gaze position x before moving average for the gaze position of the end point. Therefore, in FIG. 8, the gaze position x5 at t=5 should be the gaze position of the end point. If position control is performed simply, the gaze prediction amount should be adjusted by multiplying the gaze positions of the start point and end point by coefficient P. However, since position control alone is prone to overshooting when the tracking performance of gaze prediction is improved, it is better to also include speed control. To include speed control, the amount of fluctuation in the latest gaze position is required, so a term obtained by multiplying the difference between the gaze positions x4 and x5 at times t=4 and t=5 by coefficient D should be added. The formula for gaze prediction using position and speed control taking the above into account is formula (8).
[0105]
number
[0106] As in the case of using the above-mentioned approximation function, if the system control unit 50 wishes to reduce the amount of correction of the gaze position by gaze prediction when the reliability is low, it can reduce the position control term P.
[0107] In this embodiment, the gaze detection is performed by simply averaging the acquired gaze data. However, the gaze detection may be performed after checking the difference between the gaze data and excluding the gaze data as an outlier when a difference equal to or greater than a threshold is detected, thereby suppressing the variation during gaze detection. Alternatively, instead of averaging, an approximate curve such as the least squares method may be obtained to obtain the gaze detection result at each timing. In this way, the gaze detection result may be calculated using any statistical value.
[0108] Furthermore, if there are no problems with the calculation speed or scale, the gaze data may be calculated by median processing or Kalman filter processing instead of simply calculating a moving average. In this way, by comparing gaze data over a predetermined period on a time axis, extracting the median and removing outliers, and then performing averaging, it becomes possible to detect the gaze with reduced variation.
[0109] As described above, according to the first embodiment, the digital camera 100 repeatedly detects the gaze position of the user. Then, the digital camera 100 determines the reliability of the detected gaze position, and generates a statistical gaze position (for example, an average gaze position) by calculating a statistical value (for example, an average value) of the detected gaze positions. At that time, the digital camera 100 controls the number of gaze positions used to calculate one statistical value based on the reliability. For example, the digital camera 100 controls the number of gaze positions used to calculate one statistical value (for example, an average value) so that the lower the reliability, the greater the number of gaze positions used to calculate one statistical value (for example, an average value). Therefore, when the reliability is low, the number of gaze positions to be averaged increases, thereby suppressing detection errors of the gaze position and the influence of fluctuations due to fixational eye movement, and when the reliability is high, the number of gaze positions to be averaged decreases, thereby suppressing delays, thereby improving the accuracy of gaze detection. In addition, the digital camera 100 estimates the fluctuation speed of the gaze position by, for example, the least squares method for the multiple gaze positions, and predicts the future gaze position based on the average gaze position and the estimated fluctuation speed. This compensates for the effect of the delay involved in averaging a plurality of gaze positions and the delay between when a person views a subject and when the person starts to move his or her gaze, thereby improving the accuracy of gaze detection.
[0110] Instead of using reliability, digital camera 100 may control the number of gaze positions used in calculating one statistical value based on the distance of the detected gaze position from the center of display unit 28. For example, when the detected gaze positions include a gaze position that is a first distance from the center of display unit 28, digital camera 100 calculates the statistical value using a greater number of gaze positions than when the detected gaze positions include a gaze position that is a second distance shorter than the first distance.
[0111] [Second embodiment] In the second embodiment, a configuration for detecting the gaze position using dictionary data obtained by learning will be described for the gaze position detection process that starts in S4 of Fig. 5 described in the first embodiment. Additionally, a learning process for obtaining the dictionary data will also be described.
[0112] In the second embodiment, the basic configuration of the digital camera 100 is similar to that of the first embodiment (see FIG. 1). Below, the differences from the first embodiment will be mainly described.
[0113] <<Gaze position detection processing using dictionary data>> Fig. 10 is a flowchart of gaze position detection processing using dictionary data. It is assumed that the dictionary data is created in advance and stored in the non-volatile memory 56. A method for creating the dictionary data will be described later. As described in the first embodiment, after S4 in Fig. 4, the system control unit 50 acquires the gaze position at a predetermined time interval. In the second embodiment, each acquisition process in which the system control unit 50 acquires the gaze position at a predetermined time interval corresponds to the process of the flowchart in Fig. 10.
[0114] In S1001, the system control unit 50 uses the gaze input operation unit 401 to obtain eye image information (gaze image information).
[0115] In S1002, the system control unit 50 detects the gaze position by performing inference based on the gaze image information acquired in S1001 and the dictionary data stored in the non-volatile memory 56. Specifically, the system control unit 50 determines whether the user's eye included in the gaze image information is the right eye or the left eye. The method of determination is not particularly limited. Next, the system control unit 50 acquires the gaze position corresponding to the gaze image information by using a deep learning CNN (Convolutional Neural Network) included in the dictionary data.
[0116] In addition, when the gaze image information includes both of the user's eyes, the system control unit 50 may detect the gaze position by identifying the right eye region and the left eye region in the gaze image and appropriately using dictionary data for both the left and right eyes.
[0117] <<How to create dictionary data>> Here, a method for creating the dictionary data used in the above-mentioned eye gaze position detection process will be described.
[0118] When detecting gaze information (gaze position) from the positional relationship between the pupil position of the eyeball and the Purkinje image, the detection result changes depending on the gaze position, iris diameter, pupil diameter, and the reliability of the eye image. Therefore, when creating dictionary data by learning using eye images, it is possible to create more accurate learned dictionary data by linking the gaze position, iris diameter, pupil diameter, and the reliability of the eye image as related information.
[0119] In order to obtain eye image information of a device such as a camera through which a user looks with one eye, input the information to a learning device, and create learned dictionary data, some ingenuity is required when collecting learning data.
[0120] Some people look through a camera viewfinder with their right eye, and some with their left eye. Normally, it is necessary to prepare separate learning data and learned dictionary data for the right and left eyes, but it is possible to determine whether an image is a right-eye image or a left-eye image by taking into account human features such as the inner corner and outer corner of the eye. Therefore, when an eye image is input into an eye information learning device to create learned dictionary data, the eye information learning device performs image association processing by taking into account human symmetry, and performs image processing such as flipping either the right eye or the left eye left and right to match the direction of the eyes. This makes it possible to have the learning device learn the respective learning data for the right eye and the left eye as eye image data for both the left and right eyes, and create learned dictionary data.
[0121] When performing gaze detection using the created left and right combined learned dictionary data, the system control unit 50 determines whether the image is a right eye image or a left eye image by detecting eye information such as the inner corner and the outer corner of the eye from the eye image (gaze image information of S901).Then, the system control unit 50 appropriately performs preprocessing such as image inversion processing, and then acquires the eye information and acquires the gaze position.
[0122] FIG. 11 is a diagram showing the correspondence relationship between the gaze directions of the left and right eyes. In the case of gaze positions and eyes, as shown in FIG. 11, the left and right eyes are arranged and configured approximately symmetrically with respect to the center of the body. Therefore, by reversing the eye images for each gaze position on the left and right and creating learning data based on a person whose gaze position is also reversed on the left and right, it is possible to create highly versatile learning data. In order to create highly versatile learning data, it is necessary to collect as many different types of eye images as possible when collecting eye image data. Even the same person is not completely symmetrical, and since there is a dominant eye, there is a large difference in the way the camera looks into the left and right. Therefore, even if the eye images are of the same person, image data with different tendencies is obtained for the left and right eyes. Therefore, in order to create learned dictionary data for detecting gaze positions from general-purpose eye images, it is better to create learned dictionary data for both left and right use by taking into account the symmetry of the left and right, rather than preparing it separately for the left and right, as this will enable more versatile and highly accurate gaze detection.
[0123] When creating trained dictionary data, the training data is image-processed with the addition of eye features before being input to the learning device, making it possible to detect even minute features. This is a process that intentionally derives commonalities from the collected training data to a certain extent, so care must be taken to ensure that the dictionary data does not become overtrained, but using it appropriately is effective in improving the accuracy of gaze information detection.
[0124] If the learned dictionary data is created using learning data collected excessively at random, there is a concern that the detection accuracy will drop significantly when data that deviates even slightly from the average value is applied to the dictionary data. Therefore, it is possible to compensate for this drawback by intentionally applying image processing to the learning data before creating the learned dictionary data. In addition, if gaze detection is performed using multiple dictionaries and different dictionaries are used depending on the conditions, it is possible to further improve the gaze detection accuracy. As a method for using multiple dictionaries, there is a method of using first dictionary data learned completely at random and second dictionary data learned using learning data that has been intentionally subjected to image processing. Then, when gaze detection cannot be performed using the first dictionary data, a method of performing gaze detection using the second dictionary data, or a method of performing gaze detection with higher accuracy using the second dictionary data after roughly detecting the gaze using the first dictionary data can be considered.
[0125] The purpose of image processing will be explained with reference to FIG. 11. For example, the eye angle can be defined by the positional relationship between the inner corner and the outer corner of the eye. By creating dictionary data after adjusting the eye angle of the learning data, it becomes easier to learn the detailed structural information of the eye, such as the outline of the eye and the positional relationship between the iris, pupil, outer corner and inner corner of the eye. In addition, since the color information of the iris differs depending on race, it is also effective to use color information if the gaze detection sensor can detect color. Therefore, by taking into account the positional relationship, shape, color, etc. of the structural information of the eye, such as the inner corner information, outer corner information, iris information, pupil information, eyelash information, eyebrow information, etc., and performing image processing such as image size adjustment, image rotation angle adjustment, image cropping range adjustment, color adjustment, contrast adjustment, edge extraction processing (digital filter processing), etc., it becomes possible to create dictionary data that enables gaze detection with higher accuracy.
[0126] In order to improve the accuracy of dictionary data, it is also very important to increase the amount of learning data. In collecting learning data, a plurality of pieces of gaze detection data are often obtained when calibrating the gaze detection sensor after starting up the camera. Therefore, if a camera is used as a gaze detection device and the consent of the camera user is obtained, the camera may transmit an eye image, eye feature information, and the reliability of the gaze information of the eye image (gaze reliability) to a cloud server via wireless communication or the like. If the transmitted data can be used as learning data, efficient collection of learning data is possible. If the learning data collected in this way is additionally learned to create learned dictionary data, and the re-learned dictionary data is received by the camera and used during gaze detection, the camera user can take pictures using a more accurate gaze detection result.
[0127] 12 is a conceptual diagram of a process for generating the above-mentioned re-learned dictionary data. An eye information learning device 1201 generates the re-learned dictionary data based on the reliability (gaze reliability) of the eye image, eye feature information, and gaze information of the eye image transmitted to the above-mentioned cloud server.
[0128] <<Configuration of eye information learning device>> Next, the configuration of the eye information learner 1201 for generating dictionary data will be described with reference to Fig. 13. The eye information learner 1201 can be implemented by an information processing device such as a personal computer. Alternatively, the digital camera 100 may include the eye information learner 1201.
[0129] 13(a), in addition to eye features such as gaze position, eye head information, eye tail information, iris information, pupil information, eyelash information, and eyebrow information, prepared eye images linked with the reliability of the eye image information are input to the eye information learning device 1201. The eye information learning device 1201 performs learning based on these input data, and generates learned dictionary data as output.
[0130] As shown in FIG. 13(b), when an eye image is input to the learned dictionary data, gaze information (information indicating gaze position) is output. The reason for adding eye information and the reliability of eye image information in addition to eye image information as input to the eye information learning device 1201 is to learn gaze positions by taking eye information into consideration in a composite manner, to automatically generate dictionaries that are individually learned for each piece of eye information, to automatically generate multiple dictionaries with different learning methods based on eye information, and to automatically select appropriate eye images as learning data. A case where the gaze position is learned by taking multiple pieces of eye information into consideration in the eye information learning device 1201 will be described below. As shown in FIG. 13(c), a case is considered in which the eye information learning device 1201 creates multiple learned dictionary data based on the input eye information, and acquires gaze information using the learned dictionary data. In this case, as shown in FIG. 13(d), the eye image may be passed through multiple learned dictionary data to acquire multiple pieces of gaze information.
[0131] Since there are large individual differences in the human eye, when dictionary data is created using a learning device, if gaze detection is performed using only dictionary data randomly trained by the learning device (randomly selected and trained dictionary data), there is a possibility that the gaze detection accuracy cannot be guaranteed satisfactorily. Therefore, in addition to the randomly selected and trained dictionary data, dictionary data with high similarity may be selected by focusing on specific eye features and trained by a learning device for each selection method (condition-selected and trained dictionary data). In this case, the system control unit 50 performs gaze detection using both the randomly selected and trained dictionary data and the condition-selected and trained dictionary data.
[0132] Here, reference is made again to FIG. 7 described in the first embodiment. As described in the first embodiment, the detection accuracy of the gaze detection by the gaze detection sensor (for example, the gaze input operation unit 401 shown in FIG. 4) differs depending on the gaze position. In addition, there is anisotropy in the change in the gaze detection accuracy depending on the gaze position. Therefore, when creating learned data, in addition to all-gaze-position learned data obtained by learning eye images at all gaze positions regardless of gaze position, it is also possible to create gaze-position-specific learned data obtained by classifying and learning by gaze position, such as center, upper right, and lower left as shown in Figure 7.
[0133] When creating the total gaze position learned data and the gaze position specific learned data, respectively, a configuration may be adopted to make it easier to detect eye features (gaze position, eye head information, eye tail information, iris information, pupil information, eyelash information, eyebrow information). Specifically, a learning configuration may be adopted in which the gaze position specific learned data uses image data with a higher spatial resolution than the total gaze position learned data. When detecting the relative positional relationship between the pupil and the Purkinje image, the eye information is also detected, so that the positional relationship (distance and rotation angle) between the gaze detection sensor that acquires the eye image and the user's eye can be known. By constantly detecting the positional relationship between the gaze detection sensor and the user's eye, it is possible to realize highly accurate calibration in gaze position detection, which is effective for realizing highly accurate gaze position detection.
[0134] When performing gaze detection, the system control unit 50 first performs gaze detection using all gaze position learned data. In cases where the pupil or Purkinje image is optically vignetted by the eyelids or the like and the gaze detection accuracy is likely to decrease (gaze positions such as the upper right and lower left in FIG. 2), the system control unit 50 performs gaze position detection using learned data for each gaze position. This makes it possible to balance between high speed and high accuracy in gaze position detection.
[0135] Next, we will explain the need to create trained dictionary data that takes iris diameter into account. Unlike the pupil, the iris is not subject to changes due to the environment, does not change in size, and there is little individual variation. Therefore, it is possible to roughly obtain information on the distance from the eyeball to the gaze detection sensor (hereinafter, eyeball distance) from the size of the iris. Note that if an optical system such as a contact lens or glasses is inserted between the gaze detection sensor and the eyeball, the apparent size of the iris will change.
[0136] Unlike medical instruments, imaging devices such as the digital camera 100 do not fixate the head when acquiring gaze information, so the eye distance is prone to change. Even under such circumstances, highly accurate gaze detection is possible by performing gaze detection taking into account the size of the iris.
[0137] Next, we will explain the necessity of preparing learned dictionary data that takes into account pupil diameter. The diameter of a human pupil changes depending on the intensity of light entering the eyeball. Therefore, when the intensity of light entering the eyeball changes, the way the pupil is blocked by the eyelids, etc., changes, and the accuracy of gaze detection changes.
[0138] Finally, the necessity of linking the reliability of the eye image to create the learned dictionary data will be described. Even if the user directs the gaze to the same position in the viewfinder, there are large individual differences in how the eyelids are opened and how the user looks into the viewfinder, so the reliability of the eye image itself will vary greatly depending on the obstruction between the eyeball and the gaze detection sensor and the vignetting of the eyelids. It is possible to generate highly accurate learned data by processing learning image data that has a mixture of degrees of vignetting of the pupil and iris while selecting it by requiring processing or excluding it. In order to efficiently select learning image data and create highly accurate learned dictionary data, it is necessary to automatically select the acquired image data. Therefore, if the gaze detection sensor can output the reliability of the gaze information, the information may also be attached, or a rough policy may be adopted in which the reliability of the gaze of the eye image is calculated and attached before learning and then learning is performed.
[0139] As described above, according to the second embodiment, the eye information learner 1201 generates learned dictionary data by performing learning based on a plurality of eye images associated with information indicating gaze positions. At that time, the eye information learner 1201 generates learned dictionary data for both left and right eyes based on the fact that the right eye and the left eye are symmetrical in the plurality of eye images. This makes it possible to generate highly accurate learned dictionary data.
[0140] [Other embodiments] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0141] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0142] 22 imaging section, 24 image processing section, 28 display section, 50 system control section, 52 system memory, 56 non-volatile memory, 100 digital camera, 150 lens unit, 200 recording medium
Claims
1. A detection means for repeatedly detecting the gaze position of a user looking at a display means; a first determination means for determining reliability of the gaze position detected by the detection means; a generation means for generating statistical gaze positions by calculating a statistical value of a plurality of gaze positions detected by the detection means, the generation means controlling the number of gaze positions used in the calculation of one statistical value based on the reliability; An eye gaze position processing device comprising:
2. An estimation means for estimating a speed of change of a gaze position; a prediction means for predicting a future gaze position based on the statistical gaze position and the estimated change speed; The gaze position processing device according to claim 1 , further comprising:
3. The prediction means predicts a gaze position in the near future as the reliability is lower. The gaze position processing device according to claim 2 .
4. a second determination means for determining whether or not a difference between the gaze position stored in the storage means and the future gaze position obtained by the prediction is equal to or greater than a threshold, the second determination means using a larger value as the threshold as the reliability is lower; an update means for updating the gaze position stored in the storage means with the future gaze position when the difference is equal to or greater than the threshold; The gaze position processing device according to claim 2 or 3, further comprising:
5. The first determination means determines that the reliability is lower as the gaze position detected by the detection means is farther from the center of the display unit.
5. The gaze position processing device according to claim 1,
6. The first determination means determines that the reliability is lower when the gaze position detected by the detection means is a predetermined distance away from the center of the display unit in the opening and closing direction of the user's eyelids than when the gaze position detected by the detection means is the predetermined distance away from the center of the display unit in a direction perpendicular to the opening and closing direction. The gaze position processing device according to claim 5 .
7. The generating means controls so that the number of gaze positions used for calculating the one statistical value increases as the reliability decreases.
7. The gaze position processing device according to claim 1,
8. The statistic is the average value The eye gaze position processing device according to any one of claims 1 to 7.
9. 9. The gaze position processing device according to claim 1, wherein the detection means performs the detection by inference based on learned dictionary data.
10. the plurality of gaze positions are gaze positions detected by the detection means at different times, The generation means controls the number of the gaze positions detected at different times to be used for calculating the one statistical value, based on the reliability. The gaze position processing device according to any one of claims 1 to 9.
11. An eye gaze position processing device according to any one of claims 1 to 10, An imaging means; An imaging device comprising:
12. The first determination means determines that the reliability is lower as the focal length of the photographing optical system used by the imaging means is longer.
12. The imaging device according to claim 11.
13. A detection means for repeatedly detecting a gaze position of a user looking at a display means; a generation means for generating statistical gaze positions by calculating a statistical value of a plurality of gaze positions detected by the detection means, the generation means calculating the statistical value using a greater number of gaze positions when a gaze position at a first distance from a center of a display unit is included than when a gaze position at a second distance shorter than the first distance is included; An eye gaze position processing device comprising:
14. The gaze position processing device according to claim 13 ; An imaging means; An imaging device comprising:
15. A display device comprising: a first plurality of eye images obtained by photographing the eyeballs of a user looking at a display means; and a learning means for generating learned dictionary data for detecting a user's gaze position from the eye images by performing learning based on gaze positions detected from the first plurality of eye images; The learning means generates learned dictionary data for both right and left eyes based on the fact that the right eye and the left eye are symmetrical in the first plurality of eye images. A learning device characterized by:
16. The learning means classifies the first plurality of eye images by gaze position and performs learning for each gaze position to generate learned dictionary data for each gaze position.
16. The learning device according to claim 15.
17. The learning means classifies, by gaze position, a second plurality of eye images that have a lower resolution than the first plurality of eye images and are associated with information indicating a gaze position, and performs learning for each gaze position, thereby generating learned dictionary data for each gaze position.
16. The learning device according to claim 15.
18. The learning means performs learning based on at least one of a position, a shape, and a color of at least one of an eye canthus, an eye lateral canthus, an iris, a pupil, an eyelash, and an eyebrow of an eye included in the first plurality of eye images.
18. A learning device according to any one of claims 15 to 17.
19. The learning means generates the left and right trained dictionary data by performing image processing for horizontally inverting at least a part of the first plurality of eye images.
19. A learning device according to any one of claims 15 to 18.
20. A gaze position processing method executed by a gaze position processing device, comprising: A detection step of repeatedly detecting a gaze position of a user looking at a display means; a first determination step of determining reliability of the gaze position detected by the detection step; a generating step of generating statistical gaze positions by calculating a statistical value of the plurality of gaze positions detected by the detecting step, the generating step controlling the number of gaze positions used for calculating one statistical value based on the reliability; A gaze position processing method comprising:
21. A gaze position processing method executed by a gaze position processing device, comprising: A detection step of repeatedly detecting a gaze position of a user looking at a display means; a generation process for generating statistical gaze positions by calculating statistical values of the plurality of gaze positions detected by the detection process, the generation process calculating the statistical value using a greater number of gaze positions when a gaze position at a first distance from a center of the display unit is included than when a gaze position at a second distance shorter than the first distance is included; A gaze position processing method comprising:
22. A learning method executed by a learning device, comprising: A learning process is provided for generating learned dictionary data for detecting a user's gaze position from an eye image by performing learning based on a first plurality of eye images acquired by photographing the eyeball of a user looking at a display means and a gaze position detected from the first plurality of eye images, In the learning step, based on the fact that the right eye and the left eye are symmetrical in the first plurality of eye images, learned dictionary data for both the left and right eyes is generated. A learning method comprising:
23. A program for causing a computer to function as each of the means of the gaze position processing device according to any one of claims 1 to 10.
24. A program for causing a computer to function as each of the means of the gaze position processing device according to claim 13.
25. A program for causing a computer to function as the learning means of the learning device according to any one of claims 15 to 19.
Citation Information
Patent Citations
Camera with line of sight detecting device
JP1993100147A
Line-of-sight detector, apparatus and camera with function of line-of-sight detection
JP2002328294A
Eye potential measuring device, ophthalmic diagnosis apparatus, visual line detector, wearable camera, head-mounted display, electronic glasses, and eye potential measuring method, and program
JP2011120887A
Information processing device and program
JP2018010465A
Image display device, wearable device, and image display system
JP2020048185A
