[go: up one dir, main page]

CN114117324B - Correction method for sensing parameters of light sensor, electronic equipment and storage medium - Google Patents

Correction method for sensing parameters of light sensor, electronic equipment and storage medium Download PDF

Info

Publication number
CN114117324B
CN114117324B CN202111367680.7A CN202111367680A CN114117324B CN 114117324 B CN114117324 B CN 114117324B CN 202111367680 A CN202111367680 A CN 202111367680A CN 114117324 B CN114117324 B CN 114117324B
Authority
CN
China
Prior art keywords
brightness
luminance
section
detected
fitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111367680.7A
Other languages
Chinese (zh)
Other versions
CN114117324A (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.)
BOE Technology Group Co Ltd
Beijing BOE Display Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing BOE Display 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 BOE Technology Group Co Ltd, Beijing BOE Display Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111367680.7A priority Critical patent/CN114117324B/en
Publication of CN114117324A publication Critical patent/CN114117324A/en
Application granted granted Critical
Publication of CN114117324B publication Critical patent/CN114117324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Operations Research (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Algebra (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Sustainable Development (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a correction method of a sensing parameter of a light sensor, electronic equipment and a storage medium, wherein the correction method comprises the steps of respectively obtaining detection brightness corresponding to the light sensor under different environment brightness; dividing a brightness interval covering each detected brightness into more than two brightness sections to obtain a first brightness fitting curve of each corresponding brightness section; judging whether the measurement accuracy of each brightness section is smaller than an accuracy threshold value or not; for a brightness section with the measurement accuracy greater than or equal to the accuracy threshold, using an analytic function of a corresponding first brightness fitting curve as a first brightness calculation function of the brightness section; and for the brightness section with the measurement accuracy smaller than the accuracy threshold, correcting the corresponding first brightness fitting curve to obtain a second brightness fitting curve, and taking an analytical function of the second brightness fitting curve as a second brightness calculation function of the brightness section. The scheme can improve the sensing accuracy of the light sensor.

Description

Correction method for sensing parameters of light sensor, electronic equipment and storage medium
Technical Field
The present invention relates generally to the field of display technologies, and in particular, to a method for correcting a sensing parameter of a light sensor, an electronic device, and a storage medium.
Background
At present, the same parameter is generally adopted to deal with the brightness calculation of the light sensor in all the modules. Because the production of different module production lines has the difference, the parameter of the light sensor in different modules also can be different, then, under the same external brightness, the induced current that the light sensor in different modules inducted is also different, then, based on the same parameter, the brightness calculation is carried out, different brightness results can be obtained, and for the light sensor which is not matched with the same parameter, the deviation between the induced value and the actual environment brightness is larger.
Disclosure of Invention
The application provides a correction method of sensing parameters of a light sensor, electronic equipment and a storage medium, which are at least used for solving the problem that the sensing values of different light sensors, which are not matched with the same parameters, have larger deviation from the actual environment brightness due to the fact that the same sensing parameters are adopted by different light sensors.
In a first aspect, the present invention provides a method for correcting a luminance calculation parameter of a light sensor, including:
Respectively obtaining detection brightness corresponding to the light sensor under different environment brightness;
Dividing a brightness interval covering each detected brightness into more than two brightness sections, wherein each brightness section comprises a plurality of detected brightness, and fitting the detected brightness and the corresponding environment brightness in each brightness section respectively to obtain a first brightness fitting curve of each corresponding brightness section;
Determining measurement accuracy of each brightness section based on the detected brightness and the corresponding ambient brightness in each brightness section, and judging whether the measurement accuracy is smaller than an accuracy threshold;
For the brightness section with the measurement accuracy greater than or equal to the accuracy threshold, using the analytic function of the corresponding first brightness fitting curve as a first brightness calculation function of the brightness section;
And for the brightness section with the measurement accuracy smaller than the accuracy threshold, correcting the corresponding first brightness fitting curve to obtain a second brightness fitting curve, and taking an analytical function of the second brightness fitting curve as a second brightness calculation function of the brightness section.
As an implementation manner, the correcting the first brightness fitting curve corresponding to the brightness section with the measurement accuracy smaller than the accuracy threshold value to obtain a second brightness fitting curve specifically includes:
And for the brightness section with the measurement accuracy smaller than the accuracy threshold, removing isolated noise points of the brightness section, and fitting with the rest of the detected brightness and the corresponding ambient brightness to obtain a second brightness fitting curve of the brightness section.
As an implementation manner, it is determined whether the distance between each coordinate point represented by the detected luminance and the corresponding ambient luminance in the luminance section and the first luminance fitting curve is greater than a distance threshold, and if yes, the corresponding coordinate point is the isolated noise point.
As an implementation manner, the detected brightness and the corresponding ambient brightness in each brightness section are fitted through a least square curve, the first brightness fitting curve of each corresponding brightness section is obtained, after the isolated noise points are removed through the least square curve pair, the rest of the detected brightness and the corresponding ambient brightness are fitted, and the second brightness fitting curve of the brightness section is obtained.
As an implementation manner, before the analytical function of the curve fitted with the second brightness is used as the second brightness calculation function of the brightness section, the method further includes:
Determining the measurement accuracy of the brightness section according to the rest detection brightness and the corresponding environment brightness, and judging whether the measurement accuracy is smaller than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the brightness section;
If yes, the module with the light sensor is not qualified.
As an implementation manner, the correcting the first brightness fitting curve corresponding to the brightness section with the measurement accuracy smaller than the accuracy threshold value to obtain a second brightness fitting curve specifically includes:
Dividing a predetermined number of the detected luminances at both ends of the luminance section into luminance sections adjacent to the luminance section for the luminance section having the measurement accuracy smaller than the accuracy threshold to obtain luminance sections into which the luminance section is re-divided; or dividing a predetermined number of the detected brightness in the brightness interval adjacent to the two ends of the brightness interval into the brightness interval to obtain a brightness section divided again by the brightness section;
Fitting the detected brightness of the repartitioned brightness section and the corresponding environment brightness to obtain a second brightness fitting curve of the repartitioned brightness section, and using an analytic function of the second brightness fitting curve as a second brightness calculating function of the repartitioned brightness section.
As an implementation manner, the detected luminance and the corresponding ambient luminance in each luminance section are fitted through a least square curve, the first luminance fitting curve of each corresponding luminance section is obtained, and the detected luminance and the corresponding ambient luminance of the repartitioned luminance section are fitted through a least square curve, so that the second luminance fitting curve of the repartitioned luminance section is obtained.
As an implementation manner, judging whether the distance between each coordinate point represented by the detected brightness and the corresponding ambient brightness in the brightness section and the first brightness fitting curve is greater than a distance threshold value, if so, the corresponding coordinate point is an isolated noise point; and replacing the isolated noise point by at least one average value of the detected brightness and the corresponding ambient brightness at the two ends of the isolated noise point, and performing least square curve fitting on each detected brightness and the corresponding ambient brightness in the brightness section after replacing the isolated noise point.
As an implementation manner, before the parsing function of the curve fitted with the second luminance, as a second luminance calculating function of the repartitioned luminance section, the method further includes:
determining a measurement accuracy of the repartitioned luminance section with the detected luminance and the corresponding ambient luminance within the repartitioned luminance section, and judging whether the measurement accuracy is less than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the repartitioned brightness section;
If yes, the module with the light sensor is not qualified.
As an implementation manner, the analytical function of the first brightness fitting curve is:
y=ax+b;
Wherein, X i is the i-th detected luminance in any luminance section, y i is the ambient luminance corresponding to x i, i is a natural number, and n is the number of detected luminances in the luminance section.
As an achievable way, the distance D is determined according to the following relation:
As an achievable way, the measurement accuracy R 2 is determined according to the following relation:
SSE=SST-SSR
wherein y' i is the predicted luminance corresponding to the i-th detected luminance in any one of the luminance sections, For the average of the prediction values within any of the luminance segments, y i is the ambient luminance corresponding to y' i,Is the average value of the ambient brightness.
In a second aspect, the present invention provides an electronic device comprising: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method of correcting a luminance calculation parameter of a light sensor as described above.
In a third aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program for implementing the above-described correction method of a luminance calculation parameter of a photosensor.
According to the scheme, for each light sensor, a brightness interval covering the corresponding detection brightness of the light sensor under different environment brightness is divided into more than two brightness sections, whether the measurement accuracy of each brightness section is smaller than an accuracy threshold value or not is determined, and for the brightness sections with the measurement accuracy being larger than or equal to the accuracy threshold value, the detection brightness obtained by adopting the existing parameters of the corresponding brightness section is proved to meet the requirement, and the adopted parameters are the analytic function of a first brightness fitting curve corresponding to the corresponding brightness section; and for the brightness section with the measurement accuracy smaller than the accuracy threshold, the condition that the detected brightness obtained by adopting the existing parameters for the corresponding brightness section is not satisfactory is indicated, then the corresponding first brightness fitting curve is corrected to obtain a second brightness fitting curve, and the analytic function of the second brightness fitting curve is used as the second brightness calculation function of the brightness section. The brightness intervals covering the corresponding detection brightness of the light sensor under different environment brightness are divided into a plurality of brightness sections, the brightness sections with the measurement accuracy smaller than the accuracy threshold value are corrected, and finally the brightness calculation is carried out by using the first brightness calculation function and the second brightness calculation function corresponding to each brightness interval of the light sensor, namely, the sensing parameters matched with each light sensor are arranged corresponding to each light sensor, so that the accuracy of the sensing value of the light sensor is ensured.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flowchart of a method for correcting a luminance calculation parameter of a light sensor according to an embodiment of the present invention;
FIG. 2 is a graph showing a comparison of a first luminance fitting curve with an ideal curve with isolated noise points;
FIG. 3 is a graph comparing a second luminance fitting curve with an ideal curve, with isolated noise points removed;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
As shown in fig. 1, an embodiment of the present invention provides a method for correcting a brightness calculation parameter of a light sensor, including:
S1: respectively obtaining detection brightness corresponding to the light sensor under different environment brightness; the light sensor is a photosensitive device, and has different ambient brightness, so that currents with different magnitudes can be induced and the higher the ambient brightness is, the larger the current generated by the light sensor is; for example, the detected brightness corresponding to the current magnitude may be determined according to the correspondence between the current and the brightness.
S2: dividing a brightness interval covering each detected brightness into more than two brightness sections, wherein each brightness section comprises a plurality of detected brightness, and fitting the detected brightness and the corresponding environment brightness in each brightness section respectively to obtain a first brightness fitting curve of each corresponding brightness section;
in general, the more the tested ambient brightness is, the larger the brightness span is, and the corresponding accuracy is relatively high, so that the number of the ambient brightness and the brightness span between dark and bright ambient brightness can be determined according to actual needs.
The luminance spans of the two or more luminance sections may be the same or different, and the number of detected luminances included in each luminance section may be the same or different. For example, but not limited to, one of the luminance segments is 1-11 and the other luminance segment is 12-22, i.e., the luminance spans of the two luminance segments are equal, both 10.
In the first luminance fitting curve, the abscissa represents the detected luminance and the ordinate represents the ambient luminance.
S3: determining measurement accuracy of each brightness section based on the detected brightness and the corresponding ambient brightness in each brightness section, and judging whether the measurement accuracy is smaller than an accuracy threshold;
The brightness section measuring accuracy and the accuracy threshold value are judged to determine whether a brightness section needing to be corrected exists and which brightness section needs to be corrected. The accuracy threshold may be determined according to practical needs, for example, but not limited to, 99%, etc., which is used to represent the proximity of the detected brightness within the brightness section to the corresponding ambient brightness.
S4: for the brightness section with the measurement accuracy greater than or equal to the accuracy threshold, using the analytic function of the corresponding first brightness fitting curve as a first brightness calculation function of the brightness section;
S5: and for the brightness section with the measurement accuracy smaller than the accuracy threshold, correcting the corresponding first brightness fitting curve to obtain a second brightness fitting curve, and taking an analytical function of the second brightness fitting curve as a second brightness calculation function of the brightness section.
According to the scheme, for each light sensor, a brightness interval covering the corresponding detection brightness of the light sensor under different environment brightness is divided into more than two brightness sections, whether the measurement accuracy of each brightness section is smaller than an accuracy threshold value or not is determined, and for the brightness sections with the measurement accuracy being larger than or equal to the accuracy threshold value, the detection brightness obtained by adopting the existing parameters of the corresponding brightness section is proved to meet the requirement, and the adopted parameters are the analytic function of a first brightness fitting curve corresponding to the corresponding brightness section; and for the brightness section with the measurement accuracy smaller than the accuracy threshold, the condition that the detected brightness obtained by adopting the existing parameters for the corresponding brightness section is not satisfactory is indicated, then the corresponding first brightness fitting curve is corrected to obtain a second brightness fitting curve, and the analytic function of the second brightness fitting curve is used as the second brightness calculation function of the brightness section. The brightness intervals covering the corresponding detection brightness of the light sensor under different environment brightness are divided into a plurality of brightness sections, the brightness sections with the measurement accuracy smaller than the accuracy threshold value are corrected, and finally the brightness calculation is carried out by using the first brightness calculation function and the second brightness calculation function corresponding to each brightness interval of the light sensor, namely, the sensing parameters matched with each light sensor are arranged corresponding to each light sensor, so that the accuracy of the sensing value of the light sensor is ensured.
As an implementation manner, the correcting the first brightness fitting curve corresponding to the brightness section with the measurement accuracy smaller than the accuracy threshold value to obtain a second brightness fitting curve specifically includes:
And for the brightness section with the measurement accuracy smaller than the accuracy threshold, removing isolated noise points of the brightness section, and fitting with the rest of the detected brightness and the corresponding ambient brightness to obtain a second brightness fitting curve of the brightness section. By removing the isolated noise points, a second brightness fitting curve of the brightness section is formed by re-fitting, and the analytical function of the second brightness fitting curve is used as a second brightness calculation function of the brightness section, so that the accuracy of the brightness section detection can be ensured.
As an implementation manner, it is determined whether the distance between each coordinate point represented by the detected luminance and the corresponding ambient luminance in the luminance section and the first luminance fitting curve is greater than a distance threshold, and if yes, the corresponding coordinate point is the isolated noise point.
As an implementation manner, the detected brightness and the corresponding ambient brightness in each brightness section are fitted through a least square curve, the first brightness fitting curve of each corresponding brightness section is obtained, after the isolated noise points are removed through the least square curve pair, the rest of the detected brightness and the corresponding ambient brightness are fitted, and the second brightness fitting curve of the brightness section is obtained.
As an implementation manner, before the analytical function of the curve fitted with the second brightness is used as the second brightness calculation function of the brightness section, the method further includes:
Determining the measurement accuracy of the brightness section according to the rest detection brightness and the corresponding environment brightness, and judging whether the measurement accuracy is smaller than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the brightness section;
If yes, the module with the light sensor is not qualified.
As an implementation manner, the correcting the first brightness fitting curve corresponding to the brightness section with the measurement accuracy smaller than the accuracy threshold value to obtain a second brightness fitting curve specifically includes:
dividing a predetermined number of the detected luminances at both ends of the luminance section into luminance sections adjacent to the luminance section for the luminance section having the measurement accuracy smaller than the accuracy threshold to obtain luminance sections into which the luminance section is re-divided; or dividing a predetermined number of the detected brightness in the brightness interval adjacent to the two ends of the brightness interval into the brightness interval to obtain a brightness section divided again by the brightness section; that is, the brightness section with the measurement accuracy smaller than the accuracy threshold is reduced or expanded, and the detected brightness and the corresponding ambient brightness after the brightness section is reduced or expanded are fitted as follows.
Fitting the detected brightness of the repartitioned brightness section and the corresponding environment brightness to obtain a second brightness fitting curve of the repartitioned brightness section, and using an analytic function of the second brightness fitting curve as a second brightness calculating function of the repartitioned brightness section.
As an implementation manner, the detected luminance and the corresponding ambient luminance in each luminance section are fitted through a least square curve, the first luminance fitting curve of each corresponding luminance section is obtained, and the detected luminance and the corresponding ambient luminance of the repartitioned luminance section are fitted through a least square curve, so that the second luminance fitting curve of the repartitioned luminance section is obtained.
As an implementation manner, judging whether the distance between each coordinate point represented by the detected brightness and the corresponding ambient brightness in the brightness section and the first brightness fitting curve is greater than a distance threshold value, if so, the corresponding coordinate point is an isolated noise point; and replacing the isolated noise point by at least one average value of the detected brightness and the corresponding ambient brightness at the two ends of the isolated noise point, and performing least square curve fitting on each detected brightness and the corresponding ambient brightness in the brightness section after replacing the isolated noise point.
As an implementation manner, before the parsing function of the curve fitted with the second luminance, as a second luminance calculating function of the repartitioned luminance section, the method further includes:
determining a measurement accuracy of the repartitioned luminance section with the detected luminance and the corresponding ambient luminance within the repartitioned luminance section, and judging whether the measurement accuracy is less than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the repartitioned brightness section;
If yes, the module with the light sensor is not qualified.
As an implementation manner, the analytical function of the first brightness fitting curve is:
y=ax+b;
Wherein, X i is the i-th detected luminance in any luminance section, y i is the ambient luminance corresponding to x i, i is a natural number, and n is the number of detected luminances in the luminance section.
It should be noted that, the ambient brightness may be obtained by measurement of an illuminometer, which indicates the current brightness of the measured environment; the detection brightness is a brightness value measured and obtained by the light sensor under the current brightness environment before the correction of the calculation parameters; the predicted luminance is a luminance value (i.e., a luminance value with high measurement accuracy that is expected to be obtained) measured and obtained by the light sensor in the current luminance environment, and the predicted luminance can be obtained by calculating a final analytic function after correcting the calculation parameters of the corresponding luminance segment.
As an achievable way, the distance D is determined according to the following relation:
As an achievable way, the measurement accuracy R 2 is determined according to the following relation:
SSE=SST-SSR
wherein y' i is the predicted luminance corresponding to the i-th detected luminance in any one of the luminance sections, For the average of the prediction values within any of the luminance segments, y i is the ambient luminance corresponding to y' i,Is the average value of the ambient brightness.
In the following, a method for correcting the brightness calculation parameter of the light sensor is described as an example, and is not a unique limitation of the scheme of the present application.
The light sensor is arranged in the display module, when the brightness calculation parameter is corrected, the display module is arranged in the detection space, the brightness in the detection space can be changed according to the detection requirement, the corresponding ambient brightness is detected through the illuminometer, and the detection brightness corresponding to the ambient brightness is detected through the light sensor.
The brightness interval covering all the detected brightness is divided into a plurality of brightness sections, each brightness section comprises a plurality of detected brightness, in this example, 10 detected brightness and 10 corresponding ambient brightness are represented as coordinates, for example, 10 detected brightness and 10 corresponding ambient brightness in a certain brightness section are marked as (0.98,1.15),(1.95,2.05),(2.99,3.05),(3.98,4.15),(4.6, 5.8),(5.99,6.01),(7.0,7.05),(8.03,8.15),(8.98,8.99),(10.00, 10),, wherein the former number in each coordinate is the detected brightness, and the latter number is the ambient brightness.
Performing least square curve fitting on the detected brightness and the corresponding ambient brightness in each brightness section to obtain a first brightness fitting curve of each corresponding brightness section, wherein the analytic function of the first brightness fitting curve is as follows:
y=ax+b;
Wherein, X i is the i-th detected luminance in any luminance section, y i is the ambient luminance corresponding to x i, i is a natural number, and n is the number of detected luminances in the luminance section.
Taking the above 10 detection brightnesses and their corresponding 10 ambient brightnesses as examples:
∑xiyi=(0.98×1.15)+(1.95×2.05)+(2.99×3.05)+ (3.98×4.15)+(4.6×5.8)+(5.99×6.01)+(7.0×7.05)+(8.03× 8.15)+(8.98×8.99)+(10×10)=388.9656;
∑xi=0.98+1.95+2.99+3.98+4.6+5.99+7+8.03+8.98+ 10=54.5;
∑yi=1.15+2.05+3.05+4.15+5.8+6.01+7.05+8.15+ 8.99+10=56.4;
(∑xi)2=54.52=2970.25;
a≈0.9750,b≈0.3264;
the luminance segment's resolution function is y=0.9750x+0.3264.
And determining the measurement accuracy of each brightness section based on the detected brightness and the corresponding ambient brightness in each brightness section, and judging whether the measurement accuracy is smaller than an accuracy threshold. The measurement accuracy R 2 is determined according to the following relation:
SSE=SST-SSR
wherein y' i is the predicted luminance corresponding to the i-th detected luminance in any one of the luminance sections, For the average of the prediction values within any of the luminance segments, y i is the ambient luminance corresponding to y' i,Is the average value of the ambient brightness.
Still taking the above-mentioned luminance segment as an example,
The predicted luminance corresponding to the 10 ambient luminance is 1.2819,2.2277,3.2417,4.2069,4.8114,6.1667,7.1514, 8.1557,9.0819, 10.0764 in order based on the analysis function of the luminance segment= (1.2819+2.2277+3.2417+4.2069+4.8114+6.1667+7.1514+8.1557+9.081 9+10.0764)/10≈5.64;
SSR=(1.2819-5.64)2+(2.2277-5.64)2+(3.2417-5.64)2+(4.2069-5.64)2+ (4.8114-5.64)2+(6.1667-5.64)2+(7.1514-5.64)2+(8.1557-5.64)2+ (9.0819-5.64)2+(10.0764-5.64)2≈79.5481;
SST=(1.15-5.64)2+(2.05-5.64)2+(3.05-5.64)2+(4.15-5.64)2+ (5.8-5.64)2+(6.01-5.64)2+(7.05-5.64)2+(8.15-5.64)2+(8.99-5.64)2+ (10-5.64)2≈80.6592;
R 2 is approximately 98.62%, and if the accuracy threshold is 99%, the brightness section needs to be corrected.
When the brightness section is corrected, according to whether the distance between each coordinate point represented by the detected brightness and the corresponding ambient brightness in the brightness section and the first brightness fitting curve is larger than a distance threshold value, determining which point is an isolated noise point, removing the isolated noise point, or replacing the coordinate point with an average value of a plurality of coordinate points at two sides of the isolated noise point, or shrinking or expanding the brightness section to be corrected. The distance threshold may be determined according to actual situations, and in general, the higher the accuracy requirement after correction, the smaller the value selected by the distance threshold is, so as to screen out as many isolated noise points as possible for correction, and the distance threshold is, for example, but not limited to, a positive integer. In this example, an average value of a plurality of coordinate points on both sides of the isolated noise point is taken as an example instead of the coordinate point.
Wherein the distance D is determined according to the following relation:
in general, the detected luminance is ideally identical to the ambient luminance, that is, the detected luminance and the ambient luminance should be a line with y=x in the ideal case, but in the actual case, if (4.6,5.8) is determined as an isolated noise point and has a larger distance from the first luminance fitting curve, as shown in fig. 2, the isolated noise point may be replaced by the average value of the points (3.98,4.15) and (5.99,6.01) on both sides thereof, that is, (4.985,5.08) is replaced by (4.6,5.8), and the detected luminance of the luminance section after the replacement of the isolated noise point and the corresponding ambient luminance thereof are subjected to the least square curve fitting, so as to obtain a second luminance fitting curve of the repartitioned luminance section, as shown in fig. 3, the second luminance fitting curve is closer to the line with y=x, that is, with the analytical function y=0.9862x+0.1553 of the second luminance fitting curve, the detected luminance obtained as the second luminance calculation function of the luminance section is more accurate, and the measurement accuracy reaches 99.98%. The isolated noise point is replaced here by only averaging one point on each side of the isolated noise point, although in other examples, multiple points on each side of the isolated noise point may be used instead.
After the second brightness fitting curve is obtained, the detection brightness and the corresponding environment brightness in the brightness section after the isolated noise point is replaced again can be used for determining the measurement accuracy of the repartitioned brightness section, and judging whether the measurement accuracy is smaller than an accuracy threshold value or not; if not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the repartitioned brightness section; if yes, the module with the light sensor is not qualified.
In a second aspect, the present invention provides an electronic device, the device comprising: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method of correcting a luminance calculation parameter of a light sensor as described above.
As shown in fig. 4, the electronic device 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard (may be a virtual keyboard) or the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the process described above with reference to fig. 1 may be implemented as a computer software program. For example, embodiments of the present disclosure include a method of modifying a luminance calculation parameter of a light sensor, including a computer program tangibly embodied on a machine-readable medium, the method of modifying a luminance calculation parameter of a light sensor comprising program code for performing the method of fig. 1. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor.
In a third aspect, the present application also provides a computer readable storage medium, which may be a computer readable storage medium contained in the foregoing apparatus in the foregoing embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a device. The computer-readable storage medium stores one or more programs for use by one or more processors to perform the correction method for the luminance calculation parameters of the light-sensitive sensor described in the present application.
It is to be understood that the above references to the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., are for convenience in describing the present invention and simplifying the description only, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (13)

1. A method for correcting a luminance calculation parameter of a light-sensitive sensor, comprising:
Respectively obtaining detection brightness corresponding to the light sensor under different environment brightness;
Dividing a brightness interval covering each detected brightness into more than two brightness sections, wherein each brightness section comprises a plurality of detected brightness, and fitting the detected brightness and the corresponding environment brightness in each brightness section respectively to obtain a first brightness fitting curve of each corresponding brightness section;
Determining measurement accuracy of each brightness section based on the detected brightness and the corresponding ambient brightness in each brightness section, and judging whether the measurement accuracy is smaller than an accuracy threshold;
For the brightness section with the measurement accuracy greater than or equal to the accuracy threshold, using the analytic function of the corresponding first brightness fitting curve as a first brightness calculation function of the brightness section;
for the brightness section with the measurement accuracy smaller than the accuracy threshold, correcting the corresponding first brightness fitting curve to obtain a second brightness fitting curve, and taking an analytical function of the second brightness fitting curve as a second brightness calculation function of the brightness section;
the correcting the corresponding first brightness fitting curve to obtain a second brightness fitting curve for the brightness section with the measurement accuracy smaller than the accuracy threshold specifically comprises:
Dividing a predetermined number of the detected luminances at both ends of the luminance section into luminance sections adjacent to the luminance section for the luminance section whose measurement accuracy is less than the accuracy threshold to obtain luminance sections into which the luminance section is re-divided; or dividing a predetermined number of the detected luminances in the luminance sections adjacent to each other at both ends of the luminance section into the luminance section to obtain luminance sections into which the luminance section is re-divided;
Fitting the detected brightness of the repartitioned brightness section and the corresponding environment brightness to obtain a second brightness fitting curve of the repartitioned brightness section, and using an analytic function of the second brightness fitting curve as a second brightness calculating function of the repartitioned brightness section.
2. The method according to claim 1, wherein for the luminance segment whose measurement accuracy is smaller than the accuracy threshold, the corresponding first luminance fitting curve is corrected to obtain a second luminance fitting curve, specifically:
And for the brightness section with the measurement accuracy smaller than the accuracy threshold, removing isolated noise points of the brightness section, and fitting with the rest of the detected brightness and the corresponding ambient brightness to obtain a second brightness fitting curve of the brightness section.
3. The method according to claim 2, wherein it is determined whether a distance between each of the detected luminance and the coordinate point represented by the corresponding ambient luminance in the luminance section and the first luminance fitting curve is greater than a distance threshold, and if so, the corresponding coordinate point is the isolated noise point.
4. The method according to claim 2, wherein the first luminance fitting curve of each corresponding luminance section is obtained by fitting the detected luminance and the corresponding ambient luminance in each luminance section by a least square curve, and the second luminance fitting curve of the luminance section is obtained by fitting the remaining detected luminance and the corresponding ambient luminance after the isolated noise point is removed by a least square curve.
5. The method according to any one of claims 2 to 4, wherein before the step of fitting the analytical function of the curve with the second luminance as the second luminance calculation function of the luminance segment, further comprising:
Determining the measurement accuracy of the brightness section according to the rest detection brightness and the corresponding environment brightness, and judging whether the measurement accuracy is smaller than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the brightness section;
If yes, the module with the light sensor is not qualified.
6. The method according to claim 1, wherein the first luminance fitting curve of each corresponding luminance section is obtained by fitting the detected luminance and the corresponding ambient luminance in each luminance section by a least square curve, and the second luminance fitting curve of the repartitioned luminance section is obtained by fitting the detected luminance and the corresponding ambient luminance in the repartitioned luminance section by a least square curve.
7. The method according to claim 1, wherein it is determined whether a distance between each of the detected luminance and the coordinate point represented by the corresponding ambient luminance in the luminance section and the first luminance fitting curve is greater than a distance threshold, and if so, the corresponding coordinate point is an isolated noise point; and replacing the isolated noise point by at least one average value of the detected brightness and the corresponding ambient brightness at the two ends of the isolated noise point, and performing least square curve fitting on each detected brightness and the corresponding ambient brightness in the brightness section after replacing the isolated noise point.
8. The method of correcting a luminance calculation parameter of a light sensor according to any one of claims 6 to 7, further comprising, before said fitting the analytical function of the curve with the second luminance as the second luminance calculation function of the repartitioned luminance segment:
determining a measurement accuracy of the repartitioned luminance section with the detected luminance and the corresponding ambient luminance within the repartitioned luminance section, and judging whether the measurement accuracy is less than an accuracy threshold;
If not, using the analytic function of the second brightness fitting curve as a second brightness calculation function of the repartitioned brightness section;
If yes, the module with the light sensor is not qualified.
9. The method for correcting a luminance calculation parameter of a light sensor according to claim 3 or 7, wherein the analytical function of the first luminance fitting curve is:
y=ax+b;
Wherein, X i is the i-th detected luminance in any luminance section, y i is the ambient luminance corresponding to x i, i is a natural number, and n is the number of detected luminances in the luminance section.
10. The method for correcting a luminance calculation parameter of a photosensor according to claim 9, wherein the distance D is determined according to the following relation:
11. The method for correcting a luminance calculation parameter of a light sensor according to claim 10, wherein the measurement accuracy R 2 is determined according to the following relation:
SSE=SST-SSR
wherein y' i is the predicted luminance corresponding to the i-th detected luminance in any one of the luminance sections, For the average value of the prediction values in any of the luminance sections, yi is the ambient luminance corresponding to y i',Is the average value of the ambient brightness.
12. An electronic device, comprising: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of correcting a light sensor brightness calculation parameter as claimed in any one of claims 1 to 11.
13. A computer-readable storage medium, having stored thereon a computer program for implementing a correction method of a luminance calculation parameter of a light-sensitive sensor according to any one of claims 1 to 11.
CN202111367680.7A 2021-11-16 2021-11-16 Correction method for sensing parameters of light sensor, electronic equipment and storage medium Active CN114117324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111367680.7A CN114117324B (en) 2021-11-16 2021-11-16 Correction method for sensing parameters of light sensor, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111367680.7A CN114117324B (en) 2021-11-16 2021-11-16 Correction method for sensing parameters of light sensor, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114117324A CN114117324A (en) 2022-03-01
CN114117324B true CN114117324B (en) 2024-08-23

Family

ID=80397418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111367680.7A Active CN114117324B (en) 2021-11-16 2021-11-16 Correction method for sensing parameters of light sensor, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114117324B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118464181A (en) * 2024-05-16 2024-08-09 东莞市帝恩检测有限公司 A light intensity sensor calibration system and calibration method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968979A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Screen brightness scheduling method based on curve fitting
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 screen brightness adjusting method and related product

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976450B (en) * 2019-03-15 2020-12-22 Oppo广东移动通信有限公司 Screen calibration method, device, electronic device and storage medium
CN112710388B (en) * 2019-10-24 2022-07-01 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968979A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Screen brightness scheduling method based on curve fitting
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 screen brightness adjusting method and related product

Also Published As

Publication number Publication date
CN114117324A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US9179038B2 (en) Image processing device, and image processing method and program
US20110057943A1 (en) Balancing Luminance Disparity in a Display by Multiple Projectors
KR20090101356A (en) Fault detection device and fault detection method
JP5091994B2 (en) Motion vector detection device
CN114117324B (en) Correction method for sensing parameters of light sensor, electronic equipment and storage medium
CN113776787A (en) Screen uniformity testing method and system of virtual reality equipment and related device
CN114283745A (en) Brightness compensation method of display panel and related device
CN110118990A (en) Online method for detecting, device, system and the storage medium of x-ray detector bad point
US10796143B2 (en) Information processing apparatus, information processing system, and non-transitory computer readable medium
CN115760653A (en) Image correction method, device, equipment and readable storage medium
CN110136212B (en) DeMura equipment pixel point brightness extraction precision judging method and noise detection method
CN118898604B (en) Visual detection method for scratches on metal surface
US20090268036A1 (en) Method and system for testing gradation levels
CN117635550A (en) Detection method, detection device, detection equipment and storage medium
CN118229623A (en) Apparent defect detection method and system for realizing liquid crystal display screen based on artificial intelligence
CN109884682B (en) Crystal position lookup table generation method, device, equipment and medium
KR102547864B1 (en) Concrete defect assessment method and computing device for performing the method
CN113508395A (en) Method for detecting an object
CN106713907B (en) A kind of the HDR image display performance evaluating method and device of display
US20200304739A1 (en) Image processing device, image processing method and storage medium
CN116468808A (en) Mapping color detection method, device, equipment and storage medium
CN113837208A (en) Abnormal image determining method and device, electronic equipment and storage medium
CN114241959A (en) Abnormal light point detection method, display device and storage medium
CN115423855A (en) Image template matching method, device, equipment and medium
CN113643671A (en) Defect compensation method and device of display panel and terminal equipment

Legal Events

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