Pixel-level screen display adjusting method and device, storage medium and computer equipment

Through pixel-level brightness adjustment technology, the brightness of different areas of the screen is identified and adjusted, which solves the problem that existing eye protection tools fail to effectively deal with local brightness differences, achieving a more comfortable and healthy display effect.

CN119626182APending Publication Date: 2025-03-14CHENGDU MEGAYOU TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411915107.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

Existing eye protection tools fail to fully consider the impact of the difference in screen content in local areas on visual health, resulting in too strong or too weak light in some areas, increasing eye burden.

Method used

By obtaining the current display content of the screen, dividing it into multiple display areas, analyzing the pixel-level brightness information of each area, identifying the area to be adjusted, and calculating and applying the brightness adjustment amount to achieve the target brightness.

Benefits of technology

Ensure that each screen area reaches the appropriate brightness level, reduce visual discomfort caused by brightness differences, reduce the risk of eye fatigue and visual damage, and provide a more comfortable and healthy display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119626182A_ABST
    Figure CN119626182A_ABST
Patent Text Reader

Abstract

The invention discloses a pixel-level screen display adjusting method and device, a storage medium and computer equipment. The method comprises the steps that current display content of a screen is acquired; dividing the current display content into a plurality of display areas, and analyzing display pixel information of each display area to determine pixel-level brightness information of each display area; determining a to-be-adjusted area in each display area based on the pixel-level brightness information of each display area; target brightness information of the to-be-adjusted area is determined, and the brightness adjustment amount of the to-be-adjusted area is calculated based on the target brightness information and the pixel-level brightness information corresponding to the to-be-adjusted area; and adjusting the current display content of the to-be-adjusted area according to the brightness adjustment amount. Through pixel-level brightness adjustment, it can be ensured that each area on the screen reaches a proper brightness level, and visual discomfort caused by brightness difference is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a pixel-level screen display adjustment method, device, storage medium and computer equipment. Background Art

[0002] The mainstream eye protection tools currently on the market mostly focus on full-screen brightness control, color temperature adjustment, and setting timed break reminders. While these tools can help alleviate eye fatigue to a certain extent, they fail to fully consider the impact of local differences in screen content on visual health. For example, when a screen contains both high-brightness white areas and low-brightness dark areas, traditional eye protection methods often rely on a unified brightness or color temperature adjustment strategy for the entire screen. This approach may cause the light in certain areas to be too strong or too weak, further increasing the strain on the eyes. Summary of the Invention

[0003] In view of this, embodiments of the present application provide a pixel-level screen display adjustment method, apparatus, storage medium, and computer equipment.

[0004] According to one aspect of the present application, a pixel-level screen display adjustment method is provided, the method comprising:

[0005] Get the current display content of the screen;

[0006] Dividing the current display content into a plurality of display areas, and analyzing display pixel information of each display area respectively to determine pixel-level brightness information of each display area;

[0007] Determining a region to be adjusted in each display region based on pixel-level brightness information of each display region;

[0008] Determining target brightness information of the area to be adjusted, and calculating a brightness adjustment amount for the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted;

[0009] The current display content of the area to be adjusted is adjusted according to the brightness adjustment amount.

[0010] In an optional implementation, before dividing the currently displayed content into multiple display areas, the method further includes:

[0011] Scaling the currently displayed content to reduce the size of the currently displayed content, thereby obtaining an image to be analyzed corresponding to the currently displayed content;

[0012] Converting the color space of the image to be analyzed from the RGB space to a target color space, wherein the target color space includes an HSV color space or a LAB color space;

[0013] Accordingly, dividing the current display content into multiple display areas includes:

[0014] The image to be analyzed is divided into a plurality of display areas.

[0015] In an optional implementation manner, dividing the image to be analyzed into multiple display areas includes:

[0016] Performing image segmentation on the image to be analyzed using an image processing algorithm to determine each display area in the image to be analyzed; or,

[0017] Performing grid division on the image to be analyzed to obtain display units in the image to be analyzed, performing similarity analysis on adjacent display units, and merging display units that meet preset similarity conditions to obtain display areas in the image to be analyzed; or

[0018] Dividing the image to be analyzed into multiple display areas based on a custom area division rule;

[0019] After dividing the image to be analyzed into a plurality of display areas, the method further includes:

[0020] The division result of the display area is displayed, and if adjustment information of the division result is received, the division result is adjusted based on the adjustment information to update the display area.

[0021] In an optional implementation, determining the area to be adjusted in each display area based on the pixel-level brightness information of each display area includes:

[0022] Determining a region type and a region display preference for each display region based on preset region preference setting information, wherein the preset region preference setting information includes a plurality of preset region types and a display preference and region characteristics corresponding to each preset region type;

[0023] Calculating the average of the brightness information of each pixel in each display area as the pixel-level brightness information of each display area;

[0024] According to the regional display preferences and pixel-level brightness information corresponding to each display area, it is identified whether each display area belongs to the area to be adjusted.

[0025] In an optional implementation, identifying whether each display area belongs to the area to be adjusted based on the area display preference and pixel-level brightness information corresponding to each display area includes:

[0026] If the regional display preference is a fixed preference, determining whether the pixel-level brightness information of each display area matches the regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0027] If the regional display preference is a time adaptation preference, adjusting the regional display preference corresponding to each display area based on the current time, determining whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0028] If the regional display preference is a full-screen adaptation preference, then the display areas are sorted based on the area type of each display area and the display level corresponding to each preset area type in the preset area preference setting information, and the display area with the first ranking is determined as the target display area. Based on the ranking difference between other display areas and the target display area, the regional display preferences corresponding to other display areas are adjusted, and it is judged separately whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted.

[0029] In an optional implementation, determining the target brightness information of the area to be adjusted, and calculating the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted, includes:

[0030] determining target brightness information of the area to be adjusted based on the area display preference corresponding to the area to be adjusted, wherein if the area display preference of the area to be adjusted has been adjusted, using the adjusted area display preference as the area display preference corresponding to the area to be adjusted;

[0031] Calculating the brightness information variance of the area to be adjusted based on the brightness information of each pixel in the area to be adjusted;

[0032] If the brightness information variance is greater than a preset value, then calculating the brightness adjustment amount of each pixel in the area to be adjusted based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel;

[0033] If the brightness information variance is less than or equal to a preset value, a brightness adjustment amount of the area to be adjusted is calculated based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted.

[0034] In an optional implementation, adjusting the current display content of the area to be adjusted according to the brightness adjustment amount includes:

[0035] Calling an operating system interface to access a GPU and a display, and adjusting the current display content of the area to be adjusted according to the brightness adjustment amount through the GPU; or,

[0036] A blank image of the same size as the current display content is created as a brightness adjustment layer, the brightness adjustment layer is filled according to the brightness adjustment amount of each area to be adjusted using a brightness adjustment algorithm, and the brightness adjustment layer is superimposed on the screen display content.

[0037] According to another aspect of the present application, a pixel-level screen display adjustment device is provided, the device comprising:

[0038] The acquisition module is used to obtain the current display content of the screen;

[0039] an analysis module, configured to divide the current display content into a plurality of display areas, and analyze the display pixel information of each display area respectively to determine the pixel-level brightness information of each display area;

[0040] An adjustment area determination module, configured to determine an area to be adjusted in each display area based on pixel-level brightness information of each display area;

[0041] an adjustment amount determination module, configured to determine target brightness information of the area to be adjusted, and calculate a brightness adjustment amount for the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted;

[0042] The brightness adjustment module is used to adjust the current display content of the area to be adjusted according to the brightness adjustment amount.

[0043] In an optional implementation, before dividing the currently displayed content into multiple display areas, the method further includes:

[0044] Scaling the currently displayed content to reduce the size of the currently displayed content, thereby obtaining an image to be analyzed corresponding to the currently displayed content;

[0045] Converting the color space of the image to be analyzed from the RGB space to a target color space, wherein the target color space includes an HSV color space or a LAB color space;

[0046] Accordingly, dividing the current display content into multiple display areas includes:

[0047] The image to be analyzed is divided into a plurality of display areas.

[0048] In an optional implementation manner, dividing the image to be analyzed into multiple display areas includes:

[0049] Performing image segmentation on the image to be analyzed using an image processing algorithm to determine each display area in the image to be analyzed; or,

[0050] Performing grid division on the image to be analyzed to obtain display units in the image to be analyzed, performing similarity analysis on adjacent display units, and merging display units that meet preset similarity conditions to obtain display areas in the image to be analyzed; or

[0051] Dividing the image to be analyzed into multiple display areas based on a custom area division rule;

[0052] After dividing the image to be analyzed into a plurality of display areas, the method further includes:

[0053] The division result of the display area is displayed, and if adjustment information of the division result is received, the division result is adjusted based on the adjustment information to update the display area.

[0054] In an optional implementation, determining the area to be adjusted in each display area based on the pixel-level brightness information of each display area includes:

[0055] Determining a region type and a region display preference for each display region based on preset region preference setting information, wherein the preset region preference setting information includes a plurality of preset region types and a display preference and region characteristics corresponding to each preset region type;

[0056] Calculating the average of the brightness information of each pixel in each display area as the pixel-level brightness information of each display area;

[0057] According to the regional display preferences and pixel-level brightness information corresponding to each display area, it is identified whether each display area belongs to the area to be adjusted.

[0058] In an optional implementation, identifying whether each display area belongs to the area to be adjusted based on the area display preference and pixel-level brightness information corresponding to each display area includes:

[0059] If the regional display preference is a fixed preference, determining whether the pixel-level brightness information of each display area matches the regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0060] If the regional display preference is a time adaptation preference, adjusting the regional display preference corresponding to each display area based on the current time, determining whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0061] If the regional display preference is a full-screen adaptation preference, then the display areas are sorted based on the area type of each display area and the display level corresponding to each preset area type in the preset area preference setting information, and the display area with the first ranking is determined as the target display area. Based on the ranking difference between other display areas and the target display area, the regional display preferences corresponding to other display areas are adjusted, and it is judged separately whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted.

[0062] In an optional implementation, determining the target brightness information of the area to be adjusted, and calculating the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted, includes:

[0063] determining target brightness information of the area to be adjusted based on the area display preference corresponding to the area to be adjusted, wherein if the area display preference of the area to be adjusted has been adjusted, using the adjusted area display preference as the area display preference corresponding to the area to be adjusted;

[0064] Calculating the brightness information variance of the area to be adjusted based on the brightness information of each pixel in the area to be adjusted;

[0065] If the brightness information variance is greater than a preset value, then calculating the brightness adjustment amount of each pixel in the area to be adjusted based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel;

[0066] If the brightness information variance is less than or equal to a preset value, a brightness adjustment amount of the area to be adjusted is calculated based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted.

[0067] In an optional implementation, adjusting the current display content of the area to be adjusted according to the brightness adjustment amount includes:

[0068] Calling an operating system interface to access a GPU and a display, and adjusting the current display content of the area to be adjusted according to the brightness adjustment amount through the GPU; or,

[0069] A blank image of the same size as the current display content is created as a brightness adjustment layer, the brightness adjustment layer is filled according to the brightness adjustment amount of each area to be adjusted using a brightness adjustment algorithm, and the brightness adjustment layer is superimposed on the screen display content.

[0070] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the above-mentioned pixel-level screen display adjustment method is implemented.

[0071] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned pixel-level screen display adjustment method when executing the program.

[0072] By means of the above technical solution, the embodiments of the present application provide a pixel-level screen display adjustment method, device, storage medium and computer equipment, which obtain the current display content of the screen and divide it into multiple display areas, determine the pixel-level brightness information of each display area, and identify the area to be adjusted in the display area, and calculate the brightness adjustment amount of the area to be adjusted according to the target brightness information of the area to be adjusted and the pixel-level brightness information of the area to be adjusted, so as to adjust the brightness of the area to be adjusted according to the brightness adjustment amount. The embodiments of the present application can ensure that each area on the screen reaches an appropriate brightness level through pixel-level brightness adjustment, reduce visual discomfort caused by brightness differences, reduce brightness mutations and extreme brightness values ​​on the screen, and help reduce the risk of eye fatigue and visual damage. In addition, the method performs dynamic brightness adjustment according to the actual changes in the screen content, making the screen display effect more flexible and personalized.

[0073] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0075] Figure 1 A schematic diagram illustrating a flow chart of a pixel-level screen display adjustment method provided in an embodiment of the present application is shown;

[0076] Figure 2 A schematic diagram showing a flow chart of another pixel-level screen display adjustment method provided in an embodiment of the present application is shown;

[0077] Figure 3 A schematic structural diagram of a pixel-level screen display adjustment device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0078] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.

[0079] In this embodiment, a pixel-level screen display adjustment method is provided. Figure 1 As shown, the method includes:

[0080] Step 101: Get the current display content of the screen.

[0081] Step 102: Divide the current display content into multiple display areas, and analyze the display pixel information of each display area to determine the pixel-level brightness information of each display area.

[0082] Step 103: Determine the area to be adjusted in each display area based on the pixel-level brightness information of each display area.

[0083] Step 104 : Determine target brightness information of the area to be adjusted, and calculate a brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted.

[0084] Step 105: Adjust the current display content of the area to be adjusted according to the brightness adjustment amount.

[0085] The pixel-level screen display adjustment method provided in the embodiment of the present application is a refined adjustment technology for screen display content, which aims to perform personalized brightness adjustment according to the brightness difference of different areas of the screen to achieve a more comfortable and healthy display effect. First, the current display content of the screen can be obtained by taking a screenshot, etc., such as using Windows API BitBlt or PrintWindow on Windows, Quartz DisplayServices on macOS, and Xlib or DBus interface on Linux. Then, the screen is divided into multiple small display areas (for example, divided into grids of a certain size) so that each area can be analyzed separately for brightness. For each display area, the display pixel information therein is analyzed, including color, brightness, etc., to determine the pixel-level brightness information of the area. Then, based on the pixel-level brightness information, display areas with too high or too low brightness that may cause discomfort to the eyes are identified as areas to be adjusted. Finally, a target brightness value is set for each area to be adjusted, which is intended to make the screen display more comfortable and not cause too much burden on the eyes. Based on the target brightness information of the area to be adjusted and the current pixel-level brightness information, the amount of brightness adjustment required is calculated. The calculated brightness adjustment amount is applied to adjust the display content in the adjustment area to achieve the target brightness value.

[0086] It should be noted that obtaining the current display content of the screen may specifically include: obtaining the current display content of the screen at a fixed frequency, calculating similarity between the obtained current display content and the display content previously obtained, executing subsequent steps if the similarity is less than a preset similarity threshold, and continuing to obtain the screen display content at a fixed frequency if the similarity is greater than or equal to the preset similarity threshold. This ensures that the screen is only analyzed and adjusted when the screen content changes significantly, thereby avoiding affecting system performance and preventing frequent adjustments to the screen brightness from causing a poor user experience.

[0087] In addition, the pixel-level screen display adjustment method provided in the embodiment of the present application is executed when the user turns on the automatic screen brightness adjustment function.

[0088] By applying the technical solution of this embodiment, the current display content of the screen is obtained and divided into multiple display areas, the pixel-level brightness information of each display area is determined, and the area to be adjusted in the display area is identified. The brightness adjustment amount of the area to be adjusted is calculated based on the target brightness information of the area to be adjusted and the pixel-level brightness information of the area to be adjusted, so that the brightness of the area to be adjusted is adjusted according to the brightness adjustment amount. The embodiment of the present application can ensure that each area on the screen reaches an appropriate brightness level through pixel-level brightness adjustment, reduce visual discomfort caused by brightness differences, reduce brightness mutations and extreme brightness values ​​on the screen, and help reduce the risk of eye fatigue and visual damage. In addition, this method performs dynamic brightness adjustment according to the actual changes in the screen content, making the screen display effect more flexible and personalized.

[0089] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another pixel-level screen display adjustment method is provided, such as Figure 2 As shown, the method includes:

[0090] Step 201: Get the current display content of the screen.

[0091] In this embodiment, the current display content of the screen is first captured, for example, by reading the current image data from a screen buffer or a graphics processing unit (GPU). The acquired content is the complete picture on the screen, including all displayed elements and background.

[0092] Step 202: scaling the currently displayed content to reduce the size of the currently displayed content to obtain an image to be analyzed corresponding to the currently displayed content; converting the color space of the image to be analyzed from the RGB space to a target color space, wherein the target color space includes an HSV color space or a LAB color space.

[0093] In this embodiment, the current display content is then scaled to reduce the size of the display content so as to reduce the computational complexity of subsequent analysis, since smaller images require less data to process. At the same time, scaling can also help smooth details in the image, making subsequent analysis more stable. The scaled image is then converted from the RGB color space to a target color space, such as the HSV color space or the LAB color space. The RGB color space represents colors based on a combination of red, green, and blue, while the HSV color space describes colors based on hue, saturation, and value. The LAB color space is a color space based on human visual perception, which is closer to how humans perceive colors. Converting to these color spaces helps to more accurately analyze the brightness information of the image, since the HSV and LAB color spaces provide more intuitive brightness or luminance components, making brightness analysis easier and more accurate.

[0094] Step 203: Divide the image to be analyzed into multiple display areas, and analyze the display pixel information of each display area respectively to determine the pixel-level brightness information of each display area.

[0095] In this embodiment, the image to be analyzed after scaling and converting the color space is divided into multiple display areas, which can be fixed grids, content-based segmentation, or areas determined according to a specific algorithm. For each display area, its display pixel information is analyzed separately to determine the pixel-level brightness information of each area. This usually involves calculating the brightness value of each pixel (in HSV or LAB color space) and then performing statistical analysis on these values ​​(such as average brightness, brightness distribution, etc.). By analyzing the brightness information of these areas, the system can identify areas on the screen with uneven or excessive / insufficient brightness, and thus take corresponding adjustment measures to optimize the display effect.

[0096] In an optional embodiment, dividing the image to be analyzed into a plurality of display areas includes: performing image segmentation on the image to be analyzed using an image processing algorithm to determine the display areas in the image to be analyzed; or, performing grid division on the image to be analyzed to obtain display units in the image to be analyzed, performing similarity analysis on adjacent display units, and merging display units that meet preset similarity conditions to obtain the display areas in the image to be analyzed; or, dividing the image to be analyzed into a plurality of display areas based on a custom area division rule;

[0097] After dividing the image to be analyzed into multiple display areas, the method further includes: displaying the division results of the display areas, and if adjustment information for the division results is received, adjusting the division results based on the adjustment information to update the display areas.

[0098] In the above-described embodiment, image segmentation can be performed using image processing algorithms: for example, image processing algorithms based on edge detection, region growing, clustering, and other algorithms can be used to automatically identify different regions in an image. The algorithm segments the image into multiple parts based on pixel features (such as color, texture, brightness, etc.), with each part representing a display area. Region segmentation can also be performed using grid division and similarity merging: the image to be analyzed is first divided into fixed grid cells. Then, similarity analysis is performed on adjacent grid cells, such as by comparing their color histograms or texture features. If the similarity between adjacent cells meets a preset condition (such as a similarity threshold), they are merged into a larger display area. Region segmentation can also be performed based on custom region division rules: a series of region division rules can be defined based on specific user needs or application scenarios, specifically based on a combination of image features such as size, shape, and content. Based on these rules, the image to be analyzed is divided into multiple display areas. This method offers maximum flexibility, allowing users to customize region division according to actual needs. Furthermore, after the display area is divided, the division results can be displayed for user review and verification. If the user is not satisfied with the segmentation results or needs to make adjustments, they can also enter adjustment information. This adjustment information can be for operations such as adjusting the boundaries of specific areas, merging or splitting areas, etc. The system will update the segmentation results based on the user's adjustment information to obtain a display area that better meets the user's needs.

[0099] Step 204: Based on the preset area preference setting information, determine the area type and area display preference of each display area, wherein the preset area preference setting information includes multiple preset area types and the display preference and area characteristics corresponding to each preset area type; calculate the average of the brightness information of each pixel in each display area as the pixel-level brightness information of each display area; and identify whether each display area belongs to the area to be adjusted based on the area display preference and pixel-level brightness information corresponding to each display area.

[0100] In this embodiment, a preset regional preference setting information library is obtained, which contains multiple preset regional types (such as video area, chat area, text browsing area, etc.) and the display preferences and regional features (such as texture, color distribution, etc.) corresponding to each type. For each divided display area, its characteristics (such as color distribution, texture, shape, etc.) are matched with the preset regional characteristics to determine the regional type to which it belongs. After determining the regional type, the mean of all pixel brightness information in each display area is calculated as the pixel-level brightness information of the area. This mean reflects the overall brightness level of the area. The regional display preference (such as the expected brightness range) of each display area is compared with the calculated pixel-level brightness information. If the brightness information of a certain area does not match the expected display preference (such as too bright, too dark or uneven brightness), the area is marked as an area to be adjusted. The embodiment of the present application combines the preset regional preference setting information and pixel-level brightness information, and through comparison and analysis, identifies the area that needs to be displayed adjusted, providing an important basis for subsequent display optimization, making the adjustment process more accurate and efficient.

[0101] The display preference for each preset area type in the preset area preference setting information can be set by the user or determined by statistically analyzing the user's screen brightness adjustment history information. Specifically, the user's screen brightness adjustment history information in different scenarios can be statistically analyzed, and the user's visual attention area and corresponding display brightness information can be analyzed. The display brightness information corresponding to the same visual attention area type can be statistically analyzed to serve as the display preference for that area type.

[0102] In an optional implementation, identifying whether each display area belongs to the area to be adjusted based on the area display preference and pixel-level brightness information corresponding to each display area includes:

[0103] If the regional display preference is a fixed preference, determining whether the pixel-level brightness information of each display area matches the regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0104] If the regional display preference is a time adaptation preference, adjusting the regional display preference corresponding to each display area based on the current time, determining whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0105] If the regional display preference is a full-screen adaptation preference, then the display areas are sorted based on the area type of each display area and the display level corresponding to each preset area type in the preset area preference setting information, and the display area with the first ranking is determined as the target display area. Based on the ranking difference between other display areas and the target display area, the regional display preferences corresponding to other display areas are adjusted, and it is judged separately whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted.

[0106] In the above embodiment, when the regional display preference is set to a fixed preference, a direct comparison is made between the preset regional display preference and the pixel-level brightness information of each display area. If the pixel-level brightness information of a display area does not match the preset regional display preference (e.g., exceeds the preset brightness range), the area is marked as an area to be adjusted. When the regional display preference is set to a time-adaptive preference, the regional display preference of each display area is dynamically adjusted according to the current time, for example, considering the impact of different time periods of the day (e.g., daytime, nighttime) or different days of the week (e.g., weekdays, weekends) on the display preference. The adjusted regional display preference is compared with the pixel-level brightness information of each display area, and the mismatched area is marked as an area to be adjusted. When the regional display preference is set to a full-screen adaptation preference, the relative importance or display level of each display area is considered. First, the display areas are sorted according to the display level corresponding to each preset area type in the preset regional preference setting information. The display area with the highest ranking is determined as the target display area. The display preference of this area remains unchanged, and the display preferences of other areas are adjusted to ensure that the brightness of the target display area is higher than that of other areas. Then, the regional display preferences of other display areas will be adjusted based on the ranking difference between other display areas and the target display area (i.e. the difference in relative importance or display level). The adjusted regional display preferences will be compared with the pixel-level brightness information of each display area, and the mismatched areas will be marked as areas to be adjusted. This optional implementation method makes the process of identifying areas to be adjusted more flexible and personalized by introducing multiple regional display preference settings such as fixed preferences, time adaptation preferences, and full-screen adaptation preferences, which helps to provide more accurate display optimization effects in different application scenarios and user needs, thereby improving user visual experience and satisfaction.

[0107] Step 205: Determine the target brightness information of the area to be adjusted based on the area display preference corresponding to the area to be adjusted, wherein if the area display preference of the area to be adjusted has been adjusted, the adjusted area display preference is used as the area display preference corresponding to the area to be adjusted; calculate the brightness information variance of the area to be adjusted based on the brightness information of each pixel in the area to be adjusted; if the brightness information variance is greater than a preset value, calculate the brightness adjustment amount of each pixel in the area to be adjusted based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel; if the brightness information variance is less than or equal to the preset value, calculate the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted.

[0108] In this embodiment, in order to ensure that the adjusted display effect not only conforms to the regional display preference but also maintains the naturalness and uniformity of the image, for each area to be adjusted, the target brightness information is first determined based on its corresponding regional display preference (if adjusted, the adjusted preference is used).

[0109] The target brightness information may include one or more brightness parameters, such as the expected average brightness, brightness range, brightness distribution, etc.

[0110] Next, the variance of the brightness information of each pixel in the area to be adjusted is calculated. The variance of the brightness information reflects the degree of dispersion of the pixel brightness distribution within the area. If the variance is large, it indicates that the brightness distribution within the area is uneven; if the variance is small, it indicates that the brightness distribution within the area is relatively uniform. If the variance of the brightness information of the area to be adjusted is greater than a preset value, it indicates that the brightness distribution within the area is uneven. In this case, more precise adjustment of the brightness of each pixel is required. Based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel, the brightness adjustment amount for each pixel is calculated separately to ensure that after adjustment, the brightness of each pixel in the area is closer to the target brightness while maintaining a more uniform overall brightness distribution. If the variance of the brightness information of the area to be adjusted is less than or equal to the preset value, it indicates that the brightness distribution within the area is already relatively uniform. At this point, the brightness adjustment amount for the entire area can be calculated based on the target brightness information corresponding to the area to be adjusted and the overall pixel-level brightness information (i.e., the average brightness or brightness histogram of the area). This avoids unnecessary fine-tuning of the already uniform brightness distribution, thereby maintaining the naturalness and coherence of the image.

[0111] Step 206: Adjust the current display content of the area to be adjusted according to the brightness adjustment amount.

[0112] Among them, adjusting the current display content of the area to be adjusted according to the brightness adjustment amount includes: calling the operating system interface to access the GPU and the display, and adjusting the current display content of the area to be adjusted according to the brightness adjustment amount through the GPU; or creating a blank image of the same size as the current display content as a brightness adjustment layer, using a brightness adjustment algorithm to fill the brightness adjustment layer according to the brightness adjustment amount of each area to be adjusted, and superimposing the brightness adjustment layer on the screen display content.

[0113] The embodiment of the present application can adjust the screen brightness in two ways: one is to adjust it directly through the GPU, and the other is to create a brightness adjustment layer for superposition. In the direct adjustment method through the GPU, the relevant interfaces of the operating system are first called. These interfaces provide access to the graphics processing unit (GPU) and the display. Then, through the GPU, the pixels on the screen can be directly processed. According to the brightness adjustment amount of each area to be adjusted previously calculated, the GPU will adjust the pixel brightness of these areas accordingly so that the display content on the screen can be updated in real time to ensure that the user sees the adjusted image. In the method of creating a brightness adjustment layer for superposition, first create a blank image of the same size as the current display content as the brightness adjustment layer. Using the brightness adjustment algorithm, fill this brightness adjustment layer according to the brightness adjustment amount of each area to be adjusted, so that each pixel value in the brightness adjustment layer can reflect the brightness adjustment requirements of the corresponding area to be adjusted. Finally, the brightness adjustment layer is superimposed on the original screen display content. This can be achieved through image processing technology, such as using an alpha channel to control the transparency of the brightness adjustment layer, thereby achieving smooth blending with the original content.

[0114] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a pixel-level screen display adjustment device, such as Figure 3 As shown, the device includes:

[0115] The acquisition module is used to obtain the current display content of the screen;

[0116] an analysis module, configured to divide the current display content into a plurality of display areas, and analyze the display pixel information of each display area respectively to determine the pixel-level brightness information of each display area;

[0117] An adjustment area determination module, configured to determine an area to be adjusted in each display area based on pixel-level brightness information of each display area;

[0118] an adjustment amount determination module, configured to determine target brightness information of the area to be adjusted, and calculate a brightness adjustment amount for the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted;

[0119] The brightness adjustment module is used to adjust the current display content of the area to be adjusted according to the brightness adjustment amount.

[0120] In an optional implementation, before dividing the currently displayed content into multiple display areas, the method further includes:

[0121] Scaling the currently displayed content to reduce the size of the currently displayed content, thereby obtaining an image to be analyzed corresponding to the currently displayed content;

[0122] Converting the color space of the image to be analyzed from the RGB space to a target color space, wherein the target color space includes an HSV color space or a LAB color space;

[0123] Accordingly, dividing the current display content into multiple display areas includes:

[0124] The image to be analyzed is divided into a plurality of display areas.

[0125] In an optional implementation manner, dividing the image to be analyzed into multiple display areas includes:

[0126] Performing image segmentation on the image to be analyzed using an image processing algorithm to determine each display area in the image to be analyzed; or,

[0127] Performing grid division on the image to be analyzed to obtain display units in the image to be analyzed, performing similarity analysis on adjacent display units, and merging display units that meet preset similarity conditions to obtain display areas in the image to be analyzed; or

[0128] Dividing the image to be analyzed into multiple display areas based on a custom area division rule;

[0129] After dividing the image to be analyzed into a plurality of display areas, the method further includes:

[0130] The division result of the display area is displayed, and if adjustment information of the division result is received, the division result is adjusted based on the adjustment information to update the display area.

[0131] In an optional implementation, determining the area to be adjusted in each display area based on the pixel-level brightness information of each display area includes:

[0132] Determining a region type and a region display preference for each display region based on preset region preference setting information, wherein the preset region preference setting information includes a plurality of preset region types and a display preference and region characteristics corresponding to each preset region type;

[0133] Calculating the average of the brightness information of each pixel in each display area as the pixel-level brightness information of each display area;

[0134] According to the regional display preferences and pixel-level brightness information corresponding to each display area, it is identified whether each display area belongs to the area to be adjusted.

[0135] In an optional implementation, identifying whether each display area belongs to the area to be adjusted based on the area display preference and pixel-level brightness information corresponding to each display area includes:

[0136] If the regional display preference is a fixed preference, determining whether the pixel-level brightness information of each display area matches the regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0137] If the regional display preference is a time adaptation preference, adjusting the regional display preference corresponding to each display area based on the current time, determining whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted;

[0138] If the regional display preference is a full-screen adaptation preference, then the display areas are sorted based on the area type of each display area and the display level corresponding to each preset area type in the preset area preference setting information, and the display area with the first ranking is determined as the target display area. Based on the ranking difference between other display areas and the target display area, the regional display preferences corresponding to other display areas are adjusted, and it is judged separately whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted.

[0139] In an optional implementation, determining the target brightness information of the area to be adjusted, and calculating the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted, includes:

[0140] determining target brightness information of the area to be adjusted based on the area display preference corresponding to the area to be adjusted, wherein if the area display preference of the area to be adjusted has been adjusted, using the adjusted area display preference as the area display preference corresponding to the area to be adjusted;

[0141] Calculating the brightness information variance of the area to be adjusted based on the brightness information of each pixel in the area to be adjusted;

[0142] If the brightness information variance is greater than a preset value, then calculating the brightness adjustment amount of each pixel in the area to be adjusted based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel;

[0143] If the brightness information variance is less than or equal to a preset value, a brightness adjustment amount of the area to be adjusted is calculated based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted.

[0144] In an optional implementation, adjusting the current display content of the area to be adjusted according to the brightness adjustment amount includes:

[0145] Calling an operating system interface to access a GPU and a display, and adjusting the current display content of the area to be adjusted according to the brightness adjustment amount through the GPU; or,

[0146] A blank image of the same size as the current display content is created as a brightness adjustment layer, the brightness adjustment layer is filled according to the brightness adjustment amount of each area to be adjusted using a brightness adjustment algorithm, and the brightness adjustment layer is superimposed on the screen display content.

[0147] It should be noted that for other corresponding descriptions of the functional units involved in the pixel-level screen display adjustment device provided in the embodiment of the present application, reference can be made to Figures 1 to 2 The corresponding description in the method will not be repeated here.

[0148] The embodiment of the present application also provides a computer device, which can be specifically a personal computer, a server, a network device, etc. The computer device includes a bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store location information. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in each method embodiment are implemented.

[0149] Those skilled in the art will understand that the structure of the above-mentioned computer device is only a partial structure related to the solution of the present application and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components, or combine certain components, or have a different component arrangement.

[0150] In one embodiment, a computer-readable storage medium is provided. The computer-readable storage medium may be non-volatile or volatile, and stores a computer program thereon. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0151] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0152] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0153] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, and the like.

[0154] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0155] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A pixel-level screen display adjustment method, characterized in that: The method comprises: Get the current display content of the screen; Dividing the current display content into a plurality of display areas, and analyzing display pixel information of each display area respectively to determine pixel-level brightness information of each display area; Determining the area to be adjusted in each display area based on the pixel-level brightness information of each display area; Determining target brightness information of the area to be adjusted, and calculating a brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted; The current display content of the area to be adjusted is adjusted according to the brightness adjustment amount.

2. The method according to claim 1, characterized in that Before dividing the currently displayed content into a plurality of display areas, the method further includes: Scaling the currently displayed content to reduce the size of the currently displayed content to obtain an image to be analyzed corresponding to the currently displayed content; Converting the color space of the image to be analyzed from the RGB space to a target color space, wherein the target color space includes an HSV color space or a LAB color space; Accordingly, dividing the currently displayed content into a plurality of display areas includes: The image to be analyzed is divided into a plurality of display areas.

3. The method according to claim 2, characterized in that The step of dividing the image to be analyzed into a plurality of display areas comprises: Performing image segmentation on the image to be analyzed by using an image processing algorithm to determine each display area in the image to be analyzed; or, Performing grid division on the image to be analyzed to obtain each display unit in the image to be analyzed, performing similarity analysis on adjacent display units, and merging display units that meet preset similarity conditions to obtain each display area in the image to be analyzed; or, Based on a custom area division rule, the image to be analyzed is divided into a plurality of display areas; After dividing the image to be analyzed into a plurality of display areas, the method further includes: The division result of the display area is displayed, and if adjustment information of the division result is received, the division result is adjusted based on the adjustment information to update the display area.

4. The method according to claim 1, characterized in that: The step of determining the area to be adjusted in each display area based on the pixel-level brightness information of each display area includes: Determine the region type and region display preference of each display region based on preset region preference setting information, wherein the preset region preference setting information includes a plurality of preset region types and display preferences and region features corresponding to each preset region type; Calculate the average value of the brightness information of each pixel in each display area as the pixel-level brightness information of each display area; According to the regional display preference and pixel-level brightness information corresponding to each display area, it is identified whether each display area belongs to the area to be adjusted.

5. The method according to claim 4, characterized in that The step of identifying whether each display area belongs to the area to be adjusted according to the area display preference and pixel-level brightness information corresponding to each display area includes: If the regional display preference is a fixed preference, determining whether the pixel-level brightness information of each display area matches the regional display preference of the corresponding display area, and determining the unmatched display area as the area to be adjusted; If the regional display preference is a time adaptation preference, the regional display preference corresponding to each display area is adjusted based on the current time, and it is determined whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted; If the regional display preference is a full-screen adaptation preference, then based on the regional type of each display area and the display level corresponding to each preset regional type in the preset regional preference setting information, each display area is sorted, and the display area with the first ranking is determined as the target display area, and based on the ranking difference between other display areas and the target display area, the regional display preferences corresponding to other display areas are adjusted, and it is determined whether the pixel-level brightness information of each display area matches the adjusted regional display preference of the corresponding display area, and the unmatched display area is determined as the area to be adjusted.

6. The method according to claim 5, characterized in that The determining the target brightness information of the area to be adjusted, and calculating the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted, includes: Determining target brightness information of the area to be adjusted based on the area display preference corresponding to the area to be adjusted, wherein if the area display preference of the area to be adjusted has been adjusted, the adjusted area display preference is used as the area display preference corresponding to the area to be adjusted; Calculating the brightness information variance of the area to be adjusted according to the brightness information of each pixel in the area to be adjusted; If the brightness information variance is greater than a preset value, then based on the target brightness information corresponding to the area to be adjusted and the brightness information of each pixel, respectively calculating the brightness adjustment amount of each pixel in the area to be adjusted; If the brightness information variance is less than or equal to a preset value, the brightness adjustment amount of the area to be adjusted is calculated based on the target brightness information and the pixel-level brightness information corresponding to the area to be adjusted.

7. The method according to any one of claims 1 to 6, characterized in that The step of adjusting the current display content of the area to be adjusted according to the brightness adjustment amount includes: Calling an operating system interface to access a GPU and a display, and adjusting the current display content of the area to be adjusted according to the brightness adjustment amount through the GPU; or, A blank image of the same size as the current display content is created as a brightness adjustment layer, the brightness adjustment layer is filled according to the brightness adjustment amount of each area to be adjusted using a brightness adjustment algorithm, and the brightness adjustment layer is superimposed on the screen display content.

8. A pixel-level screen display adjustment device, characterized in that: The device comprises: The acquisition module is used to obtain the current display content of the screen; An analysis module, used to divide the current display content into a plurality of display areas, and analyze the display pixel information of each display area respectively to determine the pixel-level brightness information of each display area; An adjustment area determination module, used to determine the area to be adjusted in each display area based on the pixel-level brightness information of each display area; An adjustment amount determination module, used to determine the target brightness information of the area to be adjusted, and calculate the brightness adjustment amount of the area to be adjusted based on the target brightness information and pixel-level brightness information corresponding to the area to be adjusted; The brightness adjustment module is used to adjust the current display content of the area to be adjusted according to the brightness adjustment amount.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Method and device for adjusting display parameters of screen pixels

    CN121237059A

  • Methods and devices for adjusting the display parameters of screen pixels.

    CN121237059B