WO2023065807A1 - 屏幕控制方法、装置、电子设备及存储介质 - Google Patents
屏幕控制方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023065807A1 WO2023065807A1 PCT/CN2022/114160 CN2022114160W WO2023065807A1 WO 2023065807 A1 WO2023065807 A1 WO 2023065807A1 CN 2022114160 W CN2022114160 W CN 2022114160W WO 2023065807 A1 WO2023065807 A1 WO 2023065807A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- screen
- duration
- electronic device
- target
- target area
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000000875 corresponding effect Effects 0.000 claims description 31
- 230000003068 static effect Effects 0.000 claims description 7
- 230000001276 controlling effect Effects 0.000 claims description 6
- 230000002596 correlated effect Effects 0.000 claims description 2
- 230000009467 reduction Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 9
- 230000032683 aging Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 10
- 206010047571 Visual impairment Diseases 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000035772 mutation Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004020 luminiscence type Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- H—ELECTRICITY
- H10—SEMICONDUCTOR DEVICES; ELECTRIC SOLID-STATE DEVICES NOT OTHERWISE PROVIDED FOR
- H10K—ORGANIC ELECTRIC SOLID-STATE DEVICES
- H10K59/00—Integrated devices, or assemblies of multiple devices, comprising at least one organic light-emitting element covered by group H10K50/00
Definitions
- the present application relates to the technical field of electronic equipment, and more specifically, to a screen control method, device, electronic equipment, and storage medium.
- the present application proposes a screen control method, device, electronic equipment and storage medium.
- an embodiment of the present application provides a method for controlling a screen, which is applied to an electronic device, and the electronic device includes a screen.
- the method includes: when the screen is in a bright state, acquiring the device status data; if it is determined based on the device status data that the electronic device is in an unused state, obtain the duration of the electronic device in an unused state as a target duration; if the target duration is less than the first duration, control the The pixels of the target area in the display screen of the screen are moved, and the contrast of the target area is greater than the preset contrast.
- the embodiment of the present application provides a screen control device, which is applied to an electronic device, the electronic device includes a screen, and the device includes: a state acquisition module, a duration acquisition module, and a pixel movement module, wherein the state The obtaining module is used to obtain the device state data of the electronic device when the screen is in a bright state; the duration obtaining module is used to determine that the electronic device is in an unused state based on the device state data, Acquiring the duration of the electronic device in an unused state as a target duration; the pixel moving module is used to control the pixel points in the target area in the display screen of the screen to move if the target duration is less than the first duration, the The contrast of the target area is greater than the preset contrast.
- the embodiment of the present application provides an electronic device, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and The one or more programs are configured to be executed by the one or more processors, and the one or more programs are configured to execute the screen control method provided in the first aspect above.
- the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the screen provided by the first aspect above. Control Method.
- Fig. 1 shows a flowchart of a screen control method according to an embodiment of the present application.
- FIG. 2 shows a schematic diagram of the phase relationship between MIPI and TE provided by the embodiment of the present application.
- FIG. 3 shows a schematic diagram of pixel movement provided by the embodiment of the present application.
- FIG. 4 shows another schematic diagram of pixel movement provided by the embodiment of the present application.
- FIG. 5 shows another schematic diagram of pixel movement provided by the embodiment of the present application.
- FIG. 6 shows another schematic diagram of pixel movement provided by the embodiment of the present application.
- FIG. 7 shows yet another schematic diagram of pixel movement provided by the embodiment of the present application.
- FIG. 8 shows a schematic diagram of an interface provided by an embodiment of the present application.
- Fig. 9 shows a flowchart of a screen control method according to another embodiment of the present application.
- Fig. 10 shows a flowchart of a screen control method according to yet another embodiment of the present application.
- Fig. 11 shows a block diagram of a screen control device according to an embodiment of the present application.
- Fig. 12 is a block diagram of an electronic device for executing the screen control method according to the embodiment of the present application according to the embodiment of the present application.
- Fig. 13 is a storage unit for storing or carrying program codes for realizing the screen control method according to the embodiment of the present application according to the embodiment of the present application.
- OLED Organic Light Emitting Diode
- OLED Organic Light Emitting Diode
- the inventor proposes the screen control method, device, electronic device and storage medium provided by the embodiments of the present application, which can realize the control of high contrast when the electronic device is in the unused state for less than the first time.
- Moving the area can distribute the pixel aging of the area with high contrast to other areas, delay the aging of the pixels of the screen, and improve the afterimage to a certain extent and improve the display effect.
- the specific screen control method will be described in detail in the subsequent embodiments.
- FIG. 1 shows a schematic flowchart of a screen control method provided by an embodiment of the present application.
- the screen control method is applied to a screen control device 400 as shown in FIG. 11 and an electronic device 100 ( FIG. 12 ) configured with the screen control device 400 .
- the following will take electronic equipment as an example to illustrate the specific process of this embodiment.
- the electronic equipment used in this embodiment can be a smart phone, a tablet computer, a smart watch, a notebook computer, etc., and is not limited here. .
- the process shown in Figure 1 will be described in detail below, and the screen control method may specifically include the following steps:
- Step S110 when the screen is in a bright state, acquire device status data of the electronic device.
- the electronic device can monitor its screen status, so as to control the display of the screen accordingly when the screen is in the bright screen state, so as to improve the problems of pixel aging and burn-in of the screen.
- the screen state refers to the working state of the screen of the electronic device; the screen state may include a bright screen state and a screen off state, the bright screen state refers to the working state when the screen of the electronic device is on, and the screen off state refers to The working state of an electronic device when the screen is off.
- the screen may be an OLED screen, such as an active-matrix organic light-emitting diode (AMOLED) screen, a traditional OLED screen, etc., which are not limited herein.
- AMOLED active-matrix organic light-emitting diode
- the electronic device can acquire the screen status in multiple ways.
- the operating system reads corresponding parameter values, so as to determine the screen state of the electronic device according to the read parameter values.
- the screen state can be obtained through the isScreenOn method of PowerManager, that is, by obtaining the value of isScreenOn, if the value of isScreenOn is true, the screen of the electronic device The screen is on, if the value of isScreenOn is false, the screen of the electronic device is off.
- the electronic device may also obtain the brightness value of the screen, and determine the screen state of the electronic device according to the brightness value of the screen.
- the manner of specifically detecting the screen state of the electronic device may not be limited.
- the electronic device can obtain the device state data of the electronic device when its screen is in the bright state, so as to determine whether the electronic device is in the unused state according to the device state data, so that when the electronic device is in the unused state, Next, control the display of the screen.
- the device state data may be state data used to determine the use state of the electronic device.
- the device state data may include: touch data of the screen, data of an application processor (Application Processor, AP), image data captured by a camera, etc.
- the specific device state data may not be limited.
- Step S120 If it is determined based on the device state data that the electronic device is in an unused state, acquire a time duration of the electronic device in an unused state as a target time length.
- the electronic device may determine whether the electronic device is in an unused state based on the device state data, so as to control the display of the screen according to the determination result.
- the electronic device may determine whether the electronic device is in an unused state based on at least one of the data of the application processor, the image data captured by the camera, and the touch data of the screen.
- the device state data may include touch data
- the electronic device may determine the use state of the electronic device according to the touch data. It can be understood that when the electronic device is in the bright screen state, if the user's finger touches the touch screen, the logic of the touch screen is to report the coordinates and raw data (raw data) values in real time, click operation/slide operation (different positions, different lengths) , different radians, etc.) can be presented by raw data. When a click operation or a slide operation is detected, it can be determined that the user is using the electronic device at this time; when no click operation or slide operation is detected, the electronic device is in an unused state. Among them, when sliding or clicking, the raw data will change.
- the AP can determine the touch feature value corresponding to the touch data and judge the touch feature. Whether the value meets the eigenvalue corresponding to the click operation or the sliding operation; among them, the eigenvalue corresponding to the click operation is mainly realized as a numerical mutation in a concentrated area, and the eigenvalue corresponding to the sliding operation is mainly realized as a jump of horizontal or vertical data mutation (if there is a broken line in the middle, it can also be determined as this characteristic value), of course, the characteristic value corresponding to the click operation and the characteristic value corresponding to the sliding operation can also be determined according to the historical touch data when the user uses the electronic device.
- device status data may include AP data.
- MIPI Mobile Industry Processor Interface Alliance, Mobile Industry Processor Interface
- RGB Remote Graphics Bus
- RAM random access memory
- DDIC Display driver Integrated Circuit Chip
- TE is at a low level and MIPI is also at a low level, it means that the data is being updated iteratively. If TE is at low level and MIPI level is at high level, it means that the data is not updated, and the display side is calling the data source stored in RAM or Flash at the DDIC side at this time. Based on this, the AP side can judge whether the screen image is in a static image or a fixed video or a small animation (that is, a repeating cycle display image) at this time by monitoring the data changes, and then judge whether it is in a Screen not updating status.
- the screen image is a static image or a repeated display image, it means that the image is not updated at this time, so it can be determined that the user is not using the electronic device; otherwise, if the screen image is determined based on the AP data If it is not a static picture and is not repeatedly displayed in a loop, it means that the picture is in an update state at this time, so it can be determined that the user is using the electronic device.
- the device status data may include image data captured by a camera.
- the electronic device may include a front camera, and the electronic device may collect images through the front camera; the electronic device may determine whether there is a human face in the image according to the image data collected by the front camera, and if a human face is determined, then It means that the electronic equipment is in use, otherwise, it means that the electronic equipment is not in use. Understandably, if the user is using an electronic device, the face is generally facing the screen. If the electronic device supports face recognition, it can be detected by detecting whether there is facial feature data at this time; The equipment is in use, otherwise, it means that the electronic equipment is not in use.
- the electronic device when it detects that there is a human face in the collected images, it can also determine the face area in the continuously collected multiple frames of images according to the face area in the continuously collected multiple frames of images. Whether the human eyes are closed; if the human eyes are closed in multiple consecutive frames of images, it can be determined that the user is in a sleep state, and at this time it can also be determined that the electronic device is not in use; if in the continuous multiple frames of images, If the human eyes in each frame of image are not closed, it can be determined that the electronic device is in use.
- the device state data includes the touch data of the screen
- the touch data reported by the touch screen to the AP includes report point data on the edge of the screen
- the device is in a holding state, it can be determined that the electronic device is in use; if there is no reporting data on the edge of the screen, indicating that the electronic device is not in a holding state at this time, it can be determined that the electronic device is in an unused state.
- the above implementation manners may also be combined to realize the determination of the usage state of the electronic device. Understandably, by collecting images with the front camera to determine whether it is in use, there may be a situation where the user does not face the plane, resulting in a face image that cannot be collected. Through the reporting data on the edge of the screen, it is determined whether the electronic device is in use. In the use state, the electronic device may be fixed by an insulating bracket, resulting in no reporting data on the edge of the screen. Therefore, the above-mentioned multiple methods can be combined to determine whether the electronic device is in use.
- the touch data when no click or slide is detected, it can be determined according to the AP data whether the display screen is a repeating cycle display screen or a still picture; if it is a repeating cycle display screen or a still picture, you can Further, according to the image collected by the front camera, determine whether the image contains a human face, and according to the touch data, determine whether there is data reported by the edge of the screen; if the image does not contain a face, and there is no data reported by the edge of the screen, then It may be determined that the electronic device is in an unused state.
- the display screen is a repeating display screen or a still picture
- the image collected by the front camera does not contain a human face, and there is no data reported by the edge of the screen, can the electronic device be identified. It is in an unused state, thereby accurately determining the use state of the electronic device.
- the above four implementation modes can be combined, and through the first implementation mode, based on the touch data of the screen, it is determined whether the feature value corresponding to the touch data satisfies the feature value corresponding to the click operation or the slide operation; then, if the touch The eigenvalues corresponding to the data do not meet the eigenvalues corresponding to the click operation or the sliding operation.
- the display screen is a fixed cycle screen, and when the number of cycles exceeds ⁇ N, N is A positive integer, N can be freely defined according to the user's usage habits, for example, it is first set to 3 or other values, etc., which is not limited here.
- the third embodiment and the fourth embodiment can also be combined, when the touch data corresponds to a feature value that does not satisfy the feature value corresponding to the click operation or the slide operation, and based on the data of the application processor, determine The picture displayed on the screen is based on the repeated cycle to the display screen.
- the image collected by the front camera does not contain a human face
- it is determined based on the touch data that the electronic device is not in the holding state it is determined that the electronic device is in a state of being held. The unused state, thereby accurately determining the state of the electronic device not being used by the user, that is, the electronic device is in the unused state.
- the electronic device determines whether it is in an unused state through the above-mentioned combined embodiment. Since it is aimed at short video applications, before the electronic device uses the above-mentioned combined embodiment to determine whether it is in an unused state, it can also Through the AP data, it is determined whether the application program currently running in the foreground is a short video application program.
- the application information of a large number of short video applications may be pre-stored in the electronic device, and if the application information of the application program running in the foreground matches the application information of a large number of short video applications pre-stored, the above-mentioned combined implementation manner may be used to determine whether it is In an unused state; if the application information of the application program running in the foreground does not match the application information of a large number of short video applications stored in advance, at least one of the aforementioned embodiments may be used to determine whether the electronic device is in an unused state, For example, determine whether the touch characteristic value corresponding to the touch data of the screen satisfies the characteristic value corresponding to the click operation or the sliding operation, if the touch characteristic value corresponding to the touch data of the screen does not satisfy the characteristic value corresponding to the click operation or the sliding operation, Then it is determined that the electronic device is in an unused state.
- the electronic device when the electronic device determines that the electronic device is in the unused state based on the device state data, it may start timing, so as to obtain the time duration of the electronic device in the unused state by counting. Therefore, when the electronic device is in the unused state, the duration of the unused state can be obtained at any time, and this duration can be used as the target duration, so that the screen can be adjusted differently according to the duration of the electronic device in the unused state. control.
- Step S130 If the target duration is less than the first duration, control the pixels of the target area in the display screen of the screen to move, and the contrast of the target area is greater than the preset contrast.
- the target duration of the electronic device in the unused state after acquiring the target duration of the electronic device in the unused state, it can be determined whether the target duration is less than the first duration;
- the period of time when the electronic device is not used is relatively short. At this time, the user may leave for a short time and may use the electronic device again at any time. Therefore, in this case, it is possible to control the movement of pixels in the target area whose contrast ratio is greater than the preset contrast in the display screen of the screen, so that the pixel aging of the target area can be distributed to its adjacent areas, thereby delaying the aging of screen pixels. Aging, screen burn-in, and to a certain extent improve the afterimage of the display.
- contrast refers to the measurement of different brightness levels between the brightest white and the darkest black in the light and dark areas of the image.
- the electronic device may divide the display screen into multiple areas, determine the contrast for each area, and then determine the area with the contrast greater than the preset contrast from the multiple areas. area.
- the size of the region and the size of the preset contrast may not be limited.
- the electronic device controls the movement of the pixels in the target area in the display screen of the screen, which may be controlling the movement of the pixels in the target area in a row direction or a column direction.
- the pixels of the target area can be controlled to move to the left or right for j columns of pixels; when the pixels of the target area are controlled to move along the column direction, the target area can be controlled
- the pixels of k are moved up or down by k rows of pixels.
- both j and k are positive integers, and their specific values may not be limited, for example, they may be 1, 3, 5, 8 and so on.
- j and k may not exceed the set threshold, so as to ensure that the deviation of the target area will not be too large, so as to avoid being noticed by the user in some cases, for example, when the user just wants to use the electronic device again, the user can avoid being noticed Offset to the target area.
- Fig. 3 is a schematic diagram when the target area B is not moved.
- the target area B can be moved to the right by 1 pixel along the row direction; please refer to Fig. 3 and Fig. 5 at the same time , the target area B in Figure 5 can move 1 pixel to the left along the row direction; please refer to Figure 3 and Figure 6 at the same time, the target area B in Figure 6 can move 1 pixel downward along the column direction; please also refer to Figure 3 And Fig. 7, the target area B in Fig. 7 can be moved up by 1 pixel along the column direction.
- the electronic device can control the pixel points of the target area to reciprocate along the row or column direction relative to the original position of the target area, thereby effectively delaying aging of screen pixels and screen burn-in. For example, you can control the pixels in the target area to move j columns of pixels to the left, then move j columns of pixels to the right, return to the original position, then move j columns of pixels to the right, and then move j columns of pixels to the left to return to the original position , and then move j columns of pixels to the left, and repeat this to realize the reciprocating movement of the pixels in the target area along the row direction.
- the electronic device is a smart phone
- the upper edge of the interface A1 displayed on the screen displays a wifi icon A1, a signal strength icon A2, a battery power icon A3, etc. with high contrast and displayed for a long time.
- the pixels in the area of these icons are usually more aging, so when the target duration of the electronic device is less than the first duration, the pixels in the area where these icons are located can be moved to delay the aging of screen pixels , screen burn-in, and to a certain extent improve the afterimage of the display.
- moving these areas will not affect the display content of the user's viewing screen.
- the area with high contrast is controlled to move, and the pixel aging of the area with high contrast can be allocated to other areas. , to delay the aging of the pixels of the screen, and to a certain extent, improve afterimages and enhance the display effect.
- FIG. 9 shows a schematic flowchart of a screen control method provided by another embodiment of the present application.
- the screen control method is applied to the above-mentioned electronic equipment, and the flow shown in FIG. 9 will be described in detail below.
- the screen control method may specifically include the following steps:
- Step S210 Acquiring device status data of the electronic device when the screen is in a bright screen state.
- Step S220 If it is determined based on the device state data that the electronic device is in an unused state, acquire a time duration of the electronic device in an unused state as a target time length.
- Step S230 If the target duration is less than the first duration, obtain an area with a contrast greater than a preset contrast from the display screen of the screen as the target area.
- the target duration of the electronic device in the unused state is less than the first duration, it means that the user has not used the electronic device for a short period of time. At this time, the user may leave for a short time and may use the electronic device again at any time. equipment.
- an area with a contrast greater than a preset contrast may be acquired from the display screen of the screen, and the determined area may be used as the target area.
- Step S240 Based on the resolution of the screen and the direction in which the target area is to be moved, determine a moving amount of the target area to be moved as a target moving amount.
- the electronic device when the electronic device controls the movement of the pixel points of the target area, it may determine the movement amount of the target area to be moved. Wherein, the electronic device may determine the moving amount of the target area to be moved based on the resolution of the screen and the direction in which the target area is to be moved, and use the determined moving amount as the target moving amount. Understandably, the resolution of the screen is related to the pixels contained in the screen, and the number of pixels in the row direction is different from that in the column direction, that is, the number of rows and columns is different. Therefore, in order to avoid being noticed by the user after moving the target area, you can Based on the resolution of the screen and the direction in which the target area is to be moved, the amount of movement of the target area is determined.
- the electronic device determines the moving amount of the target area to be moved as the target moving amount based on the resolution of the screen and the direction in which the target area is to be moved, which may include: determining the moving amount of the screen based on the resolution of the screen The number of column pixels is used as the first number, and the number of row pixels of the screen is used as the second number; if the direction in which the target area is to be moved is the row direction, based on the preset offset ratio and the first number, determine the The moving amount of the target area to be moved is used as the target moving amount; if the direction to be moved of the target area is the column direction, the moving amount of the target area to be moved is determined based on the preset offset ratio and the second quantity as the target movement amount.
- the number of column pixels of the screen determines the movement range in the row direction
- the number of row pixels of the screen determines the movement range in the column direction. Therefore, when the direction to be moved in the target area is the row direction, The moving amount of the target area to be moved can be determined based on the first quantity and the preset offset ratio, and when the direction of the target area to be moved is the column direction, the target area to be moved can be determined based on the second quantity and the preset offset ratio amount of movement.
- the preset offset ratio can be set based on the resolution of the screen, wherein the preset offset ratio can be positively correlated with the screen resolution, that is, the larger the screen resolution, the larger the preset offset ratio, thus, the Improve the problem of screen aging and burn-in, and avoid the screen movement visible to the naked eye.
- the product of the first amount and the preset offset ratio may be obtained to obtain the moving amount of the target area to be moved;
- the product of the second quantity and the preset offset ratio may be obtained to obtain the moving amount of the target area to be moved.
- the obtained product is a decimal, and at this time the decimal part can be ignored to avoid exceeding the offset range corresponding to the preset offset ratio.
- Step S250 Move the pixels of the target area by the target movement amount in the direction.
- the direction in which the target area is to be moved may be preset, and may be a row direction or a column direction.
- the electronic device moves the pixels of the target area according to the target movement amount in the above direction, it can control the original position of the pixels of the target area relative to the target area, and reciprocate the target movement amount along the row or column direction, thereby effectively delaying the delay of the screen. Pixel aging, screen burn-in.
- the moving direction of the pixels in the target area may include both the row direction and the column direction.
- step S240 may be used to determine the movement amount corresponding to the row direction as the first movement amount and the movement amount corresponding to the column direction as the second movement amount according to the row direction and the column direction respectively.
- the pixels in the control target area move according to the determined movement
- the amount of movement is performed, so that the amount of movement of the target area corresponds to the resolution, which can improve the problems of screen aging and burn-in, and avoid visible screen movement.
- FIG. 10 shows a schematic flowchart of a screen control method provided in another embodiment of the present application.
- the screen control method is applied to the above-mentioned electronic equipment, and the flow shown in FIG. 10 will be described in detail below.
- the screen control method may specifically include the following steps:
- Step S310 Acquiring device status data of the electronic device when the screen is in a bright screen state.
- Step S320 If it is determined based on the device state data that the electronic device is in an unused state, acquire a time duration of the electronic device in an unused state as a target time length.
- Step S330 If the target duration is less than the first duration, control the pixels of the target area in the display screen of the screen to move, and the contrast of the target area is greater than the preset contrast.
- Step S340 If the target duration is greater than or equal to the first duration, and the target duration is smaller than a second duration, reduce the display brightness of the screen, and the second duration is greater than the first duration.
- the target duration of the electronic device in the unused state after acquiring the target duration of the electronic device in the unused state, it may be determined whether the target duration is less than the first duration; if the target duration of the electronic device in the unused state is greater than or equal to the first duration, It can be further judged whether the target duration is less than the second duration; if the target duration is smaller than the second duration, it means that the user has not used the electronic device for a relatively long time, but at this time, the user may leave for a short time and may use the electronic device again at any time. In this case, the display brightness of the screen can be reduced, thereby further improving aging of screen pixels and screen burn-in.
- the second duration is longer than the first duration, and the specific value of the second duration may not be limited.
- the pixel points in the target area can be moved to improve the problems of pixel aging and screen burn-in, while the electronic device is in the unused state.
- the duration of the use state reaches the first duration but does not reach the second duration, the brightness of the display screen may be reduced, so as to further improve aging of screen pixels and screen burn-in.
- reducing the display brightness of the screen may include: if the target period is greater than or is equal to the first duration, and the target duration is less than the second duration, and the display brightness of the screen is controlled to gradually decrease as the target duration increases.
- the display brightness may be controlled to decrease gradually.
- the display brightness may be reduced every set period of time (for example, every 2 seconds), and the reduction amount of the brightness may be preset.
- the target duration of the electronic device being in the unused state is greater than or equal to the first duration, and the target duration is less than the second duration
- the target duration when the target duration reaches the first duration but does not reach the second duration, when reducing the display brightness of the screen, the brightness of the above-mentioned target area can be reduced first, that is, the target duration reaches the first duration but does not reach the third duration , reduce the brightness of the target area; and when the target duration reaches the third duration but not the second duration, the overall brightness of the display screen can be reduced, thereby reducing the display brightness of the screen in stages, which can better improve the screen brightness.
- the electronic device when it reduces the brightness of the target area, it can also control the brightness of the target area to gradually decrease as the target duration increases; It is possible to control the overall brightness of the display screen to gradually decrease with the increase of the target duration, so that when reducing the brightness of the target area and the overall brightness of the display screen, the brightness can be reduced through the process of gradual change, and the screen pixels can be better improved Burn-in and screen burn-in.
- Step S350 If the target duration is greater than or equal to the second duration, control the screen to be off.
- the target duration of the electronic device in the unused state after acquiring the target duration of the electronic device in the unused state, it may be determined whether the target duration is less than the first duration; if the target duration of the electronic device in the unused state is greater than or equal to the first duration, It can be further judged whether the target duration is less than the second duration; if the target duration is greater than or equal to the second duration, it means that the user has not used the electronic device for a very long time.
- the screen status will increase the possibility of screen pixel aging and screen burn-in. Therefore, in this case, the screen can be controlled to be in an off state, which can better protect the screen and reduce power consumption of the electronic device.
- the electronic device when the electronic device is in the bright screen state and in the process of being in the unused state, it can always count the above-mentioned target duration, and repeat the above steps continuously to determine the target duration and the above-mentioned first duration and second duration.
- the magnitude relationship between durations, and different processing is performed according to the determination result.
- the area with high contrast is controlled to move, and the pixel aging of the area with high contrast can be allocated to other areas.
- the control screen is turned off, so that the display of the screen can be better controlled, and the problems of aging and burn-in of screen pixels can be improved.
- FIG. 11 shows a structural block diagram of a screen control device 400 provided by an embodiment of the present application.
- the screen control device 400 is applied to the above-mentioned electronic equipment, and the electronic device includes a screen.
- the screen control device 400 includes: a state acquisition module 410 , a duration acquisition module 420 and a pixel shift module 430 .
- the state obtaining module 410 is used to obtain the device state data of the electronic device when the screen is in the bright screen state; the duration obtaining module 420 is used to determine the The electronic device is in the unused state, and the duration of the electronic device in the unused state is obtained as the target duration; the pixel moving module 430 is used to control the target area in the display screen of the screen if the target duration is less than the first duration The pixels of the target area are moved, and the contrast of the target area is greater than the preset contrast.
- the pixel moving module 430 can be specifically configured to: obtain an area with a contrast greater than a preset contrast from the display screen of the screen as the target area; based on the resolution of the screen and the target area to be moved The direction of the target area is determined as the target movement amount to be moved by the target area; and the pixel points of the target area are moved by the target movement amount according to the direction.
- the pixel moving module 430 determines the moving amount of the target area to be moved as the target moving amount based on the resolution of the screen and the direction in which the target area is to be moved, which may include: For the resolution of the screen, determine the number of column pixels of the screen as the first number, and the number of row pixels of the screen as the second number; if the direction in which the target area is to be moved is the row direction, based on the preset offset ratio and the first amount, determining the moving amount of the target area to be moved as the target moving amount; if the direction in which the target area is to be moved is the column direction, based on the preset offset ratio and the second amount, A moving amount to be moved of the target area is determined as a target moving amount.
- the screen control device 400 includes: a brightness adjustment module.
- the brightness adjustment module is configured to determine that the electronic device is in an unused state based on the device state data, after obtaining the time duration of the electronic device in the unused state as a target time length, if the target time length is greater than or equal to the the first duration, and the target duration is less than a second duration, reduce the display brightness of the screen, and the second duration is longer than the first duration.
- the brightness adjustment module may be specifically configured to: if the target duration is greater than or equal to the first duration, and the target duration is less than the second duration, control the display brightness of the screen to gradually decrease with the increase of the target duration.
- the brightness adjustment module may be specifically configured to: if the target duration is greater than or equal to the first duration, and the target duration is less than a third duration, reduce the brightness of the target area, the The third duration is less than the second duration and greater than the first duration; if the target duration is greater than or equal to the third duration and the target duration is smaller than the second duration, reduce the overall brightness of the display screen.
- the screen control device 400 may further include: a screen-off module.
- the screen-off module is used to determine that the electronic device is in an unused state based on the device status data, after acquiring the time period in which the electronic device is in an unused state as the target time length, if the target time length is greater than or equal to the the second duration, and control the screen to be off.
- the screen control device 400 may further include a status determination module.
- the state determination module is used to determine that the electronic device is in an unused state based on the device state data, before obtaining the time length of the electronic device in the unused state as the target time length, based on the data of the application processor, the camera shooting At least one of the image data of the screen and the touch data of the screen is used to determine whether the electronic device is in an unused state.
- the state determination module may be used to: determine the touch feature value of the touch data based on the touch data of the screen; if the touch feature value does not satisfy the click operation or slide operation If the corresponding eigenvalue is determined, it is determined that the electronic device is in an unused state.
- the state determination module may be used to: determine whether the picture displayed on the screen is a static picture or a display picture that repeats a cycle based on the data of the application processor; if the picture displayed on the screen If the image is a static image or a display image that repeats a cycle, it is determined that the electronic device is in an unused state.
- the state determination module may be used to: determine whether the feature value corresponding to the touch data satisfies the feature value corresponding to the click operation or the slide operation based on the touch data of the screen; if the touch If the eigenvalue corresponding to the control data does not meet the eigenvalue corresponding to the click operation or the sliding operation, based on the data of the application processor, it is determined whether the picture displayed on the screen is a display picture of a repeated cycle; if the picture displayed on the screen It is a display screen that is repeatedly cycled, based on the image data captured by the camera, it is determined whether the image captured by the camera contains a human face, and based on the touch data, it is determined that the electronic device is in a holding state; if the camera If the collected image does not contain a human face, and the electronic device is not in a holding state, it is determined that the electronic device is in an unused state.
- the coupling between the modules may be electrical, mechanical or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
- the solution provided by this application obtains the device status data of the electronic device when the screen is in the on-screen state, and if it is determined based on the device status data that the electronic device is in the unused state, obtains that the electronic device is in the unused state.
- the duration of is used as the target duration. If the target duration is less than the first duration, the pixels in the target area whose contrast is greater than the preset contrast in the display screen of the control screen are moved. Therefore, when the electronic device is in the unused state for less than the first duration, the area with higher contrast is controlled to move, and the aging of pixels in the area with higher contrast can be distributed to other areas, delaying the aging of pixels on the screen. Aging, and to a certain extent, improve afterimages and enhance the display effect.
- the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, a smart watch, and a notebook computer.
- the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be used by One or more processors 110 are executed, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
- Processor 110 may include one or more processing cores.
- the processor 110 uses various interfaces and circuits to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the electronic device 100 and processing data.
- the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
- the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
- the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, but implemented by a communication chip alone.
- the memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
- the memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
- the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
- the storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
- FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
- the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
- the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
- Program code 810 may, for example, be compressed in a suitable form.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请公开了一种屏幕控制方法、装置、电子设备及存储介质,该屏幕控制方法应用于电子设备,所述电子设备包括屏幕,所述方法包括:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。本方法可以提升屏幕的显示效果。
Description
相关申请的交叉引用
本申请要求于2021年10月18日提交的申请号为202111212054.0的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
本申请涉及电子设备技术领域,更具体地,涉及一种屏幕控制方法、装置、电子设备及存储介质。
电子设备,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。显示屏是电子设备上用于显示用户界面的部分,随着显示技术的急速进步,作为显示装置核心的半导体元件技术也随之得到了飞跃性的进步,因此出现了显示效果较佳的有机发光二极管(Organic Light Emitting Diode,OLED)屏幕。但是,OLED屏幕在使用过程中,像素会发生老化,导致屏幕的显示效果受到影响。
发明内容
鉴于上述问题,本申请提出了一种屏幕控制方法、装置、电子设备及存储介质。
第一方面,本申请实施例提供了一种屏幕控制方法,应用于电子设备,所述电子设备包括屏幕,所述方法包括:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
第二方面,本申请实施例提供了一种屏幕控制装置,应用于电子设备,所述电子设备包括屏幕,所述装置包括:状态获取模块、时长获取模块以及像素移动模块,其中,所述状态获取模块用于在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;所述时长获取模块用于若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;所述像素移动模块用于若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的屏幕控制方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的屏幕控制方法。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使 用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了根据本申请一个实施例的屏幕控制方法流程图。
图2示出了本申请实施例提供的MIPI与TE之间的相位关系的示意图。
图3示出了本申请实施例提供的像素移动的一种示意图。
图4示出了本申请实施例提供的像素移动的另一种示意图。
图5示出了本申请实施例提供的像素移动的又一种示意图。
图6示出了本申请实施例提供的像素移动的再一种示意图。
图7示出了本申请实施例提供的像素移动的又另一种示意图。
图8示出了本申请实施例提供的一种界面示意图。
图9示出了根据本申请另一个实施例的屏幕控制方法流程图。
图10示出了根据本申请又一个实施例的屏幕控制方法流程图。
图11示出了根据本申请一个实施例的屏幕控制装置的一种框图。
图12是本申请实施例的用于执行根据本申请实施例的屏幕控制方法的电子设备的框图。
图13是本申请实施例的用于保存或者携带实现根据本申请实施例的屏幕控制方法的程序代码的存储单元。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
对于现有的显示装置而言,有机发光二极管(Organic Light EmittingDiode,OLED)作为一种电流型发光器件,因其所具有的自发光、快速响应、宽视角和可制作在柔性衬底上等特点而越来越多地被应用于高性能显示领域中。但是,OLED显示屏在使用过程中,由于会发生衰减,会使得屏幕的显示效果受到影响。特别是,一些长时间显示高对比度的区域,随着像素的老化,会出现残影等现象,甚至出现烧屏而导致屏幕显示发黄的问题。
目前,大部分的手机厂商为了避免手机长时间没有人使用,而导致显示屏烧屏或者影响手机续航,在系统端往往会增加一个选项,自动熄屏。各家厂商针对自动熄屏的时间间隔选项也是各有差异,没有统一的标准,例如,部分厂商会把永久不灭屏保留,或者最大灭屏时间设置为5分钟等。这样的话,就会出现因每家手机厂商针对自动熄屏的逻辑策略不同,有的厂商会保留永久不灭屏选项功能,如用户选择此项,基本对烧屏没有改善。可见,相关技术中针对屏幕像素的老化、烧屏等的改善效果不佳。
针对上述问题,发明人提出了本申请实施例提供的屏幕控制方法、装置、电子设备以及存储介质,可以实现在电子设备处于未使用状态的时长小于第一时长的情况下,控制对比度较高的区域进行移动,能够将对比度较高的区域的像素老化分摊到其他区域,延缓屏幕的像素点的老化,并且一定程度上改善残影,提升显示效果。其中,具体的屏幕控制方法在后续的实施例中进行详细的说明。
请参阅图1,图1示出了本申请一个实施例提供的屏幕控制方法的流程示意图。在具体的实施例中,所述屏幕控制方法应用于如图11所示的屏幕控制装置400以及配置有所述屏幕控制装置400的电子设备100(图12)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、智能手表、笔记本电脑等,在此不做限定。下面将针对图1所示的流程进行详细的阐述,所述屏幕控制方法具体可以包括以下步骤:
步骤S110:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数 据。
在本申请实施例中,电子设备可以监测其屏幕状态,以在屏幕处于亮屏状态的情况下,对屏幕的显示进行相应地控制,从而改善屏幕的像素的老化、烧屏问题。其中,屏幕状态指的是电子设备的屏幕的工作状态;屏幕状态可以包括亮屏状态以及熄屏状态,亮屏状态指的是电子设备的屏幕点亮时的工作状态,熄屏状态指的是电子设备的屏幕熄灭时的工作状态。可选地,屏幕可以为OLED屏幕,例如有源矩阵有机发光二极体(Active-matrix organic light-emitting diode,AMOLED)屏幕,传统的OLED屏幕等,在此不做限定。
在一些实施方式中,电子设备可以通过多种方式来获取屏幕状态。可选地,操作系统读取相应的参数值,以根据读取到的参数值,确定电子设备的屏幕状态。作为一种实施方式,电子设备中安装的系统为安卓(Android)系统时,可以通过PowerManager的isScreenOn方法,获取屏幕状态,即通过获取isScreenOn的值,如果isScreenOn的值为真,则电子设备的屏幕处于亮屏状态,如果isScreenOn的值为假,则电子设备的屏幕处于熄屏状态。作为另一种实施方式,电子设备也可以通过获取屏幕的亮度值,并根据屏幕的亮度值,确定电子设备的屏幕状态。例如,如果屏幕的亮度值为0,则表示屏幕处于熄屏状态,如果屏幕的亮度值大于0,则屏幕处于亮屏状态。当然,具体检测电子设备的屏幕状态的方式可以不作为限定。
在本申请实施例中,电子设备的屏幕处于亮屏状态的情况下,可能用户并未对其使用,若屏幕继续按照此前的显示状态进行工作,则会加快屏幕像素的老化速度,进而导致烧屏。因此,电子设备可以在其屏幕处于亮屏状态的情况下,获取电子设备的设备状态数据,以根据设备状态数据,确定电子设备是否处于未使用状态,从而可以在电子设备处于未使用状态的情况下,对屏幕的显示进行控制。
其中,设备状态数据可以为用于确定电子设备的使用状态的状态数据。设备状态数据可以包括:屏幕的触控数据、应用处理器(Application Processor,AP)的数据、摄像头拍摄的图像数据等,具体的设备状态数据可以不做限定。
步骤S120:若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长。
在本申请实施例中,电子设备在获取到设备状态数据后,可以基于设备状态数据确定电子设备是否处于未使用状态,以根据确定结果,对屏幕的显示进行控制。其中,电子设备可以基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定电子设备是否处于未使用状态。
在一些实施方式中,设备状态数据可以包括触控数据,电子设备可以根据触控数据,确定电子设备的使用状态。可以理解地,电子设备在亮屏状态下,若用户的手指触控在触摸屏上,触摸屏的逻辑是实时上报坐标以及上报raw data(原始数据)值,点击操作/滑动操作(不同位置,不同长度,不同弧度等)都可以通过原始数据呈现。当检测到点击操作时或者滑动操作时,可以判定此时用户正在使用电子设备;当未检测到点击操作时或者滑动操作,则电子设备处于未使用状态。其中,滑动操作或者点击操作时,raw data都会发生变化,当然实际应用点击以及滑动的位置和形状有一定差异,但AP可以通过确定触控数据对应的触控特征值,并判断该触控特征值是否符合满足点击操作或滑动操作对应的特征值;其中,点击操作对应的特征值主要变现为集中区域集中出现数值突变,滑动操作对应的特征值主要变现为一跳横向或者竖向形状的数据突变(中间如果有断线也可以判定为此特征值),当然,点击操作对应的特征值以及滑动操作对应的特征值也可以根据用户使用电子设备时的历史触控数据确定。
在另一些实施方式中,设备状态数据可以包括AP数据。电子设备在显示内容时,显示屏上所有的数据都是AP通过MIPI(移动产业处理器接口联盟,Mobile Industry Processor Interface)/RGB等数据格式,通过硬件通讯方式输出给到显示屏的显示驱动 继承芯片(Display driver Integrated Circuit Chip,DDIC)的随机存取存储器(Random Access Memory,RAM)里边(如没有RAM,一般会有buffer缓冲器),所有的数据发送都是可以被AP识别。若显示屏一直在变化数据,则AP端是一直处于工作状态,持续数据迭代更新,如果此时显示端画面保持不变或者在做周期性变化时,AP端和数据端的RGB数据或者MIPI数据此时处于Idle空闲状态。以MIPI数据为例,如图2所示,图2示出了MIPI与TE之间的相位关系,若TE在低电平时,MIPI也处于低电平次时,则表示数据在不断的迭代更新,若TE处于低电平时,MIPI电平处于高电平,则表示数据是没有更新的,显示端此时在调用DDIC端RAM或者Flash存储的数据源。基于此,AP端通过监控数据变化,从而可以判断此时屏幕的画面是否是处于静态画面或者是循环周期方波一个固定视频或者小动画(即重复循环的显示画面),进而判断此时是否处于画面未更新状态。若基于AP数据确定出屏幕的画面为静态画面或者重复循环的显示画面,则表示此时处于画面未更新状态,因此可以确定出用户未使用电子设备;反之,若基于AP数据确定出屏幕的画面不为静态画面,并且不是重复循环显示画面,则表示此时画面处于更新状态,因此可以确定出用户正使用电子设备。
在又一些实施方式中,设备状态数据可以包括摄像头拍摄的图像数据。可选地,电子设备可以包括前置摄像头,电子设备可以通过前置摄像头采集图像;电子设备根据前置摄像头采集的图像数据,可以确定出图像中是否存在人脸,若确定出有人脸,则表示电子设备处于使用状态,反之,则表示电子设备未处于使用状态。可以理解地,如果用户在使用电子设备,一般是脸部正视屏幕,若电子设备支持人脸识别,则可以通过检测此时是否有脸部特征数据;若检测到脸部特征数据,则表示电子设备处于使用状态,反之,则表示电子设备未使用状态。
作为一种可能的实施方式,电子设备检测到采集的图像中存在人脸的情况下,还可以根据前置摄像头连续采集的多帧图像中的人脸区域,确定连续采集的多帧图像中的人眼是否处于闭合状态;若连续的多帧图像中人眼均处于闭合状态,则可以确定用户处于睡眠状态,此时也可以确定出电子设备处于未使用状态;若连续的多帧图像中,不是每帧图像中的人眼都处于闭合状态,则可以确定出电子设备处于使用状态。
在再一些实施方式中,在设备状态数据包括屏幕的触控数据的情况下,若触摸屏上报至AP的触控数据中存在屏幕边缘的报点数据,则表示此时有握持动作,即电子设备处于握持状态,该情况下,可以确定电子设备处于使用状态;若不存在屏幕边缘的报点数据,表示此时电子设备未处于握持状态,则可以确定电子设备处于未使用状态。
需要说明的是,上述实施方式也可以结合实现电子设备的使用状态的确定。可以理解地,通过前置摄像头采集图像的方式,确定是否处于使用状态,可能出现用户没有正视平面的情况,而导致无法采集的人脸图像,通过屏幕边缘的报点数据,确定电子设备是否处于使用状态,则可能出现电子设备被绝缘支架固定,而导致没有屏幕边缘的报点数据,因此可以通过上述多种方式进行结合,从而判断电子设备是否处于使用状态。
可选地,可以根据触控数据,未检测到点击时或者滑动的情况下,可以根据AP数据确定显示画面是否为重复循环的显示画面或者静止画面;若是重复循环的显示画面或者静止画面,可以进一步根据前置摄像头采集的图像,确定图像中是否包含人脸,以及根据触控数据,确定是否有屏幕边缘上报的数据;若图像中不包含人脸,且未有屏幕边缘上报的数据,则可以确定电子设备处于未使用状态。也就是说,需要同时未检测到点击时或者滑动,显示画面为重复循环的显示画面或者静止画面,前置摄像头采集的图像不包含人脸,且未有屏幕边缘上报的数据,才确定电子设备处于未使用状态,由此,准确确定出电子设备的使用状态。
可选地,目前短视频应用较为流行,而对屏幕烧屏的影响也主要来自于短视频应用,因为若短视频应用在自循环播放同一个视频,而用户离开电子设备,而根据现有 的电子设备的熄屏策略,则无法按照正常逻辑灭屏,即可能会一直播放该视频,则会增加烧屏的可能性。因此,可以结合上述的四种实施方式,通过第一种实施方式,基于屏幕的触控数据,确定触控数据对应的特征值是否满足点击操作或滑动操作对应的特征值;然后,若触控数据对应的特征值不满足点击操作或滑动操作对应的特征值,通过第二种实施方式,基于应用处理器的数据确定出显示画面为固定循环的画面,且循环次数超过≥N时,N为正整数,N可以根据用户使用习惯自由定义,比如先设定为3或者其他值等,在此不做限定。其中,由于一些用户可能比较喜欢会重复循环播放,但通常也会有触控屏幕,比如滑动进度条之类,因此,通过这两种实施方式,基本可以判断此时用户是否在使用。在此基础上,也可以再结合第三种实施方式以及第四种实施方式,在触控数据对应到特征值不满足点击操作或滑动操作对应的特征值,且基于应用处理器的数据,确定出屏幕显示的画面为重复循环到显示画面的基础上,在确定出前置摄像头采集的图像不包含人脸,且基于触控数据确定出电子设备未处于握持状态时,才确定电子设备处于未使用状态,由此准确地确定出用户未使用电子设备的状态,即电子设备处于未使用状态。
在该实施方式中,电子设备通过上述结合的实施方式确定其是否处于未使用状态,由于针对短视频应用,因此,在电子设备采用上述结合的实施方式确定其是否处于未使用状态之前,还可以通过AP数据,确定当前前台运行的应用程序是否为短视频的应用程序。其中,电子设备中可以预先存储有大量短视频应用的应用信息,若前台运行的应用程序的应用信息与预先存储有大量短视频应用的应用信息匹配,则可以采用上述结合的实施方式确定其是否处于未使用状态;若前台运行的应用程序的应用信息与预先存储有大量短视频应用的应用信息不匹配,则可以采用前述实施方式中至少一种实施方式,确定电子设备是否处于未使用状态,例如,确定屏幕的触控数据对应的触控特征值是否满足点击操作或滑动操作对应的特征值,若屏幕的触控数据对应的触控特征值不满足点击操作或滑动操作对应的特征值,则确定电子设备处于未使用状态。当然,本申请实施例中根据电子设备的设备状态数据确定其是否处于未使用状态的具体实施方式可以不做限定。
在本申请实施例中,电子设备基于设备状态数据确定电子设备处于未使用状态时,则可以开始计时,从而能够计时得到电子设备处于未使用状态的时长。由此,电子设备处于未使用状态的情况下,可以在任意时刻获取到其处于未使用状态的时长,并将该时长作为目标时长,以便根据电子设备处于未使用状态的时长,对屏幕进行不同的控制。
步骤S130:若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
在本申请实施例中,获取到电子设备处于未使用状态的目标时长后,可以确定目标时长是否小于第一时长;在电子设备处于未使用状态的目标时长小于第一时长的情况下,表示用户未使用电子设备的时长较短,此时可能是用户短暂离开,其可能随时再次使用电子设备。因此,该情况下,可以控制屏幕的显示画面中对比度大于预设对比度的目标区域的像素点进行移动,从而可以使目标区域的像素老化分摊到其邻近的区域,由此,可以延缓屏幕像素的老化、屏幕烧屏,并且一定程度上改善显示的残影。
其中,对比度指的是图像中明暗区域最亮的白和最暗的黑之间不同亮度层级的测量,差异范围越大代表对比越大,差异范围越小代表对比越小;在一种可能的实施方式中,在获取对比度大于预设对比度的区域时,电子设备可以将显示画面均分为多个区域,并针对各个区域确定对比度,然后从多个区域中,确定出对比度大于预设对比度的区域。其中,区域的大小以及预设对比度的大小可以不做限定。
在一些实施方式中,电子设备控制屏幕的显示画面中目标区域的像素点进行移动,可以是控制目标区域的像素点沿行方向或者列方向移动。在控制目标区域的像素点沿 行方向移动时,则可以控制目标区域的像素点往左或者往右移动j列像素点;在控制目标区域的像素点沿列方向移动时,则可以控制目标区域的像素点往上或者往下移动k行像素点。其中,j和k均为正整数,其具体数值可以不做限定,例如,可以为1、3、5、8等。可选地,j和k可以不超过设定阈值,以保证目标区域的偏移不会过大,从而避免在一些情况下被用户察觉,例如用户恰好要再次使用电子设备时,能够避免用户察觉到目标区域的偏移。
示例性地,请同时参阅图3及图4,图3为目标区域B未移动时的示意图,图4中目标区域B可以沿行方向往右移动1个像素点;请同时参阅图3及图5,图5中目标区域B可以沿行方向往左移动1个像素点;请同时参阅图3及图6,图6中目标区域B可以沿列方向往下移动1个像素点;请同时参阅图3及图7,图7中目标区域B可以沿列方向往上移动1个像素点。
在一种可能的实施方式中,电子设备可以控制目标区域的像素点相对目标区域的原位置,沿行方向或者列方向往复移动,由此可以有效延缓屏幕像素的老化、屏幕烧屏。例如,可以控制目标区域的像素点往左移动j列像素点,再往右移动j列像素点,返回原位置,然后再往右移动j列像素点,再左移动j列像素点返回原位置,再往左移动j列像素点,如此重复,实现目标区域的像素点沿行方向往复移动。
示例性地,请参阅图8,电子设备为智能手机时,其屏幕显示的界面A1的上边缘显示有wifi图标A1、信号强度图标A2、电池电量图标A3等对比度较高、且长时间显示的图标,这些图标的区域的像素通常老化程度更重,因此,在电子设备处于未使用状态的目标时长小于第一时长的情况下,可以移动这些图标所在区域的像素点,以延缓屏幕像素的老化、屏幕烧屏,并且一定程度上改善显示的残影,另外,由于用户未使用电子设备,因此移动这些区域,不会给用户查看屏幕的显示内容带来影响。
本申请实施例提供的屏幕控制方法,在电子设备处于未使用状态的时长小于第一时长的情况下,控制对比度较高的区域进行移动,能够将对比度较高的区域的像素老化分摊到其他区域,延缓屏幕的像素点的老化,并且一定程度上改善残影,提升显示效果。
请参阅图9,图9示出了本申请另一个实施例提供的屏幕控制方法的流程示意图。该屏幕控制方法应用于上述电子设备,下面将针对图9所示的流程进行详细的阐述,所述屏幕控制方法具体可以包括以下步骤:
步骤S210:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据。
步骤S220:若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长。
在本申请实施例中,步骤S210至步骤S220可以参阅前述实施例的内容,在此不再赘述。
步骤S230:若所述目标时长小于第一时长,从所述屏幕的显示画面中,获取对比度大于预设对比度的区域作为目标区域。
在本申请实施例中,在电子设备处于未使用状态的目标时长小于第一时长的情况下,表示用户未使用电子设备的时长较短,此时可能是用户短暂离开,其可能随时再次使用电子设备。该情况下,可以从屏幕的显示画面中,获取对比度大于预设对比度的区域,并将确定出的区域作为目标区域。
步骤S240:基于所述屏幕的分辨率以及所述目标区域待移动的方向,确定所述目标区域待移动的移动量作为目标移动量。
在本申请实施例中,电子设备在控制目标区域的像素点进行移动时,可以确定目标区域待移动的移动量。其中,电子设备可以基于屏幕的分辨率以及目标区域待移动的方向,确定目标区域待移动的移动量,并将确定出的移动量作为目标移动量。可以 理解地,屏幕的分辨率与屏幕中包含的像素点有关,而行方向上与列方向上的像素点的数量不同,即行和列的数量不同,因此为了避免移动目标区域后被用户察觉,可以基于屏幕的分辨率以及目标区域待移动的方向,确定目标区域的移动量。
在一些实施方式中,电子设备基于屏幕的分辨率以及目标区域待移动的方向,确定目标区域待移动的移动量作为目标移动量,可以包括:基于所述屏幕的分辨率,确定所述屏幕的列像素数量作为第一数量,以及所述屏幕的行像素数量作为第二数量;若所述目标区域待移动的方向为行方向,基于预设偏移比例以及所述第一数量,确定所述目标区域待移动的移动量作为目标移动量;若所述目标区域待移动的方向为列方向,基于所述预设偏移比例以及所述第二数量,确定所述目标区域待移动的移动量作为目标移动量。可以理解地,该实施方式中,屏幕的列像素数量决定了行方向上的移动范围,屏幕的行像素数量决定了列方向上的移动范围,因此,在目标区域待移动的方向为行方向时,可以基于第一数量以及预设偏移比例,确定目标区域待移动的移动量,而目标区域待移动的方向为列方向时,可以基于第二数量以及预设偏移比例,确定目标区域待移动的移动量。预设偏移比例可以基于屏幕的分辨率设置,其中,预设偏移比例可以与屏幕的分辨率呈正相关,即屏幕的分辨率越大,则预设偏移比例越大,由此,可以改善屏幕老化和烧屏的问题,且避免肉眼可见的画面移动。
在一种可能的实施方式中,在目标区域待移动的方向为行方向时,可以获取第一数量与预设偏移比例的乘积,得到目标区域待移动的移动量;在目标区域待移动的方向为列方向时,可以获取第二数量与预设偏移比例的乘积,得到目标区域待移动的移动量。可选地,可能会存在获取的乘积为小数的情况,此时可以忽略小数部分,避免超过预设偏移比例对应的偏移范围。例如,针对1080*1920分辨率的屏幕,预设偏移比例可以为1%,上述第一数量为1080,第二数量为1920,因此,行方向移动的移动量可以为1080*1%=10.8,此时可以忽略小数部分,即行方向移动的移动量为10;列方向移动的移动量可以为1920*1%=19.2,此时可以忽略小数部分,即列方向移动的移动量为19。
步骤S250:将所述目标区域的像素点按照所述方向移动所述目标移动量。
在本申请实施例中,目标区域待移动的方向可以预先设置,其可以为行方向,也可以为列方向。电子设备将目标区域的像素点按照以上方向移动目标移动量时,可以控制目标区域的像素点相对目标区域的原位置,沿行方向或者列方向往复移动该目标移动量,由此可以有效延缓屏幕像素的老化、屏幕烧屏。
在一些实施方式中,目标区域的像素点移动的方向可以既包括行方向,也包括列方向。该情况下,可以通过步骤S240,分别按照行方向以及列方向,确定出行方向对应的移动量作为第一移动量,以及列方向对应的移动量作为第二移动量。在控制目标区域的像素点进行移动时,可以控制目标区域的像素点相对目标区域的原位置,沿行方向进行一次移动该第一移动量的往复移动过程,然后沿列方向进行一次移动该第二移动量的往复移动过程,再沿行方向进行一次移动该第一移动量的往复移动过程,如此重复。当然,也可以控制目标区域的像素点相对目标区域的原位置,沿列方向进行一次移动该第二移动量的往复移动过程,再沿行方向进行一次移动该第一移动量的往复移动过程,然后沿列方向进行一次移动该第二移动量的往复移动过程,如此重复。
本申请实施例提供的屏幕控制方法,在电子设备处于未使用状态的时长小于第一时长的情况下,基于屏幕的分辨率以及移动方向确定移动量后,控制目标区域的像素点按照确定的移动量进行移动,由此使目标区域的移动量与分辨率对应,可以改善屏幕老化和烧屏的问题,且避免肉眼可见的画面移动。
请参阅图10,图10示出了本申请又一个实施例提供的屏幕控制方法的流程示意图。该屏幕控制方法应用于上述电子设备,下面将针对图10所示的流程进行详细的阐述,所述屏幕控制方法具体可以包括以下步骤:
步骤S310:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据。
步骤S320:若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长。
步骤S330:若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
在本申请实施例中,步骤S310至步骤S320可以参阅前述实施例的内容,在此不再赘述。
步骤S340:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,降低所述屏幕的显示亮度,所述第二时长大于所述第一时长。
在本申请实施例中,获取到电子设备处于未使用状态的目标时长后,可以确定目标时长是否小于第一时长;在电子设备处于未使用状态的目标时长大于或等于第一时长的情况下,可以进一步判断目标时长是否小于第二时长;若目标时长小于第二时长,表示用户未使用电子设备的时长相对较久,但此时也可能是用户短暂离开,其可能随时再次使用电子设备。该情况下,可以降低屏幕的显示亮度,由此,可以进一步改善屏幕像素的老化和屏幕烧屏。其中,第二时长大于第一时长,第二时长的具体数值可以不做限定。可以理解地,在电子设备处于未使用状态后,其处于未使用状态的时长未达到第一时长时,可以通过移动目标区域的像素点,以改善像素老化、烧屏的问题,而在处于未使用状态的时长达到第一时长,而未达到第二时长时,则可以降低显示画面的亮度,以进一步改善屏幕像素的老化和屏幕烧屏。
在一些实施方式中,电子设备处于未使用状态的时长大于或等于所述第一时长,且目标时长小于第二时长的情况下,降低屏幕的显示亮度,可以包括:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,控制所述屏幕的显示亮度随着所述目标时长的增大而逐渐降低。在该实施方式中,可以在以上目标时长达到第一时长,但未达到第二时长的情况下,控制显示亮度逐渐降低。可选地,可以每隔设定时长(例如,每隔2秒),降低一次显示亮度,亮度的降低量可以预先设置。
在一些实施方式中,电子设备处于未使用状态的时长大于或等于所述第一时长,且目标时长小于第二时长的情况下,还可以确定目标时长是否大于第三时长,该第三时长小于第二时长且大于第一时长,即第三时长处于第一时长与第二时长之间;若目标时长小于第三时长,则可以降低目标区域的亮度;而标时长大于或等于第三时长,且目标时长小于第二时长,则可以降低显示画面的整体亮度。可以理解地,在目标时长达到第一时长,未达到第二时长的情况下,降低屏幕的显示亮度时,可以先降低上述目标区域的亮度,即目标时长达到第一时长,未达到第三时长时,降低目标区域的亮度;而目标时长达到第三时长,但未达到第二时长的情况下,可以降低显示画面的整体亮度,由此分阶段降低屏幕的显示亮度,能够较佳地改善屏幕像素的老化和屏幕烧屏。
作为一种可能的实施方式,电子设备在降低目标区域的亮度时,也可以控制目标区域的亮度随着目标时长的增大而逐渐降低;电子设备在降低屏幕的显示画面的整体亮度时,也可以控制显示画面的整体亮度随着目标时长的增大而逐渐降低,由此,实现降低目标区域的亮度以及降低显示画面的整体亮度时,能够渐变的过程实现亮度降低,较佳地改善屏幕像素的老化和屏幕烧屏。
步骤S350:若所述目标时长大于或等于所述第二时长,控制所述屏幕处于熄灭状态。
在本申请实施例中,获取到电子设备处于未使用状态的目标时长后,可以确定目标时长是否小于第一时长;在电子设备处于未使用状态的目标时长大于或等于第一时长的情况下,可以进一步判断目标时长是否小于第二时长;若目标时长大于或等于第 二时长,表示用户未使用电子设备的时长非常久,此时用户短暂离开的可能性并不大,此时屏幕长期处于亮屏状态,会增加屏幕像素老化、烧屏的可能性。因此,该情况下,可以控制屏幕处于熄灭状态,能够更好地保护屏幕的同时,减少电子设备的功耗。
可以理解地,电子设备在处于亮屏状态下,且处于未使用状态的过程中,可以一直计时上述的目标时长,并且不断地重复上述步骤,以确定出目标时长与上述第一时长以及第二时长之间的大小关系,并且根据确定结果,执行不同的处理。
本申请实施例提供的屏幕控制方法,在电子设备处于未使用状态的时长小于第一时长的情况下,控制对比度较高的区域进行移动,能够将对比度较高的区域的像素老化分摊到其他区域,延缓屏幕的像素点的老化,并且一定程度上改善残影,提升显示效果;在目标时长达到第一时长,但未达到第二时长的情况下,降低屏幕的亮度,在目标时长达到第二时长的情况下,控制屏幕熄灭,由此能够更好地控制屏幕的显示,改善屏幕像素点的老化、烧屏问题。
请参阅图11,其示出了本申请实施例提供的一种屏幕控制装置400的结构框图。该屏幕控制装置400应用上述的电子设备,所述电子设备包括屏幕,该屏幕控制装置400包括:状态获取模块410、时长获取模块420以及像素移动模块430。其中,所述状态获取模块410用于在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;所述时长获取模块420用于若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;所述像素移动模块430用于若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
在一些实施方式中,像素移动模块430可以具体用于:从所述屏幕的显示画面中,获取对比度大于预设对比度的区域作为目标区域;基于所述屏幕的分辨率以及所述目标区域待移动的方向,确定所述目标区域待移动的移动量作为目标移动量;将所述目标区域的像素点按照所述方向移动所述目标移动量。
作为一种可能的实施方式,像素移动模块430基于所述屏幕的分辨率以及所述目标区域待移动的方向,确定所述目标区域待移动的移动量作为目标移动量,可以包括:基于所述屏幕的分辨率,确定所述屏幕的列像素数量作为第一数量,以及所述屏幕的行像素数量作为第二数量;若所述目标区域待移动的方向为行方向,基于预设偏移比例以及所述第一数量,确定所述目标区域待移动的移动量作为目标移动量;若所述目标区域待移动的方向为列方向,基于所述预设偏移比例以及所述第二数量,确定所述目标区域待移动的移动量作为目标移动量。
在一些实施方式中,该屏幕控制装置400包括:亮度调整模块。亮度调整模块用于在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之后,若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,降低所述屏幕的显示亮度,所述第二时长大于所述第一时长。
作为一种可能的实施方式,亮度调整模块可以具体用于:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,控制所述屏幕的显示亮度随着所述目标时长的增大而逐渐降低。
作为一种可能的实施方式,亮度调整模块可以具体用于:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第三时长,降低所述目标区域的亮度,所述第三时长小于所述第二时长且大于所述第一时长;若所述目标时长大于或等于第三时长,且所述目标时长小于第二时长,降低所述显示画面的整体亮度。
作为一种可能的实施方式,该屏幕控制装置400还可以包括:熄屏模块。熄屏模块用于在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之后,若所述目标时长大于或等于所述 第二时长,控制所述屏幕处于熄灭状态。
在一些实施方式中,该屏幕控制装置400还可以包括状态确定模块。状态确定模块用于在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之前,基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态。
作为一种可能的实施方式,状态确定模块可以用于:基于所述屏幕的触控数据,确定所述触控数据的触控特征值;若所述触控特征值不满足点击操作或滑动操作对应的特征值,则确定所述电子设备处于未使用状态。
作为一种可能的实施方式,状态确定模块可以用于:基于所述应用处理器的数据,确定所述屏幕显示的画面是否是为静态画面或者重复循环的显示画面;若所述屏幕显示的画面为静态画面或者重复循环的显示画面,则确定所述电子设备处于未使用状态。
作为一种可能的实施方式,状态确定模块可以用于:基于所述屏幕的触控数据,确定所述触控数据对应的特征值是否满足点击操作或滑动操作对应的特征值;若所述触控数据对应的特征值不满足点击操作或滑动操作对应的特征值,基于所述应用处理器的数据,确定所述屏幕显示的画面是否是为重复循环的显示画面;若所述屏幕显示的画面为重复循环的显示画面,基于所述摄像头拍摄的图像数据,确定所述摄像头采集的图像是否包含人脸,以及基于所述触控数据,确定所述电子设备处于握持状态;若所述摄像头采集的图像不包含人脸,且所述电子设备未处于握持状态,则确定所述电子设备处于未使用状态。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
综上所述,本申请提供的方案,通过在屏幕处于亮屏状态的情况下,获取电子设备的设备状态数据,若基于设备状态数据确定电子设备处于未使用状态,获取电子设备处于未使用状态的时长作为目标时长,若目标时长小于第一时长,控制屏幕的显示画面中对比度大于预设对比度的目标区域的像素点进行移动。由此,在电子设备处于未使用状态的时长小于第一时长的情况下,控制对比度较高的区域进行移动,能够将对比度较高的区域的像素老化分摊到其他区域,延缓屏幕的像素点的老化,并且一定程度上改善残影,提升显示效果。
请参考图12,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、智能手表、笔记本电脑等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110 可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种屏幕控制方法,应用于电子设备,所述电子设备包括屏幕,所述方法包括:在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
- 根据权利要求1所述的方法,所述控制所述屏幕的显示画面中目标区域的像素点进行移动,其中:从所述屏幕的显示画面中,获取对比度大于预设对比度的区域作为目标区域;基于所述屏幕的分辨率以及所述目标区域待移动的方向,确定所述目标区域待移动的移动量作为目标移动量;将所述目标区域的像素点按照所述方向移动所述目标移动量。
- 根据权利要求2所述的方法,所述基于所述屏幕的分辨率以及所述目标区域待移动的方向,确定所述目标区域待移动的移动量作为目标移动量,其中:基于所述屏幕的分辨率,确定所述屏幕的列像素数量作为第一数量,以及所述屏幕的行像素数量作为第二数量;若所述目标区域待移动的方向为行方向,基于预设偏移比例以及所述第一数量,确定所述目标区域待移动的移动量作为目标移动量;若所述目标区域待移动的方向为列方向,基于所述预设偏移比例以及所述第二数量,确定所述目标区域待移动的移动量作为目标移动量。
- 根据权利要求3所述的方法,所述若所述目标区域待移动的方向为行方向,基于预设偏移比例以及所述第一数量,确定所述目标区域待移动的移动量作为目标移动量,其中:若所述目标区域待移动的方向为行方向,获取所述第一数量与所述预设偏移比例的乘积,得到所述目标区域待移动的移动量作为目标移动量;所述若所述目标区域待移动的方向为列方向,基于所述预设偏移比例以及所述第二数量,确定所述目标区域待移动的移动量作为目标移动量,其中:若所述目标区域待移动的方向为列方向,获取所述第二数量与所述预设偏移比例的乘积,得到所述目标区域待移动的移动量作为目标移动量。
- 根据权利要求3或4所述的方法,其中:基于所述分辨率,确定所述预设偏移比例,所述预设偏移比例与所述分辨率呈正相关。
- 根据权利要求1-5任一项所述的方法,在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之后,其中:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,降低所述屏幕的显示亮度,所述第二时长大于所述第一时长。
- 根据权利要求6所述的方法,所述若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,降低所述屏幕的显示亮度,其中:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第二时长,控制所述屏幕的显示亮度随着所述目标时长的增大而逐渐降低。
- 根据权利要求6所述的方法,所述若所述目标时长大于或等于所述第一时长,且 所述目标时长小于第二时长,降低所述屏幕的显示亮度,其中:若所述目标时长大于或等于所述第一时长,且所述目标时长小于第三时长,降低所述目标区域的亮度,所述第三时长小于所述第二时长且大于所述第一时长;若所述目标时长大于或等于第三时长,且所述目标时长小于第二时长,降低所述显示画面的整体亮度。
- 根据权利要求8所述的方法,所述降低所述目标区域的亮度,其中:控制所述目标区域的亮度随着所述目标时长的增大而逐渐降低;所述降低所述显示画面的整体亮度,其中:控制所述显示画面的整体亮度随着所述目标时长的增大而逐渐降低。
- 根据权利要求6所述的方法,在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之后,其中:若所述目标时长大于或等于所述第二时长,控制所述屏幕处于熄灭状态。
- 根据权利要求1-10任一项所述的方法,在所述若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长之前,其中:基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态。
- 根据权利要求11所述的方法,所述基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态,其中:基于所述屏幕的触控数据,确定所述触控数据的触控特征值;若所述触控特征值不满足点击操作或滑动操作对应的特征值,则确定所述电子设备处于未使用状态。
- 根据权利要求11所述的方法,所述基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态,其中:基于所述应用处理器的数据,确定所述屏幕显示的画面是否是为静态画面或者重复循环的显示画面;若所述屏幕显示的画面为静态画面或者重复循环的显示画面,则确定所述电子设备处于未使用状态。
- 根据权利要求11所述的方法,所述基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态,其中:根据前置摄像头采集的图像数据,确定出采集的图像中是否存在人脸;若确定出不存在人脸,则确定所述电子设备处于未使用状态。
- 根据权利要求14所述的方法,在所述根据前置摄像头采集的图像数据,确定出采集的图像中是否存在人脸之后,其中:若确定出存在人脸,根据所述前置摄像头连续采集的多帧图像,确定所述连续采集的多帧图像中人眼是否处于闭合状态;若所述连续采集的多帧图像中人眼均处于闭合状态,则确定所述电子设备处于未使用状态。
- 根据权利要求11所述的方法,所述基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态,其中:若所述屏幕的触控数据中不存在屏幕边缘的报点数据,则确定电子设备处于未使 用状态。
- 根据权利要求11所述的方法,所述基于应用处理器的数据、摄像头拍摄的图像数据、以及所述屏幕的触控数据中的至少一个,确定所述电子设备是否处于未使用状态,其中:基于所述屏幕的触控数据,确定所述触控数据对应的特征值是否满足点击操作或滑动操作对应的特征值;若所述触控数据对应的特征值不满足点击操作或滑动操作对应的特征值,基于所述应用处理器的数据,确定所述屏幕显示的画面是否是为重复循环的显示画面;若所述屏幕显示的画面为重复循环的显示画面,基于所述摄像头拍摄的图像数据,确定所述摄像头采集的图像是否包含人脸,以及基于所述触控数据,确定所述电子设备处于握持状态;若所述摄像头采集的图像不包含人脸,且所述电子设备未处于握持状态,则确定所述电子设备处于未使用状态。
- 一种屏幕控制装置,应用于电子设备,所述电子设备包括屏幕,所述装置包括:状态获取模块、时长获取模块以及像素移动模块,其中,所述状态获取模块用于在所述屏幕处于亮屏状态的情况下,获取所述电子设备的设备状态数据;所述时长获取模块用于若基于所述设备状态数据确定所述电子设备处于未使用状态,获取所述电子设备处于未使用状态的时长作为目标时长;所述像素移动模块用于若所述目标时长小于第一时长,控制所述屏幕的显示画面中目标区域的像素点进行移动,所述目标区域的对比度大于预设对比度。
- 一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。
- 一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111212054.0A CN113885824A (zh) | 2021-10-18 | 2021-10-18 | 屏幕控制方法、装置、电子设备及存储介质 |
CN202111212054.0 | 2021-10-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023065807A1 true WO2023065807A1 (zh) | 2023-04-27 |
Family
ID=79003602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/114160 WO2023065807A1 (zh) | 2021-10-18 | 2022-08-23 | 屏幕控制方法、装置、电子设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113885824A (zh) |
WO (1) | WO2023065807A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113885824A (zh) * | 2021-10-18 | 2022-01-04 | Oppo广东移动通信有限公司 | 屏幕控制方法、装置、电子设备及存储介质 |
CN114500735B (zh) * | 2022-04-15 | 2022-07-08 | 北京车智赢科技有限公司 | 一种显示处理方法、计算设备及可读存储介质 |
CN118447790A (zh) * | 2023-12-29 | 2024-08-06 | 荣耀终端有限公司 | 屏幕防残影处理方法、电子设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105654903A (zh) * | 2016-03-31 | 2016-06-08 | 广东欧珀移动通信有限公司 | 一种终端的显示控制方法、装置及智能终端 |
WO2020022806A1 (ko) * | 2018-07-27 | 2020-01-30 | 삼성전자 주식회사 | 전자 장치에서 디스플레이 번인 방지 방법 및 전자 장치 |
CN111050224A (zh) * | 2019-12-27 | 2020-04-21 | 深圳创维-Rgb电子有限公司 | 一种电视机防残影的处理方法、电视机及存储介质 |
WO2021029469A1 (ko) * | 2019-08-14 | 2021-02-18 | 엘지전자 주식회사 | 디스플레이 장치 및 그의 동작 방법 |
CN113885824A (zh) * | 2021-10-18 | 2022-01-04 | Oppo广东移动通信有限公司 | 屏幕控制方法、装置、电子设备及存储介质 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020428A (zh) * | 2016-05-31 | 2016-10-12 | 珠海市魅族科技有限公司 | 一种锁屏方法以及终端 |
CN106601189A (zh) * | 2017-01-16 | 2017-04-26 | 努比亚技术有限公司 | 一种显示方法及终端 |
CN106683613A (zh) * | 2017-01-16 | 2017-05-17 | 努比亚技术有限公司 | 一种显示方法及终端 |
CN107610060B (zh) * | 2017-08-29 | 2020-03-17 | 西安交通大学 | 一种oled图像灼烧改善方法及装置 |
CN107844248A (zh) * | 2017-11-23 | 2018-03-27 | 广州视源电子科技股份有限公司 | 一种智能平板的控制方法、装置、智能平板和存储介质 |
CN109951595A (zh) * | 2017-12-20 | 2019-06-28 | 广东欧珀移动通信有限公司 | 智能调节屏幕亮度的方法、装置、存储介质及移动终端 |
CN108231038A (zh) * | 2018-01-23 | 2018-06-29 | 北京小米移动软件有限公司 | 屏幕亮度调节方法及装置 |
CN108958454A (zh) * | 2018-07-31 | 2018-12-07 | 努比亚技术有限公司 | 终端屏幕节能显示方法、终端及计算机可读存储介质 |
CN109788138A (zh) * | 2019-02-01 | 2019-05-21 | Oppo广东移动通信有限公司 | 屏幕控制方法、装置、终端及存储介质 |
CN111105764B (zh) * | 2019-12-26 | 2021-07-06 | 深圳市华星光电半导体显示技术有限公司 | 缓解显示器残影的显示器驱动方法及其系统 |
CN111857484B (zh) * | 2020-07-28 | 2022-02-08 | 维沃移动通信有限公司 | 屏幕亮度调节方法、装置、电子设备及可读存储介质 |
CN111970753A (zh) * | 2020-08-13 | 2020-11-20 | 珠海市魅族科技有限公司 | 一种智能终端屏幕休眠控制方法及存储介质、处理器、智能终端 |
-
2021
- 2021-10-18 CN CN202111212054.0A patent/CN113885824A/zh active Pending
-
2022
- 2022-08-23 WO PCT/CN2022/114160 patent/WO2023065807A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105654903A (zh) * | 2016-03-31 | 2016-06-08 | 广东欧珀移动通信有限公司 | 一种终端的显示控制方法、装置及智能终端 |
WO2020022806A1 (ko) * | 2018-07-27 | 2020-01-30 | 삼성전자 주식회사 | 전자 장치에서 디스플레이 번인 방지 방법 및 전자 장치 |
WO2021029469A1 (ko) * | 2019-08-14 | 2021-02-18 | 엘지전자 주식회사 | 디스플레이 장치 및 그의 동작 방법 |
CN111050224A (zh) * | 2019-12-27 | 2020-04-21 | 深圳创维-Rgb电子有限公司 | 一种电视机防残影的处理方法、电视机及存储介质 |
CN113885824A (zh) * | 2021-10-18 | 2022-01-04 | Oppo广东移动通信有限公司 | 屏幕控制方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113885824A (zh) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023065807A1 (zh) | 屏幕控制方法、装置、电子设备及存储介质 | |
US11450052B2 (en) | Display control method and apparatus for game screen, electronic device, and storage medium | |
US10952146B2 (en) | Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal | |
CN108762652B (zh) | 智能终端的显示控制方法、装置、存储介质及智能终端 | |
CN111486950B (zh) | 环境光检测方法、装置、电子设备及存储介质 | |
US10360833B2 (en) | Method for controlling image display and terminal | |
CN108646906B (zh) | 帧率调整方法、装置、存储介质及智能终端 | |
CN108710478B (zh) | 显示屏的控制方法、装置、存储介质及智能终端 | |
CN108648259B (zh) | 图像绘制方法、装置、存储介质及智能终端 | |
CN106951054B (zh) | 一种应用程序的控制方法、装置及移动终端 | |
CN108762465B (zh) | 帧率自适应调整方法、装置、存储介质及智能终端 | |
CN109215578B (zh) | 屏幕显示方法及装置 | |
CN109788138A (zh) | 屏幕控制方法、装置、终端及存储介质 | |
CN113608713A (zh) | 变频显示方法、ddic、显示屏模组及终端 | |
CN113781949B (zh) | 图像显示方法、显示驱动芯片、显示屏模组及终端 | |
CN108733193B (zh) | 智能调整帧率的方法、装置、存储介质及智能终端 | |
CN104572150B (zh) | 一种信息处理方法和装置 | |
CN111918099A (zh) | 视频处理方法、装置、电子设备及存储介质 | |
CN114093323A (zh) | 屏幕控制方法、装置、电子设备及存储介质 | |
CN106933329B (zh) | 一种移动终端适配节能等级的方法、装置及移动终端 | |
CN108021416B (zh) | 一种媒体资源加载的方法及终端 | |
CN110572867A (zh) | 一种降低电子设备功耗的方法及装置 | |
CN114038433B (zh) | 屏幕控制方法、装置、电子设备及存储介质 | |
WO2022142732A1 (zh) | 帧率切换控制方法、装置、终端设备和可读存储介质 | |
US20230237632A1 (en) | Electronic device and operating method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22882426 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22882426 Country of ref document: EP Kind code of ref document: A1 |