CN111829651B - Method, device and equipment for calibrating light intensity value and storage medium - Google Patents
Method, device and equipment for calibrating light intensity value and storage medium Download PDFInfo
- Publication number
- CN111829651B CN111829651B CN201910314989.6A CN201910314989A CN111829651B CN 111829651 B CN111829651 B CN 111829651B CN 201910314989 A CN201910314989 A CN 201910314989A CN 111829651 B CN111829651 B CN 111829651B
- Authority
- CN
- China
- Prior art keywords
- terminal
- light intensity
- intensity value
- light
- calibration
- 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 49
- 230000001133 acceleration Effects 0.000 claims description 46
- 230000005484 gravity Effects 0.000 claims description 15
- 230000003287 optical effect Effects 0.000 claims description 14
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000002238 attenuated effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008569 process Effects 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
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/02—Details
- G01J1/0295—Constructional arrangements for removing other types of optical noise or for performing calibration
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Controls And Circuits For Display Device (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The disclosure relates to a method, a device, equipment and a storage medium for calibrating a light intensity value, and belongs to the field of electronic equipment. The method comprises the steps of obtaining a measured light intensity value of ambient light through a light sensor; acquiring terminal attitude information of a terminal through an attitude sensor; and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value. The method calibrates the actually measured light intensity value through the terminal attitude information, so that the attenuation of the light intensity value caused by the angle problem of the placement of the terminal can be correspondingly compensated, and finally a more accurate light intensity value is obtained.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method, an apparatus, a device, and a storage medium for calibrating a light intensity value.
Background
A light sensor is typically provided in the terminal and may be used to detect ambient light.
The terminal is used for realizing some functions through the light intensity value of the ambient light detected by the light sensor, for example, the light intensity value of the ambient light detected by the light sensor can be used as a parameter for adjusting the backlight value of the terminal screen, the terminal detects the current light intensity value of the ambient light through the light sensor, a corresponding backlight value is obtained according to the light intensity value, and the terminal sets the backlight value as the current backlight value of the screen.
However, when receiving the ambient light, the optical sensor is affected by the angle of view, and only the ambient light within the range of the angle of view can be collected by the optical sensor; and the light intensity values when transmitted to the light sensor at different angles can be attenuated to different degrees; therefore, when the terminal is placed at an angle, the amount of light entering the light sensor is attenuated according to the angle, and an erroneous light intensity value may be detected.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a system for calibrating a light intensity value. The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, there is provided a method for calibrating a light intensity value, the method being applied to a terminal mounted with a light sensor and an attitude sensor, the method including:
acquiring an actually measured light intensity value of ambient light through a light sensor;
acquiring terminal attitude information of a terminal through an attitude sensor;
and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value.
In some embodiments, calibrating the light intensity value according to the measured light intensity value and the terminal posture information to obtain a calibrated light intensity value includes:
determining a calibration cosine curve according to the terminal attitude information, wherein the calibration cosine curve is a relation curve between a light intensity value and a light ray incidence angle under the attitude corresponding to the terminal attitude information, and the light ray incidence angle is an included angle between the direction of a light source and the vertical direction of a terminal screen;
inputting the actually measured light intensity value to a calibration cosine curve to obtain a target light ray incident angle;
and inputting the incident angle of the target light ray into a reference cosine curve to obtain a calibrated light intensity value, wherein the reference cosine curve is a relation curve between the light intensity value and the incident angle of the light ray under the reference posture.
In some embodiments, n candidate calibration cosine curves are stored in the terminal;
determining a calibration cosine curve according to the terminal attitude information, comprising:
and determining a calibration cosine curve corresponding to the terminal attitude information from the n candidate calibration cosine curves, wherein n is a positive integer.
In some embodiments, a gyroscope sensor and an acceleration sensor are included in the terminal;
acquiring terminal attitude information of a terminal, comprising:
acquiring the three-axis angular velocity of the terminal through a gyroscope sensor;
acquiring a triaxial gravity acceleration component of the terminal through an acceleration sensor;
and calculating to obtain the terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration component of the terminal.
In some embodiments, the method further comprises:
and adjusting the backlight value of the terminal according to the calibrated light intensity value.
According to another aspect of the embodiments of the present disclosure, there is provided a calibration apparatus for a light intensity value, in which a light sensor and an attitude sensor are installed, the apparatus including:
a first acquisition module configured to acquire a measured light intensity value of ambient light through a light sensor;
the second acquisition module is configured to acquire terminal attitude information of the terminal through an attitude sensor;
and the calibration module is configured to calibrate the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value.
In some embodiments, a calibration module, comprising:
the determining submodule is configured to determine a calibration cosine curve according to the terminal attitude information, the calibration cosine curve is a relation curve between a light intensity value and a light ray incidence angle under the attitude corresponding to the terminal attitude information, and the light ray incidence angle refers to an included angle between the direction of the light source and the vertical direction of the terminal screen;
the input submodule is configured to input the actually measured light intensity value to the calibration cosine curve to obtain a target light ray incidence angle;
and the input sub-module is configured to input the target light incidence angle to a reference cosine curve to obtain a calibrated light intensity value, and the reference cosine curve is a relation curve between the light intensity value and the light incidence angle under the reference posture.
In some embodiments, n candidate calibration cosine curves are stored in the apparatus;
and the determining submodule is configured to determine a calibration cosine curve corresponding to the terminal attitude information from n candidate calibration cosine curves, wherein n is a positive integer.
In some embodiments, a gyroscope sensor and an acceleration sensor are included in the apparatus;
the second acquisition module further comprises:
a first acquisition submodule configured to acquire a triaxial angular velocity of the terminal through a gyro sensor;
the second acquisition submodule is configured to acquire a triaxial gravitational acceleration component of the terminal through the acceleration sensor;
and the calculation submodule is configured to calculate and obtain terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration component of the terminal.
In some embodiments, the apparatus further comprises:
and the adjusting module is configured to adjust the backlight value of the terminal according to the calibration light intensity value.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the method of calibrating light intensity values as described above in the first aspect and its alternative embodiments.
According to another aspect of embodiments of the present disclosure, there is provided a computer storage medium having at least one instruction, at least one program, code set, or set of instructions stored therein, which is loaded and executed by a processor to implement the calibration method of light intensity values as described in the first aspect and its optional embodiments above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the terminal obtains an actually measured light intensity value of ambient light through a light sensor; acquiring terminal attitude information of a terminal through an attitude sensor; and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value. According to the calibration method of the light intensity value, the actually measured light intensity value is calibrated through the terminal attitude information, so that the attenuation of the light intensity value caused by the problem of the angle of the terminal can be correspondingly compensated, and finally, a relatively accurate light intensity value is obtained.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a terminal shown in accordance with an exemplary embodiment;
fig. 2 is a schematic structural diagram of a terminal according to another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of calibrating light intensity values according to an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating a calibration cosine curve in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating the angle of incidence of a light ray in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a reference cosine curve in accordance with an exemplary embodiment;
FIG. 7 is a flow chart illustrating a method of calibrating light intensity values according to another exemplary embodiment;
FIG. 8 is a flow chart illustrating a method of calibrating light intensity values according to another exemplary embodiment;
FIG. 9 is a block diagram illustrating a calibration arrangement of light intensity values according to an exemplary embodiment;
fig. 10 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, a schematic structural diagram of a terminal 100 provided in an exemplary embodiment is shown, where the terminal 100 includes a light sensor 101, an attitude sensor 102, a memory 103, and a processor 104;
the optical sensor 101, the attitude sensor 102 and the memory 103 are electrically connected to the processor 104. Alternatively, the light sensor 101, the attitude sensor 102, and the memory 103 are connected to the processor 104 through a bus, respectively.
The light sensor 101 may be an ambient light sensor, which is configured to detect an external light intensity value and report the light intensity value to the processor 104.
The attitude sensor 102 is a high-performance three-dimensional motion attitude measurement system, and the attitude sensor 102 may be configured to measure a three-dimensional motion attitude of the terminal 100, form terminal attitude information of the terminal 100, and report the terminal attitude information to the processor 104.
The Memory 103 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 103 stores a calibration cosine curve and a reference cosine curve; the memory 103 also stores therein a program that is capable of implementing the above-described calibration method of the light intensity value.
The processor 104 may include one or more processing cores, the processor 104 being configured to execute a program stored in the memory 103 to implement the calibration method of light intensity values provided by the present disclosure. Optionally, the processor 104 obtains the calibration cosine curve and the reference cosine curve from the memory 103 to implement the calibration method of the light intensity value.
In some optional embodiments, the function of the attitude sensor may be implemented by a gyroscope sensor and an acceleration sensor together, as shown in fig. 2, which shows a schematic structural diagram of a terminal 200 provided by another exemplary embodiment, where the terminal 200 includes a light sensor 201, a gyroscope sensor 202, an acceleration sensor 203, a processor 204 and a memory 205;
the optical sensor 201, the gyroscope sensor 202, the acceleration sensor 203 and the memory 205 are electrically connected with the processor 204 respectively; optionally, the light sensor 201, the gyroscope sensor 202, the acceleration sensor 203, and the memory 205 are respectively connected to the processor 204 through a bus.
The gyro sensor 202 may be configured to detect three-axis angular velocities of the terminal 200 during a rotation process of an angle, and report the three-axis angular velocities to the processor 204.
The acceleration sensor 203 may be configured to detect a three-axis gravity acceleration component of the terminal 200, and report the three-axis gravity acceleration component to the processor 204.
The memory 205 stores a program for being executed by the processor 204 to realize the calculation of the terminal attitude information of the terminal 200, wherein the input of the program is the three-axis angular velocity reported by the gyroscope sensor 202 and the three-axis gravitational acceleration component reported by the acceleration sensor 203.
Additionally, in some embodiments, the gyroscope sensor 202 and the acceleration sensor 203 may be integrated within the same electrical package or chip.
Referring to fig. 3, a flowchart of a calibration method for light intensity values according to an exemplary embodiment is shown, which is described by taking the method as an example for being applied to the terminal shown in fig. 1, and the method includes:
The light sensor on the terminal collects the ambient light to obtain the actually measured light intensity value of the ambient light, and the light sensor reports the obtained actually measured light intensity value to the processor of the terminal.
The terminal attitude information refers to an attitude of the terminal in a three-dimensional space after the terminal is rotated to an angle. Optionally, during the terminal rotates by the above one angle, the attitude sensor obtains a three-axis angular velocity, a three-axis gravitational acceleration component and a three-axis magnetic field strength of the terminal rotation, and generates terminal attitude information according to the three-axis angular velocity, the three-axis gravitational acceleration component and the three-axis magnetic field strength; and the attitude sensor reports the attitude information of the terminal to a processor of the terminal.
And 303, calibrating the light intensity value by the terminal according to the actually measured light intensity value and the terminal posture information to obtain a calibrated light intensity value.
A processor in the terminal determines a calibration cosine curve according to the terminal attitude information; inputting the actually measured light intensity to a calibration cosine curve to obtain a target light ray incident angle; and inputting the incident angle of the target light to a reference cosine curve to obtain a calibrated light intensity value.
The calibration cosine curve is a relation curve between a light intensity value and a light ray incidence angle under a posture corresponding to the terminal posture information; the reference cosine curve is a relation curve between the light intensity value and the light ray incidence angle under the reference posture; the light incident angle refers to an included angle between the direction of the light source and the vertical direction of the terminal screen.
In summary, in the calibration method for the light intensity value provided in this embodiment, the light sensor is used to obtain the actually measured light intensity value of the ambient light; acquiring terminal attitude information of a terminal through an attitude sensor; and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value. The method calibrates the actually measured light intensity value through the terminal attitude information, so that the attenuation of the light intensity value caused by the problem of the angle of the terminal can be correspondingly compensated, and finally a more accurate light intensity value is obtained.
Based on fig. 3, in the light intensity value calibration method, the terminal calibrates the light intensity value according to the actually measured light intensity value and the terminal posture information by using the calibration cosine curve and the reference cosine curve; it should be noted that n candidate calibration cosine curves are stored in the terminal; and in the process of calibrating the light intensity value, the terminal determines a calibration cosine curve corresponding to the terminal attitude information from the n candidate calibration cosine curves, wherein n is a positive integer.
Schematically, referring to fig. 4, two candidate calibration cosine curves stored in the terminal are shown, which are a candidate calibration cosine curve 1 and a candidate calibration cosine curve 2, respectively. The corresponding light intensity value is represented by the light inflow amount in the candidate calibration cosine curve, the candidate calibration cosine curve shows the relation that the light inflow amount changes according to the light incidence angle under the posture corresponding to the terminal posture information, the light inflow amount is continuously reduced along with the increase of the light incidence angle, and when the light inflow amount which can be detected by the optical sensor is less, the obtained corresponding light intensity value is also less.
The light incident angle refers to an included angle between the direction of the light source and the vertical direction of the terminal screen, and schematically, when light emitted by the light source is transmitted to the terminal screen, the incident direction of the light and the vertical direction of the terminal screen form an included angle, which is the light incident angle. It should be noted that the symbol "-" in the light incidence angles indicates the light incidence angle of a light ray incident in a negative direction opposite to the positive direction, the positive direction and the negative direction are opposite directions, and the positive direction and the negative direction are set in advance; for example, if the incident angle of light ray "60" is a light ray incident from the left side of the screen and the left side of the screen is a predetermined positive direction, the incident angle of light ray "-60" is a light ray incident from the right side of the screen. Schematically, as shown in fig. 5, in the horizontal direction of the screen, the left side is a positive direction, the right side is a negative direction, and the light source l 1 The included angle between the incident direction of the light on the screen and the vertical direction of the screen is an angle a, and the light source l 2 The angle between the incident direction of the light on the screen and the vertical direction of the screen is an angle-b.
In the present embodiment, the light amount is represented by the ratio of the measured light amount to the reference light amount, and the reference light amount is the light amount when the light incidence angle is 0 in the posture corresponding to the terminal posture information. When the incident direction of the light is coincident with or parallel to the vertical direction of the screen, the incident angle of the light is 0.
The candidate calibration cosine curve 1 and the candidate calibration cosine curve 2 respectively correspond to different terminal attitude information, and in some embodiments, the terminal attitude information is represented by a quaternion, as shown in table 1, a calibration cosine curve corresponding to a first quaternion is the candidate calibration cosine curve 1, and a calibration cosine curve corresponding to a second quaternion is the candidate calibration cosine curve 2.
TABLE 1
Terminal attitude information | Calibration of cosine curve |
A first quaternion | Candidate calibration cosine curve 1 |
A second quaternion | Candidate calibration cosine curve 2 |
Optionally, one candidate calibration cosine curve corresponds to at least one terminal attitude information. Illustratively, the first quaternion includes at least one quaternion, and then the at least one quaternion corresponds to the candidate calibration cosine curve 1.
When the terminal attitude information obtained by the terminal is a first quaternion, the terminal determines a candidate calibration cosine curve 1 from the two candidate calibration cosine curves as a calibration cosine curve for calibrating the light intensity value this time. When the actually measured light inlet quantity obtained by the terminal through the optical sensor is 70%, the target light ray incidence angle is-20 according to the candidate calibration cosine curve 1; when the actually measured light inlet quantity obtained by the terminal through the optical sensor is 66%, obtaining a target light ray incidence angle of 30 corresponding to the candidate calibration cosine curve 1;
it should be further noted that a reference cosine curve is also stored in the terminal, as shown in fig. 6, which shows the reference cosine curve 3 stored in the terminal. The reference cosine curve 3 shows the corresponding light intensity value in terms of the amount of light entering, and shows the relationship between the amount of light entering and the change in the angle of incidence of light in the reference posture of the terminal. After the terminal obtains the target light incidence angle, obtaining the calibrated light inlet quantity according to the reference cosine curve corresponding to the target light incidence angle; and obtaining a calibration light intensity value according to the calibration light incoming quantity.
For example, when the target light incidence angle is-20, the calibration light incidence amount is 80%; when the target light incidence angle is 30, the calibration light incidence amount is 69%.
In the calibration method for light intensity values, a terminal is provided with an attitude sensor for acquiring terminal attitude information of the terminal, and in other embodiments, a terminal is provided with a gyroscope sensor and an acceleration sensor, which can be used to obtain terminal attitude information of the terminal instead of the attitude sensor, illustratively, when the calibration method for light intensity values is applied to a terminal as shown in fig. 2, as shown in fig. 7, the method includes:
And 402, the terminal acquires the three-axis angular velocity of the terminal through a gyroscope sensor.
And step 403, the terminal acquires a triaxial gravity acceleration component of the terminal through an acceleration sensor.
And step 404, the terminal calculates to obtain terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration component.
The three axes are coordinate systems which are established by taking a three-dimensional space as a reference and comprise three coordinate axes. The terminal integrates the three-axis angular velocity to obtain a first angle after the terminal rotates; calculating according to the three-axis gravity acceleration component to obtain a second angle of the terminal after rotation; and calibrating the first angle by combining the second angle to obtain the terminal attitude information of the terminal.
And 405, the terminal calibrates the light intensity value according to the actually measured light intensity value and the terminal posture information to obtain a calibrated light intensity value.
In summary, in the calibration method for the light intensity value provided in this embodiment, the terminal obtains the actually measured light intensity value of the ambient light through the light sensor; acquiring three-axis angular velocity of the terminal through a gyroscope sensor, acquiring three-axis gravity acceleration components of the terminal through an acceleration sensor, and calculating to obtain terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration components; and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value. The method calibrates the actually measured light intensity value through the terminal attitude information, so that the attenuation of the light intensity value caused by the problem of the angle of the terminal can be correspondingly compensated, and finally a more accurate light intensity value is obtained.
In addition, based on fig. 7, the terminal calculates the terminal attitude information, which may be calculated according to the three-axis angular velocity provided by the gyro sensor, with the three-axis gravitational acceleration component provided by the acceleration sensor as a reference; in other embodiments, based on fig. 2, a magnetometer is further disposed in the terminal, and the terminal may further calculate the terminal attitude information according to the three-axis angular velocity provided by the gyro sensor, with the three-axis gravity acceleration component provided by the acceleration sensor as a first reference and the three-axis magnetic field strength component provided by the magnetometer as a second reference.
The application of the calibration method for the light intensity value can adjust the backlight value of the terminal, and based on fig. 3, step 304 is added to explain the application, as shown in fig. 8, the steps are as follows:
and 304, the terminal adjusts the backlight value of the terminal according to the calibrated light intensity value.
The terminal stores a corresponding relation table of light intensity values and backlight values, wherein one light intensity threshold corresponds to one backlight value; when the calibration light intensity value obtained by the terminal belongs to the target light intensity threshold value, the terminal determines a target backlight value corresponding to the target light intensity threshold value, and the terminal adjusts the backlight value to the target backlight value.
Illustratively, as shown in table 2, table 2 shows the correspondence between the light intensity threshold and the backlight value, and when the light intensity threshold is [30, 40 ], i.e. the light intensity value is equal to or greater than 30 and less than 40, the backlight value is 55; when the light intensity threshold is [40, 50 ], i.e., the light intensity value is equal to or greater than 40 and less than 50, the backlight value is 60; when the light intensity threshold is [50, 60 ], i.e., the light intensity value is equal to or greater than 50 and less than 60, the backlight value is 65.
TABLE 2
Threshold light intensity | Backlight value |
[30,40) | 55 |
[40,50) | 60 |
[50,60) | 65 |
If the terminal obtains a calibrated light intensity value of 55, which is within the light intensity threshold value [50, 60), the target light intensity threshold value is [50, 60), and the corresponding target backlight value is 65, the terminal adjusts the backlight value to 65.
In summary, the method provided in this embodiment adjusts the backlight value of the terminal by calibrating the light intensity value, so that the backlight value applied in the terminal is more accurate, and the display brightness of the terminal screen is more suitable in an actual environment.
Referring to fig. 9, a device for calibrating a light intensity value provided by an exemplary embodiment is shown, and part or all of the device may be implemented by software, hardware or a combination of the two, and the device has a light sensor and an attitude sensor mounted therein, and the device includes:
a first obtaining module 420 configured to obtain a measured light intensity value of the ambient light through the light sensor;
a second obtaining module 440 configured to obtain terminal posture information of the terminal through a posture sensor;
and a calibration module 460 configured to calibrate the light intensity value according to the measured light intensity value and the terminal posture information to obtain a calibrated light intensity value.
In some embodiments, the calibration module 460 includes:
the determining submodule 462 is configured to determine a calibration cosine curve according to the terminal posture information, where the calibration cosine curve is used to represent a relation curve between a light intensity value and a light incidence angle at a posture corresponding to the terminal posture information, and the light incidence angle is an included angle between a direction of the light source and a vertical direction of the terminal screen;
the input submodule 464 is configured to input the actually measured light intensity value to the calibration cosine curve to obtain the incident angle of the target light ray;
and an input submodule 464 configured to input the target light incidence angle to a reference cosine curve, resulting in a calibrated light intensity value, wherein the reference cosine curve represents a relation curve between the light intensity value and the light incidence angle at the reference posture.
In some embodiments, n candidate calibration cosine curves are stored in the apparatus;
a determining submodule 462 configured to determine a calibration cosine curve corresponding to the terminal attitude information from n candidate calibration cosine curves, where n is a positive integer.
In some embodiments, a gyroscope sensor and an acceleration sensor are included in the device;
the second obtaining module 440 further includes:
a first acquisition submodule 442 configured to acquire a three-axis angular velocity of the terminal through a gyro sensor;
a second obtaining submodule 444 configured to obtain a three-axis gravitational acceleration component of the terminal through the acceleration sensor;
and the calculation submodule 446 is configured to calculate and obtain the terminal posture information according to the three-axis angular velocity and the three-axis gravity acceleration component of the terminal.
In some embodiments, the apparatus further comprises:
and an adjusting module 480 configured to adjust a backlight value of the terminal according to the calibrated light intensity value.
In summary, the calibration apparatus for light intensity value provided in this embodiment obtains the actually measured light intensity value of the ambient light through the light sensor; acquiring terminal attitude information of a terminal through an attitude sensor; and calibrating the light intensity value according to the actually measured light intensity value and the terminal attitude information to obtain a calibrated light intensity value. The method calibrates the actually measured light intensity value through the terminal attitude information, so that the attenuation of the light intensity value caused by the problem of the angle of the terminal can be correspondingly compensated, and finally a more accurate light intensity value is obtained.
Referring to fig. 10, a block diagram of an apparatus 500 for calibrating light intensity values according to an exemplary embodiment is shown. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communications component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating 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 a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect the open/closed status of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and the change in temperature of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 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 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The device 500 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications.
In an exemplary embodiment, the apparatus 500 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, micro-controllers, microprocessors or other electronic components for performing the calibration method of the light intensity values described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described calibration method of light intensity values is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of the apparatus 500, enable the apparatus 500 to perform the above-described calibration method of light intensity values.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method for calibrating a light intensity value is applied to a terminal provided with a light sensor and an attitude sensor, and comprises the following steps:
acquiring a measured light intensity value of ambient light through the optical sensor;
acquiring terminal attitude information of the terminal through the attitude sensor;
determining a calibration cosine curve according to the terminal attitude information, wherein the calibration cosine curve is a relation curve between a light intensity value and a light ray incidence angle under an attitude corresponding to the terminal attitude information, and the light ray incidence angle is an included angle between the direction of a light source and the vertical direction of a terminal screen;
inputting the actually measured light intensity value to the calibration cosine curve to obtain a target light ray incident angle;
and inputting the target light incidence angle into a reference cosine curve to obtain a calibrated light intensity value, wherein the reference cosine curve is a relation curve between the light intensity value and the light incidence angle under a reference posture.
2. The method according to claim 1, wherein n candidate calibration cosine curves are stored in the terminal;
the determining a calibration cosine curve according to the terminal attitude information includes:
and determining the calibration cosine curve corresponding to the terminal attitude information from the n candidate calibration cosine curves, wherein n is a positive integer.
3. The method according to claim 1 or 2, characterized in that a gyroscope sensor and an acceleration sensor are included in the terminal;
the acquiring of the terminal posture information of the terminal includes:
acquiring three-axis angular velocity of the terminal through the gyroscope sensor;
acquiring a triaxial gravity acceleration component of the terminal through the acceleration sensor;
and calculating to obtain the terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration component of the terminal.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and adjusting the backlight value of the terminal according to the calibration light intensity value.
5. A device for calibrating a light intensity value, the device having a light sensor and an attitude sensor mounted therein, the device comprising:
a first obtaining module configured to obtain a measured light intensity value of ambient light through the light sensor;
the second acquisition module is configured to acquire terminal attitude information of the terminal through the attitude sensor;
a calibration module, comprising: determining a submodule and an input submodule;
the determining submodule is configured to determine a calibration cosine curve according to the terminal attitude information, the calibration cosine curve is a relation curve between a light intensity value and a light ray incidence angle under an attitude corresponding to the terminal attitude information, and the light ray incidence angle refers to an included angle between a light source direction and a vertical direction of a terminal screen;
the input submodule is configured to input the actually measured light intensity value to the calibration cosine curve to obtain a target light ray incidence angle;
the input submodule is configured to input the target light incidence angle to a reference cosine curve to obtain a calibrated light intensity value, and the reference cosine curve is a relation curve between the light intensity value and the light incidence angle in a reference posture.
6. The apparatus of claim 5, wherein n candidate calibration cosine curves are stored in the apparatus;
the determining submodule is configured to determine the calibration cosine curve corresponding to the terminal attitude information from the n candidate calibration cosine curves, where n is a positive integer.
7. The device according to claim 5 or 6, wherein a gyroscope sensor and an acceleration sensor are included in the device;
the second obtaining module further includes:
a first obtaining sub-module configured to obtain a triaxial angular velocity of the terminal through the gyro sensor;
a second obtaining submodule configured to obtain a triaxial gravitational acceleration component of the terminal through the acceleration sensor;
and the calculation submodule is configured to calculate the terminal attitude information according to the three-axis angular velocity and the three-axis gravity acceleration component of the terminal.
8. The apparatus of claim 5 or 6, further comprising:
and the adjusting module is configured to adjust the backlight value of the terminal according to the calibration light intensity value.
9. A terminal, characterized in that the terminal comprises:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the method of calibration of light intensity values according to any one of claims 1 to 4.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes or a set of instructions, which is loaded and executed by a processor to implement the method of calibration of light intensity values according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910314989.6A CN111829651B (en) | 2019-04-18 | 2019-04-18 | Method, device and equipment for calibrating light intensity value and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910314989.6A CN111829651B (en) | 2019-04-18 | 2019-04-18 | Method, device and equipment for calibrating light intensity value and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111829651A CN111829651A (en) | 2020-10-27 |
CN111829651B true CN111829651B (en) | 2023-03-14 |
Family
ID=72914940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910314989.6A Active CN111829651B (en) | 2019-04-18 | 2019-04-18 | Method, device and equipment for calibrating light intensity value and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111829651B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113108904A (en) * | 2021-04-20 | 2021-07-13 | 武汉华星光电技术有限公司 | Ambient light monitoring method and device, storage medium and mobile terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090316240A1 (en) * | 2008-06-19 | 2009-12-24 | Sony Corporation | Reproducing device and reproducing method |
US20110137240A1 (en) * | 2009-12-08 | 2011-06-09 | Christopher Wiegel | Holographic occlusion detection system for infusion pumps |
CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | Brightness adjusting method, brightness adjusting device and terminal |
-
2019
- 2019-04-18 CN CN201910314989.6A patent/CN111829651B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090316240A1 (en) * | 2008-06-19 | 2009-12-24 | Sony Corporation | Reproducing device and reproducing method |
US20110137240A1 (en) * | 2009-12-08 | 2011-06-09 | Christopher Wiegel | Holographic occlusion detection system for infusion pumps |
CN105825839A (en) * | 2016-05-16 | 2016-08-03 | 广东欧珀移动通信有限公司 | Brightness adjusting method, brightness adjusting device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111829651A (en) | 2020-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3220615B1 (en) | Method and device for setting brightness of screen | |
EP3032821B1 (en) | Method and device for shooting a picture | |
US11698297B2 (en) | Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium | |
CN107202574B (en) | Motion trail information correction method and device | |
CN107944367B (en) | Face key point detection method and device | |
CN107656682B (en) | Mobile terminal and bending angle calculation method | |
CN112414400B (en) | Information processing method and device, electronic equipment and storage medium | |
CN111323007A (en) | Positioning method and device, electronic equipment and storage medium | |
CN112202962B (en) | Screen brightness adjusting method and device and storage medium | |
CN114170324A (en) | Calibration method and device, electronic equipment and storage medium | |
CN105678296B (en) | Method and device for determining character inclination angle | |
CN108317992A (en) | A kind of object distance measurement method and terminal device | |
CN111829651B (en) | Method, device and equipment for calibrating light intensity value and storage medium | |
JP2023501608A (en) | Electronics and focus method | |
CN104601921A (en) | System configuration method and device | |
CN114430453A (en) | Camera anti-shake system, control method, equipment and medium | |
CN111212159B (en) | Terminal device | |
CN108459770B (en) | Coordinate correction method and device | |
US9723218B2 (en) | Method and device for shooting a picture | |
CN114765663A (en) | Anti-shake processing method and device, mobile device and storage medium | |
US20150279001A1 (en) | Method and device for displaying image | |
CN111866785A (en) | Terminal, parameter measuring method, device and storage medium | |
EP2950183B1 (en) | Method and apparatus for measuring direction and terminal | |
CN114339023B (en) | Anti-shake detection method, device and medium for camera module | |
CN113138036B (en) | Temperature detection method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |