Method and system for determining current gaze direction
By using gaze direction detection and the inverse transformation of the virtual camera transformation in dynamic 3D scenes, the problem of gaze tracking delay is solved and the user experience and interaction fluency are improved.
Patent Information
- Application Number
- CN202210547775.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-02-04
- Filing Date
- 2020-02-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-02-03
AI Technical Summary
In dynamically updated 3D scenes, there is a delay problem in user gaze tracking, resulting in an imperfect user experience and limiting the time granularity of interaction, especially when the virtual camera position or direction changes.
The 2D projection image is generated by sampling through the rendering function, the gaze direction detection device is used to determine the user's current gaze direction, and the inverse transformation of the time-dependent virtual camera 3D transformation is calculated to correct the gaze direction and ensure the accuracy and smoothness of gaze tracking.
The user experience is significantly improved, especially when the virtual camera moves, gaze following is stronger, delay effects are reduced, and the time granularity of interaction is improved.
Smart Images

Figure CN114967917B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application date of February 3, 2020, application number 202010078496.X, and invention name “Method and system for determining current gaze direction”. Technical Field
[0002] The present invention relates to a method for determining a user's current gaze direction with respect to a three-dimensional ("3D") scene. The present invention also relates to a system and computer software functionality for performing such a method.
[0003] Embodiments of the present invention relate to tracking a user's gaze while the user is viewing a 3D scene, and in particular to determining a point or region in the 3D scene to which the user's gaze is currently directed. Background Art
[0004] It is known to detect eyes and the direction in which they are looking. This can be done, for example, by illuminating an area in which the eyes are to be found with infrared radiation; capturing an image of the area; and detecting bright spots in the image originating from the pupil and cornea of the eye. This method exploits the bright eye or "red eye" effect known to photographers, by causing light to enter the eye and be reflected or absorbed by the pupil and re-emitted, making the pupil appear brighter than the rest of the eye and face. The cornea produces a separate, smaller bright spot (also known as a glint). The relative positions of the pupil and corneal glint can be used to determine the direction in which the eye is looking. More details are given in U.S. Patent No. 6,152,563.
[0005] Alternatively or additionally, a similar technique may be used by spacing the infrared illuminator from the image sensor so that the image captured by the image sensor has a non-bright pupil, also known as a "dark pupil" effect.
[0006] The gaze tracking technology can be implemented in a remote gaze tracker positioned, for example, adjacent to a display, or in a remote gaze tracker positioned in a wearable device such as a pair of glasses, a virtual reality headset, an augmented reality headset, a helmet, etc.
[0007] This gaze tracking technology can be used to determine whether the user is looking at a specific object or area on the screen (these objects or areas are generally referred to as 'zones' in this application). This can be used as part of a game, for example, allowing the user to interact with the image by looking at the image on the screen (the action of looking at the image has a predetermined result), or to interact with the image by looking at the image in combination with other controls (for example, the user presses a button on a keyboard or mouse while their gaze is directed at the image).
[0008] When determining where the user's gaze is currently directed with respect to the 3D scene, the user's physical gaze direction with respect to a physical viewing area such as a screen must be considered. However, the current state of the 3D scene itself must also be considered, as well as the current virtual 3D space position and direction of the virtual camera.
[0009] It has been demonstrated that in dynamic gaming situations, where all of these parameters may change rapidly, the user experience will often be less than perfect due to various delays.
[0010] For example, consider that a user watches a specific object in a virtual 3D scene as shown on a monitor screen. The object being watched then appears at a specific position on the screen. The virtual camera used to render the 3D scene as a 2D image viewed on the screen is then rotated and / or translated, and the 2D image viewed is changed accordingly. However, due to the delay, the user's gaze point on the screen will remain unchanged until the user's eyes react to the virtual camera shift by the user moving their gaze so as to focus again on the object previously moved due to the virtual camera shift. Thereafter, the hardware delay causes a time delay before the game controller (or similar device) detects the changed user gaze point on the screen, so that the user interaction function can react appropriately.
[0011] Similar delay effects will occur with changes within the 3D scene itself, such as due to objects moving through the virtual 3D scene, even if the virtual camera position or orientation has not changed.
[0012] These issues not only lead to a poor user experience, but also limit the temporal granularity that can be used to implement user interaction with the 3D scene.
[0013] Particular problems arise for GTOM (Gaze-to-Object Mapping) implementations, where the system attempts to detect a movable object on the screen as the current focused object that the user follows with his gaze.
[0014] These problems can be partially overcome by providing faster hardware and more efficient software. However, this is expensive and does not solve all problems.
[0015] Therefore, there are many problems regarding how to efficiently implement gaze tracking in a dynamically updated 3D scene. The present invention aims to at least partially overcome these problems. Summary of the invention
[0016] Therefore, the present invention relates to a method for determining a user's current gaze direction with respect to a three-dimensional ("3D") scene, the 3D scene being sampled by a rendering function to produce a two-dimensional ("2D") projection image of the 3D scene, the sampling being performed based on a virtual camera, which is in turn associated with a camera position and a camera direction in the 3D scene, wherein the method comprises the following steps: determining, by a gaze direction detection device, a first gaze direction of the user at a first gaze time point, the first gaze direction being associated with the 3D scene; determining a virtual camera 3D transformation, the 3D transformation representing a change in the virtual camera position and / or a change in the virtual camera direction between the first gaze time point and a second sampling time point, wherein the second sampling time point is later than the first gaze time point; and determining the current gaze direction as a modified gaze direction, which is in turn calculated based on the first gaze direction and is further calculated based on an inverse transformation of the time-dependent virtual camera 3D transformation.
[0017] In addition, the present invention relates to a system for determining a user's current gaze direction with respect to a three-dimensional ("3D") scene, the 3D scene being sampled by a rendering function to produce a two-dimensional ("2D") projection image of the 3D scene, the sampling being performed based on a virtual camera, which in turn is associated with a camera position and a camera direction in the 3D scene, the system comprising a gaze direction detection device, which is arranged to determine a first gaze direction of the user at a first gaze time point, the first gaze direction being associated with the 3D scene, the system being arranged to determine a virtual camera 3D transformation, the 3D transformation representing a change in the virtual camera position and / or a change in the virtual camera direction between the first gaze time point and a second sampling time point, wherein the second sampling time point is later than the first gaze time point, and the system being arranged to determine the current gaze direction as a modified gaze direction, which is in turn calculated based on the first gaze direction and is further calculated based on an inverse transformation of the time-dependent virtual camera 3D transformation.
[0018] Moreover, the present invention relates to a computer software function, which is arranged to determine a user's current gaze direction with respect to a three-dimensional ("3D") scene when executed, the 3D scene being sampled by a rendering function to produce a two-dimensional ("2D") projection image of the 3D scene, the sampling being performed based on a virtual camera, which in turn is associated with a camera position and a camera direction in the 3D scene, wherein the computer software function is arranged to further perform the following steps when executed: determining, by a gaze direction detection device, a first gaze direction of the user at a first gaze time point, the first gaze direction being associated with the 3D scene; determining a virtual camera 3D transformation, the 3D transformation representing a change in the virtual camera position and / or a change in the virtual camera direction between the first gaze time point and a second sampling time point, wherein the second sampling time point is later than the first gaze time point; and determining the current gaze direction as a modified gaze direction, which is in turn calculated based on the first gaze direction and is further calculated based on an inverse transformation of the time-dependent virtual camera 3D transformation.
[0019] In the following, the present invention will be described in detail with reference to exemplary embodiments of the present invention and to the accompanying drawings, in which: BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a simple diagram to illustrate how to render a 3D scene into a 2D image;
[0021] Figure 2 is a simplified diagram of a system for implementing gaze detection;
[0022] Figure 3 is a flow chart showing a method according to the present invention;
[0023] Figure 4 is a time diagram illustrating different time lines used in the method according to the invention; and
[0024] Figures 5 to 7 are respective views of an illustrative screen at three consecutive points in time.
[0025] The same reference numbers are used throughout the drawings to refer to the same or similar parts. DETAILED DESCRIPTION
[0026] The present invention relates to gaze tracking with respect to 3D scenes. The term gaze tracking is used herein to refer to any method or system for detecting and / or monitoring the position of an eye and / or the gaze direction of an eye. Such systems will be known and understood by those skilled in the art.
[0027] It should also be noted that the description also refers to "gaze-interactable" objects or areas. The phrase is intended to mean that the system can detect an object that the user's gaze is directed at. This may or may not result in an obvious "interaction" for the user. For example, when the system detects that the user's gaze is directed at a gaze-interactable object, the user may not see any signal. However, the fact that the object has been viewed will be detected by the system in a non-obvious manner and can be used by the system (e.g., for statistical analysis). Therefore, the term "gaze-interactable" should not be interpreted as requiring obvious interaction with the user.
[0028] Figure 1 An example of a 3D scene 10 is provided. Such a scene may be a virtual 3D scene such as in a computer game or created for a virtual reality headset. The scene 10 contains 3D objects 1. Such objects 1 may move within the scene 10 over time. In practice, objects 1 may also move out of the scene 10, and other objects 1 may move into the scene. When such a 3D scene is viewed on a monitor or computer screen, the monitor or screen presents a 2D image through a viewport 2, which represents a view of the 3D scene from a particular position in space. The viewport 2 defines the image that would be seen by a virtual camera 20 or eye located at a theoretical position relative to the 3D scene 10. The combination of the positions of the virtual camera 20 and the viewport 2 sets the field of view 4. Figure 1 Also shown is a viewing frustum 3, which is the area of the 3D scene 10 that is shown in the viewport 2 (ie, extending to the rear part of the 3D scene 10).
[0029] Figure 1 The simplified diagram also applies to stereoscopic images such as those used in virtual reality headsets. In that case, each eye of the user is presented with a slightly different viewport 2 to the scene 10, from which the user's brain then perceives a single 3D image. In this case, each image is typically deformed in a nonlinear manner to compensate for the lens characteristics. However, the basic idea is the same as in reference 1 for each image presented to each eye of the user. Figure 1 The same concept is being discussed.
[0030] The 3D object 1 can theoretically be an infinitely complex 3D shape constructed from polygons. As discussed above, the image viewed via the viewport 2 is a 2D projection of the 3D object 1 on the plane of the viewport 2 as seen from the position of the virtual camera 20. However, the screen on which the 2D viewport 2 image is displayed consists of an array of discrete elements or pixels. In this way, the projection of the 3D object 1 must be rasterized onto the display grid by sampling the projected image at each screen pixel position to produce an image that will be presented as a visual scene (i.e., a scene observed through the viewport 2). The pixel values are stored in a memory area or buffer as a 2D "bitmap" corresponding to the same size as the screen or viewport 2.
[0031] Here, such rasterization is generally referred to herein as "sampling" of the 3D scene. Sampling is performed by a rendering function to produce the 2D projected image of the 3D scene 10, and is performed by the rendering function in particular based on the characteristics of the virtual camera 20. Such characteristics of the virtual camera 20 may in turn include the position of the virtual camera 20 with respect to the virtual 3D scene 10 in question and the direction of the virtual camera 20 with respect to the 3D scene 10. In other words, the virtual camera 20 is located at a specific point in the virtual 3D space and points to a specific virtual 3D space direction. The rasterized 2D image will depend on both the content of the virtual 3D scene and the position and direction of the camera 20.
[0032] Note that “virtual camera direction” as used herein may be considered to be similar to the relative position between the virtual camera 20 and the viewport 2 in the virtual 3D space, and in particular the angular position of the viewport 2 with respect to the virtual camera 20 in the virtual 3D space.
[0033] The virtual camera 20 may also have additional static or variable characteristics, such as viewing angle (corresponding to fisheye / telephoto lens), lens correction transformation, etc., which also affect the final rasterized 2D image. In addition, the sampling result also depends on the current state of the 3D scene, which in turn depends on the sampling time point.
[0034] Note that the term "bitmap" has many possible meanings. In the context of the present invention and as is common in the field of computer graphics, it is used to refer to the concept of a spatially mapped array of pixels, which may also be referred to as a "pixmap". The term bitmap is not intended to convey any limitation regarding the bit depth of the stored information. In the present invention, the bit depth of the stored information may be variable.
[0035] Figure 2A schematic view of a system 40 according to the present invention is shown, in which the gaze detection can be implemented. The system 40 includes a screen 41 or a monitor 41, and a gaze detector (gaze direction detection device) 42. The screen 41 can take a conventional form or an unconventional form, including a virtual screen, such as a retinal projector or a head-up display in a vehicle. Both the gaze direction detection device 42 and the screen 41 are connected to a computer 43. In modern computers 43, for parallel computing, a graphics processing unit (GPU) 45 is typically 10 to 100 times faster than a central processing unit (CPU) 44. Thus, it is preferred that the present invention is implemented using a GPU 45. However, any suitable processor such as a CPU 44 can be used to implement the present invention.
[0036] The computer 43 further comprises a memory 46 in which the 2D image may be stored as a bitmap 47 .
[0037] Figure 3 A method according to the invention is presented for determining the current gaze direction of a user with respect to a 3D scene 10, which is sampled by a rendering function of the type described above to produce a 2D projection image of the 3D scene 10. As mentioned above, the 2D projection image is displayed on a screen 41, which may correspond to a viewport 2. As also mentioned, the sampling is performed in particular based on a virtual camera 20, which in turn is associated at least with a position of the virtual camera 20 in the 3D scene and with an orientation of the virtual camera 20 in the 3D scene.
[0038] In a first step S0 , the method starts.
[0039] In a subsequent step S1, a first gaze direction of the user is determined by a gaze direction detection device 42 included in the system 40. In particular, as described above, the first gaze direction can be determined by the gaze direction detection device 42 as a measured physiological gaze direction of the user's eyes with respect to the 2D image, or determined by the gaze direction detection device based on the measured physiological gaze direction.
[0040] Here, "gaze direction detection means" is to be understood as a hardware device known per se (or, as the case may be, a combination of hardware and software) which is arranged to use a camera to capture an image of a user's eye and to automatically determine the user's gaze direction based on the captured image using a computer circuit comprising a central processing unit, a memory and a communication bus. Such a device is described in the above-cited U.S. Patent No. 6,152,563.
[0041] At the first fixation time point T G1 (See Figure 4) and the first gaze direction is associated with the 3D scene 10.
[0042] Figure 4 This first fixation time point T is shown using a set of different but (horizontally) synchronized time lines according to G1 How it relates to the various other time points mentioned in relation to this method:
[0043] Rendering timeline TL R , showing the sampling time point T of the rendering function Rx .
[0044] Gaze tracking timeline TL G , showing the fixation time point T Gx In other words, it shows the time points when the gaze direction detection device 42 is used to determine the user's gaze on the 2D image. For example, these gaze time points T Gx can represent the capture time point of the corresponding image of the user's eye containing the above-mentioned flash, which image is used for subsequent processing in order to determine the user's gaze time point T in question. Gx 's gaze.
[0045] User / 3D scene 10 interaction timeline TL U , showing the user interaction time point T Ux This type of user interaction time point T Ux Represents the corresponding timing of events in or related to the 3D scene 10, such as objects 1 moving or users performing various types of interactive tasks. Such events may or may not be due to user gaze interactions, or may or may not be related to user gaze interactions.
[0046] from Figure 4 As can be clearly seen, sampling may be performed at substantially regular intervals, and typically at a sampling frequency which may be different from (such as less than) the gaze tracking frequency. G On the other hand, the user interaction time point T Ux Since user actions and / or in-game events can be moved along the timeline TL U More or less irregularly distributed.
[0047] Typical sampling frequencies include 20 to 200 samples / second and / or up to 144 samples / second. Typical gaze detection frequencies include 1 to 300 detections / second; in some embodiments, at least 30 detections / second; and in some embodiments, up to 100 detections / second.
[0048] Therefore, usually each sampling time point TRx will not be mapped 1:1 to the corresponding fixation time point T Gx Anyway, the timeline TL R and TL G Not organized so that each sampling time point T Rx will predictably correspond to the sampling time point T in question Rx The corresponding fixation time points T that occur at almost the same time Gx .
[0049] Figure 5 The 3D scene corresponding to the rendering function at the first sampling time point T is shown. R1 The 2D image generated at the time point T is thus generated by the user at the time point T G1 2D image viewed at time T R1 The 2D image rendered at and then displayed on the screen 41 is at the time point T G1 remains visible on the screen). Figure 5 In FIG. 1 , an object 1 and a point P1 are shown, which is the point to which the user's gaze is directed and is at time point T G1 The point at which the user's gaze is detected on the screen.
[0050] In a subsequent step S2, a virtual camera 3D transformation is determined, in other words, a transformation performed by the virtual camera 20 is determined. More specifically, the 3D transformation represents a change in the position and / or orientation of the virtual camera 20, which occurs at least at the first fixation time point T G1 The second sampling time point T R2 Wherein, the second sampling time point T R2 Later than the first fixation time point T G1 In this sense, the virtual camera 3D transformation is a time-dependent transformation.
[0051] Figure 6 Shown Figure 5 , but after the virtual camera has been transformed using the 3D transformation. In this example case, the 3D transformation is a pure rotation of the camera to the right (about Figure 6 ), so that the object 1 moves to the left in the 2D image shown. However, it should be noted that the user's gaze is still directed to the same point on the screen 41 as the object 1 on the 2D image shown. Figure 5 The same point P1 in .
[0052] In a subsequent step S3, the current gaze direction is determined as a modified gaze direction. The modified gaze direction is "modified" in the sense that it is calculated based on the first gaze direction and constitutes a modified version of the first gaze direction. The modification itself is calculated based on the determined virtual camera 3D transformation, and in particular based on the inverse transformation of the transformation. The modification is determined so as to compensate for the measured user gaze direction by taking into account the currently ongoing movement of the virtual camera 20.
[0053] In other words, the modified gaze direction is calculated based on both the first gaze direction and the inverse transformation of the time-dependent virtual camera 3D transformation.
[0054] Figure 7 Shown Figure 5 and Figure 6 , but point P2 on the 2D image shows a modified gaze direction. Figure 7 In the modified gaze direction, the modified gaze direction has been modified to correspond to the preferred case of the inverse transformation of the virtual camera 3D transformation describing the currently ongoing virtual camera 3D movement, such that Figure 7 The modified gaze direction in Figure 5 The ratio in is fixed or at least substantially fixed relative to the area or object 1. This assumes that the object 1 is also fixed (non-moving) relative to the scene 10.
[0055] In one or several subsequent steps S4, the determined current gaze direction may be used for any conventional or non-conventional purpose and in particular as a direct or indirect input to a game engine etc. This will be exemplified below.
[0056] Thereafter, the method ends S5.
[0057] Using this system and this method, and in particular by using the inverse transform of the time-dependent virtual camera 3D transform to correct the measured current user gaze direction, in effect forming an inference of the user's gaze direction based on the assumption that the user follows the virtual camera movement inversely with his gaze, a smoother user experience can be achieved. Note that the assumption may be too simple to provide realistic predictions. However, it has been demonstrated that using this simple and naive assumption provides significantly improved results in terms of user experience smoothness.
[0058] This is especially true in the case where the user locks his gaze on an object 1, the movement of which is affected by the position change and / or direction change of the virtual camera, in which case the user's gaze is more accurately estimated by the object locking mechanism. In this case, it is assumed that the user's gaze is even at time point T G1 It will then continue to follow the path of object 1 on screen 2.
[0059] However, when the virtual camera moves, if the user is not currently actively following any object 1, a smoother user experience can also be obtained. That is, after such a virtual camera movement, or even after the virtual camera 20 moves, any area on the screen 41 to which the user's gaze is directed is likely to attract the user's interest, and thus at time point T R2 The possible target of the inferred gaze is the location.
[0060] In particular, it should be noted that the second sampling time point T R2 Later than the first fixation time T G1 This means that, in various embodiments, the first sampling time point T R1 (and any number of previous sampling time points as appropriate) can be at the first fixation time point T G1 After or before.
[0061] Above, the virtual camera 3D transformation has been discussed as a "movement" of the virtual camera 20. It is recognized that such a movement may include at least a virtual camera rotation portion, in other words, the orientation of the virtual camera 20 is rotated around one axis, two axes, or three axes in the virtual 3D space. This may correspond to a rotation of the viewport 2 in the virtual 3D space, i.e. a rotation around the position of the virtual camera 20 as a pivot point.
[0062] However, such movement may also (additionally / alternatively) comprise a virtual camera 3D linear / curvilinear translation portion, in other words a translation of the virtual camera through the virtual 3D space without changing its orientation.
[0063] Of course, 3D transformations can also represent more complex movements, such as a combination of translation across a linear or curved path in space and simultaneous rotation of the virtual camera. Other types of movement can also be used alone or in combination with additional movement. For example, the virtual camera 20 can be subjected to a lens push-in transformation or a lens zoom-out transformation. Importantly, any movement represented by a 3D transformation affects the 2D image rendered based on the virtual camera 20.
[0064] In some embodiments, the virtual camera 3D transformation may be based on the virtual camera 20 at the first sampling time point T R1 The second sampling time point T R2 The interpolation of the movement between is determined (such as linear interpolation). Figure 4 It is clear that the first sampling time point T R1 At the second sampling time point T R2 Before. The first sampling time point T R1 The second sampling time point T R2 The interpolation time between is referred to herein as the “interpolation time” and is Figure 4 It is shown as IT1 in FIG. Therefore, it is assumed that the virtual camera 20 moves linearly across the interpolation time. This simplifies the calculations.
[0065] Note that the interpolation can be based on the movement of the virtual camera 20 during the interpolation time IT1, or only on a subset of the interpolation times, such as the first fixation time point T G1 The second sampling time point T R2 The time elapsed between , the subset of interpolated times is Figure 4 It is represented as IT2.
[0066] In particular, when determining a 3D transformation based on an interpolation of said type, the interpolation time of the interpolation in question may be adjusted to compensate for an estimate of the physiological delay of the user's eye movement. Then, the virtual camera 3D transformation may be determined based on said interpolation using said adjusted interpolation time IT3. Figure 4 At the second sampling time point T R2 The interpolation time IT3 is shortened by a suitable time period (such as 0.1 to 0.3 seconds) to illustrate this concept. In some embodiments, the delay compensation short time period is a first value for virtual camera 20 movement initiated by the user himself (such as by moving a computer mouse to affect the viewing direction in a 3D game); and a second value for virtual camera 20 movement not initiated by the user (such as virtual camera 20 movement automatically generated by a specific game design). Then, the first value can be smaller (shorter time period) than the second value.
[0067] The current user gaze direction can be determined for any desired time point, for which it is desirable to achieve an accurate estimate of the current gaze direction. Naturally, for those gaze time points T that are already in the past Gx , which is not necessary, since for these time points there is already an accurate estimate of the gaze direction in the form of the gaze direction measured directly by the gaze direction detection device 42. Therefore, for any future time point, or for any past time point that is not a gaze measurement time point (such as the last gaze time point T Gx At any past time point thereafter), this method can be used to determine the current user gaze direction.
[0068] In a similar manner to the compensation for the user's physiological delay, the hardware delay / software delay of the rendering function performing the sampling (rendering) may also be taken into account, and then the expected future time point (with respect to the actual second sampling time point T ) taking into account the rendering delay may be calculated. R2 ) is used as the second sampling time point T R2 This is Figure 4 Use IT4 as the interpolation time (at time point T R2The appropriate additional time for adjusting the rendering delay depends on the hardware / software used to create the 3D scene 10, but can be approximately 0.01s to 0.10s.
[0069] Depending on the complexity of the calculations that need to be performed to arrive at the modified gaze direction; the combined software / hardware used; and the priorities between different processes, these calculations may take a non-negligible amount of time. In some other contexts, the user's gaze direction is measured at a relatively high frequency (temporarily or always) to provide a sufficiently smooth user experience.
[0070] In these and other cases, the method may include the further step of determining the first fixation time point T G1 The time point at which the current gaze direction is to be determined (such as the second sampling time point T R2 ). Then, the current gaze direction is determined as the modified gaze direction only if the time difference is greater than a certain time difference threshold. Thus, in the opposite case, when the time difference in question is less than or at least equal to the threshold, the last measured (at T G1 The time difference threshold may be a static value, such as a value of at most 0.1 seconds (such as at most 0.01 seconds), or may be a dynamically calculated value that may take into account various dynamic parameters, such as the current rendering frame rate; the current 3D scene 10 or game state; or the current hardware power availability, and strike a desired balance between various such aspects that affect the current user experience.
[0071] Alternatively or additionally, in some embodiments, the method may further include the following steps: determining the current transformation speed of the virtual camera 20, such as the current instantaneous virtual camera 20 rotation and / or translation speed. Then, the current gaze direction may be determined as the modified gaze direction only if the determined transformation speed is greater than the first transformation speed threshold. In other words, user gaze compensation is performed only when the virtual camera 20 moves quickly at this instant; otherwise, the detected user gaze is used as is.
[0072] In a combination of the two, the mentioned time difference threshold may be dynamically determined based on the determined transformation speed of the current virtual camera 20. Thus, when the virtual camera 20 undergoes fast movement, a smaller maximum time difference is accepted before performing the current gaze direction compensation according to the present invention.
[0073] In the exemplary embodiment described above, only information about ongoing virtual camera 20 movement is used to compensate for the current user gaze direction (by determining a modified gaze direction). However, in some embodiments of the present invention, information about ongoing 3D scene 10 changes may also be used as input to determine a modified gaze direction.
[0074] That is, the method may further include the following steps: determining a current 3D scene change transformation that affects at least a portion of the 3D scene 10, a 2D projection of at least a portion of the 3D scene 10 being visible in a 2D projection image shown on the screen 41, such as being presented in the 2D projection image along a first gaze direction.
[0075] Then, the modified gaze direction is calculated further based on the current 3D scene 10 changing transformation.
[0076] Such 3D scene 10 changing transformations may be, for example: a translation change and / or a rotation change and / or a shape change of the object 1; a more general movement of a sub-part of the 3D scene with respect to other such sub-parts or with respect to the background of the 3D scene 10; the appearance of an object 1 in the 3D scene 10 and / or the disappearance of the object 1 from the 3D scene 10; etc. Note that such a change of the 3D scene 10 itself does not involve a movement of the virtual camera 20.
[0077] An important example of a transformation of the 3D scene 10 is when the object 1 follows a deterministic or quasi-deterministic trajectory, such as a free-fall trajectory of a thrown object or a road travel trajectory of a moving vehicle. In this example, in addition to the movement of the virtual camera 20, a modified gaze direction may also be considered, assuming that the user remains focused on a specific focus area, such as following the gaze with the thrown object 1.
[0078] Another example is when a user interacts with the 3D scene 10 in a manner that is at least partially predictable to the game engine responsible for maintaining and updating the 3D scene, such as when the user shoots or throws objects with a weapon in a game. The modified gaze direction can then take into account that the user will direct his gaze towards some type of "hot spot" caused by the interaction in question, such as the impact location of a fired bullet in the 3D scene 10.
[0079] One possible use of the method according to the invention is as part of a method for identifying a specific object in a 3D scene 10 as the current focus target of the user (the GTOM system described above). Generally, such methods are well known and are described, for example, in US20160357255A1 and US20180300943A1.
[0080] In the case of the present invention, this object 1 recognition method further comprises: first, determining the current gaze direction using the above method, using at least the virtual camera 20 transformation to compensate for the current user gaze. Then, the current gaze direction determined as described above is used to identify the object 1. This use can be carried out in this conventional way, and represents Figure 3 An example of usage is shown in the flowchart of .
[0081] In particular, both the system for performing the user gaze direction determination according to the present invention and the GTOM system or function may be external to the rendering function in the sense that both the determination of the current gaze direction (as described above) and the identification of the object 1 (using the gaze-to-object mapping based on the modified user gaze direction) are performed without making direct information about the first gaze direction available to the rendering function. In other words, the GTOM mapping is performed based on the modified user gaze direction as described above, without or even ever making the "original" (non-modified) user gaze data available to the rendering function associated with the GTOM mapping. This may mean that the measured user gaze direction is not provided to the rendering function in terms of a specific 3D angle, (real) 2D on-screen coordinates or (virtual) 3D coordinates representing the user's current gaze direction and / or current focus as measured by the gaze direction detection device 42 in the virtual 3D scene 10.
[0082] On the other hand, in this case, the rendering function or the game engine responsible for creating and maintaining the 3D scene 10 can provide the necessary information about the movement of the virtual camera 20 and the movement of the 3D scene 10 to the subsystem responsible for determining the modified user gaze direction or determining the modified user gaze direction.
[0083] In this way, a GTOM system based on user gaze detection can be provided as an independent software or hardware entity for use with several different game engines or other entities arranged to create and maintain a user experience based on a 3D scene. Such a GTOM system can implement suitable interfaces for communicating with the gaze direction detection device 42 and the game engine, etc., which can be conventional in themselves.
[0084] In particular, such a GTOM system may be provided with geometric information about the 3D scene 10 and virtual camera 20 information about the 3D direction of the virtual camera 20 and the 3D position of the virtual camera 20 from a specific system or system entity (such as a game engine or the like). The specific system or system entity may then also provide such geometric information and camera information to the rendering function. For example, the rendering function may form part of a specific system or system entity.
[0085] The provided geometric information and virtual camera 20 information may then be used by the GTOM system to determine the current gaze direction and / or to identify the object.
[0086] As mentioned above, the 3D scene 10 movement can be used as a basis for determining a modified user gaze direction. An example is to determine the currently focused object 1, such as using the GTOM function, and then use the movement of the object 1 in the 3D scene 10 as input for determining the modified user gaze direction.
[0087] In particular, the method according to the present invention may then further comprise the step of determining an object 1 in the 3D scene 10 using an object recognition device such as the GTOM function, the 2D projection of which is presented in the 2D projection image along the first gaze direction. In other words, the object 1 to which the user's gaze is currently directed is determined as the currently focused object 1.
[0088] Thereafter, a movement transformation of the object 1 in the 3D scene 10 is determined between the first object 1 movement time point and the second object 1 movement time point, wherein the second object 1 movement time point is later than the first fixation time point T G1 and the first object 1 movement time point. The first object 1 movement time point may be, for example, Figure 4 The time point T shown U1 , and the time point at which the second object 1 moves may be, for example, time point T U2 .
[0089] Such an object 1 movement transform may include: a translation component; a rotation component; a shape change component, etc. It is then assumed that the user's gaze follows the focused object 1 during said object 1 movement. The object 1 movement transform may include at least some deterministic component based on which the projected or interpolated object 1 transform may be determined and used to determine the modified user gaze direction.
[0090] Finally, the current gaze direction is determined based on the object 1 movement transformation in addition to the virtual camera 20 movement described above. Note that in this case the assumption used is that the user gaze follows the determined focused object 1 also during a certain period of time in the future.
[0091] As described above, the modification of the detected gaze direction of the user may be affected by certain conditions, such as the virtual camera 20 moving fast enough. Similarly, in some embodiments, the method may further include the following steps: determining the current virtual camera 20 transformation speed of the above type, and calculating the modified gaze direction based on the object 1 movement transformation only when the virtual camera 20 transformation speed is greater than a second transformation speed threshold. In this way, GTOM data is used for user gaze direction correction only when such correction is most needed when the virtual camera 20 is currently moving relatively fast.
[0092] As mentioned above, in one aspect, the present invention relates to a system for determining a user's current gaze direction as described above. Such a system may be: Figure 2 ; a system arranged with a suitable interface for communicating and cooperating with a 3D scene 10 generation system such as a game engine or other entity including rendering functions; or in the form of any other integrated system or stand-alone system arranged to perform the method steps described herein. Such a system may include a GTOM system or be arranged to communicate with a GTOM system.
[0093] As also mentioned above, in another aspect, the present invention relates to a computer software function that is arranged to determine the user's current gaze direction as described above when executed. Such a computer software function may be arranged to be executed on the hardware of a system of the type described or on hardware from a system of the type described. In particular, the computer software function may be provided as a machine-readable instruction set (such as a compiled set of such instructions) that resides on a non-transitory machine-readable medium (such as the RAM or ROM memory of the system); it may be executed on a remote server, but the execution is initiated by the system; or a combination of the two. The computer software function may also be arranged to be executed on a single hardware instance or across a group of hardware instances, such as on an online interactive server cluster.
[0094] In other words, the computer software function can be regarded as a corresponding computer software product or a computer program, which usually includes the machine-readable instructions.
[0095] The invention further relates to such a non-transitory machine-readable medium having stored thereon instructions of the type described above.
[0096] The following pseudocode illustrates one possible implementation of determining the modified user gaze direction:
[0097] Measure the rotation speed of the virtual camera 20; store in CameraRotation
[0098] The game timeline TL R Synchronize to eye tracker timer TL G .
[0099] On each rendered frame, execute:
[0100] Get the last fixation point T Gx-1 With the current game time T Rnow The time interval between the two; store it in TimeDelta
[0101] The corrected gaze vector CorrectedGazeVector is calculated as:
[0102] CounterRotation=TimeDelta*-CameraRotation
[0103] CorrectedGazeVector = CounterRotation.RotateVector(OriginalGazeVector), where CounterRotation is the reverse rotation speed, RotateVector is the rotation vector, and OriginalGazeVector is the original gaze vector.
[0104] Above, the preferred embodiment has been described. However, it is obvious to those skilled in the art that many modifications can be made to the disclosed embodiment without departing from the basic idea of the invention.
[0105] For example, in addition to the features described herein, the above-described methods may also include a number of additional features, such as built-in user interaction functionality.
[0106] The use of the determined current user gaze direction may vary. For example, one possible use is to locally improve the 2D sampled image quality near the current focus area of the screen 41 so as to prioritize computer resources for providing a higher quality user experience from a computer graphics perspective.
[0107] The computer software function according to the invention may also be an integrated part of a computer game or any other complex computer software function. Figure 2 On the device 42 disclosed in .
[0108] Generally, everything that has been stated herein with respect to the method also applies to the system and the computer software functionality, and vice versa.
[0109] The invention is thus not limited to the described embodiments but may be varied within the scope of the appended claims.
Claims
1. A method for determining a current gaze direction of a user with respect to a three-dimensional scene (10), the three-dimensional scene (10) being sampled by a rendering function to produce a two-dimensional projected image of the three-dimensional scene (10) displayed on a screen (41), in, The two-dimensional projected image is an image generated by projecting the three-dimensional scene (10) onto the screen (41), wherein sampling is performed on the projected image at each of the screen pixel positions, wherein the method comprises the following steps: Determining, by a gaze direction detection device (42), a first gaze direction of the user at a first gaze time point, wherein the first gaze direction is related to the three-dimensional scene (10); Determining a three-dimensional transformation of a virtual camera (20), wherein the three-dimensional transformation of the virtual camera (20) represents a change in the position of the virtual camera (20) and / or a change in the direction of the virtual camera (20) between the first gaze time point and a sampling time point, wherein the sampling time point is later than the first gaze time point; and The current gaze direction is determined as a modified gaze direction, which is in turn calculated based on the first gaze direction and is further calculated based on an inverse transformation of a three-dimensional transformation of the virtual camera (20).
2. The method according to claim 1, in, The three-dimensional transformation of the virtual camera (20) is determined based on an interpolation between a first sampling time point and the sampling time point, wherein the first sampling time point is before the sampling time point.
3. The method according to claim 2, in, The interpolation time of the interpolation is adjusted to compensate for an estimate of a physiological delay in eye movement of the user, and wherein, The virtual camera (20) three-dimensional transformation is determined based on the interpolation using the adjusted interpolation time.
4. The method according to any one of the preceding claims, in, The three-dimensional transformation of the virtual camera (20) includes the rotation of the virtual camera (20).
5. The method according to claim 1, in, The three-dimensional transformation of the virtual camera (20) includes translation of the virtual camera (20).
6. The method according to claim 1, in, The sampling time point is a predicted future time point taking into account an expected time when the rendering function performs the sampling.
7. The method according to claim 1, in, The method further comprises the following steps: Determine the time difference between the first gaze time point and the time point at which the current gaze direction is to be determined; and wherein, The current gaze direction is determined as the modified gaze direction only if the time difference is greater than a time difference threshold.
8. The method according to claim 7, in, The method further comprises the following steps: Determine the current virtual camera (20) transformation speed; and wherein, The current gaze direction is determined as the modified gaze direction only if the change speed is greater than a change speed threshold.
9. The method according to claim 8, in, The time difference threshold is determined based on the transformation speed of the current virtual camera (20).
10. The method according to claim 1, in, The first gaze direction is determined by the gaze direction detection device (42) as a measured physiological gaze direction of the user's eyes with respect to the two-dimensional projection image, or the first gaze direction is determined by the gaze direction detection device based on the measured physiological gaze direction.
11. The method according to claim 1, in, The method further comprises the following steps: determining a current scene (10) change transformation, the current scene (10) change transformation affecting a portion of the scene (10), a two-dimensional projection of the portion being visibly presented in the two-dimensional projection image; and wherein, The modified gaze direction is further calculated based on a change transformation of the current scene (10).
12. A method for identifying an object (1) in a three-dimensional scene (10), the object being a focus target currently being gazed at by a user, in, The method comprises: determining a current gaze direction using a method according to any one of the preceding claims; and The object is identified using the determined current gaze direction (1).
13. The method according to claim 12, in, Both the determination of the current gaze direction and the identification of the object (1) are performed without giving the rendering function direct information about the first gaze direction.
14. The method according to claim 13, in, Geometric information about the three-dimensional scene (10), and virtual camera (20) information about the virtual camera (20) orientation and virtual camera (20) position are provided from a specific system entity, which also provides such geometric information and virtual camera (20) information to the rendering function, and wherein, The provided geometric information and virtual camera (20) information are used to determine the current gaze direction and / or to identify the object (1).
15. The method according to claim 12, in, The method further comprises the following steps: Using an object recognition device to determine an object (1) in the three-dimensional scene (10), a two-dimensional projection of the object being presented in the two-dimensional projection image along the first gaze direction; Determining a movement transformation of an object (1) in the three-dimensional scene (10) between a first object (1) movement time point and a second object (1) movement time point, wherein the second object (1) movement time point is later than both the first fixation time point and the first object (1) movement time point; and The current gaze direction is further determined based on the movement transformation of the object (1).
16. The method according to claim 15, in, The method further comprises the following steps: Determine the current virtual camera (20) transformation speed; and wherein, The modified gaze direction is calculated based on the object (1) movement transformation only if the transformation speed is greater than a transformation speed threshold.
17. A system for determining a user's current gaze direction with respect to a three-dimensional scene (10), the three-dimensional scene (10) being sampled by a rendering function to produce a two-dimensional projected image of the three-dimensional scene (10) displayed on a screen (41), in, The two-dimensional projection image is an image generated by projecting the three-dimensional scene (10) onto the screen (41), wherein the projected image is sampled at each of the screen pixel positions, the system includes a gaze direction detection device (42), the gaze direction detection device (42) is arranged to determine a first gaze direction of the user at a first gaze time point, the first gaze direction is related to the three-dimensional scene (10), the system is arranged to determine a three-dimensional transformation of the virtual camera (20), the three-dimensional transformation of the virtual camera (20) represents a change in the position of the virtual camera (20) and / or a change in the direction of the virtual camera (20) between the first gaze time point and the sampling time point, wherein the sampling time point is later than the first gaze time point, and the system is arranged to determine the current gaze direction as a modified gaze direction, the modified gaze direction is further calculated based on the first gaze direction, and is further calculated based on an inverse transformation of the three-dimensional transformation of the virtual camera (20).
18. A non-transitory machine-readable medium having machine-readable instructions stored thereon, the machine-readable instructions, when executed, determining a current gaze direction of a user with respect to a three-dimensional scene (10), the three-dimensional scene (10) being sampled by a rendering function to generate a two-dimensional projected image of the three-dimensional scene (10) displayed on a screen (41), in, The two-dimensional projected image is an image generated by projecting the three-dimensional scene (10) onto the screen (41), wherein sampling is performed on the projected image at each of the screen pixel positions, wherein the machine-readable instructions when executed further perform the following steps: Determining, by a gaze direction detection device (42), a first gaze direction of the user at a first gaze time point, wherein the first gaze direction is related to the three-dimensional scene (10); Determining a three-dimensional transformation of a virtual camera (20), wherein the three-dimensional transformation of the virtual camera (20) represents a change in the position of the virtual camera (20) and / or a change in the direction of the virtual camera (20) between the first gaze time point and a sampling time point, wherein the sampling time point is later than the first gaze time point; and The current gaze direction is determined as a modified gaze direction, which is in turn calculated based on the first gaze direction and is further calculated based on an inverse transformation of a three-dimensional transformation of the virtual camera (20).
Citation Information
Patent Citations
Gaze detection method and apparatus
US20160357255A1
Multi line trace gaze to object mapping for determining gaze focus targets
US20180300943A1
Eye gaze direction tracker
US6152563A
Adjusting image frames based on tracking motion of eyes
CN108136258A
Virtual scene display method for virtual reality system
CN108804061A
