CN108775958B - Brightness measuring and calibrating method and device based on light sensor and electronic equipment - Google Patents

Brightness measuring and calibrating method and device based on light sensor and electronic equipment Download PDF

Info

Publication number
CN108775958B
CN108775958B CN201810531261.4A CN201810531261A CN108775958B CN 108775958 B CN108775958 B CN 108775958B CN 201810531261 A CN201810531261 A CN 201810531261A CN 108775958 B CN108775958 B CN 108775958B
Authority
CN
China
Prior art keywords
illumination
light sensor
brightness
calibration
interval
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.)
Expired - Fee Related
Application number
CN201810531261.4A
Other languages
Chinese (zh)
Other versions
CN108775958A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810531261.4A priority Critical patent/CN108775958B/en
Publication of CN108775958A publication Critical patent/CN108775958A/en
Application granted granted Critical
Publication of CN108775958B publication Critical patent/CN108775958B/en
Expired - Fee Related 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/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a method and a device for measuring and calibrating brightness based on a light sensor, wherein the method comprises the following steps: acquiring a brightness measurement value of the light sensor; according to the illumination interval corresponding to the brightness measured value, inquiring the corresponding relation between the illumination interval and the calibration coefficient, and determining the applicable calibration coefficient; adopting an applicable calibration coefficient to calibrate the brightness measurement value to obtain a calibration value of the ambient brightness; obtaining a plurality of illumination intervals of the ambient brightness; testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. The method is used for calibrating according to different illumination values to obtain different calibration coefficients, the backlight brightness is adjusted more accurately, user experience is improved, and the technical problem that calibration deviation of the light sensor is large due to the fact that only a single light source can be used for calibration in the prior art is solved.

Description

Brightness measuring and calibrating method and device based on light sensor and electronic equipment
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for measuring and calibrating brightness based on a light sensor and electronic equipment.
Background
At present, electronic devices are widely used in life of people, for example, smart phones, tablet computers and the like, and users have higher and higher requirements for the performance of the electronic devices. In the actual use process, the screen brightness of the electronic device also becomes the performance requirement of the user for the electronic device.
Electronic equipment's front end is equipped with light sensor, detects light illuminance on every side through light sensor and adjusts screen brightness, but, light sensor has the error to light illuminance's measurement, consequently need calibrate light sensor to improve light sensor measurement light illuminance's accuracy. In the prior art, a single light source is adopted in a calibration method for a light sensor, and the calibration of the light sensor has larger deviation due to different responses of the light sensor to light sources with different illumination values.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a brightness measuring and calibrating method based on a light sensor, which aims to realize more accurate calibration of the light sensor and solve the technical problem that the calibration of the light sensor has larger deviation because a single light source is adopted for calibration in the prior art and the fact that the light sensor has different responses to light sources with different illumination values is not considered.
The invention provides a brightness measuring device based on a light ray sensor.
The invention provides a brightness calibration device based on a light sensor.
The invention provides an electronic device.
The invention provides a computer readable storage medium.
The embodiment of the first aspect of the invention provides a brightness measurement method based on a light sensor, which comprises the following steps:
acquiring a brightness measurement value of the light sensor;
inquiring the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval;
and calibrating the brightness measured value by adopting the applicable calibration coefficient to obtain the calibration value of the ambient brightness.
According to the brightness measuring method based on the light sensor, disclosed by the embodiment of the invention, the brightness measuring value of the light sensor is obtained; inquiring the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; and calibrating the brightness measured value by adopting the applicable calibration coefficient to obtain the calibration value of the ambient brightness. The method calibrates the light sensor according to different illumination values to obtain different calibration coefficients, adjusts the backlight brightness more accurately, improves user experience, and solves the technical problem that the calibration of the light sensor has larger deviation due to the fact that a single light source is adopted for calibration in the prior art and the fact that the light sensor responds to light sources with different illumination values is not considered.
The embodiment of the second aspect of the present invention provides another brightness calibration method based on a light sensor, including:
acquiring a plurality of illumination intervals of the ambient brightness;
testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness.
According to the brightness calibration method based on the light sensor, disclosed by the embodiment of the invention, a plurality of illumination intervals of the ambient brightness are obtained; testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. According to the method, the light sensor is tested through a plurality of illumination intervals, a more accurate calibration coefficient is obtained, and the technical problem that the light sensor is calibrated to have larger deviation due to the fact that a single light source is adopted for calibration in the prior art and the fact that the light sensor does not respond to light sources with different illumination values is not considered.
The embodiment of the third aspect of the invention provides a brightness measuring device based on a light ray sensor, which comprises:
the acquisition module is used for acquiring the brightness measurement value of the light sensor;
the query module is used for querying the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval;
and the calibration module is used for calibrating the brightness measured value by adopting the applicable calibration coefficient to obtain the calibration value of the ambient brightness.
The brightness measuring device based on the light sensor of the embodiment of the invention obtains the brightness measured value of the light sensor; inquiring the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; and calibrating the brightness measured value by adopting the applicable calibration coefficient to obtain the calibration value of the ambient brightness. The method calibrates the light sensor according to different illumination values to obtain different calibration coefficients, adjusts the backlight brightness more accurately, improves user experience, and solves the technical problem that the calibration of the light sensor has larger deviation due to the fact that a single light source is adopted for calibration in the prior art and the fact that the light sensor responds to light sources with different illumination values is not considered.
The embodiment of the fourth aspect of the present invention provides another brightness calibration apparatus based on a light ray sensor, including:
the acquisition module is used for acquiring a plurality of illumination intervals of the ambient brightness;
the test module is used for testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness.
According to the brightness calibration device based on the light sensor, disclosed by the embodiment of the invention, a plurality of illumination intervals of the ambient brightness are obtained; testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. According to the method, the light sensor is tested through a plurality of illumination intervals, a more accurate calibration coefficient is obtained, and the technical problem that the light sensor is calibrated to have larger deviation due to the fact that a single light source is adopted for calibration in the prior art and the fact that the light sensor does not respond to light sources with different illumination values is not considered.
An embodiment of a fifth aspect of the present invention provides an electronic device, including: the present invention relates to a light sensor, a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method for measuring brightness based on the light sensor according to the first aspect, or to implement the method for calibrating brightness based on the light sensor according to the second aspect.
A sixth aspect of the present invention provides a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor, are configured to perform the method for calibrating brightness based on a light sensor according to the second aspect.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for measuring brightness based on a light sensor according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a method for calibrating brightness based on a light sensor according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a luminance measuring apparatus based on a light sensor according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a luminance calibration apparatus based on a light sensor according to an embodiment of the present invention; and
fig. 5 is a schematic diagram of an internal structure of the electronic device in one embodiment.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The method and apparatus for calibrating luminance based on a light ray sensor according to an embodiment of the present invention will be described with reference to the accompanying drawings.
Electronic equipment's front end all is equipped with light sensor, detects light illuminance on every side through light sensor and adjusts screen brightness, but, light sensor has the error to light illuminance's measurement, consequently need calibrate light sensor to improve light sensor measurement light illuminance's accuracy. In the prior art, a single light source is adopted in a calibration method for a light sensor, and the calibration of the light sensor has larger deviation due to different responses of the light sensor to light sources with different illumination values.
The calibration method aims at the technical problem that the calibration of the light sensor has larger deviation because the light sensor is calibrated by adopting a single light source in the prior art. The embodiment obtains the brightness measured value of the light sensor; according to the illumination interval corresponding to the brightness measured value, inquiring the corresponding relation between the illumination interval and the calibration coefficient, and determining the applicable calibration coefficient; adopting an applicable calibration coefficient to calibrate the brightness measurement value to obtain a calibration value of the ambient brightness; obtaining a plurality of illumination intervals of the ambient brightness; testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. The method calibrates according to different illumination values to obtain different calibration coefficients, adjusts the backlight brightness more accurately, and improves user experience.
Fig. 1 is a schematic flowchart of a method for measuring brightness based on a light sensor according to an embodiment of the present invention.
The embodiment of the present invention is exemplified by an electronic device configured with a light sensor, and the method for measuring brightness based on a light sensor can be applied to an electronic device configured with a light sensor, where the electronic device can be a hardware device having a light sensor, various operating systems, and a touch screen and/or a display screen, such as a smart phone, a tablet computer, a personal digital assistant, and a wearable device.
As shown in fig. 1, the method for measuring brightness based on the light sensor includes the following steps:
step 101, obtaining a brightness measurement value of the light sensor.
It should be noted that the light sensor, also called a brightness sensor, functions to adjust the brightness of the screen backlight of the electronic device by sensing the brightness of the environment.
Specifically, the light intensity of the surrounding environment is detected by the light sensor, and a luminance measurement value of the surrounding environment of the light sensor is acquired.
Step 102, inquiring a corresponding relation between an illumination interval and a calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining an applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, the corresponding relationship between the illumination intervals and the calibration coefficients is to test the light sensor for each illumination interval to obtain the calibration coefficients corresponding to each illumination interval.
It should be noted that, the standard white light source is used for calibrating the light sensor, and since the standard white light source includes a plurality of colors, the light sensor responds differently to the standard white light source with different light illuminance. And dividing the illumination intensity range into different intervals from small to large to obtain a plurality of illumination intervals with different environment brightness.
Specifically, after acquiring a plurality of illumination intervals of the ambient brightness, for each illumination interval, illuminating a light sensor with a light source conforming to the illumination value of each illumination interval to acquire a corresponding brightness measurement value; and calculating the ratio of the illumination value of each illumination interval to the corresponding brightness measured value according to the illumination value of each illumination interval and the corresponding brightness measured value, so as to determine the calibration coefficient corresponding to each illumination interval and obtain the corresponding relation between the illumination intervals and the calibration coefficient.
Optionally, a light source which conforms to different illumination intervals is adopted to irradiate the light sensor, and when the light source corresponding to the minimum illumination value of the illumination interval irradiates the light sensor, the minimum value of the corresponding brightness measurement value interval is obtained; when the light sensor is irradiated by the light source corresponding to the maximum illumination value of the illumination interval, the maximum value of the corresponding brightness measurement value interval is obtained; and then obtaining a corresponding brightness measured value interval, and further obtaining a corresponding relation between the measured value interval and the illumination interval. Further, the measurement value interval where the luminance measurement value of the light sensor is located is determined according to the luminance measurement value of the light sensor obtained in step 101. And determining the illumination interval corresponding to the brightness measurement value by inquiring the corresponding relation between the measurement value interval and the illumination interval.
Further, according to an illumination interval corresponding to the luminance measurement value obtained by the light sensor, a corresponding relationship between the illumination interval and the calibration coefficient is queried, and an applicable calibration coefficient is determined.
And 103, calibrating the brightness measurement value by adopting the applicable calibration coefficient to obtain the calibration value of the ambient brightness.
Specifically, according to the calibration coefficient determined in step 102 and the luminance measurement value of the light sensor obtained in step 101, a luminance value of the actual ambient luminance, that is, a calibration value of the ambient luminance, is calculated, and then the screen backlight luminance of the electronic device is adjusted.
According to the brightness measuring method based on the light sensor, disclosed by the embodiment of the invention, the brightness measuring value of the light sensor is obtained; inquiring the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; and calibrating the brightness measured value by adopting an applicable calibration coefficient to obtain a calibration value of the ambient brightness. According to the method, the pipeline sensor is calibrated according to different illumination values to obtain different calibration coefficients, the backlight brightness is adjusted more accurately, user experience is improved, and the technical problem that the calibration deviation of the light sensor is large due to the fact that only a single light source can be adopted for calibration in the prior art is solved.
In the above embodiment, the calibration value of the ambient brightness is obtained by the brightness measurement method based on the light sensor, and the brightness of the light sensor is calibrated. In order to clearly illustrate how to calibrate the brightness of the light sensor, the present embodiment provides a brightness calibration method based on the light sensor, and the light sensor of the electronic device configuration implementing the present embodiment has the same or similar performance and structure as the light sensor of the electronic device configuration in the first embodiment. Fig. 2 is a flowchart illustrating a method for calibrating brightness based on a light sensor according to an embodiment of the present invention.
As shown in fig. 2, the method for calibrating brightness based on a light sensor may include the following steps:
step 201, a plurality of illuminance intervals of the ambient brightness are acquired.
Specifically, a standard white light source is used for calibrating the light sensor, and the light sensor responds differently to the standard white light source with different light illuminance because the standard white light source contains multiple colors. And dividing the illumination intensity range into different intervals from small to large to obtain a plurality of illumination intervals with different environment brightness.
Step 202, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness.
Specifically, at least one illuminance value T is selected from each illuminance interval aiming at a plurality of illuminance intervals of the acquired environment brightnessXIrradiating the light sensors, wherein x is the sequence of illumination intervals, the value range of x is more than or equal to 1 and less than or equal to n, and n is the total number of the illumination intervals; using illumination values T corresponding to various illumination intervalsXIlluminating the light sensor to obtain a corresponding luminance measurement value Ax
It is noted that from each oneSelecting at least one illuminance value T in each illuminance intervalXIncluding at least one or more combinations of an upper limit value of the illuminance interval, a median value of the illuminance interval, and an upper limit value of the illuminance interval.
It should be noted that, the light source corresponding to different illumination intervals is adopted to illuminate the light sensor, and when the light source corresponding to the minimum illumination value of the illumination interval illuminates the light sensor, the minimum value of the corresponding brightness measurement value interval is obtained; when the light sensor is irradiated by the light source corresponding to the maximum illumination value of the illumination interval, the maximum value of the corresponding brightness measurement value interval is obtained; and then obtaining a corresponding brightness measurement value interval.
After obtaining the brightness measured value corresponding to each illumination interval, according to the illumination value T of each illumination intervalXAnd corresponding luminance measurement AxCalculating an illuminance value T of each illuminance intervalXAnd corresponding luminance measurement AxThe ratio of (a) to (b) can be obtained to obtain the calibration coefficient L corresponding to each illumination intervalx. For example, when the light sensor is illuminated with a standard white light source, and the illuminance value of the light source is 10Lux, the luminance value measured by the light sensor is 12Lux, and the corresponding calibration coefficient Lx is (12-10)/10 × 100% ═ 20%.
Further, after the light sensor is tested for each illumination interval to obtain the calibration coefficient corresponding to each illumination interval, whether the light sensor is abnormal is identified according to the calibration coefficient corresponding to each illumination interval.
As a possible implementation manner, for each illumination interval, according to the calibration coefficient of the light sensor in the corresponding illumination interval, the corresponding calibration coefficient distribution map is queried, and the number ratio of the light sensors is determined. And identifying whether the light sensors are abnormal or not according to the quantity ratio of the light sensors inquired in each illumination interval. For example, if the duty ratio of the light sensors searched in a certain illumination interval is lower than a certain ratio, it indicates that the number of light sensors using the calibration coefficient in the corresponding illumination interval is small, and it can be determined that the light sensors are deviated from the central value in the illumination interval, and the probability of abnormality is high.
The calibration coefficient distribution map is obtained by obtaining the number of the light sensors with different calibration coefficients for each illumination interval according to the calibration coefficients of the light sensors in the corresponding illumination interval. The abscissa of the calibration coefficient distribution diagram is each illumination interval, and the ordinate is the number of the light sensors which accord with different calibration coefficients in the corresponding illumination interval. The distribution map is used for indicating the number of the light sensors which accord with different calibration coefficients in the corresponding illumination interval.
As a possible implementation manner, whether the light sensor is abnormal or not is identified according to whether the calibration coefficient corresponding to each illumination interval is within a preset coefficient range or not. The preset coefficient range is a coefficient range in which the light sensor is judged to be not abnormal after the calibration coefficient corresponding to the illumination interval calibrates the brightness measurement value of the light sensor. For example, if the duty ratio of the light sensor found in a certain illuminance interval is greater than a predetermined number of illuminance intervals, and the calibration coefficient is not within the predetermined coefficient range, it can be determined that the light sensor is abnormal.
According to the brightness calibration method based on the light sensor, after a plurality of illumination intervals of the ambient brightness are obtained, the light sensor is tested for each illumination interval, and the calibration coefficient corresponding to each illumination interval is obtained; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. According to the method, the light sensor is tested through a plurality of illumination intervals, a more accurate calibration coefficient is obtained, and the technical problem that the calibration deviation of the light sensor is large due to the fact that only a single light source can be adopted for calibration in the prior art is solved.
In order to implement the above embodiments, the present invention further provides a brightness measuring device based on the light sensor.
Fig. 3 is a schematic structural diagram of a luminance measuring apparatus based on a light sensor according to an embodiment of the present invention.
As shown in fig. 3, the light sensor-based luminance measuring apparatus includes: an acquisition module 310, a query module 320, and a calibration module 330.
The obtaining module 310 is configured to obtain a luminance measurement value of the light sensor.
Specifically, the light sensor detects the light intensity of the surrounding environment through the obtaining module 310, and obtains the luminance measured value of the light sensor.
The query module 320 is configured to query a corresponding relationship between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measurement value, and determine an applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, the corresponding relationship between the illumination intervals and the calibration coefficients is to test the light sensor for each illumination interval to obtain the calibration coefficients corresponding to each illumination interval.
Specifically, after acquiring a plurality of illumination intervals of the ambient brightness, for each illumination interval, illuminating a light sensor with a light source conforming to the illumination value of each illumination interval to acquire a corresponding brightness measurement value; and calculating the ratio of the illumination value of each illumination interval to the corresponding brightness measured value according to the illumination value of each illumination interval and the corresponding brightness measured value, so as to determine the calibration coefficient corresponding to each illumination interval and obtain the corresponding relation between the illumination intervals and the calibration coefficient.
Specifically, light sources according with different illumination intervals are adopted to irradiate the light sensors, and when the light source corresponding to the minimum illumination value of the illumination interval irradiates the light sensors, the minimum value of the corresponding brightness measurement value interval is obtained; when the light sensor is irradiated by the light source corresponding to the maximum illumination value of the illumination interval, the maximum value of the corresponding brightness measurement value interval is obtained; and then obtaining a corresponding brightness measured value interval, and further obtaining a corresponding relation between the measured value interval and the illumination interval. And judging the measurement value interval in which the light sensor is positioned according to the obtained brightness measurement value of the light sensor, inquiring the corresponding relation between the measurement value interval and the illumination interval, and determining the illumination interval corresponding to the brightness measurement value.
To be further described, according to the illumination interval corresponding to the brightness measurement value obtained by the light sensor, the query module 320 queries the corresponding relationship between the illumination interval and the calibration coefficient, and determines the applicable calibration coefficient.
The calibration module 330 is configured to calibrate the brightness measurement value by using an applicable calibration coefficient to obtain a calibration value of the ambient brightness.
Specifically, the query module 320 queries the correspondence between the query illumination interval and the calibration coefficient to determine an applicable calibration coefficient. The calibration module 330 calibrates the brightness measurement value by using an applicable calibration coefficient to obtain a calibration value of the ambient brightness, and further adjusts the screen backlight brightness of the electronic device.
The brightness measuring device based on the light sensor of the embodiment of the invention obtains the brightness measured value of the light sensor; inquiring the corresponding relation between the illumination interval and the calibration coefficient according to the illumination interval corresponding to the brightness measured value, and determining the applicable calibration coefficient; after acquiring a plurality of illumination intervals of the ambient brightness, testing the light sensor for each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; and calibrating the brightness measured value by adopting an applicable calibration coefficient to obtain a calibration value of the ambient brightness. According to the method, the pipeline sensor is calibrated according to different illumination values to obtain different calibration coefficients, the backlight brightness is adjusted more accurately, user experience is improved, and the technical problem that the calibration deviation of the light sensor is large due to the fact that only a single light source can be adopted for calibration in the prior art is solved.
It should be noted that the foregoing explanation of the embodiment of the brightness measuring method based on the light sensor is also applicable to the brightness measuring apparatus based on the light sensor of the embodiment, and is not repeated herein.
In order to implement the above embodiments, the present invention further provides a luminance calibration apparatus based on the light sensor. Fig. 4 is a schematic structural diagram of a luminance calibration apparatus based on a light sensor according to an embodiment of the present invention.
As shown in fig. 4, the light sensor-based brightness calibration apparatus includes: an acquisition module 410 and a test module 420.
The obtaining module 410 is configured to obtain a plurality of illuminance intervals of the ambient brightness.
Specifically, a standard white light source is used for calibrating the light sensor, and the light sensor responds differently to the standard white light source with different light illuminance because the standard white light source contains multiple colors. The illumination intensity range is divided into different regions from small to large, and the obtaining module 410 obtains a plurality of illumination regions with different environmental brightness.
The test module 420 is configured to test each illumination interval of the light sensor to obtain a calibration coefficient corresponding to each illumination interval; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness.
Specifically, for a plurality of illuminance intervals of the acquired ambient brightness, the testing module 420 selects at least one illuminance value T corresponding to each illuminance interval from each illuminance intervalXIlluminating the light sensor to obtain a corresponding luminance measurement value Ax. Calculating illumination value T of each illumination intervalXAnd corresponding luminance measurement AxThe ratio of (a) to (b) can be obtained to obtain the calibration coefficient L corresponding to each illumination intervalx. The calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness.
According to the brightness calibration device based on the light sensor, disclosed by the embodiment of the invention, after a plurality of illumination intervals of the ambient brightness are obtained, the light sensor is tested for each illumination interval, so that the calibration coefficient corresponding to each illumination interval is obtained; the calibration coefficient is used for calibrating the brightness measurement value of the light sensor to obtain the calibration value of the ambient brightness. According to the method, the light sensor is tested through a plurality of illumination intervals, a more accurate calibration coefficient is obtained, and the technical problem that the calibration deviation of the light sensor is large due to the fact that only a single light source can be adopted for calibration in the prior art is solved.
It should be noted that the foregoing explanation of the embodiment of the brightness calibration method based on a light sensor is also applicable to the brightness calibration device based on a light sensor of this embodiment, and is not repeated herein.
In order to implement the foregoing embodiment, the present invention further provides an electronic device 500, and as shown in fig. 5, an internal structural diagram of the electronic device 500 in an embodiment is shown, where the electronic device 500 includes: the present invention relates to a light sensor 510, a memory 520, a processor 530 and a computer program stored in the memory 520 and executable on the processor 530, wherein the processor 530 executes the program to implement the method for measuring brightness based on the light sensor according to the first embodiment or to implement the method for calibrating brightness based on the light sensor according to the second embodiment.
In order to achieve the above embodiments, the present invention further provides a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor, are configured to perform the method for measuring brightness based on a light sensor according to the first aspect or perform the method for calibrating brightness based on a light sensor according to the second aspect.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (6)

1. A method for calibrating brightness based on a light sensor, the method comprising the steps of:
acquiring a plurality of illumination intervals of the environment brightness, wherein the illumination intervals are divided into different intervals from small to large according to the illumination intensity range to obtain a plurality of illumination intervals of different environment brightness, and the light sensor has different responses to standard white light sources with different light illumination;
testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval;
identifying whether the light sensor is abnormal or not according to the calibration coefficient corresponding to each illumination interval; acquiring a calibration coefficient distribution diagram of each illumination interval; the calibration coefficient distribution map is obtained by obtaining the number of the light sensors with different calibration coefficients according to the calibration coefficients of the light sensors in the corresponding illumination intervals for each illumination interval, and the calibration coefficient distribution map is used for indicating the number ratio of the light sensors which accord with different calibration coefficients in the corresponding illumination intervals; for each illumination interval, inquiring a corresponding calibration coefficient distribution diagram according to the calibration coefficient of the light sensor in the corresponding illumination interval, and determining the number ratio of the light sensors; if the number ratio of the light sensors is smaller than a certain ratio, identifying that the light sensors are abnormal;
and calibrating the brightness measurement value of the light sensor according to the calibration coefficient to obtain the calibration value of the ambient brightness.
2. The method for calibrating brightness according to claim 1, wherein the step of testing the light sensor for each illumination interval to obtain the calibration coefficient corresponding to each illumination interval comprises:
taking at least one illumination value T from each illumination intervalX(ii) a Wherein x is the sequence of the illumination intervals, the value range of x is more than or equal to 1 and less than or equal to n, and n is the total number of the illumination intervals;
using illumination values T corresponding to various illumination intervalsXIlluminating the light sensor to obtain a corresponding brightness measurement value Ax
According to the illuminance value T of each illuminance intervalXAnd corresponding luminance measurement AxDetermining a calibration coefficient L corresponding to each illumination intervalx
3. Method for luminance calibration according to claim 1, characterized in that at least one luminance value TXThe illumination device comprises at least one or more combinations of an upper limit value of an illumination interval, a median value of the illumination interval and the upper limit value of the illumination interval; using illumination values T corresponding to various illumination intervalsXIlluminating the light sensor to obtain a corresponding brightness measurement value AxThen, the method further comprises the following steps:
aiming at each illumination interval, determining a measurement value interval corresponding to each illumination interval according to a brightness measurement value corresponding to an upper limit value and a brightness detection value corresponding to a lower limit value; the lower limit of the measurement value interval is a brightness detection value corresponding to the lower limit, and the upper limit of the measurement value interval is a brightness detection value corresponding to the upper limit.
4. A light sensor-based brightness calibration device, the device comprising:
the system comprises an acquisition module, a light sensor and a control module, wherein the acquisition module is used for acquiring a plurality of illumination intervals of the environment brightness, the illumination intervals are divided into different intervals according to the illumination intensity range from small to large to obtain a plurality of illumination intervals of different environment brightness, and the light sensor has different responses to standard white light sources with different light illumination;
the test module is used for testing the light sensor aiming at each illumination interval to obtain a calibration coefficient corresponding to each illumination interval; identifying whether the light sensor is abnormal or not according to the calibration coefficient corresponding to each illumination interval; acquiring a calibration coefficient distribution diagram of each illumination interval; the calibration coefficient distribution map is obtained by obtaining the number of the light sensors with different calibration coefficients according to the calibration coefficients of the light sensors in the corresponding illumination intervals for each illumination interval, and the calibration coefficient distribution map is used for indicating the number ratio of the light sensors which accord with different calibration coefficients in the corresponding illumination intervals; for each illumination interval, inquiring a corresponding calibration coefficient distribution diagram according to the calibration coefficient of the light sensor in the corresponding illumination interval, and determining the number ratio of the light sensors; if the number ratio of the light sensors is smaller than a certain ratio, identifying that the light sensors are abnormal;
and calibrating the brightness measurement value of the light sensor according to the calibration coefficient to obtain the calibration value of the ambient brightness.
5. An electronic device, comprising: light sensor, a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the light sensor based brightness calibration method according to any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for light sensor-based brightness calibration according to any one of claims 1-3.
CN201810531261.4A 2018-05-29 2018-05-29 Brightness measuring and calibrating method and device based on light sensor and electronic equipment Expired - Fee Related CN108775958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810531261.4A CN108775958B (en) 2018-05-29 2018-05-29 Brightness measuring and calibrating method and device based on light sensor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810531261.4A CN108775958B (en) 2018-05-29 2018-05-29 Brightness measuring and calibrating method and device based on light sensor and electronic equipment

Publications (2)

Publication Number Publication Date
CN108775958A CN108775958A (en) 2018-11-09
CN108775958B true CN108775958B (en) 2020-12-29

Family

ID=64027968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810531261.4A Expired - Fee Related CN108775958B (en) 2018-05-29 2018-05-29 Brightness measuring and calibrating method and device based on light sensor and electronic equipment

Country Status (1)

Country Link
CN (1) CN108775958B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109283192A (en) * 2018-11-20 2019-01-29 苏州精濑光电有限公司 Illumination auto-correction method, apparatus and system
CN110660087B (en) * 2019-08-16 2022-05-13 深圳市万普拉斯科技有限公司 Light sensation correction method and device, electronic equipment and storage medium
CN112710383A (en) * 2019-10-24 2021-04-27 北京小米移动软件有限公司 Light sensor calibration method and device and storage medium
CN111207825B (en) * 2020-01-10 2023-02-07 Oppo(重庆)智能科技有限公司 Electronic equipment testing device capable of automatically calibrating and testing device calibration method
CN112577599A (en) * 2020-12-23 2021-03-30 昆山龙腾光电股份有限公司 Calibration method and calibration device for optical sensor and display module
CN113091890A (en) * 2021-03-22 2021-07-09 北京小米移动软件有限公司 Calibration method of optical sensor, optical sensor and electronic device with optical sensor
CN113643673B (en) * 2021-07-22 2022-11-01 武汉华星光电技术有限公司 Ambient light detection method and device and display device
CN113758563A (en) * 2021-09-24 2021-12-07 京东方科技集团股份有限公司 Brightness detection method and device
CN114136588B (en) * 2021-10-29 2022-09-20 中国家用电器研究院 System and method for testing light brightness of household appliance operation interface
CN116075019B (en) * 2023-03-27 2023-06-13 厦门普为光电科技有限公司 Illuminance calibration device and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862334A (en) * 2005-05-11 2006-11-15 英华达(上海)电子有限公司 Hand-held automatic apparatus for regulating backlight brightness and effect and method thereof
CN104296864A (en) * 2014-09-05 2015-01-21 湖北开特汽车电子电器系统股份有限公司 Ambient light sensor based on LIN bus and online proving, calibrating and transmitting method
CN104575448A (en) * 2015-02-12 2015-04-29 广东欧珀移动通信有限公司 Backlight adjustment method and backlight adjustment device for display device
CN106484354A (en) * 2016-10-31 2017-03-08 维沃移动通信有限公司 A kind of display brightness method of adjustment and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862334A (en) * 2005-05-11 2006-11-15 英华达(上海)电子有限公司 Hand-held automatic apparatus for regulating backlight brightness and effect and method thereof
CN104296864A (en) * 2014-09-05 2015-01-21 湖北开特汽车电子电器系统股份有限公司 Ambient light sensor based on LIN bus and online proving, calibrating and transmitting method
CN104575448A (en) * 2015-02-12 2015-04-29 广东欧珀移动通信有限公司 Backlight adjustment method and backlight adjustment device for display device
CN106484354A (en) * 2016-10-31 2017-03-08 维沃移动通信有限公司 A kind of display brightness method of adjustment and mobile terminal

Also Published As

Publication number Publication date
CN108775958A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN108775958B (en) Brightness measuring and calibrating method and device based on light sensor and electronic equipment
CN107233082B (en) Infrared thermal imaging detection system
CN109297587B (en) Calibration method and device for optical sensor
KR102012219B1 (en) Apparatus and method for measuring skin color
CN113194303A (en) Image white balance method, device, electronic equipment and computer readable storage medium
CN105928895A (en) Systems And Methods For Wavelength Spectrum Analysis For Detection Of Various Gases By Using Treated Tape
JP2012150096A (en) Method and system for automatically determining test paper
JP4805919B2 (en) Multi-gain data processing
CN110736807A (en) Method for detecting gas concentration and gas detection device
CN110441509B (en) Calibration method and device for immunoreactant detection and terminal equipment
CN113804232A (en) Sensor calibration method and device and terminal equipment
JP7236612B2 (en) Inspection method, program and inspection system
CN112437202A (en) Data processing method, processing device, image processing system and processor
US20110056847A1 (en) Ion concentration measurement system and methods thereof
CN108362650B (en) Liquid chromaticity detection method and device
EP3745122A3 (en) X-ray analyzer
US20120265469A1 (en) Calibration method and device
CN116412907A (en) Calibration method and device for ambient light sensor and storage medium
US7314311B2 (en) Method for testing the quality of a detector module for an x-ray computer tomograph
CN106131311A (en) Adjust the method for screen backlight brightness, device and the mobile terminal of mobile terminal
CN210802381U (en) Cable conductor comprehensive tester
TW201344163A (en) Method of calibrating ambient light sensor and its system
KR20180006814A (en) Medical Monitor having Automatic Adjust Function
CN112710684B (en) Sensor gray level correction method and device and foreign matter detector
CN110687296A (en) Glucometer calibration method

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201229