Sight line estimation method based on RGB-D data point cloud curved surface fitting and pupil normal vector

Through point cloud surface fitting and pupil normal vector method based on RGB-D data, the error problem in line of sight estimation of planar images is solved, and more accurate line of sight direction estimation is achieved. It is suitable for the AR/VR field and improves the user experience. .

CN118587243APending Publication Date: 2024-09-03SICHUAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410717493.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the existing technology, due to possible occlusion and illumination effects in the plane image during line of sight estimation, it is difficult to accurately identify the boundaries and shapes of objects, resulting in large errors in line of sight direction estimation.

Method used

The point cloud surface fitting and pupil normal vector methods based on RGB-D data are used to generate a three-dimensional surface model of the eye through the NURBS surface fitting algorithm. The Sobel operator and residual network are combined to accurately locate the pupil center and calculate the pupil normal vector to determine sight direction.

Benefits of technology

Without the need for infrared equipment, the accuracy of line of sight estimation is improved, errors are reduced, system perception and interaction performance in the AR/VR field are enhanced, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587243A
    Figure CN118587243A
Patent Text Reader

Abstract

The invention provides a sight line estimation method based on RGB-D data point cloud curved surface fitting and pupil normal vectors, and relates to the technical field of computer vision. The method comprises the following steps: acquiring an eye RGB-D image from a face color image and chromaticity information, converting all pixel points into world coordinates, and generating point cloud data; fitting the point cloud data by using an NURBS curved surface fitting algorithm to obtain an eye three-dimensional curved surface model; solving the gradient of the eye depth map to obtain a depth gradient map; performing data enhancement on the eye RGB-D image and the depth gradient map, inputting the eye RGB-D image and the depth gradient map into a residual network, and outputting coordinates of a predicted pupil center position; and calculating a normal vector for predicting the pupil center position, and determining the normal vector as the sight line direction. In the method, the depth information is beneficial to distinguishing objects at different distances, eye movement information can be more accurately captured, and the error of sight line estimation can be reduced by matching with a curved surface fitting method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method for studying point cloud surface fitting and pupil normal vector line of sight estimation based on RGB-D data. Background Art

[0002] The line of sight is the imaginary straight line between the eye and the object being observed, and is the key information in eye tracking. The direction of a person's line of sight specifically refers to the direction of the line from the center of the eyeball to the center of the pupil. When the object being observed moves or changes in other ways, the direction of the line of sight will also change accordingly according to the instructions of the brain, and the specific appearance is that the relative position of the eyeball changes through rotation.

[0003] With the rapid development of science and technology, eye tracking can achieve applications such as human-computer interaction related to screen control, user experience analysis based on gaze point detection, driving behavior analysis based on line of sight attention, and medical and psychological diagnosis by tracking pupil movement. Eye tracking technology involves multiple fields of technology such as image processing, computer vision, machine learning, and eye movement physiology. Among them, pupil detection is one of the core steps of eye tracking. By detecting the position of the pupil, the eye's gaze point and gaze direction are inferred to obtain tracking results.

[0004] However, from the perspective of using planar image data, this method has the problem of large errors in line of sight estimation due to the possible occlusion of planar images, which makes it difficult to correctly determine the foreground or background information. In addition, planar images may be affected by lighting and shadow effects, making it difficult to accurately identify the boundaries and shapes of objects. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector.

[0006] The method comprises the following steps:

[0007] Step S1: Acquire a facial color image and depth information of an object to be detected;

[0008] Step S2: obtaining an eye RGB-D image of the object to be detected from the facial color image and depth information;

[0009] Step S3: Convert the coordinates of all pixels on the eye RGB-D image into coordinates (X, Y, Z) in the world coordinate system to generate point cloud data.

[0010]

[0011] Where (x, y) is the coordinate of the pixel to be converted, (cx , c y ) is the coordinate of the base point on the eye RGB-D image, (f x ,f y ) is the focal length of the camera, and D is the depth value;

[0012] Step S4: fitting the point cloud data by using a NURBS surface fitting algorithm to obtain a three-dimensional surface model of the eye of the object to be detected;

[0013] Step S5: Calculate the gradient of the eye depth map in the eye RGB-D image through the Sobel operator kernel to obtain a depth gradient map;

[0014] Step S6: Input the eye RGB-D image and the depth gradient map into the residual network and output the coordinates of the predicted pupil center position (X c ,Y c );

[0015] Step S7: Calculate and predict the normal vector of the pupil center position, and determine the normal vector as the sight line direction of the object to be detected.

[0016] Preferably, step S4 comprises:

[0017] Step S41: On the NURBS surface,

[0018] The sampling density in the u direction is N u uniform sampling and using uniform step size Generate sampling points;

[0019] The sampling density in the v direction is N v uniform sampling and using uniform step size Generate sampling points;

[0020] There exists a parametric equation S(u,v) for the NURBS surface,

[0021]

[0022] Where u and v are the two directions of the NURBS surface, N i,p (u), N j,q (v) are the B-Spline basis functions in the u and v directions, m and n are the number of sampling points generated in the u and v directions, i and j are the ordinal numbers of the sampling points generated in the u and v directions, p and q are the numbers of the B-Spline basis functions in the u and v directions, respectively, w i.j , P i,j are the sampling points determined by i and j, i.e., the weights and vector representations of the control points;

[0023] Step S42: fitting the point cloud data by the least square method to obtain a three-dimensional surface model of the eye of the object to be detected.

[0024]

[0025] Where U i is the i-th sampling point in the sampling point sequence in the u direction, V j is the jth sampling point in the sampling point sequence in the v direction.

[0026] Preferably, in step S42, p=4, q=4.

[0027] Preferably, fitting the point cloud data by the least squares method further comprises:

[0028] Iterate the fitting multiple times and minimize the objective function L of the least squares method by gradient descent s ,

[0029]

[0030] In the formula, k is the node number of the surface fitting, N is the total number of points in the point cloud data, S(u k ,v k ) is the sequence of the current node (u k ,v k ) represents the adjusted NURBS surface, P k is the kth point of the point cloud data, ||·|| represents the norm;

[0031] Take the objective function L s The coordinates corresponding to the smallest node number on the NURBS surface are the control points.

[0032] Preferably, step S4 further includes:

[0033] The three-dimensional space formed by the point cloud data is divided into multiple voxel units of uniform size, and the point cloud density is determined by counting the number of points in each voxel unit;

[0034] Adjust the weight of the corresponding coordinates of the ath voxel unit on the NURBS surface,

[0035] w a =w initial ×(1+α·ρ a +β·c a );

[0036] ρ a >ρ threshold ;

[0037] c a >c threshold ;

[0038] In the formula, w a is the weight of the a-th voxel unit, w initial is the initial weight, α and β are adjustment parameters, ρ a is the point cloud density of the a-th voxel unit, c a is the curvature of the corresponding coordinates of the a-th voxel unit on the NURBS surface, ρ threshold 、c threshold are the thresholds of point cloud density and curvature, respectively.

[0039] ρ threshold =μ 1 +e 1 σ 1 ;

[0040] c threshold =μ 2 +e 2 σ 2 ;

[0041] In the formula, μ 1 is the mean value of the point cloud density, μ 2 is the mean curvature, σ 1 is the point cloud density standard deviation, σ 2 is the standard deviation of curvature, e 1 、e 2 To adjust the parameters.

[0042] Preferably, step S5 comprises:

[0043] For each pixel of the eye depth map, convolution operation is performed with the adjacent pixel points according to the Sobel operator kernel to obtain the overall gradient of the eye depth map.

[0044]

[0045] In the formula, G x , G y , G are horizontal gradient, vertical gradient, and overall gradient, I is the eye depth map, S x , S y They are the Sobel operator kernels in the horizontal and vertical directions respectively, and * indicates convolution operation;

[0046] The overall gradient G is used as the depth gradient map.

[0047] Preferably, the residual network includes a convolutional layer, a maximum pooling layer, a residual block group, an adaptive average pooling layer and a fully connected layer;

[0048] The convolution layer is used to extract eye features from the input data; the convolution layer uses a five-channel input to input the data corresponding to the eye RGB-D image and the depth gradient map;

[0049] The maximum pooling layer is used to reduce the dimension of the eye feature, and its output is the eye feature after maximum downsampling;

[0050] The residual block group includes multiple residual blocks, which are used to capture the deep features of the output eye;

[0051] The adaptive average pooling layer is used to convert the deep features of the eye into a preset size;

[0052] The dimension of the fully connected layer is 2, which is used to predict the pupil center based on the deep feature output.

[0053] Furthermore, before inputting the eye RGB-D image and the depth gradient map into the residual network, the eye RGB-D image and the depth gradient map are subjected to data augmentation, including random horizontal flipping and rotation from -15° to 15°.

[0054] Preferably, the coordinates (X c ,Y c ), and previously included:

[0055] The average Euclidean distance between the predicted pupil center position and the true pupil center position is used as the loss function L g ,

[0056]

[0057] Through the Adam optimizer, the output makes the loss function L g The minimum predicted pupil center position;

[0058] in, is the rth predicted pupil center position coordinate, is the rth true predicted pupil center coordinate manually calibrated, and z is the number of eye RGB-D images.

[0059] Preferably, step S7 comprises:

[0060] Step S71: Mapping the predicted pupil center position to the three-dimensional surface model of the eye.

[0061]

[0062] In the formula, (x c0 ,y c0 ,z c0 ) is the point cloud coordinate corresponding to the predicted pupil center position, D c To predict the depth value corresponding to the pupil center position;

[0063] Step S72: Determine (x c0 ,y c0 ,zc0 ) in the corresponding coordinates (x c ,y c ,z c ):

[0064] Determine the initial point (u 0 ,v 0 ) at the corresponding point (x 1i ,y 1i ,z 1i );

[0065] (x c0 ,y c0 ,z c0 ) and the corresponding point (x 1i ,y 1i ,z 1i ) between i ,v i ) as the objective function,

[0066]

[0067] Using the gradient descent algorithm, iteratively update the parameter point (u i ,v i ) minimizes the distance f(u i ,v i ) to obtain the corresponding coordinates (x c ,y c ,z c );

[0068] in,

[0069]

[0070] Where P ijx , P ijy and P ijz are respectively the projections of the vectors of the sampling points determined by the i-th sampling in the u direction and the j-th sampling in the v direction on the x-axis, y-axis and z-axis directions of the three-dimensional surface model of the eye;

[0071] Step S73: Determine the corresponding coordinates (x c ,y c ,z c ) on the NURBS surface. c ,v c );

[0072] Step S74: In the parametric equation S(u,v) of the NURBS surface, c and vc Take the partial derivative to get the tangent vector and The normal vector N(u c ,v c ),

[0073]

[0074] Step S75: Determine the direction of the normal vector of the predicted pupil center position as the line of sight direction of the object to be detected.

[0075] The technical solution provided by the present invention can perform line of sight estimation without the use of infrared equipment; among them, depth information helps to distinguish objects at different distances, can more accurately capture eye movement information, and can reduce the error of line of sight estimation in conjunction with the surface fitting method. Furthermore, accurate surface fitting and line of sight estimation can improve the perception and interaction performance of the system in the AR / VR field and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 Flow chart of the steps of line of sight estimation in the present invention.

[0077] Figure 2 It is a schematic diagram of the process of fitting the three-dimensional surface model of the eye through point cloud data in the present invention.

[0078] Figure 3 It is the eye depth map used for gaze estimation in the present invention.

[0079] Figure 4 It is the eye depth gradient map used for line of sight estimation in the present invention.

[0080] Figure 5 Schematic diagram of the model architecture for predicting the pupil center position in the present invention. DETAILED DESCRIPTION

[0081] The technical solution provided by the present invention will be further explained below in conjunction with the accompanying drawings.

[0082] The present invention provides a line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector, such as Figure 1 As shown, it mainly includes the following steps:

[0083] Step 1: Processing of eye RGB-D data. Input the eye RGB-D image (depth image, RGB+Depth Map) of the object to be detected into the data processing module to obtain the eye RGB-D data for point cloud surface fitting and pupil center detection after uniform resizing and bilateral filtering. Use professional equipment that can provide depth information, such as RGB-D cameras, structured light sensors, TOF sensors or binocular cameras, to obtain the facial color image and depth information of the object to be detected, and obtain the RGB-D data of the eye from the facial color image and depth information of the object being photographed.

[0084] After the RGB-D image is uniformly adjusted to a resolution of 256x256 pixels, if the color image and depth information are obtained by different sensors, internal and external calibration is required to ensure alignment between the two. The obtained RGB-D data is processed by bilateral filtering to preserve edges and remove noise.

[0085] Step 2: Fit the point cloud data based on the NURBS surface fitting algorithm to obtain a three-dimensional surface model of the eye. The data used for point cloud surface fitting is converted into a three-dimensional space, i.e., a world coordinate system, and the NURBS surface fitting algorithm is used to fit the data to the three-dimensional surface model of the eye. Figure 2 shown.

[0086] Specifically, in order to perform point cloud surface fitting, the initial data needs to be converted into point cloud data, that is, the color information and depth information of the eye are converted from the image coordinate system to the world coordinate system. After obtaining the point cloud data, the NURBS surface fitting method is selected to fit the three-dimensional surface model of the eye.

[0087] The main process of converting RGB-D data into point cloud data is as follows: After the data used for point cloud surface fitting is processed by the data processing module, the camera's internal and external parameter matrices are needed to convert the pixel coordinates on the RGB image into points in the world coordinate system using the following formula:

[0088]

[0089] Among them, (X, Y, Z) is the coordinate of the point cloud data, (x, y) is the pixel coordinate in the image, (c x ,c y ) is the coordinate of the base point, f x ,f y is the focal length of the camera, and D is the depth value. Each pixel is converted into a point in three-dimensional space to form eye point cloud data. After generating the point cloud data, voxel filtering is performed to smooth the point cloud and remove outliers.

[0090] The NURBS fitting method is used to fit the three-dimensional surface model of the eye. It is divided into three steps: initializing the NURBS surface basic structure, performing NURBS surface fitting on the point cloud data, and optimizing and adjusting the fitting results.

[0091] Step 1: Initialize the NURBS surface infrastructure:

[0092] The content of initializing the NURBS surface infrastructure includes control points, weights, and node sequences. The metric for determining the fitting error is the shortest distance from the point cloud to the NURBS surface. i,j is the control point, w i.j is the weight, u, v are the node sequences, and i, j are the serial numbers of the corresponding control points on the surface.

[0093] Considering that the RGB-D data is obtained under natural conditions without any prior knowledge, uniform sampling is used to initialize the control points P of the NURBS surface. i,j , initialize all weights w i.j to 1 to achieve a uniform distribution.

[0094] Initialize the control points P of the NURBS surface using uniform sampling i,j , first determine the density N for uniform sampling in the u and v directions u and N v , using a uniform step size and Generate sampling points. For each combination of u and v, use the NURBS surface representation formula to calculate the point on the surface:

[0095]

[0096] Among them, N i,p (u) and N j,q (v) is the B-Spline basis function, m and n are the number of sampling points generated in the u and v directions, respectively, and p and q are the degrees of the B-Spline basis function in the u and v directions, respectively. This is to select a part of the points on the calculated surface as the initial control points of the NURBS surface.

[0097] Step 2: Fit the point cloud data to the NURBS surface:

[0098] The point cloud is fitted using the least squares method, and the fitting process is performed iteratively for multiple times. The objective function of the least squares method is minimized using gradient descent to gradually optimize the position of the control points to obtain the optimal surface fitting result. The B-Spline basis function is generated by recursive definition, and the zero-order basis function (p = 0) is defined as:

[0099]

[0100] The higher-order basis functions (p>0) are defined as:

[0101]

[0102] Among them, U i is the i-th node value in the node vector, p is the degree of the basis function, N i,p (u) represents the value of the i-th basis function at parameter u. The basis function is composed of the node values ​​U in the node vector i Starting from the zero-order basis function, high-order basis functions are constructed by linearly combining low-order basis functions, thereby combining to obtain the exact shape of the NURBS surface.

[0103] In this description, the order p, q of the basis functions is determined to be 4, so as to achieve a more accurate and smooth surface fitting of the eye data points, and to reduce the computational complexity, computational cost and memory usage.

[0104] The B-Spline basis function is expressed as:

[0105]

[0106] Among them, U i is the ith node in the node vector.

[0107] The objective (loss) function of the least squares method is:

[0108]

[0109] Among them, k is the node number of the kth surface fitting, N is the total number of N point cloud data points, S(u k ,v k ) is the current (u k ,v k ) The representation of the NURBS surface after the node sequence is adjusted, P k is the kth point cloud data point, ||S(u k ,v k )-P k || 2 Indicates the value of S(u k ,v k )-P k Find the square of the norm of .

[0110] Step 3: Optimize and adjust the fitting results.

[0111] During the eye surface fitting process, the surface fitting results are further optimized by iteratively adjusting the control points, weights and node sequences to better adapt to the eye point cloud data.

[0112] Specifically, by minimizing the fitting error and iteratively adjusting the position of the control points, the fitted three-dimensional surface can better fit the eye point cloud data. According to the point cloud density and shape characteristics, the weights of different areas on the surface are adjusted. In areas with dense point clouds, larger weights can be used to better fit the eye shape. By adjusting the node sequence of the surface to change the shape of the surface, adding nodes can improve the flexibility of different areas of the surface, and reducing nodes can improve the smoothness of different areas of the surface.

[0113] The density of the point cloud is evaluated using a voxel-based density estimation method. The three-dimensional space of the entire point cloud is divided into a series of uniformly sized units, and the number of points in each voxel unit is counted to determine the voxel unit density ρ, i.e., the point cloud density. Based on the mean μ and standard deviation σ of all voxel densities, the density threshold ρ threshold It is expressed as:

[0114] ρ threshold =μ+kσ;

[0115] Where k is a tuning parameter. Voxel density ρ>ρ threshold For high-density areas, the point cloud density ρ in this area i Serves as a weight factor for the control points.

[0116] The shape of the point cloud is evaluated using curvature estimation based on surface fitting. The principal curvature is calculated by calculating the second-order partial derivatives of the fitted surface. The density threshold ρ is determined using threshold The same method is used to determine the curvature threshold c threshold . Curvature c>c threshold is a high curvature area, the curvature of this area is c i As the weight factor of the control point. The overall weight adjustment formula is:

[0117] w i =w initial ×(1+α·ρ i +β·c i );

[0118] Among them, w i is the weight of the ith control point, w initial is the initial weight, usually 1, α and β are adjustment parameters used to control the influence of point cloud density and curvature on the weight, ρ i and c i are the point cloud density of the i-th control point and the curvature at that point, respectively.

[0119] Step 3: By fusing the eye RGB-D image Figure 3The eye depth map shown in the figure and the eye depth gradient map calculated using the sobel operator kernel are used to accurately locate the pupil center using the ResNet architecture. Specifically, the ResNet architecture is selected to use the fusion of the eye RGB-D image and the eye depth gradient map as input to achieve accurate positioning of the pupil center.

[0120] First, for the eye depth map of the object to be detected, the Sobel operator kernel is used to obtain the gradient of the eye depth map to obtain the corresponding depth gradient map, such as Figure 4 As shown, by inputting the depth gradient map into the ResNet architecture, the network's ability to capture gradient changes is enhanced, thereby better locating the pupil edge information and improving the network's recognition accuracy of the pupil center.

[0121] Afterwards, the eye RGB-D image and the depth gradient map are taken as input, normalized, and data enhancement strategies such as random horizontal flipping and slight rotation are implemented to significantly improve the adaptability of the residual network to different scenarios. Figure 5 As shown. The initial layer consists of a convolutional layer designed specifically for five-channel input (eye R, G, B, D and depth gradient data), which extracts eye features from the input data and outputs the extracted eye feature information. It is followed by a maximum pooling layer to effectively reduce the dimension of the feature and output the feature information after downsampling by selecting the maximum value in each pooling window. Subsequently, the downsampled feature information passes through several residual blocks, following the standard ResNet configuration, and outputs the captured more complex feature information. The adaptive average pooling layer is used to convert complex feature information of any dimension of the input into a predetermined output size, ensuring the size consistency of the output vector. The output vector of the adaptive average pooling layer is finally passed through a fully connected layer with an output dimension of 2. The output is the coordinate position of the predicted pupil center, and the output format is (X c ,Y c ). Among them, X c ,Y c They are the horizontal and vertical coordinates of the predicted pupil center.

[0122] In terms of the training strategy of the residual network, the Adam optimizer is selected and the average Euclidean distance between the predicted pupil center position and the true pupil center position is used as the loss function:

[0123]

[0124] in, is the i-th predicted pupil center position coordinate, is the i-th true predicted pupil center coordinate, and z is the number of training samples of the eye image. This not only promotes fast convergence but also ensures high-precision pupil localization. In addition, we further improve the generalization ability of the network by introducing a learning rate decay mechanism and applying regularization methods (including weight decay and Dropout). In order to verify the robustness of the proposed method, we plan to conduct a comprehensive evaluation under various lighting conditions and different population characteristics to ensure the reliability of the residual network in practical applications.

[0125] Note: The mathematical formulas of the Sobel operator kernel in the horizontal and vertical directions are as follows:

[0126]

[0127] When calculating the gradient of the eye depth map, for each pixel, convolution operation is performed with the adjacent pixel according to the Sobel operator kernel to obtain the gradient value of the position. x The calculation of is as follows:

[0128] G x =I*S x ;

[0129] Vertical gradient G y The calculation of is as follows:

[0130] G y =I*S y ;

[0131] The overall gradient G is calculated as follows:

[0132]

[0133] Where I is the input image, S x and S y They are the Sobel operator kernels in the horizontal and vertical directions respectively, and * represents the convolution operation.

[0134] Step 4: Input the three-dimensional surface model and the pupil center position into the pupil normal vector obtaining module to obtain the pupil normal vector of the pupil center position on the three-dimensional surface of the eye. The normal vector is obtained at the pupil center position on the three-dimensional surface of the eye. The pupil normal vector of the photographed object is ideally a vector passing through the center of the eyeball and the center of the pupil. The direction of the pupil normal vector is parallel to the direction of the line of sight. The direction of the pupil normal vector is the line of sight direction.

[0135] Specifically, the predicted pupil center position (X c ,Y c ), through the above point cloud data conversion method:

[0136]

[0137] Get the point cloud coordinates (x c0 ,y c0 ,z c0 ).

[0138] Specifically, determine the pupil center position (x c0 ,y c0 ,z c0 ) on the three-dimensional surface of the eye fitted by NURBS surface method (x c ,y c ,z c ), follow the steps below.

[0139] First, select the initial point (u 0 ,v 0 ), the three-dimensional coordinates corresponding to the initial point (m 0 ,n 0 ,l 0 ) is calculated by the following formula:

[0140]

[0141] The pupil center position (x c0 ,y c0 ,z c0 ) and the point (m i ,n i ,l i ):

[0142]

[0143] As the objective function. Use the gradient descent algorithm to minimize the objective function by iteratively updating the parameter point (u i ,v i ), select the same as (x c0 ,y c0 ,z c0 )The point with the smallest distance (m c ,n c ,l c ), which is the corresponding three-dimensional coordinate point (x c ,y c ,z c ), which corresponds to the parameter coordinate (u c ,v c ). Its normal vector on the three-dimensional surface of the eye is the required pupil normal vector.

[0144] The parametric equation of the known NURBS surface is in the form of:

[0145]

[0146] Therefore, the parameter coordinates of the pupil center position (u c ,v c ) The corresponding parametric equation form is:

[0147]

[0148] For u c and v c Find the partial derivative and get the tangent vector of the surface and The cross product of these two tangent vectors gives us the normal vector Normalization is performed to ensure that the normal vector is a unit vector. The direction corresponding to the pupil normal vector is the estimated sight direction.

[0149] Step five, based on the direction of the pupil normal vector, determine the line of sight direction of the object to be detected: the pupil normal vector of the object to be detected is, under ideal conditions, a vector passing through the center of the eyeball and the center of the pupil, and the direction of the pupil normal vector is parallel to the line of sight. The direction of the pupil normal vector is the line of sight direction.

[0150] In addition, the overall line of sight estimation training process is as follows:

[0151] First, the RGB-D data of the eyes of the object to be detected is collected by using a depth camera, and the RGB-D data is input into the data processing module. After uniformly adjusting to a resolution of 256*256 pixels, internal and external parameter calibration (optional) and bilateral filtering are performed to obtain the RGB-D data of the eyes for point cloud surface fitting and pupil center detection.

[0152] Next, the RGB-D data of the eye is input into the point cloud surface fitting module, and the data of the point cloud surface fitting is converted into a three-dimensional space, i.e., a world coordinate system. The NURBS surface fitting algorithm is used to fit the data to the three-dimensional surface of the eye to obtain a three-dimensional surface model of the eye. The loss function L for surface fitting is s It can be expressed as:

[0153]

[0154] Among them, S(u,v) is the representation of the NURBS surface, P k is a point in the point cloud data.

[0155] After that, the eye RGB-D data is input into the pupil detection module. After the eye depth gradient map is calculated using the Sobel operator, the eye RGB-D image and the depth gradient map are used as the fusion input of the pupil center prediction model. Combined with the existing pupil center position label of the training data, the average Euclidean distance between the pupil center position and the true pupil center position is constructed as the loss function. The gradient descent algorithm is used to predict the optimal pupil center position. The loss function L g It can be expressed as:

[0156]

[0157] in, is the i-th predicted pupil center position coordinate, is the i-th true predicted pupil center coordinate, and n is the number of training samples of eye images. The goal of this loss function is to minimize the gap between the predicted pupil center position and the true value, and to reduce the sensitivity to outliers by using the average value, making the optimization more stable.

[0158] The overall loss function L is:

[0159] L=α·L s +β·L g ;

[0160] Among them, α and β are weights to balance the two parts of loss. The above training process is repeated until the preset number of iterations is reached or convergence is achieved, thus obtaining an overall target model for the inference stage.

[0161] After that, the three-dimensional surface model and the pupil center position are input into the pupil normal vector calculation module, and the obtained pupil center position is converted into three-dimensional space. The closest parameter coordinate (u c ,v c ), by finding the tangent vector of the coordinate The pupil normal vector on the three-dimensional surface of the eye is obtained, and the result of obtaining the pupil normal vector can be used to estimate the line of sight direction.

[0162] The technical solution provided by the present invention can perform line of sight estimation without the use of infrared equipment; among them, depth information helps to distinguish objects at different distances, can more accurately capture eye movement information, and can reduce the error of line of sight estimation in combination with the surface fitting method. Furthermore, accurate surface fitting and line of sight estimation can improve the perception and interaction performance of the system in the AR / VR field and enhance the user experience.

[0163] Furthermore, on the basis of achieving the above-mentioned beneficial effects, each preferred scheme also achieves the following beneficial effects: setting the order of basis functions to 4 can ensure that the surface fitting of eye data points is more accurate and smooth, and the computational complexity, cost and memory occupancy are low; multiple fittings can make the parametric equation of the NURBS surface more accurate; weight adjustment can make the NURBS surface have good flexibility and smoothness; and data enhancement of the eye RGB-D image and depth gradient map can enhance the adaptability of the residual network to different scenes.

Claims

1. A line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector, characterized in that: The following steps are involved: Step S1: Acquire a facial color image and depth information of an object to be detected; Step S2: obtaining an eye RGB-D image of the object to be detected from the facial color image and depth information; Step S3: Convert the coordinates of all pixels on the eye RGB-D image into coordinates (X, Y, Z) in the world coordinate system to generate point cloud data. Where (x, y) is the coordinate of the pixel to be converted, (c x , c y ) is the coordinate of the base point on the eye RGB-D image, (f x ,f y ) is the focal length of the camera, and D is the depth value; Step S4: fitting the point cloud data by using a NURBS surface fitting algorithm to obtain a three-dimensional surface model of the eye of the object to be detected; Step S5: Calculate the gradient of the eye depth map in the eye RGB-D image by using the Sobel operator to obtain a depth gradient map; Step S6: Input the eye RGB-D image and the depth gradient map into the residual network and output the coordinates of the predicted pupil center position (X c ,Y c ); Step S7: Calculate and predict the normal vector of the pupil center position, and determine the normal vector as the sight line direction of the object to be detected.

2. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: Step S4 includes: Step S41: On the NURBS surface, The sampling density in the u direction is N u uniform sampling and using uniform step size Generate sampling points; The sampling density in the v direction is N v uniform sampling and using uniform step size Generate sampling points; There exists a parametric equation S(u,v) for the NURBS surface, Where u and v are the two directions of the NURBS surface, N i,p (u), N j,q (v) are the B-Spline basis functions in the u and v directions, m and n are the number of sampling points generated in the u and v directions, i and j are the ordinal numbers of the sampling points generated in the u and v directions, p and q are the numbers of the B-Spline basis functions in the u and v directions, respectively, w i.j , P i,j are the sampling points determined by i and j, i.e., the weights and vector representations of the control points; Step S42: fitting the point cloud data by the least square method to obtain a three-dimensional surface model of the eye of the object to be detected. Where U i is the i-th sampling point in the sampling point sequence in the u direction, V j is the jth sampling point in the sampling point sequence in the v direction.

3. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector as claimed in claim 2, characterized in that: In step S42, p=4, q=4.

4. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 2, characterized in that: Fitting point cloud data by least squares method also includes: Iterate the fitting multiple times and minimize the objective function L of the least squares method by gradient descent s , In the formula, k is the node number of the surface fitting, N is the total number of points in the point cloud data, S(u k ,v k ) is the sequence of the current node (u k ,v k ) represents the adjusted NURBS surface, P k is the kth point of the point cloud data, ||·|| represents the norm; Take the objective function L s The coordinates corresponding to the smallest node number on the NURBS surface are the control points.

5. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: Step S4 also includes: The three-dimensional space formed by the point cloud data is divided into multiple voxel units of uniform size, and the point cloud density is determined by counting the number of points in each voxel unit; Adjust the weight w of the corresponding coordinates of the αth voxel unit on the NURBS surface a , w a =w initial ×(1+a·r a +β·c a ); r a >r threshold ; c a >c threshold ; In the formula, w initial is the initial weight, α and β are adjustment parameters, ρ a is the point cloud density of α voxel units, c a is the curvature of the coordinates of the αth voxel unit on the NURBS surface, ρ threshold 、c threshold are the thresholds of point cloud density and curvature, respectively. r threshold =μ1+e1σ1; c threshold =μ2+e2σ2; Where μ1 is the mean value of point cloud density, μ2 is the mean value of curvature, σ1 is the standard deviation of point cloud density, σ2 is the standard deviation of curvature, and e1 and e2 are adjustment parameters.

6. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: Step S5 includes: For each pixel of the eye depth map, convolution operation is performed with the adjacent pixel points according to the Sobel kernel to obtain the overall gradient of the eye depth map. In the formula, G x , G y , G are horizontal gradient, vertical gradient, and overall gradient, I is the eye depth map, S x , S y They are the Sobel operator kernels in the horizontal and vertical directions respectively, and * indicates convolution operation; The overall gradient G is used as the depth gradient map.

7. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: The residual network includes a convolutional layer, a maximum pooling layer, a residual block group, an adaptive average pooling layer and a fully connected layer; The convolution layer is used to extract eye features from the input data; the convolution layer uses a five-channel input to input the data corresponding to the eye RGB-D image and the depth gradient map; The maximum pooling layer is used to reduce the dimension of the eye feature, and its output is the eye feature after maximum downsampling; The residual block group includes multiple residual blocks, which are used to capture the deep features of the output eye; The adaptive average pooling layer is used to convert the deep features of the eye into a preset size; The dimension of the fully connected layer is 2, which is used to predict the coordinates of the pupil center based on the deep feature output.

8. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: Before inputting the eye RGB-D image and depth gradient map into the residual network, it also includes: The eye RGB-D image and depth gradient map are augmented with data including random horizontal flipping and rotation from -15° to 15°.

9. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: The output predicts the coordinates of the pupil center position (X c ,Y c ), and previously included: The average Euclidean distance between the predicted pupil center position and the true pupil center position is used as the loss function L g , Through the Adam optimizer, the output makes the loss function L g The minimum predicted pupil center position; in, is the rth predicted pupil center position coordinate, is the rth true predicted pupil center coordinate manually calibrated, and z is the number of eye RGB-D images.

10. The line of sight estimation method based on RGB-D data point cloud surface fitting and pupil normal vector according to claim 1, characterized in that: Step S7 includes: Step S71: Mapping the predicted pupil center position to the three-dimensional surface model of the eye. In the formula, (x c0 ,y c0 ,z c0 ) is the point cloud coordinate corresponding to the predicted pupil center position, D c To predict the depth value corresponding to the pupil center position; Step S72: Determine (x c0 ,y c0 ,z c0 ) in the corresponding coordinates (x c ,y c ,z c ): Determine the initial point (u0, v0) in the NURBS surface and the corresponding point (x 1i ,y 1i ,z 1i ); (x c0 ,y c0 ,z c0 ) and the corresponding point (x 1i ,y 1i ,z 1i ) between i ,v i ) as the objective function, Using the gradient descent algorithm, iteratively update the parameter data point (u i ,v i ) minimizes the distance f(u i ,v i ) to obtain the corresponding coordinates (x c ,y c ,z c ); in, Where P ijx , P ijy and P ijz are respectively the projections of the vectors of the sampling points determined by the i-th sampling in the u direction and the j-th sampling in the v direction on the x-axis, y-axis and z-axis directions of the three-dimensional surface model of the eye; Step S73: Determine the corresponding coordinates (x c ,y c ,z c ) on the NURBS surface. c ,v c ); Step S74: In the parametric equation S(u,v) of the NURBS surface, c and v c Take the partial derivative to get the tangent vector and The normal vector N(u c ,v c ), Step S75: Determine the direction of the normal vector of the predicted pupil center position as the line of sight direction of the object to be detected.

Citation Information

Patent Citations

  • Three-dimensional mural geometric change detection method based on multi-view contour points

    CN112465896A

  • Sight line estimation method, electronic equipment and storage medium

    CN113822174A

  • Gaze-guided robot interactive article grabbing method, system and equipment and storage medium

    CN117400242A

  • Gaze point detection device and gaze point detection method

    US20220244779A1

  • Data acquisition and reconstruction method and system for human body three-dimensional modeling based on single mobile phone

    US20240153213A1