Adaptive adjustment method, device and equipment of display screen and storage medium
By acquiring user space images of the display screen through a camera, dividing the ambient light zones and calculating the influence weights, the problem of poor compensation effect of existing displays under ambient light is solved, and more accurate display effect compensation is achieved.
Patent Information
- Application Number
- CN202211182043.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2026-08-04
- Estimated Expiration
- 2042-09-27
AI Technical Summary
When existing displays are used in ambient light, the compensation method based on illuminance sensors does not take into account the light intensity distribution and user distribution, resulting in poor dynamic compensation performance.
The system acquires images of the viewing user's space using a camera, divides the ambient light into zones and calculates the zone exposure values, determines the distribution area and range angle of the viewing user, and adjusts the display by calculating the target backlight brightness and Gamma compensation value based on the influence weight and compensation mapping table.
It achieves more accurate display effect compensation, and by taking into account light intensity distribution and user position, it accurately locates ambient light interference sources, thereby improving screen readability.
Smart Images

Figure CN117831467B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to an adaptive adjustment method, apparatus, device, and storage medium for a display screen. Background Technology
[0002] When a display screen is used under ambient light, severe reflections from the ambient light can impair readability. To address this issue, current methods incorporate a single-point illuminance sensor within the display. This sensor automatically detects the total illuminance of the ambient light projected onto the screen and dynamically compensates for the overall screen brightness based on the total illuminance and a pre-defined mapping between illuminance and brightness, thus improving contrast. However, this method only considers the overall illuminance value and neglects the distribution of light intensity and the distribution of viewers, resulting in ineffective dynamic compensation. Summary of the Invention
[0003] The main objective of this application is to provide an adaptive adjustment method, apparatus, device, and storage medium for a display screen, aiming to solve the technical problem that current compensation methods based on illuminance sensors only consider the overall illuminance value and do not consider the distribution of light intensity or the distribution of viewing users, resulting in poor dynamic compensation effects.
[0004] To achieve the aforementioned objectives, this application proposes an adaptive adjustment method for a display screen, wherein the method is applied to a display screen equipped with a camera, and the method includes:
[0005] Acquire images of the viewing user space captured by the camera;
[0006] The ambient light zones and their respective exposure values are determined based on the preset partitioning configuration and the user space image being viewed.
[0007] The distribution area and viewing angle of the viewing users are determined based on the viewing user spatial image;
[0008] The influence weight of each ambient light zone is determined based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone.
[0009] The target backlight brightness compensation value and the target Gamma compensation value are determined based on the respective influence weights, the respective zone exposure values, and the preset compensation mapping table, and the display is adjusted according to the target backlight brightness compensation value and the target Gamma compensation value.
[0010] Furthermore, the step of determining each ambient light zone and the zone exposure value of each ambient light zone based on the preset partitioning configuration and the viewed user space image includes:
[0011] Based on the division configuration, the viewing user's spatial image is divided into sub-images to obtain various spatial sub-images;
[0012] Calculate the single-pixel exposure value for each pixel in each of the spatial sub-images;
[0013] The average value of each single pixel exposure value corresponding to the same spatial sub-image is calculated to obtain the sub-image exposure value;
[0014] The exposure values of each sub-image are normalized to obtain the partition exposure value corresponding to each spatial sub-image;
[0015] Each ambient light zone is determined based on each of the spatial sub-images.
[0016] Furthermore, the step of determining each ambient light partition based on each of the spatial sub-images includes:
[0017] One of the spatial sub-images is obtained from each of the spatial sub-images as the sub-image to be analyzed;
[0018] Determine whether the exposure value of the partition corresponding to the sub-image to be analyzed is greater than a preset exposure threshold;
[0019] If so, the partition corresponding to the sub-image to be analyzed is taken as the ambient light partition; otherwise, the partition corresponding to the sub-image to be analyzed is taken as the non-ambient light partition.
[0020] Repeat the step of obtaining one spatial sub-image from each of the spatial sub-images as the sub-image to be analyzed until the acquisition of the spatial sub-images from each of the spatial sub-images is completed.
[0021] Furthermore, the step of determining the viewing user distribution area and viewing range angle based on the viewing user spatial image includes:
[0022] Calculate the three-dimensional coordinates of each viewing user's location based on the viewing user spatial image;
[0023] The smallest rectangle containing the three-dimensional coordinates of each user's location is taken as the viewing user distribution area;
[0024] The included angle encompassing the distribution area of the viewing users is defined as the viewing range angle, wherein the vertex of the viewing range angle is the center position of the display screen.
[0025] Furthermore, after determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone, the method further includes:
[0026] Find the influence weight with the largest value from all the influence weights, and use it as the target weight;
[0027] The ambient light partition corresponding to the target weight is taken as the target partition;
[0028] The line connecting the three-dimensional coordinates of each user's location to the center of the screen is used as the viewing line;
[0029] Calculate the ambient light reflection line of the target partition with the center position of the screen as the reflection point;
[0030] The normal line connecting the center of the display screen is taken as the target normal line;
[0031] The angle between the ambient light reflection line and the target normal is calculated to obtain the ambient light reflection deviation angle.
[0032] The viewing deviation angle is obtained by calculating the angle between the viewing line and the target normal.
[0033] Subtract the viewing deviation angle from the ambient light reflection deviation angle to obtain the deviation angle difference;
[0034] Determine whether the deviation angle difference is outside the preset angle range;
[0035] If so, the three-dimensional coordinates of the user's position corresponding to the deviation angle difference value located outside the angle range are taken as the three-dimensional coordinates to be reminded. A reminder signal for finding a better viewing position is generated based on the three-dimensional coordinates to be reminded, wherein the reminder signal for finding a better viewing position is used to remind the viewing user corresponding to the three-dimensional coordinates to be reminded.
[0036] Furthermore, the step of determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone includes:
[0037] Calculate the illuminance value for each zone based on the exposure value of each zone;
[0038] Based on the viewing angle and the illuminance values of each zone, calculate the ambient light reflected energy corresponding to the distribution area of the viewing users for each ambient light zone;
[0039] The total energy value is obtained by summing up the reflected energy of each ambient light source.
[0040] The influence weight is obtained by dividing each ambient light reflection energy by the total energy value.
[0041] Furthermore, the step of determining the target backlight brightness compensation value and the target Gamma compensation value based on each of the influence weights, each of the zone exposure values, and the preset compensation mapping table includes:
[0042] The total ambient light interference illuminance value is obtained by weighted summation based on the influence weights and the exposure values of each zone.
[0043] Based on the total illuminance value of the ambient light interference, the backlight brightness compensation value is found from the compensation mapping table and used as the target backlight brightness compensation value.
[0044] Based on the total illuminance value of the ambient light interference, the Gamma compensation value is found from the compensation mapping table and used as the target Gamma compensation value.
[0045] This application also proposes an adaptive adjustment device for a display screen, the device being applied to the display screen, the display screen being equipped with a camera, the device comprising:
[0046] The image acquisition module is used to acquire images of the viewing user space captured by the camera;
[0047] An ambient light zone determination module is used to determine each ambient light zone and the zone exposure value of each ambient light zone according to a preset partitioning configuration and the viewing user space image.
[0048] The user distribution determination module is used to determine the user distribution area and viewing range angle based on the user spatial image.
[0049] The influence weight determination module is used to determine the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone.
[0050] The display adjustment module is used to determine the target backlight brightness compensation value and the target Gamma compensation value according to each of the influence weights, each of the zone exposure values and the preset compensation mapping table, and to perform display adjustment according to the target backlight brightness compensation value and the target Gamma compensation value.
[0051] This application also proposes a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described above.
[0052] This application also proposes a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in any of the preceding claims.
[0053] The adaptive adjustment method, apparatus, device, and storage medium for the display screen of this application, wherein the method determines each ambient light zone and the zone exposure value of each ambient light zone according to a preset partition configuration and the viewing user spatial image, thereby determining the overall spatial light intensity and position information; determines the viewing user distribution area and viewing range angle according to the viewing user spatial image, thereby determining the viewing user distribution information; determines the influence weight of each ambient light zone according to the viewing user distribution area, the viewing range angle, and the exposure values of each zone; determines the target backlight brightness compensation value and the target Gamma compensation value according to the influence weights, the exposure values of each zone, and a preset compensation mapping table; and performs display adjustment according to the target backlight brightness compensation value and the target Gamma compensation value. By accurately locating the ambient light interference sources that truly affect the viewing user based on the overall spatial light intensity and position information and the distribution information of the viewing user, more accurate display effect compensation is achieved. Attached Figure Description
[0054] Figure 1 This is a flowchart illustrating an adaptive adjustment method for a display screen according to an embodiment of this application.
[0055] Figure 2 This is a schematic block diagram of the structure of an adaptive adjustment device for a display screen according to an embodiment of this application;
[0056] Figure 3 This is a schematic block diagram of the structure of a computer device according to an embodiment of this application.
[0057] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0059] Reference Figure 1 This application provides an adaptive adjustment method for a display screen, the method being applied to a display screen equipped with a camera, the method comprising:
[0060] S1: Acquire the image of the viewing user space captured by the camera;
[0061] S2: Determine each ambient light zone and the zone exposure value of each ambient light zone according to the preset partitioning configuration and the viewing user space image;
[0062] S3: Determine the distribution area and viewing angle of the viewing users based on the viewing user spatial image;
[0063] S4: Determine the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone;
[0064] S5: Determine the target backlight brightness compensation value and the target Gamma compensation value based on the respective influence weights, the respective zone exposure values, and the preset compensation mapping table, and adjust the display based on the target backlight brightness compensation value and the target Gamma compensation value.
[0065] This embodiment determines each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user's spatial image, thereby determining the overall spatial light intensity and location information. It also determines the viewing user distribution area and viewing angle based on the viewing user's spatial image, thus determining the viewing user distribution information. Furthermore, it determines the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone. Finally, it determines the target backlight brightness compensation value and the target Gamma compensation value based on the influence weights, the zone exposure values, and a preset compensation mapping table. Display adjustment is then performed based on these values. By accurately locating the ambient light interference sources that truly affect the viewing user, based on the overall spatial light intensity and location information and the viewing user distribution information, more accurate display effect compensation is achieved.
[0066] For S1, the camera can capture images of the viewing user space at preset time intervals to obtain viewing user space images; the camera can also capture images of the viewing user space based on the acquired power-on signal of the display screen to obtain viewing user space images; the camera can also capture images of the viewing user space based on the acquired power-on signal of the display screen to obtain viewing user space images, and then capture images of the viewing user space at preset time intervals to obtain new viewing user space images. For each viewing user space image, steps S2 to S5 are executed.
[0067] The viewing user space is the space on the screen where the display can be viewed.
[0068] Optionally, the camera is positioned directly above the display screen, and on the center line of the vertical horizontal plane of the display screen. It is understood that the camera can also be positioned in other locations on the display screen; this is not limited to these locations.
[0069] It is understandable that the image viewed in the user space can be a single image or an image stitched together from multiple images.
[0070] For S2, according to the preset division configuration, the viewing user space image is divided into sub-images, and the area corresponding to each sub-image (that is, a partition) is taken as an ambient light partition, and the average value of the single pixel exposure value corresponding to each sub-image is taken as the partition exposure value.
[0071] Single-pixel exposure value is the exposure value of one pixel.
[0072] Optionally, the partitioning configuration can be configured as an n*m array, where n is an integer greater than 1 and m is an integer greater than 1.
[0073] Optionally, the partitioning configuration may be such that the number of pixels in each partition is less than a preset number, and that each partition has the same size.
[0074] For S3, a person detection algorithm is used to determine the three-dimensional coordinate data of the viewing user from the viewing user spatial image, and the rectangular area containing all the determined three-dimensional coordinate data is taken as the viewing user distribution area; the included angle containing the viewing user distribution area is taken as the viewing range angle, wherein the vertex of the viewing range angle is the center position of the display screen.
[0075] The center position of the screen is the location data of the center of the screen.
[0076] The range of people detection algorithms to be selected includes, but is not limited to: face recognition algorithms and human body detection algorithms.
[0077] For S4, the glare effect of ambient light on the display screen is mainly reflected in the specular reflection angle, and its interference effect on the viewing user distribution area is directly proportional to the influence weight of the ambient light zone. Therefore, based on the viewing range angle and the zone exposure value, the interference effect of the ambient light zone corresponding to the zone exposure value on the viewing user distribution area is determined.
[0078] For example, the reflected light from the ambient light in ambient light zone A1 exceeds the viewing angle, and the reflected light has a relatively small impact on the viewing user. Therefore, the influence weight of ambient light zone A1 is set to 0.1. The reflected light from the ambient light in ambient light zone A2 is the main viewing angle of the user (not exceeding the viewing angle), and the reflected light has a relatively large impact on the viewing user. Therefore, the influence weight of ambient light zone A2 is set to 1.
[0079] For S5, the total illuminance value of ambient light interference affecting the viewing user is calculated based on the influence weights and the exposure values of each zone. The target backlight brightness compensation value and the target Gamma compensation value are matched from the preset compensation mapping table based on the calculated total illuminance value of ambient light interference. Then, the display of the screen is adjusted based on the matched target backlight brightness compensation value and the target Gamma compensation value.
[0080] Gamma is a display parameter.
[0081] In one embodiment, the step of determining each ambient light zone and the zone exposure value of each ambient light zone based on a preset partitioning configuration and the viewed user space image includes:
[0082] S21: According to the division configuration, the viewing user space image is divided into sub-images to obtain each space sub-image;
[0083] S22: Calculate the single-pixel exposure value for each pixel in each of the spatial sub-images;
[0084] S23: Calculate the average value of each single pixel exposure value corresponding to the same spatial sub-image to obtain the sub-image exposure value;
[0085] S24: Normalize the exposure values of each sub-image to obtain the partition exposure value corresponding to each spatial sub-image;
[0086] S25: Determine each of the ambient light zones based on each of the spatial sub-images.
[0087] In this embodiment, the normalized sub-image exposure value is used as the partition exposure value, which is beneficial for subsequent calculations and also helps to reduce noise.
[0088] For S21, according to the division configuration, the viewing user space image is divided into sub-images, and each sub-image obtained by the division is taken as a space sub-image.
[0089] For S22, a single-pixel exposure value is calculated based on the pixel value of each pixel in each of the spatial sub-images.
[0090] For S23, the average value of each single pixel exposure value corresponding to the same spatial sub-image is calculated, and the calculated average value is used as the sub-image exposure value corresponding to the spatial sub-image.
[0091] For S24, the exposure values of each sub-image are normalized, and each data obtained by the normalization process is used as the partition exposure value corresponding to the spatial sub-image.
[0092] For S25, each spatial sub-image is treated as an ambient light partition, and the spatial sub-image is used as the partition exposure value corresponding to the ambient light partition.
[0093] In one embodiment, the step of determining each ambient light partition based on each of the spatial sub-images includes:
[0094] S251: Obtain one of the spatial sub-images as the sub-image to be analyzed from each of the spatial sub-images;
[0095] S252: Determine whether the exposure value of the partition corresponding to the sub-image to be analyzed is greater than a preset exposure value threshold;
[0096] S253: If yes, then the partition corresponding to the sub-image to be analyzed is taken as the ambient light partition; otherwise, the partition corresponding to the sub-image to be analyzed is taken as the non-ambient light partition.
[0097] S254: Repeat the step of obtaining a spatial sub-image from each of the spatial sub-images as a sub-image to be analyzed until the acquisition of the spatial sub-images from each of the spatial sub-images is completed.
[0098] In this embodiment, when the exposure value of the partition corresponding to the sub-image to be analyzed is greater than a preset exposure threshold, the partition corresponding to the sub-image to be analyzed is taken as the ambient light partition, thereby filtering out the partition with less interference and reducing the impact of noise data.
[0099] For S253, if the exposure value of the partition corresponding to the sub-image to be analyzed is greater than the preset exposure threshold, it means that the ambient light has a greater influence on the partition corresponding to the sub-image to be analyzed. Therefore, the partition corresponding to the sub-image to be analyzed is designated as the ambient light partition. Otherwise, if the exposure value of the partition corresponding to the sub-image to be analyzed is less than or equal to the preset exposure threshold, it means that the ambient light has a smaller influence on the partition corresponding to the sub-image to be analyzed. Therefore, the partition corresponding to the sub-image to be analyzed is designated as the non-ambient light partition.
[0100] For S254, the step of obtaining a spatial sub-image from each of the spatial sub-images as the sub-image to be analyzed is repeated, that is, steps S251 to S254 are repeated until the acquisition of the spatial sub-images in each of the spatial sub-images is completed; when the acquisition of the spatial sub-images in each of the spatial sub-images is completed, the classification of the partition corresponding to each spatial sub-image is completed.
[0101] In one embodiment, the step of determining the viewing user distribution area and viewing range angle based on the viewing user spatial image includes:
[0102] S31: Calculate the three-dimensional coordinates of the user's position for each user based on the user space image;
[0103] S32: The smallest rectangle containing the three-dimensional coordinates of each user's location is taken as the viewing user distribution area;
[0104] S33: The included angle encompassing the distribution area of the viewing users is taken as the viewing range angle, wherein the vertex of the viewing range angle is the center position of the display screen.
[0105] In this embodiment, the distribution information of the viewing users is determined by using the smallest rectangle containing the three-dimensional coordinates of each user's location as the viewing user distribution area, and the included angle containing the viewing user distribution area as the viewing range angle, with the vertex of the viewing range angle being the center position of the display screen.
[0106] For S31, a human detection algorithm is used to find the three-dimensional coordinates of a human body from the viewing user's spatial image. The found human body is taken as a viewing user, and the three-dimensional coordinates of the found human body are taken as the three-dimensional coordinates of the user's position.
[0107] For S32, the smallest rectangle containing the three-dimensional coordinates of each user's location is taken as the viewing user distribution area, thereby determining the area where viewing users exist.
[0108] For S33, the included angle of the viewing user distribution area is taken as the viewing range angle, and the vertex of the viewing range angle is the center position of the display screen, thereby determining the maximum viewing range in the viewing user distribution area.
[0109] In one embodiment, after determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone, the method further includes:
[0110] S61: Find the influence weight with the largest value from all the influence weights, and use it as the target weight;
[0111] S62: Use the ambient light partition corresponding to the target weight as the target partition;
[0112] S63: The line connecting each user's three-dimensional coordinates to the center of the screen is used as the viewing line;
[0113] S64: Calculate the ambient light reflection line of the target partition with the center position of the screen as the reflection point;
[0114] S65: Take the normal line connecting the center position of the display screen as the target normal line;
[0115] S66: Calculate the angle between the ambient light reflection line and the target normal to obtain the ambient light reflection deviation angle;
[0116] S67: Calculate the angle between the viewing line and the target normal to obtain the viewing deviation angle;
[0117] S68: Subtract the viewing deviation angle from the ambient light reflection deviation angle to obtain the deviation angle difference;
[0118] S69: Determine whether the deviation angle difference value is outside the preset angle range;
[0119] S610: If so, the three-dimensional coordinates of the user's position corresponding to the deviation angle difference value located outside the angle range are taken as the three-dimensional coordinates to be reminded, and a reminder signal for finding a better viewing position is generated based on the three-dimensional coordinates to be reminded, wherein the reminder signal for finding a better viewing position is used to remind the viewing user corresponding to the three-dimensional coordinates to be reminded.
[0120] This embodiment uses the three-dimensional coordinates of the user's position corresponding to the deviation angle difference value located outside the angle range as the three-dimensional coordinates to be reminded, and generates a reminder signal for finding a better viewing position based on the three-dimensional coordinates to be reminded, thereby realizing intelligent reminders and reminding the viewing user to move to the best position to improve the viewing experience.
[0121] For S61, find the influence weight with the largest value from all the influence weights, and use the found influence weight as the target weight.
[0122] For S63, the line connecting the three-dimensional coordinates of each user's position to the center position of the screen is used as the viewing line, thereby obtaining the viewing line of each user.
[0123] For S64, since the glare effect of ambient light on the display screen is mainly reflected in the mirror reflection angle, the ambient light reflection line of the target partition is calculated with the center of the screen as the reflection point. This provides a basis for quickly finding the three-dimensional coordinates of the user position where the interference causes the viewing effect to be lower than expected.
[0124] For S66, the angle between the ambient light reflection line and the target normal is calculated, and the calculated angle is used as the ambient light reflection deviation angle.
[0125] For S67, the angle between the viewing line and the target normal is calculated, and the calculated angle is used as the viewing deviation angle.
[0126] For S68, the ambient light reflection deviation angle is subtracted from the viewing deviation angle, and the resulting data is used as the deviation angle difference.
[0127] For S69, it is determined whether the deviation angle difference is outside the preset angle range, thereby determining whether the three-dimensional coordinates of the user position corresponding to the deviation angle difference are affected by the ambient light of the target partition, resulting in a viewing effect lower than expected.
[0128] It is understandable that the closer to the ambient light reflection line of the target zone, the greater the influence of the target zone.
[0129] For S610, if the deviation angle difference is outside the preset angle range, it means that the three-dimensional coordinates of the user's position corresponding to the deviation angle difference are affected by the ambient light of the target zone, resulting in a viewing effect lower than expected. Therefore, the three-dimensional coordinates of the user's position corresponding to the deviation angle difference outside the angle range are taken as the three-dimensional coordinates to be reminded. A reminder signal for finding a better viewing position is generated based on the three-dimensional coordinates to be reminded. The user corresponding to the three-dimensional coordinates to be reminded is reminded based on the reminder signal to move to the best position to improve the viewing effect.
[0130] It is understandable that if not, that is, if the deviation angle difference is within the preset angle range, it means that the three-dimensional coordinates of the user position corresponding to the deviation angle difference are affected by the ambient light of the target partition, resulting in a viewing effect that is not lower than expected.
[0131] It is understandable that repeating steps S63 to S610 will complete the notification process for all the user's three-dimensional location coordinates.
[0132] In one embodiment, the step of determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone includes:
[0133] S41: Calculate the illuminance value for each zone based on the exposure value of each zone;
[0134] S42: Based on the viewing angle and the illuminance values of each zone, calculate the ambient light reflection energy corresponding to the distribution area of the viewing users for each ambient light zone;
[0135] S43: Sum the ambient light reflection energies of each of the aforementioned energies to obtain the total energy value;
[0136] S44: Divide each of the ambient light reflection energies by the total energy value to obtain the influence weight.
[0137] Since the glare effect of ambient light on the display screen is mainly reflected in the mirror reflection angle, this embodiment determines the influence weight of each ambient light zone based on the ambient light reflection energy, which provides a basis for accurately locating the ambient light interference source that truly affects the viewing user.
[0138] For S41, based on the image imaging principle of the camera, the illuminance value of each zone is calculated according to the exposure value of each zone.
[0139] It is understood that the method for calculating the illuminance value of a zone based on the exposure value of each zone can be determined without inventive step by those skilled in the art.
[0140] For S42, ambient light reflection energy is the energy of ambient light reflected from the surface of the display screen to the area where the viewing users are distributed.
[0141] Specifically, the angle of reflection of each ambient light zone relative to the display screen is calculated as the single-zone reflection angle. If the single-zone reflection angle is less than or equal to the viewing range angle, the illuminance value of the ambient light zone corresponding to the single-zone reflection angle is converted into ambient light reflection energy. If the single-zone reflection angle is greater than the viewing range angle, the single-zone reflection angle is divided by the viewing range angle to obtain the ratio to be analyzed. The ratio to be analyzed is then searched in a preset conversion ratio table, and the searched conversion ratio is multiplied by the illuminance value of the ambient light zone corresponding to the single-zone reflection angle to obtain the adjusted illuminance value. The adjusted illuminance value is then converted into ambient light reflection energy.
[0142] Optionally, the step of calculating the angle of reflection of each ambient light zone with respect to the display screen specifically involves calculating the angle of reflection of each ambient light zone with respect to the center position of the display screen.
[0143] For S43, the ambient light reflection energy of each of the above is summed and the summed data is used as the total energy value.
[0144] For S44, each ambient light reflection energy is divided by the total energy value, and each calculated proportion is used as an influence weight.
[0145] In another embodiment of this application, the ambient light reflection energy of each of the above is normalized, and each normalized value is used as an influence weight.
[0146] In one embodiment, the steps of determining the target backlight brightness compensation value and the target Gamma compensation value based on each of the influence weights, each of the zone exposure values, and a preset compensation mapping table include:
[0147] S51: The total illuminance value of ambient light interference is obtained by weighted summation based on the influence weights and the exposure values of each zone.
[0148] S52: Based on the total illuminance value of the ambient light interference, find the backlight brightness compensation value from the compensation mapping table and use it as the target backlight brightness compensation value;
[0149] S53: Based on the total illuminance value of the ambient light interference, find the Gamma compensation value from the compensation mapping table and use it as the target Gamma compensation value.
[0150] This embodiment calculates the total ambient light interference value by weighting and summing the influence weights and the exposure values of each zone. This achieves the calculation of the total ambient light interference value based on the overall spatial light intensity and location information, as well as the distribution information of the viewing users, thereby improving the accuracy of the target backlight brightness compensation value and the target Gamma compensation value.
[0151] For S51, the total ambient light interference illuminance value is obtained by weighted summation based on the influence weights and the exposure values of each zone, and the weighted summation data is used as the total ambient light interference illuminance value.
[0152] For example, if there are 9 ambient light zones, namely 1-1, 1-2, 1-3, 2-1, 2-2, 2-3, 3-1, 3-2, and 3-3, then the influence weight corresponding to the same ambient light zone is multiplied by the zone exposure value to obtain the single zone interference illuminance value. The 9 single zone interference illuminance values corresponding to the 9 ambient light zones are added together, and the sum is used as the total ambient light interference illuminance value.
[0153] For S52, the total illuminance value of the ambient light interference is looked up from the compensation mapping table, and the backlight brightness compensation value corresponding to the found illuminance value in the compensation mapping table is used as the target backlight brightness compensation value.
[0154] For S53, the total illuminance value of the ambient light interference is searched for in the compensation mapping table, and the Gamma compensation value corresponding to the searched illuminance value in the compensation mapping table is used as the target Gamma compensation value.
[0155] Reference Figure 2 This application also proposes an adaptive adjustment device for a display screen, the device being applied to the display screen, the display screen being equipped with a camera, the device comprising:
[0156] Image acquisition module 100 is used to acquire images of the viewing user space captured by the camera;
[0157] The ambient light partition determination module 200 is used to determine each ambient light partition and the partition exposure value of each ambient light partition according to the preset partition configuration and the viewing user space image.
[0158] The user distribution determination module 300 is used to determine the user distribution area and viewing range angle based on the user spatial image.
[0159] The influence weight determination module 400 is used to determine the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone.
[0160] The display adjustment module 500 is used to determine the target backlight brightness compensation value and the target Gamma compensation value according to each of the influence weights, each of the zone exposure values and the preset compensation mapping table, and to perform display adjustment according to the target backlight brightness compensation value and the target Gamma compensation value.
[0161] This embodiment determines each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user's spatial image, thereby determining the overall spatial light intensity and location information. It also determines the viewing user distribution area and viewing angle based on the viewing user's spatial image, thus determining the viewing user distribution information. Furthermore, it determines the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone. Finally, it determines the target backlight brightness compensation value and the target Gamma compensation value based on the influence weights, the zone exposure values, and a preset compensation mapping table. Display adjustment is then performed based on these values. By accurately locating the ambient light interference sources that truly affect the viewing user, based on the overall spatial light intensity and location information and the viewing user distribution information, more accurate display effect compensation is achieved.
[0162] Reference Figure 3 This application also provides a computer device, which may be a server, and its internal structure may be as follows: Figure 3As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data such as adaptive adjustment methods for the display screen. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements an adaptive adjustment method for the display screen. The adaptive adjustment method for the display screen, applied to the display screen, which is equipped with a camera, includes: acquiring a viewing user space image captured by the camera; determining each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user space image; determining the viewing user distribution area and viewing angle based on the viewing user space image; determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone; determining a target backlight brightness compensation value and a target Gamma compensation value based on the influence weights, the exposure values of each zone, and a preset compensation mapping table; and adjusting the display based on the target backlight brightness compensation value and the target Gamma compensation value.
[0163] This embodiment determines each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user's spatial image, thereby determining the overall spatial light intensity and location information. It also determines the viewing user distribution area and viewing angle based on the viewing user's spatial image, thus determining the viewing user distribution information. Furthermore, it determines the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone. Finally, it determines the target backlight brightness compensation value and the target Gamma compensation value based on the influence weights, the zone exposure values, and a preset compensation mapping table. Display adjustment is then performed based on these values. By accurately locating the ambient light interference sources that truly affect the viewing user, based on the overall spatial light intensity and location information and the viewing user distribution information, more accurate display effect compensation is achieved.
[0164] One embodiment of this application also provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements an adaptive adjustment method for a display screen. The method is applied to the display screen, which is equipped with a camera. The method includes: acquiring a viewing user space image captured by the camera; determining each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user space image; determining a viewing user distribution area and viewing angle based on the viewing user space image; determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone; determining a target backlight brightness compensation value and a target Gamma compensation value based on the influence weights, the exposure values of each zone, and a preset compensation mapping table; and adjusting the display based on the target backlight brightness compensation value and the target Gamma compensation value.
[0165] The aforementioned adaptive adjustment method for the display screen determines each ambient light zone and its exposure value based on a preset partitioning configuration and the viewing user's spatial image, thereby determining the overall spatial light intensity and location information. It also determines the viewing user distribution area and viewing angle based on the viewing user's spatial image, thus determining the viewing user distribution information. Furthermore, it determines the influence weight of each ambient light zone based on the viewing user distribution area, the viewing angle, and the exposure values of each zone. Finally, it determines the target backlight brightness compensation value and the target Gamma compensation value based on the influence weights, the zone exposure values, and a preset compensation mapping table. Display adjustment is then performed based on these values. By accurately locating the ambient light interference sources that truly affect the viewing user, based on the overall spatial light intensity and location information and the viewing user distribution information, more accurate display effect compensation is achieved.
[0166] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0167] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0168] The above description is only a preferred embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method of adaptive adjustment of a display screen, characterized in that, The method is applied to a display screen equipped with a camera, and the method includes: Acquire images of the viewing user space captured by the camera; The ambient light zones and their respective exposure values are determined based on the preset partitioning configuration and the user space image being viewed. The distribution area and viewing angle of the viewing users are determined based on the viewing user spatial image; The illuminance value of each zone is calculated based on the exposure value of each zone; the ambient light reflection energy corresponding to the distribution area of the viewing user is calculated for each ambient light zone based on the viewing angle and the illuminance value of each zone; the total energy value is obtained by summing the total energy value of each ambient light reflection energy; the influence weight of each ambient light zone is obtained by dividing the total energy value of each ambient light reflection energy. The total ambient light interference illuminance value is obtained by weighted summation of the influence weights and the exposure values of each zone. Based on this total ambient light interference illuminance value, a backlight brightness compensation value is retrieved from a preset compensation mapping table as the target backlight brightness compensation value. Similarly, a Gamma compensation value is retrieved from the compensation mapping table as the target Gamma compensation value. Finally, display adjustment is performed based on both the target backlight brightness compensation value and the target Gamma compensation value.
2. The adaptive adjustment method for the display screen according to claim 1, characterized in that, The step of determining each ambient light zone and the zone exposure value of each ambient light zone based on the preset partitioning configuration and the viewed user space image includes: Based on the division configuration, the viewing user's spatial image is divided into sub-images to obtain various spatial sub-images; Calculate the single-pixel exposure value for each pixel in each of the spatial sub-images; The average value of each single pixel exposure value corresponding to the same spatial sub-image is calculated to obtain the sub-image exposure value; The exposure values of each sub-image are normalized to obtain the partition exposure value corresponding to each spatial sub-image; Each ambient light zone is determined based on each of the spatial sub-images.
3. The method of adaptive adjustment of a display screen according to claim 2, characterized in that, The step of determining each ambient light partition based on each of the spatial sub-images includes: One of the spatial sub-images is obtained from each of the spatial sub-images as the sub-image to be analyzed; Determine whether the exposure value of the partition corresponding to the sub-image to be analyzed is greater than a preset exposure threshold; If so, the partition corresponding to the sub-image to be analyzed is taken as the ambient light partition; otherwise, the partition corresponding to the sub-image to be analyzed is taken as the non-ambient light partition. Repeat the step of obtaining one spatial sub-image from each of the spatial sub-images as the sub-image to be analyzed until the acquisition of the spatial sub-images from each of the spatial sub-images is completed.
4. The method of adaptive adjustment of a display screen according to claim 1, wherein, The step of determining the viewing user distribution area and viewing range angle based on the viewing user spatial image includes: Calculate the three-dimensional coordinates of each viewing user's location based on the viewing user spatial image; The smallest rectangle containing the three-dimensional coordinates of each user's location is taken as the viewing user distribution area; The included angle encompassing the distribution area of the viewing users is defined as the viewing range angle, wherein the vertex of the viewing range angle is the center position of the display screen.
5. The method of adaptive adjustment of a display screen according to claim 4, characterized in that, After the step of determining the influence weight of each ambient light zone based on the viewing user distribution area, the viewing range angle, and the exposure value of each zone, the method further includes: Find the influence weight with the largest value from all the influence weights, and use it as the target weight; The ambient light partition corresponding to the target weight is taken as the target partition; The line connecting the three-dimensional coordinates of each user's location to the center of the screen is used as the viewing line; Calculate the ambient light reflection line of the target partition with the center position of the screen as the reflection point; The normal line connecting the center of the display screen is taken as the target normal line; The angle between the ambient light reflection line and the target normal is calculated to obtain the ambient light reflection deviation angle. The viewing deviation angle is obtained by calculating the angle between the viewing line and the target normal. Subtract the viewing deviation angle from the ambient light reflection deviation angle to obtain the deviation angle difference; Determine whether the deviation angle difference is outside the preset angle range; If so, the three-dimensional coordinates of the user's position corresponding to the deviation angle difference value located outside the angle range are taken as the three-dimensional coordinates to be reminded. A reminder signal for finding a better viewing position is generated based on the three-dimensional coordinates to be reminded, wherein the reminder signal for finding a better viewing position is used to remind the viewing user corresponding to the three-dimensional coordinates to be reminded.
6. An adaptive adjustment device for a display screen, characterized in that The device is applied to a display screen, the display screen being equipped with a camera, and the device includes: The image acquisition module is used to acquire images of the viewing user space captured by the camera; An ambient light zone determination module is used to determine each ambient light zone and the zone exposure value of each ambient light zone according to a preset partitioning configuration and the viewing user space image. The user distribution determination module is used to determine the user distribution area and viewing range angle based on the user spatial image. The influence weight determination module is used to calculate the illuminance value of each zone based on the exposure value of each zone; calculate the ambient light reflection energy corresponding to the distribution area of the viewing user for each ambient light zone based on the viewing range angle and the illuminance values of each zone; sum the ambient light reflection energies to obtain the total energy value; and divide each ambient light reflection energy by the total energy value to obtain the influence weight of each ambient light zone. The display adjustment module is used to perform a weighted summation based on the influence weights and the exposure values of each zone to obtain the total illuminance value of ambient light interference; based on the total illuminance value of ambient light interference, it searches for a backlight brightness compensation value from a preset compensation mapping table as the target backlight brightness compensation value; based on the total illuminance value of ambient light interference, it searches for a Gamma compensation value from the compensation mapping table as the target Gamma compensation value; and performs display adjustment based on the target backlight brightness compensation value and the target Gamma compensation value. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, which is executed by a processor, implements the steps of the method according to any one of claims 1 to 5.