Method and system for automatic pupil detection

Through computer detection and analysis of image data, the pupil position of the smart glasses user is automatically estimated, which solves the problem of insufficient size adjustment accuracy in the existing technology and achieves efficient smart glasses size adjustment.

CN113645894BActive Publication Date: 2024-09-27GOOGLE LLC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202080021767.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-26
Filing Date
2020-07-27
Publication Date
2024-09-27
Estimated Expiration
2040-07-27

AI Technical Summary

Technical Problem

Existing smart glasses (WHUD) require precise pupil position measurement when adjusting the size, and manual measurement methods are not accurate enough, limiting the wide application of the device.

Method used

Using a computer-implemented method, the image data of the subject's head is detected through the camera and light source, the eyes are identified and the pupil position is estimated, the convolution kernel is used to detect the reflection of the display screen, and the interpupillary distance and interpupillary distance are calculated by combining the gaze focus and optical axis offset.

Benefits of technology

It achieves automated and accurate pupil position detection, simplifies the size adjustment process of WHUD, and improves the user experience and accuracy of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113645894B_ABST
    Figure CN113645894B_ABST
Patent Text Reader

Abstract

Systems and methods for detecting pupil locations on a subject's head are described. When a camera and a light source are located in front of the subject's head, the camera is caused to capture image data representing a frontal portion of the subject's head. A face of the subject is detected from the image data. Up to two eyes are identified from the detected face. A reflection of a light source on each identified eye is detected. A pupil location for each identified eye is estimated based on the location of the detected reflection of the light source on the identified eye. One or more of an inter-pupillary distance, a left pupil distance, and a right pupil distance may be determined based on the estimated pupil location.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] There is a great deal of interest in turning glasses into wearable electronic devices. Various combinations of these wearable electronic devices include glasses with integrated cameras (e.g., SPECTACLES from Snap Inc.), glasses with integrated audio (e.g., BOSEFRAMESALTO audio sunglasses), and glasses with integrated displays (e.g., FOCALS and VUZIX from North Inc.). ). These wearable electronic devices are generally collectively referred to as smart glasses. However, the complexity of these devices can vary greatly depending on the features supported by the device. Smart glasses that provide a display may be referred to as a wearable head-up display (WHUD) to distinguish them from smart glasses that do not provide a display.

[0002] One type of WHUD is a virtual retinal display, in which a projector draws a raster scan onto the eyes of a user (i.e., a person wearing the WHUD). The WHUD includes a support frame that has the appearance of a glasses frame. The support frame houses two lenses. The projector is mounted in the temples of the support frame, and an optical combiner integrated in one of the lenses receives light from the projector and redirects it to the eye. The optical combiner can be a free space combiner, such as a holographic combiner or a substrate guided combiner, such as a waveguide or light guide combiner with input and output couplers. The WHUD has an eye frame that defines the range of eye positions in which the user can see the displayed content. The eye frame can be defined by a single exit pupil or multiple exit pupils, depending on the configuration of the optical combiner that forms the (multiple) exit pupils. Typically, when the user's eyes are within the eye frame, or when the pupil of the eye is aligned with at least one exit pupil, the user will be able to see all of the displayed content. In contrast, when the user's eyes are outside the eye frame, the user will not be able to see at least a portion of the displayed content.

[0003] Like ordinary glasses, WHUDs include a support frame (or frames) that needs to be sized and adjusted to the head and lenses that need to be mounted to the support frame, where the lenses may or may not come with a prescription. Unlike ordinary glasses, WHUDs have additional requirements regarding the alignment of the eyes with the eye frames and the placement of the optical combiner on the lens. The optical combiner must be placed on the lens and relative to the support frame in a way that ensures that the user can see the display content when the support frame is mounted on the user's head, and the placement must be customized for each user. One of the key measurements for sizing a WHUD or any glasses in general is the interpupillary distance (IPD) (also known as pupil distance (PD)). The IPD is the distance between the centers of the pupils, usually in millimeters. Other measurements related to the IPD are the left pupil distance (LPD) and the right pupil distance (RPD). The LPD is the distance from the center of the left pupil to the center of the bridge of the nose, and the right pupil distance (RPD) is the distance from the center of the right pupil to the center of the bridge of the nose. If the eyes are completely symmetrical about the center of the bridge of the nose and looking straight ahead or at infinity, the LPD should be equal to the RPD, and the RPD should be equal to half the IPD. In prescription glasses and prescription WHUDs, IPD is used to determine where the optical center of the lens should be. In addition, in WHUDs, IPD (or IPD together with LPD or RPD) is used to determine the optimal placement of the optical combiner on the lens.

[0004] An ophthalmologist (e.g., an optometrist or ophthalmologist) can provide pupil position measurements such as IPD as part of an eye examination and prescription information. However, requiring potential users to see an ophthalmologist for an eye examination before sizing a WHUD poses a significant barrier to mass adoption of WHUDs. Manual methods exist for measuring IPD. One manual method is based on physically measuring the distance between the pupils using a ruler placed on the forehead. However, this manual method does not necessarily produce sufficiently accurate pupil position measurements to resize a WHUD (for the purpose of projecting content into the eye through the eye box). Summary of the invention

[0005] A computer-implemented method for detecting pupil position on a subject's head can be summarized as comprising: when a camera and a light source are located in front of the subject's head, causing the camera to capture image data representing a frontal portion of the subject's head; detecting the subject's face from the image data; identifying up to two eyes from the detected face; detecting a reflection of a light source on each identified eye; and estimating the pupil position of each identified eye based on the position of the detected reflection of the light source on the identified eye.

[0006] In some cases, the method includes causing the light source to illuminate a frontal portion of the subject's head while causing the camera to capture the image data.

[0007] In some cases, the light source is a display screen of an electronic device, and detecting a reflection of the light source on each identified eye includes detecting a reflection of the display screen on each identified eye.

[0008] In some cases, detecting the reflection of the display screen on each identified eye includes convolving a region of the detected face including the identified eye with a convolution kernel constructed to identify bright areas having a screen reflection shape and surrounded by relatively darker pixels.

[0009] In other cases, detecting the reflection of the display screen on each identified eye includes convolving a region of the detected face including the identified eye with a first convolution kernel and a second convolution kernel. The first convolution kernel is configured to identify a bright region having a screen reflection shape and surrounded by relatively dark pixels. The second convolution kernel is configured to identify dark pixels surrounding a relatively bright region having a screen reflection shape.

[0010] In some cases, the method includes presenting a gaze focus on the display screen before causing the camera to capture the image data.

[0011] In some cases, the method includes directing a gaze of the subject to the gaze focus prior to causing the camera to capture the image data.

[0012] In some cases, estimating the pupil position of each identified eye includes determining a point on each detected screen reflection that corresponds to the gaze focus on the display screen.

[0013] In some cases, estimating the pupil position of each identified eye further includes applying a lateral shift to a determined point on each detected screen reflection to compensate for an offset between the optical axis and the visual axis of the identified eye.

[0014] In some cases, the method includes determining whether lighting conditions of a frontal portion of the subject's head indicate a bright environment during causing the camera to capture at least a portion of the image data.

[0015] In some cases, determining whether the lighting conditions of the frontal portion of the subject's head indicate a bright environment includes: determining, for at least one identified eye, whether there are additional light source reflections on the at least one identified eye, and comparing an average intensity of each of the additional light source reflections with an average intensity of the light source reflections detected on the at least one identified eye. If there is at least one additional light source reflection on the at least one identified eye having an average intensity, and the average intensity substantially matches the average intensity of the light source reflections detected on the at least one identified eye, then the lighting conditions of the frontal portion of the subject's head indicate a bright environment.

[0016] In some cases, if it is determined that the lighting conditions of the frontal portion of the subject's head are indicative of a bright environment, the method includes re-causing the camera to capture image data representing the frontal portion of the subject's head under different lighting conditions.

[0017] In some cases, the method includes prompting the subject to face away from an additional light source to provide a different lighting condition.

[0018] In some cases, the method includes determining a confidence level in the estimate of the pupil position for each identified eye based on a degree of displacement of the pupil position for the identified eye relative to a central position of an iris on the identified eye.

[0019] In some cases, the method includes determining at least one of an inter-pupillary distance, a left pupil distance, and a right pupil distance from the estimated pupil position.

[0020] A system for detecting pupil position of a subject's head can be summarized as including: a front-facing camera; a display screen; at least one processor communicatively coupled to the front-facing camera and the display screen; and a memory for storing a set of instructions that, as a result of being executed by the at least one processor, causes the system to: capture image data representing a frontal portion of the subject's head using the front-facing camera; detect the subject's face in the image data; identify up to two eyes from the detected faces; detect a reflection of the display screen on each identified eye; and estimate the pupil position of each identified eye based on the position of the detected screen reflection on the identified eye.

[0021] A non-transitory computer-readable storage medium having computer-executable instructions stored thereon, which, as a result of being executed, cause at least one computer processor to: obtain image data representing a frontal portion of a subject's head; detect a face of the subject from the image data; identify up to two eyes from the detected face; detect a reflection of a light source having a known shape on each identified eye; and estimate a pupil position of each identified eye based on the position of the detected reflection of the light source on the identified eye.

[0022] The foregoing general description and the following detailed description are examples of the present invention and are intended to provide an overview or framework for understanding the nature of the invention as claimed. The accompanying drawings are included to provide a further understanding of the present invention and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate various embodiments of the present invention and together with the description serve to explain the principles and operation of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In the drawings, the same reference numerals indicate similar elements or actions. The sizes and relative positions of the elements in the drawings are not necessarily drawn to scale. For example, the shapes and angles of various elements are not necessarily drawn to scale, and some of the elements are arbitrarily enlarged and positioned to improve the readability of the drawings. In addition, the particular shapes of the drawn elements do not necessarily convey any information about the actual shape of the particular element, and are merely selected for ease of identification in the drawings.

[0024] Figure 1 is a front view of an exemplary electronic device that may be configured to automatically detect pupil location on a user's head.

[0025] Figure 2 is a flow chart illustrating a method of automatically detecting pupil position on a head.

[0026] Figure 3A yes Figure 1 0026] A front view of an electronic device showing an exemplary home screen of a glasses size adjustment application UI (app UI).

[0027] Figure 3B yes Figure 1 A front view of an electronic device showing an exemplary pupil detection screen of an app UI.

[0028] Figure 3C is a side view of an electronic device tilted relative to the vertical direction.

[0029] Figure 3D and Figure 3E yes Figure 1 A front view of an electronic device showing different states of a processing screen of an app UI.

[0030] Figure 4 is a schematic diagram of a face region and an eye region of an image captured by a front camera.

[0031] Figure 5A is an example of a convolution kernel used to detect screen reflections.

[0032] Figure 5B yes Figure 5A Image representation of the convolution kernel.

[0033] FIG. 6A to FIG. 6D is an example of a convolution kernel used to detect screen reflections.

[0034] Fig. 7A and Figure 7B Shows the proportional relationship between the display screen and the screen reflection.

[0035] Fig. 8A A lateral shift of the left pupil position is shown to compensate for the offset between the optical and visual axes of the left eye.

[0036] Figure 8B A lateral shift of the right pupil position is shown to compensate for the offset between the optical and visual axes of the right eye.

[0037] Fig.9A is a schematic diagram showing the alignment of the iris center of an eye with the pupil position detected on the eye.

[0038] Fig. 9B is a schematic diagram showing the offset between the center of the iris of an eye and the pupil position detected on the eye. DETAILED DESCRIPTION

[0039] Certain specific details are given in the following description to provide a thorough understanding of the various disclosed embodiments. However, those skilled in the relevant art should understand that these embodiments can be implemented without one or more of these specific details, or by other methods, components, materials, etc. In other instances, known structures associated with portable electronic devices and head-mounted devices are not shown or described in detail to avoid unnecessary confusion in the description of the embodiments. For the sake of continuity and brevity, the same or similar figure numbers may be used for the same or similar objects in multiple figures. For the sake of simplicity, the term "corresponding to" may be used to describe the correspondence between features of different figures. When a feature in a first figure is described as corresponding to a feature in a second figure, the feature in the first figure is deemed to have the characteristics of the feature in the second figure, and vice versa, unless otherwise stated.

[0040] In this disclosure, unless the context requires otherwise, throughout the following specification and claims, the word "comprise" and variations such as the general and present tenses of "comprises" should be interpreted in an open and inclusive sense, i.e., "including but not limited to".

[0041] Reference in this disclosure to "one embodiment" or "an embodiment" or "one example" or "an embodiment" means that the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments or one or more examples.

[0042] In this disclosure, the singular forms "a", "an" and "the" include plural references unless the context clearly dictates otherwise. It should also be noted that the term "or" is generally used in its broadest sense, that is, as the meaning of "and / or", unless the context clearly dictates otherwise.

[0043] The titles and abstracts of the disclosure are given herein for convenience only and do not interpret the scope or meaning of the embodiments.

[0044] Figure 1 A portable electronic device (PED) 100 is shown that can be configured to automatically detect the pupil position of a subject's head according to the methods described herein. The term "pupil position" refers to the center position of the pupil of an eye. For a typical user with two eyes, there are two pupil positions from which the IPD can be calculated, or if the gaze point is known, the accurate LPD and RPD can be determined. Although the electronic device 100 is described as being portable, it should be understood that the methods can be implemented in electronic devices that are not considered portable. For illustrative purposes, the Figure 1 In the embodiment of the present invention, the PED 100 is shown as a smart phone, but the method of detecting pupil position can be implemented with other types of portable electronic devices (such as a tablet computer or a notebook computer). Figure 1The smartphone shown as the PED 100 is overly simplified and does not indicate all features that a smartphone may have. Generally speaking, a PED (or electronic device in general) configured to detect pupil position is a system that includes a camera and a light source, the positions and geometries of which are fixed and known during use of the system. In one example, the PED 100 includes, among other electronic components, a front-facing (FF) camera 104 (or "selfie" camera), a display screen 108 that acts as a light source, at least one processor 112 for executing computer-readable instructions, and a memory 116 for storing data and computer-readable instructions. The term "forward-facing camera" or "FF camera" generally indicates that the camera is facing the user when the user operates the PED 100. The memory 116 includes one or more types of data storage, such as random access memory (RAM), read-only memory (ROM), flash memory, a solid-state drive, etc. The PED 100 may have an electronic front-facing (FF) flash that can be selectively activated (or turned on) when an image is captured by the FF camera 104. On smartphones, the FF flash is usually activated by showing a white screen with maximum brightness on the display.

[0045] In one embodiment, to allow the PED 100 to be used to detect the pupil position of the subject user's head, the eyeglass resizing application is stored in the memory 116 of the electronic device 100. For example, at the request of the subject user, the processor 112 may obtain the eyeglass resizing application from an application store and store it in the memory 116. The user may activate the eyeglass resizing application using any suitable method for launching an application on an electronic device (e.g., by selecting an icon in a menu presented on the display screen 108 or by voice command). In embodiments herein, the eyeglass resizing application generally includes computer-readable instructions for capturing an image of a scene in front of the FF camera 104 and extracting pupil position information from the captured image. The FF camera 104 is located in front of the subject user's head, so the scene captured by the FF camera includes a frontal portion of the head. The frontal portion of the head is the portion of the head that includes the face. Any suitable method for positioning the FF camera 104 in front of the user's head may be used, such as the user holding the PED 100 in a selfie position, or by supporting the PED 100 on a tripod or selfie stick located in front of the user.

[0046] FF cameras, such as those included with smartphones, do not typically capture high-resolution images. Therefore, it is very difficult, and sometimes even impossible, to extract pupil data directly from FF camera images. In this paper, a method that does not rely on extracting pupil data from FF camera images is used to detect pupil location. It has been found that if a FF camera captures an image of the frontal portion of the head with the flash turned on, there will be a reflection of the display screen in each pupil of the eye. These screen reflections can be detected and used as an accurate estimate of the pupil center, especially when the gaze direction of the subject user is known. In order to ensure that the screen reflections can be accurately detected, the method includes evaluating the lighting conditions when the FF camera images are captured. If the lighting conditions may cause ambiguity in detecting the screen reflections, the user is prompted to make changes in the environment of the FF camera in order to capture better FF camera images.

[0047] Figure 2 is a flow chart illustrating a method of detecting pupil position on a subject user's head. Figure 2 The methods shown and described below may be stored in an electronic device (e.g., Figure 1 The eyeglass size adjustment application may be provided in a memory of the PED 100 in the electronic device and executable by at least one processor of the electronic device. At step 200, the processor of the electronic device (e.g., Figure 1 The processor 112 in the device causes a user interface (UI) of a glasses size adjustment application (hereinafter referred to as app UI) to be presented on a display screen (eg, Figure 1 The app UI may be presented in response to a user accessing a glasses resizing application on the electronic device, for example, by selecting an icon representing the glasses resizing application or by a voice command. Figure 3A An example home screen of an app UI 300 on the display screen 108 of the PED 100 is shown. The details of the home screen are design elements and may differ from Figure 3A For illustrative purposes, the main screen of the appUI 300 may include a set of instructions or information 304 related to the use of the glasses resizing application and a button 308. In one embodiment, the button 308 is set to have an action to start the glasses resizing operation (or WHUD resizing operation). After reading the instructions 304, the user can select the button 308 to start the glasses resizing operation.

[0048] return Figure 2 At 204, the processor receives a request to start the glasses resizing operation. In response to the request to start the glasses resizing operation, at 208, the processor presents a pupil detection screen of the app UI on the display screen. The processor may further open the FF camera (e.g., Figure 1 For illustration purposes, Figure 3B An exemplary pupil detection screen of the app UI 300 on the display screen 108 is shown. The details of the pupil detection screen are design elements and may vary from Figure 3B . For illustrative purposes, the pupil detection screen includes a capture window 312, a top bar 314 above the capture window 312, and a bottom bar 316 below the capture window 312. Because the processor has turned on the FF camera 104, the scene in front of the FF camera 104 (in this case, the user operating the PED 100) is displayed in the capture window 312. The bottom bar 316 includes a button 320. In one embodiment, the button 320 is set to an action to start the pupil detection process. The user can select the button 320 to start the pupil detection process. When the pupil detection process is running, feedback about the process can be displayed in the bottom bar 316 and / or the top bar 314.

[0049] return Figure 2 At 212, the processor receives a request to begin pupil detection processing. In response to receiving the request to begin pupil detection processing, the processor may perform some preliminary checks. For example, the upper eyelid typically obscures a portion of the eye. Generally speaking, the lower the eye is looking, the greater the portion obscured by the upper eyelid. Therefore, it is preferred that when capturing a facial image of the user for pupil detection purposes, the eye is not looking down to such an extent that the upper eyelid substantially covers the pupil. Figure 3C An example of a PED 100 (and therefore a camera 104 included in the PED 100) in a tilted position relative to the vertical direction (the direction of gravity) is shown. The angle between the PED 100 and the vertical direction is represented by β and may be referred to as the tilt angle hereinafter. A tilt angle threshold may be predetermined, beyond which the eye's gaze may be too low. As a non-limiting example, the tilt angle threshold may be 20 degrees. Back to Figure 2 In one embodiment, at 216, the processor determines the tilt angle of the electronic device (e.g., PED 100) relative to the vertical direction. The processor can obtain the measurement values ​​required to determine the tilt angle of the electronic device from a sensor unit in the electronic device, such as an inertial motion unit (IMU). The processor determines whether the tilt angle of the electronic device (i.e., the angle between the electronic device and the vertical direction) exceeds a tilt angle threshold. If the tilt angle exceeds the tilt angle threshold, the processor may prompt the user to raise the device higher (e.g., by displaying an appropriate message on the app UI) so that the tilt angle is reduced. The processor can repeatedly determine the tilt angle of the electronic device relative to the vertical direction and check whether the tilt angle exceeds an acceptable range until the user makes appropriate adjustments to the orientation of the device.

[0050] At 220, the processor may present a gaze focus on the pupil detection screen of the app UI. When the FF camera captures an image of the frontal portion of the user's head, the user is expected to focus on the gaze focus. The gaze focus may be any UI element, such as a text element or a graphic element. In addition, the UI element may be animated or have features that attract the user's attention. In some cases, the user image displayed in the capture window of the app UI may serve as the gaze focus. For illustration purposes, Figure 3D An example gaze focus 332 is shown in the top bar 314. The gaze focus 332 is shown as a timer. However, as previously described, any suitable UI element that can provide focus can be used as a gaze focus (e.g., simple text such as "look here" or an animation that attracts the user's attention). A hint (such as hint 334) can be displayed in the bottom bar 316 to guide the user's gaze to the gaze focus 332.

[0051] Back to Figure 2 At 224, the processor causes the FF camera to capture one or more image frames (or, images for short) with the FF flash turned on - these FF camera image frames may be referred to as flash (FON) images. Turning on the flash is equivalent to illuminating the front portion of the user's head captured by the FF camera. Action 224 may be performed while the user is looking at the focus of attention. After capturing (multiple) FON images at 224, the processor may turn off the FF camera (and turn off the FF flash) and present a processing screen of the app UI, as shown at 228. Figure 3E An example of a processing screen of the app UI 300 after closing the FF camera 104 is shown. In this case, the gaze focus is removed because it is no longer needed. The capture window 312 is empty because the FF camera 104 has been closed. A message 336 can be displayed in the bottom border 316 to indicate that the application is processing the captured image.

[0052] Back to Figure 2 At 232, the processor selects at least one FON image and detects screen reflections on each eye region in the selected FON image (it is not necessary to detect screen reflections on the left and right eye regions from the same FON image, although it may be convenient to do so). Figure 4 In one embodiment, detecting screen reflections may include, for example, detecting a face region 400 from a selected FON image using a face recognition library such as DLIB. A region of interest (ROI) 404 including a left eye and a ROI 408 including a right eye are detected from the face region 400 using the face recognition library. Then, a left screen reflection 412 in the ROI 404 and a right screen reflection 416 in the ROI 408 are detected. In one embodiment, a convolution-based method is used to detect the screen reflections 412, 416.

[0053] In one example of a convolution-based approach, a convolution kernel (or filter) is constructed for detecting screen reflections (hereinafter referred to as screen reflection kernel). In one embodiment, the screen reflection kernel is a matrix that supports bright areas with screen reflection shapes and surrounded by dark pixels. The screen reflection shape is determined by the shape of the display screen (or known light source) reflected onto the eye. In one non-limiting example, the screen reflection shape is a rectangle. Figure 5A An example of a screen reflection kernel 420 is shown. However, this example is not intended to be limiting, as different kernels than Figure 5A The weights shown, and the size of the matrix can be different from Figure 5A The size shown. The inner area of ​​the matrix, that is, the area represented by multiple 1s, is usually slightly smaller than the size of the screen reflection to be detected. Figure 5B A graphic representation of the screen reflection kernel 420 is shown, where 1 is replaced by white and -1 is replaced by black. Figure 5A The kernel 420 in ( Figure 4 ) is convolved to detect bright areas having a screen reflection shape (e.g., a rectangular shape) that corresponds to at least a portion of the left screen reflection 412. Similarly, the screen reflection kernel (e.g., Figure 5A The kernel 420 in FIG. 4 and the ROI 408 ( Figure 4 The convolution operation may be performed to detect a bright region having a screen reflection shape (e.g., a rectangular shape) that corresponds to at least a portion of the right screen reflection 416. Each window of the convolution operation may be normalized by the pixels within the window - this will ensure that windows with a large difference between a bright inner region and a dark outer region end up with a higher response after the convolution. The neighborhood of the bright region corresponding to the screen reflection found by the convolution process may be searched to determine the boundaries of the detected screen reflection.

[0054] In another convolution method, two screen reflection kernels are constructed - the first kernel is used to find the bright area corresponding to the screen reflection, and the second kernel is used to find the dark edge around the screen reflection. The first kernel is similar to the screen reflection kernel described above (e.g., Figure 5A 420 in ), which supports a bright area having a screen reflection shape and surrounded by dark pixels, but the outer area of ​​the first kernel will be multiple 0s instead of the multiple -1s described above, so that the convolution response does not consider the dark outer area. Fig. 6A 4 shows a matrix representation of an example first kernel 424. Figure 6B An image representation of the first kernel 424 is shown, where 1's are replaced with white and 0's are replaced with black. The second kernel supports dark pixels surrounding bright areas with screen reflection shapes. Figure 6C A matrix representation of an example second core 428 is shown. Figure 6B An image representation of the second kernel 428 is shown, where 1 is replaced with white and 0 is replaced with black. Figure 6A-6D The example kernel detection shown has a screen reflection with a rectangular shape. However, kernels for detecting screen reflections with other shapes can be constructed in a similar manner. To detect the left screen reflection, each of the first kernel and the second kernel (e.g., Fig. 6A kernel 424 in Figure 6B and Figure 4 kernel 428 in Figure 4 ) is convolved with the left ROI 404 (

[0055] in Figure 4 ). The convolution result using the second kernel is divided by the convolution result using the first kernel to obtain a final output image including the detected left screen reflection. Similarly, to detect the right screen reflection, each of the first kernel and the second kernel is convolved with the right ROI 408 ( Figure 2 in Figure 4 ), and the convolution result using the second kernel is divided by the convolution result using the first kernel to obtain a final output image including the detected right screen reflection. This method avoids the normalization process in previous convolution methods and speeds up the detection of screen reflections. Figure 4 If there are multiple reflections from an additional light source (i.e., a light source other than the known light sources included in the PED) on any eye ROI (e.g., 404 or 408 in

[0056] ), the screen reflection detected by the convolution process may not necessarily be the reflection corresponding to the screen reflection inside the pupil. Therefore, it is useful to check whether there are multiple reflections on the eye ROI that may interfere with the pupil position detection. Return , at 236, the processor determines whether the illumination condition of the front part of the user's head indicates a bright environment when capturing the selected FON image - if during the capture of the FON image, the user is facing one or more known light sources other than the known light sources (e.g., a window or artificial light or a bright reflection from a wall or surface in front of the user), it indicates a bright environment. To make this determination, all reflections inside each of the eye ROI 404 (

[0057] in Fig. 7A ) and the eye ROI 408 ( Figure 7B in ) are detected. In one embodiment, an adaptive threshold T calculated based on the average intensity Ir of the screen reflection (which can be the average intensity of the screen reflection found by the above convolution process) is used to detect all reflections R within each eye ROI. If dist(r ,(c x ,c y ))<D and area(r i )<A, then the reflection r i ∈R is regarded as an indication of a bright environment, where dist is the Euclidean distance, area is the area function, and (c x,c y ) is the detected screen reflection. If one or more reflections meet the above conditions, then the lighting conditions of the front part of the user's head when the selected FON image is captured indicate a bright environment.

[0056] If the processor determines that the selected FON image was captured in a bright environment, then at 240, the processor discards the FON image captured at 224. The processor may notify the user that pupil detection failed because the user was facing an unknown light source, and may prompt the user to turn away from any additional light sources. The processor may stop the eyeglass sizing operation and return to step 200. Once the user turns away from the additional light source (i.e., a light source other than the known light source included in the PED), the user may attempt to run the eyeglass sizing operation again.

[0057] If the processor determines that the selected FON image was not captured in a bright environment, then at 244, the processor estimates the pupil position based on the screen reflection detected at 232. Depending on the tolerance of the error, any point on the detected left screen reflection can be used as the left pupil position (or left pupil center), and any point on the detected right screen reflection can be used as the right pupil position (or right pupil center). If more accurate pupil positions are required, the left pupil position can be determined by the proportional relationship between the left screen reflection and the display screen, and the right pupil position can be determined by the proportional relationship between the right screen reflection and the display screen. For example, Fig. 7A A display screen 432 is shown having a height Sy and a width Sx. A gaze focus G is shown on the display screen 432 (which will be where the user focuses when the user's FON image is captured). The gaze focus G is vertically displaced by Sdy from the top edge of the display screen 432 and horizontally displaced by Sdx from the left edge of the display screen. Figure 7B A screen reflection 436 (which may be a left screen reflection or a right screen reflection) having a height Ry and a width Rx is shown. The pupil center (or pupil position) P to be determined is vertically displaced by Rdy from the top edge of the screen reflection and horizontally displaced by Rdx from the left edge of the screen reflection. Since Rx, Ry, Sx, Sy, Sdx, and Sdy are known, Rdx and Rdy may be determined by the following equations (1) and (2):

[0058]

[0059]

[0060] The left pupil position and the right pupil position obtained by the above expressions can be adjusted to compensate for the offset between the optical axis and the visual axis of the eye. In one example, this includes applying a right offset (right horizontal shift) to the left pupil position and a left offset (left horizontal shift) to the right pupil position. In a non-limiting example, a right offset that is approximately equal to the horizontal displacement of the right edge of the baseline left pupil position reflected from the left screen provides suitable compensation for the offset between the optical axis and the visual axis of the left eye. Similarly, in a non-limiting example, a left offset that is approximately equal to the horizontal displacement of the left edge of the baseline right pupil position reflected from the right screen provides suitable compensation for the offset between the optical axis and the visual axis of the right eye. The baseline left pupil position and the right pupil position can be determined according to equations (1) and (2). For illustrative purposes, Fig. 8A The baseline left pupil position PL on the left screen reflection 412 is shown. The horizontal displacement of the baseline pupil position PL from the right edge of the screen reflection 412 is represented by Δxl. According to one example, if the coordinates of the baseline pupil position PL are (x1, y1), the left pupil position PL′ that compensates for the offset between the optical axis and the visual axis of the eye may be (x1+Δxl, y). However, a displacement of the left pupil position PL may be applied to the left screen reflection 412. Figure 8B Different right shifts are shown (e.g., a right shift less than △xl or greater than △xl). Figure 8B The baseline right pupil position PR on the right screen reflection 416 is shown shifted to the left by an offset Δxr to PR′. If the coordinates of the baseline pupil position PR are (x2, y2), then the right pupil position PR′ that compensates for the offset between the optical axis and the visual axis of the eye can be (x2-Δxr, y2). As described above, for the left pupil position, the same offset as Figure 8B Different left shifts are shown (eg, a shift less than Δxr or greater than Δxr).

[0061] Back to Figure 2 , at 248, the processor may determine the confidence of the screen reflection detection and the resulting estimated pupil position. In one example, determining the confidence of the screen reflection detection includes detecting the left iris and the right iris from the selected FON image (or the selected multiple FON images). The left iris and the right iris may be found by a convolution process using an iris kernel having a generally circular shape that approximates the shape of the iris. The iris is surrounded by the sclera. Therefore, the convolution process may detect a non-white area surrounded by white pixels. Next, the center of each iris is determined. For each eye, the confidence is calculated as the Gaussian weighted distance of the detected pupil position from the center of the eye's iris. The highest confidence value of 1 occurs when the iris center and the pupil position of the eye are aligned. Fig.9A Shown is a case where the detected pupil position 450 is aligned with the center of the iris 454. In this case, the confidence level is 1. Fig. 9B4 shows a case where the detected pupil position 450' is not aligned with the center of the iris 454. The further the pupil position is from the center of the iris, the lower the confidence in the detection of the screen reflection. Fig.9A and Fig. 9B In 244, the Gaussian weighted distance is calculated in the horizontal direction (along the x-axis). However, the Gaussian weighted distance can be calculated in both the horizontal direction (along the x-axis) and the vertical direction (along the y-axis) to obtain a more accurate measurement. In some cases, the horizontally and vertically calculated Gaussian weighted distances can be multiplied with each other to obtain a final confidence value. The pupil position determined for each eye at 244 will have an associated confidence measurement (or a set of associated confidence measurements if the Gaussian weighted distance is calculated in the horizontal direction and the vertical direction, and the horizontal and vertical Gaussian weighted distances are not combined). As previously described, the detected pupil position can be a baseline pupil position or a pupil position adjusted to compensate for the offset between the optical axis and the visual axis of the eye compared to the iris center in the confidence measurement calculation.

[0062] Back to Figure 2 , the processor can calculate the IPD from the determined pupil positions. The IPD is simply the distance between the left pupil position and the right pupil position. The processor can also calculate the LPD and RPD - assuming the user's gaze point is known, the simulated pupil can be rotated to estimate the gaze towards infinity, and then the LPD and RPD can be calculated using the center of the bridge of the nose and the two pupil measurements, respectively. The pupil detection data (e.g., pupil position, confidence level of screen reflection detection, and any calculated IPD, LPD, and RPD) can be stored in a memory of the electronic device (e.g., Figure 1 116) and / or transmitted to a remote location / server for glasses or WHUD resizing or other operations requiring information about the pupil position on the subject's head.

[0063] The above description of the illustrated embodiments and implementations, including those described in the Abstract of the present invention, is not intended to be exhaustive or to limit the embodiments and implementations to the precise forms disclosed. Although specific embodiments and implementations and examples are described herein for illustrative purposes, it will be appreciated by those skilled in the art that various equivalent modifications may be made without departing from the spirit and scope of the present invention.

Claims

1. A computer-implemented method for detecting pupil position on a subject's head, the method comprising: causing the camera to capture image data representing a frontal portion of the subject's head while the camera and the display screen of the electronic device are located in front of the subject's head, and causing the display screen to illuminate the frontal portion of the subject's head while causing the camera to capture the image data; detecting a face of the subject from the image data; Identify up to two eyes from the detected face; detecting a reflection of the display screen on each identified eye; determining, during causing the camera to capture at least a portion of the image data, whether lighting conditions of a frontal portion of the subject's head indicate an environment having a brightness that satisfies a first threshold; as well as In response to determining that the lighting conditions do not indicate an environment having a brightness that satisfies the first threshold, a pupil position of each identified eye is estimated based on a detected position of a reflection of the display screen on each identified eye.

2. The method according to claim 1, wherein: Detecting the reflection of the display screen on each identified eye includes convolving a region of the detected face including the identified eye with a convolution kernel constructed to identify bright areas having a screen reflection shape and surrounded by relatively dark pixels.

3. The method according to claim 1, wherein: Detecting the reflection of the display screen on each identified eye includes convolving a region of the detected face including the identified eye using a first convolution kernel and a second convolution kernel, wherein the first convolution kernel is constructed to identify a bright area having a screen reflection shape and surrounded by relatively dark pixels, and wherein the second convolution kernel is constructed to identify dark pixels surrounding a relatively bright area having a screen reflection shape. 4 . The method of claim 1 , further comprising, prior to causing the camera to capture the image data, presenting a gaze focus on the display screen. 5 . The method of claim 4 , further comprising directing a gaze of the subject to the gaze focus prior to causing the camera to capture the image data.

6. The method according to claim 4, wherein: Estimating the pupil position of each identified eye includes determining a point on a respective detected screen reflection that corresponds to the gaze focus on the display screen.

7. The method according to claim 6, wherein: Estimating the pupil position of each identified eye further comprises applying a lateral shift to the determined point on the corresponding detected screen reflection to compensate for the offset between the optical axis and the visual axis of the identified eye.

8. The method according to claim 1, wherein: Determining whether the lighting condition of the front portion of the subject's head indicates an environment having a brightness that satisfies the first threshold comprises: for at least one identified eye, determining whether additional light source reflections are present on the at least one identified eye, and comparing an average intensity of each of the additional light source reflections with an average intensity of the detected light source reflections on the at least one identified eye; and Wherein, if there is at least one additional light source reflection on the at least one identified eye, wherein the at least one additional light source reflection has an average intensity that substantially matches the average intensity of the detected light source reflection on the at least one identified eye, then the lighting condition of the front portion of the subject's head indicates an environment having a brightness that satisfies the first threshold.

9. The method of claim 8, further comprising, if it is determined that the lighting condition of the front portion of the subject's head indicates an environment having a brightness that satisfies the first threshold, re-enabling the camera to capture image data representing the front portion of the subject's head under different lighting conditions.

10. The method of claim 9, further comprising prompting the subject to face away from an additional light source to provide the different lighting condition.

11. The method according to any one of claims 1 to 10 further comprises determining a confidence level in the estimate of the pupil position of each identified eye based on a degree of displacement of the pupil position of the identified eye relative to a center position of an iris on the identified eye.

12. The method according to any one of claims 1 to 10, further comprising determining at least one of an inter-pupillary distance, a left pupil distance and a right pupil distance from the estimated pupil position.

13. An electronic device for detecting pupil position on a subject's head, the electronic device comprising: forward-facing camera; Display screen; at least one processor communicatively coupled to the front-facing camera and the display screen; as well as A memory, the memory being used to store a set of instructions, the set of instructions causing the electronic device to perform the method according to any one of claims 1 to 12 as a result of being executed by the at least one processor.

14. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions which, as a result of being executed, cause at least one computer processor to perform the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Eye gaze tracking using binocular fixation constraints

    CN106133649A

  • Method and device for detecting pupil

    JP2008029702A

  • Apparatus and method for robust gaze tracking to changes in the external lighting conditions

    KR1020160092669A

  • Custom eyeglass manufacturing method

    US20040189935A1

  • System and method for tracking the point of gaze of an observer

    US20130002846A1