A naked eye three-dimensional display method and system based on smart screen
By combining the parallax barrier array and the infrared camera, the machine learning model is used to adjust the parallax barrier array in real time, which solves the problem that the smart screen is difficult to track the user's head posture and pupil viewpoint, achieves stable 3D display effects at different angles, and improves the user experience. .
Patent Information
- Application Number
- CN202410948131.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-16
AI Technical Summary
It is difficult for existing advertising smart screens to track the user's head posture and pupil viewpoint in real time, resulting in ghosting, distortion or blurring when viewed from different angles, and cannot guarantee the 3D display effect and user experience.
Using a combination of a parallax barrier array and an infrared camera, the spacing and angle of the parallax barrier array are adjusted in real time through geometric transformation algorithms and machine learning models, and the display content is dynamically adjusted according to the user's head posture and pupil viewpoint position.
It achieves continuous 3D display at different angles, avoids ghosting and distortion, and improves the playback effect and user experience of smart screen advertisements.
Smart Images

Figure CN118509569B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and more specifically, to a naked-eye three-dimensional stereoscopic display method and system based on a smart screen. Background Art
[0002] With the development of information technology and display technology, three-dimensional stereoscopic display technology has been widely used in advertising, entertainment, education and other fields; traditional 3D display technology mainly relies on wearing special glasses to achieve stereoscopic visual effects, but this method has many inconveniences, such as discomfort and high equipment costs; in order to solve these problems, naked-eye 3D display technology came into being; naked-eye 3D display technology does not require users to wear glasses, and can directly achieve stereoscopic visual effects through the display screen, greatly improving user experience and viewing convenience; in public places, especially in communities, the dissemination of advertising information is an important part of community services; community advertising smart screens, as a new type of advertising medium, can deliver various information to community residents in real time and accurately through digital and intelligent means; however, most of the existing community advertising smart screens use flat displays, and the effect and attractiveness of information display are limited, making it difficult to give full play to their advertising display effectiveness.
[0003] At present, most of the existing advertising smart screen display systems use flat displays for display. Although there are some 3D display methods, for example, the Chinese patent with announcement number CN115933217A discloses a method and system for realizing naked-eye 3D advertising on a handrail display terminal. The invention realizes 3D display of advertisements by integrating a grating film group on the display screen; however, research and practical application of the above method and prior art have found that the above method and prior art have at least the following defects:
[0004] (1) It is impossible to track the head posture of the viewing user and the pupil viewpoint of the eyes on the smart screen, which may easily cause the viewing user to see abnormal display phenomena such as ghosting, distortion or blur as the viewing user's position changes;
[0005] (2) It is impossible to determine the optimal adjustment parameters of the parallax barrier array in real time based on the head posture and pupil viewpoint, and thus it is impossible to adjust the spacing and angle of the parallax barrier array in real time. Furthermore, it is impossible to ensure that the display content of the smart screen viewed by users at different angles is 3D, and it is difficult to improve the playback and display effect of smart screen advertisements and the user's viewing experience of smart screen advertisements. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a naked-eye three-dimensional stereoscopic display method and system based on a smart screen.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A naked-eye three-dimensional stereoscopic display method based on a smart screen, wherein the smart screen is provided with a parallax barrier array and a camera module, wherein the camera module includes at least two infrared cameras, and the method includes:
[0009] Processing the facial image captured by the infrared camera to locate the pupil center coordinates in the image coordinate system, and transforming the pupil center coordinates in the image coordinate system through a geometric transformation algorithm to obtain the pupil gaze point position on the smart screen; the pupil gaze point position includes the left pupil gaze point position and the right pupil gaze point position;
[0010] Obtaining the position of the nose tip gaze point and the mouth gaze point, and inputting the nose tip gaze point, the mouth gaze point and the pupil gaze point into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle;
[0011] Obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture, and mouth gaze point position into a pre-trained second machine learning model to obtain optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array;
[0012] The parallax barrier array is dynamically adjusted according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the smart screen display content.
[0013] Furthermore, the processing of the facial image captured by the infrared camera includes:
[0014] After filtering the noise of the face image, grayscale processing is performed to obtain a grayscale image;
[0015] Obtain a pre-stored pupil template image, set the step size to 1, place the pupil template image on the grayscale image through a sliding window method to perform a cross-correlation calculation to obtain the similarity of each overlapping window on the grayscale image, and obtain Q similarities, where Q is an integer greater than zero;
[0016] Sort the Q similarities from large to small according to the numerical value, and mark the overlapping window corresponding to the first similarity in the sort as the pupil area;
[0017] Gaussian blur is performed on the grayscale image to highlight the pupil area, and the circular boundary of the pupil is determined using Hough transform, and the center coordinates of the circular boundary are obtained, and the center coordinates are marked as the pupil center coordinates in the image coordinate system; wherein the pupil center coordinates include the left pupil center coordinates and the right pupil center coordinates.
[0018] Furthermore, the processing of the facial image captured by the infrared camera also includes:
[0019] Gaussian blur is performed on the grayscale image obtained after filtering the noise of the face image;
[0020] Load the pre-trained face detection model in the Dlib library, input the Gaussian blurred grayscale image into the pre-trained face detection model in the Dlib library, and obtain the face boundary area;
[0021] Load the 68-point facial feature point detection model of the Dlib library, input the face boundary area in the form of an image into the 68-point facial feature point detection model of the Dlib library, and obtain the coordinates of U facial feature points, where U is an integer greater than zero;
[0022] The coordinates of the pupil feature point among the U facial feature points are extracted, and the coordinates of the pupil feature point are marked as the pupil center coordinates in the image coordinate system.
[0023] Furthermore, converting the pupil center coordinates in the image coordinate system into the user's gaze point position on the smart screen includes:
[0024] Calibrate the infrared camera to obtain the camera internal parameters; the internal parameters include focal length and the image optical center coordinates ;
[0025] Extract the pupil center coordinates in the pupil image coordinate system , through the internal parameter matrix The inverse transformation is used to obtain the pupil center coordinates in the camera coordinate system. :
[0026] ;
[0027] ;
[0028] Where: ;
[0029] Get the camera optical center coordinates , according to the pupil center coordinates in the camera coordinate system and the camera optical center coordinates , calculate the sight vector , and according to the camera optical center coordinates and the sight vector Set the line of sight equation: ; Where: is the line of sight equation, which means that the line of sight is Position under parameter; is the parameter; ;
[0030] Set the screen plane equation of the smart screen to: ; Where: is the normal vector of the plane, is a constant term, are the coordinates of a point in space on the screen plane;
[0031] Substitute the line of sight equation into the screen plane equation and solve for the parameters :
[0032] ;
[0033] The parameters Substitute into the line of sight equation to calculate the gaze point position :
[0034] ;
[0035] Where: .
[0036] Furthermore, the training logic of the pre-trained first machine learning model is as follows:
[0037] Acquire historical head posture training data, and divide the historical head posture training data into a head posture training set and a head posture test set; the historical head posture training data includes head posture feature data and its corresponding head posture;
[0038] The head posture feature data includes the nose tip gaze point position, the mouth gaze point position and the pupil gaze point position;
[0039] Constructing a first regression network, using the head posture feature data in the head posture training set as input data in the first regression network, and using the head posture in the head posture training set as output data in the first regression network, training the first regression network, and obtaining an initial first regression network;
[0040] The initial first regression network is model verified using the head posture test set, and the initial first regression network that is less than or equal to a preset first test error threshold is output as the first machine learning model.
[0041] Furthermore, the training logic of the pre-trained second machine learning model is as follows:
[0042] Acquire historical adjustment parameter training data, and divide the historical adjustment parameter training data into an adjustment parameter training set and an adjustment parameter test set; the historical adjustment parameter training data includes adjustment parameter feature data and its corresponding optimal adjustment parameter;
[0043] Wherein, the adjustment parameter characteristic data includes viewing distance, light intensity, head posture and mouth gaze point position;
[0044] Constructing a second regression network, using the adjustment parameter feature data in the adjustment parameter training set as input data of the second regression network, and using the best adjustment parameter in the adjustment parameter training set as output data of the second regression network, training the second regression network, and obtaining an initial second regression network;
[0045] The initial second regression network is model verified using the adjusted parameter test set, and the initial second regression network that is less than or equal to a preset second test error threshold is output as the second machine learning model.
[0046] Furthermore, the best adjustment parameters in the historical adjustment parameter training data are obtained by optimizing using a genetic algorithm;
[0047] The logic of using genetic algorithm to obtain the best adjustment parameters is as follows:
[0048] a1: Initialize the population: randomly generate an original population, wherein the original population contains Y individuals, each of which represents a set of spacing and angles of a parallax barrier array, and Y is an integer greater than zero;
[0049] a2: Fitness evaluation: Under each individual, obtain the 3D picture clarity and stereoscopic disparity of the content displayed on the smart screen; input the 3D picture clarity and stereoscopic disparity into the pre-built fitness function to calculate the fitness of each individual;
[0050] a3: Selection: Use the roulette method to select two individuals with high fitness in the original population as the father and mother;
[0051] a4: Crossover: Perform crossover operation on the father and mother to produce new individuals;
[0052] a5: Mutation: Perform mutation operation on the new individuals to obtain E new individuals, combine the E new individuals into a new population, replace the original population with the new population, and return to step a2;
[0053] a6: Repeat steps a2 to a5 above until the fitness of the individuals in the original population or the new population is greater than or equal to the preset fitness threshold, or the number of iterations is greater than or equal to the preset maximum number of iterations threshold, and output the spacing and angle of the parallax barrier array represented by the corresponding individuals as the optimal adjustment parameters to obtain the optimal spacing and optimal angle of the parallax barrier array.
[0054] Furthermore, the calculation formula of the pre-constructed fitness function is: ; Where: For fitness, For 3D picture clarity, is the reference value of clarity, is the stereo disparity, is the reference value of stereo disparity.
[0055] A naked-eye three-dimensional display system based on a smart screen, comprising:
[0056] A data acquisition module, used to process the face image captured by the infrared camera to locate the pupil center coordinates in the image coordinate system, and transform the pupil center coordinates in the image coordinate system through a geometric transformation algorithm to obtain the pupil gaze point position on the smart screen; the pupil gaze point position includes the left pupil gaze point position and the right pupil gaze point position;
[0057] A posture determination module, used to obtain the position of the nose tip gaze point and the mouth gaze point, and input the position of the nose tip gaze point, the mouth gaze point and the pupil gaze point into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle;
[0058] An adjustment parameter acquisition module is used to obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture and mouth gaze point position into a pre-trained second machine learning model to obtain the optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array;
[0059] The stereoscopic display control module is used to dynamically adjust the parallax barrier array according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the smart screen display content.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] The present application discloses a naked-eye three-dimensional stereoscopic display method and system based on a smart screen, including: locating the pupil center coordinates in the image coordinate system, and obtaining the pupil gaze point position through a geometric transformation algorithm; inputting the nose tip gaze point position, the mouth gaze point position and the pupil gaze point position into a pre-trained first machine learning model to obtain the user's head posture; inputting the viewing distance, light intensity, head posture and mouth gaze point position into a pre-trained second machine learning model to obtain the optimal adjustment parameters of the parallax barrier array; dynamically adjusting the parallax barrier array according to the optimal adjustment parameters to achieve smart screen display Continuous multi-angle 3D display of content; Based on the above process, the present invention can track the head posture of the viewing user and the pupil viewpoint of the eyes on the smart screen in real time. Furthermore, the optimal adjustment parameters of the parallax barrier array are determined according to parameters such as the head posture and the pupil viewpoint, and dynamically adjusted, which is conducive to avoiding abnormal display phenomena such as ghosting, distortion or blurring that the viewing user will see as the orientation of the viewing user changes; further, it can ensure that the display content of the smart screen viewed by the user at different angles is 3D image, which is conducive to improving the playback and display effect of smart screen advertisements and the user's viewing experience of smart screen advertisements. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 A flow chart of a naked-eye three-dimensional display method based on a smart screen provided by the present invention;
[0063] Figure 2 A schematic diagram of the module structure of a naked-eye three-dimensional stereoscopic display system based on a smart screen provided by the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] Example 1
[0066] See also Figure 1 As shown, this embodiment discloses a naked eye three-dimensional stereoscopic display method based on a smart screen, wherein the smart screen is provided with a parallax barrier array and a camera module, wherein the camera module includes at least two infrared cameras, and the method includes:
[0067] S101: Processing a facial image captured by an infrared camera to locate the pupil center coordinates in an image coordinate system, and transforming the pupil center coordinates in the image coordinate system by a geometric transformation algorithm to obtain a pupil gaze point position on the smart screen; the pupil gaze point position includes a left pupil gaze point position and a right pupil gaze point position;
[0068] It should be understood that naked-eye 3D is a technology that allows viewing 3D images or videos without wearing 3D glasses, and it includes three implementation methods, namely parallax barrier, cylindrical lens and light field display; among them, the parallax barrier method is installed in front of the display screen in an array manner, allowing the user's left eye and right eye to see different pixel columns on the screen, so that each eye of the user receives images from different angles, thereby reconstructing the spatial effect of the 3D image in the brain; because its implementation is relatively simple and the cost is low, it is widely used; however, the parallax barrier can usually only provide the best 3D effect within a specific angle range; if the viewing angle is too large, the 3D effect will quickly decrease, and even cause visual discomfort; therefore, the present invention is a technical solution to solve the problem that the parallax barrier can only provide the best 3D effect within a specific angle range;
[0069] In a specific embodiment, the processing of the facial image captured by the infrared camera includes:
[0070] After filtering the noise of the face image, grayscale processing is performed to obtain a grayscale image;
[0071] Obtain a pre-stored pupil template image, set the step size to 1, place the pupil template image on the grayscale image through a sliding window method to perform a cross-correlation calculation to obtain the similarity of each overlapping window on the grayscale image, and obtain Q similarities, where Q is an integer greater than zero;
[0072] It should be noted that: cross-correlation calculation is a method of image processing, and its basic idea is to use one image as a template and another image as a matching object, place the template on the matching object, and calculate the similarity of each overlapping part by sliding the template on the matching object, so as to obtain the same area of the two images (i.e., overlapping window); wherein the similarity of each overlapping window is calculated by a similarity algorithm; the similarity of each overlapping window includes but is not limited to a cosine similarity algorithm, etc.;
[0073] Sort the Q similarities from large to small according to the numerical value, and mark the overlapping window corresponding to the first similarity in the sort as the pupil area;
[0074] Gaussian blur is performed on the grayscale image to highlight the pupil area, and the circular boundary of the pupil is determined by using Hough transform, and the center coordinates of the circular boundary are obtained, and the center coordinates are marked as the pupil center coordinates in the image coordinate system;
[0075] Wherein, the pupil center coordinates include left pupil center coordinates and right pupil center coordinates;
[0076] It should be noted that: by Gaussian blurring, image noise can be eliminated and the pupil area can be highlighted; wherein the Hough transform is specifically the Hough circle transform, which can identify the circular structure in the image and determine the center position and radius of the circular structure;
[0077] In another specific embodiment, the processing of the facial image captured by the infrared camera further includes:
[0078] Gaussian blur is performed on the grayscale image obtained after filtering the noise of the face image;
[0079] Load the pre-trained face detection model in the Dlib library, input the Gaussian blurred grayscale image into the pre-trained face detection model in the Dlib library, and obtain the face boundary area;
[0080] It should be noted that the pre-trained face detection model in the Dlib library is a machine learning model for detecting face areas in images. The model is based on the Histogram of Oriented Gradients (HOG) feature and the linear Support Vector Machine (SVM) classifier. It recognizes the shape and edge features of the face by analyzing the local gradient direction of the image, thereby detecting the area where the face is located.
[0081] Load the 68-point facial feature point detection model of the Dlib library, input the face boundary area in the form of an image into the 68-point facial feature point detection model of the Dlib library, and obtain the coordinates of U facial feature points, where U is an integer greater than zero;
[0082] Extract the coordinates of the pupil feature point from the U facial feature points, and mark the coordinates of the pupil feature point as the pupil center coordinates in the image coordinate system;
[0083] It should be noted that the 68-point facial feature point detection model of the Dlib library is a computer vision model for detecting facial feature points; the model can locate 68 feature points in a given face image, including the key points of the eyes, eyebrows, nose, mouth and facial contour. In the 68-point facial feature point detection model of the Dlib library, the feature point of the left pupil is the 36th to 41th point in the 68-point model in the Dlib library, and the calculation formula for its coordinates is: , and the feature points of the right pupil are the 42nd to 47th points in the 68-point model in the Dlib library, and the calculation formula for their coordinates is: ; Where: is the coordinate of the i-th feature point;
[0084] In implementation, converting the pupil center coordinates in the image coordinate system into the user's gaze point position on the smart screen includes:
[0085] Calibrate the infrared camera to obtain the camera internal parameters; the internal parameters include focal length and the image optical center coordinates ;
[0086] It should be understood that: camera calibration of infrared cameras is achieved by using calibration tools (such as OpenCV);
[0087] Extract the pupil center coordinates in the pupil image coordinate system , through the internal parameter matrix The inverse transformation is used to obtain the pupil center coordinates in the camera coordinate system. :
[0088] ;
[0089] ;
[0090] Where: ;
[0091] Get the camera optical center coordinates , according to the pupil center coordinates in the camera coordinate system and the camera optical center coordinates , calculate the sight vector , and according to the camera optical center coordinates and the sight vector Set the line of sight equation: ; Where: is the line of sight equation, which means that the line of sight is Position under parameter; is a parameter, which represents the distance from the pupil center to the gaze point; , usually ;
[0092] Set the screen plane equation of the smart screen to: ; Where: is the normal vector of the plane is a constant term, are the coordinates of a point in space on the screen plane;
[0093] Substitute the line of sight equation into the screen plane equation and solve for the parameters :
[0094] ;
[0095] The parameters Substitute into the line of sight equation to calculate the gaze point position :
[0096] ;
[0097] Where: ;
[0098] It should be understood that the image optical center is a point on the image plane, indicating the point where the optical axis passes through the imaging plane. The position of the image optical center is determined by the camera intrinsic parameters and is usually located at the center of the imaging sensor (such as a CMOS sensor). The camera optical center is the origin of the camera coordinate system, through which all light rays converge during the imaging process.
[0099] S102: Obtain the position of the nose tip gaze point and the mouth gaze point, and input the position of the nose tip gaze point, the mouth gaze point and the pupil gaze point into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle;
[0100] It should be understood that the head pitch angle refers to the angle of rotation of the head upward or downward, the head yaw angle refers to the angle of rotation of the head to the left or right, and the head roll angle refers to the angle of tilt of the head left and right;
[0101] It should be noted that: the nose tip gaze point position refers to the gaze point position of the user's nose tip on the smart screen (that is, the projection position of the user's nose tip on the smart screen), and the mouth gaze point position refers to the gaze point position of the user's mouth on the smart screen (that is, the projection position of the center point of the mouth on the smart screen); the acquisition logic of the nose tip gaze point position and the mouth gaze point position is the same as the acquisition logic of the pupil gaze point position. For details, please refer to the description of the pupil gaze point position above, and no further elaboration is given here;
[0102] It should also be noted that: before obtaining the position of the nose tip gaze point and the mouth gaze point, the captured face image also needs to be processed to obtain the nose tip center coordinates and the mouth tip center coordinates in the image coordinate system; the difference is that in the process of processing the captured face image to obtain the nose tip center coordinates and the mouth tip center coordinates, the 68-point facial feature point detection model loaded in the Dlib library collects the feature points of the nose tip and the mouth. In the 68-point facial feature point detection model of the Dlib library, the feature point of the nose tip is the 33rd point in the 68-point model in the Dlib library, and the calculation formula for its coordinates is: , and the feature points of the mouth are points 48-67 in the 68-point model of the Dlib library, and the calculation formula for their coordinates is: ;
[0103] Specifically, the training logic of the pre-trained first machine learning model is as follows:
[0104] Acquire historical head posture training data, and divide the historical head posture training data into a head posture training set and a head posture test set; the historical head posture training data includes head posture feature data and its corresponding head posture;
[0105] The head posture feature data includes the nose tip gaze point position, the mouth gaze point position and the pupil gaze point position;
[0106] It should be noted that: the head posture feature data in the historical head posture training data is obtained by processing and geometrically transforming the face image, and the details are described above, which will not be repeated here; the head posture in the historical head posture training data includes the head pitch angle, yaw angle and roll angle, which are obtained by the technicians through real-time acquisition of the head posture of the experimenter wearing the sensor equipment (such as IMU sensor) during the experiment;
[0107] Constructing a first regression network, using the head posture feature data in the head posture training set as input data in the first regression network, and using the head posture in the head posture training set as output data in the first regression network, training the first regression network, and obtaining an initial first regression network;
[0108] Using the head posture test set to perform model verification on the initial first regression network, outputting the initial first regression network that is less than or equal to a preset first test error threshold as the first machine learning model;
[0109] It should be noted that: the first regression network is specifically one of the regression algorithm models such as decision tree, random forest, support vector machine, linear regression, polynomial regression or neural network;
[0110] S103: Obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture, and mouth gaze point position into a pre-trained second machine learning model to obtain optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array;
[0111] It should be noted that the viewing distance from the user to the smart screen and the light intensity of the external environment are collected by external devices, including but not limited to laser rangefinders and light sensors;
[0112] Specifically, the training logic of the pre-trained second machine learning model is as follows:
[0113] Acquire historical adjustment parameter training data, and divide the historical adjustment parameter training data into an adjustment parameter training set and an adjustment parameter test set; the historical adjustment parameter training data includes adjustment parameter feature data and its corresponding optimal adjustment parameter;
[0114] Wherein, the adjustment parameter characteristic data includes viewing distance, light intensity, head posture and mouth gaze point position;
[0115] It should be noted that the adjustment parameter feature data in the historical adjustment parameter training data is obtained through operations such as sensor acquisition and face image processing. For details, please refer to the above description and will not be repeated here.
[0116] The best adjustment parameters in the historical adjustment parameter training data are obtained by optimizing using a genetic algorithm;
[0117] Specifically, the logic of using genetic algorithm to obtain the best adjustment parameters is as follows:
[0118] a1: Initialize the population: randomly generate an original population, wherein the original population contains Y individuals, each of which represents a set of spacing and angles of a parallax barrier array, and Y is an integer greater than zero;
[0119] a2: Fitness evaluation: Under each individual (i.e., the spacing and angle of each set of parallax barrier arrays in the original population), obtain the 3D picture clarity and stereoscopic disparity of the content displayed on the smart screen; input the 3D picture clarity and stereoscopic disparity into the pre-built fitness function to calculate the fitness of each individual;
[0120] It should be noted that the 3D picture clarity is obtained by calculating the clarity of the 3D picture image formed by shooting the content displayed on the smart screen. The calculation formula for the 3D picture clarity is: ; Where: For 3D picture clarity, and is the horizontal and vertical gradient of the image at the rth pixel point, N is the total number of pixels in the 3D picture image; and for stereo disparity, two bracket cameras are aimed at the screen of the smart screen to simulate the perspectives of the left and right eyes of a person, capture the left and right eye views, and extract the detection feature points in the left and right eye views through image processing software application algorithms (such as SIFT, SURF or ORB), and use descriptor matching methods (such as FLANN or BFMatcher) to pair the feature points in the left and right views to obtain paired feature points. For each pair of matched feature points, their position difference in the horizontal direction (or vertical direction) is calculated to obtain the stereo disparity, where the calculation formula of the stereo disparity is: ; Where: and is the horizontal coordinate of the corresponding paired feature points in the left and right eye images, and M is the total number of paired feature points;
[0121] The calculation formula of the pre-constructed fitness function is: ; Where: For fitness, For 3D picture clarity, is the reference value of clarity, is the stereo disparity, is a reference value of stereoscopic disparity; wherein the reference value of clarity and the reference value of stereoscopic disparity are artificially set by technicians based on experimental data;
[0122] a3: Selection: Use the roulette method to select two individuals with high fitness in the original population as the father and mother;
[0123] The roulette wheel method is a commonly used selection method, which is used in genetic algorithms to select individuals with higher fitness to enter the next generation. It simulates the process of roulette, and each individual obtains a corresponding "roulette wheel" area according to its fitness. The higher the fitness of the individual, the larger the corresponding area, and the higher the probability of being selected.
[0124] a4: Crossover: Perform crossover operation on the father and mother to produce new individuals;
[0125] It should be noted that the crossover operation of the father and the mother is implemented based on a crossover operation, which includes but is not limited to one of a single-point crossover, a uniform crossover or a sequential crossover, etc., wherein two parents (i.e., the father and the mother) produce offspring by combining their genetic information; this process helps to introduce diversity into the solution space and may produce new individuals that are more adaptable to the environment;
[0126] a5: Mutation: Perform mutation operation on the new individuals to obtain E new individuals, combine the E new individuals into a new population, replace the original population with the new population, and return to step a2;
[0127] In genetic algorithms, mutation operations are used to introduce genetic diversity and prevent the algorithm from falling into a local optimum. The mutation operation on new individuals is implemented by uniform mutation or Gaussian mutation.
[0128] a6: Repeat steps a2 to a5 above until the fitness of the individuals in the original population or the new population is greater than or equal to the preset fitness threshold, or the number of iterations is greater than or equal to the preset maximum number of iterations threshold, outputting the spacing and angle of the parallax barrier array represented by the corresponding individuals as the optimal adjustment parameters, and obtaining the optimal spacing and optimal angle of the parallax barrier array;
[0129] For example: Assume that the maximum number of iterations is 100 times, and record the individual with the highest fitness in the current population and its fitness value after each iteration; if it is found that the fitness value has not changed significantly in a certain generation, it is considered that the convergence condition is met, the iteration is stopped, and the spacing and angle of the parallax barrier array represented by the corresponding individual are output as the optimal adjustment parameters;
[0130] Constructing a second regression network, using the adjustment parameter feature data in the adjustment parameter training set as input data of the second regression network, and using the best adjustment parameter in the adjustment parameter training set as output data of the second regression network, training the second regression network, and obtaining an initial second regression network;
[0131] Using the adjusted parameter test set to perform model verification on the initial second regression network, outputting an initial second regression network that is less than or equal to a preset second test error threshold as a second machine learning model;
[0132] It should be noted that: like the above-mentioned first regression network, the second regression network is specifically one of the regression algorithm models such as decision tree, random forest, support vector machine, linear regression, polynomial regression or neural network;
[0133] S104: dynamically adjusting the parallax barrier array according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the content displayed on the smart screen;
[0134] It should be noted that a compact motor or circuit for controlling the smart screen is still provided in the smart screen; when the optimal adjustment parameters are obtained, the parallax barrier array is dynamically adjusted by controlling the compact motor or circuit to make the parallax barrier array at the optimal spacing and the optimal angle, thereby ensuring that the display content (such as advertisements) of the smart screen viewed by users at different angles are all 3D images, which is beneficial to ensure that users can experience the best advertising 3D effect at different viewing angles.
[0135] Example 2
[0136] See also Figure 2 As shown, based on the same inventive concept, this embodiment discloses a naked eye three-dimensional stereoscopic display system based on a smart screen. For details not provided in this embodiment, please refer to the description of the relevant parts in Embodiment 1. The system includes:
[0137] The data acquisition module 210 is used to process the face image captured by the infrared camera to locate the pupil center coordinates in the image coordinate system, and transform the pupil center coordinates in the image coordinate system through a geometric transformation algorithm to obtain the pupil gaze point position on the smart screen; the pupil gaze point position includes the left pupil gaze point position and the right pupil gaze point position;
[0138] The posture determination module 220 is used to obtain the nose tip gaze point position and the mouth gaze point position, and input the nose tip gaze point position, the mouth gaze point position and the pupil gaze point position into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle;
[0139] The adjustment parameter acquisition module 230 is used to obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture and mouth gaze point position into a pre-trained second machine learning model to obtain the optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array;
[0140] The stereoscopic display control module 240 is used to dynamically adjust the parallax barrier array according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the smart screen display content.
[0141] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.
[0142] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired network or a wireless network. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0143] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 the present invention.
[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0145] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and 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, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0146] 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.
[0147] In addition, each functional unit in each embodiment of the present invention 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.
[0148] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0149] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A naked eye three-dimensional display method based on a smart screen, wherein the smart screen is provided with a parallax barrier array and a camera module, wherein the camera module includes at least two infrared cameras, characterized in that: The method comprises: Processing the facial image captured by the infrared camera to locate the pupil center coordinates in the image coordinate system, and transforming the pupil center coordinates in the image coordinate system through a geometric transformation algorithm to obtain the pupil gaze point position on the smart screen; the pupil gaze point position includes the left pupil gaze point position and the right pupil gaze point position; The converting of the pupil center coordinates in the image coordinate system includes: Calibrate the infrared camera to obtain the camera internal parameters; the internal parameters include focal length and the image optical center coordinates ; Extract the pupil center coordinates in the pupil image coordinate system , through the internal parameter matrix The inverse transformation is used to obtain the pupil center coordinates in the camera coordinate system. : ; ; Where: ; Get the camera optical center coordinates , according to the pupil center coordinates in the camera coordinate system and the camera optical center coordinates , calculate the sight vector , and according to the camera optical center coordinates and the sight vector Set the line of sight equation: ; Where: is the line of sight equation, which means that the line of sight is Position under parameter; is the parameter; ; Set the screen plane equation of the smart screen to: ; Where: , , is the normal vector of the plane, is a constant term, are the coordinates of a point in space on the screen plane; Substitute the line of sight equation into the screen plane equation and solve for the parameters : ; The parameters Substitute into the line of sight equation to calculate the gaze point position : ; Where: ; Obtaining the position of the nose tip gaze point and the mouth gaze point, and inputting the position of the nose tip gaze point, the mouth gaze point and the pupil gaze point into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle; Obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture, and mouth gaze point position into a pre-trained second machine learning model to obtain optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array; The parallax barrier array is dynamically adjusted according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the smart screen display content.
2. The naked eye three-dimensional display method based on the smart screen according to claim 1, characterized in that: The processing of the facial image captured by the infrared camera includes: After filtering the noise of the face image, grayscale processing is performed to obtain a grayscale image; Obtain a pre-stored pupil template image, set the step size to 1, place the pupil template image on the grayscale image through a sliding window method to perform a cross-correlation calculation to obtain the similarity of each overlapping window on the grayscale image, and obtain Q similarities, where Q is an integer greater than zero; Sort the Q similarities from large to small according to the numerical value, and mark the overlapping window corresponding to the first similarity in the sort as the pupil area; Gaussian blur is performed on the grayscale image to highlight the pupil area, and the circular boundary of the pupil is determined using Hough transform, and the center coordinates of the circular boundary are obtained, and the center coordinates are marked as the pupil center coordinates in the image coordinate system; wherein the pupil center coordinates include the left pupil center coordinates and the right pupil center coordinates.
3. The naked eye three-dimensional display method based on the smart screen according to claim 2, characterized in that: The processing of the facial image captured by the infrared camera also includes: Gaussian blur is performed on the grayscale image obtained after filtering the noise of the face image; Load the pre-trained face detection model in the Dlib library, input the Gaussian blurred grayscale image into the pre-trained face detection model in the Dlib library, and obtain the face boundary area; Load the 68-point facial feature point detection model of the Dlib library, input the face boundary area in the form of an image into the 68-point facial feature point detection model of the Dlib library, and obtain the coordinates of U facial feature points, where U is an integer greater than zero; The coordinates of the pupil feature point among the U facial feature points are extracted, and the coordinates of the pupil feature point are marked as the pupil center coordinates in the image coordinate system.
4. The naked eye three-dimensional display method based on the smart screen according to claim 3 is characterized in that: The training logic of the pre-trained first machine learning model is as follows: Acquire historical head posture training data, and divide the historical head posture training data into a head posture training set and a head posture test set; the historical head posture training data includes head posture feature data and its corresponding head posture; The head posture feature data includes the nose tip gaze point position, the mouth gaze point position and the pupil gaze point position; Constructing a first regression network, using the head posture feature data in the head posture training set as input data in the first regression network, and using the head posture in the head posture training set as output data in the first regression network, training the first regression network, and obtaining an initial first regression network; The initial first regression network is model verified using the head posture test set, and the initial first regression network that is less than or equal to a preset first test error threshold is output as the first machine learning model.
5. The naked eye three-dimensional display method based on the smart screen according to claim 4, characterized in that: The training logic of the pre-trained second machine learning model is as follows: Acquire historical adjustment parameter training data, and divide the historical adjustment parameter training data into an adjustment parameter training set and an adjustment parameter test set; the historical adjustment parameter training data includes adjustment parameter feature data and its corresponding optimal adjustment parameter; Wherein, the adjustment parameter characteristic data includes viewing distance, light intensity, head posture and mouth gaze point position; Constructing a second regression network, using the adjustment parameter feature data in the adjustment parameter training set as input data of the second regression network, and using the best adjustment parameter in the adjustment parameter training set as output data of the second regression network, training the second regression network, and obtaining an initial second regression network; The initial second regression network is model verified using the adjusted parameter test set, and the initial second regression network that is less than or equal to a preset second test error threshold is output as the second machine learning model.
6. The naked eye three-dimensional display method based on the smart screen according to claim 5, characterized in that: The best adjustment parameters in the historical adjustment parameter training data are obtained by optimizing using a genetic algorithm; The logic of using genetic algorithm to obtain the best adjustment parameters is as follows: a1: Initialize the population: randomly generate an original population, wherein the original population contains Y individuals, each of which represents a set of spacing and angles of a parallax barrier array, and Y is an integer greater than zero; a2: Fitness evaluation: Under each individual, obtain the 3D picture clarity and stereoscopic disparity of the content displayed on the smart screen; input the 3D picture clarity and stereoscopic disparity into the pre-built fitness function to calculate the fitness of each individual; a3: Selection: Use the roulette method to select two individuals with high fitness in the original population as the father and mother; a4: Crossover: Perform crossover operation on the father and mother to produce new individuals; a5: Mutation: Perform mutation operation on the new individuals to obtain E new individuals, combine the E new individuals into a new population, replace the original population with the new population, and return to step a2; a6: Repeat steps a2 to a5 above until the fitness of the individuals in the original population or the new population is greater than or equal to the preset fitness threshold, or the number of iterations is greater than or equal to the preset maximum number of iterations threshold, and output the spacing and angle of the parallax barrier array represented by the corresponding individuals as the optimal adjustment parameters to obtain the optimal spacing and optimal angle of the parallax barrier array.
7. The naked eye three-dimensional display method based on the smart screen according to claim 6, characterized in that: The calculation formula of the pre-constructed fitness function is: ; For fitness, For 3D picture clarity, is the reference value of clarity, is the stereo disparity, is the reference value of stereo disparity.
8. A naked eye three-dimensional display system based on a smart screen, characterized in that: include: A data acquisition module is used to process the facial image captured by the infrared camera to locate the pupil center coordinates in the image coordinate system, and transform the pupil center coordinates in the image coordinate system through a geometric transformation algorithm to obtain the pupil gaze point position on the smart screen; The pupil fixation point positions include a left pupil fixation point position and a right pupil fixation point position; The converting of the pupil center coordinates in the image coordinate system includes: Calibrate the infrared camera to obtain the camera internal parameters; the internal parameters include focal length and the image optical center coordinates ; Extract the pupil center coordinates in the pupil image coordinate system , through the internal parameter matrix The inverse transformation is used to obtain the pupil center coordinates in the camera coordinate system. : ; ; Where: ; Get the camera optical center coordinates , according to the pupil center coordinates in the camera coordinate system and the camera optical center coordinates , calculate the sight vector , and according to the camera optical center coordinates and the sight vector Set the line of sight equation: ; Where: is the line of sight equation, which means that the line of sight is Position under parameter; is the parameter; ; Set the screen plane equation of the smart screen to: ; Where: , , is the normal vector of the plane, is a constant term, are the coordinates of a point in space on the screen plane; Substitute the line of sight equation into the screen plane equation and solve for the parameters : ; The parameters Substitute into the line of sight equation to calculate the gaze point position : ; Where: ; A posture determination module, used to obtain the position of the nose tip gaze point and the mouth gaze point, and input the position of the nose tip gaze point, the mouth gaze point and the pupil gaze point into a pre-trained first machine learning model to obtain the user's head posture; the head posture includes the head pitch angle, yaw angle and roll angle; An adjustment parameter acquisition module is used to obtain the viewing distance from the user to the smart screen and the light intensity of the external environment, and input the viewing distance, light intensity, head posture and mouth gaze point position into a pre-trained second machine learning model to obtain the optimal adjustment parameters of the parallax barrier array; the optimal adjustment parameters include the optimal spacing and optimal angle of the parallax barrier array; The stereoscopic display control module is used to dynamically adjust the parallax barrier array according to the optimal adjustment parameters to achieve continuous multi-angle 3D display of the smart screen display content.
Citation Information
Patent Citations
Method and system for realizing naked eye 3D advertisement on armrest display terminal
CN115933217A
Pupil dynamic tracking method and system based on naked eye 3D
CN116723308A
