CN111698819B - Real-time correction method and terminal for brightness value of performance lamplight - Google Patents
Real-time correction method and terminal for brightness value of performance lamplight Download PDFInfo
- Publication number
- CN111698819B CN111698819B CN202010558170.7A CN202010558170A CN111698819B CN 111698819 B CN111698819 B CN 111698819B CN 202010558170 A CN202010558170 A CN 202010558170A CN 111698819 B CN111698819 B CN 111698819B
- Authority
- CN
- China
- Prior art keywords
- brightness value
- value
- brightness
- lumen
- values
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a real-time correction method and a terminal for brightness values of performance lamplight, wherein the method comprises the following steps: measuring lumen values corresponding to the RGB brightness values; fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve; respectively obtaining a current RGB brightness value and a dimming coefficient; and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value. The invention can well adapt the illumination brightness to the performance requirement, and correct R, G, B one by one, thereby effectively reducing RGB color mixture color cast caused by adjusting brightness and improving the performance effect of unmanned aerial vehicle formation.
Description
Technical Field
The invention relates to the technical field of unmanned aerial vehicles, in particular to a real-time correction method for brightness values of performance lamplight and a terminal.
Background
In unmanned aerial vehicle cluster performance, need adjust the light luminance value on every unmanned aerial vehicle in real time to reach ideal performance effect. The existing brightness adjustment method cannot be well adapted to performance requirements, so that the performance effect of the unmanned aerial vehicle is limited.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the terminal for correcting the brightness value of the performance lamplight in real time can enable the illumination brightness to be well adapted to performance requirements, and improve the formation performance effect of the unmanned aerial vehicle.
In order to solve the technical problems, the invention adopts the following technical scheme:
a real-time correction method for the brightness value of performance lamplight comprises the following steps:
measuring lumen values corresponding to the RGB brightness values;
fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve;
respectively obtaining a current RGB brightness value and a dimming coefficient;
and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value.
The invention adopts another technical scheme that:
the real-time correction terminal for the brightness value of the performance lamplight comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the following steps when executing the computer program:
measuring lumen values corresponding to the RGB brightness values;
fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve;
respectively obtaining a current RGB brightness value and a dimming coefficient;
and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value.
The invention has the beneficial effects that: firstly, a relation between an RGB brightness value and a lumen value is obtained through curve fitting, then a correction brightness value is obtained through calculation according to a current RGB brightness value, a dimming coefficient and a fitting curve, the current illumination brightness can be well adapted to performance requirements, R, G, B is corrected one by one, RGB color mixing color cast caused by brightness adjustment is effectively reduced, and unmanned aerial vehicle formation performance effect is improved.
Drawings
Fig. 1 is a flowchart of a real-time correction method for brightness values of performance lights according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a real-time correction terminal for brightness values of performance lights according to a second embodiment of the present invention.
Description of the reference numerals:
100. the brightness value of the performance light is corrected to a terminal in real time; 1. a memory; 2. a processor; 3. and a light intensity sensor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
The most critical concept of the invention is as follows: firstly, obtaining the relation between RGB brightness value and lumen value through curve fitting, then obtaining correction brightness value according to current RGB brightness value, dimming coefficient and fitting curve, so that current illumination brightness can be well adapted to performance requirement, and unmanned aerial vehicle formation performance effect is improved.
Referring to fig. 1, a method for correcting brightness value of performance light in real time includes:
measuring lumen values corresponding to the RGB brightness values;
fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve;
respectively obtaining a current RGB brightness value and a dimming coefficient;
and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value.
From the above description, the beneficial effects of the invention are as follows: firstly, a relation between an RGB brightness value and a lumen value is obtained through curve fitting, then a correction brightness value is obtained through calculation according to a current RGB brightness value, a dimming coefficient and a fitting curve, the current illumination brightness can be well adapted to performance requirements, R, G, B is corrected one by one, RGB color mixing color cast caused by brightness adjustment is effectively reduced, and unmanned aerial vehicle formation performance effect is improved.
Further, the measuring the lumen value corresponding to each RGB brightness value specifically includes: and respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, and respectively measuring lumen values corresponding to the R brightness value, the G brightness value and the B brightness value.
Furthermore, the dimming coefficient is a floating point number with the numerical range of [0,1 ].
Referring to fig. 2, another technical scheme related to the present invention is as follows:
a real-time correction terminal 100 for brightness values of performance lights, comprising a memory 1, a processor 2 and a computer program stored on the memory 1 and executable on the processor 2, the processor 2 implementing the following steps when executing the computer program:
measuring lumen values corresponding to the RGB brightness values;
fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve;
respectively obtaining a current RGB brightness value and a dimming coefficient;
and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value.
Further, the measuring the lumen value corresponding to each RGB brightness value specifically includes: and respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, and respectively measuring lumen values corresponding to the R brightness value, the G brightness value and the B brightness value.
Furthermore, the dimming coefficient is a floating point number with the numerical range of [0,1 ].
Example 1
Referring to fig. 1, an embodiment of the invention is a real-time correction method for brightness values of performance lights, comprising the following steps:
s1, measuring lumen values corresponding to all RGB brightness values.
In this embodiment, step S1 specifically includes: respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, respectively and independently measuring lumen values corresponding to the R brightness value, the G brightness value and the B brightness value, wherein the range of the R brightness value is [0,255 ]]The value range of the G brightness value is [0,255]The value range of the brightness value B is also [0,255](the meaning of the individual measurement is that the R brightness value is within the range of [0,255 ]]When the brightness value of G is 0, the brightness value of B is 0; the value range of the G brightness value is [0,255 ]]When the R brightness value is 0, the B brightness value is 0; the value range of the brightness value B is [0,255 ]]When the R brightness value is 0,G brightness value is 0; a brightness value of 0 indicates that the lamp bead is in the darkest state, and no conduction current is applied to the lamp bead or insufficient current is applied to the lamp bead to light the lamp bead). The lumen value corresponding to the R brightness value is recorded as L R The lumen value corresponding to the G luminance value is denoted as L G The lumen value corresponding to the B luminance value is recorded as L B . The RGB luminance values and the corresponding lumen values may be stored as a first luminance information table.
And S2, fitting the relation between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve.
In the present embodiment, the fitting curves corresponding to the three brightness values are respectively denoted as r=f (L R )、G=f(L G )、B=f(L B ) And storing the obtained fitting curve, and recording the fitting curve as a second brightness information table.
S3, respectively acquiring current RGB brightness values and dimming coefficients.
In this embodiment, the dimming coefficient is in the range of [0,1]]Is marked as X. Assume that the current RGB luminance values are R respectively 0 、G 0 And B 0 。
And S4, calculating to obtain a corrected brightness value according to the current RGB brightness value, the dimming coefficient and the fitting curve.
In this embodiment, the corrected luminance value corresponding to R is R X =f[X*f -1 (R 0 )]G corresponds to a corrected luminance value of G X =f[X*f -1 (G 0 )]B corresponds to the corrected brightness value B X =f[X*f -1 (B 0 )]。
After obtaining each corrected luminance value, the corrected R is utilized X 、G X 、B X And controlling the light brightness on the unmanned aerial vehicle, wherein the current corrected brightness value can be used as the RGB brightness value of the next dimming.
Example two
Referring to fig. 2, a second embodiment of the present invention is as follows:
a real-time correction terminal 100 for brightness values of performance lights, corresponding to the method of the first embodiment, comprising a memory 1, a processor 2 and a computer program stored on the memory 1 and executable on the processor 2, wherein the processor 2 implements the following steps when executing the computer program:
measuring lumen values corresponding to the RGB brightness values;
fitting the relationship between the RGB brightness value and the lumen value by adopting a least square method to obtain a fitting curve;
respectively obtaining a current RGB brightness value and a dimming coefficient;
and calculating according to the current RGB brightness value, the dimming coefficient and the fitting curve to obtain a corrected brightness value.
Further, the measuring the lumen value corresponding to each RGB brightness value specifically includes: and respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, and respectively measuring lumen values corresponding to the R brightness value, the G brightness value and the B brightness value. The lumen value is obtained in real time by a light intensity sensor 3, the light intensity sensor 3 is connected with a processor 2, specifically, the light intensity sensor 3 adopts a GY-30 model module, the processor 2 adopts an STM32F676 model, SCL and SDA pins of the light intensity sensor 3 are electrically connected with any two IO ports of the processor 2, and the light intensity sensor 3 converts the luminance value measured in real time into the lumen value and inputs the lumen value into the processor 2 through the IO ports.
Furthermore, the dimming coefficient is a floating point number with the numerical range of [0,1 ].
In summary, the real-time correction method and the terminal for the brightness value of the performance lamplight provided by the invention can enable the illumination brightness to well adapt to the performance requirement, and correct R, G, B one by one, thereby effectively reducing RGB color mixture color shift caused by adjusting brightness and improving the performance effect of unmanned aerial vehicle formation.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.
Claims (4)
1. A real-time correction method for the brightness value of performance lamplight is characterized by comprising the following steps:
respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, respectively obtaining lumen values corresponding to the R brightness value, the G brightness value and the B brightness value, and recording the lumen value corresponding to the R brightness value as L R The lumen value corresponding to the G luminance value is denoted as L G The lumen value corresponding to the B luminance value is recorded as L B ;
Fitting the relationship between the RGB brightness values and the lumen values by adopting a least square method to obtain fitting curves corresponding to the three brightness values, which are respectively marked as R=f (L R )、G=f(L G ) B=f (L B );
Respectively obtaining current RGB brightness value R 0 、G 0 、B 0 And a dimming coefficient, the dimming coefficient being noted X;
according to the current RGB brightness value R 0 、G 0 、B 0 Calculating the dimming coefficient and the fitting curve to obtain a corrected brightness value R X 、G X 、B X ,R X =f[X*f -1 (R 0 )]、G X =f[X*f -1 (G 0 )]、B X =f[X*f -1 (B 0 )];
And controlling the light brightness on the unmanned aerial vehicle by using the corrected brightness value.
2. The method for real-time correction of brightness values of performance lights according to claim 1, wherein the dimming coefficient is a floating point number with a value range of [0,1 ].
3. The real-time correction terminal for the brightness value of the performance lamplight comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, and is characterized in that the processor realizes the following steps when executing the computer program:
respectively obtaining an R brightness value, a G brightness value and a B brightness value at intervals of 5-20, respectively measuring lumen values corresponding to the R brightness value, the G brightness value and the B brightness value, and marking the lumen value corresponding to the R brightness value as L R The lumen value corresponding to the G luminance value is denoted as L G The lumen value corresponding to the B luminance value is recorded as L B ;
Fitting the relationship between the RGB brightness values and the lumen values by adopting a least square method to obtain fitting curves corresponding to the three brightness values, which are respectively marked as R=f (L R )、G=f(L G ) B=f (L B );
Respectively obtaining current RGB brightness value R 0 、G 0 、B 0 And a dimming coefficient, the dimming coefficient being noted X;
according to the current RGB brightness value R 0 、G 0 、B 0 Calculating the dimming coefficient and the fitting curve to obtain a corrected brightness value R X 、G X 、B X ,R X =f[X*f -1 (R 0 )]、G X =f[X*f -1 (G 0 )]、B X =f[X*f -1 (B 0 )];
And controlling the light brightness on the unmanned aerial vehicle by using the corrected brightness value.
4. A real-time correction terminal for brightness value of performance light according to claim 3, wherein the dimming coefficient is a floating point number with a value range of [0,1 ].
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010558170.7A CN111698819B (en) | 2020-06-18 | 2020-06-18 | Real-time correction method and terminal for brightness value of performance lamplight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010558170.7A CN111698819B (en) | 2020-06-18 | 2020-06-18 | Real-time correction method and terminal for brightness value of performance lamplight |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111698819A CN111698819A (en) | 2020-09-22 |
CN111698819B true CN111698819B (en) | 2023-05-16 |
Family
ID=72481948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010558170.7A Active CN111698819B (en) | 2020-06-18 | 2020-06-18 | Real-time correction method and terminal for brightness value of performance lamplight |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111698819B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112763059B (en) * | 2020-12-25 | 2024-07-05 | 广州市雅江光电设备有限公司 | Dimming curve testing method and equipment |
CN113847988A (en) * | 2021-09-27 | 2021-12-28 | 广州穿越千机创新科技有限公司 | Formation unmanned aerial vehicle light module self-detection system and method |
CN115297590B (en) * | 2022-10-10 | 2023-02-14 | 杭州罗莱迪思科技股份有限公司 | Color non-shift control method for dimming lamp and application thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968979A (en) * | 2012-11-12 | 2013-03-13 | 广东欧珀移动通信有限公司 | Screen brightness scheduling method based on curve fitting |
CN105551453A (en) * | 2015-12-29 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Screen brightness adjusting method and apparatus |
US10448471B1 (en) * | 2018-06-29 | 2019-10-15 | Abl Ip Holding Llc | Lighting system with configurable dimming |
CN110798671A (en) * | 2019-11-25 | 2020-02-14 | 成都极米科技股份有限公司 | Self-adaptive adjusting method and system for brightness of projection device |
-
2020
- 2020-06-18 CN CN202010558170.7A patent/CN111698819B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968979A (en) * | 2012-11-12 | 2013-03-13 | 广东欧珀移动通信有限公司 | Screen brightness scheduling method based on curve fitting |
CN105551453A (en) * | 2015-12-29 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Screen brightness adjusting method and apparatus |
US10448471B1 (en) * | 2018-06-29 | 2019-10-15 | Abl Ip Holding Llc | Lighting system with configurable dimming |
CN110798671A (en) * | 2019-11-25 | 2020-02-14 | 成都极米科技股份有限公司 | Self-adaptive adjusting method and system for brightness of projection device |
Also Published As
Publication number | Publication date |
---|---|
CN111698819A (en) | 2020-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111698819B (en) | Real-time correction method and terminal for brightness value of performance lamplight | |
CN101750848B (en) | Pick-up device and light filling method | |
WO2018214622A1 (en) | Display correction method and system | |
CN110677955B (en) | A method and system for determining maximum brightness of RGB LED light source matching target chromaticity | |
TWI427614B (en) | Display and its instant automatic white balance method | |
CN104299565A (en) | Low grey scale correction method and system of LED display device | |
US20150077640A1 (en) | Display device and display method | |
US10347198B2 (en) | Image displaying methods and display devices | |
CN106210921A (en) | A kind of image effect method for improving and device thereof | |
CN107728377B (en) | Backlight module and control method of display | |
CN103491357A (en) | Auto white balance treatment method of image sensor | |
CN110677954B (en) | Precise dimming method and system for super three-color LED light source | |
CN105848354B (en) | A kind of shading process being used in intelligent illuminating system and system | |
WO2022032919A1 (en) | Grayscale-adaptive correction data control method and apparatus, and led display screen | |
CN104200791A (en) | Fast adaptive white balance correction method | |
CN109949751A (en) | A kind of display lightness regulating method and device | |
WO2023206698A1 (en) | Brightness adjustment method and device, and display device | |
CN112614455B (en) | Display screen color temperature drift compensation method, device and system and display control system | |
CN110534058B (en) | Method and system for rapidly converging Gamma tuning | |
CN110708797B (en) | A precise dimming method and system for three-color LED light source | |
CN115297590A (en) | Control method and application of non-shifting color of dimming lamp | |
CN110634444A (en) | Compensation method of display panel | |
JP4430656B2 (en) | Digital image capture device and white balance adjustment method | |
CN111654937A (en) | Calibration data test method, luminaire color calibration method, medium and console | |
US20240380871A1 (en) | Image processing apparatus and image processing 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 |