Screen dimming method and device and electronic equipment
By determining the first screen area based on reference information on the display screen of the electronic device and lowering its PWM frequency and light emitting circuit voltage, the increase in power consumption caused by high PWM frequency is solved, and the combination of eye protection effect and low power consumption is achieved. .
Patent Information
- Application Number
- CN202411905587.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-12-23
AI Technical Summary
When performing PWM dimming, low-frequency strobes may harm the user's vision, and when high PWM frequency is used to achieve eye protection, it will increase the power consumption of the electronic device.
By determining the first screen area of the display screen based on reference information (such as display information of the display screen and user's line of sight focus information), and adjusting the voltage of the light emitting circuit to reduce the voltage of the following circuit Power consumption.
While achieving eye protection effect, the power consumption of electronic devices is reduced, and more efficient energy use is achieved by lowering the PWM frequency in a specific screen area and the voltage of the light emitting circuit.
Smart Images

Figure CN119446062A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a screen dimming method, device and electronic equipment. Background Art
[0002] Pulse Width Modulation (PWM) dimming changes the brightness of the screen by controlling the duty cycle of the screen's alternating on and off. When performing PWM dimming, low-frequency flicker may harm the user's eyesight. Only when the PWM frequency is high enough can these hazards be ignored. Therefore, in order to achieve the effect of eye protection, a higher PWM frequency is usually used for PWM dimming.
[0003] However, the voltage of the screen's light-emitting circuit is different at different PWM frequencies. The higher the PWM frequency, the more pixel rows are not displayed in each frame, and the lower the screen brightness. In order to maintain the same brightness, the voltage of the entire light-emitting circuit needs to be increased, which results in higher power consumption of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a screen dimming method, device and electronic device, which can reduce the power consumption of the electronic device while achieving eye protection effect.
[0005] In a first aspect, an embodiment of the present application provides a screen dimming method, the method comprising: determining a first screen area of a display screen based on reference information, the reference information comprising at least one of the following: display information of the display screen, user's line of sight focus information; adjusting the PWM frequency of an area to be adjusted in the first screen area from a first PWM frequency to a second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the area to be adjusted is at least a portion of the screen area of the first screen area; based on the second PWM frequency, adjusting the voltage of a light-emitting circuit in the area to be adjusted.
[0006] In a second aspect, an embodiment of the present application provides a screen dimming device, which includes: a determination module, used to determine a first screen area of a display screen based on reference information, the reference information including at least one of the following: display information of the display screen, user's line of sight focus information; an adjustment module, used to adjust the PWM frequency of a to-be-adjusted area of the first screen area from a first PWM frequency to a second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the to-be-adjusted area is at least a portion of the screen area of the first screen area; based on the second PWM frequency, adjusting the voltage of the light-emitting circuit of the to-be-adjusted area.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program / program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, the first screen area of the display screen can be determined based on reference information, and the reference information includes at least one of the following: display information of the display screen, user's line of sight focus information; and the PWM frequency of the area to be adjusted in the first screen area is adjusted from the first PWM frequency to the second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the area to be adjusted is at least part of the screen area of the first screen area; and based on the second PWM frequency, the voltage of the light-emitting circuit in the area to be adjusted is adjusted. Through this scheme, when a high PWM frequency is used to perform PWM dimming on the screen of an electronic device, the first screen area of the screen can be determined based on the reference information, such as a screen area that displays black or a non-attention area of the user, and then the PWM frequency of the area to be adjusted in the first screen area can be lowered, and then the voltage of the light-emitting circuit in the area to be adjusted can be adjusted based on the lowered PWM frequency, and the change in the voltage of the light-emitting circuit is proportional to the change in the PWM frequency, so that only the PWM frequency and the voltage of the light-emitting circuit in the area to be adjusted can be lowered, and the high PWM frequency can still be used for PWM dimming in other screen areas, so that the power consumption of the electronic device can be reduced while achieving the eye protection effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a schematic diagram of a frame of picture displayed on a screen in a PWM dimming mode in the related art;
[0013] Figure 2 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0014] Figure 3 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0015] Figure 4 is a schematic diagram of a first screen area in a screen dimming method provided in some embodiments of the present application;
[0016] Figure 5 is a schematic diagram of a first screen area in a screen dimming method provided in some embodiments of the present application;
[0017] Figure 6 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0018] Figure 7 is a schematic diagram of a first screen area in a screen dimming method provided in some embodiments of the present application;
[0019] Figure 8 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0020] Fig. 9 is a schematic diagram of a method for adjusting PWM frequencies of different screen areas in a screen dimming method provided in some embodiments of the present application;
[0021] Fig.10 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0022] Fig.11 is a flow chart of a screen dimming method provided by some embodiments of the present application;
[0023] Fig.12 is a schematic diagram of a screen dimming device provided in some embodiments of the present application;
[0024] Fig.13 is a schematic diagram of an electronic device provided by some embodiments of the present application;
[0025] Fig.14 It is a hardware schematic diagram of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.
[0029] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0030] The following explains some concepts and terms involved in the screen dimming method, device and electronic device provided in the embodiments of the present application.
[0031] PWM dimming changes the brightness of the screen by controlling the duty cycle of the screen's alternating on and off. When the PWM dimming screen is on, it does not emit light continuously, but is constantly on and off. When the screen turns on and off quickly enough, the naked eye will think that the phone is always on. During the process of the screen turning on and off, the longer the screen is off, the lower the brightness of the screen will appear to the naked eye. The longer the lighting time is, the shorter the screen off time is, and the brighter the screen will be.
[0032] Among them, the OLED screen controls the PWM frequency by controlling the number of switching of the electromagnetic (EM) pulse. For example, in the direct current (DC) 18-pulse mode, the EM pulse switches 18 times per frame. If the screen refresh rate is 120Hz, then the number of EM pulse switches per second is 18 times 120, which is equal to 2160 times, that is, the PWM frequency is 2160Hz. Controlling the number of EM pulse switches can control different PWM frequencies.
[0033] In PWM dimming mode, using the camera to adjust the exposure time can result in multiple black lines appearing in one frame of the screen. Figure 1 As shown, in the DC 8pulse mode, the EM pulse switches 8 times in one frame, resulting in 8 black lines. The wider the black lines, the more rows of screen pixels are turned off or not displayed. The more black lines there are, the more total rows of pixels are not displayed in one frame, and the lower the brightness of the display.
[0034] DC dimming is a dimming method that changes the brightness of the screen by increasing or decreasing the power of the screen's light-emitting circuit.
[0035] Grayscale is the process of dividing the brightness change between the brightest and the darkest into several parts, so as to facilitate the screen brightness control corresponding to the signal input. Each digital image is composed of many points, which are also called pixels. Usually, each pixel can present many different colors. It is composed of three sub-pixels: red, green, and blue. The light source behind each sub-pixel can show different brightness levels, and the grayscale represents the different brightness levels from the darkest to the brightest. The more intermediate levels there are, the more delicate the picture effect can be presented. Taking the 8-bit channel as an example, it can express 2 to the power of 8, which is equal to 256 brightness levels, which we call 256 grayscales. Each pixel on the screen is composed of red, green, and blue of different brightness levels, and finally forms different color points. In other words, the color change of each point on the screen is actually caused by the grayscale change of the three red, green, and blue sub-pixels that make up this point.
[0036] The screen dimming method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0037] The screen dimming method provided in the embodiment of the present application can be applied to the scenario of PWM dimming of the screen of an electronic device.
[0038] Exemplarily, assuming that a user is watching a video through an electronic device, when PWM frequency 1 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen corresponding to the black area in the image based on the display information of the display screen, such as the grayscale information of each pixel in the image displayed on the display screen; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 1 to PWM frequency 2, PWM frequency 2 is less than PWM frequency 1, and the area to be adjusted is at least a portion of the screen area of the first screen area; and based on PWM frequency 2, adjust the voltage of the light-emitting circuit in the area to be adjusted.
[0039] Exemplarily, assuming that a user is browsing news through an electronic device with a foldable screen, when PWM frequency 3 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen that is not focused on the line of sight based on the user's line of sight focus information; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 3 to PWM frequency 4, PWM frequency 4 is less than PWM frequency 3, and the area to be adjusted is at least a portion of the screen area of the first screen area; and based on PWM frequency 4, adjust the voltage of the light-emitting circuit in the area to be adjusted.
[0040] In this way, when a high PWM frequency is used to perform PWM dimming on the screen of an electronic device, the first screen area of the screen can be determined based on reference information, such as a screen area that displays black or an area that the user is not looking at, and then the PWM frequency of the area to be adjusted in the first screen area is lowered, and then based on the lowered PWM frequency, the voltage of the light-emitting circuit in the area to be adjusted is adjusted, and the change in the voltage of the light-emitting circuit is proportional to the change in the PWM frequency, so that only the PWM frequency and the voltage of the light-emitting circuit in the area to be adjusted can be lowered, while other screen areas can still be PWM dimmed using a high PWM frequency, so that the power consumption of the electronic device can be reduced while achieving the eye protection effect.
[0041] It should be noted that the above scenarios are merely some common scenarios and do not constitute a limitation of the present application.
[0042] It should be noted that the screen dimming method provided in the embodiments of the present application can be executed by a screen dimming device, an electronic device, or a functional module in an electronic device, etc. In some embodiments of the present application, an electronic device executing the screen dimming method is taken as an example to illustrate the screen dimming method provided in the embodiments of the present application.
[0043] Figure 2 FIG. 1 is a flowchart of a screen dimming method provided by some embodiments of the present application. Figure 2 As shown, the screen dimming method provided in the embodiment of the present application may include the following steps 201 to 203.
[0044] Step 201: The electronic device determines a first screen area of a display screen based on reference information.
[0045] The reference information includes at least one of the following: display information of the display screen and user's visual focus information.
[0046] In some embodiments of the present application, the display screen may include but is not limited to any of the following: a full screen, a folding screen, a scroll screen, a surround screen, etc.
[0047] In some embodiments of the present application, the display information of the display screen may include relevant information of the image displayed on the display screen.
[0048] For example, the display information of the display screen may include grayscale information, pixel information, histogram information, etc. of each pixel in the image displayed on the display screen.
[0049] It should be noted that the image displayed on the display screen is the image frame displayed on the display screen of the electronic device at the current moment, wherein the image frame is sent to the display screen for display through a display processing unit (DPU) for processing image data and sending it for display. Since the grayscale detection is detected by the DPU hardware algorithm, the DPU can obtain the data of the image frame displayed on the display screen.
[0050] In some embodiments of the present application, the user's line of sight focus information is the focus information of the user's eyes; the electronic device can obtain the user's line of sight focus information through the human eye tracking technology.
[0051] For the specific description of the human eye tracking technology, please refer to the relevant description in the related technology. In order to avoid repetition, it will not be repeated here.
[0052] In some embodiments of the present application, the first screen area may be a screen area where the PWM frequency is to be adjusted.
[0053] In some embodiments of the present application, the first screen area may be a partial screen area or the entire screen area of the display screen.
[0054] In some embodiments of the present application, the electronic device may determine different first screen areas based on different reference information mentioned above.
[0055] For example, when the electronic device determines the first screen area based on the display information of the display screen, the first screen area may be the area displayed in black in the display screen; when the electronic device determines the first screen area based on the user's line of sight focus information, the first screen area may be the user's non-line of sight focus area in the display screen.
[0056] The specific method for the electronic device to determine the first screen area of the display screen based on the above reference information is described in detail below.
[0057] In some embodiments of the present application, the reference information includes display information of a display screen, and the display information includes grayscale information of each pixel in an image displayed on the display screen. Figure 2 ,like Figure 3 As shown, the above step 201 can be specifically implemented through the following steps 201a and 201b.
[0058] Step 201a: The electronic device determines, based on the grayscale information of each pixel in the image, a pixel region consisting of pixels having grayscale values equal to reference grayscale values in the image.
[0059] In some embodiments of the present application, the reference grayscale value may be 0.
[0060] It should be noted that the pixel area composed of pixels with a grayscale value of 0 in the image is the black screen area in the image.
[0061] Exemplarily, assuming that the above-mentioned reference grayscale value is 0, the electronic device can first count the histogram information of the image displayed on the display screen, and then determine the grayscale information of each pixel in the image based on the histogram information, and then determine the pixels with a grayscale value of 0 based on the grayscale information of each pixel, and then obtain the pixel area composed of these pixels with a grayscale value of 0.
[0062] Step 201b: The electronic device determines the screen area in the display screen corresponding to the pixel area as the first screen area.
[0063] It can be understood that the first screen area is a screen area in the display screen used to display the above pixel area.
[0064] For example, assuming that the reference grayscale value is 0, then Figure 4 As shown, when the user is watching a video in a non-full screen through an electronic device, the electronic device identifies a pixel area 42 composed of pixels whose grayscale values are not 0 in the image, that is, the display area of the video frame, based on the grayscale information of each pixel in the image displayed on the current display screen, and identifies pixel areas 41 and 43 composed of pixels whose grayscale values are 0 in the image. The electronic device can then determine the screen area corresponding to pixel areas 41 and 43 in the display screen as the first screen area, mark the first screen area as a low PWM frequency area, and mark the screen area corresponding to pixel area 42 in the display screen as a high PWM frequency area.
[0065] For example, assuming that the reference grayscale value is 0, then Figure 5As shown, when a user is using a camera program of an electronic device to shoot an image, the electronic device displays a shooting preview interface of the camera program, and the electronic device identifies a pixel area 52 composed of pixels whose grayscale values are not 0 in the image, i.e., a display area of the preview image, based on the grayscale information of each pixel in the image currently displayed on the display screen, and identifies pixel areas 51 and 52 composed of pixels whose grayscale values are 0 in the image. The electronic device can then determine the screen area corresponding to pixel area 51 and pixel area 53 in the display screen as the first screen area, mark the first screen area as a low PWM frequency area, and mark the screen area corresponding to pixel area 52 in the display screen as a high PWM frequency area.
[0066] In some embodiments of the present application, since the electronic device can first determine the pixel area composed of pixels whose grayscale values are the reference grayscale values in the image based on the grayscale information of each pixel in the image, and then determine the screen area in the display screen corresponding to the pixel area as the first screen area, the screen area corresponding to the black picture area in the image that the user does not pay attention to can be determined as the screen area whose PWM frequency is to be adjusted, so as to facilitate the subsequent adjustment of the PWM frequency of these screen areas.
[0067] In some embodiments of the present application, the reference information includes the user's sight focus information. Figure 2 ,like Figure 6 As shown, the above step 201 can be specifically implemented through the following steps 201c and 201d.
[0068] Step 201c: The electronic device determines the user's visual focus area on the display screen according to the visual focus information.
[0069] In some embodiments of the present application, after obtaining the above-mentioned line of sight focus information, the electronic device can determine the screen area within the focus range of the user's eyes, that is, the line of sight focus area of the user on the display screen according to the line of sight focus information.
[0070] Step 201d: The electronic device determines the screen area of the display screen except the sight focus area as the first screen area.
[0071] It can be understood that the first screen area is a non-sighted focus area in the screen, that is, a screen area that the user does not pay attention to.
[0072] For example, assuming that the user is using an electronic device with a foldable screen and is looking at the upper half of the foldable screen, Figure 7As shown, the electronic device can first obtain the user's line of sight focus information through the human eye tracking technology, and determine the user's line of sight focus area in the display screen, that is, the screen area 71, based on the line of sight focus information. Then the electronic device can determine the screen area 72 other than the screen area 71 in the folding screen as the first screen area, and mark the first screen area as a low PWM frequency area, and mark the screen area 71 as a high PWM frequency area.
[0073] For example, assuming that the user is watching a video through an electronic device, the electronic device can determine the user's sight focus area in the display screen, that is, the display area of the video frame that the user is looking at, based on the user's sight focus information. Then the electronic device can determine the screen area of the display screen other than the sight focus area as the first screen area, mark the first screen area as a low PWM frequency area, and mark the sight focus area as a high PWM frequency area.
[0074] For example, assuming that the user is browsing news on an electronic device with a foldable screen, the electronic device can determine the user's sight focus area in the display screen, that is, the display area of the news content that the user is looking at, based on the user's sight focus information. The electronic device can then determine the screen area of the display screen other than the sight focus area as the first screen area, mark the first screen area as a low PWM frequency area, and mark the sight focus area as a high PWM frequency area.
[0075] In some embodiments of the present application, since the electronic device can first determine the user's line of sight focus area in the display screen based on the line of sight focus information, and then determine the screen area in the display screen other than the line of sight focus area as the first screen area, the screen area in the image that the user's eyes are not looking at can be determined as the screen area whose PWM frequency is to be adjusted, so as to facilitate the subsequent adjustment of the PWM frequency of these screen areas.
[0076] In some embodiments of the present application, the reference information includes display information of the display screen and user's sight focus information, and the display information includes grayscale information of each pixel in the image displayed on the display screen. Figure 2 ,like Figure 8 As shown, the above step 201 can be specifically implemented through the following steps 201e and 201f.
[0077] Step 201e: The electronic device determines a pixel area in the image whose grayscale value is a reference grayscale value based on the grayscale information of each pixel in the image, and determines a visual focus area of the user on the display screen based on the visual focus information.
[0078] For the specific description of step 201e, please refer to the relevant descriptions in the above steps 201a and 201c. In order to avoid repetition, they will not be repeated here.
[0079] Step 201f: The electronic device determines the screen area in the display screen corresponding to the pixel area and the screen area in the display screen except the sight focus area as the first screen area.
[0080] In some embodiments of the present application, the electronic device may first merge the screen area corresponding to the above-mentioned pixel area in the display screen and the screen area in the display screen except the above-mentioned visual focus area, and then determine the merged screen area as the first screen area.
[0081] In some embodiments of the present application, since the electronic device can first determine the pixel area in the image whose grayscale value is the reference grayscale value based on the grayscale information of each pixel in the above image, and determine the user's line of sight focus area in the display screen based on the above line of sight focus information, and then determine the screen area in the display screen corresponding to the pixel area and the screen area in the display screen except the line of sight focus area as the first screen area, it is possible to accurately determine the screen area that the user does not pay attention to based on different reference information at the same time, so that when the PWM frequency is adjusted subsequently, the adjusted screen area can be further expanded, thereby maximizing the saving of device power consumption.
[0082] Step 202: The electronic device adjusts the PWM frequency of the to-be-adjusted area of the first screen area from the first PWM frequency to the second PWM frequency.
[0083] The second PWM frequency is less than the first PWM frequency; and the area to be adjusted is at least a partial screen area of the first screen area.
[0084] In some embodiments of the present application, the area to be adjusted is a screen area in the first screen area where the PWM frequency is not the second PWM frequency.
[0085] In some embodiments of the present application, the first PWM frequency may be a high PWM frequency, that is, a PWM frequency greater than or equal to a PWM frequency threshold.
[0086] For example, the first PWM frequency may be a PWM frequency corresponding to a DC 18 pulse mode, wherein when a screen refresh rate is 120 Hz, the PWM frequency corresponding to the DC 18 pulse mode is 2160 Hz.
[0087] In some embodiments of the present application, the above-mentioned PWM frequency threshold may be a system default, or may be arbitrarily set by the user according to actual usage requirements.
[0088] For example, taking the above-mentioned PWM frequency threshold as the system default, the PWM frequency threshold can be the PWM frequency corresponding to the DC 10pulse mode, where when the screen refresh rate is 120Hz, the PWM frequency corresponding to the DC 10pulse mode is 1200Hz; or, the PWM frequency threshold can be the PWM frequency corresponding to the DC 12pulse mode, where when the screen refresh rate is 120Hz, the PWM frequency corresponding to the DC 10pulse mode is 1440Hz.
[0089] Optionally, in the embodiment of the present application, the second PWM frequency may be a low PWM frequency, that is, a PWM frequency that is less than a PWM frequency threshold.
[0090] For example, the second PWM frequency may be a PWM frequency corresponding to a DC 1 pulse mode, wherein when a screen refresh rate is 120 Hz, the PWM frequency corresponding to the DC 1 pulse mode is 120 Hz.
[0091] Optionally, in the embodiment of the present application, the electronic device can adjust the frequency of PWM by adjusting the number of EM Pulse switches.
[0092] For the description of adjusting the PWM frequency, reference may be made to the specific description in the related art, and in order to avoid repetition, it will not be repeated here.
[0093] Exemplarily, assuming that a user is watching a video through an electronic device, when PWM frequency 1 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen corresponding to the black area in the image based on the display information of the display screen, such as the grayscale information of each pixel in the image displayed on the display screen; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 1 to PWM frequency 2, PWM frequency 2 is less than PWM frequency 1, and the area to be adjusted is at least a portion of the screen area of the first screen area.
[0094] For example, assuming that a user is browsing news on an electronic device with a foldable screen, when PWM frequency 3 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area of the display screen that is not focused on the line of sight based on the user's line of sight focus information; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 3 to PWM frequency 4, PWM frequency 4 is less than PWM frequency 3, and the area to be adjusted is at least a part of the screen area of the first screen area. For example, Fig. 9As shown, assuming that the area to be adjusted determined by the electronic device includes screen area 91 and screen area 93, and the electronic device marks screen area 91 and screen area 93 as low PWM frequency areas, and marks screen area 92 as high PWM frequency area; then the electronic device can adjust the PWM frequency of screen area 91 and the PWM frequency of screen area 93 from the first PWM frequency to the second PWM frequency, for example, from the PWM frequency corresponding to the DC 18pulse mode to the PWM frequency corresponding to the DC 1pulse mode, and keep the PWM frequency of screen area 92 at the original PWM frequency, for example, the PWM frequency corresponding to the DC 18pulse mode. In this way, different PWM frequencies can be set for different screen areas.
[0095] In some embodiments of the present application, the PWM frequency of the second screen area of the display screen remains unchanged.
[0096] The second screen area is a screen area in the display screen except the first screen area; the second screen area is an area of interest to the user, and the first screen area is an area of no interest to the user.
[0097] In some embodiments of the present application, the above-mentioned area of interest may be a screen area that the user pays attention to, and the above-mentioned area of no interest may be a screen area that the user does not pay attention to.
[0098] Exemplarily, assuming that a user is watching a video through an electronic device, when PWM frequency 1 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen corresponding to the black area in the image based on the display information of the display screen, such as the grayscale information of each pixel in the image displayed on the display screen; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 1 to PWM frequency 2, PWM frequency 2 is less than PWM frequency 1, and the area to be adjusted is at least a portion of the screen area of the first screen area; and do not adjust the PWM frequency of the second screen area in the display screen except the first screen area, that is, the PWM frequency of the second screen area remains unchanged.
[0099] For example, assuming that a user is browsing news on an electronic device with a foldable screen, when PWM frequency 3 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen that is not focused on the line of sight based on the user's line of sight focus information; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 3 to PWM frequency 4, PWM frequency 4 is less than PWM frequency 3, and the area to be adjusted is at least a portion of the screen area of the first screen area; and do not adjust the PWM frequency of the second screen area in the display screen except the first screen area, that is, the PWM frequency of the second screen area remains unchanged.
[0100] In some embodiments of the present application, after determining the above-mentioned non-interest area based on the above-mentioned reference information, the electronic device can determine the above-mentioned area of interest, and then the electronic device can adjust the PWM frequency of the non-interest area from the first PWM frequency to the second PWM frequency, and maintain the PWM frequency of the area of interest at the original PWM frequency, that is, the PWM frequency of the area of interest is not adjusted.
[0101] In some embodiments of the present application, since the electronic device can keep the PWM frequency of the second screen area unchanged while adjusting the PWM frequency of the first screen area, it is possible to perform PWM frequency only on the user's non-interested area without adjusting the PWM frequency of the user's interested area, thereby ensuring that the PWM frequency of the user's interested area remains unchanged, thereby achieving the purpose of eye protection.
[0102] Step 203: The electronic device adjusts the voltage of the light-emitting circuit in the area to be adjusted based on the second PWM frequency.
[0103] In some embodiments of the present application, different PWM frequencies may correspond to different voltages of the light-emitting circuit.
[0104] In some embodiments of the present application, the above-mentioned light-emitting circuit can be a light-emitting circuit in which the voltage of each pixel row can be adjusted individually.
[0105] In some embodiments of the present application, Figure 2 ,like Fig.10 As shown, the above step 203 can be specifically implemented through the following step 203a.
[0106] Step 203a: The electronic device adjusts the voltage of the light-emitting circuit to a rated voltage corresponding to the second PWM frequency.
[0107] The rated voltage is lower than the voltage of the light-emitting circuit before adjustment.
[0108] In some embodiments of the present application, after the electronic device adjusts the PWM frequency of the above-mentioned area to be adjusted from the first PWM frequency to the second PWM frequency, it can first determine the rated voltage of the above-mentioned light-emitting circuit when the second PWM frequency is used for PWM dimming, that is, the rated voltage corresponding to the second PWM frequency, according to the second PWM frequency, and then adjust the voltage of the above-mentioned light-emitting circuit to the rated voltage. In this way, the voltage of the light-emitting circuit can be reduced to achieve the purpose of saving power consumption of the device.
[0109] In some embodiments of the present application, the electronic device can change the effective value of the voltage output by the above-mentioned light-emitting circuit by adjusting the ratio of the pulse width, that is, the voltage of the light-emitting circuit can be adjusted by changing the duty cycle of the pulse width, thereby adjusting the voltage of the light-emitting circuit to the rated voltage corresponding to the second PWM frequency.
[0110] For example, assuming that a user is watching a video through an electronic device, when PWM frequency 1 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen corresponding to the black area in the image based on the display information of the display screen, such as the grayscale information of each pixel in the image displayed on the display screen; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 1 to PWM frequency 2, PWM frequency 2 is less than PWM frequency 1, and the area to be adjusted is at least a portion of the screen area of the first screen area; and adjust the voltage of the light-emitting circuit in the area to be adjusted to the rated voltage corresponding to PWM frequency 2.
[0111] For example, assuming that a user is browsing news through an electronic device with a foldable screen, when PWM frequency 3 is used to perform PWM dimming on the screen of the electronic device, the electronic device can determine the first screen area in the display screen that is not focused on the line of sight based on the user's line of sight focus information; then adjust the PWM frequency of the area to be adjusted in the first screen area from PWM frequency 3 to PWM frequency 4, PWM frequency 4 is less than PWM frequency 3, and the area to be adjusted is at least a portion of the screen area of the first screen area; and adjust the voltage of the light-emitting circuit in the area to be adjusted to the rated voltage corresponding to PWM frequency 4.
[0112] In some embodiments of the present application, since the electronic device can adjust the voltage of the above-mentioned light-emitting circuit to the rated voltage corresponding to the second PWM frequency, on the one hand, the light-emitting circuit after adjusting the PWM frequency can operate at the optimal voltage for normal operation, thereby improving the stability of the light-emitting circuit; on the other hand, the voltage of the light-emitting circuit can be reduced, thereby achieving the purpose of saving device power consumption.
[0113] It should be noted that when the display information of the display screen or the user's visual focus information changes, the electronic device can use the screen dimming method provided in some embodiments of the present application to determine the first screen area in real time, and lower the PWM frequency of the area to be adjusted in the first screen area and the voltage of the light-emitting circuit. In this way, the eye protection effect can always be achieved and the power consumption of the electronic device can be reduced while the user is using the electronic device.
[0114] In the screen dimming method provided in some embodiments of the present application, when a high PWM frequency is used to perform PWM dimming on the screen of an electronic device, the first screen area of the screen can be first determined based on reference information, such as a screen area that displays black or a non-attention area of the user, and then the PWM frequency of the area to be adjusted in the first screen area is lowered, and then based on the lowered PWM frequency, the voltage of the light-emitting circuit in the area to be adjusted is adjusted, and the change in the voltage of the light-emitting circuit is proportional to the change in the PWM frequency, so that only the PWM frequency of the area to be adjusted and the voltage of the light-emitting circuit can be lowered, while other screen areas can still be PWM dimmed using a high PWM frequency, so that the power consumption of the electronic device can be reduced while achieving the eye protection effect.
[0115] In some embodiments of the present application, Figure 2 ,like Fig.11 As shown, before the above step 202, the screen dimming method provided by some embodiments of the present application may also include the following step 204 or step 205.
[0116] Step 204: When there is no overlapping area between the third screen area and the first screen area, the electronic device determines the first screen area as the area to be adjusted.
[0117] The third screen area is an area to be adjusted determined by a PWM frequency adjustment that is adjacent to the first screen area.
[0118] In some embodiments of the present application, before determining the first screen area, the electronic device may have performed a PWM frequency adjustment and adjusted an area to be adjusted; then after the electronic device determines the first screen area when performing the PWM frequency adjustment this time, if the area to be adjusted has no overlapping area with the determined first screen area, it can be known that the PWM frequency of the first screen area is not the second PWM frequency. At this time, the electronic device can determine the first screen area as the area to be adjusted for this PWM frequency adjustment, and then adjust the PWM frequency of the entire first screen area to the second PWM frequency.
[0119] Step 204: When there is an overlapping area between the third screen area and the first screen area, the electronic device determines an area in the first screen area except the overlapping area as an area to be adjusted.
[0120] For example, assuming that the user is watching a video through an electronic device, the electronic device can determine whether there is an overlapping area between the first screen area and the third screen area after determining the first screen area in the display screen corresponding to the black area in the image based on the display information of the display screen, such as the grayscale information of each pixel in the image displayed on the display screen. Then, if there is no overlapping area between the third screen area and the first screen area, the electronic device determines the first screen area as the area to be adjusted for this adjustment of the PWM frequency; if there is an overlapping area between the third screen area and the first screen area, the electronic device determines the area in the first screen area other than the overlapping area as the area to be adjusted for this adjustment of the PWM frequency.
[0121] For example, assuming that the user is browsing news through an electronic device with a folding screen, the electronic device can determine whether there is an overlapping area between the first screen area and the third screen area after determining the non-line-of-sight focused first screen area in the display screen based on the user's line-of-sight focus information. Then, when there is no overlapping area between the third screen area and the first screen area, the electronic device determines the first screen area as the area to be adjusted for this adjustment of the PWM frequency; when there is an overlapping area between the third screen area and the first screen area, the electronic device determines the area in the first screen area other than the overlapping area as the area to be adjusted for this adjustment of the PWM frequency. In some embodiments of the present application, before determining the first screen area, the electronic device may have performed a PWM frequency adjustment and adjusted an area to be adjusted; then, after the electronic device determines the first screen area when performing the PWM frequency adjustment this time, if the area to be adjusted has an overlapping area with the determined first screen area, it can be known that the PWM frequency of the overlapping area has been adjusted to the second PWM frequency. At this time, the electronic device can determine the area in the first screen area other than the overlapping area as the area to be adjusted, and then adjust the PWM frequency of the determined area to be adjusted to the second PWM frequency.
[0122] In some embodiments of the present application, since the electronic device can determine the area to be adjusted of the first screen area based on whether there is an overlapping area between the third screen area and the first screen area, the area to be adjusted can be accurately determined to perform PWM frequency adjustment on the area to be adjusted, without having to perform unnecessary PWM frequency adjustment on the overlapping area between the third screen area and the first screen area, thereby improving the accuracy of the PWM frequency adjustment.
[0123] The following is an exemplary description of the screen dimming methods provided in some embodiments of the present application.
[0124] For example, the screen dimming method provided in some embodiments of the present application can detect the grayscale information of the image displayed on the display screen, divide the screen area, and set different PWM frequencies for different screen areas. The specific process is as follows:
[0125] Step 1: The electronic device detects grayscale information of an image currently displayed on a display screen, and divides the screen area according to the detected grayscale information.
[0126] Specifically, the electronic device identifies a large black area in the image based on the grayscale information of the image currently displayed on the display screen, and then determines the screen area of the display screen corresponding to the black area as the first screen area, and determines the screen area of the display screen other than the first screen area as the second screen area.
[0127] Step 2: The electronic device determines the screen area to be adjusted in the first screen area according to whether the first screen area and the third screen area have overlapping areas.
[0128] The third screen area is an area to be adjusted determined by a PWM frequency adjustment that is adjacent to the first screen area.
[0129] Step 3: The electronic device adjusts the PWM frequency of the to-be-adjusted area of the first screen area to the second PWM frequency, and keeps the PWM frequency of the second screen area unchanged.
[0130] Step 4: The electronic device adjusts the voltage of the light-emitting circuit in the to-be-adjusted area of the first screen area.
[0131] Specifically, a light emitting circuit whose voltage of each pixel row can be adjusted individually is used to achieve individual adjustment of the voltage of the light emitting circuit for each area, and then the voltage of the light emitting circuit is adjusted to the rated voltage corresponding to the second PWM frequency.
[0132] In this way, different PWM frequencies and light-emitting circuit voltages can be set for different screen areas, so that the screen area with high PWM frequency can display the image normally to ensure the display effect of the area that the user pays attention to and achieve the purpose of eye protection; and the screen area with low PWM frequency, that is, the area that the user does not pay attention to or the unimportant area, will not affect the user's use and can reduce the power consumption of the device.
[0133] Exemplarily, the screen dimming method provided in some embodiments of the present application can set different PWM frequencies for different half-screens by detecting the split-screen area of the folding screen that the human eye is looking at. The specific process is as follows:
[0134] Step a: The electronic device detects the user's visual focus area when the folding screen is displayed in split screen.
[0135] Specifically, the electronic device can determine the above-mentioned visual focus area through human eye tracking technology.
[0136] Step b: The electronic device sets different PWM frequencies for different half screens of the folding screen.
[0137] Specifically, the electronic device maintains a high PWM frequency for the half screen where the line of sight focus area is located, and adjusts the PWM frequency of the other half screen (hereinafter referred to as screen a) to a low PWM frequency.
[0138] Step c: The electronic device adjusts the voltage of the light-emitting circuit of screen a to the rated voltage corresponding to the above-mentioned low PWM frequency.
[0139] In this way, the PWM frequency of the half screen that the user is not looking at and the voltage of the light-emitting circuit can be reduced without affecting the user experience, thereby reducing the power consumption of the device without affecting the eye protection effect.
[0140] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0141] The screen dimming method provided in the embodiment of the present application can be executed by a screen dimming device. In the embodiment of the present application, the screen dimming device provided in the embodiment of the present application is described by taking the screen dimming method executed by the screen dimming device as an example.
[0142] like Fig.12 As shown, some embodiments of the present application provide a screen dimming device 120, and the screen dimming device 120 may include: a determination module 121, which can be used to determine the first screen area of the display screen based on reference information, and the reference information includes at least one of the following: display information of the display screen, and user's line of sight focus information. An adjustment module 122, which can be used to adjust the PWM frequency of the to-be-adjusted area of the first screen area from the first PWM frequency to the second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the to-be-adjusted area is at least a portion of the screen area of the first screen area; and based on the second PWM frequency, adjust the voltage of the light-emitting circuit of the to-be-adjusted area.
[0143] In some embodiments of the present application, the reference information includes display information of a display screen, and the display information includes grayscale information of each pixel in an image displayed on the display screen. The determination module 121 can be specifically used to determine, based on the grayscale information of each pixel in the image, a pixel area in the image consisting of pixels whose grayscale values are reference grayscale values; and determine the screen area in the display screen corresponding to the pixel area as the first screen area.
[0144] In some embodiments of the present application, the reference information includes the user's line of sight focus information. The determination module 121 can be specifically used to determine the user's line of sight focus area in the display screen according to the line of sight focus information; and determine the screen area of the display screen except the line of sight focus area as the first screen area.
[0145] In some embodiments of the present application, the reference information includes display information of the display screen and user's line of sight focus information, and the display information includes grayscale information of each pixel in the image displayed on the display screen. The determination module 121 can be specifically used to determine the pixel area in the image whose grayscale value is the reference grayscale value according to the grayscale information of each pixel in the image, and determine the line of sight focus area of the user in the display screen according to the line of sight focus information; and determine the screen area in the display screen corresponding to the pixel area and the screen area in the display screen other than the line of sight focus area as the first screen area.
[0146] In some embodiments of the present application, the adjustment module 122 can be specifically used to adjust the voltage of the above-mentioned light-emitting circuit to a rated voltage corresponding to the second PWM frequency; wherein the rated voltage is smaller than the voltage of the light-emitting circuit before adjustment.
[0147] In some embodiments of the present application, the PWM frequency of the second screen area of the display screen remains unchanged; wherein the second screen area is the screen area of the display screen excluding the first screen area; the second screen area is the user's area of interest, and the first screen area is a non-area of interest.
[0148] In some embodiments of the present application, the determination module 121 may also be used to determine the first screen area as the area to be adjusted when there is no overlapping area between the third screen area and the first screen area before the adjustment module 122 adjusts the PWM frequency of the area to be adjusted in the first screen area from the first PWM frequency to the second PWM frequency; or, when there is an overlapping area between the third screen area and the first screen area, determine the area in the first screen area other than the overlapping area as the area to be adjusted. The third screen area is the area to be adjusted determined by a PWM frequency adjustment adjacent to the first screen area before the first screen area is determined.
[0149] In the screen dimming device provided in the embodiment of the present application, when a high PWM frequency is used to perform PWM dimming on the screen of an electronic device, the screen dimming device can first determine the first screen area of the screen according to reference information, such as a screen area that displays black or a non-attention area of the user, and then lower the PWM frequency of the area to be adjusted in the first screen area, and then adjust the voltage of the light-emitting circuit in the area to be adjusted based on the lowered PWM frequency, and the change in the voltage of the light-emitting circuit is proportional to the change in the PWM frequency, so that only the PWM frequency of the area to be adjusted and the voltage of the light-emitting circuit can be lowered, while other screen areas can still use a high PWM frequency for PWM dimming, so that the power consumption of the electronic device can be reduced while achieving the eye protection effect.
[0150] The screen dimming device in some embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiments of the present application are not specifically limited.
[0151] The screen dimming device in some embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
[0152] The screen dimming device provided in some embodiments of the present application can implement the various processes implemented in the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, they will not be described here.
[0153] like Fig.13As shown, some embodiments of the present application further provide an electronic device 100, including a processor 101 and a memory 102, wherein the memory 102 stores programs or instructions that can be executed on the processor 101, and when the program or instructions are executed by the processor 101, the various steps of the screen dimming method embodiment described above are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.
[0154] It should be noted that the electronic devices in some embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
[0155] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0156] like Fig.14 As shown, the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0157] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0158] Among them, the processor 1010 can be used to determine the first screen area of the display screen based on reference information, the reference information includes at least one of the following: display information of the display screen, user's line of sight focus information; and adjust the PWM frequency of the area to be adjusted in the first screen area from the first PWM frequency to the second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the area to be adjusted is at least a part of the screen area of the first screen area; and based on the second PWM frequency, adjust the voltage of the light-emitting circuit in the area to be adjusted.
[0159] In some embodiments of the present application, the reference information includes display information of a display screen, and the display information includes grayscale information of each pixel in an image displayed on the display screen. The processor 1010 may be specifically configured to determine, based on the grayscale information of each pixel in the image, a pixel region consisting of pixels having a grayscale value of a reference grayscale value in the image; and determine the screen region in the display screen corresponding to the pixel region as the first screen region.
[0160] In some embodiments of the present application, the reference information includes the user's line of sight focus information. The processor 1010 may be specifically configured to determine the user's line of sight focus area in the display screen according to the line of sight focus information; and determine the screen area of the display screen other than the line of sight focus area as the first screen area.
[0161] In some embodiments of the present application, the reference information includes display information of the display screen and user's line of sight focus information, and the display information includes grayscale information of each pixel in the image displayed on the display screen. The processor 1010 can be specifically configured to determine a pixel area in the image whose grayscale value is a reference grayscale value based on the grayscale information of each pixel in the image, and determine the user's line of sight focus area in the display screen based on the line of sight focus information; and determine the screen area in the display screen corresponding to the pixel area and the screen area in the display screen other than the line of sight focus area as the first screen area.
[0162] In some embodiments of the present application, the processor 1010 can be specifically used to adjust the voltage of the above-mentioned light-emitting circuit to a rated voltage corresponding to the second PWM frequency; wherein the rated voltage is smaller than the voltage of the light-emitting circuit before adjustment.
[0163] In some embodiments of the present application, the PWM frequency of the second screen area of the display screen remains unchanged; wherein the second screen area is the screen area of the display screen excluding the first screen area; the second screen area is the user's area of interest, and the first screen area is a non-area of interest.
[0164] In some embodiments of the present application, the processor 1010 may also be used to determine the first screen area as the area to be adjusted before adjusting the PWM frequency of the area to be adjusted in the first screen area from the first PWM frequency to the second PWM frequency, if the third screen area and the first screen area have no overlapping area, or, if the third screen area and the first screen area have overlapping area, determine the area in the first screen area other than the overlapping area as the area to be adjusted. The third screen area is the area to be adjusted determined by a PWM frequency adjustment adjacent to the first screen area before determining the first screen area.
[0165] In the electronic device provided in the embodiment of the present application, when a high PWM frequency is used to perform PWM dimming on the screen of the electronic device, the electronic device can first determine the first screen area of the screen according to reference information, such as a screen area that displays black or a non-attention area of the user, and then lower the PWM frequency of the area to be adjusted in the first screen area, and then adjust the voltage of the light-emitting circuit in the area to be adjusted based on the lowered PWM frequency, and the change in the voltage of the light-emitting circuit is proportional to the change in the PWM frequency, so that only the PWM frequency of the area to be adjusted and the voltage of the light-emitting circuit can be lowered, while other screen areas can still use a high PWM frequency for PWM dimming, so that the power consumption of the electronic device can be reduced while achieving the eye protection effect.
[0166] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0167] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0168] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0169] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned screen dimming method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0170] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0171] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned screen dimming method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0172] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0173] An embodiment of the present application provides a computer program / program product, which is stored in a storage medium. The program / program product is executed by at least one processor to implement the various processes of the above-mentioned screen dimming method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0174] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0176] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A screen dimming method, characterized in that: The method comprises: Determine a first screen area of the display screen based on reference information, wherein the reference information includes at least one of the following: display information of the display screen, and user's line of sight focus information; Adjusting the pulse width modulation (PWM) frequency of the to-be-adjusted area of the first screen area from the first PWM frequency to the second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; and the to-be-adjusted area is at least a portion of the screen area of the first screen area; Based on the second PWM frequency, the voltage of the light emitting circuit in the area to be adjusted is adjusted.
2. The method according to claim 1, characterized in that The reference information includes display information of the display screen, and the display information includes grayscale information of each pixel in the image displayed by the display screen; The determining, based on the reference information, a first screen area of the display screen includes: Determine, according to the grayscale information of each pixel in the image, a pixel region composed of pixels whose grayscale values are reference grayscale values in the image; A screen area in the display screen corresponding to the pixel area is determined as a first screen area.
3. The method according to claim 1, characterized in that The reference information includes the user's sight focus information; The determining, based on the reference information, a first screen area of the display screen includes: Determining a user's visual focus area on the display screen according to the visual focus information; A screen area in the display screen except the visual focus area is determined as a first screen area.
4. The method according to claim 1, characterized in that: The reference information includes display information of the display screen and user's sight focus information, and the display information includes grayscale information of each pixel in the image displayed on the display screen; The determining, based on the reference information, a first screen area of the display screen includes: Determine, according to the grayscale information of each pixel in the image, a pixel area whose grayscale value is a reference grayscale value in the image, and determine, according to the line of sight focus information, a line of sight focus area of the user in the display screen; A screen area in the display screen corresponding to the pixel area and a screen area in the display screen excluding the visual focus area are determined as a first screen area.
5. The method according to claim 1, characterized in that: The step of adjusting the voltage of the light emitting circuit of the area to be adjusted based on the second PWM frequency includes: adjusting the voltage of the light-emitting circuit to a rated voltage corresponding to the second PWM frequency; Wherein, the rated voltage is less than the voltage of the light-emitting circuit before adjustment.
6. The method according to any one of claims 1 to 5, characterized in that The PWM frequency of the second screen area of the display screen remains unchanged; The second screen area is a screen area of the display screen except the first screen area; the second screen area is an area of interest to the user, and the first screen area is an area of no interest to the user.
7. The method according to any one of claims 1 to 5, characterized in that Before adjusting the pulse width modulation (PWM) frequency of the to-be-adjusted area of the first screen area from the first PWM frequency to the second PWM frequency, the method further includes: In a case where the third screen area and the first screen area have no overlapping area, determining the first screen area as the area to be adjusted; In the case where the third screen area and the first screen area have an overlapping area, determining an area in the first screen area except the overlapping area as an area to be adjusted; The third screen area is an area to be adjusted determined by a PWM frequency adjustment that is adjacent to the first screen area.
8. A screen dimming device, characterized in that: include: A determination module, configured to determine a first screen area of a display screen based on reference information, wherein the reference information includes at least one of the following: display information of the display screen, and user's sight focus information; An adjustment module is used to adjust the PWM frequency of the to-be-adjusted area of the first screen area from a first PWM frequency to a second PWM frequency; wherein the second PWM frequency is less than the first PWM frequency; the to-be-adjusted area is at least a portion of the screen area of the first screen area; and based on the second PWM frequency, adjust the voltage of the light-emitting circuit of the to-be-adjusted area.
9. The device according to claim 8, characterized in that The reference information includes display information of the display screen, and the display information includes grayscale information of each pixel in the image displayed by the display screen; The determination module is specifically used to determine a pixel area composed of pixels whose grayscale values in the image are reference grayscale values according to the grayscale information of each pixel in the image; and determine the screen area in the display screen corresponding to the pixel area as the first screen area.
10. The device according to claim 8, characterized in that The reference information includes the user's sight focus information; The determination module is specifically used to determine the user's line of sight focus area in the display screen according to the line of sight focus information; and determine the screen area of the display screen except the line of sight focus area as the first screen area.
11. The device according to claim 8, characterized in that The reference information includes display information of the display screen and user's sight focus information, and the display information includes grayscale information of each pixel in the image displayed on the display screen; The determination module is specifically configured to determine a pixel area in the image whose grayscale value is a reference grayscale value according to the grayscale information of each pixel in the image, and determine a sight focus area of the user in the display screen according to the sight focus information; A screen area in the display screen corresponding to the pixel area and a screen area in the display screen excluding the sight focus area are determined as a first screen area.
12. The device according to claim 8, characterized in that The adjustment module is specifically used to adjust the voltage of the light-emitting circuit to a rated voltage corresponding to the second PWM frequency; Wherein, the rated voltage is less than the voltage of the light-emitting circuit before adjustment.
13. The device according to any one of claims 8 to 12, characterized in that The PWM frequency of the second screen area of the display screen remains unchanged; The second screen area is a screen area of the display screen except the first screen area; the second screen area is an area of interest to the user, and the first screen area is an area of no interest to the user.
14. The device according to any one of claims 8 to 12, characterized in that The determining module is further configured to, before the adjusting module adjusts the PWM frequency of the to-be-adjusted area of the first screen area from the first PWM frequency to the second PWM frequency, determine the first screen area as the to-be-adjusted area when there is no overlapping area between the third screen area and the first screen area; and determine the area of the first screen area other than the overlapping area as the to-be-adjusted area when there is an overlapping area between the third screen area and the first screen area; The third screen area is an area to be adjusted determined by a PWM frequency adjustment that is adjacent to the first screen area.
15. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the screen dimming method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Human-computer interaction device and method adopting eye tracking in video monitoring
CN101866215A
Terminal screen information layout adjustment method, device, mobile terminal, and storage medium
CN109471579A
Screen display adjusting method and device, electronic equipment and storage medium
CN113240112A
Method and system for testing fluency of touch screen of electronic equipment and storage medium
CN115658410A
Screen brightness adjusting method and device, electronic equipment and storage medium
CN117373397A