CN111829651A - 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 PDF

Info

Publication number
CN111829651A
CN111829651A CN201910314989.6A CN201910314989A CN111829651A CN 111829651 A CN111829651 A CN 111829651A CN 201910314989 A CN201910314989 A CN 201910314989A CN 111829651 A CN111829651 A CN 111829651A
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.)
Granted
Application number
CN201910314989.6A
Other languages
Chinese (zh)
Other versions
CN111829651B (en
Inventor
高文俊
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910314989.6A priority Critical patent/CN111829651B/en
Publication of CN111829651A publication Critical patent/CN111829651A/en
Application granted granted Critical
Publication of CN111829651B publication Critical patent/CN111829651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/02Details
    • G01J1/0295Constructional arrangements for removing other types of optical noise or for performing calibration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, 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

Method, device and equipment for calibrating light intensity value and storage medium
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, which is 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 calibration light intensity value.
According to another aspect of the embodiments of the present disclosure, there is provided a light intensity value calibration apparatus 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 device;
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 method for calibrating the light intensity value, the actually measured light intensity value is calibrated through the terminal attitude information, so that attenuation of the light intensity value caused by the problem of the angle of the terminal can be correspondingly compensated, and a relatively accurate light intensity value is finally 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 angles of incidence of light rays 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, 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:
step 301, the terminal obtains the actually measured light intensity value of the ambient light through the optical sensor.
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.
And step 302, the terminal acquires terminal attitude information of the terminal through an attitude sensor.
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, in the process that the terminal rotates by the one angle, the attitude sensor obtains a three-axis angular velocity, a three-axis gravity 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 gravity 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 angle problem of the placement 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 candidate calibration cosine curve shows the relationship that the light entering amount changes according to the light incident angle under the posture corresponding to the terminal posture information, the light entering amount continuously decreases along with the increase of the light incident angle, and when the light entering amount detected by the optical sensor is less, the obtained corresponding light intensity value is also smaller.
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 sign "-" in the light incidence angle indicates the light incidence angle of the light incident in the 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 preset; for example, if the light incident angle "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 light incident angle "-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 l1The 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 l2Incident direction of light on the screen and the screenThe included angle in the vertical direction is 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
First quaternion Candidate calibration cosine curve 1
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 at 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 the light intensity value, an attitude sensor is disposed in the terminal for acquiring terminal attitude information of the terminal, and in other embodiments, a gyroscope sensor and an acceleration sensor are disposed in the terminal, which may be used to acquire terminal attitude information of the terminal instead of the attitude sensor, and schematically, when the calibration method for the light intensity value is applied to the terminal shown in fig. 2, as shown in fig. 7, the method includes:
step 401, the terminal obtains an actually measured light intensity value of the ambient light through the optical sensor.
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 component 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 component; 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.
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 then 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 step 304, the terminal adjusts the backlight value of the terminal according to the calibration 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 calibration apparatus for light intensity values provided by an exemplary embodiment is shown, which may be implemented by software, hardware or a combination of the two, and includes a light sensor and an attitude sensor installed therein, and 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 angle problem of the placement 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 communication 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 an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 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 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 (12)

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 an actually measured light intensity value of ambient light through the optical sensor;
acquiring terminal attitude information of the terminal through the 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.
2. The method of claim 1, wherein calibrating the light intensity value according to the measured light intensity value and the terminal pose information to obtain a calibrated light intensity value comprises:
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 the light source and the vertical direction of the 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 the 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.
3. The method according to claim 2, 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.
4. The method according to any one of claims 1 to 3, wherein 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.
5. The method of any of claims 1 to 3, further comprising:
and adjusting the backlight value of the terminal according to the calibration light intensity value.
6. An apparatus for calibrating a light intensity value, the apparatus having a light sensor and an attitude sensor mounted therein, the apparatus comprising:
a first obtaining module configured to obtain a measured light intensity value of ambient light through the light sensor;
a second obtaining module configured to obtain terminal attitude information of the terminal through the 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.
7. The apparatus of claim 6, wherein the calibration module comprises:
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 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;
the input submodule is configured to input the target light incidence angle to a reference cosine curve to obtain the 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.
8. The apparatus of claim 7, 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.
9. The device according to any one of claims 6 to 8, wherein a gyroscope sensor and an acceleration sensor are included in the device;
the second obtaining module further includes:
a first acquisition sub-module configured to acquire three-axis angular velocities of the terminal through the gyro sensor;
a second obtaining submodule configured to obtain a three-axis 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.
10. The apparatus of any of claims 6 to 8, further comprising:
and the adjusting module is configured to adjust the backlight value of the terminal according to the calibration light intensity value.
11. 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 the executable instructions to implement the method of calibrating light intensity values of any one of claims 1 to 5.
12. 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 a method of calibrating light intensity values according to any one of claims 1 to 5.
CN201910314989.6A 2019-04-18 2019-04-18 Method, device and equipment for calibrating light intensity value and storage medium Active CN111829651B (en)

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 true CN111829651A (en) 2020-10-27
CN111829651B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN111829651B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
EP3220615B1 (en) Method and device for setting brightness of screen
CN108737735B (en) Method for correcting image, electronic equipment and computer readable storage medium
EP3032821B1 (en) Method and device for shooting a picture
US20210158560A1 (en) Method and device for obtaining localization information and storage medium
CN111323007B (en) Positioning method and device, electronic equipment and storage medium
CN107656682B (en) Mobile terminal and bending angle calculation method
US11698297B2 (en) Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium
CN107944367B (en) Face key point detection method and device
CN107202574B (en) Motion trail information correction method and device
CN112414400B (en) Information processing 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
EP3474118A1 (en) Controlling field of view
CN105678296B (en) Method and device for determining character inclination angle
CN111829651B (en) Method, device and equipment for calibrating light intensity value and storage medium
EP3872804A1 (en) Brightness adjustment method and device, mobile terminal and storage medium
CN114430453A (en) Camera anti-shake system, control method, equipment and medium
CN108459770B (en) Coordinate correction method and device
US9619016B2 (en) Method and device for displaying wallpaper image on screen
CN111212159B (en) Terminal device
JP2023501608A (en) Electronics and focus method
CN109389547B (en) Image display method and device
CN114765663A (en) Anti-shake processing method and device, mobile device and storage medium
CN111866785A (en) Terminal, parameter measuring method, device and storage medium
CN111243506B (en) Screen brightness adjusting method, device, equipment and storage medium

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