Brightness control apparatus and method for display screen, device and storage medium
By obtaining the average brightness of the display screen and performing a flexible brightness attenuation strategy, the afterimage problem caused by the low brightness of the display screen in the static screen is solved, and the display effect is improved.
Patent Information
- Application Number
- PCT/CN2025/070045
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-02
- Filing Date
- 2025-01-02
- Publication Date
- 2025-07-10
AI Technical Summary
The display screen is prone to generate afterimages when displaying static images for a long time, and the prior art is difficult to effectively avoid this problem.
By obtaining the average display brightness of the display screen and comparing it with the preset threshold, we determine whether brightness attenuation is needed, and a flexible attenuation strategy is adopted to avoid afterimages, including calculations of partition brightness and subpixel brightness, and adjusting the attenuation rate and brightness threshold to accommodate different initial brightnesses.
It effectively avoids the display effect of the display screen due to too low brightness in a static screen, improves the flexibility and effect of brightness attenuation, and prevents the generation of afterimages.
Smart Images

Figure CN2025070045_10072025_PF_FP_ABST
Abstract
Description
Display screen brightness control device, method, equipment and storage medium
[0001] This application claims priority to Chinese patent application No. 202410005586.4 filed on January 2, 2024, entitled “Device, method, apparatus and storage medium for brightness control of display screen”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of display technology, and in particular to a brightness control device, method, equipment and storage medium for a display screen. Background Art
[0003] When a display screen displays a static image for a long time, voltage needs to be applied to the display screen for a long time. However, applying voltage for a long time can easily cause the light-emitting device to age, which in turn makes the display screen prone to image retention. Therefore, it is necessary to control the brightness of the display screen to avoid image retention. Summary of the Invention
[0004] The present application provides a brightness control device, method, equipment and storage medium for a display screen, which can solve the problems in the related art.
[0005] In a first aspect, a device for controlling brightness of a display screen is provided, the device comprising:
[0006] an acquisition module, configured to acquire, when the display screen displays a static image, a first average display brightness corresponding to the display screen, wherein the first average display brightness indicates whether the display brightness of the display screen needs to be attenuated;
[0007] A control module is configured to, when the first average display brightness is greater than or equal to a first brightness threshold, attenuate the display brightness of the display screen according to an attenuation rate until the attenuated display brightness is less than or equal to a second brightness threshold, wherein at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness; and when the first average display brightness is less than the first brightness threshold, control the display brightness of the display screen to remain unchanged.
[0008] In one possible embodiment, the display screen includes at least one partition; the acquisition module is used to obtain the partition brightness and the number of partition pixels of each partition, the partition brightness of any partition is the sum of the brightness of each pixel included in any partition, and the number of partition pixels of any partition is the sum of the number of each pixel included in any partition; based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition, the second average display brightness of each partition is obtained; based on the second average display brightness of each partition, the first average display brightness corresponding to the display screen is obtained.
[0009] In one possible embodiment, the acquisition module is used to obtain the second average display brightness of each partition based on the product value of the unit pixel brightness of each partition and the brightness ratio corresponding to the static picture, and the unit pixel brightness of any partition is the ratio of the partition brightness of any partition to the number of partition pixels.
[0010] In a possible implementation, the acquisition module is configured to use the second average display brightness of the second average display brightness of each partition that meets the first control condition as the first average display brightness.
[0011] In one possible embodiment, the display screen includes multiple sub-pixels; the acquisition module is used to obtain the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition of the display screen, the partition sub-pixel brightness of any seed pixel in any partition is the sum of the brightness of any seed pixels included in any partition, and the number of partition sub-pixels of any seed pixel in any partition is the sum of the number of any seed pixels included in any partition; based on the brightness ratio corresponding to the static image, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in the at least one partition, obtain the third average display brightness of the multiple sub-pixels in the at least one partition; according to the third average display brightness of the multiple sub-pixels in the at least one partition, obtain the fourth average display brightness corresponding to the multiple sub-pixels; based on the fourth average display brightness corresponding to the multiple sub-pixels, obtain the first average display brightness corresponding to the display screen.
[0012] In one possible embodiment, the acquisition module is used to obtain the third average display brightness of the multiple sub-pixels in the at least one partition based on the product value of the unit pixel brightness of the multiple sub-pixels in the at least one partition and the brightness ratio corresponding to the static image, and the unit pixel brightness of any seed pixel in any partition is the ratio of the partition sub-pixel brightness of any seed pixel in the any partition to the number of partition sub-pixels.
[0013] In a possible embodiment, the acquisition module is used to determine, for any seed pixel among the multiple sub-pixels, that the third average display brightness of the any seed pixel that satisfies the second control condition in the third average display brightness of the at least one partition is the fourth average display brightness corresponding to the any seed pixel.
[0014] In a possible implementation, the acquisition module is configured to use a fourth average display brightness that satisfies a third control condition among the fourth display brightnesses corresponding to the multiple sub-pixels as the first average display brightness.
[0015] In one possible embodiment, the display brightness of the display screen is determined by the brightness data of the static image and the brightness ratio corresponding to the static image; the control module is used to attenuate the brightness ratio according to the attenuation rate, and control the display brightness of the display screen according to the brightness data of the static image and the attenuated brightness ratio; if the display brightness of the display screen is greater than the second brightness threshold, the attenuated brightness ratio is attenuated again according to the attenuation rate, and the display brightness of the display screen is controlled according to the brightness data of the static image and the brightness ratio after attenuation again, until the display brightness of the display screen is less than or equal to the second brightness threshold.
[0016] In a second aspect, a method for controlling brightness of a display screen is provided, the method comprising:
[0017] When the display screen displays a static image, obtaining a first average display brightness corresponding to the display screen, where the first average display brightness indicates whether the display brightness of the display screen needs to be attenuated;
[0018] When the first average display brightness is greater than or equal to a first brightness threshold, attenuate the display brightness of the display screen according to a decay rate until the attenuated display brightness is less than or equal to a second brightness threshold, at least one of the decay rate and the second brightness threshold being related to the first average display brightness;
[0019] When the first average display brightness is less than the first brightness threshold, the display brightness of the display screen is controlled to remain unchanged.
[0020] In one possible embodiment, the display screen includes at least one partition; obtaining the first average display brightness corresponding to the display screen includes: obtaining the partition brightness and the number of partition pixels of each partition, the partition brightness of any partition being the sum of the brightness of each pixel included in any partition, and the number of partition pixels of any partition being the sum of the number of each pixel included in any partition; obtaining the second average display brightness of each partition based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition; obtaining the first average display brightness corresponding to the display screen based on the second average display brightness of each partition.
[0021] In a possible embodiment, the obtaining of the second average display brightness of each partition based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition includes: obtaining the second average display brightness of each partition based on the product value of the unit pixel brightness of each partition and the brightness ratio corresponding to the static picture, the unit pixel brightness of any partition being the ratio of the partition brightness of any partition to the number of partition pixels.
[0022] In a possible implementation, obtaining the first average display brightness corresponding to the display screen based on the second average display brightness of each partition includes: using the second average display brightness of each partition that meets the first control condition as the first average display brightness.
[0023] In one possible embodiment, the display screen includes multiple sub-pixels; obtaining the first average display brightness corresponding to the display screen includes: obtaining the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition of the display screen, the partition sub-pixel brightness of any seed pixel in any partition is the sum of the brightness of any seed pixels included in any partition, and the number of partition sub-pixels of any seed pixel in any partition is the sum of the number of any seed pixels included in any partition; based on the brightness ratio corresponding to the static image, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in the at least one partition, obtaining the third average display brightness of the multiple sub-pixels in the at least one partition; according to the third average display brightness of the multiple sub-pixels in the at least one partition, obtaining the fourth average display brightness corresponding to the multiple sub-pixels; based on the fourth average display brightness corresponding to the multiple sub-pixels, obtaining the first average display brightness corresponding to the display screen.
[0024] In a possible embodiment, the obtaining of the third average display brightness of the multiple sub-pixels in the at least one partition based on the brightness ratio corresponding to the static image, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in the at least one partition includes: obtaining the third average display brightness of the multiple sub-pixels in the at least one partition based on the product value of the unit pixel brightness of the multiple sub-pixels in the at least one partition and the brightness ratio corresponding to the static image, the unit pixel brightness of any seed pixel in any partition being the ratio of the partition sub-pixel brightness of any seed pixel in the at least one partition to the number of partition sub-pixels.
[0025] In one possible embodiment, obtaining the fourth average display brightness corresponding to the multiple sub-pixels respectively based on the third average display brightness of the multiple sub-pixels in the at least one partition includes: for any seed pixel among the multiple sub-pixels, determining that the third average display brightness of the any seed pixel that satisfies the second control condition in the third average display brightness of the at least one partition is the fourth average display brightness corresponding to the any seed pixel.
[0026] In a possible embodiment, obtaining the first average display brightness corresponding to the display screen based on the fourth average display brightness corresponding to the multiple sub-pixels includes: taking the fourth average display brightness that satisfies the third control condition among the fourth display brightnesses corresponding to the multiple sub-pixels as the first average display brightness.
[0027] In one possible embodiment, the display brightness of the display screen is determined by the brightness data of the static picture and the brightness ratio corresponding to the static picture; attenuating the display brightness of the display screen according to the attenuation rate until the attenuated display brightness is less than or equal to a second brightness threshold, including: attenuating the brightness ratio according to the attenuation rate, and controlling the display brightness of the display screen according to the brightness data of the static picture and the attenuated brightness ratio; if the display brightness of the display screen is greater than the second brightness threshold, attenuating the attenuated brightness ratio again according to the attenuation rate, and controlling the display brightness of the display screen according to the brightness data of the static picture and the brightness ratio after attenuation again, until the display brightness of the display screen is less than or equal to the second brightness threshold.
[0028] In a third aspect, a computer device is also provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the above-mentioned methods for controlling the brightness of a display screen.
[0029] In a fourth aspect, a computer-readable storage medium is also provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned methods for controlling the brightness of a display screen.
[0030] In a fifth aspect, a computer program product or computer program is further provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the above-described methods for controlling brightness of a display screen.
[0031] The technical solution provided by this application can at least bring the following beneficial effects:
[0032] The technical solution provided by the present application obtains a first average display brightness corresponding to the display screen, compares the first average display brightness with a preset first brightness threshold, and determines whether the current static image requires brightness attenuation based on the comparison result. This allows the display brightness of the display screen to remain unchanged when the initial brightness of the static image is low, thus avoiding the problem of a decrease in display quality caused by a too low display brightness. Furthermore, when brightness attenuation of the static image is required, at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness, allowing the attenuation strategy to be flexibly adjusted based on the first average display brightness. This improves the brightness attenuation effect compared to using the same attenuation strategy for different first average display brightnesses. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] FIG1 is a schematic diagram of an implementation environment of a method for controlling brightness of a display screen provided by an embodiment of the present application;
[0035] FIG2 is a schematic diagram of a brightness control device for a display screen provided in an embodiment of the present application;
[0036] FIG3 is a schematic diagram of partitions of a display screen provided in an embodiment of the present application;
[0037] FIG4 is a schematic diagram of a brightness ratio decrease curve provided by an embodiment of the present application;
[0038] FIG5 is a schematic diagram of brightness control of a display screen provided in an embodiment of the present application;
[0039] FIG6 is a flow chart of a method for controlling brightness of a display screen provided in an embodiment of the present application;
[0040] FIG7 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0042] In the field of display technology, when displaying static images, a display screen needs to apply voltage for a long time. This long-term voltage application can easily cause the light-emitting device to age, which in turn makes the display screen prone to afterimages. Therefore, to avoid afterimages, the display brightness needs to be attenuated. However, for static images with initially low display brightness, the display brightness of the static image may drop to a lower level after attenuation. Since the display screen has poor uniformity at low brightness, the display quality of the static image is affected.
[0043] The present application provides a method for controlling the brightness of a display screen. This method determines whether to perform brightness reduction on the display screen by detecting the relationship between the display brightness of a static image on the display screen and a brightness threshold. This method can prevent static images with initially low brightness from becoming too low after brightness reduction, thereby affecting the display quality.
[0044] FIG1 shows a schematic diagram of an implementation environment for a method for controlling the brightness of a display screen provided in an embodiment of the present application. As shown in FIG1 , the implementation environment includes a computer device 101. The computer device 101 includes a display screen, or the computer device 101 is connected to a display screen. The computer device 101 is capable of obtaining an average display brightness corresponding to the display screen, and when the average display brightness is greater than or equal to a preset brightness threshold, the brightness of the display screen is attenuated; and when the display brightness is less than the preset brightness threshold, the display brightness of the display screen is controlled to remain unchanged, that is, the brightness of the display screen is not attenuated.
[0045] In one possible implementation, the computer device 101 may refer to a terminal or a server. For example, the terminal may be any electronic product that can interact with a user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, such as a personal computer (PC), a smart phone, a personal digital assistant (PDA), a wearable device, a pocket PC (PPC), a tablet computer, a smart car computer, etc.
[0046] Those skilled in the art should understand that the above-mentioned computer device 101 is only an example, and other existing or future computer devices may also be applicable to this application, should also be included in the scope of protection of this application, and are included here by reference.
[0047] Referring to Figure 2 , a schematic diagram of a display screen brightness control device provided in an embodiment of the present application is shown. This device can be used in the implementation environment shown in Figure 1 , for example, in computer device 101. As shown in Figure 2 , the display screen brightness control device provided in an embodiment of the present application includes, but is not limited to, an acquisition module 201 and a control module 202.
[0048] The acquisition module 201 is configured to acquire a first average display brightness corresponding to the display screen when the display screen displays a static image. The first average display brightness indicates whether the display brightness of the display screen needs to be attenuated.
[0049] The control module 202 is used to attenuate the display brightness of the display screen according to an attenuation rate until the attenuated display brightness is less than or equal to a second brightness threshold when the first average display brightness is greater than or equal to a first brightness threshold, and at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness; and to control the display brightness of the display screen to remain unchanged when the first average display brightness is less than the first brightness threshold.
[0050] In an embodiment of the present application, the display screen displaying a static picture may refer to the picture displayed on the display screen not changing for a period of time, that is, the display screen displays the same picture for a period of time. Since the display brightness of the display screen is determined according to the brightness data of the display picture, when displaying a static picture, if the brightness is not attenuated, the brightness displayed on the display screen will be the same for a period of time. For pixels with higher brightness, it is easy to leave an afterimage due to the long-term display of high brightness, so that the existence of the afterimage can be seen by the naked eye when switching pictures, affecting the display effect. Optionally, the display screen may refer to an OLED (Organic Light-Emitting Diode) screen.
[0051] In one possible embodiment, the acquisition module 201 is configured to acquire a first average display brightness corresponding to the display screen when the display screen displays a static image and the display time of the static image reaches a time threshold. The time threshold can be set based on experience or flexibly adjusted according to the application scenario. Optionally, when the display time of the static image does not reach the time threshold, the display screen will not produce an afterimage. The longer the display time of the static image exceeds the time threshold, the more likely an afterimage is produced, and the deeper the afterimage is.
[0052] Optionally, the embodiment of the present application does not limit the manner in which the acquisition module 201 acquires the first average display brightness corresponding to the display screen. The first average display brightness can indicate whether the display brightness of the display screen needs to be attenuated. In other words, the magnitude of the first average display brightness corresponding to the display screen is related to the display effect after the display screen is attenuated. For example, the greater the first average display brightness corresponding to the display screen, the lower the probability that the display effect is reduced due to excessively low brightness after the display screen is attenuated; the lower the first average display brightness corresponding to the display screen, the greater the probability that the display effect is reduced due to excessively low brightness after the display screen is attenuated.
[0053] In a possible implementation, the display screen includes at least one partition, and the manner in which the acquisition module 201 acquires the first average display brightness corresponding to the display screen includes but is not limited to the following two methods.
[0054] Method 1: Acquisition module 201 is used to obtain the partition brightness and the number of partition pixels of each partition; based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition, obtain the second average display brightness of each partition; based on the second average display brightness of each partition, obtain the first average display brightness corresponding to the display screen.
[0055] The partition brightness of any partition is the sum of the brightness of each pixel included in the partition, and the number of partition pixels in any partition is the sum of the number of each pixel included in the partition. Different static images correspond to different brightness ratios. The brightness ratio corresponding to a static image can be determined based on the brightness data of the static image. For example, the brighter the static image color, the smaller the corresponding brightness ratio of the static image.
[0056] Optionally, acquisition module 201 is configured to acquire a second average display brightness for each partition based on the product of the unit pixel brightness of each partition and the brightness ratio corresponding to the static image. The unit pixel brightness of any partition is the ratio of the partition brightness to the number of pixels in the partition. Acquisition module 201 is configured to use the second average display brightness of each partition that satisfies a first control condition as the first average display brightness. The first control condition may be a maximum value, or the first control condition may be the second largest value.
[0057] In the embodiment of the present application, the display screen includes at least one partition, which includes the following two situations. Situation 1: The display screen includes one partition. The display screen includes one partition, i.e., the display screen has no partitions. In this situation, acquisition module 201 is configured to obtain the full-screen brightness and the number of full-screen pixels of the display screen; obtain the full-screen display brightness based on the brightness ratio corresponding to the static image, the full-screen brightness, and the number of full-screen pixels; and use the full-screen display brightness as the first average display brightness.
[0058] That is, the full-screen brightness is the sum of the brightness of each pixel included in the full screen of the display screen, the full-screen pixel number is the sum of the number of each pixel included in the full screen of the display screen, and the each pixel included in the full screen of the display screen refers to all pixels of the display screen used to display static images. In the case where the display screen includes multiple sub-pixels, the sum of the brightness of each pixel included in the display screen is the sum of the brightness corresponding to the multiple sub-pixels included in the display screen, and the sum of the number of each pixel included in the display screen is the sum of the number corresponding to the multiple sub-pixels included in the display screen. Optionally, the multiple sub-pixels include at least one of white (white, w) sub-pixels, red (red, r) sub-pixels, green-white (green, g) sub-pixels, or blue (blue, b) sub-pixels.
[0059] For example, the full-screen brightness is represented by Lumi, Lumi = Lw + Lr + Lg + Lb, where Lw represents the sum of the brightness of the white sub-pixels in the full-screen display, Lr represents the sum of the brightness of the red sub-pixels in the full-screen display, Lg represents the sum of the brightness of the green sub-pixels in the full-screen display, and Lb represents the sum of the brightness of the blue sub-pixels in the full-screen display. The number of full-screen pixels is represented by pixel, pixel = Pw + Pr + Pg + Pb, where Pw represents the sum of the white sub-pixels in the full-screen display, Pr represents the sum of the red sub-pixels in the full-screen display, Pg represents the sum of the green sub-pixels in the full-screen display, and Pb represents the sum of the blue sub-pixels in the full-screen display.
[0060] Optionally, the acquisition module 201 is configured to acquire the full-screen display brightness based on the product of the full-screen pixel brightness and the brightness ratio corresponding to the static image, where the full-screen pixel brightness is the ratio of the full-screen brightness to the number of full-screen pixels. For example, the full-screen display brightness is represented by Lumi_avg, where Lumi_avg = (Lumi / pixel) * ratio, where ratio represents the brightness ratio corresponding to the static image.
[0061] Case 2: The display screen includes multiple partitions. In this case, the display screen is divided into multiple partitions. This allows the display of static images with uneven brightness to avoid the situation where the full screen brightness is low but the brightness of a certain area is high. This can cause the display screen to not be attenuated because the full screen brightness is lower than the first brightness threshold, which in turn can easily cause afterimages to occur in the high-brightness areas that are not attenuated.
[0062] The embodiment of the present application does not limit the manner in which the display screen is divided into multiple partitions. Optionally, the display screen can be divided into uniform rectangular areas, such as partitions 1, 2, 3, 4, 5, 6, etc. as shown in FIG3 ; or it can be divided into multiple irregular shapes; or it can be divided into the same partition based on the content of the static image, such as a static image containing elements such as trees, grass, and sky, into a tree partition, a grass partition, and a sky partition.
[0063] For any of the multiple partitions, similar to the way in which the acquisition module 201 acquires the full-screen brightness, the partition brightness of any partition is represented by Lumi(n), where n represents any partition, for example, n is the number of any partition in the multiple partitions. Then Lumi(n) = Lw(n) + Lr(n) + Lg(n) + Lb(n), where Lw(n) represents the sum of the brightness of the white sub-pixels in any partition, Lr(n) represents the sum of the brightness of the red sub-pixels in any partition, Lg(n) represents the sum of the brightness of the green sub-pixels in any partition, and Lb(n) represents the sum of the brightness of the blue sub-pixels in any partition.
[0064] The number of partition pixels in any partition is expressed by pixel(n), pixel(n) = Pw(n) + Pr(n) + Pg(n) + Pb(n), Pw(n) represents the sum of the number of white sub-pixels in any partition, Pr(n) represents the sum of the number of red sub-pixels in any partition, Pg(n) represents the sum of the number of green sub-pixels in any partition, and Pb(n) represents the sum of the number of blue sub-pixels in any partition.
[0065] Thus, the acquisition module 201 can obtain the second average display brightness of any partition based on the product value of the unit pixel brightness of any partition and the brightness ratio corresponding to the static picture. For example, the second average display brightness of any partition is represented by Lumi_avg(n), Lumi_avg(n) = (Lumi(n) / pixel(n))*ratio, where ratio represents the brightness ratio corresponding to the static picture. Then, the second average display brightness corresponding to multiple partitions can be obtained. Taking the first control condition as the maximum value as an example, by comparing the second average display brightness corresponding to multiple partitions, the second average display brightness corresponding to the multiple partitions with the largest median value is used as the first average display brightness corresponding to the display screen.
[0066] Method 2: The acquisition module 201 acquires the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition of the display screen; based on the brightness ratio corresponding to the static picture, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition, acquires the third average display brightness of the multiple sub-pixels in at least one partition; based on the third average display brightness of the multiple sub-pixels in at least one partition, acquires the fourth average display brightness corresponding to the multiple sub-pixels; based on the fourth average display brightness corresponding to the multiple sub-pixels, acquires the first average display brightness corresponding to the display screen.
[0067] The sub-pixel brightness of any seed pixel in any sub-region is the sum of the brightness of any seed pixels included in any sub-region, and the number of sub-pixels of any seed pixel in any sub-region is the sum of the number of any seed pixels included in any sub-region. Optionally, the acquisition module 201 is configured to acquire a third average display brightness of the multiple sub-pixels in at least one sub-region based on the product of the unit pixel brightness of the multiple sub-pixels in at least one sub-region and the brightness ratio corresponding to the static image, wherein the unit pixel brightness of any seed pixel in any sub-region is the ratio of the sub-pixel brightness of the multiple seed pixels in any sub-region to the number of sub-pixels in the sub-region.
[0068] The acquisition module 201 is configured to determine, for any seed pixel among the plurality of sub-pixels, a third average display brightness of the seed pixel that satisfies the second control condition within the third average display brightness of at least one sub-region as a fourth average display brightness corresponding to the seed pixel. The second control condition may be the same as the first control condition and be a maximum value. The acquisition module 201 is configured to determine, as the first display brightness, a fourth average display brightness of the fourth display brightness corresponding to the plurality of sub-pixels that satisfies the third control condition. The third control condition may be the same as the first control condition and be a maximum value.
[0069] Therefore, for the scene where a single partition includes a mixture of multiple sub-pixels, it is avoided that in the scene where the average brightness of the multiple sub-pixels is low but the brightness of a certain sub-pixel is high, the brightness of the display screen is not attenuated because the average brightness of the multiple sub-pixels is lower than the first brightness threshold, which in turn makes it easy for a certain sub-pixel that has not been attenuated to produce an afterimage.
[0070] Similar to the above-described method 1, the display screen in method 2 includes at least one partition and also includes the above-described cases 1 and 2. In case 1, the acquisition module 201 is configured to obtain the full-screen brightness and full-screen pixel count of each of the multiple sub-pixels on the display screen; obtain a third average display brightness of each of the multiple sub-pixels on the display screen based on the brightness ratio corresponding to the static image and the full-screen sub-pixel brightness and full-screen sub-pixel count of each of the multiple sub-pixels on the display screen; and use the third average display brightness of each of the multiple sub-pixels on the display screen as the fourth average display brightness corresponding to each of the multiple sub-pixels.
[0071] For any sub-pixel among the multiple sub-pixels, the full-screen brightness of any sub-pixel on the display screen includes the sum of the brightness of any sub-pixels included in the display screen. For example, taking the multiple sub-pixels including white sub-pixels, red sub-pixels, green sub-pixels, and blue sub-pixels as an example, Lw represents the full-screen brightness of the white sub-pixel, Lr represents the full-screen brightness of the red sub-pixel, Lg represents the full-screen brightness of the green sub-pixel, and Lb represents the full-screen brightness of the blue sub-pixel. Pw represents the full-screen number of white sub-pixels, Pr represents the full-screen number of red sub-pixels, Pg represents the full-screen number of green sub-pixels, and Pb represents the full-screen number of blue sub-pixels.
[0072] Optionally, the acquisition module 201 is configured to acquire a third average display brightness of each of the multiple sub-pixels on the full screen of the display screen based on a product value of the unit pixel brightness of each of the multiple sub-pixels on the full screen of the display screen and the brightness ratio corresponding to the static image. For example, the third average display brightness of the white sub-pixel is represented by Lw_avg, where Lw_avg = (Lw / Pw)*ratio, and ratio represents the brightness ratio corresponding to the static image; the third average display brightness of the red sub-pixel is represented by Lr_avg, where Lr_avg = (Lr / Pr)*ratio; the third average display brightness of the green sub-pixel is represented by Lg_avg, where Lg_avg = (Lg / Pg)*ratio; and the third average display brightness of the blue sub-pixel is represented by Lb_avg, where Lb_avg = (Lb / Pb)*ratio.
[0073] Case 2: The display screen includes multiple partitions. In this case 2, for any of the multiple partitions, similar to the method of obtaining the full-screen brightness of multiple sub-pixels in the full display screen, the method of obtaining the partitioned sub-pixel brightness of multiple sub-pixels in any partition may include using Lw(n) to represent the partitioned sub-pixel brightness of the white sub-pixel in the partition; using Lr(n) to represent the partitioned sub-pixel brightness of the red sub-pixel in the partition; using Lg(n) to represent the partitioned sub-pixel brightness of the green sub-pixel in the partition; and using Lb(n) to represent the partitioned sub-pixel brightness of the blue sub-pixel in the partition.
[0074] Where n represents any partition, for example, n is the number of any partition in multiple partitions. The number of sub-pixels of white sub-pixels in any partition is represented by Pw(n), the number of sub-pixels of red sub-pixels in any partition is represented by Pr(n), the number of sub-pixels of green sub-pixels in any partition is represented by Pg(n), and the number of sub-pixels of blue sub-pixels in any partition is represented by Pb(n).
[0075] Thus, based on the product value of the unit pixel brightness of any seed pixel in any subarea and the brightness ratio corresponding to the static image, the third average display brightness of any seed pixel in any subarea can be obtained. For example, the third average display brightness of the white subpixel in any subarea is represented by Lw_avg(n), Lw_avg(n) = (Lw(n) / Pw(n))*ratio; the third average display brightness of the red subpixel in any subarea is represented by Lr_avg(n), Lr_avg(n) = (Lr(n) / Pr(n))*ratio; the third average display brightness of the green subpixel in any subarea is represented by Lg_avg(n), Lg_avg(n) = (Lg(n) / Pg(n))*ratio; and the third average display brightness of the blue subpixel in any subarea is represented by Lb_avg(n), Lb_avg(n) = (Lb(n) / Pb(n))*ratio.
[0076] Furthermore, the third average display brightness corresponding to the multiple sub-pixels in the multiple partitions can be obtained. Taking the second control condition as the maximum value as an example, by comparing the third average display brightness corresponding to the multiple sub-pixels in the multiple partitions, taking any seed pixel as an example, the third average display brightness with the largest median value of the third average display brightness of any seed pixel in the multiple partitions is taken as the fourth average display brightness corresponding to any seed pixel. For example, the fourth average display brightness corresponding to the white sub-pixel is represented by Lw_avg, Lw_avg = max(Lw_avg(1), Lw_avg(2), ..., Lw_avg(n)), where max() is the maximum function; the fourth average display brightness corresponding to the red sub-pixel is represented by Lr_avg, Lr_avg = max(Lr_avg(1), Lr_avg(2), ..., Lr_avg(n)); the fourth average display brightness corresponding to the green sub-pixel is represented by Lg_avg, Lg_avg = max(Lg_avg(1), Lg_avg(2), ..., Lg_avg(n)); the fourth average display brightness corresponding to the blue sub-pixel is represented by Lb_avg, Lb_avg = max(Lb_vg(1), Lb_avg(2), ..., Lb_avg(n)).
[0077] Optionally, the largest median of the fourth average display brightness corresponding to the multiple sub-pixels is used as the first average display brightness corresponding to the display screen. For example, the first average display brightness corresponding to the display screen is represented by Lumi_avg, Lumi_avg=max(Lw_avg, Lr_avg, Lg_avg, Lb_avg).
[0078] The above describes the implementation of acquisition module 201. The following describes the implementation of control module 202. Control module 202 compares the first average display brightness obtained by acquisition module 201 with a first brightness threshold and determines a brightness reduction strategy based on the comparison result. Optionally, the first brightness threshold can be set based on experience or flexibly adjusted according to the application scenario.
[0079] When the first average display brightness is greater than or equal to the first brightness threshold, the control module 202 is configured to attenuate the display brightness of the display screen according to the attenuation rate until the attenuated display brightness is less than or equal to the second brightness threshold. Optionally, the attenuated display brightness may refer to the first average display brightness corresponding to the display screen after the brightness attenuation.
[0080] Optionally, the decay rate and the second brightness threshold can be set based on experience, or flexibly adjusted according to the application scenario. The decay rate indicates how quickly the display brightness of the display screen changes from bright to dark. The greater the decay rate, the faster the brightness dims, and the smaller the decay rate, the slower the brightness dims. The second brightness threshold indicates the minimum value of the display brightness of the display screen. If the display brightness of the display screen is lower than the second brightness threshold, there is a greater probability that the display effect will be reduced due to the display brightness being too low. The second brightness threshold can be the same as or different from the first brightness threshold.
[0081] In an embodiment of the present application, at least one of the decay rate and the second brightness threshold is related to the first display brightness. For example, the decay rate is positively correlated with the first display brightness, that is, the greater the first display brightness, the greater the decay rate, thereby achieving rapid brightness decay of a highlighted image. Alternatively, the second brightness threshold is negatively correlated with the first display brightness, that is, the greater the first display brightness, the smaller the second brightness threshold. Alternatively, the decay rate is positively correlated with the first display brightness, and the second brightness threshold is negatively correlated with the first display brightness.
[0082] Since the display brightness of the display screen is determined by the brightness data of the static image and the brightness ratio corresponding to the static image, the brightness attenuation of the display screen can be achieved by attenuating the brightness ratio corresponding to the static image according to the attenuation rate while the brightness data of the static image remains unchanged. In this case, the control module 202 is used to attenuate the brightness ratio according to the attenuation rate and control the display brightness of the display screen according to the brightness data of the static image and the attenuated brightness ratio; if the display brightness of the display screen is greater than the second brightness threshold, the attenuated brightness ratio is further attenuated according to the attenuation rate, and the display brightness of the display screen is controlled according to the brightness data of the static image and the brightness ratio after further attenuation until the display brightness of the display screen is less than or equal to the second brightness threshold.
[0083] In one possible implementation, the control module 202 is configured to attenuate the brightness ratio according to an attenuation rate until the brightness ratio is less than or equal to a ratio threshold. During the brightness ratio attenuation process, the display brightness of the display screen remains the product of the brightness data of the static image and the brightness ratio at the time of attenuation. That is, the actual display brightness of the display screen is represented by Lumi_real, where Lumi_real = Lumi × ratio_real, where Lumi represents the brightness data of the static image and ratio_real represents the brightness ratio at the time of attenuation. The ratio threshold can be set based on experience or flexibly adjusted according to the application scenario.
[0084] The ratio threshold indicates the minimum value of the brightness ratio of a static image. If the same ratio threshold is used for static images with different initial brightnesses, the brightness data of the static images will be different, i.e., the initial brightness of the display screen will be different, while the brightness ratio after attenuation will be the same. Therefore, the display brightness of the display screen after attenuation will be different. In other words, the greater the initial brightness, the greater the display brightness after attenuation, and the smaller the initial brightness, the smaller the display brightness after attenuation.
[0085] In the embodiment of the present application, the ratio threshold value can be related to the first display brightness. For example, the ratio threshold value is negatively correlated with the first display brightness, that is, the greater the first display brightness, the smaller the ratio threshold value. Therefore, the embodiment of the present application can flexibly adapt different attenuation rates and ratio threshold values for different first average display brightnesses, that is, initial brightnesses, to avoid the phenomenon of different display brightnesses of the display screen after the attenuation is completed.
[0086] For example, referring to the schematic diagram of the decreasing curve of the brightness ratio shown in FIG4 , the brightness ratio corresponding to the first static image is ratio_1, and the brightness ratio corresponding to the second static image is ratio_2. ratio_min_1 represents the ratio threshold corresponding to ratio_1, and ratio_min_2 represents the ratio threshold corresponding to ratio_2. For example, if the first average display brightness of the first static image is greater than the first average display brightness of the second static image, the decay rates of ratio_1 and ratio_2 are the same, while ratio_min_1 and ratio_min_2 are different. ratio_1 begins to decay at time T1 and decays to ratio_min_1 at the same decay rate, with decay completing at time T4. ratio_2 begins to decay at time T2 and decays to ratio_min_2 at the same decay rate, with decay completing at time T3. The decay start time is determined by the aforementioned time threshold. Different time thresholds can be configured for different brightness ratios. For example, the brightness ratio and time threshold are negatively correlated, meaning that a larger brightness ratio corresponds to a smaller time threshold, and a smaller brightness ratio corresponds to a larger time threshold.
[0087] When the first average display brightness is less than the first brightness threshold, the control module 202 is used to control the display brightness of the display screen to remain unchanged. For example, referring to the schematic diagram of brightness control of the display screen shown in FIG5 , when the display time of the static image of the display screen reaches the time threshold, the brightness attenuation strategy provided in the embodiment of the present application is started to be executed; the acquisition module 201 obtains the first average display brightness corresponding to the display screen; the control module 202 determines whether the first average display brightness is greater than the first brightness threshold, and when the first average display brightness is greater than the first brightness threshold, the brightness of the display screen is attenuated; when the first average display brightness is not greater than the first brightness threshold, the display brightness of the display screen is controlled to remain unchanged.
[0088] The brightness control device for a display screen provided in an embodiment of the present application obtains a first average display brightness corresponding to the display screen, compares the first average display brightness with a preset first brightness threshold, and determines whether the current static image needs to be brightness attenuated based on the comparison result. This allows the display brightness of the display screen to remain unchanged when the initial brightness of the static image is low, thereby avoiding the problem of a decrease in display effect caused by a too low display brightness. Furthermore, when brightness attenuation of the static image is required, at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness, so that the attenuation strategy can be flexibly adjusted according to the first average display brightness. Compared with using the same attenuation strategy for different first average display brightnesses, the brightness attenuation effect can be improved.
[0089] It should be understood that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0090] Referring to Figure 6, Figure 6 is a flow chart of a method for controlling the brightness of a display screen provided in an embodiment of the present application. This method can be applied to the display screen brightness device shown in Figure 2, which can be the computer device 101 shown in Figure 1. As shown in Figure 6, the method for controlling the brightness of a display screen provided in an embodiment of the present application includes, but is not limited to, the following steps 601-603.
[0091] Step 601 : When a display screen displays a static image, obtain a first average display brightness corresponding to the display screen. The first average display brightness indicates whether the display brightness of the display screen needs to be attenuated.
[0092] In one possible embodiment, the display screen includes at least one partition; obtaining a first average display brightness corresponding to the display screen includes: obtaining the partition brightness and the number of partition pixels of each partition, the partition brightness of any partition being the sum of the brightness of each pixel included in any partition, and the number of partition pixels of any partition being the sum of the number of each pixel included in any partition; obtaining a second average display brightness of each partition based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition; obtaining a first average display brightness corresponding to the display screen based on the second average display brightness of each partition.
[0093] In one possible embodiment, based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition, the second average display brightness of each partition is obtained, including: based on the product value of the unit pixel brightness of each partition and the brightness ratio corresponding to the static picture, the second average display brightness of each partition is obtained, and the unit pixel brightness of any partition is the ratio of the partition brightness of any partition to the number of partition pixels.
[0094] In a possible implementation, obtaining the first average display brightness corresponding to the display screen based on the second average display brightness of each partition includes: using the second average display brightness of each partition that meets the first control condition as the first average display brightness.
[0095] In one possible embodiment, the display screen includes multiple sub-pixels; obtaining a first average display brightness corresponding to the display screen includes: obtaining the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition of the display screen, the partition sub-pixel brightness of any seed pixel in any partition being the sum of the brightness of any seed pixel included in any partition, and the number of partition sub-pixels of any seed pixel in any partition being the sum of the number of any seed pixel included in any partition; based on the brightness ratio corresponding to the static picture, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition, obtaining a third average display brightness of the multiple sub-pixels in at least one partition; obtaining a fourth average display brightness corresponding to the multiple sub-pixels based on the third average display brightness of the multiple sub-pixels in at least one partition; and obtaining a first average display brightness corresponding to the display screen based on the fourth average display brightness corresponding to the multiple sub-pixels.
[0096] In one possible embodiment, based on the brightness ratio corresponding to the static picture, and the partition sub-pixel brightness and the number of partition sub-pixels of the multiple sub-pixels in at least one partition, the third average display brightness of the multiple sub-pixels in at least one partition is obtained, including: based on the product value of the unit pixel brightness of the multiple sub-pixels in at least one partition and the brightness ratio corresponding to the static picture, the third average display brightness of the multiple sub-pixels in at least one partition is obtained, and the unit pixel brightness of any seed pixel in any partition is the ratio of the partition sub-pixel brightness of any seed pixel in any partition to the number of partition sub-pixels.
[0097] In one possible embodiment, based on the third average display brightness of the multiple sub-pixels in at least one partition, the fourth average display brightness corresponding to the multiple sub-pixels is obtained, including: for any seed pixel among the multiple sub-pixels, determining that the third average display brightness of any seed pixel that meets the second control condition in the third average display brightness of at least one partition is the fourth average display brightness corresponding to any seed pixel.
[0098] In one possible embodiment, based on the fourth average display brightness corresponding to the multiple sub-pixels, the first average display brightness corresponding to the display screen is obtained, including: taking the fourth average display brightness that meets the third control condition among the fourth display brightness corresponding to the multiple sub-pixels as the first average display brightness.
[0099] Step 602: When the first average display brightness is greater than or equal to the first brightness threshold, the display brightness of the display screen is decayed according to the decay rate until the attenuated display brightness is less than or equal to the second brightness threshold, and at least one of the decay rate and the second brightness threshold is related to the first display brightness.
[0100] In one possible embodiment, the display brightness of the display screen is determined by the brightness data of the static picture and the brightness ratio corresponding to the static picture; the display brightness of the display screen is attenuated according to the attenuation rate until the display brightness after attenuation is less than or equal to a second brightness threshold, including: attenuating the brightness ratio according to the attenuation rate, and controlling the display brightness of the display screen according to the brightness data of the static picture and the brightness ratio after attenuation; if the display brightness of the display screen is greater than the second brightness threshold, attenuating the attenuated brightness ratio again according to the attenuation rate, and controlling the display brightness of the display screen according to the brightness data of the static picture and the brightness ratio after attenuation again, until the display brightness of the display screen is less than or equal to the second brightness threshold.
[0101] Step 603 : When the first average display brightness is less than the first brightness threshold, control the display brightness of the display screen to remain unchanged.
[0102] The brightness control method for a display screen provided in an embodiment of the present application obtains a first average display brightness corresponding to the display screen, compares the first average display brightness with a preset first brightness threshold, and determines whether the current static image needs to be brightness attenuated based on the comparison result. This allows the display brightness of the display screen to remain unchanged when the initial brightness of the static image is low, thereby avoiding the problem of a decrease in display effect caused by a too low display brightness. Furthermore, when brightness attenuation of a static image is required, at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness, so that the attenuation strategy can be flexibly adjusted according to the first average display brightness. Compared with using the same attenuation strategy for different first average display brightnesses, the brightness attenuation effect can be improved.
[0103] In addition, the method and device embodiments provided in the above embodiments belong to the same concept, and their specific implementation processes are detailed in the device embodiments, which will not be repeated here.
[0104] Please refer to Figure 7, which shows a schematic diagram of the structure of a computer device provided in one embodiment of the present application. The computer device can be a terminal, such as a smartphone, tablet computer, vehicle-mounted terminal, laptop computer, or desktop computer. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0105] Typically, the terminal includes: a processor 701 and a memory 702 .
[0106] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0107] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is executed by the processor 701 to implement the brightness control method of the display screen provided in the method embodiment of the present application.
[0108] In some embodiments, the terminal may optionally include a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 703 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, and a power supply 708.
[0109] The peripheral device interface 703 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0110] The RF circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The RF circuit 704 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or wireless fidelity (WiFi) networks. In some embodiments, the RF circuit 704 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0111] Display screen 705 is used to display a user interface (UI). This UI may include graphics, text, icons, videos, or any combination thereof. When display screen 705 is a touchscreen display, it is also capable of collecting touch signals on or above the surface of display screen 705. These touch signals can be input as control signals to processor 701 for processing. Display screen 705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there can be a single display screen 705, located on the front panel of the terminal. In other embodiments, there can be at least two display screens 705, located on different surfaces of the terminal or in a foldable design. In still other embodiments, display screen 705 can be a flexible display, located on a curved or foldable surface of the terminal. Display screen 705 can also be configured as a non-rectangular, irregular shape, also known as a special-shaped screen. Display screen 705 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0112] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0113] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there can be multiple microphones, which are respectively arranged in different parts of the terminal. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker can be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signals into sound waves audible to humans, but also convert the electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.
[0114] Power supply 708 is used to power various components in the terminal. Power supply 708 can be AC power, DC power, disposable batteries, or rechargeable batteries. When power supply 708 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0115] In some embodiments, the terminal further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .
[0116] The accelerometer 710 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal. For example, the accelerometer 710 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 710. The accelerometer 710 can also be used to collect game or user motion data.
[0117] The gyroscope sensor 711 can detect the terminal's body orientation and rotation angle. It can also work with the accelerometer 710 to collect the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor 711, the processor 701 can implement the following functions: motion sensing (such as changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0118] The pressure sensor 712 can be set in the side frame of the terminal and / or the lower layer of the display screen 705. When the pressure sensor 712 is set in the side frame of the terminal, it can detect the user's grip signal of the terminal, and the processor 701 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is set in the lower layer of the display screen 705, the processor 701 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 705. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0119] The optical sensor 713 is used to detect ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 based on the ambient light intensity detected by the optical sensor 713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is decreased. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity detected by the optical sensor 713.
[0120] Proximity sensor 714, also known as a distance sensor, is typically located on the front panel of the terminal. Proximity sensor 714 is used to detect the distance between the user and the front of the terminal. In one embodiment, when proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually decreasing, processor 701 controls display screen 705 to switch from the screen-on state to the screen-off state. When proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually increasing, processor 701 controls display screen 705 to switch from the screen-off state to the screen-on state.
[0121] Those skilled in the art will appreciate that the structure shown in FIG. 7 does not limit the computer device and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.
[0122] In an exemplary embodiment, a computer device is further provided, comprising a processor and a memory, wherein the memory stores at least one program code. The at least one program code is loaded and executed by one or more processors to enable the computer device to implement any of the above-described methods for controlling brightness of a display screen.
[0123] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-mentioned display screen brightness control methods.
[0124] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0125] In an exemplary embodiment, a computer program product or computer program is also provided. The computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the above-described methods for controlling brightness of a display screen.
[0126] The terms "first," "second," "third," and "fourth," etc. in the specification and claims of this application and the accompanying drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0127] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A brightness control device for a display screen, characterized in that, The device includes: an acquisition module, configured to acquire a first average display brightness corresponding to the display screen when a static image is displayed on the display screen, where the first average display brightness indicates whether the display brightness of the display screen needs to be attenuated; a control module, configured to attenuate the display brightness of the display screen at an attenuation rate until the attenuated display brightness is less than or equal to a second brightness threshold when the first average display brightness is greater than or equal to a first brightness threshold, where at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness; and to keep the display brightness of the display screen unchanged when the first average display brightness is less than the first brightness threshold.
2. The device according to claim 1, characterized in that, The display screen includes at least one partition; the acquisition module is configured to acquire the partition brightness and the partition pixel number of each partition, where the partition brightness of any partition is the sum of the brightnesses of all pixels included in the any partition, and the partition pixel number of the any partition is the sum of the numbers of all pixels included in the any partition; to acquire the second average display brightness of each partition based on the brightness ratio corresponding to the static image, and the partition brightness and the partition pixel number of each partition; and to acquire the first average display brightness corresponding to the display screen based on the second average display brightness of each partition.
3. The device according to claim 2, wherein The acquisition module is configured to acquire the second average display brightness of each partition based on the product value of the brightness per unit pixel of each partition and the brightness ratio corresponding to the static image, where the brightness per unit pixel of any partition is the ratio of the partition brightness and the partition pixel number of the any partition.
4. The device according to claim 2, characterized in that, The acquisition module is configured to use the second average display brightness that meets a first control condition among the second average display brightnesses of each partition as the first average display brightness.
5. The device according to claim 1, characterized in that The display screen includes multiple types of sub-pixels; the acquisition module is configured to acquire the partition sub-pixel brightness and the partition sub-pixel number of each of the multiple types of sub-pixels in at least one partition of the display screen, where the partition sub-pixel brightness of any type of sub-pixel in any partition is the sum of the brightnesses of the any type of sub-pixel included in the any partition, and the partition sub-pixel number of the any type of sub-pixel in the any partition is the sum of the numbers of the any type of sub-pixel included in the any partition; to acquire the third average display brightness of each of the multiple types of sub-pixels in the at least one partition based on the brightness ratio corresponding to the static image, and the partition sub-pixel brightness and the partition sub-pixel number of each of the multiple types of sub-pixels in the at least one partition; to acquire the fourth average display brightness corresponding to each of the multiple types of sub-pixels according to the third average display brightness of each of the multiple types of sub-pixels in the at least one partition; and to acquire the first average display brightness corresponding to the display screen based on the fourth average display brightness corresponding to each of the multiple types of sub-pixels.
6. The device according to claim 5, characterized in that, The obtaining module is configured to obtain, based on the product values of the multiple sub-pixels in the unit pixel brightness of the at least one partition and the brightness ratio corresponding to the static picture, the third average display brightness of the multiple sub-pixels in the at least one partition, where the unit pixel brightness of any one sub-pixel in any one partition is the ratio of the partition sub-pixel brightness of the any one sub-pixel in the any one partition to the number of partition sub-pixels.
7. The device according to claim 5, characterized in that, The obtaining module is configured to, for any one of the multiple sub-pixels, determine that the third average display brightness in the third average display brightness of the any one sub-pixel in the at least one partition that satisfies the second control condition is the fourth average display brightness corresponding to the any one sub-pixel.
8. The device according to claim 5, characterized in that, The obtaining module is configured to use, as the first average display brightness, the fourth average display brightness that satisfies the third control condition among the fourth display brightnesses corresponding to the multiple sub-pixels respectively.
9. The device according to any one of claims 1-8, characterized in that, The display brightness of the display screen is determined by the brightness data of the static picture and the brightness ratio corresponding to the static picture; The control module is configured to attenuate the brightness ratio at the attenuation rate, and control the display brightness of the display screen according to the brightness data of the static picture and the attenuated brightness ratio; If the display brightness of the display screen is greater than the second brightness threshold, attenuate the attenuated brightness ratio again at the attenuation rate, and control the display brightness of the display screen according to the brightness data of the static picture and the brightness ratio after the re-attenuation until the display brightness of the display screen is less than or equal to the second brightness threshold.
10. A method for controlling the brightness of a display screen, characterized in that, The method includes: When the display screen displays a static picture, obtain the first average display brightness corresponding to the display screen, where the first average display brightness indicates whether the display brightness of the display screen needs to be attenuated; When the first average display brightness is greater than or equal to the first brightness threshold, attenuate the display brightness of the display screen at the attenuation rate until the attenuated display brightness is less than or equal to the second brightness threshold, where at least one of the attenuation rate and the second brightness threshold is related to the first average display brightness; When the first average display brightness is less than the first brightness threshold, control the display brightness of the display screen to remain unchanged.
11. The method according to claim 10, wherein The display screen includes at least one partition; obtaining the first average display brightness corresponding to the display screen includes: Obtain the partition brightness and the number of partition pixels of each partition, where the partition brightness of any one partition is the sum of the brightnesses of all pixels included in the any one partition, and the number of partition pixels of any one partition is the sum of the numbers of all pixels included in the any one partition; Based on the brightness ratio corresponding to the static picture, and the partition brightness and the number of partition pixels of each partition, obtain the second average display brightness of each partition; Based on the second average display brightness of each partition, obtain the first average display brightness corresponding to the display screen.
12. The method according to claim 10, wherein The display screen includes multiple sub-pixels; obtaining the first average display brightness corresponding to the display screen includes: Obtain the partition sub-pixel brightness and the partition sub-pixel quantity of each of the multiple sub-pixels in at least one partition of the display screen. The partition sub-pixel brightness of any one sub-pixel in any one partition is the sum of the brightnesses of the any one sub-pixel included in the any one partition, and the partition sub-pixel quantity of the any one sub-pixel in the any one partition is the sum of the quantities of the any one sub-pixel included in the any one partition; Based on the brightness ratio corresponding to the static picture, and the partition sub-pixel brightness and the partition sub-pixel quantity of each of the multiple sub-pixels in the at least one partition, obtain the third average display brightness of each of the multiple sub-pixels in the at least one partition; According to the third average display brightness of each of the multiple sub-pixels in the at least one partition, obtain the fourth average display brightness corresponding to each of the multiple sub-pixels; Based on the fourth average display brightness corresponding to each of the multiple sub-pixels, obtain the first average display brightness corresponding to the display screen.
13. The method according to any one of claims 10-12, characterized in that, The display brightness of the display screen is determined by the brightness data of the static picture and the brightness ratio corresponding to the static picture; The step of attenuating the display brightness of the display screen according to the attenuation rate until the attenuated display brightness is less than or equal to the second brightness threshold includes: Attenuate the brightness ratio according to the attenuation rate, and control the display brightness of the display screen according to the brightness data of the static picture and the attenuated brightness ratio; If the display brightness of the display screen is greater than the second brightness threshold, attenuate the attenuated brightness ratio again according to the attenuation rate, and control the display brightness of the display screen according to the brightness data of the static picture and the brightness ratio after the re-attenuation until the display brightness of the display screen is less than or equal to the second brightness threshold.
14. A computer device, characterized in that, The computer device includes a processor and a memory. At least one computer program or instruction is stored in the memory, and the at least one computer program or instruction is loaded and executed by the processor to enable the computer device to implement the display screen brightness control method according to any one of claims 10-13.
15. A computer-readable storage medium, characterized in that, At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement the display screen brightness control method according to any one of claims 10-13.
Citation Information
Patent Citations
OLED display apparatus and method of reducing OLED display apparatus power consumption
CN106057861A
Screen brightness adjusting method and terminal
CN106603856A
Brightness processing method, device thereof, computer equipment and readable storage medium
CN108847201A
Method and device for reducing power consumption of display panel
CN110890063A
Display control method and device, television and computer readable storage medium
CN113163141A