CN110211549B - Screen brightness adjustment method and device, terminal and storage medium - Google Patents

Screen brightness adjustment method and device, terminal and storage medium Download PDF

Info

Publication number
CN110211549B
CN110211549B CN201910336948.7A CN201910336948A CN110211549B CN 110211549 B CN110211549 B CN 110211549B CN 201910336948 A CN201910336948 A CN 201910336948A CN 110211549 B CN110211549 B CN 110211549B
Authority
CN
China
Prior art keywords
value
brightness
preset
screen
screen brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910336948.7A
Other languages
Chinese (zh)
Other versions
CN110211549A (en
Inventor
黎小松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Taihengnuo Technology Co ltd
Original Assignee
Shenzhen Taihengnuo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Taihengnuo Technology Co ltd filed Critical Shenzhen Taihengnuo Technology Co ltd
Priority to CN201910336948.7A priority Critical patent/CN110211549B/en
Publication of CN110211549A publication Critical patent/CN110211549A/en
Application granted granted Critical
Publication of CN110211549B publication Critical patent/CN110211549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a screen brightness adjusting method, a device, a terminal and a storage medium, wherein the method is applied to the terminal and comprises the following steps: and starting an opening instruction of the target application, acquiring a current screen brightness value and a preset screen brightness value of the target application, calculating a brightness difference value between the current screen brightness value and the preset screen brightness value of the target application, and comparing an absolute value of the brightness difference value with a preset brightness adjustment threshold value. Further, if the absolute value of the brightness difference value is greater than or equal to a preset brightness adjustment threshold value, the current screen brightness value is adjusted according to a preset brightness adjustment strategy. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.

Description

Screen brightness adjustment method and device, terminal and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for adjusting screen brightness, a terminal, and a storage medium.
Background
With the popularization of terminal equipment, people use the terminal equipment for a longer time, and the eye health of people is seriously affected. When the screen brightness value changes greatly in a short time, eye vision is easily injured.
Currently, for the screen brightness of the terminal device, a system is generally set with a screen brightness value in a unified way, but each application can set a screen brightness value independent of the other application, when two applications or interfaces are switched, if the brightness difference set between the applications is large, the user's vision is easily damaged when the brightness is suddenly increased or reduced. Therefore, how to adjust the brightness of the screen to avoid the injury to the eyesight of the user is a urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for adjusting a screen brightness value, which are beneficial to reducing the damage to the eyesight of a user caused by the adjustment of the screen brightness value.
In a first aspect, an embodiment of the present invention provides a method for adjusting a brightness value of a screen, including:
an opening instruction of opening a target application, and acquiring the current screen brightness;
acquiring a preset screen brightness value of a target application;
calculating a brightness difference value between the current screen brightness value and a preset screen brightness value of the target application;
comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value;
and if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold value, adjusting the current screen brightness value according to a preset brightness adjustment strategy.
In one embodiment, the preset brightness adjustment policy indicates an adjusted time interval and a unit brightness per adjustment.
In one embodiment, the adjusted time interval and the adjusted unit brightness may be set according to user requirements or by default.
In one embodiment, the specific implementation manner of adjusting the current screen brightness value according to the preset brightness adjustment policy is: if the brightness difference value is a negative number, increasing the current screen brightness value according to the time interval and the unit brightness; and if the brightness difference value is positive, reducing the current screen brightness value according to the time interval and the unit brightness.
In one embodiment, after the starting instruction of the target application is started and the current screen brightness value is obtained, a face image of the user can be acquired; determining the measurement distance between the face of the user and the screen; and changing a preset screen brightness value of the target application according to the measured distance.
In one embodiment, the preset brightness adjustment threshold may be determined based on the measured distance.
In one embodiment, the measured distance corresponds to the preset brightness adjustment threshold.
In a second aspect, an embodiment of the present invention provides a screen brightness adjustment device, including a module for performing the method of the first aspect.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is configured to store a computer program supporting the terminal to perform the method described above, and the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the application, the terminal can start a start instruction of the target application, acquire a current screen brightness value and a preset screen brightness value of the target application, calculate a brightness difference value between the current screen brightness value and the preset screen brightness value of the target application, and compare an absolute value of the brightness difference value with a preset brightness adjustment threshold value. Further, if the absolute value of the brightness difference value is greater than or equal to a preset brightness adjustment threshold value, the current screen brightness value is adjusted according to a preset brightness adjustment strategy. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for adjusting screen brightness according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for adjusting screen brightness according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a screen brightness adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for adjusting screen brightness according to an embodiment of the present invention, where the method may be executed by a terminal, and as shown in the drawing, the method for adjusting screen brightness may include:
101: and starting an opening instruction of the target application to acquire the current screen brightness value.
102: and acquiring a preset screen brightness value of the target application, and calculating a brightness difference value between the current screen brightness value and the preset screen brightness value of the target application.
The terminal device may be a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a mobile internet device (Mobile Internet Device, MID), or other terminals with User Interfaces (UIs).
The opening instruction may be a touch operation input for the target application, where the touch operation may be a click operation, a press operation, a slide operation, a shake operation, or a preset slide track; the on command may also be a voice command or the like. The present invention is not particularly limited thereto.
In one embodiment, the terminal is pre-installed with N (N is a positive integer) applications, where each application in the N applications may set different screen display brightness, that is, a preset screen brightness value. For example, application 01, the corresponding preset screen brightness value is f1; and applying a preset screen brightness value corresponding to 01 to be f2. In this case, when the terminal starts the start instruction of the target application, the preset screen brightness value corresponding to the target application may be determined, and the current screen brightness may be obtained. Further, the terminal may subtract the preset screen brightness value from the current screen brightness value to obtain a brightness difference between the current screen brightness value and the preset screen brightness value corresponding to the target application.
In one embodiment, when setting the screen brightness value of each of the N applications, different screen brightness values, that is, preset screen brightness values, may be set based on the main display contents of each application. For example, for a plain text application (e.g., a reading application), since the main display content is text, the text is static and highly concentrated, and for a user to see the text content, the screen brightness value of the plain text application may be relatively set to be high. For video-type applications, since real content is a dynamic image, it is easier to see than text, and the screen brightness value of the video-type application can be set relatively low.
In one embodiment, the terminal may set different screen brightness adjustment values according to the image content of the interface image corresponding to the display interface, establish a correspondence between the image content and the screen brightness adjustment values, and store the correspondence in the storage area. Illustratively, the correspondence of the image content and the screen brightness adjustment value may be as shown in table 1-1. Because the demand of the text on the screen brightness is relatively higher than that of the image, the size relation corresponding to the first screen brightness adjustment value, the second screen brightness adjustment value and the third screen brightness adjustment value can be set as follows: the first screen brightness adjustment value > the third screen brightness adjustment value > the second screen brightness adjustment value.
TABLE 1-1
Image content Screen brightness adjustment value
Text with a character pattern First screen brightness adjustmentValue of
Image processing apparatus Second screen brightness adjusting value
Text + image Third screen brightness adjustment value
Further, after the terminal obtains the preset screen brightness value of the target application, the terminal can obtain the interface image of the current display interface, and perform image recognition on the interface image to determine the image content corresponding to the interface image. Further, the terminal may determine a target screen brightness adjustment value matched with the image content corresponding to the current interface image based on the pre-established correspondence between the image content and the screen brightness adjustment value, so as to adjust the preset screen brightness value of the target application to the target screen brightness adjustment value.
For example, the correspondence between the image content and the screen brightness adjustment value may be as shown in table 1-1, after the terminal obtains the preset screen brightness value of the target application, obtain an interface image of the current display interface, and perform image recognition on the interface image, and if the image content corresponding to the interface image is recognized as text, adjust the preset screen brightness value of the target application to the first screen brightness adjustment value; if the image content corresponding to the interface image is identified as the image, adjusting the preset screen brightness value of the target application to be a second screen brightness adjustment value; if the image content corresponding to the interface image is identified to comprise the image and the text, the preset screen brightness value of the target application can be adjusted to be a third screen brightness adjustment value.
In one embodiment, after acquiring the current screen brightness value, the terminal may acquire a face image of the user, determine a measurement distance between the face of the user and the screen, and change a preset screen brightness value of the target application according to the measurement distance.
In one embodiment, the terminal may preset different screen brightness values according to the measured distance between the face of the user and the screen, that is, establish a corresponding relationship between the measured distance between the face and the screen brightness value. After the terminal determines the measured distance between the face of the user and the screen, a target screen brightness value corresponding to the measured distance can be determined based on the pre-established corresponding relation, and then the preset screen brightness value of the target application is adjusted to be the target screen brightness value.
In one embodiment, the terminal may further preset different brightness adjustment thresholds (i.e. preset brightness adjustment thresholds) according to the measured distance between the face of the user and the screen, that is, establish a corresponding relationship between the measured distance between the face and the screen and the preset brightness adjustment threshold. For this case, the electronic device may determine a target preset adjustment threshold corresponding to the current measurement distance based on the correspondence between the measurement distance and the preset brightness adjustment threshold, and compare the absolute value of the brightness difference value with the target preset brightness adjustment threshold, and if the absolute value of the brightness difference value is greater than or equal to the target preset brightness adjustment threshold, adjust the current screen brightness value according to the preset brightness adjustment policy.
103: comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value, and adjusting the brightness value of the current screen according to a preset brightness adjustment strategy if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold value.
In one embodiment, the terminal may set different brightness adjustment thresholds (i.e., preset brightness adjustment thresholds) in advance according to the image content of the interface image corresponding to the display interface, establish a correspondence between the image content and the preset brightness adjustment threshold, and store the correspondence in the storage area. Because the demand of the text on the screen brightness is relatively higher than that of the image, the preset brightness adjustment threshold corresponding to the image content of the pure text is relatively higher, and the preset brightness adjustment threshold corresponding to the image content of the pure image is relatively lower. Illustratively, the correspondence of the image content and the screen brightness adjustment value may be as shown in tables 1-2. Because the demand of the text on the screen brightness is relatively higher than the demand of the image, the size relationship corresponding to the first preset brightness adjustment threshold, the second preset brightness adjustment threshold and the third preset brightness adjustment threshold can be set as follows: the first preset brightness adjustment threshold value > the second preset brightness adjustment threshold value > the third preset brightness adjustment threshold value.
TABLE 1-2
Image content Screen brightness adjustment value
Text with a character pattern First preset brightness adjustment threshold
Image processing apparatus A second preset brightness adjustment threshold
Text + image Third preset brightness adjustment threshold
For this case, before comparing the absolute value of the brightness difference with a preset brightness adjustment threshold, the terminal may perform image recognition on the current interface image, and determine the image content corresponding to the current interface image. Further, the terminal may determine a target preset brightness adjustment threshold value matched with the image content corresponding to the current interface image based on a corresponding relationship between the image content and the preset brightness adjustment threshold value. Further, the terminal may compare the absolute value of the luminance difference value with a target preset luminance adjustment threshold, and if the absolute value of the luminance difference value is greater than or equal to the preset luminance adjustment threshold, adjust the current screen luminance value according to a preset luminance adjustment policy.
The preset brightness adjustment policy indicates an adjusted time interval and each adjusted unit brightness, where the adjusted time interval and each adjusted unit brightness may be preset by a developer according to experimental data, and the time interval may be set according to human eye reaction time. In one embodiment, the adjusted time interval and the adjusted unit brightness may be set according to the user's requirement or default. In one embodiment, after the adjusted time interval and the adjusted unit brightness are set, the user may also adjust the set time interval and unit brightness according to his own needs.
In one embodiment, after subtracting the preset screen brightness value from the current screen brightness value to obtain a brightness difference value between the current screen brightness value and the preset screen brightness value corresponding to the target application, if the absolute value of the brightness difference obtained by the comparison is greater than or equal to the preset brightness adjustment threshold value, the terminal may continuously determine whether the brightness difference value is negative. Further, if the luminance difference is a negative number, that is, the current screen luminance value is smaller than the preset screen luminance value corresponding to the target application, the current screen luminance value may be increased according to the time interval and the unit luminance.
Or if the brightness difference is positive, that is, the current screen brightness value is greater than the preset screen brightness value corresponding to the target application, the current screen brightness value can be reduced according to the time interval and the unit brightness.
For example, the range of the screen brightness values is 0 to 100, assuming that the current screen brightness value is f1, the preset screen brightness value corresponding to the target application is f2, the brightness difference value is f1-f2, the preset brightness adjustment threshold value is f3, the absolute value of f1-f2 is greater than f3, the time interval is 100ms, and the unit brightness corresponding to each adjustment is 5. In this case, if the luminance difference f1-f2 is a positive number, that is, the current screen luminance value is greater than the preset screen luminance value corresponding to the target application, the current screen luminance value may be reduced by 5 every 100ms until the absolute value of f1-f2 is adjusted to be smaller than f3 or the absolute value of f1-f2 is adjusted to be 0, and the adjustment is stopped.
Or if the brightness difference f1-f2 is a negative number, that is, the current screen brightness value is smaller than the preset screen brightness value corresponding to the target application, the current screen brightness value can be increased by 5 every 100ms until the absolute value of f1-f2 is adjusted to be smaller than f3 or the absolute value of f1-f2 is adjusted to be 0, and the adjustment is stopped.
In one embodiment, the luminance difference between the current screen luminance value and the preset screen luminance value corresponding to the target application may also be obtained by subtracting the current screen luminance value from the preset screen luminance value. In this case, after the absolute value of the luminance difference value is greater than or equal to the preset luminance adjustment threshold, if the luminance difference value is a negative number, the current screen luminance value may be reduced according to the time interval and the unit luminance until the absolute value of the luminance difference value is adjusted to be smaller than the preset luminance adjustment threshold or to be 0. If the brightness difference is positive, the current screen brightness value is increased according to the time interval and the unit brightness until the absolute value of the brightness difference is adjusted to be smaller than the preset brightness adjustment threshold value or adjusted to be 0.
In this embodiment of the present application, the terminal may start an instruction for starting the target application, obtain a current screen brightness value and a preset screen brightness value of the target application, calculate a brightness difference between the current screen brightness value and the preset screen brightness value of the target application, and compare an absolute value of the brightness difference with a preset brightness adjustment threshold. Further, if the absolute value of the brightness difference value is greater than or equal to a preset brightness adjustment threshold value, the current screen brightness value is adjusted according to a preset brightness adjustment strategy. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.
Referring to fig. 2, fig. 2 is a flowchart of another method for adjusting screen brightness according to an embodiment of the present invention, where the method may be performed by a terminal, and as shown in the drawing, the method for adjusting screen brightness may include:
201: and starting an opening instruction of the target application, and acquiring a plurality of images obtained by continuously shooting eyes of the user in a preset time period.
202: whether the eyes of the user are in a tired state is detected based on the plurality of images.
203: and if the eyes of the user are detected to be in a fatigue state, acquiring the current screen brightness value.
In one embodiment, when the terminal detects an operation of opening any application by a user, the front-end camera device can be called to collect face images of the user. When the terminal detects an opening instruction for opening the target application, a plurality of images obtained by continuously shooting eyes of the user in a preset time period can be obtained, a plurality of distances between an upper eyelid and a lower eyelid of the user are determined based on the plurality of images, and when the average distance of the plurality of distances is detected to be smaller than or equal to a preset eyelid distance threshold value and the change trend of the plurality of distances is a decreasing trend, the eyes of the user are determined to be in a fatigue state. By adopting the mode, the screen brightness value can be adjusted according to whether eyes of a user are in a fatigue state, so that visual fatigue of the user is relieved, and the eye protection effect of the terminal is improved.
By way of example, assuming that the preset eyelid distance threshold is 7mm, 4 images of the user's eyes are continuously taken during a preset period of time, the first image being g1, the second image being g2, the third image being g3 and the fourth image being g4. The terminal obtains a plurality of distances between the upper eyelid and the lower eyelid of the user according to the 4 images as shown in table 2.
TABLE 2
Image processing apparatus Distance (mm) between upper eyelid and lower eyelid of user
g1 9
g2 8
g3 7
g4 5
According to the data indicated in table 2, the terminal may determine that the average value of the 4 distances corresponding to the four images is 7.25mm greater than the preset eyelid distance threshold value of 7mm, and the distances corresponding to the respective images are in a gradually decreasing trend, so as to determine that the eyes of the user are in a fatigue state.
In one embodiment, the terminal may also detect whether the eyes of the user are in a tired state by analyzing the number of occlusions in the eyes of the user (e.g., hands or other objects for wiping the eyes) during the above-mentioned preset period. For example, if the number of occlusion times within the preset time is greater than or equal to the preset number of times threshold, it is determined that the eyes of the user are in a fatigue state. It will be appreciated that the implementation of the terminal to detect whether the eyes of the user are in a tired state may be varied, and the embodiments of the present application are not limited thereto.
204: and calculating the brightness difference between the current screen brightness value and the preset screen brightness value of the target application.
205: comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold, and adjusting the brightness value of the current screen according to a preset brightness adjustment strategy if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold.
The specific implementation manner of step 204 to step 205 may be referred to the description of step 102 to step 103 in the above embodiment, and will not be repeated here.
In one embodiment, after the terminal adjusts the current screen brightness value according to the preset brightness adjustment policy, when receiving the triggering operation of the user for brightness adjustment, the terminal may obtain the measured distance between the face of the user and the screen, determine the target screen brightness value corresponding to the measured distance based on the correspondence between the preconfigured distance and the screen brightness value, and then adjust the current screen brightness value to the target screen brightness value.
In one embodiment, the terminal display screen may display a brightness optimization function button, and after the terminal adjusts the current screen brightness value according to the preset brightness adjustment policy, if the user is still unsatisfied with the current screen brightness value and wants to continue to optimize the current screen brightness value, a touch operation (i.e. a trigger operation for brightness adjustment) may be input to the brightness optimization function button to continuously adjust the current screen brightness value. Further, when the terminal detects the touch operation input by the brightness optimization function button, a measurement distance between a face of a user and a screen can be obtained, a target screen brightness value corresponding to the measurement distance is determined based on a corresponding relation between a preset distance and the screen brightness value, and then the current screen brightness value is adjusted to the target screen brightness value.
In one embodiment, the terminal may pre-configure a correspondence between a distance between a face of a user and a screen brightness value. In this case, after the terminal obtains the measured distance between the face of the user and the screen, the target screen brightness value corresponding to the measured distance may be determined based on the corresponding relationship between the measured distance and the screen brightness value, so as to adjust the current screen brightness value to the target screen brightness value. When the terminal adjusts the current screen brightness value to the target screen brightness value, the terminal can still adjust the current screen brightness value to the target screen brightness value according to the preset brightness adjustment strategy.
In one embodiment, the terminal may invoke the front-end camera module to collect a face image of the user, and determine a measurement distance between the face of the user and the screen according to a proportion of a face region in the face image to the face image. In the specific implementation, in the shooting process, the terminal can acquire the focal length and the current focusing distance of the shooting module, and when the focal length and the focusing distance of the shooting module are determined, the larger the proportion of the face area in the face image in the picture is, the closer the distance between the face area corresponding to the user and the shooting module is. After the proportion of the face area to the face image is determined, the measurement distance between the face of the user and the screen can be determined according to the proportion.
In one embodiment, the terminal may invoke the distance sensor to detect the shielding distance between the screen and the shielding object, if the shielding distance meets a preset shielding distance condition, the front camera module is started to collect an environmental image of the environment where the screen is located, and if the face is detected to exist in the environmental image, the distance sensor is invoked to determine the measurement distance between the face and the screen. By adopting the mode, when the shielding distance meets the preset shielding distance condition, the front-mounted camera module is called to collect the environmental image of the environment, and the camera module is not required to be started all the time to collect the image. In this way, terminal power is advantageously saved.
The distance sensor can be an infrared distance sensor, and the infrared distance sensor can be installed near the front camera module and can sense the distance between a shielding object and a terminal screen in the current environment. The basic principle of distance measurement of the infrared distance measurement sensor is that the luminous tube emits infrared light, the photosensitive receiving tube receives reflected light of an object in front, and accordingly whether a shielding object exists in front of the screen is judged. The distance of the shielding object can be judged according to the intensity of the reflected light, and the principle of the shielding object is that the light intensity received by the receiving tube changes along with the distance of the reflecting object, and the reflected light intensity is reflected when the distance is short, and the reflected light is weak when the distance is long.
The preset shielding distance condition may be that the shielding distance is within a preset distance range (e.g., 20 cm-5 cm), where the preset distance range is set by a developer according to experimental data. In one embodiment, after the terminal invokes the distance sensor to detect the shielding distance between the screen and the shielding object, the terminal may determine whether the shielding distance is within a preset distance range, and if so, determine that the shielding distance meets a preset shielding distance condition. If not, it can be further determined whether the occlusion distance is larger or smaller for a preset distance range. I.e. greater than the maximum value corresponding to the preset distance range or less than the minimum value corresponding to the preset distance range. If the distance is larger, a first prompt message can be output for prompting the user to approach the terminal screen, so that the distance after approach is maintained within a preset distance range (such as 20 cm-5 cm); if the distance is smaller, a second prompt message can be output for prompting the user to keep away from the terminal screen, so that the distance after the distance is kept within a preset distance range (such as 20 cm-5 cm).
In the embodiment of the application, when the terminal detects an opening instruction for opening the target application, a plurality of images obtained by continuously shooting eyes of a user in a preset time period are obtained, whether the eyes of the user are in a fatigue state is detected based on the plurality of images, and if the eyes of the user are detected to be in the fatigue state, a current screen brightness value is obtained. Further, the terminal can determine a brightness difference value between the current screen brightness value and a preset screen brightness value corresponding to the target application, compare an absolute value of the brightness difference value with a preset brightness adjustment threshold, and adjust the current screen brightness value according to a preset brightness adjustment strategy if the absolute value obtained by comparison is greater than or equal to the preset brightness adjustment threshold. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.
The embodiment of the invention also provides a screen brightness adjusting device, which is configured on the terminal and comprises a module for executing the method described in the foregoing fig. 1 or fig. 2. Specifically, referring to fig. 3, a schematic block diagram of a screen brightness adjusting device according to an embodiment of the present invention is provided. The screen brightness adjustment device of the present embodiment includes:
the obtaining module 30 is configured to obtain a current screen brightness value and a preset screen brightness value of the target application according to an opening instruction for opening the target application;
the processing module 31 is further configured to calculate a brightness difference between the current screen brightness value and a preset screen brightness value corresponding to the target application;
the processing module 31 is further configured to compare the absolute value of the luminance difference value with a preset luminance adjustment threshold;
the processing module 31 is further configured to adjust the current screen brightness value according to a preset brightness adjustment policy if the absolute value of the brightness difference value is greater than or equal to the preset brightness adjustment threshold.
In one embodiment, the preset brightness adjustment policy indicates an adjusted time interval and a unit brightness per adjustment.
In one embodiment, the adjusted time interval and the adjusted unit brightness may be set according to user requirements or by default.
In one embodiment, the processing module 31 is specifically configured to increase the current screen brightness value according to the time interval and the unit brightness if the brightness difference is negative; and if the brightness difference value is positive, reducing the current screen brightness value according to the time interval and the unit brightness.
In one embodiment, the acquiring module 30 is further configured to acquire a face image of the user; the processing module 31 is further configured to determine a measured distance between the face of the user and the screen, and change a preset screen brightness value of the target application according to the measured distance.
In one embodiment, the preset brightness adjustment threshold is determined from the measured distance.
In one embodiment, the measured distance corresponds to the preset brightness adjustment threshold.
It should be noted that, the functions of each functional module of the screen brightness value adjusting device described in the embodiments of the present invention may be specifically implemented according to the method in the method embodiment described in fig. 1 or fig. 2, and the specific implementation process may refer to the related description of the method embodiment in fig. 1 or fig. 2, which is not repeated herein.
In this embodiment of the present invention, the obtaining module 30 may obtain an opening instruction of the target application, obtain a current screen brightness value and a preset screen brightness value of the target application, and the processing module 31 may calculate a brightness difference between the current screen brightness value and the preset screen brightness value of the target application, and compare an absolute value of the brightness difference with a preset brightness adjustment threshold. Further, if the absolute value of the luminance difference is greater than or equal to the preset luminance adjustment threshold, the processing module 31 adjusts the current screen luminance value according to the preset luminance adjustment policy. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.
Referring to fig. 4, fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal may include a processor 43, a memory 44, an input device 45, and an output device 46. The processor 43, memory 44, input device 45 and output device 46 may be connected by a bus or other means, as illustrated in fig. 4 by way of example in an embodiment of the present invention. Wherein the input device 45 and the output device 46 are controlled by said processor for transceiving messages, the memory 44 for storing a computer program comprising program instructions, and the processor 43 for executing the program instructions stored in the memory 44. Wherein the processor 43 is configured to invoke execution of the program instructions: an opening instruction of opening a target application, and acquiring the current screen brightness; acquiring a preset screen brightness value of a target application; calculating a brightness difference value between the current screen brightness value and a preset screen brightness value of the target application; comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value; and if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold value, adjusting the current screen brightness value according to a preset brightness adjustment strategy.
In one embodiment, the preset brightness adjustment policy indicates an adjusted time interval and a unit brightness per adjustment.
In one embodiment, the adjusted time interval and the adjusted unit brightness may be set according to user requirements or by default.
In one embodiment, the processor 43 is specifically configured to increase the current screen brightness value according to the time interval and the unit brightness if the brightness difference is negative; and if the brightness difference value is positive, reducing the current screen brightness value according to the time interval and the unit brightness.
In one embodiment, the input device 45 is configured to collect a face image of a user; the processor 43 is further configured to determine a measured distance between the face of the user and the screen, and change a preset screen brightness value of the target application according to the measured distance.
In one embodiment, the preset brightness adjustment threshold is determined from the measured distance.
In one embodiment, the measured distance corresponds to the preset brightness adjustment threshold.
It should be appreciated that in embodiments of the present invention, the processor 43 may be a central processing unit (Central Processing Unit, CPU), the processor 43 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 44 may include read only memory and random access memory and provides instructions and data to the processor 43. A portion of memory 44 may also include non-volatile random access memory. For example, the memory 44 may also store information of the device type.
The input device 45 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user), a microphone, a physical keyboard, etc., and the output device 46 may include a display (LCD, etc.), a speaker, etc.
In a specific implementation, the processor 43, the memory 44, the input device 45, and the output device 4 described in the embodiments of the present invention may execute the implementation described in the embodiment of the method provided in fig. 1 or fig. 2, or may execute the implementation of the screen brightness adjustment device described in the embodiment of the present invention, which is not described herein again.
In the embodiment of the present invention, the processor 43 may calculate a luminance difference value between the current screen luminance value and a preset screen luminance value corresponding to the target application, and compare an absolute value of the luminance difference value with a preset luminance adjustment threshold. Further, if the absolute value is greater than or equal to the preset brightness adjustment threshold value, the processor 43 adjusts the current screen brightness value according to the preset brightness adjustment strategy. By adopting the method and the device, the adjustment of the brightness value of the screen is reduced, and the damage to the eyesight of the user is reduced.
In another embodiment of the present invention, there is provided a computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: an opening instruction of opening a target application, and acquiring the current screen brightness; acquiring a preset screen brightness value of a target application; calculating a brightness difference value between the current screen brightness value and a preset screen brightness value of the target application; comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value; and if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold value, adjusting the current screen brightness value according to a preset brightness adjustment strategy.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present invention, and it is not intended to limit the scope of the present invention, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present invention.

Claims (10)

1. A method for adjusting brightness of a screen, the method comprising:
an opening instruction of opening a target application, and acquiring a current screen brightness value;
acquiring a preset screen brightness value of a target application;
calculating a brightness difference value between the current screen brightness value and a preset screen brightness value of the target application;
comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value;
if the absolute value of the brightness difference value is larger than or equal to the preset brightness adjustment threshold value, adjusting the brightness value of the current screen according to a preset brightness adjustment strategy;
the method further comprises the steps of: when a triggering operation of a user for brightness adjustment is received, acquiring a measurement distance between a face of the user and a screen, determining a target screen brightness value corresponding to the measurement distance based on a corresponding relation between a preconfigured distance and the screen brightness value, and adjusting the current screen brightness value to the target screen brightness value;
before comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value, the method further comprises: and carrying out image recognition on the current interface image to determine the image content corresponding to the current interface image, and determining a target preset brightness adjustment threshold matched with the current interface image content based on the corresponding relation between the pre-established image content and the preset brightness adjustment threshold.
2. The method of claim 1, wherein the preset brightness adjustment policy indicates an adjusted time interval and a unit brightness per adjustment.
3. The method of claim 2, wherein the adjusted time interval and the adjusted unit brightness are set according to user requirements or by default.
4. The method of claim 2, wherein adjusting the current screen brightness value according to the preset brightness adjustment policy comprises:
if the brightness difference value is a negative number, increasing the current screen brightness value according to the time interval and the unit brightness;
and if the brightness difference value is positive, reducing the current screen brightness value according to the time interval and the unit brightness.
5. The method according to claim 1, wherein after the start instruction for starting the target application obtains the current screen brightness value, the method further comprises:
collecting face images of a user;
determining the measurement distance between the face of the user and the screen;
and changing a preset screen brightness value of the target application according to the measured distance.
6. The method of claim 5, wherein the preset brightness adjustment threshold is determined based on the measured distance.
7. The method of claim 6, wherein the measured distance corresponds to the preset brightness adjustment threshold.
8. A screen brightness value adjusting apparatus, comprising:
the acquisition module is used for starting an opening instruction of the target application and acquiring a current screen brightness value and a preset screen brightness value of the target application;
the processing module is used for calculating the brightness difference between the current screen brightness value and the preset screen brightness value corresponding to the target application;
the processing module is also used for comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold value;
the processing module is further configured to adjust a current screen brightness value according to a preset brightness adjustment policy if the absolute value of the brightness difference value is greater than or equal to the preset brightness adjustment threshold;
the acquisition module is also used for acquiring the measurement distance between the face of the user and the screen when receiving the triggering operation of the user for brightness adjustment;
the processing module is further used for determining a target screen brightness value corresponding to the measured distance based on a corresponding relation between a preset distance and the screen brightness value, and adjusting the current screen brightness value to the target screen brightness value;
before comparing the absolute value of the brightness difference value with a preset brightness adjustment threshold, the processing module is further configured to perform image recognition on the current interface image to determine image content corresponding to the current interface image, and determine a target preset brightness adjustment threshold matched with the current interface image content based on a corresponding relationship between the pre-established image content and the preset brightness adjustment threshold.
9. A terminal comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN201910336948.7A 2019-04-25 2019-04-25 Screen brightness adjustment method and device, terminal and storage medium Active CN110211549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910336948.7A CN110211549B (en) 2019-04-25 2019-04-25 Screen brightness adjustment method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910336948.7A CN110211549B (en) 2019-04-25 2019-04-25 Screen brightness adjustment method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110211549A CN110211549A (en) 2019-09-06
CN110211549B true CN110211549B (en) 2023-06-09

Family

ID=67786349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910336948.7A Active CN110211549B (en) 2019-04-25 2019-04-25 Screen brightness adjustment method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110211549B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827785B (en) * 2019-11-27 2021-04-02 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN111352604B (en) * 2020-02-13 2022-11-15 支付宝(杭州)信息技术有限公司 Screen brightness adjusting method and device and computer readable storage medium
TWI721808B (en) * 2020-03-04 2021-03-11 和碩聯合科技股份有限公司 Luminance compensation method
CN113571026A (en) * 2020-04-29 2021-10-29 华为技术有限公司 Screen brightness calibration method, screen brightness calibration device and electronic equipment
CN111654961A (en) * 2020-06-22 2020-09-11 四川艾贝斯科技发展有限公司 Street lamp brightness monitoring method for street lamp system
CN111857484B (en) * 2020-07-28 2022-02-08 维沃移动通信有限公司 Screen brightness adjusting method and device, electronic equipment and readable storage medium
CN112954285B (en) * 2021-02-08 2023-01-24 青岛海信激光显示股份有限公司 Display method of projection picture and laser projection equipment
CN114138218B (en) * 2021-11-30 2024-02-13 北京达佳互联信息技术有限公司 Content display method and content display device
CN114327141B (en) * 2021-12-29 2023-06-30 深圳市华星光电半导体显示技术有限公司 Data processing method, device, display panel and storage medium
CN117116203A (en) * 2022-08-29 2023-11-24 深圳市Tcl云创科技有限公司 Screen brightness adjustment method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007178837A (en) * 2005-12-28 2007-07-12 Matsushita Electric Ind Co Ltd Organic el display apparatus
CN101183517A (en) * 2007-12-07 2008-05-21 深圳华为通信技术有限公司 Method, device and terminal for regulating brightness of LCD on terminal equipment
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN108063901A (en) * 2017-12-27 2018-05-22 努比亚技术有限公司 A kind of image-pickup method, terminal and computer readable storage medium
CN108228852A (en) * 2018-01-10 2018-06-29 上海展扬通信技术有限公司 The method, apparatus and computer readable storage medium of electron album cover generation
CN108616649A (en) * 2018-03-23 2018-10-02 北京京东尚科信息技术有限公司 The display control method and device of electronic equipment
CN108810264A (en) * 2018-05-29 2018-11-13 努比亚技术有限公司 A kind of brightness adjusting method and terminal, computer readable storage medium
CN109326244A (en) * 2018-10-15 2019-02-12 深圳市泰衡诺科技有限公司 Screen luminance adjustment method, device and terminal device
WO2019051655A1 (en) * 2017-09-13 2019-03-21 深圳传音通讯有限公司 Screen brightness adjustment method, and terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002341843A (en) * 2001-05-11 2002-11-29 Nanao Corp Display device and image display system
US9892714B2 (en) * 2012-06-28 2018-02-13 Lenovo (Singapore) Pte. Ltd. Brightness control method, apparatus and program product
CN103051777A (en) * 2012-12-04 2013-04-17 北京百度网讯科技有限公司 Method and device for controlling mobile terminal screen brightness and mobile terminal
CN103873700A (en) * 2012-12-11 2014-06-18 联想(北京)有限公司 State switching method and device
US10015863B2 (en) * 2014-05-28 2018-07-03 Hewlett-Packard Development Company, L.P. Changing screen brightness of a computing device
EP3035656B1 (en) * 2014-12-18 2021-08-04 Samsung Electronics Co., Ltd. Method and apparatus for controlling an electronic device
US9754555B2 (en) * 2015-08-06 2017-09-05 Mediatek Inc. Method for adjusting display of electronic device and electronic device capable of adjusting display
CN106681609B (en) * 2016-12-15 2019-01-18 珠海格力电器股份有限公司 A kind of terminal device screen luminance adjustment method, device and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007178837A (en) * 2005-12-28 2007-07-12 Matsushita Electric Ind Co Ltd Organic el display apparatus
CN101183517A (en) * 2007-12-07 2008-05-21 深圳华为通信技术有限公司 Method, device and terminal for regulating brightness of LCD on terminal equipment
WO2019051655A1 (en) * 2017-09-13 2019-03-21 深圳传音通讯有限公司 Screen brightness adjustment method, and terminal
CN107799093A (en) * 2017-12-08 2018-03-13 深圳市金立通信设备有限公司 Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN108063901A (en) * 2017-12-27 2018-05-22 努比亚技术有限公司 A kind of image-pickup method, terminal and computer readable storage medium
CN108228852A (en) * 2018-01-10 2018-06-29 上海展扬通信技术有限公司 The method, apparatus and computer readable storage medium of electron album cover generation
CN108616649A (en) * 2018-03-23 2018-10-02 北京京东尚科信息技术有限公司 The display control method and device of electronic equipment
CN108810264A (en) * 2018-05-29 2018-11-13 努比亚技术有限公司 A kind of brightness adjusting method and terminal, computer readable storage medium
CN109326244A (en) * 2018-10-15 2019-02-12 深圳市泰衡诺科技有限公司 Screen luminance adjustment method, device and terminal device

Also Published As

Publication number Publication date
CN110211549A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110211549B (en) Screen brightness adjustment method and device, terminal and storage medium
US10750007B2 (en) Method and device for preventing terminal from being inadvertently touched
US11379960B2 (en) Image processing method, image processing apparatus, and wearable device
WO2017161867A1 (en) Screen brightness adjustment method and apparatus, and intelligent terminal
US9684373B2 (en) Apparatus and method for automatic calibration of gaze detection
EP3079010A1 (en) Photographing method for dual-camera device and dual-camera device
US20170345393A1 (en) Electronic device and eye protecting method therefor
EP3584740B1 (en) Method for detecting biological feature data, biological feature recognition apparatus and electronic terminal
US10776646B2 (en) Identification method and apparatus and computer-readable storage medium
EP3143477A1 (en) System and method for providing haptic feedback to assist in capturing images
KR101906748B1 (en) Iris image acquisition method and apparatus, and iris recognition device
CN107690804B (en) Image processing method and user terminal
US20170277258A1 (en) Method for adjusting screen luminance and electronic device
US20130308835A1 (en) Mobile Communication Device with Image Recognition and Method of Operation Therefor
KR20160038460A (en) Electronic device and control method of the same
CN111445413B (en) Image processing method, device, electronic equipment and storage medium
US20190026526A1 (en) Pressure determination method and device and fingerprint recognition method and device
JP2014142851A (en) Electronic apparatus, line-of-sight input program, and line-of-sight input method
EP3761627A2 (en) Photographing control method and apparatus
CN110618852B (en) View processing method, view processing device and terminal equipment
JPWO2010116478A1 (en) Image processing apparatus, image processing method, and image processing program
WO2021046793A1 (en) Image acquisition method and apparatus, and storage medium
US20100046936A1 (en) Photographing control method and apparatus using strobe
CN111083386A (en) Image processing method and electronic device
CN112351271A (en) Camera shielding detection method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant