CN112927641B - Screen brightness adjusting method and device, terminal equipment and storage medium - Google Patents
Screen brightness adjusting method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN112927641B CN112927641B CN201911243729.0A CN201911243729A CN112927641B CN 112927641 B CN112927641 B CN 112927641B CN 201911243729 A CN201911243729 A CN 201911243729A CN 112927641 B CN112927641 B CN 112927641B
- Authority
- CN
- China
- Prior art keywords
- information
- brightness
- light source
- ambient brightness
- brightness information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000001514 detection method Methods 0.000 claims description 38
- 230000036544 posture Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000007613 environmental effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005358 geomagnetic field Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Controls And Circuits For Display Device (AREA)
- Telephone Function (AREA)
Abstract
The disclosure relates to a method and a device for adjusting screen brightness, a terminal device and a storage medium. The method comprises the following steps: acquiring a brightness model of a current space of terminal equipment; determining the relative position between the terminal equipment and the light source in the current space; based on the relative position between the terminal equipment and the light source in the current space and the brightness model, compensation information is obtained; compensating the first ambient brightness information detected by the terminal equipment by using the compensation information to obtain compensated second ambient brightness information; and adjusting the screen brightness of the terminal equipment based on the second environment brightness information. Through the method and the device, the screen brightness can be accurately adjusted, and the user experience is improved.
Description
Technical Field
The disclosure relates to the technical field of information processing, and in particular relates to a method and a device for adjusting screen brightness, a terminal device and a storage medium.
Background
The terminal device is provided with a Light Sensor (Light Sensor), and the measured value of the Light Sensor can reflect the ambient brightness information in the current space. Typically, the terminal device adjusts the screen brightness of the terminal device according to the measured value of the light sensor.
Since the photo sensor has a detection angle of view, which can reflect only the ambient light brightness information within the detection angle of view, there is a problem in that the accuracy of adjusting the screen brightness of the terminal device by the measurement value of the photo sensor is poor in that the measurement value of the photo sensor cannot accurately reflect the ambient light brightness information in the case where the detection angle of view is not within the detection angle of view.
Disclosure of Invention
The disclosure provides a method and a device for adjusting screen brightness, terminal equipment and a storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a method for adjusting screen brightness, including:
acquiring a brightness model of a current space of terminal equipment;
determining the relative position between the terminal equipment and the light source in the current space;
based on the relative position between the terminal equipment and the light source in the current space and the brightness model, compensation information is obtained;
compensating the first ambient brightness information detected by the terminal equipment by using the compensation information to obtain compensated second ambient brightness information;
and adjusting the screen brightness of the terminal equipment based on the second environment brightness information.
In one embodiment, the obtaining the brightness model of the space where the terminal device is currently located includes:
Detecting the gesture information of the terminal equipment;
detecting the environment brightness information of the terminal equipment in different postures;
and generating a brightness model of the current space of the terminal equipment according to the gesture information and the environment brightness information.
In one embodiment, the generating a brightness model of the space where the terminal device is currently located according to the gesture information and the ambient brightness information includes:
according to the gesture information and the detection time of the environment brightness information, determining the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane;
according to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of a second plane, wherein the second plane is perpendicular to the first plane;
and generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
In one embodiment, the obtaining compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model includes:
determining light source type information corresponding to the light source based on the environment brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
inquiring a compensation model corresponding to the light source type information based on the light source type information;
and determining the compensation information based on the relative position between the terminal equipment and the light source and the compensation model.
In one embodiment, the determining, based on the ambient brightness information in the brightness model, the light source type information corresponding to the light source includes:
obtaining maximum ambient brightness information and minimum ambient brightness information in the brightness model;
and determining brightness type information of the light source based on the maximum ambient brightness information and the minimum ambient brightness information.
In one embodiment, the determining the brightness type information of the light source based on the maximum ambient brightness information and the minimum ambient brightness information includes:
When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is smaller than or equal to a first threshold value, determining the brightness type of the light source as a first brightness type;
and when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is larger than the first threshold value, determining that the brightness type of the light source is a second brightness type.
In one embodiment, the determining, based on the ambient brightness information in the brightness model, the light source type information corresponding to the light source includes:
determining half-wave angle information of the light source based on the maximum ambient brightness information in the brightness model;
and determining the luminous angle type information of the light source based on the half-wave angle information of the light source.
In one embodiment, the determining the information of the type of the light emitting angle of the light source based on the information of the half-wave angle of the light source includes:
when the half-wave angle of the light source is smaller than or equal to a second threshold value, determining that the light-emitting angle type of the light source is a first light-emitting angle type;
and when the half-wave angle of the light source is larger than the second threshold value, determining that the light-emitting angle type of the light source is a second light-emitting angle type.
In one embodiment, the compensating the first ambient brightness information detected by the terminal device by using the compensation information, to obtain compensated second ambient brightness information, includes:
and when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is out of a preset range, adjusting the first ambient brightness information based on the compensation information and obtaining the second ambient brightness information.
In one embodiment, the method further comprises:
and when the difference between the first ambient brightness information detected by the terminal equipment and third ambient brightness information obtained based on the brightness model of the relative position query is within a preset range, taking the maximum ambient brightness information in the brightness model as the first ambient brightness information, and determining the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
In one embodiment, the adjusting the first ambient brightness information and obtaining the second ambient brightness information based on the compensation information includes:
inquiring the brightness model based on the relative position between the terminal equipment and the light source when detecting the first environment brightness information to obtain fourth environment brightness information corresponding to the relative position;
Comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient;
and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain the second ambient brightness information.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for adjusting brightness, the apparatus comprising:
the model determining module is configured to acquire a brightness model of a space where the terminal equipment is currently located;
a position determining module configured to determine a relative position between the terminal device and a light source in the current space;
the first acquisition module is configured to acquire compensation information based on the relative position between the terminal equipment and the light source in the current space and the brightness model;
the second acquisition module is configured to compensate the first environment brightness information detected by the terminal equipment by using the compensation information, and acquire compensated second environment brightness information;
and the adjusting module is configured to adjust the screen brightness of the terminal equipment based on the second environment brightness information.
In one embodiment, the model determination module includes:
The detection module is configured to detect the attitude information of the terminal equipment and detect the environment brightness information of the terminal equipment under different attitudes;
and the generating module is configured to generate a brightness model of the space where the terminal equipment is currently located according to the gesture information and the environment brightness information.
In one embodiment, the generating module is specifically configured to determine, according to the gesture information and the detection time of the ambient brightness information, the ambient brightness information when the terminal device forms different angles with the vertical direction of the first plane;
according to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of a second plane, wherein the second plane is perpendicular to the first plane;
and generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
In one embodiment, a first acquisition module includes:
The third acquisition module is configured to determine light source type information corresponding to the light source based on the environment brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
the query module is configured to query a compensation model corresponding to the light source type information based on the light source type information;
and a fourth acquisition module configured to determine the compensation information based on the compensation model and a relative position between the terminal device and the light source.
In one embodiment, the third acquisition module includes:
a fifth obtaining module configured to obtain maximum ambient brightness information and minimum ambient brightness information in the brightness model;
and a sixth acquisition module configured to determine luminance type information of the light source based on the maximum ambient luminance information and the minimum ambient luminance information.
In one embodiment, the sixth obtaining module is specifically configured to determine that the brightness type of the light source is the first brightness type when a ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is less than or equal to a first threshold; and when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is larger than the first threshold value, determining that the brightness type of the light source is a second brightness type.
In one embodiment, the third acquisition module includes:
a seventh acquisition module configured to determine half-wave angle information of the light source based on maximum ambient brightness information in the brightness model;
an eighth acquisition module configured to determine light emission angle type information of the light source based on half-wave angle information of the light source.
In one embodiment, the eighth obtaining module is specifically configured to determine that the light emitting angle type of the light source is the first light emitting angle type when the half-wave angle of the light source is less than or equal to the second threshold; and when the half-wave angle of the light source is larger than the second threshold value, determining that the light-emitting angle type of the light source is a second light-emitting angle type.
In one embodiment, the third obtaining module is specifically configured to adjust the first ambient brightness information and obtain the second ambient brightness information based on the compensation information when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model queried by the relative position is outside a preset range.
In one embodiment, the third obtaining module is further specifically configured to take, when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model queried by the relative position is within a preset range, maximum ambient brightness information in the brightness model as the first ambient brightness information, and determine the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
In one embodiment, the third obtaining module is specifically configured to query the brightness model to obtain fourth ambient brightness information corresponding to the relative position based on the relative position between the terminal device and the light source when the terminal device detects the first ambient brightness information; comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient; and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain the second ambient brightness information.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of adjusting screen brightness as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium comprising:
the instructions in the storage medium, when executed by the processor of the terminal device, enable the terminal device to perform the method of adjusting screen brightness as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
According to the embodiment of the disclosure, the detected first ambient brightness information is compensated by determining the brightness model of the current space and the current position of the terminal equipment without changing the hardware condition of the existing light sensor, so that the accurate ambient brightness information of the terminal equipment can be obtained, further, the adjustment of the screen brightness is more accurate, and the user experience is improved. And, compared with the existing method of detecting the ambient brightness information in the space by arranging a plurality of light sensors, the method of adjusting the screen brightness by software provided by the embodiment of the disclosure can pointedly compensate the problem of limited view angle range on the hardware of the light sensors, meanwhile, the embodiment of the disclosure does not need to additionally add the light sensors and other hardware on the terminal equipment to compensate the view angle, can simplify the structural design of the terminal equipment, reduce the number of the light sensors in the terminal equipment, is suitable for the miniaturized development of the terminal equipment, and simultaneously saves the manufacturing cost of the terminal equipment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic view of a detection view angle of a terminal device according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a location between a terminal device, a user, and a light source, as shown in an embodiment of the present disclosure.
Fig. 3 is a flowchart of a method for adjusting screen brightness according to an embodiment of the disclosure.
Fig. 4 is a schematic diagram illustrating a position between a terminal device and a light source according to an embodiment of the disclosure.
Fig. 5 is a second schematic diagram of a position between a terminal device and a light source according to an embodiment of the disclosure.
Fig. 6 is a schematic diagram of a reference coordinate system shown in an embodiment of the present disclosure.
Fig. 7 is a schematic diagram showing a curve corresponding to a luminance model according to an exemplary embodiment.
Fig. 8 is a schematic diagram one of a corresponding graph of a compensation model, according to an example embodiment.
FIG. 9 is a graph II illustrating a compensation model according to an exemplary embodiment.
FIG. 10 is a diagram III illustrating a corresponding graph of a compensation model, according to an example embodiment.
FIG. 11 is a graph diagram four corresponding to a compensation model, according to an example embodiment.
Fig. 12 is a flowchart of a second method for adjusting screen brightness according to an embodiment of the disclosure.
Fig. 13 is a diagram of a screen brightness adjusting apparatus according to an embodiment of the present disclosure.
Fig. 14 is a second diagram of a screen brightness adjusting apparatus according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
As shown in fig. 1, an opening is provided in a housing of the terminal device, a light sensor is provided in the housing and at the opening, ambient light is incident to the light sensor through the opening, and the light sensor detects its ambient brightness information based on the incident ambient light. The detection angle of view of the photosensor is in the range a.
As shown in fig. 2, the light source 201 is disposed in the direction of the back surface 204 of the display surface of the terminal device, the user 205 is located in the direction of the display surface 202 of the terminal device, and the light sensor 203 is disposed on the plane of the display surface 202 of the terminal device.
In actually setting the brightness of the screen, the brightness of the screen needs to be adjusted to match the brightness perceived by the user. Since the light sensor is opposite to the light source and the user is opposite to the light source, the light sensor can only collect the light reflected by the user in the range of the angle of view a, and the collected light is not the light actually perceived by the user, so that the detection value of the light sensor is smaller than the brightness value actually perceived by the user. It can be seen that the screen brightness is directly adjusted by the detection value of the light sensor, and the adjusted screen brightness cannot meet the screen brightness actually required by the user.
In addition, the existing method is that two light sensors are arranged on the terminal equipment, one light sensor is arranged on the side where the display surface of the terminal equipment is located, and the other light sensor is arranged on the side where the back surface of the display surface of the terminal equipment, so that the problem that the view angle of the light sensor is limited is solved by adding additional light sensors, and the problems that the space of the terminal equipment is occupied, and the design difficulty and the cost are increased are solved.
Based on this, the embodiment of the present disclosure proposes a method for adjusting screen brightness, fig. 3 is a flowchart of a method for adjusting screen brightness shown in the embodiment of the present disclosure, and as shown in fig. 3, the method applied to a terminal device includes the following steps:
S11, acquiring a brightness model of a current space of the terminal equipment;
s12, determining the relative position between the terminal equipment and the light source in the current space;
s13, based on the relative position between the terminal equipment and the light source in the current space and a brightness model, compensation information is obtained;
s14, compensating the first environment brightness information detected by the terminal equipment by using the compensation information to obtain compensated second environment brightness information;
s15, adjusting the screen brightness of the terminal equipment based on the second environment brightness information.
The terminal device is a terminal device provided with a screen, and the terminal device can be a wearable electronic device and a mobile terminal, wherein the mobile terminal comprises a mobile phone, a notebook and a tablet personal computer, and the wearable electronic device comprises an intelligent watch.
The terminal device stores a brightness model. The brightness model at least comprises: and the terminal equipment and the different relative positions of the light sources in the current space correspond to the ambient brightness information. Determining a brightness model of a space where the terminal equipment is currently located, including: reading brightness model information matched with the current space from a memory to obtain a brightness model; or when the brightness model matched with the current space is not in the memory, generating the brightness model of the current space of the terminal equipment according to the environment brightness information corresponding to different relative positions between the terminal equipment and the light source in the current space.
In the embodiment of the disclosure, the position of the terminal device in the current space changes in real time, for example, when a user stands, the position between the terminal device and the light source is a position; the position between the terminal device and the light source is another position when the user is lying down. The ambient brightness information of the terminal device is different at different positions, for example, the ambient brightness value detected by the terminal device at a position close to the light source is higher than the ambient brightness value detected by the terminal device at a position far from the light source. Therefore, in adjusting the screen brightness, it is necessary to determine the relative position between the terminal device and the light source and to accurately determine the compensation information based on the relative position between the terminal device and the light source.
It should be noted that, the relative positions between the terminal device and the light source include: the angle of the terminal device to the light source in the horizontal plane and/or the angle of the terminal device to the light source in the vertical plane.
As shown in fig. 4, the angle of the terminal device 101 to the light source 102 in the horizontal plane is α. As shown in fig. 5, the angle of the terminal device 101 to the light source 102 in the vertical plane is β.
It should be noted that, when the ambient light in the space where the terminal device is currently located is complex, that is, when there are multiple light sources or different types of light sources in the space, the detection value of the light sensor on the terminal device cannot accurately reflect the ambient brightness information outside the detection view angle range. Therefore, the detected first environmental information of the terminal device needs to be compensated by the compensation information to obtain compensated second environmental brightness information, and the screen brightness information of the terminal device is adjusted by using the second environmental brightness information.
Thus, on one hand, the embodiment of the disclosure considers that the change of the position, such as the gesture, of the terminal equipment can influence the detected ambient brightness information, so that the embodiment of the disclosure acquires the compensation information through the relative position between the terminal equipment and the light source, can adapt to the characteristic that the position between the terminal equipment and the light source is continuously changed, can obtain accurate compensation information, and improves the adjustment precision of the screen brightness; on the other hand, the embodiment of the disclosure adjusts the brightness of the terminal device based on the compensated second environment brightness information, and the screen brightness of the terminal device is not directly adjusted through the detected first environment brightness information, so that the screen brightness adjustment is more accurate, the perception of a user is more met, and the user experience is improved.
Meanwhile, compared with the existing method that a plurality of light sensors are arranged to detect the ambient light information in the space, for example, a light sensor is arranged on the surface where the display surface is located, and a light sensor is arranged on the back surface of the display surface, the screen brightness is adjusted in a software mode, which is provided by the embodiment of the disclosure, does not need to additionally increase hardware on the terminal equipment, the structural design of the terminal equipment can be simplified, the number of the light sensors in the terminal equipment is reduced, the method is suitable for miniaturized development of the terminal equipment, and the manufacturing cost of the terminal equipment is also saved.
In one embodiment, obtaining a brightness model of a space in which a terminal device is currently located includes:
detecting the gesture information of the terminal equipment;
detecting the environment brightness information of the terminal equipment in different postures;
and generating a brightness model of the current space of the terminal equipment according to the gesture information and the environment brightness information.
It should be noted that, according to the embodiment of the present disclosure, whether the current space where the terminal device enters has already established a brightness model may be determined according to the positioning information of the terminal device; when the current space where the terminal equipment enters is not provided with a brightness model, outputting prompt information established by the brightness model; and detecting the gesture information of the terminal based on the prompt information.
In the embodiment of the disclosure, the terminal device may determine the positioning information of the terminal device through a WIFI signal, a mobile signal or bluetooth positioning in the space where the terminal device is located. For example, the terminal device is covered with the WIFI signal, the terminal device is strong in the WIFI signal when being close to the position of the WIFI signal transmitter, the terminal device is weak in the WIFI signal when being far away from the position of the WIFI signal transmitter, and the position of the transmitter of the WIFI signal in the space is fixed, so that the terminal device can be positioned based on the strength of the WIFI signal.
The light sources in different spaces may be different, and the ambient brightness information detected by the terminal device under the different light sources is different, so that the brightness models in the different spaces are different. Further, when the terminal device enters the current space, it is necessary to determine whether the current space of the terminal device has already been established with the luminance model. If the brightness model is already established in the current space, the brightness model can be directly inquired and obtained in the memory in the process of adjusting the brightness of the screen; if the terminal equipment enters the current space and does not build the brightness model, the brightness model needs to be built in the process of adjusting the brightness of the screen, and at the moment, the terminal equipment can output prompt information built by the brightness model and generate the brightness model.
It should be noted that, entering the current space where the terminal device is located does not establish the brightness model includes: the terminal equipment enters the current space for the first time, and then a brightness model is not built in the current space. Therefore, in the process of determining that the terminal equipment enters the current space and the brightness model is not built, whether the terminal equipment enters the current space for the first time can be judged.
When the terminal device does not enter the current space for the first time and the brightness model of the current space is stored in the memory, the brightness model can be directly inquired and obtained in the memory. When the terminal equipment enters the current space for the first time, the fact that the current space of the terminal equipment does not establish a brightness model is indicated, so that prompt information established by the brightness model needs to be further output, and the brightness model is generated.
The prompting information established by the output brightness model comprises: and displaying a prompt box on the screen, and displaying prompt information in the prompt box. The prompt information is used to prompt the user to rotate the terminal device to calibrate the terminal device.
The prompt information comprises: the embodiment of the disclosure is not limited by the prompt information of changing the gesture of the terminal device or the prompt information of rotating the terminal device. In the process of rotating the terminal equipment, the terminal equipment can acquire the environment brightness information under different postures.
The attitude of the terminal device may include an angle between the terminal device and a vertical direction of a first plane, and/or an angle between the terminal device and a vertical direction of a second plane, the first plane being perpendicular to the second plane.
Illustratively, the first plane may be a plane perpendicular to the ground, and the second plane may be a plane parallel to the ground.
The gesture detection device for detecting gesture information may include a rotation vector sensor that is a sensor of one or more of an acceleration sensor, a magnetic field sensor, and a gyro sensor of the terminal device. The brightness detection means for detecting the ambient brightness information may include a light sensor, and embodiments of the present disclosure are not limited.
The rotation vector of the rotation vector sensor may represent the rotation angle of the terminal device by a combination of the rotation angle and the rotation axis. The rotating shaft includes: an X axis, a Y axis and a Z axis. Wherein, the X axis is defined by a vector product Y X Z, and the X axis is tangent to the ground at the current position of the terminal equipment and points to the east; the Y axis is tangent to the ground at the current position of the terminal equipment and points to the north pole of the geomagnetic field; the direction of the Z-axis points to the sky and is perpendicular to the ground.
Illustratively, as shown in fig. 6, the rotation axis of the rotation vector sensor and the rotation vector direction may be defined by an orthogonal basis to constitute a reference coordinate system xyz.
Assuming that the terminal device rotates counterclockwise about a certain rotation axis by an angle θ through the O point, a quaternion q corresponding to a triangular form of the terminal device in the reference coordinate system is formula (1):
q=cos(θ/2)+sin(θ/2)cosα*i+sin(θ/2)cosβ*j+sin(θ/2)cosγ*k (1)
wherein alpha, beta and gamma are included angles between the rotation axis and each axis of the reference coordinate system, and i, j and k are three imaginary parts corresponding to quaternions.
In the embodiment of the disclosure, after generating the brightness model, the terminal device stores the brightness model. A model storage database can be specially arranged on the terminal equipment and used for obtaining a corresponding brightness model by directly inquiring the model storage database. The storage database may be provided in a readable memory of the terminal device or in a readable and writable memory of the terminal device, and embodiments of the present disclosure are not limited.
It can be appreciated that, on the one hand, the embodiment of the disclosure can directly utilize the sensor on the terminal device to detect the gesture and the environmental brightness information of the terminal device to determine the brightness model, and the additional detection device is not required, so that the space utilization rate of the terminal device can be improved, and the design cost of the additional detection device can be reduced. On the other hand, the embodiment of the disclosure considers that the current gesture of the terminal device and the positions between the terminal device and the light source under different gestures can influence the detected environment brightness information, so that the brightness model generated based on the gesture information and the environment brightness information of the terminal can provide accurate data for the follow-up compensation information determination based on the brightness model. Meanwhile, when the terminal equipment enters the same space, the brightness model information in the space can be obtained directly by inquiring the model storage database, and the brightness model is not required to be repeatedly built, so that the execution steps required for adjusting the brightness of the screen can be reduced, and the adjustment efficiency is improved.
In one embodiment, generating a brightness model of a space where the terminal device is currently located according to the gesture information and the environment brightness information includes:
according to the gesture information and the detection time of the environment brightness information, determining the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane;
According to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane, wherein the second plane is perpendicular to the first plane;
and generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
In the embodiment of the disclosure, the gesture detection device and the brightness detection device in the terminal device belong to different detection devices of the terminal device, so that when the terminal device is determined to have the brightness information under different gesture information, the gesture detection device and the brightness detection device need to be time-synchronized, that is, the gesture information detected by the gesture detection device at the same moment corresponds to the environment brightness information detected by the brightness detection device.
Wherein, the corresponding of the gesture information detected by the gesture detection device at the same moment and the environment brightness information detected by the brightness detection device comprises: the angle of the terminal equipment at the same moment in the vertical direction of the second plane is corresponding to the ambient brightness information; and the angle of the terminal equipment at the same moment in the vertical direction of the first plane is corresponding to the ambient brightness information.
It should be noted that the luminance model includes the ambient luminance information when the terminal device forms different angles with the vertical direction of the first plane, and the ambient luminance information when the terminal device forms different angles with the vertical direction of the second plane. It is assumed that an angle between the terminal device and a vertical direction of the first plane may be referred to as up-down; the angle between the terminal device and the perpendicular to the second plane may be referred to as left and right.
As shown in fig. 7, the abscissa is the angle, and the ordinate is the ambient brightness. The curve corresponding to the solid line is the ambient brightness information when the terminal device forms different angles with the vertical direction of the first plane. The curve corresponding to the dotted line is the ambient brightness information when different angles are formed between the terminal device and the vertical direction of the second plane.
In another embodiment, the reference coordinate system of the terminal device may be a reference coordinate system formed by a rotation axis and a rotation vector direction in the rotation vector sensor of the terminal device. When the first plane is a plane corresponding to the Z-axis direction and the second plane is a plane including X and Y, the ambient brightness information when the terminal device forms different angles with the vertical direction of the first plane may include: the terminal equipment rotates the ambient brightness information when 360 degrees along the Z axis; the ambient brightness information when the terminal device forms different angles with the vertical direction of the second plane may include: the terminal device is rotated 360 degrees along the straight line in the plane of X and Y.
In another embodiment, the brightness model may also be determined according to the ambient brightness information detected by the terminal device when the user rotates around the space for one revolution, and in combination with the positioning of the terminal device in the space.
The terminal device is a mobile phone, the shell of the mobile phone is a rectangular shell, the short side setting direction of the mobile phone is parallel to the ground, and the long side setting direction of the mobile phone is perpendicular to the ground. In the actual brightness model generation process, the brightness model can be directly rotated 360 degrees along the short side setting direction of the shell in the terminal equipment, and the environment brightness corresponding to the rotation angle at the moment is recorded; the terminal device can also directly rotate 360 degrees along the long side setting direction of the shell in the terminal device, and the ambient brightness corresponding to the rotation angle at the moment is recorded. Thus, through the mode, the environment brightness information obtained by rotation along two vertical directions can be detected, and the brightness model can be conveniently and quickly obtained.
In one embodiment, obtaining compensation information based on a relative position between the terminal device and the light source in the current space and the brightness model includes:
determining light source type information corresponding to the light source based on the ambient brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
Inquiring a compensation model corresponding to the light source type information based on the light source type information;
and determining compensation information based on the relative position between the terminal equipment and the light source and the compensation model.
In the embodiment of the disclosure, the ambient brightness information in the brightness model is measured when the terminal device is at different positions under the same light source. Therefore, the luminance type information and the light emission angle type information of the light source can be determined based on the ambient luminance information.
Illustratively, the brightness type of the light source includes a low brightness type having a brightness below a first threshold value or a high brightness type having a brightness above a first threshold value, and the light emission angle type of the light source includes a wide angle type having a brightness below a second threshold value or a narrow angle type having a brightness above a second threshold value, and the embodiments of the present disclosure are not limited.
It will be appreciated that the brightness corresponding to the low-light type light source is lower than the brightness corresponding to the high-light type light source; the wide angle type light source corresponds to an angle greater than the narrow angle type light source.
In another embodiment, the relative position between the light source and the terminal device may also be determined based on ambient brightness information in the brightness model.
For example, assuming that the terminal device is a mobile phone, the housing of the mobile phone is a rectangular housing, the short side setting direction of the mobile phone is parallel to the ground, and the long side setting direction of the mobile phone is perpendicular to the ground. If the curve corresponding to the ambient brightness information changes steadily and slowly when the mobile phone rotates along the short side setting direction of the shell, and the brightness value corresponding to the ambient brightness information changes greatly and steeply when the mobile phone rotates along the long side setting direction of the shell, the light source is indicated to be arranged at the position right above or right above the mobile phone, and the setting position of the light source is higher.
It should be noted that, under different light source types, the brightness value of the user perceived ambient light is different. For example, in the case where the light source type is a low-luminance type, the brightness value of the user-perceived ambient light may be 40, and in the case where the light source type is a high-luminance type, the brightness value of the user-perceived ambient light may be 400. Accordingly, embodiments of the present disclosure may query a compensation model corresponding to light source type information based on the light source type information, and determine compensation information based on the compensation model.
In the embodiment of the disclosure, the compensation model is pre-stored on the terminal device, and in the process of obtaining the compensation model, a third threshold value is spaced between the terminal device and the user, and the compensation model is obtained through experimental simulation. The compensation model is used for representing the corresponding relation between the gesture of the terminal equipment and the compensation information under different light source types.
The third threshold is in a range of 10 cm to 20 cm, and the terminal device includes, but is not limited to, a mobile phone, where the size of the mobile phone may be 6 inches or 7 inches, which is not limited in the embodiments of the present disclosure.
The compensation information may include, but is not limited to, a ratio between a user perceived brightness value and a maximum ambient brightness value of the terminal device in space.
It should be noted that the compensation model corresponds to a light source type, and different light source types correspond to different compensation models.
For example, when the luminance type of the light source includes a low-luminance type or a high-luminance type, and the light emission angle type of the light source includes a wide-angle type or a narrow-angle type, the light source types of the terminal device include four light source types of a high-luminance wide-angle type, a high-luminance narrow-angle type, a low-luminance wide-angle type, and a low-luminance narrow-angle type. Correspondingly, the compensation models comprise four compensation models corresponding to the highlight wide angle type, a compensation model corresponding to the highlight narrow angle type, a compensation model corresponding to the low highlight wide angle type and a compensation model corresponding to the low highlight narrow angle type.
As shown in fig. 8, a compensation model corresponding to the highlight wide angle type is shown. As shown in fig. 9, a compensation model corresponding to the type of the highlight narrow angle is shown. As shown in fig. 10, a compensation model corresponding to the low-brightness wide-angle type is shown. As shown in fig. 11, a compensation model corresponding to the low-brightness narrow-angle type is shown.
In the compensation model corresponding to fig. 8 to 11, the abscissa is the angle, and the ordinate is the ratio between the maximum ambient brightness value and the user perceived ambient brightness value. The curve corresponding to the solid line is the curve corresponding to the terminal equipment when different angles are formed between the terminal equipment and the vertical direction of the first plane, and the curve corresponding to the dotted line is the curve corresponding to the terminal equipment when different angles are formed between the terminal equipment and the vertical direction of the second plane.
It can be understood that the corresponding compensation model is queried according to the type information of the light source, and the corresponding compensation information is determined based on different compensation models, so that more accurate compensation information can be obtained, and the brightness of the screen can be accurately adjusted later.
In one embodiment, determining light source type information corresponding to a light source based on ambient brightness information in a brightness model includes:
obtaining maximum ambient brightness information and minimum ambient brightness information in a brightness model;
based on the maximum ambient brightness information and the minimum ambient brightness information, brightness type information of the light source is determined.
In another embodiment, determining the brightness type information of the light source based on the maximum ambient brightness information and the minimum ambient brightness information includes:
when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is smaller than or equal to a first threshold value, determining the brightness type of the light source as a first brightness type;
and when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is larger than a first threshold value, determining that the brightness type of the light source is a second brightness type.
In the embodiment of the present disclosure, the first threshold may be set according to practical situations, for example, the first threshold may be set to 6 or 7, which is not limited by the embodiment of the present disclosure. The first luminance type may be included as a high luminance type and the second luminance may be included as a low luminance type.
When the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is larger than 6, the light source is indicated to be a highlight light source. When the ratio of the brightness value corresponding to the maximum environment brightness information to the brightness value corresponding to the minimum environment information is less than or equal to 6, the light source is indicated to be a low-brightness light source.
Illustratively, as shown in fig. 7, the solid line corresponds to a curve, the maximum ambient brightness corresponding to the solid line is 425, the minimum ambient brightness corresponding to the solid line is 75, and the ratio between the maximum ambient brightness value and the minimum ambient brightness value is greater than 6, from which the corresponding light source type is the highlight light source type.
In one embodiment, determining light source type information corresponding to a light source based on ambient brightness information in a brightness model includes:
determining half-wave angle information of the light source based on the maximum ambient brightness information in the brightness model;
and determining the luminous angle type information of the light source based on the half-wave angle information of the light source.
In an embodiment of the present disclosure, a brightness model includes: and the terminal equipment is corresponding to the first curve according to the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane. The luminance model further includes: and the terminal equipment and the vertical direction of the second plane form different angles, and the environment brightness information corresponds to the second curve.
The maximum ambient brightness information in the brightness model includes maximum ambient brightness information in the first curve or maximum ambient brightness information in the second curve region.
The half-wave angle of the light source comprises a difference value between two angles corresponding to half of the maximum ambient brightness information in the first curve or a difference value between two angles corresponding to half of the maximum ambient brightness information in the second curve.
In one embodiment, determining the light emission angle type information of the light source based on the half-wave angle information of the light source includes:
when the half-wave angle of the light source is smaller than or equal to the second threshold value, determining that the light-emitting angle type of the light source is the first light-emitting angle type;
and when the half-wave angle of the light source is larger than a second threshold value, determining that the light emitting angle type of the light source is the second light emitting angle type.
Illustratively, the second threshold may be set according to actual requirements, for example, the second threshold may be set to 60 degrees or 70 degrees, which is not limited by the embodiments of the present disclosure. The first light emitting angle type may be included as a wide angle type and the second light emitting angle may be included as a narrow angle type.
When the half-wave angle of the light source is smaller than or equal to 60 degrees, the luminous angle type of the light source is indicated to be a wide angle type; when the half-wave angle of the light source is greater than 60 degrees, it is indicated that the light emission angle type of the light source is a narrow angle type.
Illustratively, as shown in fig. 7, the maximum ambient brightness value in the curve corresponding to the solid line is 425, the half-wave angle corresponding thereto is 120 degrees, and the corresponding light source type obtained from the curve is the wide-angle light source type.
As shown in fig. 7, the size of the light emitting surface of the light source can be determined by the angle occupied by the higher luminance and the angle occupied by the lower luminance. For example, 100 degrees is high and 120 degrees is low, which means that the light emitting surface of the light source is large and the brightness is uniform.
The brightness of the light source may be determined by between the maximum ambient brightness value and the minimum ambient brightness value, for example, the maximum ambient brightness value is 400 and the minimum ambient brightness value is 40, and the corresponding light source is the light source of the same brightness.
By whether the low-to-high-light variation curve is steep or gentle, the light emission angle of the light source can be determined. For example, if the low-to-high-light variation curve is steep, it indicates that the light emission angle is small.
It should be noted that, in order to improve the efficiency of generating the luminance model by the terminal device and facilitate the subsequent determination of the speed of the light source type from the luminance model, the angular interval may be appropriately increased in the luminance model to reduce the data amount.
In one embodiment, compensating the first ambient brightness information detected by the terminal device by using compensation information to obtain compensated second ambient brightness information, including:
And when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is out of a preset range, adjusting the first ambient brightness information based on the compensation information and obtaining second ambient brightness information.
And when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is within a preset range, taking the maximum ambient brightness information in the brightness model as the first ambient brightness information, and determining the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
It should be noted that, during the actual use of the terminal device, the user may move in space, and thus the position of the terminal device in space may also change, and the light source is fixed in space. Therefore, the relative positions between the terminal device and the light source are different, and the first ambient brightness information and the third ambient brightness information detected by the terminal device are different based on the difference in the relative positions between the terminal device and the light source. Therefore, when the compensation information is used to compensate the first ambient brightness information to generate the second ambient brightness information, it is necessary to determine whether the difference between the first ambient brightness information and the third ambient brightness information is within the preset range.
When the difference between the first ambient brightness information and the third ambient brightness information is within the preset range, the position of the terminal equipment in the space is indicated to be the position corresponding to the terminal equipment in the brightness model, and the second ambient brightness information can be determined based on the maximum ambient brightness information and the compensation information in the brightness model.
When the difference between the first ambient brightness information and the third ambient brightness information is out of the preset range, the terminal equipment is indicated to move in the space, and the detected first ambient brightness information needs to be adjusted based on the compensation information to obtain second ambient brightness information.
For example, if the difference between the first ambient brightness information and the third ambient brightness information is within a preset range. For the type of light source with bright wide angle, the brightness value corresponding to the maximum ambient brightness information in the brightness model is 430lux, the angle between the terminal device and the vertical direction of the first plane is 60 degrees, and the angle between the terminal device and the vertical direction of the second plane is 60 degrees, namely, the light source is obliquely right and upper part of the terminal device. Based on the compensation model, the compensation proportion corresponding to the compensation information of the terminal equipment is 63% and 100% respectively. Therefore, the luminance value corresponding to the second ambient brightness information is the maximum ambient brightness information multiplied by the compensation ratio corresponding to the compensation information, that is, the luminance value corresponding to the second ambient brightness information is 430×63×100% =270 lux.
In one embodiment, adjusting the first ambient brightness information and obtaining the second ambient brightness information based on the compensation information includes:
inquiring a brightness model based on the relative position between the terminal equipment and the light source when detecting the first environment brightness information to obtain fourth environment brightness information corresponding to the relative position;
comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient;
and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain second ambient brightness information.
In the embodiment of the disclosure, when the difference between the first ambient brightness information and the third ambient brightness information is outside the preset range, the terminal device is indicated to move in the space. For example, the user selects standing while generating the brightness model, and later the user selects lying, thereby changing the position of the terminal device in space. Because the terminal equipment also can cause inaccuracy of screen brightness adjustment based on the maximum ambient brightness corresponding to the position in the brightness model at different positions, after the position change of the terminal equipment is changed, a compensation coefficient needs to be acquired to compensate the detected ambient brightness information of the terminal equipment with the position change.
In an embodiment of the present disclosure, comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model, the obtaining the compensation coefficient includes: and obtaining a compensation coefficient through the ratio between the brightness value corresponding to the fourth ambient brightness information and the brightness value corresponding to the maximum ambient brightness information in the brightness model.
After the compensation coefficient is obtained, the first ambient brightness information is adjusted based on the compensation information and the compensation coefficient to obtain second ambient brightness information, which comprises the following steps: determining compensated maximum ambient brightness information based on the ratio of the first ambient brightness information and the compensation coefficient; and determining second ambient brightness information based on the brightness value corresponding to the compensated maximum ambient brightness information and the compensation information.
Illustratively, if the calibration results in a curve corresponding to the solid line shown in FIG. 7, the curve corresponds to a bright wide angle type of light source. When the brightness model is generated, the terminal equipment is vertically placed, and the relative positions between the terminal equipment and the light source are 120-degree positions of an upper shaft and a lower shaft and 240-degree positions of a left shaft and a right shaft. The user selects lying down to use the terminal equipment, the relative position between the terminal equipment and the light source is up-down axis-60 degrees, and the terminal equipment rotates left and right-60 degrees, at the moment, the reading of the light sensor on the terminal equipment is 37lux, namely the brightness value corresponding to the first environment brightness information is 37lux. The compensation coefficients are 0.45 and 0.26 through the first ambient brightness information and the curve, and the brightness value corresponding to the maximum brightness information after compensation is 37/0.45/0.26=316 lux. The compensation ratio of the compensation information is 63% ×100% =63%. Then the second ambient brightness information is 316 x 63% = 200lux.
Therefore, the screen brightness of the terminal device should be adjusted according to the brightness value corresponding to the second ambient brightness information of 200lux instead of 37lux tested by the light sensor. Therefore, the brightness of the screen can be adjusted more accurately by the brightness adjusting method provided by the embodiment of the disclosure under the condition that the existing light sensor hardware is not changed, and the user experience is improved.
In order to facilitate a better understanding of the disclosed embodiments, the following examples are presented. As shown in fig. 12, the method for adjusting the brightness of the screen includes:
step S21, detecting attitude information of the terminal equipment based on the prompt information, and detecting environment brightness information of the terminal equipment in different attitudes;
s22, generating and storing a brightness model according to the attitude information and the environment brightness information;
step S23, determining light source type information corresponding to the light source based on the ambient brightness information in the brightness model;
step S24, inquiring a compensation model corresponding to the light source type information based on the light source type information;
and S25, determining compensation information based on the relative position between the terminal equipment and the light source and the compensation model.
And S26, when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is within a preset range, taking the maximum ambient brightness information in the brightness model as the first ambient brightness information, and determining the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
And step S27, when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is out of a preset range, the first ambient brightness information is adjusted based on the compensation information, and the second ambient brightness information is obtained.
Fig. 13 is a diagram of an apparatus for adjusting screen brightness according to an exemplary embodiment. Referring to fig. 13, the image acquisition apparatus includes a model determination module 1001, a position determination module 1002, a first acquisition module 1003, a second acquisition module 1004, and an adjustment module 1005, wherein,
the model determining module 1001 is configured to obtain a brightness model of a space where the terminal device is currently located;
the location determining module 1002 is configured to determine a relative location between the terminal device and the light source in the current space;
the first obtaining module 1003 is configured to obtain compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model;
the second obtaining module 1004 is configured to compensate the first ambient brightness information detected by the terminal device by using the compensation information, and obtain compensated second ambient brightness information;
The adjusting module 1005 is configured to adjust the screen brightness of the terminal device based on the second ambient brightness information.
In one embodiment, the model determination module includes:
the detection module is configured to detect the attitude information of the terminal equipment and detect the environment brightness information of the terminal equipment under different attitudes;
and the generating module is configured to generate a brightness model of the space where the terminal equipment is currently located according to the gesture information and the environment brightness information.
In one embodiment, the generating module is specifically configured to determine, according to the gesture information and the detection time of the ambient brightness information, the ambient brightness information when the terminal device forms different angles with the vertical direction of the first plane;
according to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of a second plane, wherein the second plane is perpendicular to the first plane;
and generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
In one embodiment, a first acquisition module includes:
the third acquisition module is configured to determine light source type information corresponding to the light source based on the environment brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
the query module is configured to query a compensation model corresponding to the light source type information based on the light source type information;
and a fourth acquisition module configured to determine the compensation information based on the compensation model and a relative position between the terminal device and the light source.
In one embodiment, the third acquisition module includes:
a fifth obtaining module configured to obtain maximum ambient brightness information and minimum ambient brightness information in the brightness model;
and a sixth acquisition module configured to determine luminance type information of the light source based on the maximum ambient luminance information and the minimum ambient luminance information.
In one embodiment, the sixth obtaining module is specifically configured to determine that the brightness type of the light source is the first brightness type when a ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is less than or equal to a first threshold; and when the ratio between the brightness value corresponding to the maximum environment brightness information and the brightness value corresponding to the minimum environment information is larger than the first threshold value, determining that the brightness type of the light source is a second brightness type.
In one embodiment, the third acquisition module includes:
a seventh acquisition module configured to determine half-wave angle information of the light source based on maximum ambient brightness information in the brightness model;
an eighth acquisition module configured to determine light emission angle type information of the light source based on half-wave angle information of the light source.
In one embodiment, the eighth obtaining module is specifically configured to determine that the light emitting angle type of the light source is the first light emitting angle type when the half-wave angle of the light source is less than or equal to the second threshold; and when the half-wave angle of the light source is larger than the second threshold value, determining that the light-emitting angle type of the light source is a second light-emitting angle type.
In one embodiment, the third obtaining module is specifically configured to adjust the first ambient brightness information and obtain the second ambient brightness information based on the compensation information when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model queried by the relative position is outside a preset range.
In one embodiment, the third obtaining module is further specifically configured to take, when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model queried by the relative position is within a preset range, maximum ambient brightness information in the brightness model as the first ambient brightness information, and determine the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
In one embodiment, the third obtaining module is specifically configured to query the brightness model to obtain fourth ambient brightness information corresponding to the relative position based on the relative position between the terminal device and the light source when the terminal device detects the first ambient brightness information; comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient; and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain the second ambient brightness information.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 14 is a diagram of a screen brightness adjusting apparatus according to an exemplary embodiment. For example, the device may be a mobile phone, a mobile computer, etc.
Referring to fig. 14, the apparatus may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device. Examples of such data include instructions for any application or method operating on the device, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the device. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for devices.
The multimedia component 808 includes a screen between the device and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the device. For example, the sensor assembly 814 may detect an on/off state of the device, a relative positioning of the assemblies, such as a display and keypad of the device, the sensor assembly 814 may also detect a change in position of the device or one of the assemblies of the device, the presence or absence of user contact with the device, a change in device orientation or acceleration/deceleration, and a change in temperature of the device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus and other devices in a wired or wireless manner. The device may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of the apparatus to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform a method of adjusting screen brightness, the method comprising:
acquiring a brightness model of a current space of terminal equipment;
determining the relative position between the terminal equipment and the light source in the current space;
based on the relative position between the terminal equipment and the light source in the current space and the brightness model, compensation information is obtained;
compensating the first ambient brightness information detected by the terminal equipment by using the compensation information to obtain compensated second ambient brightness information;
and adjusting the screen brightness of the terminal equipment based on the second environment brightness information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (22)
1. A method for adjusting brightness of a screen, the method comprising:
acquiring a brightness model of a current space of terminal equipment;
determining the relative position between the terminal equipment and the light source in the current space;
based on the relative position between the terminal equipment and the light source in the current space and the brightness model, compensation information is obtained;
compensating the first ambient brightness information detected by the terminal equipment by using the compensation information to obtain compensated second ambient brightness information;
adjusting the screen brightness of the terminal equipment based on the second environment brightness information;
the obtaining compensation information based on the relative position between the terminal device and the light source in the current space and the brightness model includes:
determining light source type information corresponding to the light source based on the environment brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
Inquiring a compensation model corresponding to the light source type information based on the light source type information;
and determining the compensation information based on the relative position between the terminal equipment and the light source and the compensation model.
2. The method of claim 1, wherein the obtaining the brightness model of the space in which the terminal device is currently located includes:
detecting the gesture information of the terminal equipment;
detecting the environment brightness information of the terminal equipment in different postures;
and generating a brightness model of the current space of the terminal equipment according to the gesture information and the environment brightness information.
3. The method of claim 2, wherein the generating a brightness model of a space in which the terminal device is currently located according to the gesture information and the ambient brightness information includes:
according to the gesture information and the detection time of the environment brightness information, determining the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane;
according to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of a second plane, wherein the second plane is perpendicular to the first plane;
And generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
4. The method of claim 1, wherein determining the light source type information corresponding to the light source based on the ambient brightness information in the brightness model comprises:
obtaining maximum ambient brightness information and minimum ambient brightness information in the brightness model;
and determining brightness type information of the light source based on the maximum ambient brightness information and the minimum ambient brightness information.
5. The method of claim 4, wherein the determining the brightness type information of the light source based on the maximum ambient brightness information and the minimum ambient brightness information comprises:
when the ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is smaller than or equal to a first threshold value, determining that the brightness type of the light source is a first brightness type;
And when the ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is larger than the first threshold value, determining that the brightness type of the light source is a second brightness type.
6. The method of claim 1, wherein determining the light source type information corresponding to the light source based on the ambient brightness information in the brightness model comprises:
determining half-wave angle information of the light source based on the maximum ambient brightness information in the brightness model;
and determining the luminous angle type information of the light source based on the half-wave angle information of the light source.
7. The method of claim 6, wherein the determining the light emission angle type information of the light source based on the half-wave angle information of the light source comprises:
when the half-wave angle of the light source is smaller than or equal to a second threshold value, determining that the light-emitting angle type of the light source is a first light-emitting angle type;
and when the half-wave angle of the light source is larger than the second threshold value, determining that the light-emitting angle type of the light source is a second light-emitting angle type.
8. A method according to any one of claims 1 to 3, wherein compensating the first ambient brightness information detected by the terminal device using the compensation information to obtain compensated second ambient brightness information includes:
And when the difference between the first ambient brightness information detected by the terminal equipment and the third ambient brightness information obtained based on the brightness model of the relative position query is out of a preset range, adjusting the first ambient brightness information based on the compensation information and obtaining the second ambient brightness information.
9. The method of claim 8, wherein the method further comprises:
and when the difference between the first ambient brightness information detected by the terminal equipment and third ambient brightness information obtained based on the brightness model of the relative position query is within a preset range, taking the maximum ambient brightness information in the brightness model as the first ambient brightness information, and determining the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
10. The method of claim 8, wherein said adjusting the first ambient brightness information and deriving the second ambient brightness information based on the compensation information comprises:
inquiring the brightness model based on the relative position between the terminal equipment and the light source when detecting the first environment brightness information to obtain fourth environment brightness information corresponding to the relative position;
Comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient;
and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain the second ambient brightness information.
11. An apparatus for adjusting brightness, the apparatus comprising:
the model determining module is configured to acquire a brightness model of a space where the terminal equipment is currently located;
a position determining module configured to determine a relative position between the terminal device and a light source in the current space;
the first acquisition module is configured to acquire compensation information based on the relative position between the terminal equipment and the light source in the current space and the brightness model;
the second acquisition module is configured to compensate the first environment brightness information detected by the terminal equipment by using the compensation information, and acquire compensated second environment brightness information;
the adjusting module is configured to adjust the screen brightness of the terminal equipment based on the second environment brightness information;
the first acquisition module comprises:
the third acquisition module is configured to determine light source type information corresponding to the light source based on the environment brightness information in the brightness model, wherein the light source type information comprises the brightness type information of the light source and the light emitting angle type information of the light source;
The query module is configured to query a compensation model corresponding to the light source type information based on the light source type information;
and a fourth acquisition module configured to determine the compensation information based on the compensation model and a relative position between the terminal device and the light source.
12. The apparatus of claim 11, wherein the model determination module comprises:
the detection module is configured to detect the attitude information of the terminal equipment and detect the environment brightness information of the terminal equipment under different attitudes;
and the generating module is configured to generate a brightness model of the space where the terminal equipment is currently located according to the gesture information and the environment brightness information.
13. The apparatus according to claim 12, wherein the generating module is specifically configured to determine the ambient brightness information when the terminal device forms different angles with the vertical direction of the first plane according to the gesture information and the detection time of the ambient brightness information;
according to the gesture information and the detection time of the ambient brightness information, determining the ambient brightness information when different angles are formed between the terminal equipment and the vertical direction of a second plane, wherein the second plane is perpendicular to the first plane;
And generating a brightness model of the current space of the terminal equipment according to the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the first plane and the environment brightness information when different angles are formed between the terminal equipment and the vertical direction of the second plane.
14. The apparatus of claim 11, wherein the third acquisition module comprises:
a fifth obtaining module configured to obtain maximum ambient brightness information and minimum ambient brightness information in the brightness model;
and a sixth acquisition module configured to determine luminance type information of the light source based on the maximum ambient luminance information and the minimum ambient luminance information.
15. The apparatus of claim 14, wherein the sixth obtaining module is specifically configured to determine that the brightness type of the light source is the first brightness type when a ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is less than or equal to a first threshold; and when the ratio between the brightness value corresponding to the maximum ambient brightness information and the brightness value corresponding to the minimum ambient brightness information is larger than the first threshold value, determining that the brightness type of the light source is a second brightness type.
16. The apparatus of claim 11, wherein the third acquisition module comprises:
a seventh acquisition module configured to determine half-wave angle information of the light source based on maximum ambient brightness information in the brightness model;
an eighth acquisition module configured to determine light emission angle type information of the light source based on half-wave angle information of the light source.
17. The apparatus of claim 16, wherein the eighth acquisition module is specifically configured to determine that the light emission angle type of the light source is the first light emission angle type when the half-wave angle of the light source is less than or equal to a second threshold; and when the half-wave angle of the light source is larger than the second threshold value, determining that the light-emitting angle type of the light source is a second light-emitting angle type.
18. The apparatus according to any one of claims 11 to 13, wherein a third acquisition module is specifically configured to adjust the first ambient brightness information and obtain the second ambient brightness information based on the compensation information when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model of the relative position query is outside a preset range.
19. The apparatus of claim 18, wherein the third obtaining module is further specifically configured to take maximum ambient brightness information in the brightness model as the first ambient brightness information when a difference between the first ambient brightness information detected by the terminal device and third ambient brightness information obtained based on the brightness model of the relative position query is within a preset range, and determine the second ambient brightness information based on the compensation information and the maximum ambient brightness information.
20. The apparatus of claim 19, wherein the third obtaining module is specifically configured to query the brightness model to obtain fourth ambient brightness information corresponding to the relative position based on the relative position between the terminal device and the light source when detecting the first ambient brightness information; comparing the fourth ambient brightness information with the maximum ambient brightness information in the brightness model to obtain a compensation coefficient; and adjusting the first ambient brightness information based on the compensation information and the compensation coefficient to obtain the second ambient brightness information.
21. A terminal device, comprising:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of adjusting screen brightness according to any one of claims 1 to 11.
22. A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the method of adjusting screen brightness according to any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911243729.0A CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911243729.0A CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112927641A CN112927641A (en) | 2021-06-08 |
CN112927641B true CN112927641B (en) | 2024-02-23 |
Family
ID=76161791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911243729.0A Active CN112927641B (en) | 2019-12-06 | 2019-12-06 | Screen brightness adjusting method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112927641B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010034914A (en) * | 2008-07-30 | 2010-02-12 | Kyocera Corp | Mobile terminal |
CN103065608A (en) * | 2011-10-19 | 2013-04-24 | 宏碁股份有限公司 | Electronic device, illumination regulation system and illumination regulation method |
CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | Brightness adjusting method, brightness adjusting device and terminal |
CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8884939B2 (en) * | 2010-07-26 | 2014-11-11 | Apple Inc. | Display brightness control based on ambient light levels |
-
2019
- 2019-12-06 CN CN201911243729.0A patent/CN112927641B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010034914A (en) * | 2008-07-30 | 2010-02-12 | Kyocera Corp | Mobile terminal |
CN103065608A (en) * | 2011-10-19 | 2013-04-24 | 宏碁股份有限公司 | Electronic device, illumination regulation system and illumination regulation method |
CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | Brightness adjusting method, brightness adjusting device and terminal |
CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
Also Published As
Publication number | Publication date |
---|---|
CN112927641A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101712301B1 (en) | Method and device for shooting a picture | |
CN107885533B (en) | Method and device for managing component codes | |
KR101712529B1 (en) | Method, device, terminal, program and computer-readable recording medium for controlling flash | |
US8463317B2 (en) | Mobile terminal and method of controlling the operation of the mobile terminal | |
US9491371B2 (en) | Method and device for configuring photographing parameters | |
EP3352453B1 (en) | Photographing method for intelligent flight device and intelligent flight device | |
CN113539192B (en) | Ambient light detection method and device, electronic equipment and storage medium | |
KR20190088001A (en) | Screen display control method, apparatus, program and recording medium | |
CN112449026B (en) | Ambient light compensation method, device, terminal and storage medium | |
WO2017219501A1 (en) | Method and apparatus for setting photographing parameter | |
CN105516592A (en) | Shooting method and shooting device | |
US20210168279A1 (en) | Document image correction method and apparatus | |
KR20160127606A (en) | Mobile terminal and the control method thereof | |
US20170090684A1 (en) | Method and apparatus for processing information | |
US20210264876A1 (en) | Brightness adjustment method and device, mobile terminal and storage medium | |
CN112052897A (en) | Multimedia data shooting method, device, terminal, server and storage medium | |
US10122935B2 (en) | Method for controlling mobile terminal and mobile terminal | |
CN111753606A (en) | Intelligent model upgrading method and device | |
CN112187995A (en) | Illumination compensation method, illumination compensation device, and storage medium | |
CN112927641B (en) | Screen brightness adjusting method and device, terminal equipment and storage medium | |
EP3975548B1 (en) | Photographing method and apparatus, terminal, and storage medium | |
CN107682684A (en) | White balance adjusting method and apparatus | |
CN116091591A (en) | Pose estimation method, pose estimation device, terminal and storage medium | |
KR20140142523A (en) | Method and apparatus for taking images for applying visual effect | |
CN118190352A (en) | Method, device, terminal and storage medium for determining lens structure information |
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 |