A display control method, device, terminal equipment and storage medium
By extracting the gaze area image of historical video frames, calculating the similarity and change rate, identifying the target object of interest and predicting the future gaze area, the problem of brightness adjustment hysteresis in the existing technology is solved, and more accurate and timely brightness adjustment is achieved. , which improves the user experience.
Patent Information
- Application Number
- CN202410982253.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-22
AI Technical Summary
In the existing technology, brightness adjustment based on the gaze area has hysteresis. Especially in scenes where the gaze area changes frequently, the brightness cannot be adjusted in time, affecting the user's viewing experience.
By obtaining the gaze area image of historical video frames, calculating the similarity and change rate, identifying the target object of interest, predicting the user's future gaze area, and adjusting the brightness in advance to ensure that the brightness of the non-gaze area is lower than the brightness of the gaze area.
It improves the accuracy and timeliness of brightness adjustment, alleviates the lag problem, and improves the user's viewing experience.
Smart Images

Figure CN118519600B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a display control method, device, terminal equipment and storage medium. Background Art
[0002] The power consumption of electronic devices during use is closely related to the power consumption of their display devices. The power consumption of the display device accounts for nearly 40% of the total power consumption of electronic devices. Therefore, how to effectively reduce the power consumption of the display device has become an important issue.
[0003] The prior art has a solution for adjusting brightness based on the user's gaze area, and the specific approach is: collect the position information of the user's eyes when viewing the display device screen, determine the user's gaze area on the screen based on the position information, and adjust the brightness of the gaze area and the brightness of the non-gaze area separately. This can reduce the brightness of the non-gaze area to save energy on the one hand, and ensure the brightness of the user's gaze area on the screen on the other hand, without reducing the user's viewing experience.
[0004] However, in the above solution, it is necessary to determine the current user's gaze area after the picture is displayed, and then adjust the brightness, which leads to a lag in the brightness adjustment. In some scenes where the gaze area changes frequently, it is easy to cause the brightness adjustment to be untimely, affecting the user's viewing experience. For example, in the scene of playing a table tennis match, the user's gaze area will change back and forth quickly with the movement trajectory of the table tennis ball. The solution using the existing technology is easy to cause inaccurate brightness adjustment and fail to achieve the original effect. Summary of the invention
[0005] The embodiments of the present invention provide a control method, an apparatus, a terminal device and a storage medium for a display, which can alleviate the hysteresis in the brightness adjustment method based on the gaze area in the prior art.
[0006] An embodiment of the present invention provides a method for controlling a display, comprising: acquiring a plurality of historical video frames played by the display, and extracting an image of each gaze area according to a gaze area of a user in each historical video frame, to obtain a plurality of gaze area images;
[0007] Calculate the similarity between each pair of adjacent fixation area images, and calculate the change rate between each adjacent similarity;
[0008] In the case of determining the similarity without mutation according to the change rate, identifying the objects in all the gaze area images to obtain a plurality of first objects, and counting the number of occurrences of each first object and the completeness of each occurrence;
[0009] Determine the target object of interest according to the number of times each first object appears and the completeness of each appearance;
[0010] Predicting a user's predicted gaze area in the next video frame according to a position of the target attention object in the next video frame that has not been played;
[0011] Setting the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determining the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value;
[0012] According to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area, the display is controlled to play the next video frame.
[0013] Furthermore, it also includes, when determining the similarity with a sudden change according to the change rate, taking the next frame of the fixation area image corresponding to the similarity with the last sudden change as the starting fixation area image;
[0014] The last frame of fixation area image is used as the termination fixation area image;
[0015] Identify the objects in the starting fixation area image, the ending fixation area image, and the fixation area image between the two, determine a number of second objects, and count the number of times each second object appears and the completeness of each appearance;
[0016] The target object of interest is determined according to the number of times each second object appears and the completeness of each appearance.
[0017] Furthermore, it also includes, when it is determined according to the change rate that there is a sudden change in similarity, taking a previous frame of the gaze area image corresponding to the last sudden change in similarity as the first gaze area image, and taking a subsequent frame of the gaze area image corresponding thereto as the second gaze area image;
[0018] Comparing the objects in the first gaze area image with those in the second gaze area image to determine an object to be focused on; wherein the object to be focused on is an object that does not appear in the first gaze area image but appears in the second gaze area image;
[0019] If there is only one pending object of interest, the pending object of interest is used as the target object of interest; if there are multiple pending objects of interest, the completeness of each pending object of interest is calculated, and the pending object of interest with the highest completeness is used as the target object of interest.
[0020] Further, determining the target object of interest according to the number of occurrences of each first object and the completeness of each occurrence includes:
[0021] For each first object, determine a corresponding weight according to the completeness, calculate the attention score of each appearance of the first object according to the determined weight, and then calculate the total attention score of the first object according to the attention score of each appearance of the first object;
[0022] The total attention scores of the first objects are compared, and the first object with the highest total attention score is used as the target attention object.
[0023] Furthermore, the similarity between two adjacent fixation area images is calculated in the following way:
[0024] Extract the gray value of each pixel in each gaze area image, the row number of each pixel in the image, and the column number of each pixel in the image;
[0025] A three-dimensional coordinate system is constructed with the gray value of the pixel as the Z axis, the number of rows of the pixel in the image as the X axis, and the number of columns of the pixel in the image as the Y axis;
[0026] Projecting the pixel points of each gaze area image into the three-dimensional coordinate system;
[0027] The overlap rate of the pixels of the two fixation area images in the three-dimensional coordinate system is calculated, and the similarity between the two fixation area images is determined according to the overlap rate.
[0028] Further, setting the brightness value of the predicted gaze area in the next video frame to a first brightness value includes:
[0029] Detect the light intensity of the external environment and the vertical distance between the user and the display;
[0030] Calculating, according to the light intensity and the vertical distance, a brightness value for keeping the user's pupil at a normal size;
[0031] The calculated brightness value is used as the first brightness value.
[0032] Further, determining the brightness value of the non-predicted fixation area in the next video frame according to the first brightness value includes:
[0033] The pixels in the non-predicted fixation area are used as pixels to be processed;
[0034] For each pixel to be processed, the pixel closest to it in the predicted gaze area is used as the reference point;
[0035] Calculate the distance between the pixel to be processed and its corresponding reference point to obtain a first distance;
[0036] Project the reference point vertically onto a first plane to obtain a projection point; wherein the first plane is a plane parallel to the display screen and where the user's eyes are located;
[0037] Calculate the distance from the pixel to be processed to the projection point according to the vertical distance and the first distance to obtain a second distance;
[0038] Determine a total brightness attenuation value according to the second distance and the brightness attenuation value within the unit distance;
[0039] The brightness value of the pixel to be processed is calculated according to the first brightness value and the total brightness attenuation value.
[0040] Based on the above method embodiment, the present invention provides a corresponding device embodiment;
[0041] An embodiment of the present invention provides a control device for a display, comprising: a gaze area image determination module, a change rate determination module, a first object determination module, a target attention object determination module, a predicted gaze area determination module, a brightness determination module, and a display module;
[0042] The gaze area image determination module is used to obtain a number of historical video frames that have been played by the display, and extract the image of each gaze area according to the gaze area of the user in each historical video frame to obtain a number of gaze area images;
[0043] The change rate determination module is used to calculate the similarities between each pair of adjacent gaze area images, and calculate the change rate between each adjacent similarity;
[0044] The first object determination module, in the case of determining the similarity without mutation according to the change rate, identifies the objects in all the gaze area images to obtain a plurality of first objects, and counts the number of occurrences of each first object and the completeness of each occurrence;
[0045] The target object of interest determination module is used to determine the target object of interest according to the number of occurrences of each first object and the completeness of each occurrence;
[0046] The predicted gaze area determination module is used to predict the user's predicted gaze area in the next video frame according to the position of the target attention object in the next video frame that has not been played;
[0047] The brightness determination module is used to set the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determine the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value;
[0048] The display module is used to control the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area.
[0049] Based on the above method embodiment, the present invention provides another embodiment;
[0050] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the display control method provided by any one of the above method embodiments of the present application.
[0051] Based on the method embodiment of the present invention, another embodiment is provided:
[0052] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the display control method provided by any one of the above-mentioned method embodiments of the present invention.
[0053] The following beneficial effects are achieved by implementing the embodiments of the present invention:
[0054] The embodiment of the present invention provides a control method, device, terminal device and storage medium of a display. The method extracts images of each gaze area according to the gaze area of the user in each played historical video frame to obtain a plurality of gaze area images; determines the target object of the user's attention based on each gaze area image; predicts the predicted gaze area of the user in the next video frame based on the position of the target object of attention in the next video frame that has not been played; then sets the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area based on the predicted gaze area, and finally controls the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area. Compared with the prior art, the scheme of the present invention can predict the user's gaze area in advance based on the target object of attention of the user before the screen is displayed, and then adjust the brightness in advance before the screen is displayed, so as to alleviate the hysteresis problem in the brightness adjustment method based on the gaze area in the prior art. In addition, in the process of determining the target object of attention, the present invention calculates the similarity between each adjacent gaze area image and the change rate between each adjacent similarity; whether the change rate changes suddenly, to determine whether the target object of attention of the user changes during the viewing process, thereby improving the accuracy of determining the target object of attention, and thus improving the accuracy of brightness adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flowchart of a display fault analysis method provided by an embodiment of the present invention.
[0056] Figure 2 It is a schematic diagram of the principle of second distance calculation provided by an embodiment of the present invention.
[0057] Figure 3 It is a structural schematic diagram of a control device for a display provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] 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.
[0059] See also Figure 1 , is a flow chart of a method for controlling a display provided by an embodiment of the present invention, comprising:
[0060] Step S1: obtaining a number of historical video frames played by the display, and extracting images of each gaze area according to the gaze area of the user in each historical video frame to obtain a number of gaze area images;
[0061] Specifically, before accurately playing the next unplayed video frame, first extract the user's gaze area on the screen when watching several historical video frames that have been played within a period of time (for example, within 60 seconds), and then capture the picture corresponding to the gaze area to obtain the above-mentioned several gaze area images.
[0062] It should be noted that how to determine the gaze area on the screen when the user is watching a video can be determined using the existing technology, which will not be described in detail here.
[0063] Step S2: Calculate the similarity between each pair of adjacent gaze area images, and calculate the change rate between each adjacent similarity;
[0064] Specifically, in actual scenes, the object that the user is paying attention to may shift. For example, in a 30-second video, the user is paying attention to object A in the first 15 seconds, but a new object B appears in the 16th second. At this time, the user's attention may be attracted by object B, and the object of attention will shift from object A to object B. At the same time, the image content of the focus area will change significantly, which is obviously different from the image before the focus object shifts. Based on this feature, the present invention calculates the similarity between each adjacent gaze area image and calculates the change rate between each adjacent similarity. Subsequently, the change rate between each adjacent similarity can be used to determine whether the adjacent gaze area images have changed significantly, so as to determine whether the object that the user is paying attention to has shifted. If the change rate exceeds the preset value, it is determined that the similarity has mutated. If the similarity has mutated, it means that there has been an obvious change between the two frames of gaze area images corresponding to the mutated similarity, and the object that the user is paying attention to has shifted.
[0065] It should be noted that the above preset values can be compared according to actual conditions.
[0066] In a preferred embodiment, the similarity between two adjacent fixation area images is calculated in the following manner:
[0067] Extract the gray value of each pixel in each gaze area image, the row number of each pixel in the image, and the column number of each pixel in the image;
[0068] A three-dimensional coordinate system is constructed with the gray value of the pixel as the Z axis, the number of rows of the pixel in the image as the X axis, and the number of columns of the pixel in the image as the Y axis;
[0069] Projecting the pixel points of each gaze area image into a three-dimensional coordinate system;
[0070] The overlap ratio of the pixels of the two fixation area images in the three-dimensional coordinate system is calculated, and the similarity between the two fixation area images is determined according to the overlap ratio.
[0071] Specifically, in this embodiment, by constructing a three-dimensional coordinate system, the pixel points in two adjacent gaze area images are projected into the three-dimensional coordinate system according to the grayscale values of the pixel points, and then the number of overlapping pixel points and the total number of pixel points are counted, and then the ratio is calculated to obtain the overlap rate; the higher the overlap rate, the more identical pixels there are in the two gaze area images, and the more similar the two gaze area images are, and vice versa, the more dissimilar the two gaze area images are, and the similarity between the two gaze area images is ultimately determined by the overlap rate.
[0072] Step S3: in the case of determining the similarity without mutation according to the change rate, identifying the objects in all the gaze area images to obtain a number of first objects, and counting the number of occurrences of each first object and the completeness of each occurrence;
[0073] Specifically, if the rate of change does not exceed the preset value, it means that the similarity between the images of each adjacent region is maintained at a stable level, and there is no sudden change in similarity. In this case, it means that the content of the images of each adjacent region has not changed much, and thus the object of the user's attention has not changed. At this time, the object of the user's attention can be determined based on all the gaze area images. Therefore, when it is determined that there is no sudden change in similarity based on the rate of change, the objects of all the gaze area images are identified, and then the number of occurrences of each object and the completeness of the occurrence are counted to provide data support for the subsequent determination of the target attention object.
[0074] It should be noted that the above-mentioned objects can be any one or a combination of the following: people, objects, animals and plants;
[0075] Optionally, in the present invention, each object in the image may be identified by color clustering, or the object in the image may be identified by a neural network model;
[0076] If a neural network approach is used, pictures of various objects from various angles can be collected in advance, and the names of the objects can be used as labels to obtain training samples. The training samples are input into the neural network model. The neural network model predicts the object name corresponding to each image and compares it with the actual object name of each image. The loss function is adjusted based on the comparison results. After repeated training until the loss function converges, a neural network model that can recognize objects can be obtained.
[0077] After identifying the object in the image, you can use edge detection algorithms (such as the Canny operator) to extract the boundaries of the detected object. Edge extraction can separate the outline of the object from the image. Then, the overlap between the outline of the object and its bounding box is calculated to determine the integrity of the object.
[0078] It should be noted that there are mature existing technologies for identifying objects in images and identifying the completeness of objects. Based on the existing technologies, the objects present in the fixation area image can be determined, and then the number of occurrences of each object and the completeness of each occurrence can be determined.
[0079] Step S4: determining the target object of interest according to the number of occurrences of each first object and the completeness of each occurrence;
[0080] In a preferred embodiment, for each first object, a corresponding weight is determined according to the completeness, and the attention score of each appearance of the first object is calculated according to the determined weight, and then the total attention score of the first object is calculated according to the attention score of each appearance of the first object;
[0081] The total attention scores of the first objects are compared, and the first object with the highest total attention score is used as the target attention object.
[0082] Specifically, in actual scenarios, the more attention the user pays to an object, the more times it appears in the gaze area and the higher its completeness. Then, the attention score for each appearance can be determined according to the completeness of the first object each time it appears. If the first object appears completely (that is, the first object in the attention area image is complete), the attention score for that appearance is recorded as 1. If the first object appears incompletely (that is, the first object in the attention area image is incomplete), a corresponding weight is assigned according to the completeness and then multiplied by 1 to obtain the corresponding attention score. For example, if the completeness of the first object is 50% when it appears a certain time, the corresponding weight is 0.5 at this time, and the attention score for that appearance is 0.5. If the completeness of the first object is 30% when it appears a certain time, the corresponding weight is 0.3 at this time, and the attention score for that appearance is 0.3. According to the above method, the number of appearances of each first object and the completeness of each appearance are counted, that is, the attention score for each appearance of the first object, and then all the attention scores of each first object are added together to obtain the total attention score.
[0083] Assume that there are three first objects, A, B and C; object A appears 5 times (i.e., A appears in 5 gaze area images), and the completeness of each appearance is 100%, 70%, 80%, 90%, and 100% respectively. Then, the attention score of each appearance of the first object A is 1, 0.7, 0.8, 0.9, and 1 respectively; the total attention score of the first attention object A is 1+0.7+0.8+0.9+1=4.4; similarly, if the total attention score of the first object C is 4 and the total attention score of the first object C is 5 calculated according to the above method; then the first object C is regarded as the object of user attention, that is, the above-mentioned target attention object.
[0084] In an optional embodiment, the control method of the display further includes: when determining the similarity with a sudden change according to the change rate, taking the next frame of the gaze area image corresponding to the similarity with the last sudden change as the starting gaze area image; taking the last frame of the gaze area image as the ending gaze area image;
[0085] The objects in the starting fixation area image, the ending fixation area image and the fixation area image between the two are identified to determine a number of second objects, and the number of times each second object appears and the completeness of each appearance are counted; the target focus object is determined according to the number of times each second object appears and the completeness of each appearance.
[0086] Specifically, when the rate of change exceeds the preset value, it means that there is a sudden change in similarity, which means that the object of interest of the user has shifted during the viewing of the historical video frame. If there are multiple sudden changes in similarity, it means that the object of interest has shifted multiple times. The last sudden change in similarity represents the last shift in the object of interest. After the object of interest is shifted, the previous video frame is no longer applicable. If the target object of interest is determined based on all the gaze area images at this time, it is easy to cause the target object of interest to be selected incorrectly. Therefore, in this embodiment of the present invention, when there is a sudden change in similarity, the gaze area image of the next frame corresponding to the last sudden change in similarity is used as the starting gaze area image; then the gaze area image corresponding to the last historical video frame is used as the ending gaze area image; based on the starting gaze area image, the ending gaze area image and the gaze area image between the two, the number of occurrences of each object in the image and the degree of completion are calculated according to the above method, and then the target object of interest is determined.
[0087] Through this embodiment, it is possible to detect the situation where the target object of attention of the user is shifted during the viewing process, and to promptly determine the final target object of attention after the shift, thereby improving the accuracy of the target object of attention selection.
[0088] In another optional embodiment, when the similarity of the mutation is determined based on the rate of change, the previous frame of the gaze area image corresponding to the similarity of the last mutation is used as the first gaze area image, and the corresponding next frame of the gaze area image is used as the second gaze area image; the objects in the first gaze area image are compared with those in the second gaze area image to determine the object to be paid attention to; wherein the object to be paid attention to is: an object that does not appear in the first gaze area image but appears in the second gaze area image; if there is only one object to be determined, the object to be determined is used as the target object to be paid attention to; if there are multiple objects to be determined, the completeness of each object to be determined is calculated, and the object to be determined with the highest completeness is used as the target object to be paid attention to.
[0089] Similar to the previous optional embodiment, when the rate of change exceeds the preset value, it indicates that there is a sudden change in similarity, which means that the object of interest of the user has shifted during the viewing of the historical video frame. If there are multiple sudden changes in similarity, it means that the object of interest has shifted multiple times. The last sudden change in similarity represents the last shift of the object of interest. After the object of interest is shifted, new objects often appear in the changed gaze area image. Therefore, in this embodiment, the objects in the first gaze area image and the second gaze area image are compared to select the newly appeared object, and the object with the highest completeness among the newly appeared objects is used as the above-mentioned target object of interest. This embodiment can also determine the target object of interest after the shift when the target object of interest shifts, and requires less computational data than the previous embodiment, which is more efficient.
[0090] Step S5: predicting the user's predicted gaze area in the next video frame according to the position of the target attention object in the next video frame that has not been played;
[0091] Specifically, after the target object is determined in step S4, the position of the target object in the next unplayed video frame can be identified based on the pixel features (such as RGB values) of the target object before playing the next frame of video, and the area corresponding to the position is used as the predicted gaze area.
[0092] Step S6: setting the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determining the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value;
[0093] In a preferred embodiment, setting the brightness value of the predicted gaze area in the next video frame to the first brightness value includes:
[0094] Detect the light intensity of the external environment and the current vertical distance between the user and the display; calculate the brightness value when the user's pupil maintains a normal size according to the light intensity and the vertical distance; and use the calculated brightness value as the first brightness value.
[0095] Specifically, the prior art has a solution for adjusting the brightness according to the ambient light intensity, but the ambient light intensity is not the only factor that affects the user's requirements for the display brightness. Under the same ambient light intensity, if the user is relatively close to the display, then the display brightness needs to be lowered. If the user is relatively far away from the display, then the display brightness needs to be increased. The change in the human eye pupil is a reference for measuring whether the current brightness is suitable for the user. When the brightness is low, the user's pupil will dilate to receive more light. When the brightness is high, the user's pupil will contract to block some of the excess light. For this reason, the present invention pre-collects the brightness corresponding to the normal pupil at different distances and different light intensities. With the screen brightness, the vertical distance between the user and the display, and the light intensity of the external environment as the three dimensions, multiple groups of data corresponding to the normal pupil state are collected; each group of data includes: screen brightness, vertical distance between the user and the display, and the light intensity of the external environment;
[0096] Each data point in the data set is then represented as a point in a three-dimensional coordinate system and positioned according to the values of the data point in three dimensions. Scatter plots can be drawn using software tools such as Python's Matplotlib library or drawing software.
[0097] According to the distribution pattern and trend of the data points in the scatter plot, a polynomial regression model is obtained by data fitting. This polynomial regression model represents the relationship between the screen brightness, the vertical distance between the user and the display, and the light intensity of the external environment when the user's pupil is normal (i.e., neither pupil dilation nor pupil contraction occurs).
[0098] Furthermore, when setting the brightness value of the predicted gaze area, the light intensity of the current external environment and the current vertical distance between the user and the display are collected and substituted into the above polynomial regression model to calculate the brightness value that keeps the user's pupil at a normal size; this brightness value is used as the above first brightness value.
[0099] The first brightness value determined in this way can make the user feel more comfortable and enhance the user's viewing experience.
[0100] It should be noted that in the present invention, when the user is facing the display, the distance between the plane where the user's eyes are located and the display screen is taken as the vertical distance between the user and the display;
[0101] Optionally, in other preferred embodiments, the first brightness value can directly adopt a preset fixed brightness value, and the brightness values of other non-predicted gaze areas can adopt another preset fixed brightness value, and the fixed brightness value corresponding to the predicted gaze area is greater than the fixed brightness value corresponding to the non-predicted gaze area.
[0102] In a preferred embodiment, determining the brightness value of the non-predicted fixation area in the next video frame according to the first brightness value includes:
[0103] The pixels in the non-predicted fixation area are used as pixels to be processed;
[0104] For each pixel to be processed, the pixel closest to it in the predicted gaze area is used as the reference point;
[0105] Calculate the distance between the pixel to be processed and its corresponding reference point to obtain a first distance;
[0106] Project the reference point vertically onto a first plane to obtain a projection point; wherein the first plane is parallel to the screen of the display and is the plane where the user's eyes are located;
[0107] Calculate the distance from the pixel to be processed to the projection point according to the vertical distance and the first distance to obtain a second distance;
[0108] Determine a total brightness attenuation value according to the second distance and the brightness attenuation value within the unit distance;
[0109] The brightness value of the pixel to be processed is calculated according to the first brightness value and the total brightness attenuation value.
[0110] Indicatively, Figure 2 As shown, the next video frame 1 includes a predicted gaze area 2 and a non-predicted gaze area 3, a pixel point i in the non-predicted gaze area, and a pixel point j in the predicted gaze area at a distance from point i. At this time, point j is the reference point, and the line between j and i is the first distance mentioned above;
[0111] The first plane 4 is the plane where the user's eyes are located. When the user is facing the display, the first plane is parallel to the display. At this time, projecting point j onto the first plane can obtain projection point n. The distance between projection point n and j is the vertical distance from the user to the display. The line between projection point n and pixel point i represents the above-mentioned second distance. The second distance can be calculated based on the vertical distance and the first distance.
[0112] Then, according to the attenuation value of the brightness within the unit distance and the distance between the projection point n and the pixel point i, the total brightness attenuation value can be calculated and determined, and then the brightness value of the pixel point i can be obtained by subtracting the total brightness attenuation value from the first brightness value;
[0113] It should be noted that a minimum brightness value can be set in advance, the difference between the first brightness and the minimum brightness value can be calculated, and the maximum value of the difference in the second distance corresponding to the pixels in each non-prediction area can be obtained to obtain the attenuation value of the brightness within the unit distance. In addition, the attenuation value of the brightness within the unit distance can also be a fixed value that is independent of the first brightness value and the second distance, and can be set in advance by the user based on experience.
[0114] Also in this embodiment of the present invention, the brightness values of all pixels in the non-prediction area are not set to a consistent brightness value. This is to avoid an abrupt change in brightness between the non-prediction area and the prediction area, which may cause discomfort to the user and affect the user experience. By calculating the second distance, the brightness value of the pixel in the non-prediction area can be reduced by gradient starting from the edge of the prediction area according to the length of the second distance and the attenuation value of the brightness within the unit distance, so as to avoid an abrupt change in brightness. In addition, in actual scenes, the distance between the user and the screen will affect the user's demand for brightness, and the second distance can characterize the distance relationship between the pixel in the non-prediction area and the user and the pixel in the closest prediction gaze area. The brightness is adjusted by gradient using the second distance, which takes into account the distance factor between the user and the display, and the distance factor between the pixel in the non-prediction area and the prediction area, so that the regulation is more reasonable.
[0115] Step S7: Control the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area.
[0116] Specifically, after determining the brightness value of the predicted gaze area and the brightness value of each pixel in the non-predicted gaze area, the pixels in the predicted gaze area and the non-predicted gaze area are directly controlled and displayed according to the corresponding brightness values, so that the brightness adjustment is completed before the next video frame is played, solving the problem of brightness adjustment lag.
[0117] Based on the above method embodiment, a corresponding device embodiment is provided;
[0118] like Figure 3 As shown, another embodiment of the present invention provides a control device for a display, comprising: a gaze area image determination module, a change rate determination module, a first object determination module, a target attention object determination module, a predicted gaze area determination module, a brightness determination module and a display module;
[0119] A gaze area image determination module is used to obtain a number of historical video frames that have been played by the display, and extract images of each gaze area according to the gaze area of the user in each historical video frame to obtain a number of gaze area images;
[0120] A change rate determination module is used to calculate the similarity between each adjacent gaze area image and calculate the change rate between each adjacent similarity;
[0121] A first object determination module, in the case of determining the similarity without mutation according to the change rate, identifies the objects in all the gaze area images to obtain a plurality of first objects, and counts the number of occurrences of each first object and the completeness of each occurrence;
[0122] A target attention object determination module, used to determine the target attention object according to the number of occurrences of each first object and the completeness of each occurrence;
[0123] A predicted gaze area determination module is used to predict the user's predicted gaze area in the next video frame according to the position of the target attention object in the next video frame that has not been played;
[0124] a brightness determination module, configured to set the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determine the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value;
[0125] The display module is used to control the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area.
[0126] It can be understood that the above-mentioned device item embodiments correspond to the method item embodiments of the present invention, and can implement the display control method provided by any one of the above-mentioned method item embodiments of the present invention.
[0127] It should be noted that the device embodiments described above are merely schematic, wherein the units / modules described as separate components may or may not be physically separated, and the components displayed as units / modules may or may not be physical units / modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work. The schematic diagram is only an example of a control device for a display, and does not constitute a limitation on the control device for the display, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0128] Based on the above method embodiment, another embodiment is provided;
[0129] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the display control method provided by any one of the above method embodiments of the present invention.
[0130] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in a memory and executed by a processor to implement the present invention. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0131] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that, for example, the terminal device may also include an input / output device, a network access device, a bus, etc.
[0132] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0133] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound display function, an image display function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0134] Based on the above-mentioned embodiments of the invention, a corresponding storage medium embodiment is provided;
[0135] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the display control method provided by any one of the above method embodiments of the present invention.
[0136] Wherein, the storage medium is a computer storage medium, and the module / unit integrated in the device / terminal equipment can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. Computer-readable media can include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0137] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for controlling a display, characterized in that: include: Acquire several historical video frames played by the display, and extract images of each gaze area according to the gaze area of the user in each historical video frame to obtain several gaze area images; Calculate the similarity between each pair of adjacent fixation area images, and calculate the change rate between each adjacent similarity; In the case of determining the similarity without mutation according to the change rate, identifying the objects in all the gaze area images to obtain a plurality of first objects, and counting the number of occurrences of each first object and the completeness of each occurrence; Determine the target object of interest according to the number of times each first object appears and the completeness of each appearance; Predicting a user's predicted gaze area in the next video frame according to a position of the target attention object in the next video frame that has not been played; Setting the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determining the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value; Controlling the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area; The step of setting the brightness value of the predicted gaze area in the next video frame to a first brightness value includes: Detect the light intensity of the external environment and the vertical distance between the user and the display; Calculating, according to the light intensity and the vertical distance, a brightness value for keeping the user's pupil at a normal size; Using the calculated brightness value as the first brightness value; The determining, according to the first brightness value, a brightness value of a non-predicted fixation area in a next video frame comprises: The pixels in the non-predicted fixation area are used as pixels to be processed; For each pixel to be processed, the pixel closest to it in the predicted gaze area is used as the reference point; Calculate the distance between the pixel to be processed and its corresponding reference point to obtain a first distance; Project the reference point vertically onto a first plane to obtain a projection point; wherein the first plane is parallel to the screen of the display and is the plane where the user's eyes are located; Calculate the distance from the pixel to be processed to the projection point according to the vertical distance and the first distance to obtain a second distance; Determine a total brightness attenuation value according to the second distance and the brightness attenuation value within the unit distance; The brightness value of the pixel to be processed is calculated according to the first brightness value and the total brightness attenuation value.
2. The display control method according to claim 1, characterized in that: The method further includes, when determining the similarity with a sudden change according to the change rate, taking the next frame of the fixation region image corresponding to the similarity with the last sudden change as the starting fixation region image; The last frame of fixation area image is used as the termination fixation area image; Identify the objects in the starting fixation area image, the ending fixation area image, and the fixation area image between the two, determine a number of second objects, and count the number of times each second object appears and the completeness of each appearance; The target object of interest is determined according to the number of times each second object appears and the completeness of each appearance.
3. The display control method according to claim 1, characterized in that: The method further includes, when it is determined according to the change rate that there is a sudden change in similarity, taking a previous frame of the gaze area image corresponding to the last sudden change in similarity as the first gaze area image and a subsequent frame of the gaze area image corresponding thereto as the second gaze area image; Comparing the objects in the first gaze area image with those in the second gaze area image to determine an object to be focused on; wherein the object to be focused on is an object that does not appear in the first gaze area image but appears in the second gaze area image; If there is only one pending object of interest, the pending object of interest is used as the target object of interest; if there are multiple pending objects of interest, the completeness of each pending object of interest is calculated, and the pending object of interest with the highest completeness is used as the target object of interest.
4. The display control method according to claim 1, characterized in that: According to the number of occurrences of each first object and the completeness of each occurrence, the target object of attention is determined, including: For each first object, determine a corresponding weight according to the completeness, calculate the attention score of each appearance of the first object according to the determined weight, and then calculate the total attention score of the first object according to the attention score of each appearance of the first object; The total attention scores of the first objects are compared, and the first object with the highest total attention score is used as the target attention object.
5. The display control method according to claim 1, characterized in that: The similarity between two adjacent fixation region images is calculated in the following way: Extract the gray value of each pixel in each gaze area image, the row number of each pixel in the image, and the column number of each pixel in the image; A three-dimensional coordinate system is constructed with the gray value of the pixel as the Z axis, the number of rows of the pixel in the image as the X axis, and the number of columns of the pixel in the image as the Y axis; Projecting the pixel points of each gaze area image into the three-dimensional coordinate system; The overlap rate of the pixels of the two fixation area images in the three-dimensional coordinate system is calculated, and the similarity between the two fixation area images is determined according to the overlap rate.
6. A control device for a display, characterized in that: include: A gaze area image determination module, a change rate determination module, a first object determination module, a target attention object determination module, a predicted gaze area determination module, a brightness determination module and a display module; The gaze area image determination module is used to obtain a number of historical video frames that have been played by the display, and extract the image of each gaze area according to the gaze area of the user in each historical video frame to obtain a number of gaze area images; The change rate determination module is used to calculate the similarities between each pair of adjacent gaze area images, and calculate the change rate between each adjacent similarity; The first object determination module, in the case of determining the similarity without mutation according to the change rate, identifies the objects in all the gaze area images to obtain a plurality of first objects, and counts the number of occurrences of each first object and the completeness of each occurrence; The target object of interest determination module is used to determine the target object of interest according to the number of occurrences of each first object and the completeness of each occurrence; The predicted gaze area determination module is used to predict the user's predicted gaze area in the next video frame according to the position of the target attention object in the next video frame that has not been played; The brightness determination module is used to set the brightness value of the predicted gaze area in the next video frame to a first brightness value, and determine the brightness value of the non-predicted gaze area in the next video frame according to the first brightness value, so that the brightness value of the non-predicted gaze area is less than the first brightness value; The display module is used to control the display to play the next video frame according to the brightness value of the predicted gaze area and the brightness value of the non-predicted gaze area; The step of setting the brightness value of the predicted gaze area in the next video frame to a first brightness value includes: Detect the light intensity of the external environment and the vertical distance between the user and the display; Calculating, according to the light intensity and the vertical distance, a brightness value for keeping the user's pupil at a normal size; Using the calculated brightness value as the first brightness value; The determining, according to the first brightness value, a brightness value of a non-predicted fixation area in a next video frame comprises: The pixels in the non-predicted fixation area are used as pixels to be processed; For each pixel to be processed, the pixel closest to it in the predicted gaze area is used as the reference point; Calculate the distance between the pixel to be processed and its corresponding reference point to obtain a first distance; Project the reference point vertically onto a first plane to obtain a projection point; wherein the first plane is parallel to the screen of the display and is the plane where the user's eyes are located; Calculate the distance from the pixel to be processed to the projection point according to the vertical distance and the first distance to obtain a second distance; Determine a total brightness attenuation value according to the second distance and the brightness attenuation value within the unit distance; The brightness value of the pixel to be processed is calculated according to the first brightness value and the total brightness attenuation value.
7. A terminal device, characterized in that: The invention comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the display control method according to any one of claims 1 to 5 when executing the computer program.
8. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the display control method according to any one of claims 1 to 5.
