Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and should not be construed as limiting the same.
As used herein, the singular forms "a", "an", "the" and "the" include plural referents unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, fig. 1 is a flowchart of a burn-in protection method according to an embodiment of the present disclosure.
And S110, determining a time interval of screen burning detection aiming at the terminal screen.
The screen burning detection is to detect the change condition of the color value displayed by the same pixel point within a certain time period. That is to say to same pixel point, burn the screen detection twice at least to obtain corresponding colour value. And determining the corresponding screen burning risk according to the color values detected by the two screen burning. The time interval between the two screen burning detections is the time interval of the screen burning detection.
Therefore, in the process of the screen burn-in detection, the time interval of the screen burn-in detection for the screen needs to be determined according to the use condition of the terminal screen.
Before the step, the method also comprises the following steps:
and when the application program is detected to be started, determining the corresponding starting time of the screen burning detection according to the current use state of the central processing unit of the terminal.
The starting time of the screen burning detection is the running condition of the application program, and the running condition can include the change condition of the color value of the pixel point of the application program and the running condition of the application program, and even can be determined by combining the running condition of the current terminal.
When a user sends an enabling instruction to the application program to the terminal, the terminal responds to the enabling instruction to trigger the enabling of the application program.
In this embodiment, when the terminal detects that the application is enabled, the current usage status of the terminal Central Processing Unit (CPU) is used. And determining the starting time of the corresponding screen burning detection. In this embodiment, the start time of the burn-in detection is 10 to 15 minutes after the detected application program is started. The current usage status may be the current utilization of the central processing unit as a decision factor. In this embodiment, the idle state is defined as a state in which the usage rate is lower than 50%, and the non-idle state is defined as a state in which the usage rate is equal to or higher than 50%. When the central processing unit is in an idle state, determining the starting time of the corresponding screen burning detection to be shorter time, such as 10 minutes after the application program is started; if the central processing unit is in a non-idle state or even in a busy state, if the utilization rate reaches 70%, the determined starting time of the corresponding screen burning detection is a longer time, such as 15 minutes after the application program is started. The embodiment can ensure that the execution of the burn-in detection does not affect the operation of the application program.
On this basis, the step S110 may further include:
and when the starting duration of the application program reaches the starting time of the screen burning detection, determining the time interval of the screen burning detection aiming at the terminal screen so as to execute the screen burning detection of the screen area covered by the application program.
And after the application program is started after detection, the terminal times the starting time of the application program to obtain the corresponding starting time. When the starting time reaches the starting time of the screen burning detection determined according to the above steps, for example, after 15 minutes after the application program is started, the screen burning detection is started to be performed on the screen area covered by the application program. And repeatedly executing the screen burning detection on the screen area covered by the application program according to the determined time interval of the screen burning detection aiming at the terminal screen so as to obtain the detection data of each screen burning detection.
And S120, sequentially carrying out screen burning detection according to the time interval of the screen burning detection so as to obtain the color value of each pixel point of the screen area covered by the application program, which is obtained by each screen burning detection.
And sequentially performing screen burning detection on the screen areas covered by the corresponding application programs according to the time interval of the screen burning detection determined in the step S110. The picture in the screen display area of the terminal is composed of all pixel points. And when each screen burning detection is carried out, detecting the color value of each pixel point of the screen area covered by the application program.
S130, determining color values obtained by two adjacent screen burning detections of each pixel point, and determining a screen burning risk grade corresponding to the color values.
And according to the adjacent twice screen burning detection carried out at the time interval of the screen burning detection, determining the color value of each pixel point of each screen burning detection, and obtaining the change condition of the color value displayed by the same pixel point in the time interval of the screen burning detection. And determining the corresponding burning screen danger grade according to the change situation of the color value.
S140, when the accumulated value of the burn screen risk grade of the pixel reaches a risk set value, obtaining the color value of the pixel.
And performing cumulative statistics on the value of the screen burning risk grade of the corresponding pixel point determined in the step S130 to obtain a corresponding cumulative value, so as to evaluate the screen burning risk of the pixel point corresponding to the starting duration of the terminal screen along with the application program. In the present embodiment, a risk setting value is used as a determination condition as to whether or not the burn-in protection needs to be started as the activation time of the application program increases.
When the accumulated value reaches the risk set value, the problem of screen burning occurs to a great extent in the coordinate area of the corresponding pixel point in the screen area covered by the application program, and a corresponding screen burning protection means needs to be started. In this embodiment, according to the determination condition that the accumulated value reaches the risk set value, the reverse differential color of the color value of the pixel point is triggered to be obtained, so as to reduce the screen burning risk of the primary color corresponding to the color value to the coordinate region of the pixel point in the terminal screen.
S150, covering the contrast color on the coordinate area of the pixel point, so that the coordinate area of the pixel point shows the contrast color.
For the contrast color obtained in step S140, instead of displaying the primary color corresponding to the color value in the coordinate region of the pixel point, the contrast color is covered on the coordinate region of the pixel point, so that the coordinate region of the pixel point displays the contrast color. The display duration of the corresponding contrast color in the coordinate area of the pixel point can be determined according to the screen burning detection condition of the corresponding application program, and the display can be matched with the primary color to achieve the purpose of screen burning protection of the coordinate area of the pixel point in the terminal screen.
According to the screen burning protection method, the change condition of the color value of each pixel point can be acquired through screen burning detection, the pixel points with screen burning risks are acquired, and the contrast color of the color value is displayed in the coordinate area of the pixel point, so that the purpose of screen burning protection of the coordinate area of the pixel point in a terminal screen is achieved.
Therefore, due to the fact that the technical scheme of the embodiment of the disclosure can perform screen burning protection on each pixel point in the screen area covered by the application program aimed at by screen burning detection, the negative condition that screen burning damage is caused to the terminal screen due to the fact that the user uses the corresponding application program is avoided, and therefore the user is lost is caused.
On the basis of the above embodiments of the present disclosure, the step S110 may further include:
and determining the corresponding time interval of the screen burning detection according to the change of the display brightness value of the terminal screen.
The display brightness of the screen area and the change situation of the color value displayed in the same area are main screen burning factors, namely the higher the brightness is, the more easily the screen burning situation is generated in the corresponding screen area; and in the same area, the longer the time for displaying the same color value is, the more easily the screen burning condition is generated in the corresponding screen area.
In this embodiment, in the process of running the corresponding application program by the terminal, the display brightness value of the screen area covered by the application program is obtained, and the corresponding time interval of the burn-in detection is determined according to a change of the display brightness value, such as a change trend of increase or decrease of the display brightness. If the display brightness is increased, the corresponding time interval of screen burning detection can be shortened; when the display brightness is increased or decreased, the time interval of the corresponding screen burning detection is prolonged.
On the basis, the step of determining the corresponding time interval of the burn-in detection according to the change of the display brightness value of the terminal screen comprises the following steps:
if the current display brightness of the terminal screen is increased, the time interval of the corresponding screen burning detection is gradually reduced;
or,
and if the current display brightness of the terminal screen is reduced, the time interval of the corresponding screen burning detection is gradually increased.
The change value for measuring the current display brightness may be obtained by comparing with the brightness value detected last time or the brightness value detected some time before, or may be obtained by comparing with the set initial display brightness value.
And for the determination of the time interval of the screen burning detection, the constant slope conversion can be performed in a step mode or according to a certain coefficient according to the amplitude and/or the frequency of the change value of the current display brightness of the terminal screen. The relationship between the current display brightness variation value of the terminal screen and the time interval of the screen burning detection can be arbitrarily changed according to the detection requirement on the premise of the technical means. In order to better explain the relationship between the current display brightness variation value of the terminal screen and the time interval of the screen burning detection, an embodiment is exemplified.
For the increase of the current display brightness of the terminal screen, the corresponding time interval of the burn-in detection is gradually decreased, which may further include:
determining an initial display brightness value Lo, a corresponding initial detection time interval To and a brightness variable preset value Lc;
detecting to obtain that the current display brightness value L is increased relative to the initial display brightness value Lo, and when (L-Lo)/Lc ═ n is satisfied, determining that the corresponding time interval T of the burn-in detection is as follows: T-To-n a.
For the decrease of the current display brightness of the terminal screen, the corresponding time interval of the burn-in detection is gradually increased, which may further include:
and detecting to obtain that the current display brightness value L is reduced relative to the initial display brightness value Lo, and when (Lo-L)/Lc ═ n is satisfied, determining that the corresponding time interval of the burn-in detection is as follows: t To + n b.
Wherein n is a positive integer, a is a first time interval adjustment value, and b is a second time interval adjustment value.
In the present embodiment, the determined initial display luminance value Lo is 50%, which corresponds To an initial detection time interval To of 20s (seconds). If the display brightness value increases by 10%, the corresponding detection time interval decreases by 1 s. I.e. the preset value Lc of the brightness variation is 10%, the corresponding first time interval adjustment value a is 1.
If the current display brightness value L is 70% (70% -50%)/10% ═ 2, 2 satisfies a condition of a positive integer, and the corresponding time interval of the burn-in detection is determined as: t-20-2 x 1-18 s. That is, if the current display brightness is increased relative to the initial display brightness value Lo, the time interval of the corresponding screen burning detection is shortened, and the situation that the screen burning is caused because the corresponding screen burning risk is not detected in time under the condition that the terminal screen is subjected to long-time high-brightness display is avoided.
Likewise, the determined initial display luminance value Lo is 50%, which corresponds To an initial detection time interval To of 20s (seconds). If the display brightness value decreases by 10%, the corresponding detection time interval increases by 1 s. I.e. the preset value Lc of the brightness variation is 10%, the corresponding second time interval adjustment value b is 1.
If the current display brightness value L is 30%, then (50% -30%)/10% ═ 2, 2 satisfies the condition of being a positive integer, and the corresponding time interval of the burn-in detection is determined as follows: t20 +2 × 1 ═ 22 s. Namely, if the current display brightness is reduced relative to the initial display brightness value Lo, the time interval of the corresponding screen burning detection is prolonged, and the situation that the screen burning detection is frequently executed under the condition that the terminal screen is in low-brightness display, the running resources of the central processing unit are excessively occupied, and the normal running of the application program is run is avoided.
For the two embodiments, the first time interval adjustment value a and the second time interval adjustment value b may not be consistent, that is, the decrease or increase of the corresponding burn-in detection time interval may be adjusted according to the influence of the increase or decrease of the brightness value on the terminal screen.
Referring to fig. 2, fig. 2 is a flowchart of a burn-in protection method according to another embodiment of the disclosure.
The step S120 may further include:
s121, sequentially acquiring projected images of a current screen according to the time interval of screen burning detection, and calling an image reader to obtain dot matrix images corresponding to the projected images;
and S122, obtaining the color value of each pixel point of the dot matrix image by using a preset function.
According to the time interval determined in step S110 for the burn-in detection of the terminal screen, a media projection manager (having a name of mediaproject manager) of the Android system may sequentially intercept a screen region display region covered by the application program in the current screen, so as to obtain a projected image of the screen region covered by the application program in the current screen.
For the screen area covered by the application program, if the application program occupies the whole screen area of the terminal, the whole screen area of the terminal is directly acquired as the screen area covered by the application program. The screen area covered by the application program is not the whole screen area of the terminal, and the plug-in can be acquired through the display area in the burn-in detection program to acquire the screen area covered by the application program.
After the projection image is obtained, an image reader (English name: Imagereader) is called to obtain a corresponding dot matrix image from the projection image of the current screen. Through the dot matrix image, the terminal can identify the color value of each pixel point forming the projected image of the current screen.
And acquiring color values of corresponding pixel points according to the coordinate values of all the pixels in the dot matrix image by using a preset function, so as to determine corresponding screen burning danger grades according to the color values of all the pixel points detected by screen burning at each time, and starting screen burning protection of the corresponding pixel points. In this embodiment, the predetermined function may be a GetPixel function.
The step of determining the change condition of the color value obtained by two adjacent screen-burning detections of each pixel point in the step S130, and determining the screen-burning risk level corresponding to the change condition of the color value, may further include:
if the color values obtained by two adjacent screen burning detections of the same pixel point are the same, determining the screen burning risk grade of the pixel point to be a first preset value;
if not, determining the value as a second preset value.
In the two adjacent screen burning detections, the color value of the same detected pixel point is unchanged, and the terminal screen may be displayed in the same color for a long time in the coordinate area of the pixel point, so that the screen burning risk exists. And corresponding to the situation, determining the screen burning danger grade of the pixel point as a first preset value. And the first preset value is used for indicating that the coordinate area of the corresponding pixel point possibly has a screen burning risk. And if the color values of the same detected pixel point are different in the two adjacent screen burning detections, determining the screen burning danger grade of the pixel point as a second preset value. The second preset value is used for indicating that the screen burning risk does not exist in the coordinate area of the corresponding pixel point.
Referring to fig. 3, fig. 3 is a schematic diagram of an editing interface of an application program according to an embodiment of the present disclosure.
In the editing interface diagram of the application of FIG. 3, the "+" underlying control of the editing tool whose display position is fixed and whose color of presentation is not modified in general use. Therefore, the screen burning problem is easily caused to the screen area corresponding to the "+" due to the long-time use of the application program. In response to the situation, in two adjacent screen burning processes, the color values of the pixel points corresponding to the screen area are obtained to respond, and the corresponding screen burning risk grade is a first preset value. Wherein the first preset value is larger than the second preset value.
On this basis, still include:
when the screen burning risk grade of the pixel point is not smaller than a first preset value, determining the time interval of screen burning detection aiming at the terminal screen as a high-frequency detection time interval;
and performing screen burn-in detection according to the high-frequency detection time interval.
When the screen burning danger level of the corresponding pixel point is larger than or equal to the first preset value, screen burning danger may exist in the coordinate area of the corresponding pixel point. In this embodiment, the screen burning risk level of the corresponding pixel point is not less than the first preset value as a trigger condition, high-frequency detection is started, the time interval for screen burning detection of the terminal screen is determined as a high-frequency detection time interval, screen burning detection is performed according to the high-frequency detection time interval, namely, the time interval for two adjacent screen burning detections is shortened, and the problem of screen burning caused by the fact that the coordinate area of the pixel point displays the color corresponding to the same color value for a long time is avoided.
Further, in this embodiment, after the high frequency detection is started, the time interval of each high frequency burn-in detection is gradually decreased according to a set ratio.
Such as time interval Ts for the first burn-in test after the high frequency test is initiated1The set ratio is 1/2, that is, the time interval of each burn-in test after the time interval of the first burn-in test is 1/2 of the time interval of the previous burn-in test, which is 20mins (minutes). Time interval Ts for the first burn-in test provided above1Time interval Ts of the second burn-in test2Time interval Ts of the third burn-in test of 10mins35mins … …. And determining the change condition of the color value obtained by the two adjacent screen burning detections corresponding to each pixel point of the screen area covered by the application program according to the time interval of each screen burning detection, and determining the corresponding first preset value. If the first preset value is set to 1,the second preset value is set to 0. When the color values obtained by two adjacent screen burning detections corresponding to the time interval of each screen burning detection of the same pixel point are same, different and same … …, the corresponding screen burning risk grades are 1, 0 and 1 … … respectively.
And (4) obtaining the value of each screen burning danger grade for the pixel point, and accumulating to obtain a corresponding accumulated value. And when the accumulated value reaches a risk set value such as 5, triggering to acquire the current color value of the pixel point to obtain the corresponding contrast color. And covering the reverse color difference on the coordinate area of the pixel point, so that the coordinate area of the pixel point shows the reverse color difference.
According to the dot matrix image obtained in the embodiment, the color value of each pixel point in the application program can be obtained, and the color value is in the interval from 0 to (-16777214). Where 0 is the color value for white and-16777214 is the color value for black. Corresponding to a pixel, if the color value x is detected, wherein x is in the range of 0 to (-16777214), the color value of the reverse color is- (16777214+ x). And covering the contrast color on the coordinate area of the corresponding pixel point according to the color value of the calculated contrast color, so that the coordinate area of the pixel point shows the contrast color.
For the step of covering the contrast color on the coordinate area of the pixel point in step S150, the method includes:
and generating a layer on the upper layer of the screen area covered by the application program, and adding the reverse color at the position area of the coordinate area of the pixel point corresponding to the layer.
In the running process of the application program, a window object is obtained, and a layer is generated on the upper layer of a screen area covered by the application program according to the window object. In this embodiment, the layer is fully transparent and does not handle any user action on the terminal, including click events on the terminal screen. When the contrast color of the color value of the corresponding pixel point is obtained according to step S140, the contrast color is added to the layer, and the added position corresponds to the coordinate region of the pixel point. When the pixel point coordinate area of the terminal is displayed by the contrast color of the layer, the color corresponding to the current color value of the application program is covered, and the display cannot be performed.
Based on this embodiment, the embodiment of the present disclosure further includes: and alternately displaying primary colors and reverse differential colors corresponding to the color values in the coordinate region of the pixel point according to the set alternate time interval.
In this embodiment, this alternate time interval is smaller, like 0.1s (second) for the coordinate region of this pixel can be in turn shown with different colour values in shorter time, avoids the coordinate region of this pixel to cause the problem of burning the screen because of the same colour of long-time show, plays the effect of burning the screen protection to the coordinate region of this pixel.
And when the accumulation of the alternate display time lengths of the primary colors and the reverse colors reaches the preset alternate accumulation time length, resetting the burning screen danger grade corresponding to the pixel point to be a second preset value.
The alternate accumulated duration is the accumulated duration of alternate display of the primary color and the reverse differential color, and if the preset alternate accumulated duration is 1s, the alternate accumulated duration is satisfied when the alternate display of the primary color and the reverse differential color with the alternate time interval of 0.1s is performed for 5 times. According to the condition that the alternate accumulated time duration is satisfied, the risk level of the pixel point is reset to a second preset value, wherein the second preset value provided by the embodiment is 0. Namely, the primary colors and the reverse colors are alternately displayed, and the time accumulation of the alternate display reaches the preset alternate accumulation time, so that the screen burning risk does not exist in the pixel point. And then, according to the execution of any one of the above embodiments, re-determining the screen burning risk level of the pixel point, and performing screen burning protection. Therefore, the embodiment can perform screen burning protection on the pixel points with the screen burning risk in a short time, and restore the pixel points to a normal use state again, so that the normal use of the application program can be ensured besides the screen burning protection of the corresponding pixel points, and the user experience of the application program is promoted.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a burn-in protection device according to an embodiment.
The present disclosure provides a burn-in protection device, as shown in fig. 4, the burn-in protection device 400 may include:
a time interval determination module 410 for determining a time interval of burn-in detection for the terminal screen;
the color value obtaining module 420 is configured to perform burn-in detection in sequence according to a time interval of the burn-in detection, so as to obtain color values of pixel points in a screen area covered by an application program, where the color values are obtained by each burn-in detection;
a screen burning risk level determining module 430, configured to determine a change situation of a color value obtained through two adjacent screen burning detections of each pixel point, and determine a screen burning risk level corresponding to the change situation of the color value;
the obtaining contrast color module 440 is configured to obtain a contrast color of the color value of the pixel point when the accumulated value of the burn screen risk levels of the pixel points reaches a risk set value;
and the display reverse-color module 450 is configured to cover the reverse color on the coordinate region of the pixel point, so that the coordinate region of the pixel point displays the reverse color.
The screen burning protection device can detect through burning the screen, acquires the change condition of the color value of each pixel point, acquires the pixel point with screen burning risk, and displays the pixel point on the coordinate area of the pixel point by the contrast color of the color value, so as to achieve the purpose of screen burning protection on the coordinate area of the pixel point in the terminal screen.
Therefore, due to the fact that the technical scheme of the embodiment of the disclosure can perform screen burning protection on each pixel point in the screen area covered by the application program aimed at by screen burning detection, the negative condition that screen burning damage is caused to the terminal screen due to the fact that the user uses the corresponding application program is avoided, and therefore the user is lost is caused.
The possible implementation manner is provided in the embodiment of the present disclosure, and the time interval determining module 410 may be further configured to determine a corresponding time interval of the burn-in detection according to a change of a display brightness value of the terminal screen.
On this basis, the embodiment of the present disclosure provides a possible implementation manner, and if the current display brightness of the terminal screen is increased, the time interval determining module 410 may further gradually decrease the time interval for the corresponding burn-in detection; or, if the current display brightness of the terminal screen is reduced, the time interval acting on the corresponding burn-in detection is gradually increased.
The embodiment of the present disclosure provides a possible implementation manner, the color value obtaining module 420 may be further configured to sequentially obtain the projection images of the screen area covered by the application program in the current screen according to the time interval of the burn-in detection, and call an image reader to obtain the dot matrix images corresponding to the projection images;
and acquiring the color value of each pixel point of the dot matrix image by using a preset function.
The embodiment of the present disclosure provides a possible implementation manner, and the screen burning risk determining module 430 may be further configured to determine that the screen burning risk level of the pixel point is a first preset value if color values obtained by two adjacent screen burning detections of the same pixel point are the same;
if not, determining the value as a second preset value.
The embodiment of the present disclosure provides a possible implementation manner, further including a high frequency detection starting module, where the high frequency detection starting module is configured to determine a time interval of screen burning detection for a terminal screen as a high frequency detection time interval when a screen burning risk level of a pixel point is not less than a first preset value;
and performing screen burning detection according to the high-frequency detection time interval.
In one possible implementation manner provided in the embodiments of the present disclosure, the displaying contrast module 450 may be further configured to cover contrast colors on the coordinate regions of the pixel points, including:
and generating a layer on the upper layer of the screen area covered by the application program, and adding a contrast color at the position area of the coordinate area of the pixel point corresponding to the layer.
The embodiment of the present disclosure provides a possible implementation manner, further including an alternating module, where the alternating module is configured to alternately display primary colors and reverse differential colors corresponding to color values in a coordinate region of a pixel point according to a set alternating time interval.
The embodiment of the present disclosure provides a possible implementation manner, further including a resetting module, where the resetting module is configured to reset the burn-in screen risk level corresponding to the pixel point to a second preset value when the accumulation of the alternate display durations of the primary color and the reverse color reaches a preset alternate accumulation duration.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device for burn-in protection of an application according to an embodiment, which shows a schematic structural diagram of an electronic device 500 suitable for implementing an embodiment of the present disclosure. The electronic device 500 in the disclosed embodiment may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device 500 includes: a memory and a processor, wherein the processor may be referred to as the processing device 501 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)502, a Random Access Memory (RAM)503 and a storage device 508 hereinafter, which are specifically shown as follows:
as shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a time interval of screen burning detection aiming at a terminal screen; sequentially performing screen burning detection according to the time interval of the screen burning detection to obtain the color value of each pixel point of the screen area covered by the application program obtained by each screen burning detection; determining the change condition of the color value obtained by two adjacent screen burning detections of each pixel point, and determining the screen burning risk grade corresponding to the change condition of the color value; when the accumulated value of the burn screen risk grades of the pixel points reaches a risk set value, acquiring the contrast color of the color values of the pixel points; and covering the reverse color difference on the coordinate area of the pixel point, so that the coordinate area of the pixel point shows the reverse color difference.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or cell does not in some cases constitute a definition of the cell itself, for example, the module for obtaining contrast color may also be described as "obtaining contrast color for color values of pixels".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a burn-in protection method, including the steps of:
determining a time interval of screen burning detection aiming at a terminal screen;
sequentially performing screen burning detection according to the time interval of the screen burning detection to obtain the color value of each pixel point of the screen area covered by the application program obtained by each screen burning detection;
determining the change condition of the color value obtained by two adjacent screen burning detections of each pixel point, and determining the screen burning risk grade corresponding to the change condition of the color value;
when the accumulated value of the burn screen risk grades of the pixel points reaches a risk set value, acquiring the contrast color of the color values of the pixel points;
and covering the reverse color difference on the coordinate area of the pixel point, so that the coordinate area of the pixel point shows the reverse color difference.
According to one or more embodiments of the present disclosure, there is provided a screen burn-in protection method, before the step of determining a time interval of screen burn-in detection for a terminal screen, the method further includes:
when the application program is detected to be started, determining the starting time of the corresponding screen burning detection according to the current use state of a central processing unit of the terminal;
determining a time interval for burn-in detection of a terminal screen, comprising:
and when the starting duration of the application program reaches the starting time of the screen burning detection, determining the time interval of the screen burning detection aiming at the terminal screen so as to execute the screen burning detection of the screen area covered by the application program.
According to one or more embodiments of the present disclosure, there is provided a screen burn-in protection method, including the step of determining a time interval for screen burn-in detection of a terminal screen, including:
and determining the corresponding time interval of the screen burning detection according to the change of the display brightness value of the terminal screen.
According to one or more embodiments of the present disclosure, there is provided a screen burn-in protection method, where the step of determining a corresponding time interval of screen burn-in detection according to a change in a display brightness value of a terminal screen includes:
if the current display brightness of the terminal screen is increased, the time interval of the corresponding screen burning detection is gradually reduced;
or,
and if the current display brightness of the terminal screen is reduced, the time interval of the corresponding screen burning detection is gradually increased.
According to one or more embodiments of the present disclosure, a screen burn-in protection method is provided, which sequentially performs screen burn-in detection according to a time interval of the screen burn-in detection, so as to obtain color values of each pixel point of a screen area covered by an application program, which are obtained by each screen burn-in detection, and includes:
according to the time interval of the screen burning detection, sequentially obtaining projection images of a screen area covered by an application program in a current screen, and calling an image reader to obtain a dot matrix image corresponding to the projection images;
and acquiring the color value of each pixel point of the dot matrix image by using a preset function.
According to one or more embodiments of the present disclosure, a screen burning protection method is provided, which determines a change situation of a color value obtained by two adjacent screen burning detections of each pixel point, and determines a screen burning risk level corresponding to the change situation of the color value, including:
if the color values obtained by two adjacent screen burning detections of the same pixel point are the same, determining the screen burning risk grade of the pixel point to be a first preset value;
if not, determining the value as a second preset value.
According to one or more embodiments of the present disclosure, a screen burning protection method is provided, in which when a screen burning risk level of a pixel point is not less than a first preset value, a time interval of screen burning detection for a terminal screen is determined as a high-frequency detection time interval;
and performing screen burning detection according to the high-frequency detection time interval.
According to one or more embodiments of the present disclosure, there is provided a burn-in protection method, including the step of covering a contrast color on a coordinate region of a pixel point, including:
and generating a layer on the upper layer of the screen area covered by the application program, and adding a contrast color at the position area of the coordinate area of the pixel point corresponding to the layer.
According to one or more embodiments of the present disclosure, there is provided a burn-in protection method, further including:
and alternately displaying primary colors and reverse differential colors corresponding to the color values in the coordinate region of the pixel point according to the set alternate time interval.
According to one or more embodiments of the present disclosure, there is provided a burn-in protection method, further including:
and when the accumulation of the alternate display time lengths of the primary colors and the reverse colors reaches the preset alternate accumulation time length, resetting the burning screen danger grade corresponding to the pixel point to be a second preset value.
In accordance with one or more embodiments of the present disclosure, there is provided a burn-in protection device, comprising:
the device comprises a time interval determining module, a screen burning detecting module and a screen burning detecting module, wherein the time interval determining module is used for determining a time interval of screen burning detection aiming at a terminal screen;
the color value acquisition module is used for sequentially carrying out screen burning detection according to the time interval of the screen burning detection so as to acquire the color value of each pixel point of the screen area covered by the application program obtained by each screen burning detection;
the screen burning danger determining grade module is used for determining the change condition of the color value obtained by the two adjacent screen burning detections of each pixel point and determining the screen burning danger grade corresponding to the change condition of the color value;
the obtaining reverse color difference module is used for obtaining the color difference of the color value of the pixel point when the accumulated value of the burn screen risk grade of the pixel point reaches a risk set value;
and the display reverse-differential color module is used for covering the reverse differential color on the coordinate area of the pixel point so that the coordinate area of the pixel point displays the reverse differential color.
According to one or more embodiments of the present disclosure, a screen burn-in protection device is provided, and the determining time interval module may be further configured to determine a corresponding time interval of screen burn-in detection according to a change in a display brightness value of a terminal screen.
On this basis, according to one or more embodiments of the present disclosure, a screen burn-in protection device is provided, wherein if the current display brightness of the terminal screen is increased, the time interval determining module 410 may further gradually decrease the time interval for the corresponding screen burn-in detection; or, if the current display brightness of the terminal screen is reduced, the time interval acting on the corresponding burn-in detection is gradually increased.
According to one or more embodiments of the present disclosure, a screen burning protection device is provided, where the color value obtaining module is further configured to sequentially obtain a projected image of a screen area covered by an application program in a current screen according to a time interval of screen burning detection, and call an image reader to obtain a dot matrix image corresponding to the projected image;
and acquiring the color value of each pixel point of the dot matrix image by using a preset function.
According to one or more embodiments of the present disclosure, a screen burning risk determining module is provided, where the screen burning risk determining module is further configured to determine that the screen burning risk level of a pixel is a first preset value if color values obtained by two adjacent screen burning detections of the same pixel are the same;
if not, determining the value as a second preset value.
According to one or more embodiments of the present disclosure, a screen burn-in protection device is provided, which further includes a high frequency detection starting module, where the high frequency detection starting module is configured to determine a time interval of screen burn-in detection for a terminal screen as a high frequency detection time interval when a screen burn-in risk level of a pixel point is not less than a first preset value;
and performing screen burning detection according to the high-frequency detection time interval.
According to one or more embodiments of the present disclosure, there is provided a burn-in protection device, wherein the display contrast color module is further configured to cover a contrast color on a coordinate region of a pixel point, and the display contrast color module includes:
and generating a layer on the upper layer of the screen area covered by the application program, and adding a contrast color at the position area of the coordinate area of the pixel point corresponding to the layer.
According to one or more embodiments of the present disclosure, a burn-in protection device is provided, which further includes an alternating module, where the alternating module is configured to alternately display primary colors and reverse colors corresponding to color values in a coordinate region of a pixel point according to a set alternating time interval.
According to one or more embodiments of the present disclosure, a screen burn-in protection device is provided, which further includes a reset module, configured to reset a screen burn-in risk level corresponding to a pixel point to a second preset value when an accumulation of alternate display durations of primary colors and reverse colors reaches a preset alternate accumulation duration.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the burn-in protection method of any of the above embodiments is performed.
According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, the program being executed by a processor to perform the burn-in protection method of any of the above embodiments.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.