Eye tracking calibration method, device, mobile terminal and storage medium
By detecting and shooting human eye images, extracting feature data and refitting the eye tracking model, the problem in the existing technology that eye tracking calibration relies on the first calibration effect is solved, and the accuracy and stability of eye tracking are improved.
Patent Information
- Application Number
- CN201911416784.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-12-31
AI Technical Summary
The calibration effect of existing eye tracking technology depends on the accuracy of the first calibration. Once the first calibration is not good, the subsequent eye tracking effect will significantly decrease, making it difficult to perform effective calibration.
By detecting touch operations, capture the target human eye image, extract eye feature data, and input it into the eye tracking model. If the difference between the gaze point coordinates and the calibration area is less than the threshold, it is recorded as confidence point data. When the confidence point data reaches At a certain threshold, the eye tracking model is refitted for calibration.
It improves the calibration effect and accuracy of eye tracking, realizes automatic calibration of the previous calibration, and enhances the stability and accuracy of the eye tracking model.
Smart Images

Figure CN113116291B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an eye tracking calibration method, device, mobile terminal and storage medium. Background Art
[0002] Currently, the most commonly used eye tracking technology is pupil centre corneal reflection (PCCR). The principle of PCCR technology is to use the camera of the physical tracking device to capture the image of the highly visible reflected light formed by the light source irradiating the pupil, and use these images to determine the reflection of the light source in the cornea and pupil. Finally, by calculating the direction of the vector formed by the cornea and pupil reflection and other geometric features, the direction of the human eye's gaze is obtained.
[0003] Before calculating the direction of human eye gaze, a parameter calibration process is generally used. During parameter calibration, the user is required to gaze at the calibration point, and then click the screen to confirm the gaze. The camera will capture the image of the user's gaze and correspond it to the gaze point at that time. With the current calibration method, the effect of eye tracking is very dependent on the effect of the first calibration. Once the first calibration is not good, the subsequent eye tracking effect will not be good. Summary of the invention
[0004] The embodiments of the present application provide an eye tracking calibration method, device, mobile terminal and storage medium, which can automatically calibrate the last calibration result after the last calibration, thereby improving the eye tracking calibration effect.
[0005] A first aspect of an embodiment of the present application provides an eye tracking calibration method, comprising:
[0006] After the last calibration is completed, detecting the touch operation and determining the touch area corresponding to the touch operation;
[0007] If the touch area is within the target calibration area, photographing a target human eye image corresponding to the touch area;
[0008] Extracting target eye feature data from the target human eye image, inputting the target eye feature data into an eye tracking model to obtain target gaze point coordinates; the eye tracking model is determined based on the last calibration;
[0009] If the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, the target eye feature data and the target gaze point coordinates are used as a piece of confidence point data, and the confidence point data is recorded in a confidence data set;
[0010] When the number of confidence point data in the confidence data set reaches a second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model.
[0011] A second aspect of an embodiment of the present application provides an eye tracking calibration device, comprising:
[0012] A detection unit, used to detect a touch operation after the last calibration is completed;
[0013] A determination unit, used to determine a touch area corresponding to the touch operation;
[0014] A photographing unit, configured to photograph a target human eye image corresponding to the touch area when the touch area is located in a target calibration area;
[0015] An extraction unit, used for extracting target eye feature data from the target human eye image;
[0016] A model calculation unit, used for inputting the target eye feature data into an eye tracking model to obtain the target gaze point coordinates; the eye tracking model is determined based on the last calibration;
[0017] a processing unit, configured to, when the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, use the target eye feature data and the target gaze point coordinates as a piece of confidence point data, and record the confidence point data in a confidence data set;
[0018] A calibration unit is used to refit the eye tracking model according to the confidence point data in the confidence data set when the number of confidence point data in the confidence data set reaches a second threshold, so as to obtain a calibrated eye tracking model.
[0019] A third aspect of an embodiment of the present application provides a mobile terminal, comprising a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
[0020] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.
[0021] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0022] In the embodiment of the present application, after the last calibration is completed, the last calibration can also be calibrated. After the last calibration is completed, the touch operation is detected to determine the touch area corresponding to the touch operation; if the touch area is located in the target calibration area, the target human eye image corresponding to the touch area is photographed; the target eye feature data is extracted from the target human eye image, and the target eye feature data is input into the eye tracking model to obtain the target gaze point coordinates; the eye tracking model is determined based on the last calibration; if the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than the first threshold, the target eye feature data and the target gaze point coordinates are used as a piece of confidence point data, and the confidence point data is recorded in the confidence data set; when the number of confidence point data in the confidence data set reaches the second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. The embodiment of the present application can collect confidence point data through touch operation after the last calibration, record the confidence point data in the confidence data set, and when the number of confidence point data in the confidence data set reaches the second threshold, refit the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. The last calibration result can be automatically calibrated after the last calibration to improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the calibration effect of eye tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a flowchart of an eye tracking calibration method provided in an embodiment of the present application;
[0025] Figure 2a is a schematic diagram of a calibration area provided in an embodiment of the present application;
[0026] Figure 2b This is a schematic diagram of calculating the pupil center point provided in an embodiment of the present application;
[0027] Figure 2c is a schematic diagram of extracting pupil eye corner vectors provided in an embodiment of the present application;
[0028] Figure 3 It is a flowchart of another eye tracking calibration method provided in an embodiment of the present application;
[0029] Figure 4 It is a schematic diagram of a specific process of calibration provided in an embodiment of the present application;
[0030] Figure 5 It is a specific flow chart of a calibration process provided by an embodiment of the present application;
[0031] Figure 6 A schematic diagram of the structure of an eye tracking calibration device provided in an embodiment of the present application;
[0032] Figure 7 It is a structural diagram of a mobile terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0035] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0036] The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc. For the convenience of description, the above-mentioned devices are collectively referred to as mobile terminals.
[0037] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a calibration method for eye tracking provided in an embodiment of the present application. Figure 1 As shown, the eye tracking calibration method may include the following steps.
[0038] 101 , after the last calibration is completed, the mobile terminal detects a touch operation and determines a touch area corresponding to the touch operation.
[0039] In the embodiment of the present application, the accuracy of eye tracking of the mobile terminal is highly dependent on the calibration effect of eye tracking. If a certain error occurs in the calibration process of eye tracking, it will affect the subsequent eye tracking effect.
[0040] The mobile terminal may provide the user with an eye tracking function. The user may manually choose to turn the eye tracking function on or off, and the mobile terminal may also automatically turn on the eye tracking function. In some application scenarios, the mobile terminal may automatically turn on the eye tracking function. For example, in reading mode, the mobile terminal may automatically turn on the eye tracking function.
[0041] When a user uses eye tracking for the first time, the mobile terminal will guide the user to calibrate eye tracking. The eye tracking calibration process may include the following steps:
[0042] (11) The mobile terminal generates N calibration points in N calibration areas of the touch display screen;
[0043] (12) The mobile terminal collects N human eye images respectively when the user's sight is focused on N calibration points;
[0044] (13) The mobile terminal extracts N eye feature data from the N human eye images respectively;
[0045] (14) The mobile terminal fits the model to be fitted based on the N eye feature data to obtain an eye tracking model.
[0046] In the embodiment of the present application, during the calibration process, the mobile terminal guides the user to sequentially gaze at N calibration areas of the touch display screen to generate N calibration points. When the user gazes at the N calibration points respectively, the mobile terminal collects N human eye images respectively.
[0047] Specifically, the touch screen of the mobile terminal generates a calibration point in a calibration area each time, prompting the user to look at the calibration point. When the user looks at the calibration point, the mobile terminal collects at least one human eye image, selects one human eye image from the at least one human eye image as the human eye image corresponding to the calibration point, or synthesizes at least two qualified images selected from the at least one human eye image to obtain the human eye image corresponding to the calibration point. Then, another calibration point is generated in another calibration area of the touch screen of the mobile terminal, and the collection of human eye images continues. When the user's sight is focused on N calibration points respectively, the mobile terminal collects N human eye images corresponding to the N calibration points respectively.
[0048] The calibration points and the background area have different colors, and the background area other than the calibration points has a uniform color. For example, the calibration points are black and the background area is white. The larger the color difference between the calibration points and the background area, the better.
[0049] The eye feature data may include the coordinates of the center of the pupil of the eye, the coordinates of the center of the corneal reflection spot of the eye, the coordinates of the left corner of the eye, the coordinates of the right corner of the eye, etc.
[0050] The model to be fitted may include a multivariate polynomial function model. For example, taking a bivariate quadratic polynomial function model as an example:
[0051]
[0052]
[0053] Among them, during the eye tracking process, Z x Refers to the X-axis coordinate of the point on the display where the user is looking. y Refers to the Y-axis coordinate of the point on the display screen where the user is looking. x is the X-axis coordinate of the calibration point; Z y is the Y-axis coordinate of the calibration point. x Refers to the X-axis coordinate in the eye feature data (for example, the difference between the X-axis coordinate of the left eye corner and the X-axis coordinate of the pupil center); v y Refers to the Y-axis coordinate in the eye feature data (for example, the difference between the Y-axis coordinate of the left eye corner and the Y-axis coordinate of the pupil center). a0, b0, a1, b1, a2, b2, a3, b3, a4, b4, a5, b5 are the calibration parameters of the function model to be fitted.
[0054] In order to fit and obtain better calibration parameters during the calibration process, generally, 9 eye feature data of at least 9 human eye images are required, where N can be an integer greater than or equal to 9.
[0055] The calibration process is to determine the calibration parameters of the function model to be fitted. Once the calibration parameters of the function model to be fitted are determined, the eye tracking model is determined. The eye tracking model can be used to calculate the coordinates of the gaze point of the user's eye on the touch display screen.
[0056] After the first calibration is completed, the mobile terminal can regularly remind the user to recalibrate. Each calibration process is similar to the first calibration process, and will not be repeated here.
[0057] After the mobile terminal detects the touch operation, it can determine the area where the touch operation contacts the touch display screen, and determine the area where the touch operation contacts the touch display screen as the touch area corresponding to the touch operation.
[0058] The touch operation may include a click operation or a slide operation.
[0059] The sliding operation may include an operation within the sliding area. If the sliding area is located within the target calibration area, points within the entire sliding area may be fitted.
[0060] 102 , if the touch area is located in the target calibration area, the mobile terminal captures the target human eye image corresponding to the touch area.
[0061] In the embodiment of the present application, the target calibration area is the area used to generate calibration points during the calibration process. Figure 2a , Figure 2a Schematic diagram of a calibration area provided in an embodiment of the present application. Figure 2a As shown, on the touch display screen, 9 calibration areas may be included, each of which includes a calibration point. The target calibration area may be any one of the 9 calibration areas. If the touch area is located in any one of the 9 calibration areas, it is determined that the touch area is located in the target calibration area.
[0062] If it is detected that the touch area is located in the target calibration area, the mobile terminal can capture a target human eye image through the front camera, and the target human eye image is a human eye image corresponding to the touch area.
[0063] The target human eye image may be any one of a plurality of human eye images continuously captured by the mobile terminal through the front camera. For example, when the touch area is located in the target calibration area, the mobile terminal may continuously capture N human eye images corresponding to the touch area, and for each of the N human eye images, operations from step 103 to step 105 may be performed.
[0064] The mobile terminal can use an infrared light source (IR) camera or a red green blue (RGB) camera. The IR camera can emit infrared light, which will cause a light spot to appear on the human eye, and the IR camera can capture grayscale human eye images.
[0065] Among them, the RGB camera can capture color images of the human eye.
[0066] Generally speaking, the pupil image of an IR camera will be more accurate than that of an RGB camera because the pupil reflects infrared light. The RGB solution requires more image processing, and the calculation precision and accuracy of an IR camera are higher than those of an RGB camera. In terms of versatility, the structure and solution design of an RGB camera are more universal than those of an IR camera.
[0067] 103, the mobile terminal extracts target eye feature data from the target human eye image, inputs the target eye feature data into an eye tracking model, and obtains the target gaze point coordinates; the eye tracking model is determined based on the last calibration.
[0068] In the embodiment of the present application, the target eye feature data may include the coordinates of the center of the pupil of the eye, the coordinates of the center of the corneal reflection spot of the eye, the coordinates of the left corner of the eye, the coordinates of the right corner of the eye, etc.
[0069] The eye tracking model is determined by the last calibration, and the parameters of the eye tracking model are determined by the last calibration. Each calibration can redefine the parameters of the eye tracking model (for example, the parameters of the eye tracking model may include a0, b0, a1, b1, a2, b2, a3, b3, a4, b4, a5, b5 in the above formula).
[0070] Optionally, in step 103, the mobile terminal extracts target eye feature data from the target human eye image, which may specifically include the following steps:
[0071] (21) The mobile terminal determines an ROI region of interest in the target human eye image;
[0072] (22) The mobile terminal extracts the pupil corner vector from the ROI area, and the target eye feature data includes the pupil corner vector.
[0073] In the embodiment of the present application, the region of interest may be a left eye region or a right eye region in a human eye image. The pupil eye corner vector is a vector from the center of the pupil to the left eye corner or a vector from the center of the pupil to the right eye corner.
[0074] Optionally, in step (22), the mobile terminal extracts the pupil corner vector from the ROI area, which may further include the following steps:
[0075] (221) The mobile terminal uses a kernel gradient pupil positioning method to determine the pupil center coordinates in the ROI area;
[0076] (222) The mobile terminal determines the first eye corner coordinate and the second eye corner coordinate in the ROI area by using edge detection and kernel gradient eye corner positioning method;
[0077] (223) The mobile terminal determines the pupil corner vector based on the pupil center coordinates, the first eye corner coordinates and the second eye corner coordinates.
[0078] In the present application, please refer to Figure 2b , Figure 2b Schematic diagram of pupil center calculation provided by the embodiment of the present application. Figure 2b As stated, Figure 2b The gray area in the left figure is the eyeball, c is the candidate point of the pupil center (c is within the gray area), x i is a point to be found at the edge of the eyeball, d i is the unit displacement vector (from c to x i direction), g i is the unit gradient direction (corresponding to the eyeball at x i The tangent direction at c is perpendicular to the direction outside the eyeball). After all directions of c and the edge of the eyeball are traversed, the average value of the displacement vector and the gradient direction is calculated, and the position corresponding to the maximum value is the pupil center position. Specifically, the pupil center position can be calculated according to the following formula.
[0079]
[0080] Among them, C * is the pupil center position, d i T is d i The transposed vector of d. i =x i -c. Where g is the kernel gradient, the embodiment of the present application can enhance the robustness of the center point when processing the edges of human eye images with low resolution or unclear images as well as eyelashes and hair.
[0081] The following examples illustrate the difference between the kernel gradient of the embodiment of the present application and the traditional gradient.
[0082] For example, if a matrix Traditional gradient x-direction gradient
[0083]
[0084] Right now
[0085] grad x (x,y)=(grad x (x+1,y)-grad x (x-1,y)) / 2,
[0086] grad y (x,y)=(grad y (x,y+1)-grad y (x,y-1)) / 2;
[0087] The kernel gradient of the embodiment of the present application is as follows:
[0088]
[0089] Normalized gradient: grad′(x,y)=abs(grad x (x,y) 2 +grad y (x,y) 2 ).
[0090] The eye corner detection of the embodiment of the present application uses the kernel gradient and Susan edge detection method for detection. If the kernel gradient is used alone, the gradient at the eye corner is not as easy to detect as the gradient at the pupil. Combined with edge detection, at most 2 eye corners can be filtered out.
[0091] See also Figure 2c , Figure 2c Schematic diagram of extracting pupil eye corner vector provided by the embodiment of the present application. Figure 2c As shown. After obtaining the human eye ROI area, perform pupil positioning based on the kernel gradient method on the ROI area, and output the pupil center coordinates (x, y). Perform edge detection and kernel gradient positioning on the ROI area to locate the first eye corner coordinates (X1, Y1) and the second eye corner coordinates (X2, Y2), and calculate two candidate pupil corner vectors vec1 and vec1. Among them, vec1 = (X1-x, Y1-y); vec2 = (X2-x, Y2-y). Determine the vector with the smallest modulus among the modulus |vec1| of the candidate pupil corner vector vec1 and the modulus |vec2| of the pupil corner vector vec2 as the pupil corner vector (for example, if |vec1| is greater than |vec2|, vec2 is determined as the pupil corner vector).
[0092] 104. If the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, the mobile terminal uses the target eye feature data and the target gaze point coordinates as a piece of confidence point data, and records the confidence point data in a confidence data set.
[0093] In the embodiment of the present application, if the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, the target eye feature data is considered to be reliable data, and the target eye feature data and the target gaze point coordinates are used as a piece of confidence point data, and the confidence point data is recorded in the confidence data set. The coordinates corresponding to the target calibration area may include the coordinates of the calibration point within the target calibration area.
[0094] Each target calibration area corresponds to a calibration point coordinate. For details, see Figure 2a As shown in Figure 2, the coordinates of the calibration points in each target calibration area are determined.
[0095] In the embodiment of the present application, if the difference between the coordinates of the target gaze point and the coordinates corresponding to the target calibration area is less than a first threshold, it can be considered that the coordinates of the target gaze point corresponding to the target gaze point coordinates are close to the coordinates of the calibration point in the target calibration area, and it is considered to be reliable data. Otherwise, it is considered to be unreliable data.
[0096] For example, the premise of the confidence point data of this application is the consistency of the user's hand and eye. That is, the area touched by the user's finger is the area where the user's eyes are looking at. However, in some cases, if the user's finger touches a certain area, the user's eyes look at other areas. At this time, the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is large. In this case, the target eye feature data and the target gaze point coordinates are not the data desired by the embodiment of this application, and are considered to be unreliable data.
[0097] The first threshold may be pre-set and stored in a memory (eg, a non-volatile memory) of the mobile terminal.
[0098] Among them, the eye tracking model can include a multivariate polynomial function model. For example, taking a two-variable quadratic polynomial function model as an example:
[0099]
[0100] If the coordinates of the target calibration area are Z x1 , Z y1 ; The target gaze point coordinate is Z x2 , Z y2 The difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area can be calculated by the following formula:
[0101]
[0102] Among them, deta is the difference between the coordinates of the gaze point and the coordinates corresponding to the target calibration area, detazZ x =Z x1 -Z x2 ;detazZ y =Z y1 -Z y2 .
[0103] Optionally, if the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is greater than a first threshold, the mobile terminal discards the target eye feature data.
[0104] 105. When the number of confidence point data in the confidence data set reaches a second threshold, the mobile terminal refits the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model.
[0105] In an embodiment of the present application, when the number of confidence point data in the confidence data set reaches a second threshold, it is considered that the number of confidence point data in the confidence data set reaches the re-fitting standard, and the eye tracking model is re-fitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model.
[0106] Among them, after refitting, the parameters of the calibrated eye tracking model (for example, the parameters of the eye tracking model may include a0, b0, a1, b1, a2, b2, a3, b3, a4, b4, a5, b5 in the above formula) can be recalculated and replace the parameters of the eye tracking model calibrated last time.
[0107] The second threshold value may be preset and stored in a memory (eg, non-volatile memory) of the mobile terminal. For example, the second threshold value may be set to be greater than 9. For example, the second threshold value may be set to 10, 100, 200, 1000, etc.
[0108] In the embodiment of the present application, at most one confidence point data can be collected for each touch operation. After the calibration is completed, the confidence point data can be collected during the user's touch operation as a data source for subsequent correction, so as to re-fit. This can improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the eye tracking calibration effect.
[0109] Optionally, after executing step 105, the following steps may also be performed:
[0110] (31) When performing eye tracking, the mobile terminal obtains an eye image of the target user;
[0111] (32) The mobile terminal extracts eye feature data of the target user from the eye image of the target user;
[0112] (33) The mobile terminal inputs the target user's eye feature data into the calibrated eye tracking model to obtain the coordinates of the target user's gaze point.
[0113] In the embodiment of the present application, step (32) and step (33) can refer to the specific description of step 103 above, which will not be repeated here.
[0114] The embodiment of the present application uses a calibrated eye tracking model to perform eye tracking, which can accurately calculate the coordinates of the gaze point of the human eye, thereby improving the accuracy of eye tracking.
[0115] In the embodiment of the present application, after the last calibration, confidence point data can be collected through touch operation, and the confidence point data can be recorded in a confidence data set. When the number of confidence point data in the confidence data set reaches a second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. After the last calibration, the last calibration result can be automatically calibrated to improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the calibration effect of eye tracking.
[0116] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another eye tracking calibration method provided in an embodiment of the present application. Figure 3 As shown, the eye tracking calibration method may include the following steps.
[0117] 301. The mobile terminal starts a calibration mode and generates N calibration points in N calibration areas of the touch display screen.
[0118] 302 , when the user's sight lines are fixed on the N calibration points respectively, the mobile terminal collects N human eye images respectively.
[0119] 303. The mobile terminal extracts N eye feature data from the N human eye images respectively.
[0120] 304. The mobile terminal fits the model to be fitted based on the N eye feature data to obtain the eye tracking model.
[0121] In the embodiment of the present application, during the calibration process, the mobile terminal guides the user to sequentially gaze at N calibration areas of the touch display screen to generate N calibration points. When the user gazes at the N calibration points respectively, the mobile terminal collects N human eye images respectively.
[0122] Specifically, the touch screen of the mobile terminal generates a calibration point in a calibration area each time, prompting the user to look at the calibration point. When the user looks at the calibration point, the mobile terminal collects at least one human eye image, selects one human eye image from the at least one human eye image as the human eye image corresponding to the calibration point, or synthesizes at least two qualified images selected from the at least one human eye image to obtain the human eye image corresponding to the calibration point. Then, another calibration point is generated in another calibration area of the touch screen of the mobile terminal, and the collection of human eye images continues. When the user's sight is focused on N calibration points respectively, the mobile terminal collects N human eye images corresponding to the N calibration points respectively.
[0123] The calibration points and the background area have different colors, and the background area other than the calibration points has a uniform color. For example, the calibration points are black and the background area is white. The larger the color difference between the calibration points and the background area, the better.
[0124] The eye feature data may include the coordinates of the center of the pupil of the eye, the coordinates of the center of the corneal reflection spot of the eye, the coordinates of the left corner of the eye, the coordinates of the right corner of the eye, etc.
[0125] The model to be fitted may include a multivariate polynomial function model. For example, taking a bivariate quadratic polynomial function model as an example:
[0126]
[0127] Among them, during the eye tracking process, Z x Refers to the X-axis coordinate of the point on the display where the user is looking. y Refers to the Y-axis coordinate of the point on the display screen where the user is looking. x is the X-axis coordinate of the calibration point; Z y is the Y-axis coordinate of the calibration point. x Refers to the X-axis coordinate in the eye feature data (for example, the difference between the X-axis coordinate of the left eye corner and the X-axis coordinate of the pupil center); v y Refers to the Y-axis coordinate in the eye feature data (for example, the difference between the Y-axis coordinate of the left eye corner and the Y-axis coordinate of the pupil center). a0, b0, a1, b1, a2, b2, a3, b3, a4, b4, a5, b5 are the calibration parameters of the function model to be fitted.
[0128] In order to fit and obtain better calibration parameters during the calibration process, generally, 9 eye feature data of at least 9 human eye images are required, where N can be an integer greater than or equal to 9.
[0129] The calibration process is to determine the calibration parameters of the function model to be fitted. Once the calibration parameters of the function model to be fitted are determined, the eye tracking model is determined. The eye tracking model can be used to calculate the coordinates of the gaze point of the user's eye on the touch display screen.
[0130] The following example takes the mobile terminal as a mobile phone and N equals 9. Figure 4 Describes the specific process of calibration. Figure 4 , Figure 4 This is a schematic diagram of a specific calibration process provided by the embodiment of the present application. Figure 4 As shown in the figure, after the sight calibration starts, the human eye looks at the 1-9 calibration areas on the mobile phone screen in turn; 9 images of the calibration areas corresponding to 1-9 are taken by the front camera of the mobile phone (IR camera or infrared camera); the ROI area in each image is output through human eye detection, and the pupil is located in the ROI area based on the kernel gradient method, and the pupil center coordinates (x, y) are output; the ROI area is edge detected and the kernel gradient is used to locate the eye corner coordinates (including the first eye corner coordinates (X1, Y1) and the second eye corner coordinates (X2, Y2)), where the first eye corner coordinates can be the left eye corner coordinates, and the second eye corner coordinates can be the right eye corner coordinates; the pupil-eye corner vector vec1 = (X1-x, Y1-y), vec2 = (X2-x, Y2-y) are obtained; the vector with the smallest |vec1| and |vec2| is taken as the calculation; the coordinates of the calibration points corresponding to the 1-9 calibration areas on the mobile phone screen (Z x1 ,Z y1 )~(Z x9 ,Z y9 ); Input these 9 coordinates into the nonlinear multinomial model, calculate a0~a5, b0~b5, and you can get the calibrated eye tracking model.
[0131] In the following example, the mobile terminal is a mobile phone, N is equal to 9, and the second threshold is equal to 1000. Figure 5 Describes the specific process of calibration. Figure 5 , Figure 5 Schematic diagram of a specific calibration process provided by the embodiment of the present application. Figure 5As shown, the sight calibration begins, and the human eye looks at any calibration area 1-9 on the mobile phone screen in turn. If there is one, the human eye image of the corresponding calibration area is captured by the front camera of the mobile phone (IR camera or infrared camera); the ROI area in the human eye image is output through human eye detection, and the pupil is located in the ROI area based on the kernel gradient method, and the pupil center coordinates (x, y) are output; the ROI area is edge detected and the kernel gradient is used to locate the eye corner coordinates (including the first eye corner coordinates (X1, Y1) and the second eye corner coordinates (X2, Y2)), where the first eye corner coordinates can be the left eye corner coordinates, and the second eye corner coordinates can be the right eye corner coordinates; the pupil-eye corner vector vec1 = (X1-x, Y1-y), vec2 = (X2-x, Y2-y) are obtained; the vector with the smallest |vec1| and |vec2| is taken as the calculation; the coordinates of the calibration points corresponding to the calibration areas 1-9 on the mobile phone screen (Z x1 ,Z y1 )~(Z x9 ,Z y9 ); Substitute a0~a5, b0~b5 into the nonlinear multinomial model, and calculate the previous 9 deta difference results; if the current frame deta difference is less than the previous 9 average deta difference, record it as the new total number of confidence points; when the new total number of confidence points reaches N (for example, 1000 groups), refit a0~a5, b0~b5, and replace the old values, and clear N, that is, N=0.
[0132] 305 , after the last calibration is completed, the mobile terminal detects the touch operation and determines the touch area corresponding to the touch operation.
[0133] 306 , if the touch area is located in the target calibration area, the mobile terminal captures the target human eye image corresponding to the touch area.
[0134] 307, the mobile terminal extracts target eye feature data from the target human eye image, inputs the target eye feature data into an eye tracking model, and obtains the target gaze point coordinates; the eye tracking model is determined based on the last calibration.
[0135] 308. If the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, the mobile terminal uses the target eye feature data and the target gaze point coordinates as a piece of confidence point data and records the confidence point data in a confidence data set.
[0136] 309 , when the number of confidence point data in the confidence data set reaches a second threshold, the mobile terminal refits the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model.
[0137] The specific implementation of steps 305 to 309 can be found in Figure 1Steps 101 to 105 are shown and will not be described in detail here.
[0138] In the embodiment of the present application, after the last calibration, confidence point data can be collected through touch operation, and the confidence point data can be recorded in a confidence data set. When the number of confidence point data in the confidence data set reaches a second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. After the last calibration, the last calibration result can be automatically calibrated to improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the calibration effect of eye tracking.
[0139] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the mobile terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided in this document, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0140] The embodiment of the present application can divide the functional units of the mobile terminal according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0141] In line with the above, see Figure 6 , Figure 6 A schematic diagram of the structure of an eye tracking calibration device provided in an embodiment of the present application, the eye tracking calibration device 600 may include a detection unit 601, a determination unit 602, a shooting unit 603, an extraction unit 604, a model calculation unit 605, a processing unit 606 and a calibration unit 607, wherein:
[0142] A detection unit 601, used to detect a touch operation after the last calibration is completed;
[0143] A determination unit 602, configured to determine a touch area corresponding to the touch operation;
[0144] A photographing unit 603, configured to photograph a target human eye image corresponding to the touch area when the touch area is within a target calibration area;
[0145] An extraction unit 604 is used to extract target eye feature data from the target human eye image;
[0146] A model calculation unit 605 is used to input the target eye feature data into an eye tracking model to obtain the target gaze point coordinates; the eye tracking model is determined based on the last calibration;
[0147] The processing unit 606 is configured to, when the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, use the target eye feature data and the target gaze point coordinates as a piece of confidence point data, and record the confidence point data in a confidence data set;
[0148] The calibration unit 607 is used to refit the eye tracking model according to the confidence point data in the confidence data set when the number of confidence point data in the confidence data set reaches a second threshold, so as to obtain a calibrated eye tracking model.
[0149] Optionally, the extraction unit 604 extracts target eye feature data from the target human eye image, specifically: determining an ROI region of interest in the target human eye image; extracting a pupil corner vector from the ROI region, and the target eye feature data includes the pupil corner vector.
[0150] Optionally, the extraction unit 604 extracts the pupil corner vector from the ROI area, specifically: using a nuclear gradient pupil positioning method to determine the pupil center coordinates in the ROI area; using edge detection and a nuclear gradient corner positioning method to determine the first eye corner coordinates and the second eye corner coordinates in the ROI area; and determining the pupil corner vector based on the pupil center coordinates, the first eye corner coordinates and the second eye corner coordinates.
[0151] Optionally, the processing unit 606 is further configured to discard the target eye feature data when the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is greater than a first threshold.
[0152] Optionally, the touch operation includes a click operation or a slide operation.
[0153] Optionally, the eye tracking calibration device 600 may further include a calibration unit 608;
[0154] The calibration unit 608 is used to start the calibration mode before the last calibration is completed, generate N calibration points in N calibration areas of the touch display screen; collect N human eye images respectively when the user's eyes are fixed on the N calibration points respectively; extract N eye feature data from the N human eye images respectively; fit the model to be fitted based on the N eye feature data to obtain the eye tracking model.
[0155] Optionally, the eye tracking calibration device 600 may further include an eye tracking unit 609;
[0156] The eye tracking unit 609 is used to refit the eye tracking model according to the confidence point data in the confidence data set in the calibration unit 607, and after obtaining the calibrated eye tracking model, obtain the target user's eye image while performing eye tracking; extract the target user's eye feature data from the target user's eye image; and input the target user's eye feature data into the calibrated eye tracking model to obtain the target user's gaze point coordinates.
[0157] Among them, the shooting unit 603 can be a camera of the mobile terminal, the detection unit 601 can be a touch screen of the mobile terminal, the determination unit 602, the extraction unit 604, the model calculation unit 605, the processing unit 606, the calibration unit 607, the calibration unit 608, and the eye tracking unit 609 can be the processor of the mobile terminal.
[0158] In the embodiment of the present application, after the last calibration, confidence point data can be collected through touch operation, and the confidence point data can be recorded in a confidence data set. When the number of confidence point data in the confidence data set reaches a second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. After the last calibration, the last calibration result can be automatically calibrated to improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the calibration effect of eye tracking.
[0159] See also Figure 7 , Figure 7 is a structural diagram of a mobile terminal provided in an embodiment of the present application, such as Figure 7As shown, the mobile terminal 700 includes a processor 701 and a memory 702, and the processor 701 and the memory 702 can be connected to each other via a communication bus 703. The communication bus 703 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 704 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The memory 702 is used to store computer programs, which include program instructions. The processor 701 is configured to call the program instructions. The program includes instructions for executing Figures 1 to 5 The method shown.
[0160] The processor 701 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
[0161] The memory 702 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0162] The mobile terminal 700 may further include a camera 704 and a display screen 705. The camera 704 may include a front camera, a rear camera, etc. The display screen 705 may include a touch screen such as a liquid crystal display screen, an LED display screen, an OLED display screen, etc.
[0163] In addition, the mobile terminal 700 may also include common components such as a communication interface and an antenna, which will not be described in detail here.
[0164] In the embodiment of the present application, after the last calibration, confidence point data can be collected through touch operation, and the confidence point data can be recorded in a confidence data set. When the number of confidence point data in the confidence data set reaches a second threshold, the eye tracking model is refitted according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model. After the last calibration, the last calibration result can be automatically calibrated to improve the eye tracking accuracy of the calibrated eye tracking model, thereby improving the calibration effect of eye tracking.
[0165] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any eye tracking calibration method recorded in the above method embodiments.
[0166] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any eye tracking calibration method recorded in the above method embodiments.
[0167] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0172] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0173] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0174] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A calibration method for eye tracking, characterized in that: include: After the last calibration is completed, detecting the touch operation and determining the touch area corresponding to the touch operation; If the touch area is within a target calibration area, capturing a target human eye image corresponding to the touch area, wherein the target calibration area is an area used to generate calibration points during the calibration process; Extracting target eye feature data from the target human eye image, inputting the target eye feature data into an eye tracking model to obtain target gaze point coordinates; the eye tracking model is determined based on the last calibration; If the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, the target eye feature data and the target gaze point coordinates are used as a piece of confidence point data, and the confidence point data is recorded in a confidence data set; When the number of confidence point data in the confidence data set reaches a second threshold, refitting the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model; The step of extracting target eye feature data from the target human eye image comprises: Determine a region of interest (ROI) in the target human eye image; Extracting a pupil eye corner vector from the ROI region, wherein the target eye feature data includes the pupil eye corner vector; The extracting the pupil eye corner vector from the ROI area comprises: Determine the pupil center coordinates in the ROI region using a nuclear gradient pupil localization method; Determine the first eye corner coordinate and the second eye corner coordinate in the ROI region by using edge detection and kernel gradient eye corner positioning method; The pupil eye corner vector is determined according to the pupil center coordinates, the first eye corner coordinates and the second eye corner coordinates.
2. The method according to claim 1, characterized in that The method further comprises: If the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is greater than a first threshold, the target eye feature data is discarded.
3. The method according to claim 1, characterized in that The touch operation includes a click operation or a slide operation.
4. The method according to any one of claims 1 to 3, characterized in that: Before the last calibration is completed, the method further includes: Start the calibration mode and generate N calibration points in N calibration areas of the touch screen; When the user's sight lines are respectively fixed on the N calibration points, N human eye images are respectively collected; Extracting N eye feature data from the N human eye images respectively; The model to be fitted is fitted based on the N eye feature data to obtain the eye tracking model.
5. The method according to any one of claims 1 to 3, characterized in that: After refitting the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model, the method further includes: In the case of eye tracking, obtaining an eye image of the target user; Extracting target user eye feature data from the target user eye image; The target user's eye feature data is input into the calibrated eye tracking model to obtain the target user's gaze point coordinates.
6. An eye tracking calibration device, characterized in that: include: A detection unit, used to detect a touch operation after the last calibration is completed; A determination unit, used to determine a touch area corresponding to the touch operation; A shooting unit, used for shooting a target human eye image corresponding to the touch area when the touch area is located in a target calibration area, wherein the target calibration area is an area used to generate calibration points during the calibration process; An extraction unit, used for extracting target eye feature data from the target human eye image; A model calculation unit, used for inputting the target eye feature data into an eye tracking model to obtain the target gaze point coordinates; the eye tracking model is determined based on the last calibration; a processing unit, configured to, when the difference between the target gaze point coordinates and the coordinates corresponding to the target calibration area is less than a first threshold, use the target eye feature data and the target gaze point coordinates as a piece of confidence point data, and record the confidence point data in a confidence data set; a calibration unit, configured to refit the eye tracking model according to the confidence point data in the confidence data set to obtain a calibrated eye tracking model when the number of confidence point data in the confidence data set reaches a second threshold; The extraction unit extracts target eye feature data from the target human eye image, specifically: determining an ROI region of interest in the target human eye image; extracting a pupil eye corner vector from the ROI region, wherein the target eye feature data includes the pupil eye corner vector; The extracting unit extracts the pupil eye corner vector from the ROI region, specifically by: using a kernel gradient pupil positioning method to determine the pupil center coordinates in the ROI region; The first eye corner coordinates and the second eye corner coordinates in the ROI area are determined by edge detection and kernel gradient eye corner positioning method; and the pupil eye corner vector is determined according to the pupil center coordinates, the first eye corner coordinates and the second eye corner coordinates.
7. A mobile terminal, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Non-contact free space eye-gaze tracking method suitable for man-machine interaction
CN102749991A
Eyeball tracking model establishment method, eyeball tracking method, equipment and medium
CN109947253A
Method to reliably detect correlations between gaze and stimuli
CN110502099A
Eye tracking calibration
US20160029883A1
Eye tracking calibration techniques
US20180348861A1
