Display processing method, apparatus, device, storage medium, and product
By adjusting the screen brightness based on ambient brightness and video statistics, combined with device screen brightness adjustment, the problem of overexposure in video images was solved, resulting in better display effects.
Patent Information
- Application Number
- CN202611529463.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the superposition of video brightness adjustment and device screen brightness adjustment leads to problems such as overexposure of the image and unclear text.
By acquiring the first statistical information of ambient brightness and video, the screen brightness is adjusted to obtain the first display information. Based on this information and the current screen brightness of the device, the device screen brightness is adjusted to eliminate superimposed overexposure.
It effectively eliminates the problem of superimposed overexposure caused by the inability of the device screen to perceive the result of video brightness adjustment, and achieves a more adaptive display effect for the video.
Smart Images

Figure CN123145455A_ABST
Abstract
Description
Technical Field
[0001] This article relates to the field of data processing technology, and in particular to a display processing method, apparatus, device, storage medium and product. Background Technology
[0002] With the rapid development of the internet, more and more data is reaching or interacting with users online, and the ways to reach and interact with users online are becoming increasingly diverse. Video is one of the mediums for reaching and interacting with users, and relevant data can be delivered to users by displaying videos containing relevant data. How to achieve more effective recommendations of relevant data through the effective display of primary videos is an increasingly important focus for video providers and video display providers. Summary of the Invention
[0003] In view of this, this article provides a display processing method, apparatus, device, storage medium and product for achieving effective display of a first video.
[0004] To achieve the above objectives, this paper provides the following technical solution: Firstly, this paper provides a display processing method, including: Obtain ambient brightness and first statistical information; the first statistical information is obtained by performing brightness statistics on the first video. Based on the first statistical information and the ambient brightness, the brightness of the first video is adjusted to obtain first display information; the first display information includes first pixel information; the first pixel information is obtained after the brightness adjustment. Obtain first attribute information, and based on the first display information, the first attribute information, and the ambient brightness, obtain second attribute information; the first attribute information indicates the current screen brightness, and the second attribute information indicates the first screen brightness; The first video is displayed based on the first display information, and the device screen is adjusted based on the second attribute information so that the screen brightness is the first screen brightness.
[0005] Secondly, this article provides a display processing device, including: An acquisition unit is used to acquire ambient brightness and first statistical information; the first statistical information is obtained by performing brightness statistics on the first video; An adjustment unit is configured to adjust the screen brightness of the first video based on the first statistical information and the ambient brightness to obtain first display information; the first display information includes first pixel information; the first pixel information is obtained after the screen brightness adjustment. An information obtaining unit is used to obtain first attribute information, and based on the first display information, the first attribute information, and the ambient brightness, obtain second attribute information; the first attribute information indicates the current screen brightness, and the second attribute information indicates the first screen brightness; The display unit is configured to display the first video based on the first display information, and to adjust the device screen based on the second attribute information so that the screen brightness is the first screen brightness.
[0006] Thirdly, this article provides an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program and the processor is used to cause the electronic device to implement the display processing method described in any of the above embodiments when executing the computer program.
[0007] Fourthly, this document provides a storage medium that, when the computer program is executed by a computing device, causes the computing device to implement the display processing method described in any of the above embodiments.
[0008] Fifthly, this document provides a computer program product that, when run on a computer, enables the computer to implement the display processing method described in any of the above embodiments.
[0009] The display processing method provided in this paper obtains the ambient brightness and first statistical information of the first video. Based on the first statistical information and the ambient brightness, it adjusts the screen brightness of the first video to obtain first display information. Then, it obtains first attribute information. Based on the first display information, the first attribute information, and the ambient brightness, it obtains second attribute information. Based on the first display information, it displays the first video and adjusts the device screen based on the second attribute information to make the screen brightness the first screen brightness. In this way, on the one hand, it fully considers the influence of ambient brightness and achieves effective display of the first video from the perspective of adapting to the environment; on the other hand, it refers to the screen brightness adjustment result of the first video during the device screen adjustment process to eliminate the overexposure problem caused by the individual superposition of multiple brightness levels, and achieves effective display of the first video from the perspective of better adapting to the device screen. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this description and, together with the description, serve to explain the principles herein.
[0011] To more clearly illustrate the technical solutions in this document or the prior art, the accompanying drawings that need to be called in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0012] Figure 1 A schematic diagram illustrating the implementation environment of the display processing method provided in this article; Figure 2 The flowchart of the display processing method provided in this article; Figure 3 This is a flowchart of the display processing method steps applied to a video display scenario provided in this article; Figure 4 This is a flowchart illustrating the display processing method steps for another video display scenario provided in this article. Figure 5 This is a schematic diagram of the display processing system provided in this article; Figure 6 This is a schematic diagram of the display processing device provided in this article; Figure 7 This is a schematic diagram of the electronic device provided in this article. Detailed Implementation
[0013] To better understand the objectives, features, and advantages outlined above, the solutions described herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0014] Many specific details are set forth in the following description in order to provide a full understanding of this document, but other practices may also be adopted in ways different from those described herein. Obviously, the embodiments in the specification are only a part of the embodiments described herein, and not all of them.
[0015] In this document, the words “exemplary” or “for example” are used to indicate that something is an example, illustration, or illustration. Any embodiment or design described herein as “exemplary” or “for example” should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words “exemplary” or “for example” is intended to present the relevant concepts in a specific manner. Furthermore, in the description herein, unless otherwise stated, “a plurality of” means two or more.
[0016] In practical applications, brightness adjustments in two dimensions—video image brightness adjustment and screen brightness adjustment—are cumulative during video display. Video image brightness adjustment is based on the video itself, while screen brightness adjustment is based on the user's screen brightness settings, changing the physical emitted brightness of the screen. The two do not perceive or affect each other. In this case, if the video image brightness adjustment has already sufficiently brightened the video, the device's screen adjustment module, unaware of the video image brightness adjustment result, will continue to increase the brightness. This multi-level brightness superposition can lead to overexposure of the image and / or illegible text.
[0017] Based on this, the display processing method provided in this paper adjusts the screen brightness of the first video based on the ambient brightness and the first statistical information obtained by performing brightness statistics on the first video to obtain the first display information. Then, based on the first display information, the ambient brightness, and the current screen brightness of the first device, the first screen brightness of the first device when displaying the first video is obtained. In this way, the screen brightness adjustment result of the video is perceived during the screen brightness adjustment process of the device screen, eliminating the problem of overexposure of the superimposed image caused by the inability to perceive the screen brightness adjustment result of the video during the screen brightness adjustment process of the device screen.
[0018] refer to Figure 1 As shown, Figure 1 This is a schematic diagram of the implementation environment of the display processing method provided in this article. The implementation environment includes: server 101 and first device 102; The server 101 can be a single server, a server cluster consisting of several servers, or one or more cloud servers in a cloud computing platform; in some cases, the server 101 can be used to perform brightness statistics on the first video to obtain the first statistical information of the first video. The first device 102 may specifically be a mobile phone, personal computer, tablet computer, e-book reader, VR (Virtual Reality) based information interaction device, vehicle terminal, IoT (Internet of Things) device, wearable smart device, laptop computer and desktop computer, etc.; in some cases, the first device 102 may be used to adjust the brightness of the first video and adjust the device screen.
[0019] In some cases, the first device 102 may include an ambient brightness acquisition module for acquiring ambient brightness; may include a screen brightness adjustment module for adjusting the screen brightness of the first video; and may also include a device screen adjustment module for adjusting the device screen.
[0020] Reference Figure 2 As shown, the display processing method provided in this paper includes the following steps 201 to 204: Step 201: Obtain ambient brightness and first statistical information.
[0021] The ambient brightness in this document includes the ambient light brightness of the environment in which the user or the first device is located. The aforementioned first device includes a terminal device for displaying the first video. Optionally, the first statistical information in this document can be obtained by performing brightness statistics on the first video; the first video in this document includes the next video to be displayed by the first device during the video display process. The first statistical information of the first video includes brightness statistical information obtained after performing brightness statistics on the first video. In some cases, the first statistical information of the first video may include a first statistical parameter and / or a second statistical parameter; wherein the first statistical parameter can be used to characterize the brightness standard deviation; and the second statistical parameter can be used to characterize the brightness mean. That is, in some cases, the first statistical information of the first video may include the brightness standard deviation and / or the brightness mean of the first video.
[0022] The processes of acquiring ambient brightness and acquiring the first statistical information are explained in detail below.
[0023] Step 201-1: Obtain ambient brightness.
[0024] The first device in this article can be a terminal device that includes an ambient light sensor or a terminal device that does not include an ambient light sensor.
[0025] When the first device includes an ambient light sensor, the sensor data collected by the ambient light sensor can be used as the ambient brightness.
[0026] Even when the first device does not include an ambient light sensor, the ambient brightness can be predicted based on the user's image and the device status. Therefore, a relatively effective ambient brightness can be obtained even without an ambient light sensor. In some cases, the process of obtaining ambient brightness can be achieved in the following ways: (1) Obtain user image and device status.
[0027] In some cases, ambient brightness can be determined by combining the user's image (user dimension) and the device status (device dimension); based on this, the user's image and device status can be obtained first.
[0028] The user image in this paper includes images captured by the image acquisition component of the first device at the current moment. User pose can be obtained by recognizing the user image, and the device environment can then be predicted based on the user pose. The device state in this paper can represent the charging state and / or the connection state with the wireless local area network; wherein, the charging state and / or connection state can correspond to the first device; that is, the device state can represent the charging state and / or the connection state with the wireless local area network of the first device. The device environment can be predicted based on the device state of the first device.
[0029] Acquiring a user image in this document may include calling the image acquisition component of the first device to acquire a user image at the current moment; acquiring device status in this document may include acquiring the interface status of at least one preset interface of the first device. For example, acquiring the interface status of the charging interface of the first device, and / or acquiring the interface status of the wireless local area network connection interface of the first device.
[0030] In some cases, if the charging port of the first device is in a connected state, it indicates that the first device is charging; if the charging port is in a disconnected state, it indicates that the first device is not charging. In other cases, if the Wi-Fi connection port of the first device is in a connected state, it indicates that the first device is connected to the Wi-Fi; if the Wi-Fi connection port is in a disconnected state, it indicates that the first device is not connected to the Wi-Fi.
[0031] In addition to acquiring both the user image and the device status, either the user image or the device status can be acquired to determine the ambient brightness. That is, acquiring the user image and device status can be replaced with acquiring both the user image and / or the device status.
[0032] (2) Based on the user image and device status, the device environment is obtained.
[0033] The device environment mentioned in this document can be used to characterize the environment in which the first device is located. Optionally, the device environment may include indoor and outdoor environments.
[0034] In some cases, during the process of obtaining device information based on user images and device status, the user image can be identified first to obtain the user's posture, and then the device environment can be predicted based on the user's posture and device status.
[0035] In the process of predicting the device environment based on user posture and device status, if the user posture is a stationary posture, the charging status in the device status indicates that the first device is charging, and / or the connection status of the first device to the wireless local area network indicates that the first device is connected to the wireless local area network, the device environment can be determined to be the second environment; otherwise, the device environment can be determined to be the first environment. Optionally, the first environment includes an indoor environment, and the second environment includes an outdoor environment.
[0036] In other words, during the process of predicting the device environment based on user posture and device status, it is possible to detect whether the user posture and device status meet the indoor environmental conditions; if so, the device environment is determined to be an indoor environment; if not, the device environment is determined to be an outdoor environment.
[0037] For example, indoor environmental conditions include: the user's posture is a static posture, the first device is charging and / or the first device is connected to a wireless local area network; if the identified user posture is a lying posture (static posture), the first device is charging and / or the first device is connected to a wireless local area network, it indicates that the first device is likely in an indoor environment, and the device environment can be determined as the second environment; otherwise, the device environment can be determined as the first environment.
[0038] In some cases, the aforementioned indoor environmental conditions can be identified by training a classification model with the ambient brightness level as the target, and then extracting the indoor environmental conditions from the classification model. Optionally, the ambient brightness level may include both indoor and outdoor brightness levels.
[0039] In other cases, during the process of obtaining the device environment based on the user image and device status, the user image and device status can be input into the environment recognition model, and the device environment output by the environment recognition model can be obtained. The implementation form of the environment recognition model is not limited; for example, it can be a lightweight machine learning model, a reinforcement learning model, a classification model, or other models capable of achieving environment recognition.
[0040] It should be noted that the above method of obtaining the device environment based on user image and device status can be replaced with obtaining the device environment based on user image and / or device status.
[0041] (3) Obtain the first acquisition strategy and obtain the ambient brightness based on the first acquisition strategy.
[0042] Based on the obtained device environment, a first acquisition strategy can be obtained, and the ambient brightness can be obtained based on the first acquisition strategy. Optionally, the first acquisition strategy corresponds to the device environment; thus, by obtaining the ambient brightness based on the first acquisition strategy corresponding to the device environment, and based on the device environment obtained based on the user image and / or device status, different acquisition strategies corresponding to different device environments are used to obtain the ambient brightness, thereby improving the adaptability of the obtained ambient brightness to the device environment. This avoids using the same acquisition strategy to obtain ambient brightness for different device environments, which would lead to the inability to distinguish different device environments from the ambient brightness, and consequently introduce invalid ambient brightness into the subsequent brightness adjustment process. This increases the complexity of brightness adjustment without improving the effectiveness of brightness adjustment, resulting in a waste of computing resources.
[0043] In some cases, during the process of acquiring ambient brightness based on the first acquisition strategy, in response to the device environment being the first environment, the first brightness is acquired as the ambient brightness; optionally, the first brightness may correspond to first time information; the first time information indicates the current time.
[0044] In other cases, in response to the device environment being a second environment, a first brightness and a second brightness are acquired, and the ambient brightness is obtained based on the first brightness and the second brightness. Optionally, the second brightness corresponds to the second environment.
[0045] In outdoor environments, ambient brightness varies with time of day. For example, ambient brightness is moderate to low in the morning and increases rapidly over time; it reaches its peak at midday with high light intensity; and it decays rapidly in the evening with a large gradient of brightness decrease. Based on this, time-brightness mapping data can be pre-configured according to the actual mapping relationship between time and ambient brightness to characterize the mapping relationship between different times of day and ambient brightness. When the device environment is determined to be the first environment, the first brightness mapped from the first time information can be read from the time-brightness mapping data as the ambient brightness.
[0046] Furthermore, ambient brightness varies depending on the weather. For example, ambient brightness is generally higher on sunny days than on cloudy days, and higher on cloudy days than on rainy days. Based on this, different time and brightness mapping data can be configured for different weather conditions. In response to the device environment being the first environment, the weather query interface is called to obtain weather information, the time and brightness mapping data corresponding to the weather information is obtained, and the first brightness mapped from the first time information is read from the time and brightness mapping data corresponding to the weather information as the ambient brightness.
[0047] Therefore, in outdoor environments, the ambient brightness can be determined by reading the first brightness corresponding to the first time information and / or weather information, thereby improving the convenience and efficiency of determining the ambient brightness in outdoor environments.
[0048] Furthermore, ambient brightness varies depending on geographical location. Therefore, different time and brightness mapping data can be configured for different geographical locations. In this case, responding to the device environment as the first environment, the system calls the weather query interface to obtain weather information and / or calls the location query interface to obtain the location. It then obtains the time and brightness mapping data corresponding to the location and / or weather information, and reads the first brightness mapped from the first time information from the time and brightness mapping data corresponding to the location and / or weather information as the ambient brightness.
[0049] The first brightness corresponding to the first time information can be replaced with the first brightness corresponding to the first time information, the location and / or weather information.
[0050] In an indoor environment, a second brightness corresponding to the second environment can be configured. This second brightness can be the maximum brightness configured for the indoor environment. When the device environment is the second environment, the smaller value between the first brightness corresponding to the first time information and the second brightness corresponding to the second environment can be taken as the ambient brightness. This prevents the screen brightness from being set too high during the day in an indoor environment. This utilizes both general principles (time-brightness mapping data) and incorporates a precise judgment of the device environment, improving the accuracy of the determined ambient brightness. In some cases, in response to the device environment being the second environment, the first brightness corresponding to the first time information and the second brightness corresponding to the second environment are obtained. Based on the first and second brightness, the ambient brightness is then calculated.
[0051] In the process of obtaining the ambient brightness based on the first brightness and the second brightness, the minimum value between the first brightness and the second brightness can be determined as the ambient brightness.
[0052] For example, in the case of the device environment being the second environment, the first brightness B1 mapped by the current time information can be read from the time and brightness mapping data, and the second brightness B2 corresponding to the pre-configured indoor environment can be obtained. If the first brightness B1 is less than the second brightness B2, the first brightness is determined as the ambient brightness E; if the second brightness B2 is less than the first brightness B1, the first brightness is determined as the ambient brightness E.
[0053] The above describes in detail the process of determining the device environment based on the user image and device status, and obtaining the ambient brightness based on the first acquisition strategy corresponding to the device environment. In other cases, it may not be necessary to consider the device environment; during the process of obtaining the ambient brightness, the first brightness corresponding to the first time information can be obtained as the ambient brightness; or, the ambient brightness corresponding to the first time information, weather information, and / or location can be obtained.
[0054] Step 201-2: Obtain the first statistical information.
[0055] In some cases, the first statistical information of the first video sent by the server can be obtained. Optionally, the first statistical information can be obtained by performing brightness statistics on the first video.
[0056] During the transcoding stage, the server can brighten dark areas of the first video to increase video detail and darken bright areas to reduce overexposure, obtaining second display information of the processed first video. Then, based on this second display information, brightness statistics are performed on the first video to obtain first statistical information.
[0057] In some cases, the server obtains the video bitstream of the first video, decodes the video bitstream to obtain the video frame pixel value of each video frame, identifies the video frame pixel value, obtains the dark and bright parts of each video frame, brightens the dark parts of the video frame, and darkens the bright parts of the video frame to obtain the processed video frame pixel value as the second display information.
[0058] In the process of identifying pixel values in video frames and obtaining the dark and bright areas of each video frame, the brightness distribution of pixels within the frame can be statistically analyzed based on a frame-adaptive brightness processing algorithm. The dark and bright areas of the image can be determined based on the brightness distribution. The frame-adaptive brightness processing algorithm adaptively determines the dark area division threshold, the bright area division threshold, and the pixel mapping curve based on the image content of each frame. Areas with pixel values less than the dark area division threshold can be identified as dark areas of the video frame, and areas with pixel values greater than the bright area division threshold can be identified as bright areas of the video frame. The pixel values of the dark areas of the video frame are brightened, and the pixel values of the bright areas of the video frame are darkened, obtaining new pixel values for each video frame as secondary display information.
[0059] In some cases, brightening and darkening involve a non-linear mapping of pixel brightness values: a larger gain is applied to the darker areas of the video frame to bring back details, while a smaller gain or negative gain is applied to the brighter areas to suppress overexposure, while the midtones remain largely unchanged. The mapping curve is adaptively calculated by the algorithm based on the content of each frame, and is not a globally fixed curve.
[0060] In the process of performing brightness statistics on the first video based on the second display information to obtain the first statistical information, the brightness of each video frame can be calculated first, and then the mean brightness and standard deviation of brightness can be calculated based on the brightness of each video frame.
[0061] For example, for the RGB (Red-Green-Blue) pixel values of the i-th video frame, the video frame brightness of the i-th video frame is calculated using the standard relative brightness formula. The product of the first weight and the first component is calculated to obtain the first product. The product of the second weight and the second component is calculated to obtain the second product. The product of the third weight and the third component is calculated to obtain the third product. The sum of the first product, the second product, and the third product is calculated as the video frame brightness. Here, the first component can be the red component, the first weight can be a1, the second component can be the green component, the second weight can be a2, the third component can be the blue component, and the third weight can be a3.
[0062] Furthermore, based on the brightness of each video frame, the mean brightness and standard deviation of brightness are calculated as the first statistical information.
[0063] After obtaining the second display information and the first statistical information of the first video, the server can send the second display information and / or the first statistical information to the first device. The display processing method provided herein can be applied to the first device.
[0064] The calculation of the first statistical information is performed by the server, eliminating the need for the first device to perform the calculation, thus improving the processing convenience of the first device.
[0065] In other scenarios, during the process of obtaining the first statistical information of the first video, the first device can obtain the second display information of the first video sent by the server, and perform brightness statistics on the first video based on the second display information to obtain the first statistical information. Specifically, the process by which the first device performs brightness statistics on the first video based on the second display information to obtain the first statistical information is similar to the process by which the server performs brightness statistics on the first video based on the second display information to obtain the first statistical information, and can be referred to the relevant content above, and will not be repeated here.
[0066] It should be noted that the system can simultaneously acquire ambient brightness and first statistical information of the first video, and can also acquire ambient brightness in response to acquiring the first statistical information of the first video; this is not limited here.
[0067] Step 202: Based on the first statistical information and ambient brightness, adjust the screen brightness of the first video to obtain the first display information.
[0068] Based on the obtained ambient brightness and first statistical information of the first video, the screen brightness of the first video is adjusted according to the first statistical information and ambient brightness to obtain first display information. Optionally, the first display information includes pixel information, i.e., pixel values, obtained after adjusting the screen brightness of the first video.
[0069] This article describes the adjustment of the brightness of the first video, including dynamically adjusting the display brightness of the first video to make dark videos easier to see and bright videos retain details.
[0070] In some cases, during the process of adjusting the brightness of a first video based on first statistical information and ambient brightness to obtain first display information, a first adjustment parameter can first be obtained based on the first statistical information and ambient brightness. Then, the second display information of the first video can be acquired, and the brightness of the second display information can be adjusted based on the first adjustment parameter to obtain the first display information. Optionally, the second display information includes second pixel information; wherein, the second pixel information can be the pixel information before the brightness adjustment.
[0071] In the process of obtaining the first adjustment parameter based on the first statistical information and ambient brightness, the first influence factor can be obtained based on the first statistical information, and the second influence factor can be obtained based on the ambient brightness. The first influence index can be obtained based on the first influence factor and the second influence factor. The index truncation condition is obtained, and the first influence index is truncated based on the index truncation condition to obtain the first adjustment parameter.
[0072] (1) The first influencing factor mentioned above includes a video brightness influencing factor; in the process of obtaining the first influencing factor based on the first statistical information, a first truncation condition, a first index and a first reference value can be obtained; the mean brightness value is extracted from the first statistical information; the first influencing factor is obtained based on the first truncation condition, the first index, the mean brightness value and the first reference value; in the process of obtaining the first influencing factor based on the first truncation condition, the first index and the first reference value can be calculated as the first sub-factor, and the first sub-factor is truncated based on the first truncation condition to obtain the first influencing factor.
[0073] In the process of truncating the first sub-factor based on the first truncation condition to obtain the first impact factor, it can be detected whether the first sub-factor is less than the minimum value in the first truncation condition. If so, the minimum value in the first truncation condition is determined to be the first impact factor; if not, it can be detected whether the first sub-factor is greater than the maximum value in the first truncation condition. If so, the maximum value in the first truncation condition is determined to be the first impact factor; if not, the first sub-factor is determined to be the first impact factor.
[0074] Optionally, the first truncation condition includes a truncation condition for truncating the first sub-factor; the first truncation condition, the first reference value, and the first exponent can be pre-configured; the first reference value can be a pre-configured center point of the video brightness response. The first exponent can be used to control the intensity of the video brightness response.
[0075] By calculating the ratio of the first reference value to the average brightness value, when the average brightness value of the first video is higher than the center point of the video brightness response, the ratio is less than 1, and the video tends to be darkened; when the average brightness value is lower than the center point of the video brightness response, the ratio is greater than 1, and the video tends to be brightened. In this way, the brightness of different videos is more balanced and brightness jumps are avoided during video switching.
[0076] (2) The aforementioned second influencing factor includes the environmental brightness influencing factor; in the process of obtaining the second influencing factor based on environmental brightness, the second cutoff condition, the second index, and the second reference value can be obtained; the second influencing factor is obtained based on the second cutoff condition, the second index, environmental brightness, and the second reference value. In the process of obtaining the second influencing factor based on the second cutoff condition, the second index, environmental brightness, and the second reference value, the second exponent of the ratio of environmental brightness to the second reference value can be calculated as the second sub-factor, and the second sub-factor is truncated based on the second cutoff condition to obtain the second influencing factor.
[0077] In the process of truncating the second sub-factor based on the second truncation condition to obtain the second influence factor, it can be detected whether the second sub-factor is less than the minimum value in the second truncation condition. If so, the minimum value in the second truncation condition is determined to be the second influence factor; if not, it can be detected whether the second sub-factor is greater than the maximum value in the second truncation condition. If so, the maximum value in the second truncation condition is determined to be the second influence factor; if not, the second sub-factor is determined to be the second influence factor.
[0078] Optionally, the second-stage conditions include a truncation condition for truncating the second sub-factor; the second truncation condition, the second reference value, and the second exponent can be pre-configured; the second reference value can be a pre-configured ambient brightness response center point. The second exponent can be used to control the intensity of the ambient brightness response.
[0079] By calculating the ratio of ambient brightness to a second reference value, when the ambient brightness is higher than the center point of the ambient brightness response, the ratio is greater than 1, indicating a tendency to increase video brightness to maintain visibility; when the ambient brightness is lower than the center point of the ambient brightness response, the ratio is less than 1, indicating a tendency to decrease video brightness to avoid glare. Ambient brightness in this article can refer to ambient light intensity.
[0080] Optionally, when the first and second indices are 0, it indicates no response; when they are 1, it indicates a linear response; and when they are greater than 1, it indicates a more intense response.
[0081] Based on the first and second impact factors obtained above, a first impact index can be derived. In some cases, the product of the first and second impact factors can be used as the first impact index. Based on the first influencing indicator, the indicator truncation condition can be obtained. Based on the indicator truncation condition, the first influencing indicator is truncated to obtain the first adjustment parameter. Thus, given the first influencing indicator, the first influencing indicator is truncated based on the indicator truncation condition, making the adjustment range corresponding to the obtained first adjustment parameter safe and controllable.
[0082] In the process of truncating the first influencing indicator based on the indicator truncation condition to obtain the first adjustment parameter, it can be detected whether the first influencing indicator is less than the minimum value in the indicator truncation condition. If so, the minimum value in the indicator truncation condition is determined to be the first adjustment parameter; if not, it can be detected whether the first influencing indicator is greater than the maximum value in the indicator truncation condition. If so, the maximum value in the indicator truncation condition is determined to be the first adjustment parameter; if not, the first influencing indicator is determined to be the first adjustment parameter.
[0083] It should be noted that the first index, second index, first reference value, second reference value, minimum and maximum values in the first cutoff condition, minimum and maximum values in the second cutoff condition, and minimum and maximum values in the indicator cutoff condition mentioned above can all be configured according to actual needs, and no restrictions are imposed here.
[0084] Based on the first adjustment parameter, the brightness of the second display information of the first video can be adjusted according to the first adjustment parameter to obtain the first display information. After adjusting the brightness of the second display information of the first video based on the first adjustment parameter to obtain the first display information, the product of the first adjustment parameter and the second display information can be calculated to obtain the first display information.
[0085] In other cases, during the process of adjusting the screen brightness of the first video based on the first statistical information and ambient brightness to obtain the first display information, it can be detected whether the ambient brightness is obtained through prediction, that is, whether the first device is equipped with an ambient light sensor. If so, the first adjustment parameter is first obtained based on the first statistical information and ambient brightness, then the second display information of the first video is obtained, and the brightness of the second display information is adjusted based on the first adjustment parameter to obtain the first display information; if not, the first adjustment parameter is obtained based on the first statistical information, and the brightness of the second display information is adjusted based on the first adjustment parameter to obtain the first display information.
[0086] In the process of obtaining the first adjustment parameter based on the first statistical information, the first influencing factor can be obtained as the first influencing indicator based on the first statistical information, the indicator truncation condition can be obtained, and the first influencing indicator can be truncated based on the indicator truncation condition to obtain the first adjustment parameter.
[0087] In some cases, after obtaining the first display information, the first video can be identified, and the video category can be obtained. If the video category is the first category, step 203 is executed to obtain the first attribute information. Based on the first display information, the first attribute information, and the ambient brightness, the second attribute information is obtained. If the first video is the second category, the mask transparency can be adjusted, and the first video can be displayed based on the first display information. During the display of the first video, the mask is displayed based on the mask transparency, without the need for screen brightness adjustment.
[0088] The first category mentioned above is used to indicate the category of advertising videos for providing services and / or data recommendations; the second category mentioned above is used to indicate the category of user videos sent by users.
[0089] Step 203: Obtain the first attribute information, and based on the first display information, the first attribute information, and the ambient brightness, obtain the second attribute information.
[0090] Optionally, the first attribute information indicates the current screen brightness of the first device, and the second attribute information indicates the first screen brightness of the first device; the first screen brightness includes the screen brightness when displaying the first video. In this document, screen brightness can refer to screen brightness levels.
[0091] The above describes the process of adjusting the screen brightness of the first video. Based on this, second attribute information for adjusting the screen brightness of the first device is obtained based on the first display information and the ambient brightness. Thus, by introducing the first display information, the screen brightness of the first device when displaying the first video is determined, so that the screen brightness adjustment is based on the screen brightness adjustment of the first video, avoiding overexposure caused by blindly stacking multiple brightness levels.
[0092] In some cases, the process of obtaining second attribute information based on first display information, first attribute information, and ambient brightness can be achieved through the following process: Step 203-1: Based on the first display information, ambient brightness, and first attribute information, obtain the first parameter.
[0093] Optionally, the first parameter is used to indicate the user's perceived brightness level from at least one dimension. This at least one dimension may include a screen emission dimension, an ambient reflection dimension, and a user incident dimension.
[0094] In some cases, during the process of obtaining the first parameter based on the first display information, ambient brightness, and first attribute information, the process can involve: on the one hand, obtaining first mapping data based on the first attribute information; and on the other hand, obtaining a first sub-brightness based on the first mapping data and the first display information, where the first sub-brightness can be used to characterize the brightness output by the device screen, i.e., the screen's emitted brightness; and on the other hand, obtaining a second sub-brightness based on the ambient brightness, where the second sub-brightness can be used to characterize the brightness reflected by ambient light illuminating the device screen, i.e., the ambient reflected brightness or the ambient equivalent occlusion brightness. Based on this, a first reference brightness is obtained based on the first and second sub-brightnesses, where the first reference brightness is used to characterize the brightness perceived by the user, i.e., the user's retinal equivalent stimulation. Finally, the first mapping data, the first sub-brightness, the second sub-brightness, and the first reference brightness are used as the first parameter. Optionally, the first mapping data indicates a monotonic mapping of the first attribute information value to a preset attribute threshold.
[0095] The determination process of the first sub-brightness, the second sub-brightness, and the first reference brightness will be explained in detail below.
[0096] (1) First sub-brightness.
[0097] In some cases, during the process of determining the first sub-brightness, first mapping data is obtained based on the first attribute information, and the first sub-brightness is obtained based on the first mapping data and the first display information.
[0098] In the process of obtaining the first mapping data based on the first attribute information, a pre-configured monotonic mapping from the first attribute information to a preset attribute threshold can be obtained as the first mapping information. The first attribute information includes the current screen brightness level of the first device. The preset attribute threshold includes the peak value of the screen brightness level. Monotonic mappings from different current screen brightness levels to the preset attribute threshold can be pre-configured.
[0099] Based on the first mapping data, and using the first display information, a first sub-brightness is obtained. In obtaining the first sub-brightness based on the first mapping data and the first display information, the first display information can first be normalized to obtain first reference data. Then, based on the electro-optical conversion function, the first reference data is electro-optically converted to obtain second reference data. The product of the first mapping data and the second reference data is then calculated as the first sub-brightness.
[0100] In the process of performing electro-optic conversion on the first reference data based on the electro-optic conversion function to obtain the second reference data, the electro-optic conversion can be achieved by using a power-law approximation method. The power-law approximation takes the first reference data as a power of a preset conversion parameter to obtain the second reference data. The preset conversion parameter is a gamma value. In some cases, the value of the preset conversion parameter can be configured according to actual needs, and is not limited here.
[0101] (2) Second sub-brightness.
[0102] In the process of obtaining the second sub-brightness based on the ambient brightness, the ambient brightness can be logarithmically suppressed to obtain the second sub-brightness.
[0103] In some cases, when obtaining the second sub-brightness based on the ambient brightness, the ratio of the ambient brightness to the first constant can be calculated first, then the logarithm of the sum of the first preset value and the ratio can be calculated, and finally the product of the second constant and the logarithm can be used as the second sub-brightness. In this way, the characteristics of the human eye being less sensitive to changes in brightness in strong light environments and more sensitive in weak light environments can be reflected through the second sub-brightness.
[0104] The first and second constants mentioned above can be configured according to actual needs, and are not limited here. The first preset value can be 1.
[0105] (3) First reference brightness.
[0106] Based on the first and second sub-brightness obtained above, a first reference brightness can be obtained. Then, by combining the first sub-brightness in the screen dimension and the second sub-brightness in the environment dimension, the brightness perceived by the user can be predicted.
[0107] In some cases, during the process of obtaining the first reference brightness based on the first sub-brightness and the second sub-brightness, the sum of the first sub-brightness and the second sub-brightness can be calculated as the first reference brightness.
[0108] The above describes in detail the process of determining the first sub-brightness, the second sub-brightness, and the first reference brightness. Based on obtaining the first sub-brightness, the second sub-brightness, and the first reference brightness, the first sub-brightness, the second sub-brightness, and the first reference brightness are used as the first parameter.
[0109] Step 203-2: Obtain the associated video and obtain the second linear brightness and the second parameter.
[0110] In addition to obtaining the first parameter of the first video, a related video can also be introduced, and the second linear brightness and second parameter of the related video can be obtained. Optionally, the related video is related to the first video and may include the previous displayed video of the first video. Alternatively, the second linear brightness and second parameter may correspond to the related video.
[0111] The second linear brightness of the aforementioned associated video can be either the average brightness of the associated video or the second reference data corresponding to the associated video; no limitation is made here. The second parameter of the associated video may include at least the second reference brightness of the associated video. The determination process of the second reference brightness is similar to that of the first reference brightness mentioned above, and can be referred to the relevant content above, so it will not be repeated here.
[0112] In addition to obtaining the second linear brightness of the associated video, the first linear brightness of the first video can also be obtained. The first linear brightness can be the average brightness of the first video or the second reference data corresponding to the first video, and there is no limitation here. It should be noted that the first linear brightness and the second linear brightness must be consistent; for example, if the first linear brightness is the average brightness of the associated video, the second linear brightness is the average brightness of the first video; if the first linear brightness is the second reference data corresponding to the associated video, the second linear brightness is the second reference data corresponding to the first video.
[0113] Step 203-3: Based on the first parameter, the second linear brightness, the second parameter, and the first linear brightness, obtain the second attribute information.
[0114] In some cases, during the process of obtaining the second attribute information based on the first parameter, the second linear brightness, the second parameter, and the first linear brightness, the second reference brightness can be extracted from the second parameter first, the third influence factor can be obtained based on the first reference brightness and the second reference brightness, and the second attribute information can be obtained based on the first mapping data, the second sub-brightness, the first linear brightness, the second linear brightness, and the third influence factor.
[0115] In the process of obtaining the third influence factor based on the first and second reference brightness, the ratio of the difference between the first and second reference brightness to the second reference brightness can be calculated as the third influence factor.
[0116] In the process of obtaining the second attribute information based on the first mapping data, the second sub-brightness, the first linear brightness, the second linear brightness, and the third influence factor, the product of the sum of the first preset value and the third influence factor and the first mapping data and the second linear brightness can be calculated. The product of the third influence factor and the second sub-brightness can be calculated, and the ratio of the sum of the above two products to the second linear brightness can be calculated as the second mapping data. The screen brightness corresponding to the second mapping data is then obtained as the second attribute information.
[0117] The generation of the aforementioned second attribute information is used for automatic screen brightness adjustment. To avoid conflicts between automatic adjustment and user intent, first user setting information is obtained, and it is detected whether the time difference between the setting time information in the first user setting information and the first time information exceeds a first time threshold. If not, step 203 can be skipped, and the first attribute information is obtained. Based on the first display information, the first attribute information, and the ambient brightness, the second attribute information is obtained. If yes, step 203 is executed, the first attribute information is obtained, and based on the first display information, the first attribute information, and the ambient brightness, the second attribute information is obtained. The aforementioned first user setting information includes relevant information from the user's last screen brightness adjustment.
[0118] Furthermore, before obtaining the first attribute information and, based on the first display information, the first attribute information, and the ambient brightness, obtaining the second attribute information, it is also possible to obtain the third attribute information and / or the generation time information corresponding to the third attribute information; based on the second attribute information and the third attribute information, obtain the attribute difference; and / or based on the first time information and the generation time information, obtain the time difference; detect whether the time difference meets the attribute adjustment time condition, and / or detect whether the attribute difference meets the attribute adjustment difference condition; if yes, execute step 203 to obtain the first attribute information and, based on the first display information, the first attribute information, and the ambient brightness, obtain the second attribute information. If no, no processing is required.
[0119] In the process of detecting whether the time difference meets the attribute adjustment time condition, it can be detected whether the time difference exceeds the second time threshold. If so, it is determined that the attribute adjustment time condition is met; otherwise, it is determined that the attribute adjustment time condition is not met. In the process of detecting whether the attribute difference meets the attribute adjustment difference condition, it can be detected whether the attribute difference exceeds the attribute difference threshold. If so, it is determined that the attribute adjustment difference condition is met; otherwise, it is determined that the attribute adjustment difference condition is not met.
[0120] The above describes the process of adjusting the brightness of the first video and the screen of the first device. In some cases, the transparency of the overlay can also be adjusted to effectively display the text information in the first video. In some cases, adjusting the transparency of the overlay can be achieved through the following process: (1) Obtain the first video brightness and the mask brightness.
[0121] The brightness of the aforementioned mask can be pre-configured. Optionally, the brightness of the first video can correspond to the brightness of the first video.
[0122] In the process of obtaining the first video brightness of the first video, a first statistical parameter can be extracted from the first statistical information firstly, and then a first detection can be performed on the first video based on the first statistical parameter. In response to the first detection passing, a second statistical parameter can be extracted from the first statistical information as the first video brightness; in response to the first detection failing, the first video brightness can be obtained based on the first display information. Optionally, the first statistical parameter is used to characterize the brightness standard deviation; the second statistical parameter is used to characterize the brightness mean.
[0123] The first detection mentioned above is used to detect the degree of brightness fluctuation, that is, to detect the degree of brightness fluctuation of the first video. Thus, for the first video with a small degree of brightness fluctuation, that is, the first statistical parameter is less than the detection threshold, that is, the first video that passes the first detection, the second statistical parameter can be extracted from the first statistical information as the brightness of the first video. Thus, when the degree of brightness fluctuation is small, the average brightness can effectively represent the brightness of the video, and the brightness of the first video can be extracted from the first statistical information without the need for complex calculations, thereby improving the efficiency of obtaining the brightness of the first video and saving computing resources. For the first video with large brightness fluctuations, that is, the first statistical parameter is greater than or equal to the detection threshold, i.e., the first video that fails the first detection, the brightness of the first video is obtained based on the first display information. Since the brightness of the first video has a large impact on the screen brightness adjustment when the brightness fluctuates greatly, the brightness of the first video can be obtained based on the first display information, thereby improving the accuracy of the obtained brightness of the first video.
[0124] In some cases, during the process of obtaining the first video brightness based on the first display information, the average brightness can be calculated as the first video brightness based on the first display information. The process of calculating the average brightness based on the first display information is similar to the process of calculating the average brightness based on the second display information described above, and will not be repeated here.
[0125] In other cases, during the process of obtaining the first video brightness based on the first display information, frames can be extracted from the first display information to obtain key display information of key video frames. The average brightness is then calculated based on the key display information as the first video brightness. In this way, by calculating the average brightness based on the key display information of key video frames after frame extraction, it is not necessary to calculate the average of the global second display information, thus improving the calculation efficiency.
[0126] (2) The brightness of the first video and the brightness of the mask are fused to obtain the fused brightness.
[0127] Based on the obtained first video brightness and mask brightness, the first video brightness and mask brightness are fused to obtain the fused brightness.
[0128] In the process of fusing the brightness of the first video and the brightness of the mask to obtain the fused brightness, a pre-configured brightness weight can be obtained. Based on the first preset value and the brightness weight, the first weight is calculated, and the brightness weight is used as the second weight. Based on the first weight, the first video brightness, the second weight, and the mask brightness, the fused brightness is obtained.
[0129] In the process of calculating the first weight based on the first preset value and the brightness weight, the difference between the first preset value and the brightness weight can be calculated as the first weight.
[0130] In the process of obtaining the fused brightness based on the first weight, the first video brightness, the second weight, and the mask brightness, the sum of the product of the first weight and the first video brightness and the product of the second weight and the mask brightness can be calculated as the fused brightness.
[0131] (3) Obtain text brightness and obtain brightness contrast based on text brightness and blend brightness.
[0132] Based on the obtained fused brightness, the text brightness corresponding to the first video can be obtained. The brightness contrast is then calculated based on the text brightness and the fused brightness. Optionally, the text brightness is used to characterize the brightness of the text in the first video. Specifically, the text brightness is 1 when the text is white; for other colors, the corresponding text brightness can be pre-configured. During the process of obtaining the text brightness, the corresponding text brightness can be obtained based on the text color in the first video.
[0133] In the process of obtaining the brightness contrast based on text brightness and blend brightness, the ratio of text brightness to blend brightness can be calculated as the brightness contrast; alternatively, the ratio of the sum of text brightness and a second preset value to the sum of blend brightness and a second preset value can also be calculated as the brightness contrast, without limitation. The second preset value can be 0.05.
[0134] (4) Based on the brightness contrast and the first video brightness, obtain the mask transparency, and display the mask based on the mask brightness and the mask transparency.
[0135] In the process of obtaining the brightness contrast and the first video brightness, and obtaining the mask transparency, the difference between the product of the brightness contrast and the sum of the first video brightness and the second value and the third preset value can be calculated, and the ratio of this difference to the product of the brightness contrast and the first video brightness can be used as the mask transparency.
[0136] The mask transparency is calculated using the above method to maintain the original brightness and color vibrancy of the first video to the maximum extent possible while ensuring text readability. For videos that are too bright or whitish, the mask is automatically increased to ensure readability; for videos that are too dark or blackish, the mask is automatically decreased to improve image fidelity.
[0137] Based on the obtained mask transparency, the mask can be displayed during the display of the first video, based on the mask brightness and mask transparency.
[0138] In some cases, during the display of a mask, the mask display position can be determined based on the text position in the first video, and the mask can be displayed at the mask display position based on the mask brightness and mask transparency.
[0139] It should be noted that the text brightness may vary in different video frames within the first video. Therefore, the mask transparency can be calculated for each video frame. The specific calculation method is similar to the process described above, and will not be repeated here.
[0140] Step 204: Display the first video based on the first display information, and adjust the device screen based on the second attribute information to make the screen brightness the first screen brightness.
[0141] Based on the first display information and the second attribute information obtained above, a first video can be displayed based on the first display information, and the device screen can be adjusted based on the second attribute information. Optionally, the device screen is the screen of a first device.
[0142] That is: display the first video based on the first display information, and adjust the device screen based on the second attribute information while displaying the first video.
[0143] Given the obtained mask transparency, the mask can also be displayed based on the mask brightness and mask transparency when displaying the first video.
[0144] After the first video is displayed, a second video can be displayed. Optionally, the second video includes the next video to be displayed after the first video. In some cases, second statistical information can be obtained. Based on the second statistical information and ambient brightness, the screen brightness of the second video is adjusted to obtain third display information. The second video is then displayed based on the third display information, and the device screen is adjusted based on the first attribute information to achieve the current screen brightness. Thus, after displaying the first video of the first type with the second attribute information, the display of the second video of the second type is restored to the first attribute information. Optionally, the second attribute information can be greater than the first attribute information, thereby achieving the recommendation of the first video of the first type and improving the conversion rate of the first video. Alternatively, the second statistical information can be obtained by performing brightness statistics on the second video.
[0145] In summary, the display processing method presented in this paper employs a chain-like, multi-level brightness collaborative adjustment where the output of the pre-stage acts as the input of the subsequent stage, and each stage shares the ambient brightness, eliminating overexposure and unreadable text caused by multi-stage gain superposition. It introduces a unified ambient brightness, ensuring that each stage adjusts in the same direction. For the first video in the first category, it combines relevant information from the previous displayed video to determine the second attribute information during the display process of the first video, resulting in a natural brightness transition when the video stream slides up and down, thus improving the user's perception of the first video in the first category and increasing conversion rates.
[0146] The following example, using a video display scenario as an example, further illustrates the display processing method provided in this paper. Figure 3 As shown, a display processing method applied to a video display scenario includes the following steps.
[0147] Step 301: Obtain the ambient brightness and the first statistical information of the first video.
[0148] Step 302: Based on the first statistical information and ambient brightness, adjust the screen brightness of the first video to obtain the first display information.
[0149] Step 303: Based on the first display information, obtain the first linear brightness and acquire the associated video information of the first video.
[0150] Optionally, the associated video information includes the second linear brightness and second parameter of the associated video of the first video.
[0151] Step 304: Obtain the first attribute information, and based on the first display information, the first attribute information, the associated video information, and the ambient brightness, obtain the second attribute information.
[0152] Step 305: Obtain the first video brightness and text brightness of the first video, and obtain the mask brightness of the mask layer.
[0153] Step 306: Obtain the mask transparency based on the first video brightness, text brightness, and mask brightness.
[0154] In some cases, steps 305 to 306 may be executed after steps 303 to 304, before steps 303 to 304, or simultaneously with steps 303 to 304; no limitation is made here.
[0155] Step 307: Display the first video based on the first display information.
[0156] Step 308: When displaying the first video, adjust the device screen based on the second attribute information, and configure the mask for the first video based on the mask brightness and mask transparency.
[0157] It should be noted that any one or more of steps 301 to 308 can be combined with any one or more of steps 201 to 204 to form a new implementation method according to the needs of implementation and deployment. In addition, any one or more technical features can be selected in steps 301 to 308 and combined with any one or more technical features provided in steps 201 to 204 to form a new implementation method according to the actual deployment needs. Alternatively, any one or more technical features in steps 301 to 308 can also be replaced with any one or more technical features provided in steps 201 to 204 to form a new implementation method according to the actual deployment needs. These will not be elaborated on here.
[0158] The following example, using the application of the display processing method provided in this paper in another video display scenario, further illustrates the display processing method provided in this paper. Figure 4 As shown, a display processing method applied to another video display scenario specifically includes the following steps.
[0159] Step 401: Obtain the ambient brightness and the first statistical information of the first video.
[0160] Step 402: Based on the first statistical information and ambient brightness, adjust the screen brightness of the first video to obtain the first display information.
[0161] Step 403: Identify the first video and obtain its video category.
[0162] Step 404: Detect whether the video category of the first video is the first category; If so, proceed to steps 405 to 410; If not, proceed to steps 407 to 410.
[0163] Step 405: Obtain the first linear brightness based on the first display information, and acquire the associated video information of the first video.
[0164] Optionally, the associated video information includes the second linear brightness and second parameter of the associated video of the first video.
[0165] Step 406: Obtain the first attribute information, and based on the first display information, the first attribute information, the associated video information, and the ambient brightness, obtain the second attribute information.
[0166] Step 407: Obtain the brightness of the first video and the brightness of the text in the first video, and obtain the brightness of the mask layer.
[0167] Step 408: Obtain the mask transparency based on the first video brightness, text brightness, and mask brightness.
[0168] In some cases, steps 407 to 408 may be executed after steps 405 to 406, before steps 405 to 406, or simultaneously with steps 405 to 406; no limitation is made here.
[0169] Step 409: Display the first video based on the first display information.
[0170] Step 410: When displaying the first video, adjust the device screen based on the second attribute information, and configure the mask for the first video based on the mask brightness and mask transparency.
[0171] It should be noted that any one or more of steps 401 to 410 can be combined with any one or more of steps 201 to 204 to form a new implementation method according to the needs of implementation and deployment. In addition, any one or more technical features can be selected in steps 401 to 410 and combined with any one or more technical features provided in steps 201 to 204 to form a new implementation method according to the actual deployment needs. Alternatively, any one or more technical features in steps 401 to 410 can also be replaced with any one or more technical features provided in steps 201 to 204 to form a new implementation method according to the actual deployment needs. These will not be elaborated on here.
[0172] This article provides a display processing system. Figure 5 This is a schematic diagram of the display processing system, as shown below. Figure 5 As shown, the display processing system includes: server 501 and device 502; In some cases, server 501 can be used to perform brightness statistics on the first video, obtain the first statistical information of the first video, and send it to device 502.
[0173] The device 502 includes an ambient brightness acquisition module 502-1, a screen brightness adjustment module 502-2, and a device screen adjustment module 502-3. The ambient brightness acquisition module 502-1 acquires the ambient brightness. The screen brightness adjustment module 502-2 adjusts the screen brightness of the first video based on first statistical information and ambient brightness to obtain first display information; it can also be used to display the first video based on the first display information. The device screen adjustment module 502-3 acquires first attribute information and obtains second attribute information based on the first display information, the first attribute information, and ambient brightness; it can also be used to adjust the device screen based on the second attribute information when displaying the first video, so that the screen brightness is the first screen brightness. In addition, the device 502 may also include a mask transparency adjustment module 502-4, which is used to obtain the mask transparency based on the first video brightness and text brightness of the first video, as well as the mask brightness, and is also used to display the mask based on the mask brightness and mask transparency.
[0174] In addition, in other cases, server 501 can be used to obtain second display information of the first video and send the second display information to device 502; correspondingly, device 502 may also include a brightness statistics module for performing brightness statistics on the first video based on the second display information to obtain first statistical information.
[0175] The display processing system provided in this article can execute the display processing method provided in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0176] This article provides a display processing device. Figure 6 This is a schematic diagram of the display processing device, as shown below. Figure 6 As shown, the display processing device includes: The acquisition unit 601 is used to acquire ambient brightness and first statistical information; the first statistical information is obtained by performing brightness statistics on the first video. Adjustment unit 602 is used to adjust the screen brightness of the first video based on the first statistical information and the ambient brightness to obtain first display information; the first display information includes first pixel information; the first pixel information is obtained after the screen brightness adjustment; The information obtaining unit 603 is used to obtain first attribute information, and obtain second attribute information based on the first display information, the first attribute information and the ambient brightness; the first attribute information indicates the current screen brightness, and the second attribute information indicates the first screen brightness; Display unit 604 is configured to display the first video based on the first display information, and adjust the device screen based on the second attribute information to make the screen brightness the first screen brightness.
[0177] As an optional implementation, the device further includes a mask adjustment unit, configured to: acquire a first video brightness and acquire a mask brightness; perform a fusion process on the first video brightness and the mask brightness to obtain a fused brightness; acquire text brightness and obtain a brightness contrast based on the text brightness and the fused brightness; the text brightness is used to characterize the brightness of text in the first video; obtain mask transparency based on the brightness contrast and the first video brightness; and display the mask based on the mask brightness and the mask transparency.
[0178] As an optional implementation, the overlay adjustment unit, when acquiring the first video brightness, is specifically configured to: extract a first statistical parameter from the first statistical information; the first statistical parameter is used to characterize the brightness standard deviation; perform a first detection on the first video based on the first statistical parameter; the first detection is used to detect the degree of brightness fluctuation; in response to the first detection passing, extract a second statistical parameter from the first statistical information as the first video brightness; the second statistical parameter is used to characterize the brightness mean; in response to the first detection failing, acquire the first video brightness based on the first display information.
[0179] As an optional implementation, the acquisition unit 601 is specifically used for: acquiring a user image and device status; the device status represents the charging status and / or the connection status with the wireless local area network; the charging status and / or the connection status corresponds to a first device; obtaining the device environment based on the user image and the device status; the device environment represents the environment in which the first device is located; acquiring a first acquisition strategy, and acquiring the ambient brightness based on the first acquisition strategy; the first acquisition strategy corresponds to the device environment.
[0180] As an optional implementation, the acquisition unit 601, when acquiring the ambient brightness based on the first acquisition strategy, is specifically configured to: acquire a first brightness as the ambient brightness in response to the device environment being a first environment; the first environment includes an outdoor environment; the first brightness corresponds to first time information; the first time information indicates the current time; acquire the first brightness and a second brightness in response to the device environment being a second environment; obtain the ambient brightness based on the first brightness and the second brightness; the second environment includes an indoor environment; the second brightness corresponds to the second environment.
[0181] As an optional implementation, the adjustment unit 602 is specifically used for: obtaining a first adjustment parameter based on the first statistical information and the ambient brightness; acquiring second display information; the second display information corresponds to the first video; the second display information includes second pixel information; the second pixel information is the pixel information before the screen brightness adjustment; adjusting the brightness of the second display information based on the first adjustment parameter to obtain the first display information.
[0182] As an optional implementation, when the adjustment unit 602 obtains the first adjustment parameter based on the first statistical information and the ambient brightness, it is specifically used to: obtain a first influence factor based on the first statistical information and a second influence factor based on the ambient brightness; obtain a first influence index based on the first influence factor and the second influence factor; obtain an index truncation condition, and perform truncation processing on the first influence index based on the index truncation condition to obtain the first adjustment parameter.
[0183] As an optional implementation, the information obtaining unit 603 is specifically used to: obtain a first parameter based on the first display information, the ambient brightness, and the first attribute information; the first parameter is used to indicate the user's brightness perception level from at least one dimension; obtain an associated video, and obtain a second linear brightness and a second parameter; the associated video is related to the first video; the associated video includes the previous display video of the first video; the second linear brightness and the second parameter correspond to the associated video; and obtain the second attribute information based on the first parameter, the second linear brightness, the second parameter, and the first linear brightness.
[0184] As an optional implementation, the information obtaining unit 603, when obtaining the first parameter based on the first display information, the ambient brightness, and the first attribute information, is specifically used for: obtaining first mapping data based on the first attribute information; the first mapping data indicating a monotonic mapping from the first attribute information to a preset attribute threshold; obtaining a first sub-brightness based on the first mapping data and the first display information; the first sub-brightness being used to characterize the brightness output by the device screen; obtaining a second sub-brightness based on the ambient brightness; the second sub-brightness being used to characterize the brightness reflected by ambient light illuminating the device screen; obtaining a first reference brightness based on the first sub-brightness and the second sub-brightness, and using the first sub-brightness, the second sub-brightness, and the first reference brightness as the first parameter; the first reference brightness being used to characterize the brightness perceived by the user.
[0185] As an optional implementation, the information obtaining unit 603, when obtaining the second attribute information based on the first parameter, the second video brightness, the second parameter, and the first video brightness, is specifically used to: extract a second reference brightness from the second parameter; obtain a third influence factor based on the first reference brightness and the second reference brightness; and obtain the second attribute information based on the first mapping data, the second sub-brightness, the first linear brightness, the second linear brightness, and the third influence factor.
[0186] As an optional implementation, the device is further configured to: acquire second statistical information; the second statistical information is obtained by performing brightness statistics on a second video; the second video includes the next display video of the first video; adjust the screen brightness of the second video based on the second statistical information and the ambient brightness to obtain third display information; display the second video based on the third display information; and adjust the device screen based on the first attribute information to make the screen brightness the current screen brightness.
[0187] The display processing device provided herein can execute the display processing method provided in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0188] Based on the same concept, this paper also provides an electronic device. Figure 7 The schematic diagram of the electronic device provided in this article is as follows: Figure 7 As shown, the electronic device provided herein includes a memory 701 and a processor 702. The memory 701 stores a computer program, and the processor 702 executes the display processing method provided in the above embodiments when executing the computer program. The electronic device provided herein, after acquiring ambient brightness and first statistical information of a first video, adjusts the screen brightness of the first video based on the first statistical information and ambient brightness to obtain first display information. Then, it acquires first attribute information, obtains second attribute information based on the first display information, the first attribute information, and ambient brightness, displays the first video based on the first display information, and adjusts the device screen based on the second attribute information to make the screen brightness the first screen brightness. Thus, on the one hand, it fully considers the influence of ambient brightness, achieving effective display of the first video from the perspective of adapting to the environment; on the other hand, during the device screen adjustment process, it refers to the screen brightness adjustment result of the first video to eliminate the overexposure problem caused by the individual superposition of multiple brightness levels, achieving effective display of the first video from the perspective of better adapting to the device screen.
[0189] Based on the same concept, this paper also provides a storage medium storing a computer program that, when executed by a processor, causes the computing device to implement the display processing method provided in the above embodiments. The storage medium provided herein, after acquiring ambient brightness and first statistical information of a first video, adjusts the screen brightness of the first video based on the first statistical information and ambient brightness to obtain first display information. Then, it acquires first attribute information, and based on the first display information, the first attribute information, and ambient brightness, obtains second attribute information. It displays the first video based on the first display information and adjusts the device screen based on the second attribute information to make the screen brightness equal to the first screen brightness. Thus, on the one hand, it fully considers the influence of ambient brightness, achieving effective display of the first video from the perspective of adapting to the environment; on the other hand, during the device screen adjustment process, it refers to the screen brightness adjustment result of the first video to eliminate the overexposure problem caused by the individual superposition of multiple brightness levels, achieving effective display of the first video from the perspective of better adapting to the device screen.
[0190] Based on the same concept, this document also provides a computer program product that, when run on a computer, enables the computing device to implement the display processing method provided in the above embodiments. The computer program product provided herein, after acquiring ambient brightness and first statistical information of a first video, adjusts the screen brightness of the first video based on the first statistical information and ambient brightness to obtain first display information. Then, it acquires first attribute information, and based on the first display information, the first attribute information, and ambient brightness, obtains second attribute information. It displays the first video based on the first display information and adjusts the device screen based on the second attribute information to make the screen brightness equal to the first screen brightness. Thus, on the one hand, it fully considers the influence of ambient brightness, achieving effective display of the first video from the perspective of adapting to the environment; on the other hand, during the device screen adjustment process, it refers to the screen brightness adjustment result of the first video to eliminate the overexposure problem caused by the individual superposition of multiple brightness levels, achieving effective display of the first video from the perspective of better adapting to the device screen.
[0191] Those skilled in the art will understand that this document may be provided as a method, system, or computer program product. Therefore, this document may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this document may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0192] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0193] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0194] Computer-readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media can store information using any method or technology; the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0195] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this article, and are not intended to limit them. Although this article has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments in this article.
Claims
1. A display processing method, comprising: Acquire ambient brightness and initial statistical information; The first statistical information is obtained by performing brightness statistics on the first video; Based on the first statistical information and the ambient brightness, the brightness of the first video is adjusted to obtain the first display information; The first display information includes first pixel information; The first pixel information is obtained after the screen brightness is adjusted; Obtain first attribute information, and based on the first display information, the first attribute information, and the ambient brightness, obtain second attribute information; The first attribute information indicates the current screen brightness, and the second attribute information indicates the first screen brightness; The device displays the first video based on the first display information and adjusts the device screen based on the second attribute information to make the screen brightness the same as the first screen brightness.
2. The method according to claim 1, further comprising: Obtain the brightness of the first video and the brightness of the mask layer; The brightness of the first video and the brightness of the mask layer are fused to obtain the fused brightness. Obtain the text brightness, and based on the text brightness and the blended brightness, obtain the brightness contrast. The text brightness is used to characterize the brightness of the text in the first video; Based on the brightness contrast and the first video brightness, the mask transparency is obtained, and the mask is displayed based on the mask brightness and the mask transparency.
3. The method according to claim 2, wherein obtaining the first video brightness includes: Extract the first statistical parameter from the first statistical information; The first statistical parameter is used to characterize the standard deviation of brightness; Based on the first statistical parameters, the first video is subjected to a first detection; The first detection is used to detect the degree of brightness fluctuation; In response to the first detection passing, a second statistical parameter is extracted from the first statistical information as the first video brightness; The second statistical parameter is used to characterize the mean brightness; In response to the failure of the first detection, the first video brightness is obtained based on the first display information.
4. The method according to claim 1, wherein acquiring ambient brightness includes: Acquire user image and device status; The device status represents the charging status and / or the connection status with the wireless local area network. The charging state and / or the connection state correspond to the first device; Based on the user image and the device status, the device environment is obtained; the device environment represents the environment in which the first device is located. A first acquisition strategy is obtained, and the ambient brightness is obtained based on the first acquisition strategy; the first acquisition strategy corresponds to the device environment.
5. The method according to claim 4, wherein acquiring the ambient brightness based on the first acquisition strategy comprises: In response to the device environment being a first environment, a first brightness is acquired as the ambient brightness; the first environment includes an outdoor environment. The first brightness corresponds to the first time information; the first time information indicates the current time; In response to the device environment being a second environment, the first brightness and the second brightness are acquired; based on the first brightness and the second brightness, the ambient brightness is obtained; the second environment includes an indoor environment; the second brightness corresponds to the second environment.
6. The method according to claim 1, wherein adjusting the screen brightness of the first video based on the first statistical information and the ambient brightness to obtain first display information includes: Based on the first statistical information and the ambient brightness, the first adjustment parameter is obtained; Obtain the second display information; The second displayed information corresponds to the first video; The second display information includes second pixel information; the second pixel information is the pixel information before the screen brightness adjustment. The brightness of the second display information is adjusted based on the first adjustment parameter to obtain the first display information.
7. The method according to claim 6, wherein obtaining the first adjustment parameter based on the first statistical information and the ambient brightness includes: Based on the first statistical information, a first influence factor is obtained, and based on the environmental brightness, a second influence factor is obtained; Based on the first impact factor and the second impact factor, the first impact index is obtained; Obtain the indicator truncation condition, and truncate the first influencing indicator based on the indicator truncation condition to obtain the first adjustment parameter.
8. The method according to claim 1, wherein obtaining the second attribute information based on the first display information, the first attribute information, and the ambient brightness includes: Based on the first display information, the ambient brightness, and the first attribute information, the first parameter is obtained; The first parameter is used to indicate the user's perceived level of brightness from at least one dimension; Obtain the associated video, and obtain the second linear brightness and the second parameter; the associated video is related to the first video; the associated video includes the previous displayed video of the first video; the second linear brightness and the second parameter correspond to the associated video; The second attribute information is obtained based on the first parameter, the second linear brightness, the second parameter, and the first linear brightness.
9. The method according to claim 8, wherein obtaining the first parameter based on the first display information, the ambient brightness, and the first attribute information includes: Based on the first attribute information, the first mapping data is obtained; The first mapping data indicates a monotonic mapping from the first attribute information to a preset attribute threshold; Based on the first mapping data and the first display information, a first sub-brightness is obtained; the first sub-brightness is used to characterize the brightness output by the device screen. Based on the ambient brightness, a second sub-brightness is obtained; the second sub-brightness is used to characterize the brightness reflected by the device screen when illuminated by ambient light; Based on the first sub-brightness and the second sub-brightness, a first reference brightness is obtained, and the first mapping data, the first sub-brightness, the second sub-brightness, and the first reference brightness are used as the first parameter; The first reference brightness is used to characterize the brightness perceived by the user.
10. The method according to claim 9, wherein obtaining the second attribute information based on the first parameter, the second linear brightness, the second parameter, and the first linear brightness includes: The second reference brightness is extracted from the second parameter, and the third influence factor is obtained based on the first reference brightness and the second reference brightness; Based on the first mapping data, the second sub-brightness, the first linear brightness, the second linear brightness, and the third influence factor, the second attribute information is obtained.
11. The method according to claim 1, further comprising: Obtain the second set of statistics; The second statistical information is obtained by performing brightness statistics on the second video; The second video includes the next displayed video of the first video; Based on the second statistical information and the ambient brightness, the brightness of the second video is adjusted to obtain the third display information; The second video is displayed based on the third display information, and the device screen is adjusted based on the first attribute information to make the screen brightness the current screen brightness.
12. A display processing device, comprising: The acquisition unit is used to acquire ambient brightness and first statistical information; The first statistical information is obtained by performing brightness statistics on the first video; An adjustment unit is configured to adjust the screen brightness of the first video based on the first statistical information and the ambient brightness to obtain first display information; The first display information includes first pixel information; The first pixel information is obtained after the screen brightness is adjusted; The information obtaining unit is used to obtain first attribute information and, based on the first display information, the first attribute information, and the ambient brightness, obtain second attribute information. The first attribute information indicates the current screen brightness, and the second attribute information indicates the first screen brightness; The display unit is configured to display the first video based on the first display information, and to adjust the device screen based on the second attribute information so that the screen brightness is the first screen brightness.
13. An electronic device, comprising: A memory and a processor, wherein the memory is used to store computer programs; The processor is configured to, when executing a computer program, cause the electronic device to implement the display processing method according to any one of claims 1-11.
14. A storage medium storing a computer program that, when executed by a computing device, causes the computing device to implement the display processing method according to any one of claims 1-11.
15. A computer program product, when run on a computer, causes the computer to implement the display processing method according to any one of claims 1-11.
