Eye tracking method and system based on pupil shift

Through the eye tracking method based on pupil offset, event stream data is used to calculate the pupil area and perform image correction, which solves the problems of delay and low accuracy of high-frequency eye tracking technology on mobile XR devices, and achieves efficient and real-time eye movement. tracking effect.

CN118506433BActive Publication Date: 2024-10-08SHANDONG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410977246.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-08
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing high-frequency eye tracking technology based on event cameras has problems such as heavy calculation, high latency, and low tracking accuracy on mobile XR devices, making it difficult to achieve real-time processing and efficient application.

Method used

Using an eye tracking method based on pupil offset, the initial pupil area is obtained through image recognition technology, the pupil offset is calculated using event stream data, the pupil area at the current moment is iteratively calculated, and the near eye is obtained at preset time intervals during real-time tracking. The image is corrected to improve tracking accuracy and efficiency.

Benefits of technology

While maintaining high accuracy, it reduces the amount of calculation and latency, improves the efficiency and real-time performance of eye tracking, optimizes network parallel performance, and is suitable for applications in extended reality devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506433B_ABST
    Figure CN118506433B_ABST
Patent Text Reader

Abstract

The present invention proposes an eye tracking method and system based on pupil shift, which relates to the technical field of eye tracking. The specific scheme includes: obtaining a near-eye image at the start time of tracking, and identifying an initial pupil area from the near-eye image through image recognition technology; in the real-time tracking process, periodically obtaining event data at a preset first time interval to form event stream data, and the event data is used to characterize pixel brightness changes; based on the initial pupil area, the pupil shift is calculated according to the pixel brightness changes in the event stream data, and then the pupil area at the current moment is obtained; through the pupil area at the current moment, the gaze point coordinates at the current moment are determined; the present invention maintains high efficiency while maintaining high accuracy, which is conducive to application on extended reality devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of eye tracking, and in particular relates to an eye tracking method and system based on pupil displacement. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Eye tracking technology plays an increasingly important role in the field of extended reality XR (including virtual reality VR and augmented reality AR). Its wide range of applications is not only limited to enhancing the immersive and interactive user experience, but also extends to multiple industries such as medical health, education and training, gaming and entertainment, psychological research, and industrial design. Real-time, high-frequency, and high-precision eye tracking capabilities enable the system to more accurately understand the user's visual focus, thereby providing personalized scene rendering, optimizing user interface layout, achieving natural eye contact simulation, and even assisting in the assessment of user emotions and attention status, greatly enriching the possibilities and depth of XR applications.

[0004] In order to achieve high-frequency eye tracking capabilities, event camera-based technology came into being and became the key to breaking through the limitations of traditional CCD / CMOS cameras. The principle of event cameras is based on the biological visual system, which can independently detect the brightness changes of each pixel and instantly generate asynchronous, sparse event streams rather than continuous video frames. This feature enables event cameras to capture every subtle change of the human eye during rapid movements such as scanning and following at an extremely high frequency, achieving a frequency, dynamic range and response speed far higher than traditional cameras, as well as lower processing latency and bandwidth requirements. This makes event cameras an ideal choice for high-frequency eye tracking tasks, especially in scenarios that require fast response and accuracy.

[0005] However, although event cameras theoretically provide the technical basis for high-frequency, real-time, and high-precision eye tracking, converting it into practical applications, especially on mobile XR devices, still faces a series of challenges. For example, invention patent CN116027893A-Ultra-high frequency eye tracking method and system based on frame and event mixing, although it utilizes the event information generated by the event camera, it is necessary to perform a large amount of pupil segmentation on the grayscale image of the human eye through the U-Net image segmentation network, which brings a huge amount of computation to the tracking process and produces unacceptable delays for mobile XR device users, affecting the user experience. Existing solutions on the market often sacrifice tracking accuracy or increase delays while pursuing high frequency, or are difficult to achieve real-time processing on mobile platforms due to excessive resource consumption. Summary of the invention

[0006] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides an eye tracking method and system based on pupil shift, which maintains high accuracy while maintaining high efficiency of operation, and is conducive to application in extended reality devices.

[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0008] A first aspect of the present invention provides an eye tracking method based on pupil shift.

[0009] An eye tracking method based on pupil shift, comprising:

[0010] Acquire a near-eye image at the start of tracking, and identify the initial pupil area from the near-eye image using image recognition technology;

[0011] In the real-time tracking process, event data is periodically acquired at a preset first time interval to form event stream data, wherein the event data is used to characterize pixel brightness changes;

[0012] Based on the initial pupil area, the pupil offset is calculated according to the pixel brightness change in the event stream data, and then the pupil area at the current moment is obtained;

[0013] The current gaze point coordinates are determined through the pupil area at the current moment.

[0014] Furthermore, the near-eye image and event data are acquired by photographing and collecting using an event camera fixed at a near-eye position.

[0015] Furthermore, the initial pupil area is identified from the near-eye image by using image recognition technology, specifically:

[0016] Using the trained eye detection network, the eye region is identified from the near-eye image.

[0017] Using the trained pupil detection network, the pupil region is identified from the eye region.

[0018] Furthermore, the pupil offset is calculated to obtain the pupil area at the current moment, specifically:

[0019] Based on the initial pupil area, the pupil offset caused by the change in pixel brightness in the event stream data is iteratively calculated to obtain the pupil area at different times, thereby obtaining the pupil area at the current moment.

[0020] Furthermore, the pupil offset is iteratively calculated to obtain pupil areas at different times, specifically:

[0021] Obtain the pupil area at the moment before the moment to be calculated;

[0022] Based on the pupil area at the previous moment, the event stream data in a period before the moment to be calculated is processed into sparse event blocks of a preset number and size to form an event block set;

[0023] When the event block set meets the update condition, the event block set is input into the trained pupil tracking network to obtain the pupil offset from the previous moment to the moment to be calculated;

[0024] The pupil area at the previous moment is added to the pupil offset to obtain the pupil area at the moment to be calculated.

[0025] Furthermore, the method further includes: in the real-time tracking process, periodically acquiring a near-eye image at a preset second time interval, obtaining a pupil area at a current moment, and correcting the pupil area at the current moment using the near-eye image that meets the timeliness requirement;

[0026] The second time interval is greater than the first time interval, and the near-eye image that meets the timeliness requirement is that the time difference between the image acquisition time and the current time cannot exceed a threshold.

[0027] Furthermore, the pupil area at the current moment is corrected using the near-eye image that meets the timeliness requirement, specifically:

[0028] A gradient-based similarity calculation method is used to calculate the matching degree between the pupil area at the current moment and the near-eye image that meets the timeliness requirement;

[0029] When the matching degree does not meet the threshold condition, the pupil area is identified from the near-eye image that meets the timeliness through image recognition technology, and the pupil area is used as the pupil area at the current moment, thereby achieving correction.

[0030] A second aspect of the present invention provides an eye tracking system based on pupil shift.

[0031] An eye tracking system based on pupil shift includes a pupil initialization module, a real-time acquisition module, a pupil calculation module and a gaze point determination module:

[0032] The pupil initialization module is configured to: obtain a near-eye image at the start time of tracking, and identify an initial pupil area from the near-eye image by using image recognition technology;

[0033] The real-time acquisition module is configured to: periodically acquire event data at a preset first time interval during the real-time tracking process to form event stream data, wherein the event data is used to characterize pixel brightness changes;

[0034] The pupil calculation module is configured to: calculate the pupil offset based on the initial pupil area and the pixel brightness change in the event stream data, and then obtain the pupil area at the current moment;

[0035] The gaze point determination module is configured to determine the gaze point coordinates at the current moment through the pupil area at the current moment.

[0036] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of an eye tracking method based on pupil shift as described in the first aspect of the present invention.

[0037] A fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of an eye tracking method based on pupil shift as described in the first aspect of the present invention are implemented.

[0038] One or more of the above technical solutions have the following beneficial effects:

[0039] The present invention calculates pupil offset based on the initial pupil area and according to the pixel brightness change in event stream data, and then obtains the pupil area at the current moment, thereby improving the efficiency and real-time performance of eye tracking.

[0040] In the process of calculating the pupil area in real time by using the event stream, the present invention corrects the calculated pupil area by using the near-eye image, thereby improving the accuracy of eye tracking.

[0041] The present invention makes full use of the characteristics of pupil tracking tasks, reduces a large amount of network input, and optimizes the performance of network parallelism; compared with the existing tracking method based on event camera, it achieves the best balance between tracking accuracy and efficiency, maintains high accuracy while maintaining high efficiency of operation, which is conducive to application in extended reality devices.

[0042] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0044] Figure 1 This is a flow chart of the method of the first embodiment.

[0045] Figure 2 Schematic diagram of the eye and pupil detection network of the first embodiment.

[0046] Figure 3 This is a schematic diagram of constructing the event block of the first embodiment.

[0047] Figure 4This is a structural diagram of the pupil tracking network of the first embodiment. DETAILED DESCRIPTION

[0048] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0049] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0050] Embodiment 1

[0051] An embodiment of the present disclosure provides an eye tracking method based on pupil shift, which is based on the initial pupil area and continuously calculates the current pupil area in real time by using real-time updated event stream data, so as to obtain the gaze point coordinates at the current moment; that is, an event camera is used to capture eye movements in a period of time before the current moment, that is, event stream data, and the pupil shift during this period is calculated, and then the pupil area at the current moment is calculated, thereby improving the calculation efficiency and improving the delay problem.

[0052] In the above process, the initial pupil area and pupil offset are used to iteratively calculate the pupil area at the current moment. There is a situation where a slight calculation deviation is iteratively amplified, resulting in an inaccurate final calculation. For this reason, this embodiment uses near-eye images periodically taken by an event camera to correct the pupil area calculated using the initial pupil area and pupil offset.

[0053] Use an event camera that can capture images and events at the same time, such as davis346, to capture eye movement. Fix the event camera near the eye and use infrared light as auxiliary lighting to obtain a dark pupil effect. During the tracking process of the event camera capturing eye movement to generate events, take near-eye images at certain time intervals.

[0054] In order to improve the tracking performance, the first time interval for acquiring the event is much smaller than the second time interval for acquiring the near-eye image, that is, the pupil area is calculated mainly through the pupil offset of the event at high frequency and high speed, and the calculated pupil area is corrected using the near-eye images acquired at large intervals, thereby ensuring the accuracy of the calculation while ensuring high frequency and high speed.

[0055] To provide a more specific example, Figure 1 As shown, the following steps are included:

[0056] Step S1: Acquire a near-eye image at the start of tracking, and identify an initial pupil area from the near-eye image using image recognition technology.

[0057] Get the near-eye image at the start of tracking , through image recognition technology from In order to improve the detection accuracy, the eye area is firstly identified from the near-eye image, and the influence of other areas is eliminated, and then the pupil area is accurately identified from the eye area.

[0058] The eye area is parameterized as a rectangle ,in Indicates the coordinates of the upper left corner of the region. Indicates the width and height of the area.

[0059] Pupil area is parameterized as an ellipse ,in are the coordinates of the pupil center, are the lengths of the major and minor axes of the pupil, is the rotation angle about the major axis.

[0060] Use the eye detection network and pupil detection network to identify the eye area and pupil area respectively, such as Figure 2 As shown, the pupil detection network is an object detector based on a convolutional neural network, including a backbone network for extracting image features and a pupil detection head for outputting the pupil area; the eye detection network is similar to the pupil detection network, with the same backbone network, while the detection head is an eye detection head that outputs the eye area; exemplarily, Mobilenetv3-small (the name of a network structure) is used as the backbone network.

[0061] Based on the above eye detection network and pupil detection network, the steps to identify the initial pupil area are:

[0062] (1) Use an eye detection network to detect eyes in the acquired image to initialize the eye region, which is used to reduce the image size in the subsequent processing of the method;

[0063] Furthermore, the eye detection network has a training process comprising: constructing a first training set, which is a sequence of eye images with known eye areas; inputting the first training set into the eye detection network, and stopping the training when the total loss function value of the eye detection network no longer decreases or the number of iterations reaches a set number, thereby obtaining a trained eye detection network.

[0064] (2) Use the pupil detection network to detect the eye area and obtain the subsequent initial pupil area;

[0065] Furthermore, the training process of the pupil detection model includes: constructing a second training set, which is a sequence of eye images with known pupil areas; inputting the second training set into the pupil detection network, and stopping the training when the total loss function value of the pupil detection network no longer decreases or the number of iterations reaches a set number, thereby obtaining a trained pupil detection network.

[0066] Step S2: In the real-time tracking process, event data is periodically acquired at a preset first time interval to form event stream data, wherein the event data is used to characterize pixel brightness changes.

[0067] Specifically, the event data collected by the event camera is continuously acquired to form event stream data ,in, For the Events Data is used to characterize pixel brightness changes. Indicates an event The pixel coordinates of express The timestamp generated, express The polarity of Indicates that the pixel brightness increases, Indicates that the brightness is reduced.

[0068] Step S3: Based on the initial pupil area, the pupil offset is calculated according to the pixel brightness change in the event stream data, and then the pupil area at the current moment is obtained.

[0069] Furthermore, the pupil offset is calculated to obtain the pupil area at the current moment, specifically:

[0070] Based on the initial pupil area, the pupil offset caused by the change in pixel brightness in the event stream data is iteratively calculated to obtain the pupil area at different times, thereby obtaining the pupil area at the current moment.

[0071] Furthermore, the pupil offset is iteratively calculated to obtain pupil areas at different times, specifically:

[0072] Obtain the pupil area at the moment before the moment to be calculated;

[0073] Based on the pupil area at the previous moment, the event stream data in a period before the moment to be calculated is processed into sparse event blocks of a preset number and size to form an event block set;

[0074] When the event block set meets the update condition, the event block set is input into the trained pupil tracking network to obtain the pupil offset from the previous moment to the moment to be calculated;

[0075] The pupil area at the previous moment is added to the pupil offset to obtain the pupil area at the moment to be calculated.

[0076] Specifically, the pupil area at the previous moment and the event stream data in a period of time before the moment to be calculated are used to calculate the pupil area at the moment to be calculated, specifically:

[0077] S301: Processing the event data into sparse small event blocks of fixed number and size according to the pupil area at the previous moment;

[0078] At the time of calculation According to the previous moment The pupil area will be calculated some time before the moment The event data in the ,is processed into sparse small event blocks of fixed number and size, such as Figure 3 As shown, including:

[0079] (1) At the previous moment The pupil area On the edge Sample evenly spaced in radians points; take each point as the center to determine the size The rectangular area , for example, let , .

[0080] (2) Set in a rectangular area ,exist There is an event flow in the time period Produced, according to the coordinates and polarity of the event The event blocks are accumulated similar to images and are expressed as:

[0081]

[0082] in, represents the Kronecker product, for ,all The total number of events accumulated in the event blocks is .

[0083] S302: When the number of events in the processed event block meets the update condition, it is input to the trained pupil tracking network, and the network outputs the pupil offset. The offset is added to the pupil area at the previous moment to obtain the pupil area at the time to be calculated. The pupil area is:

[0084] (1) Determine whether the processed event block meets the conditions for pupil updating;

[0085] when When the value is less than the first set threshold, If it is greater than the second set threshold, it means that the event block meets the condition for updating the pupil parameters. For example, the first set threshold is 5ms and the second set threshold is 50.

[0086] (2) When the conditions are met, the processed event block is input into the pupil tracking network and the output pupil is arrive The offset;

[0087] The pupil tracking network, such as Figure 4 As shown, it includes: a convolutional neural network shared between event blocks, a learnable position embedding, a Transformer encoder, an average pooling layer, and a fully connected layer.

[0088] The shared convolutional neural network extracts features from the event blocks in parallel and finally outputs a one-dimensional feature embedding. The learnable position embedding is a learnable parameter of the same size as the feature embedding output by the convolutional neural network. The position embedding is added to the feature embedding and input to the Transformer Encoder. The Transformer Encoder uses the self-attention mechanism to fuse the features of all image blocks. The average pooling layer compresses all feature embeddings to obtain a global feature. The global feature passes through the fully connected layer to output the offset of the pupil area, which is represented as .

[0089] Exemplarily, the shared convolutional neural network consists of a convolutional layer and two Fused-MBConvBlocks (a neural network module), and the Transformer Encoder is built using a separable self-attention layer (a neural network module).

[0090] The training process of the pupil tracking model includes: constructing a third training set, which is an event stream with known pupil offset and pupil position; inputting the third training set into the pupil tracking network, and stopping the training when the total loss function value of the pupil tracking network no longer decreases or the number of iterations reaches a set number, thereby obtaining a trained pupil tracking network.

[0091] (3) Add the offset The pupil area at the moment is obtained The pupil area at the moment.

[0092] Specifically, Pupil area at the moment , obtained by the following formula:

[0093]

[0094]

[0095]

[0096]

[0097]

[0098] in, , are the width and height of the predefined rectangular anchor box, which is used to normalize the output of the network.

[0099] Step S4: When there is a near-eye image that meets the timeliness requirement, the pupil area at the current moment is corrected; if not, this step is skipped.

[0100] In the real-time tracking process, the near-eye image is periodically acquired at a preset second time interval, and after the pupil area at the current moment is obtained, the pupil area at the current moment is corrected using the near-eye image that meets the timeliness requirement; wherein the second time interval is greater than the first time interval, specifically:

[0101] S401: using a gradient-based similarity calculation method to calculate the matching degree between the pupil region at the current moment and the near-eye image that meets the timeliness requirement;

[0102] The near-eye image that meets the timeliness requirement is that the time difference between the image acquisition time and the current time cannot exceed a threshold. In order to ensure the correction effect, the near-eye image used should be as close as possible to the eye state at the current time, so the acquisition time of the near-eye image cannot be far away from the current time. In this embodiment, this threshold can be set as a first time interval.

[0103] Assume that at the current time t, there is a near-eye image that meets the timeliness requirement , using the gradient-based similarity calculation method to calculate the pupil area at the current time t and the near-eye image The matching degree;

[0104] Set the pupil area at the current moment ; In the pupil area on the edge of Sample evenly spaced in radians K points, calculate the pupil area exist K The normal vector at a point , calculate the image HereK The image gradient at the sampling points ; At this time, the matching degree between the pupil and the image is calculated according to the following formula:

[0105]

[0106] For example, the number of samples K Set to 48.

[0107] S402: When the matching degree does not meet the threshold condition, the pupil area is identified from the near-eye image that meets the timeliness through image recognition technology, and the pupil area is used as the pupil area at the current moment, thereby achieving correction.

[0108] Specifically, when the match between the pupil estimated at time t and the image is low, for example, the threshold is 0.8. If the match is lower than the threshold, the near-eye image After cropping the eye area determined in step S1, the new pupil area is input into the trained pupil detection network to be used as the pupil area at the current moment. .

[0109] Step S5: Based on the final pupil area, determine the gaze point coordinates at the current moment.

[0110] From the final pupil area The pupil center can be obtained , use the following two n-order polynomial regressions to estimate the coordinates of the gaze point:

[0111]

[0112]

[0113] in, are the coordinates of the gaze point on the screen, and are the coefficients of the polynomial, calculated from a set of multiple fixation point samples and the corresponding pupil center samples, The horizontal coordinate of the pupil center Second power, The vertical coordinate of the pupil center Power.

[0114] Embodiment 2

[0115] In one embodiment of the present disclosure, an eye tracking system based on pupil shift is provided, including a pupil initialization module, a real-time acquisition module, a pupil calculation module and a gaze point determination module:

[0116] The pupil initialization module is configured to: obtain a near-eye image at the start time of tracking, and identify an initial pupil area from the near-eye image by using image recognition technology;

[0117] The real-time acquisition module is configured to: periodically acquire event data at a preset first time interval during the real-time tracking process to form event stream data, wherein the event data is used to characterize pixel brightness changes;

[0118] The pupil calculation module is configured to: calculate the pupil offset based on the initial pupil area and the pixel brightness change in the event stream data, and then obtain the pupil area at the current moment;

[0119] The gaze point determination module is configured to determine the gaze point coordinates at the current moment through the pupil area at the current moment.

[0120] Embodiment 3

[0121] The purpose of this embodiment is to provide a computer-readable storage medium.

[0122] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in an eye tracking method based on pupil shift as described in the first embodiment of the present disclosure.

[0123] Embodiment 4

[0124] The purpose of this embodiment is to provide an electronic device.

[0125] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of an eye tracking method based on pupil shift as described in the first embodiment of the present disclosure are implemented.

[0126] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An eye tracking method based on pupil shift, It is characterized in that include: Acquire a near-eye image at the start of tracking, and identify the initial pupil area from the near-eye image using image recognition technology; In the real-time tracking process, event data is periodically acquired at a preset first time interval to form event stream data, wherein the event data is used to characterize pixel brightness changes; Based on the initial pupil area, the pupil offset is calculated according to the pixel brightness change in the event stream data, and then the pupil area at the current moment is obtained; Determine the coordinates of the gaze point at the current moment through the pupil area at the current moment; In the real-time tracking process, the near-eye image is periodically acquired at a preset second time interval, and after the pupil area at the current moment is obtained, the pupil area at the current moment is corrected using the near-eye image that meets the timeliness; wherein the second time interval is greater than the first time interval, and the near-eye image that meets the timeliness is that the time difference between the acquisition time of the image and the current moment cannot exceed a threshold value; The method of calculating the pupil offset based on the initial pupil area and according to the pixel brightness change in the event stream data, and then obtaining the pupil area at the current moment, includes: The pupil offset is calculated to obtain the pupil area at the current moment, specifically: Based on the initial pupil area, the pupil offset caused by the change in pixel brightness in the event stream data is iteratively calculated to obtain the pupil area at different times, thereby obtaining the pupil area at the current time; The pupil shift is iterated to obtain pupil areas at different times, specifically: Obtain the pupil area at the moment before the moment to be calculated; The pupil area at the previous moment and the event stream data in the period before the moment to be calculated are used to calculate the pupil area at the moment to be calculated, specifically: S301: Processing the event data into sparse small event blocks of fixed number and size according to the pupil area at the previous moment; At the time of calculation According to the previous moment The pupil area will be calculated some time before the moment The event data in the system is processed into sparse small event blocks of fixed number and size, including: (1) At the previous moment The pupil area On the edge Sample evenly spaced in radians points; take each point as the center to determine the size The rectangular area ; for The coordinates of the pupil center at the moment, for The length of the pupil's major and minor axes at this moment, for The rotation angle of the major axis at the moment; (2) Set in a rectangular area ,exist There is an event flow in the time period Produced, according to the coordinates and polarity of the event The accumulation is event blocks, which can be expressed as: in, represents the Kronecker product, is a period of time before the time to be calculated, all The total number of events accumulated in the event blocks is , For the events, Indicates an event The pixel coordinates of express The polarity of Indicates that the pixel brightness increases, Indicates that the brightness is reduced; S302: When the number of events in the processed event block meets the update condition, it is input to the trained pupil tracking network, and the network outputs the pupil offset. The offset is added to the pupil area at the previous moment to obtain the pupil area at the time to be calculated. The pupil area is: (1) Determine whether the processed event block meets the conditions for pupil updating; when When the value is less than the first set threshold, is greater than a second set threshold, indicating that the event block meets the condition for updating pupil parameters; (2) When the conditions are met, the processed event block is input into the pupil tracking network and the output pupil is arrive The offset is expressed as: ; (3) Add the offset The pupil area at the moment is obtained Pupil area at the moment; Specifically, Pupil area at the moment , obtained by the following formula: in, , are the width and height of the predefined rectangular anchor box, for The coordinates of the pupil center at the moment, for The length of the pupil's major and minor axes at this moment, for The rotation angle of the major axis at the moment; The pupil tracking network includes: a convolutional neural network shared between event blocks, a learnable position embedding, a Transformer encoder, an average pooling layer, and a fully connected layer.

2. The eye tracking method based on pupil shift according to claim 1, It is characterized in that The near-eye image and event data are acquired by photographing and collecting using an event camera fixed at a near-eye position.

3. The eye tracking method based on pupil shift according to claim 1, It is characterized in that The initial pupil area is identified from the near-eye image by using the image recognition technology, specifically: Using the trained eye detection network, the eye region is identified from the near-eye image. Using the trained pupil detection network, the pupil region is identified from the eye region.

4. The eye tracking method based on pupil shift according to claim 1, It is characterized in that The pupil shift is iterated to obtain pupil areas at different times, specifically: Obtain the pupil area at the moment before the moment to be calculated; Based on the pupil area at the previous moment, the event stream data in a period before the moment to be calculated is processed into sparse event blocks of a preset number and size to form an event block set; When the event block set meets the update condition, the event block set is input into the trained pupil tracking network to obtain the pupil offset from the previous moment to the moment to be calculated; The pupil area at the previous moment is added to the pupil offset to obtain the pupil area at the moment to be calculated.

5. The eye tracking method based on pupil shift according to claim 1, It is characterized in that The pupil area at the current moment is corrected using the near-eye image that meets the timeliness requirement, specifically: A gradient-based similarity calculation method is used to calculate the matching degree between the pupil area at the current moment and the near-eye image that meets the timeliness requirement; When the matching degree does not meet the threshold condition, the pupil area is identified from the near-eye image that meets the timeliness through image recognition technology, and the pupil area is used as the pupil area at the current moment, thereby achieving correction.

6. An eye tracking system based on pupil shift, It is characterized in that It includes pupil initialization module, real-time acquisition module, pupil calculation module and gaze point determination module: The pupil initialization module is configured to: obtain a near-eye image at the start time of tracking, and identify an initial pupil area from the near-eye image by using image recognition technology; The real-time acquisition module is configured to: periodically acquire event data at a preset first time interval during the real-time tracking process to form event stream data, wherein the event data is used to characterize pixel brightness changes; The pupil calculation module is configured to: calculate the pupil offset based on the initial pupil area and the pixel brightness change in the event stream data, and then obtain the pupil area at the current moment; The gaze point determination module is configured to: determine the gaze point coordinates at the current moment through the pupil area at the current moment; In the real-time tracking process, the near-eye image is periodically acquired at a preset second time interval, and after the pupil area at the current moment is obtained, the pupil area at the current moment is corrected using the near-eye image that meets the timeliness; wherein the second time interval is greater than the first time interval, and the near-eye image that meets the timeliness is that the time difference between the acquisition time of the image and the current moment cannot exceed a threshold value; The method of calculating the pupil offset based on the initial pupil area and according to the pixel brightness change in the event stream data, and then obtaining the pupil area at the current moment, includes: The pupil offset is calculated to obtain the pupil area at the current moment, specifically: Based on the initial pupil area, the pupil offset caused by the change in pixel brightness in the event stream data is iteratively calculated to obtain the pupil area at different times, thereby obtaining the pupil area at the current time; The pupil shift is iterated to obtain pupil areas at different times, specifically: Obtain the pupil area at the moment before the moment to be calculated; The pupil area at the previous moment and the event stream data in the period before the moment to be calculated are used to calculate the pupil area at the moment to be calculated, specifically: S301: Processing the event data into sparse small event blocks of fixed number and size according to the pupil area at the previous moment; At the time of calculation According to the previous moment The pupil area will be calculated some time before the moment The event data in the system is processed into sparse small event blocks of fixed number and size, including: (1) At the previous moment The pupil area On the edge Sample evenly spaced in radians points; take each point as the center to determine the size The rectangular area ; for The coordinates of the pupil center at the moment, for The length of the pupil's major and minor axes at this moment, for The rotation angle of the major axis at the moment; (2) Set in a rectangular area ,exist There is an event flow in the time period Produced, according to the coordinates and polarity of the event The accumulation is event blocks, which can be expressed as: in, represents the Kronecker product, is a period of time before the time to be calculated, all The total number of events accumulated in the event blocks is , For the events, Indicates an event The pixel coordinates of express The polarity of Indicates that the pixel brightness increases, Indicates that the brightness is reduced; S302: When the number of events in the processed event block meets the update condition, it is input to the trained pupil tracking network, and the network outputs the pupil offset. The offset is added to the pupil area at the previous moment to obtain the pupil area at the time to be calculated. The pupil area is: (1) Determine whether the processed event block meets the conditions for pupil updating; when When the value is less than the first set threshold, is greater than a second set threshold, indicating that the event block meets the condition for updating pupil parameters; (2) When the conditions are met, the processed event block is input into the pupil tracking network and the output pupil is arrive The offset is expressed as: ; (3) Add the offset The pupil area at the moment is obtained Pupil area at the moment; Specifically, Pupil area at the moment , obtained by the following formula: in, , are the width and height of the predefined rectangular anchor box, for The coordinates of the pupil center at the moment, for The length of the pupil's major and minor axes at this moment, for The rotation angle of the major axis at the moment; The pupil tracking network includes: a convolutional neural network shared between event blocks, a learnable position embedding, a Transformer encoder, an average pooling layer, and a fully connected layer.

7. An electronic device, Its characteristics include: a memory for non-transitory storage of computer readable instructions; a processor for executing the computer-readable instructions; Wherein, when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 5 is executed.

8. A storage medium, Its characteristics are: The computer-readable instructions are non-transitorily stored, wherein when the computer-readable instructions are executed by a computer, the method according to any one of claims 1 to 5 is performed.

Citation Information

Patent Citations

  • Ultrahigh-frequency eye movement tracking method and system based on frame and event mixing

    CN116027893A

  • Eyeball movement tracking method and system based on rotating target detection

    CN117523650A

  • Pupil detection method and device, equipment and storage medium

    CN117670772A

  • Eye movement tracking method and device fused with iris segmentation, equipment and storage medium

    CN118314618A

  • Eye movement tracking method and device based on pupil features, equipment and storage medium

    CN118363448A