Display policy determination method and apparatus, storage medium, and electronic device
By calculating the theoretical pixel viewing angle and using display strategies based on the physiological characteristics of human vision, the problem of image quality degradation when low-resolution videos are viewed at close range on high-resolution screens has been solved, achieving distortion-free pixel-level display optimization and intelligent image quality enhancement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
- Filing Date
- 2026-03-09
- Publication Date
- 2026-06-05
AI Technical Summary
When watching low-resolution videos at close range on high-resolution screens such as smart TVs, the image quality deteriorates significantly, resulting in noticeable pixelation, strong visual fatigue and discomfort, and existing technologies lack effective solutions.
By measuring the physical distance between the user and the display components and the size of a single pixel, the theoretical viewing angle of a pixel is calculated. Based on the physiological characteristics of human vision, a display strategy is determined. A non-interpolation pixel-level optimization method is adopted, including integer scaling and background processing, to ensure that each source pixel corresponds to an integer number of physical pixels on the large-screen device.
It effectively reduces visual fatigue, improves image clarity and user comfort, eliminates blur caused by stretching and interpolation, provides intelligent image quality optimization prompts and switching mechanisms, and enhances user experience.
Smart Images

Figure CN122160568A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent display technology, and more specifically, to a method and apparatus for determining a display strategy, a storage medium, and an electronic device. Background Technology
[0002] With the popularization of 4K and 8K ultra-high-definition display technologies, the physical resolution of mainstream large-screen devices (such as 3840x2160) is far higher than the 1080P (1920x1080) or lower resolution video content that exists in a large number of online streaming media. In the traditional living room viewing scenario (viewing distance is usually greater than 2.5 meters), it is still acceptable to stretch low-resolution content to full screen through interpolation algorithms.
[0003] However, in new scenarios where "smart TVs serve as the interaction center," such as when users use the TV at close range (1.0 to 2.0 meters) in bedrooms, gyms, or at desks for fitness training, motion-sensing games, online education, or web browsing, the default full-screen stretching mode of related technologies exposes serious problems: low-resolution images are forcibly magnified onto high-resolution screens, resulting in a sharp drop in pixel density and excessive magnification of each physical pixel. When viewed at close range, the human eye can clearly distinguish pixel grains, jagged edges, and blurry details, causing the image to be rough and severely impaired in clarity. Prolonged viewing can easily cause visual fatigue, dizziness, and other discomfort.
[0004] There is currently no effective solution to the problem of image quality degradation caused by stretching low-resolution images to a high-resolution screen through interpolation algorithms.
[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0006] This application provides a method and apparatus for determining a display strategy, a storage medium, and an electronic device, to at least solve the problem in the related art where low-resolution images are stretched to a high-resolution screen through an interpolation algorithm, resulting in image quality degradation.
[0007] According to one embodiment of this application, a method for determining a display strategy is provided, comprising: determining a physical distance between a target object and a display component of a target device; determining a theoretical pixel viewing angle corresponding to the physical distance by means of the physical distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object; and determining a display strategy for playing video on the target device by means of the theoretical pixel viewing angle.
[0008] According to another embodiment of this application, a display strategy determination device is provided, comprising: a first determination module, configured to determine a physical distance between a target object and a display component of a target device; a second determination module, configured to determine a theoretical pixel viewing angle corresponding to the physical distance by means of the physical distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object; and a third determination module, configured to determine a display strategy for playing video on the target device by means of the theoretical pixel viewing angle.
[0009] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0010] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0011] According to yet another embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0012] This application calculates the theoretical pixel viewing angle corresponding to the physical distance between the target object and the display component of the target device, and the pixel size of a single pixel of the display component. This theoretical pixel viewing angle, which indicates the perceived pixel thickness by the target object, is then used to determine the display strategy for the played video. This enables precise, non-interpolated, distortion-free pixel-level display optimization based on the physiological characteristics of human vision. This effectively reduces visual fatigue and improves image clarity and user comfort of the target device. Therefore, it solves the problem in related technologies where low-resolution images are stretched to a high-resolution screen using interpolation algorithms, resulting in image quality degradation. Attached Figure Description
[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0014] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0015] Figure 1 This is a hardware structure block diagram of a computer device for a method of determining a display strategy according to an embodiment of this application;
[0016] Figure 2 This is a flowchart of a method for determining a display strategy according to an embodiment of this application;
[0017] Figure 3 This is another flowchart of a method for determining a display strategy according to an embodiment of this application;
[0018] Figure 4 This is a geometrical schematic diagram of the theoretical pixel viewing angle of the method for determining the display strategy according to an embodiment of this application;
[0019] Figure 5 This is a schematic diagram of a prompt interface illustrating a method for determining a display strategy according to an embodiment of this application;
[0020] Figure 6 This is a schematic diagram of the display of a video playback using a method for determining a display strategy according to an embodiment of this application;
[0021] Figure 7 This is another display illustration of a video playback method based on an embodiment of the present application for determining a display strategy;
[0022] Figure 8 This is an architecture diagram of a system for determining a display strategy according to an embodiment of this application;
[0023] Figure 9 This is a structural block diagram of a display strategy determination device according to an embodiment of this application. Detailed Implementation
[0024] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0026] The methods and embodiments provided in this application can be executed in a computer device or similar computing device. Taking running on a computer device as an example, Figure 1 This is a hardware structure block diagram of a computer device for a method of determining a display strategy according to an embodiment of this application. Figure 1 As shown, a computer device may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor or programmable logic device) and a memory 104 for storing data are also shown. The computer device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer device described above. For example, the computer device may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0027] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the display strategy determination method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to computer devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0028] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer equipment. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0029] This embodiment provides a method for determining a display strategy, applied to the aforementioned computer device. Figure 2 This is a flowchart of a method for determining a display strategy according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0030] Step S202: Determine the physical distance between the target object and the display component of the target device;
[0031] Optionally, the display device is a high-resolution (e.g., 3840x2160) large-screen device, such as a smart TV or set-top box, and the display component is the screen of the target device. The target object is the user watching the video. The physical distance is the straight-line distance from the user (e.g., the user's eyes) to the surface of the display component. In step S202, a scheme for determining the physical distance between the user and the large-screen device is implemented.
[0032] Step S204: Determine the theoretical pixel viewing angle corresponding to the physical interval distance by using the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object;
[0033] The pixel size of a single pixel can be the physical side length or diagonal length of a single pixel. Step S204 calculates the theoretical viewing angle of a pixel by using the physical interval distance and the pixel size of a single pixel. This converts the user's subjective experience of viewing a single pixel (such as feeling it is blurry or clear) into objective, measurable, calculable, and decision-making physical parameters (i.e., converting it into the theoretical viewing angle of a pixel), thus achieving an objective quantitative assessment of the degree of image clarity degradation in close-up viewing scenarios.
[0034] Step S206: Determine the display strategy of the video playback on the target device based on the theoretical pixel viewing angle.
[0035] In step S206, the display strategy for playing video on the target device is determined by the theoretical pixel viewing angle, which enables the display strategy to realize a paradigm shift from device capability-oriented to user perception-oriented. By quantifying the characteristics of human eye vision, an automated display decision mechanism based on physiological perception model is built for the first time in the field of large-screen display, which significantly improves the clarity and comfort of low-resolution content in close-range viewing scenarios.
[0036] Through the above steps, the theoretical pixel viewing angle corresponding to the physical distance between the target object and the display component of the target device is calculated using the pixel size of a single pixel on the display component. This theoretical pixel viewing angle, which indicates the perceived pixel thickness by the target object, is then used to determine the display strategy for the playing video. This enables precise, non-interpolated, distortion-free pixel-level display optimization based on the physiological characteristics of human vision. This effectively reduces visual fatigue and improves image clarity and user comfort of the target device. Therefore, it solves the problem in related technologies where low-resolution images are stretched to a high-resolution screen using interpolation algorithms, leading to image quality degradation.
[0037] In an exemplary embodiment, determining the physical distance between a target object and a display component of a target device includes at least one of the following: sensing the physical distance between the target object and the display component using a sensor; or determining the physical distance between the target object and the display component using a playback mode selected by the target object.
[0038] The sensors are integrated into a preset device, which includes: a target device and other devices associated with the target device (such as a remote controller). The aforementioned physical distance can be detected in real time by the sensors. The sensors include at least one of the following: a time-of-flight (ToF) sensor, an infrared sensor, or a camera (the camera, combined with a visual algorithm, determines the physical distance).
[0039] Specifically, the target device can utilize sensors integrated into the target device or its remote control to monitor the physical distance between the target object and the target device in real time. Once the sensor integrated into the remote control detects the physical distance, it can transmit the distance to the target device via a communication module (such as Bluetooth or WiFi) on the remote control. The target device can also provide the target object with multiple playback modes, such as "desktop mode," "fitness mode," and "close-range viewing," each associated with a typical viewing distance value. The viewing distance value associated with the playback mode selected by the target object is used as the physical distance. The target device can also use the physical distance detected by the sensor as primary data, and the viewing distance value associated with the playback mode selected by the target object as calibration data or backup data for the primary data. When the viewing distance value is used as calibration data, the weighted average of the primary data and the calibration data can be used as the final adopted physical distance. The weighting can be set, for example, to 1:1. The line-of-sight value is used as backup data. In cases where sensor malfunction or other factors lead to large errors in the physical distance measured by the sensor, or when there is no measurement value, the line-of-sight value can be directly used as the physical distance for the target device to determine the theoretical pixel viewing angle.
[0040] In an exemplary embodiment, determining the theoretical pixel viewing angle corresponding to the physical spacing distance by means of the physical spacing distance and the pixel size of a single pixel in the display component includes: obtaining the pixel size by means of the physical size of the display component and the first resolution of the display component; and determining the theoretical pixel viewing angle by means of the ratio of the physical spacing distance to the pixel size.
[0041] Optionally, before determining the theoretical pixel viewing angle corresponding to the physical interval distance through the physical interval distance and the pixel size of a single pixel in the display component, the method further includes: obtaining the video source resolution Rs(Ws,Hs) of the video being played, obtaining the screen resolution Rd(Wd,Hd) of the display component of the target device and the physical size of the screen of the display component, wherein the physical size of the screen is typically the screen diagonal size D.
[0042] The pixel size is obtained by using the physical size of the display component and the first resolution of the display component, including: P≈D 0.0254 / sqrt(Wd^2+Hd^2). Where Wd represents the number of physical pixels in the horizontal direction of the screen, Hd represents the number of pixels in the vertical direction of the screen, and P represents the pixel size.
[0043] The theoretical viewable angle of view is then determined by the ratio of the physical spacing distance to the pixel size, including: determining the radian value of the theoretical viewable angle of view by the ratio of the pixel size to the physical spacing distance; converting the radian value into arc minutes using the ratio; and determining the radian value or arc minutes as the theoretical viewable angle of view. In other words, the formula for determining the theoretical viewable angle of view is: θ = 2. arctan(P / (2 In the formula L), θ represents the theoretical viewable angle per pixel, and L represents the physical distance. The calculated unit of θ is radians. For ease of calculation and threshold comparison, θ is usually converted to arcmin: θ(arcmin) ≈ (P / L) (180 / π) 60.
[0044] In an exemplary embodiment, determining the display strategy for a video played on the target device based on the theoretical pixel viewing angle includes: determining the size relationship between the second resolution of the video played and the first resolution of the display component; if the size relationship satisfies a preset condition, determining whether the theoretical pixel viewing angle exceeds a preset threshold; and if the theoretical pixel viewing angle exceeds the preset threshold, determining the display strategy for the video played through a control signal.
[0045] The preset conditions include: the second resolution is less than the product of the scaling factor and the first resolution, and the scaling factor is greater than 0 and less than 1. Specifically, the embodiments of this application have a dual-layer intelligent determination:
[0046] First-level judgment (necessity judgment): Determine whether the video source resolution Rs (equivalent to the second resolution) of the playing video is significantly lower than the screen physical resolution Rd (equivalent to the first resolution). For example, when Ws Hs <K Wd When Hd (K is a scaling factor, such as 0.7 or 0.8) is reached, it is considered necessary to conduct an optimization evaluation.
[0047] The second layer of judgment (sufficiency judgment): If the first layer of judgment is satisfied, then it is determined whether the calculated theoretical pixel viewing angle θ exceeds the preset visual comfort threshold θ_th. This threshold θ_th is set based on human visual acuity and is usually 1.0 to 1.5 arcminutes. When θ > θ_th, it indicates that at the current distance, the pixel graininess has exceeded the range of human eye comfort, and the image quality has deteriorated significantly.
[0048] Control signal generation: The system generates a "suggest / execute display optimization mode" control signal only when both of the above-mentioned judgment conditions are met simultaneously. This ensures that optimization actions are triggered only in the most necessary and effective scenarios. Consequently, the target device can determine its display strategy for the played video based on the control signal.
[0049] In an exemplary embodiment, determining the display strategy for the played video via a control signal includes: generating a prompt interface for the target object via the control signal; upon receiving a first selection operation from the target object on the prompt interface, determining the display strategy for the played video as: displaying the played video according to a default strategy; and upon receiving a second selection operation from the target object on the prompt interface, determining the display strategy for the played video as: displaying the played video according to an optimized strategy.
[0050] The target device generates a non-modal, semi-transparent prompt interface on the screen based on control signals. This prompt interface instructs the user with the following information: "We have detected that you are watching at close range. Switching to 'Original Image Clarity Mode' will provide a better experience," and offers options such as "Optimize Now," "Don't Prompt Now," and "Don't Prompt Again." If the user selects "Don't Prompt Again," the correspondence between the resolution of the currently playing video and the physical distance is added to a whitelist. Therefore, in the above embodiment, the first selection operation is "Optimize Now," and the second selection operation is either "Don't Prompt Now" or "Don't Prompt Again."
[0051] Optionally, displaying the playback video according to an optimization strategy includes: determining a scaling factor of the playback video using the second resolution, and determining an optimal display area of the playback video on the display component using the scaling factor, wherein the scaling factor is an integer; playing the playback video through the optimal display area if the optimal display area covers the display area of the display component; and playing the playback video through the optimal display area if the optimal display area does not cover the display area of the display component, and filling the remaining area.
[0052] The quotient of the first resolution and the second resolution is determined, and this quotient is rounded down to obtain the scaling factor of the video playback. For example, if the calculated quotient is 2.2, then the scaling factor obtained by rounding down is 2. That is, the display strategy of this embodiment is to scale the video playback by an integer multiple. After scaling the video playback according to the scaling ratio (i.e., the scaling factor), the scaled video playback is centered on the screen. The area covered by the centered video playback is the optimal display area. If the optimal display area can cover the display area of the display component (i.e., the size of the scaled video playback is the same as the screen size), then the centered video playback is played directly. If the optimal display area cannot cover the display area of the display component, the uncovered remaining area can be filled. The filling methods include, but are not limited to: solid color (classic black border), Gaussian blur dynamic background (taken from the current video frame), static texture or artistic border (such as cinema velvet, picture frame texture), to improve the overall visual aesthetics while ensuring the core image quality. The above solution achieves interpolation-free proportional scaling, ensuring that each frame of the source image pixel in the video corresponds to an integer number or a fixed number of physical pixels of the display component on the large screen device, thus achieving "precise pixel-to-pixel" display and completely eliminating the blurring caused by stretching interpolation.
[0053] Optionally, the video to be played is displayed according to a default strategy, including: obtaining the whitelist of the target device and the historical playback information of the target object; and displaying the video to be played using the whitelist, the historical playback information, and the physical interval distance.
[0054] In other words, if the user chooses not to optimize the playback of the video, the target device will display the video according to the default strategy. The video can be displayed directly using interpolation stretching, or it can be displayed centered according to the video source resolution. Displaying the video using the whitelist, historical playback information, and physical interval distance includes: determining the number of correspondences related to the physical interval distance in the whitelist, and determining from the historical playback information the first number of times the video is displayed using interpolation stretching and the second number of times it is displayed according to the video source resolution at the physical interval distance; adjusting the first and second counts according to the number of correspondences; if the adjusted first count is greater than the adjusted second count, then the interpolation stretching method is selected for displaying the video; if the adjusted first count is less than the adjusted second count, then the video is displayed according to the video source resolution.
[0055] The adjustment of the first and second counts based on the number of corresponding relationships includes: if the number of corresponding relationships is higher than the target value (e.g., 5), it indicates that the target object's preference is not optimizing the video display within the current physical interval distance, so a lower adjustment coefficient (e.g., 30%) is assigned to the first count, and a higher adjustment coefficient (e.g., 70%) to the second count; if the number of corresponding relationships is lower than or equal to the target value, a higher adjustment coefficient (e.g., 70%) is assigned to the first count, and a lower adjustment coefficient (e.g., 30%) to the second count. The target value and adjustment coefficients are settable. The first and second counts are multiplied by their respective adjustment coefficients to obtain the adjusted first and second counts.
[0056] To better understand the process of determining the above display strategy, the implementation flow of the above display strategy determination method will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.
[0057] The optional embodiments of this application aim to solve two key technical problems existing in current large-screen display technology when playing low-resolution content, especially in scenarios where users view it at close range: 1) Image quality degradation: Full-screen stretching leads to image blurring, strong jagged edges, and obvious pixelation. 2) Insufficient interactive intelligence: The lack of automated and precise image quality optimization prompts and switching mechanisms based on the user's actual viewing environment and human visual characteristics results in a poor user experience.
[0058] Specifically, to address the aforementioned issues, this application provides an optional embodiment of an adaptive optimization method for large-screen video display based on theoretical pixel-perceptible viewing angle (equivalent to the display strategy determination method in the above embodiments) and system. Its core lies in establishing a quantitative bridge from physical parameters to subjective visual perception.
[0059] like Figure 3 As shown, the method includes the following steps:
[0060] S301: Obtain basic parameters.
[0061] Obtain the video source resolution Rs(Ws,Hs) of the currently playing video (equivalent to the playing video in the above embodiment), the physical screen resolution Rd(Wd,Hd) of the large screen device (equivalent to the target device in the above embodiment), and the physical size of the screen (usually the diagonal size D, in inches).
[0062] S302: Viewing distance determined.
[0063] Determine the real-time viewing distance L between the user and the screen. It can be achieved through the integration of any one or more of the following methods: 1) Sensor perception: Use the time-of-flight (ToF) sensor, infrared sensor, or camera vision algorithm integrated on the device or remote control to measure in real time. 2) User scenario selection: Provide preset scenario buttons such as "desktop mode", "fitness mode", "close-range movie viewing", etc., and each scenario is associated with a typical viewing distance value L. 3) Hybrid mode: Based on sensor data mainly, user selection can be used for calibration or backup.
[0064] S303: Calculate the theoretical pixel viewable angle. This step converts objective physical parameters into a quantifiable index perceivable by the human eye. It includes: 1) Calculate the screen pixel pitch P: According to the physical size and resolution of the screen, calculate the physical size of a single pixel. Preferably, calculate the physical diagonal length P of the pixel (unit: meter). The calculation formula can be: P≈D 0.0254 / sqrt(Wd^2+Hd^2). 2) Calculate the theoretical pixel viewable angle θ: Combining the viewing distance L, calculate the angle θ formed by a single pixel on the human eye at the current distance. The calculation formula is: θ=2 arctan(P / (2 L)) (unit: radian). For easy calculation and threshold comparison, it is usually converted to arcminutes (arcmin): θ (arcmin)≈(P / L) (180 / π) 60. Physical meaning: The value of θ intuitively reflects the pixel coarseness perceived by the viewer. The larger θ is, the stronger the granularity.
[0065] The geometric schematic diagram of the calculation principle of the theoretical pixel viewable angle is as Figure 4 shown. Combining Figure 4 , in a right triangle: tan(θ / 2)=(P / 2) / L=P / (2L). Therefore: θ / 2=arctan[P / (2L)], θ=2×arctan[P / (2L)]. When P is much smaller than L (P<<L): θ≈P / L (radian); converted to arcminutes: θ≈(P / L)×(180 / π)×60≈3437.75×(P / L) (arcmin).
[0066] S304: Intelligent determination and signal generation (double-layer determination logic).
[0067] Based on the calculation results of S303, make an intelligent decision, rather than simply comparing the resolution.
[0068] The first layer of determination (necessity determination): Judge whether the video source resolution Rs is significantly lower than the screen physical resolution Rd. For example, when Ws Hs<K Wd When Hd (K is a scaling factor, such as 0.7 or 0.8) is reached, it is considered necessary to conduct an optimization evaluation.
[0069] The second layer of judgment (sufficiency judgment): If the first layer of judgment is satisfied, then it is determined whether the calculated theoretical pixel viewing angle θ exceeds the preset visual comfort threshold θ_th. This threshold θ_th is set based on human visual acuity and is usually 1.0 to 1.5 arcminutes. When θ > θ_th, it indicates that at the current distance, the pixel graininess has exceeded the range of human eye comfort, and the image quality has deteriorated significantly.
[0070] Control signal generation: The system generates a "suggest / execute display optimization mode" control signal only when both of the above-mentioned judgment conditions are met simultaneously. This ensures that optimization actions are triggered only in the most necessary and effective scenarios.
[0071] S305: Intelligent user interaction prompts.
[0072] In response to control signals, the interactive prompt module generates a non-modal, semi-transparent prompt interface on the screen, such as... Figure 5 As shown in the image, the interface informs the user in a friendly manner: "We have detected that you are viewing at close range. Switching to 'Original Image Clarity Mode' will provide a better experience," and offers options such as "Optimize Now" and "Don't Show Me Again." If the user selects "Don't show me again," the scene will be added to the whitelist.
[0073] S306: Display mode adaptive execution.
[0074] When the user confirms or the system is set to automatic execution, the display control module instructs the video rendering pipeline to perform the following operations: 1) Calculate the optimal display area: Prioritizing image quality, calculate the optimal display size of the video source resolution Rs on the screen. The optimal solution is integer scaling (e.g., 1x, 2x), followed by non-interpolated proportional scaling, ensuring that each source image pixel corresponds to an integer or fixed number of physical pixels, achieving "point-to-point" display and completely eliminating blurring caused by stretching interpolation. 2) Positioning and rendering: Adjust the video rendering window to the calculated size and center it on the screen. 3) Background artistic processing: Fill the remaining area of the screen (non-video rendering area). Methods include, but are not limited to: solid color (classic black border), Gaussian blur dynamic background (taken from the current video frame), static texture or artistic border (e.g., cinema velvet, picture frame texture), enhancing the overall visual aesthetics while ensuring core image quality. Optionally, the video displayed in optimized mode, such as... Figure 6As shown. Through dual-layer judgment logic and proportional scaling display without difference, the embodiments of this application can automatically determine whether the picture of the video being played will be degraded due to stretching, and can actively abandon full-screen stretching when it is determined that the picture will be degraded due to stretching (low resolution + close distance), and instead adopt a rendering strategy with high fidelity, thus solving the problem of image quality degradation.
[0075] S307: When the two-layer judgment conditions are not met, maintain the default mode (such as full-screen stretching, where full-screen stretching is used for video playback). Figure 7 (As shown).
[0076] Optionally, the system performing steps S301 to S306 above is as follows: Figure 8 As shown, it includes: 1) Parameter acquisition module: used to acquire Rs, Rd, and D. 2) Line-of-sight perception module: used to acquire or determine L. 3) Core calculation and judgment module: contains the logic of S303 and S304 above, and is the "brain" of the system. 4) User interaction interface module: used to implement S305. 5) Video rendering and control module: used to execute S306 or S307.
[0077] Optionally, let's take a 65-inch 4K Ultra HD smart TV as an example. Hardware and environment: TV physical resolution Rd: 3840(Wd) x 2160(Hd) pixels. Screen diagonal D: 65 inches. The user is at a distance of L = 1.2 meters from the TV, watching a 1080P (Rs: 1920x1080) fitness tutorial through a built-in app. The system workflow includes:
[0078] (1) Parameter acquisition: The resolution detection module obtains that the current source Rs is 1920x1080 and the screen Rd is 3840x2160. It reads D=65 inches from the device storage.
[0079] (2) View distance determination: The view distance perception module detects that the user's face is about 1.2 meters away from the screen through the built-in camera vision algorithm, that is, L=1.2m.
[0080] (3) Core Calculation: The core calculation and judgment module first calculates the pixel distance P. Using the approximate formula: P≈65 0.0254 / sqrt(3840^2+2160^2)≈1.651 / 4405.8≈0.000375 (meters). Next, calculate the theoretical pixel-wide viewing angle θ (angular minutes): θ≈(0.000375 / 1.2). 3437.75≈1.07 (minutes).
[0081] (4) Intelligent Judgment: First layer: Determine whether Rs (approximately 2.07 million pixels) is significantly smaller than Rd (approximately 8.29 million pixels). Obviously, 2.07 million < 0.8 8.29 million, condition satisfied. Second layer: Determine if θ (1.07 arcminutes) is greater than the threshold θ_th (set to 1.0 arcminutes). 1.07 > 1.0, condition satisfied. Therefore, the module generates an "optimization start" signal.
[0082] (5) User prompt: A soft banner slides out from the top of the TV screen (e.g. Figure 5 The message reads: "When viewing up close, enabling 'Original Image Clarity Mode' can improve detail? [Optimize Now] [Not Yet]". The user clicks "Optimize Now".
[0083] (6) Rendering Execution: The video rendering and control module calculates the optimal display area. 1080P (1920x1080) is exactly half the size of 4K (3840x2160), so it is magnified by an integer multiple of 2 (i.e., each source pixel is displayed using 2x2 physical pixels), forming a 1920 pixel area in the center of the screen. 2 = 3840, 1080 A perfect matching area of 2160 pixels (2 = 2160 pixels). The remaining area of the screen (there is no remaining area in this example because it fills the screen when magnified to an integer multiple, but it would appear if it were a non-integer multiple resolution) is filled with a dark gray static noise texture background. Ultimately, what the user sees is an incredibly sharp fitness tutorial image formed by precisely magnifying the original pixels by one time, with absolutely no stretching or blurring, greatly improving visual comfort.
[0084] In summary, the optional embodiments of this application introduce a quantitative perception model based on the physiological characteristics of the human eye: for the first time, the theoretical pixel viewing angle (θ), a calculable physical quantity, is used as the core indicator for judging the degree of image quality degradation. This objectifies and quantifies the subjective graininess, providing a scientific basis for intelligent display optimization. It can fundamentally eliminate pixel blur and jagged edges when viewed at close range, making low-definition content appear clearer and sharper than ever before. The optional embodiments of this application also design a dual-layer intelligent judgment logic: combining insufficient source resolution with the pixel viewing angle exceeding the comfort threshold at the current viewing distance as a trigger condition. This design greatly improves the accuracy and intelligence of system decision-making, avoiding unnecessary intervention when viewing at a distance or when the source material is acceptable. By controlling the visual angle density of screen pixels within the comfort threshold of the human eye, it effectively reduces eye muscle tension caused by continuously identifying coarse pixels, significantly reduces visual fatigue and discomfort, and improves the healthy viewing experience. The optional embodiments of this application also realize a complete automated closed loop of "perception-computation-interaction-execution": seamlessly connecting distance perception, model calculation, user-friendly prompts, and accurate rendering, providing users with a seamless one-stop image quality optimization experience and solving the pain points of users not knowing how to adjust settings. The rendering strategy in the optional embodiments of this application prioritizes image quality: it preferentially uses an integer scaling strategy to achieve "precise point-to-point" display, preserving the source image information to the maximum extent, which is the most effective technical means to improve clarity, unlike general image post-processing filtering enhancement. The optional embodiments of this application also provide an experience enhancement design for background processing: treating the black borders or remaining areas generated after optimization as part of the canvas and artistically processing them, turning technical defects into aesthetic features, and improving the overall viewing immersion and quality.
[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0086] This embodiment also provides a display strategy determination device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0087] Figure 9 This is a structural block diagram of a display strategy determination device according to an embodiment of this application, such as... Figure 9 As shown, the device includes:
[0088] The first determining module 92 is used to determine the physical distance between the target object and the display component of the target device;
[0089] The second determining module 94 is used to determine the theoretical pixel viewing angle corresponding to the physical interval distance through the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object;
[0090] The third determining module 96 is used to determine the display strategy of the video playback on the target device based on the theoretical pixel viewing angle.
[0091] The aforementioned device calculates the theoretical pixel viewing angle corresponding to the physical distance between the target object and the display component of the target device, along with the pixel size of a single pixel on the display component. This theoretical pixel viewing angle, which indicates the perceived pixel thickness by the target object, then determines the display strategy for the played video. This enables precise, non-interpolated, distortion-free pixel-level display optimization based on the physiological characteristics of human vision. This effectively reduces visual fatigue and improves image clarity and user comfort of the target device. Therefore, it solves the problem in related technologies where low-resolution images are stretched to a high-resolution screen using interpolation algorithms, leading to image quality degradation.
[0092] In an exemplary embodiment, the first determining module 92 is further configured to: sense the physical distance between the target object and the display component via a sensor; and determine the physical distance between the target object and the display component via a playback mode selected by the target object.
[0093] In an exemplary embodiment, the second determining module 94 is further configured to obtain the pixel size by means of the physical size of the display component and the first resolution of the display component; and to determine the theoretical pixel viewing angle by means of the ratio of the physical spacing distance to the pixel size.
[0094] In an exemplary embodiment, the third determining module 96 is further configured to determine the size relationship between the second resolution of the playing video and the first resolution of the display component; if the size relationship satisfies a preset condition, determine whether the theoretical pixel viewing angle exceeds a preset threshold; if the theoretical pixel viewing angle exceeds the preset threshold, determine the display strategy for the playing video through a control signal.
[0095] In an exemplary embodiment, the third determining module 96 is further configured to generate a prompt interface for the target object through the control signal; upon receiving a first selection operation from the target object on the prompt interface, determine the display strategy for the playing video as: displaying the playing video according to the default strategy; upon receiving a second selection operation from the target object on the prompt interface, determine the display strategy for the playing video as: displaying the playing video according to the optimized strategy.
[0096] In an exemplary embodiment, the apparatus further includes: a playback module, configured to determine a scaling factor of the playback video using the second resolution, to determine an optimal display area of the playback video on the display component using the scaling factor, wherein the scaling factor is an integer; when the optimal display area covers the display area of the display component, to play the playback video through the optimal display area; when the optimal display area does not cover the display area of the display component, to play the playback video through the optimal display area and to fill in the remaining area.
[0097] In one exemplary embodiment, the playback module is further configured to obtain a whitelist of the target device and historical playback information of the target object; and display the playback video using the whitelist, the historical playback information, and the physical interval distance.
[0098] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0099] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0100] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0101] S1, determine the physical distance between the target object and the display components of the target device;
[0102] S2, the theoretical pixel viewing angle corresponding to the physical interval distance is determined by the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object;
[0103] S3, determine the display strategy of the video playback on the target device based on the theoretical pixel view.
[0104] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0105] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0106] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0107] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0108] S1, determine the physical distance between the target object and the display components of the target device;
[0109] S2, the theoretical pixel viewing angle corresponding to the physical interval distance is determined by the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object;
[0110] S3, determine the display strategy of the video playback on the target device based on the theoretical pixel view.
[0111] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0112] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0113] Embodiments of this application also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0114] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0115] S1, determine the physical distance between the target object and the display components of the target device;
[0116] S2, the theoretical pixel viewing angle corresponding to the physical interval distance is determined by the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object;
[0117] S3, determine the display strategy of the video playback on the target device based on the theoretical pixel view.
[0118] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0119] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0120] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for determining a display strategy, characterized in that, include: Determine the physical distance between the target object and the display components of the target device; The theoretical pixel viewing angle corresponding to the physical interval distance is determined by the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object; The display strategy for playing videos on the target device is determined by the theoretical pixel-based viewing angle.
2. The method according to claim 1, characterized in that, Determine the physical distance between the target object and the display components of the target device, including at least one of the following: The physical distance between the target object and the display component is sensed by a sensor; The physical distance between the target object and the display component is determined by the playback mode selected by the target object.
3. The method according to claim 1, characterized in that, Determining the theoretical pixel viewing angle corresponding to the physical spacing distance by using the physical spacing distance and the pixel size of a single pixel in the display component includes: The pixel size is obtained by the physical size of the display component and the first resolution of the display component; The theoretical pixel viewing angle is determined by the ratio of the physical spacing distance to the pixel size.
4. The method according to claim 1, characterized in that, Determining the display strategy for playing video on the target device based on the theoretical pixel-permissible viewing angle includes: Determine the size relationship between the second resolution of the played video and the first resolution of the display component; If the size relationship meets the preset conditions, determine whether the theoretical pixel viewing angle exceeds the preset threshold. If the theoretical pixel viewing angle exceeds the preset threshold, the display strategy for the played video is determined by a control signal.
5. The method according to claim 4, characterized in that, Determining the display strategy for the played video through control signals includes: The control signal generates a prompt interface for the target object; Upon receiving the target object's first selection operation on the prompt interface, the display strategy for the playing video is determined to be: display the playing video according to the default strategy; Upon receiving the target object's second selection operation on the prompt interface, the display strategy for the playing video is determined to be: display the playing video according to the optimization strategy.
6. The method according to claim 5, characterized in that, The video to be played is displayed according to the optimization strategy, including: The scaling factor of the playback video is determined by the second resolution, so as to determine the optimal display area of the playback video on the display component by the scaling factor, wherein the scaling factor is an integer; When the optimal display area covers the display area of the display component, the playback video is played through the optimal display area; If the optimal display area does not cover the display area of the display component, the playback video is played through the optimal display area, and the remaining area is filled.
7. The method according to claim 5, characterized in that, The video is displayed according to the default strategy, including: Obtain the whitelist of the target device and the historical playback information of the target object; The video being played is displayed using the whitelist, the historical playback information, and the physical distance.
8. A device for determining a display strategy, characterized in that, include: The first determining module is used to determine the physical distance between the target object and the display component of the target device; The second determining module is used to determine the theoretical pixel viewing angle corresponding to the physical interval distance by using the physical interval distance and the pixel size of a single pixel in the display component, wherein the theoretical pixel viewing angle is used to indicate the pixel thickness perceived by the target object; The third determining module is used to determine the display strategy of the video playback on the target device based on the theoretical pixel viewable angle.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 7 through the computer program.