CN113056068B - Power adjusting method and device for fill-in light, computer equipment and storage medium - Google Patents

Power adjusting method and device for fill-in light, computer equipment and storage medium Download PDF

Info

Publication number
CN113056068B
CN113056068B CN202110228667.7A CN202110228667A CN113056068B CN 113056068 B CN113056068 B CN 113056068B CN 202110228667 A CN202110228667 A CN 202110228667A CN 113056068 B CN113056068 B CN 113056068B
Authority
CN
China
Prior art keywords
power
light supplement
image information
supplement lamp
raindrop
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
CN202110228667.7A
Other languages
Chinese (zh)
Other versions
CN113056068A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110228667.7A priority Critical patent/CN113056068B/en
Publication of CN113056068A publication Critical patent/CN113056068A/en
Application granted granted Critical
Publication of CN113056068B publication Critical patent/CN113056068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/14Controlling the light source in response to determined parameters by determining electrical parameters of the light source

Abstract

The application relates to a power adjusting method and device of a fill-in lamp, computer equipment and a storage medium. The light supplement lamp is used for supplementing light in the process of shooting image information in rainy days, and the method comprises the following steps: calibrating the power of the light supplement lamp to obtain the influence proportionality coefficient of the power of the light supplement lamp to the rainy day image information; acquiring background pixel information background image information and raindrop pixel information raindrop image information in the rainy day image information; obtaining an evaluation index of raindrop reflection to the image information in rainy days by using the background pixel information and the raindrop pixel information; and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient. The power of the light supplement lamp is automatically adjusted, so that the influence of raindrops on image information in rainy days is reduced, and the problem that the appearance design and control of a camera are not changed due to the influence of the light supplement lamp in the prior art is solved.

Description

Power adjusting method and device of light supplement lamp, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting power of a fill-in light, a computer device, and a storage medium.
Background
Raindrop mapping on images or videos can cause severe fluctuations in pixel intensity, degrading the performance of the outdoor vision system, and in order for the vision system to be able to work robustly in rainy days, it is necessary to try to remove the degradation effect of raindrops on the images.
Among the prior art, through the reflection of light of the interval of increase light filling lamp and camera lens in order to reduce closely raindrop to restrain the degradation effect of raindrop on the image, but built-in light filling lamp influences the camera appearance design greatly, and external light filling lamp lacks the flexibility, and camera and light filling lamp control are inconvenient.
However, no solution has been proposed based on the problem that the fill-in light in the prior art affects the exterior design of the camera and is inconvenient to control.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for adjusting power of a fill-in lamp, a computer device, and a storage medium.
In a first aspect, an embodiment of the present application provides a power adjustment method for a light supplement lamp, where the light supplement lamp is used for supplementing light during a shooting process of image information in a rainy day, and the method includes:
calibrating the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days;
acquiring background image information and raindrop image information in the rainy day image information;
obtaining an evaluation index of raindrop reflection to the image information in rainy days by using the background image information and the raindrop image information;
and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
In one embodiment, before the calibrating the power of the light supplement lamp to obtain an influence proportionality coefficient of the power of the light supplement lamp to the image information in rainy days, the method further includes:
and setting a power change value of the light supplement lamp.
In one embodiment, the adjusting the power of the fill-in light according to the evaluation index and the influence proportionality coefficient includes:
if the evaluation index accords with a preset evaluation index threshold value, the power of the light supplement lamp is not changed;
and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to a preset power change value based on the evaluation index and the influence proportion coefficient.
In one embodiment, the adjusting the power of the fill-in light according to the set power variation value based on the evaluation index and the influence scale factor includes:
obtaining real-time adjustment parameters of the multiple light supplement lamps based on the evaluation indexes and the influence coefficients of the multiple light supplement lamps;
screening out a first light supplement lamp of which the power needs to be adjusted from the plurality of light supplement lamps based on the real-time adjustment parameters;
and adjusting the power of the first light supplement lamp based on the real-time adjustment parameter of the first light supplement lamp.
In one embodiment, the adjusting the power of the first fill-in light based on the real-time adjustment parameter of the first fill-in light includes:
stopping adjusting the power of the first supplementary lighting lamp under the condition that the real-time adjustment parameter of the first supplementary lighting lamp meets a first threshold value;
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is the minimum power; the second threshold is greater than the first threshold;
and when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is not the minimum power, reducing the power of the first light supplement lamp according to the power change value.
In one embodiment, the adjusting the power of the first fill-in light based on the real-time adjustment parameter of the first fill-in light further includes:
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a third threshold and the power of the first light supplement lamp is the maximum power;
when the real-time adjustment parameter of the first light supplement lamp meets a third threshold value and the power of the first light supplement lamp is not the maximum power, increasing the power of the first light supplement lamp according to the power change value;
the first threshold is greater than the third threshold.
In one embodiment, the method further comprises:
detecting a real-time weather state and a starting state of the light supplement lamp;
and acquiring background image information and raindrop image information in the rainy day image information under the conditions that the real-time weather state is rainy and the light supplementing lamp is turned on.
In a second aspect, an embodiment of the present application provides a power adjustment device for a fill-in light, where the device includes a calibration module, an image information acquisition module, an index acquisition module, and an adjustment module;
the calibration module calibrates the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days;
the image information acquisition module is used for acquiring background image information and raindrop image information in the rainy day image information;
the index acquisition module is used for acquiring an evaluation index of raindrop reflection to the rainy day image information by utilizing the background image information and the raindrop image information;
and the adjusting module is used for adjusting the power of the light supplementing lamp according to the evaluation index and the influence proportion coefficient.
In one embodiment, the adjustment module comprises a holding unit and an adjustment unit;
the holding unit is used for not changing the power of the light supplement lamp if the evaluation index accords with a preset evaluation index threshold;
and the adjusting unit is used for adjusting the power of the light supplement lamp according to the set power change value based on the evaluation index and the influence proportion coefficient if the evaluation index does not accord with the evaluation index threshold.
An embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
calibrating the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days;
acquiring background image information and raindrop image information in the rainy day image information;
obtaining an evaluation index by using the background image information and the raindrop image information;
and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
calibrating the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days;
acquiring background image information and raindrop image information in the rainy day image information;
obtaining an evaluation index by using the background image information and the raindrop image information;
and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
According to the power adjusting method and device of the light supplementing lamp, the power of the light supplementing lamp is calibrated to obtain the influence proportion coefficient, after calibration is completed, the background image information and the raindrop image information in the real-time rainy day image information are obtained, the power of the light supplementing lamp is automatically adjusted based on the evaluation indexes obtained from the background image information and the raindrop image information, so that the influence of raindrops on the rainy day image information is reduced, and the problem that the appearance design and control of a camera are affected by the light supplementing lamp in the prior art and are inconvenient is solved.
Drawings
Fig. 1 is an application environment diagram of a power adjustment method for a fill-in light according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a power adjustment method of a fill-in lamp according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a power adjustment device of a fill-in lamp according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The embodiment of the application provides a method and a device for adjusting the power of a fill-in light, computer equipment and a storage medium, which can process gray-scale rainy-day image information and color rainy-day image information. The method can be applied to a power adjusting device of a fill-in lamp, as shown in fig. 1.
Fig. 1 is a schematic diagram of a device for supplementing light according to an embodiment of the present disclosure. The terminal 102 and the server 104 are connected via a network. The terminal 102 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
Specifically, the terminal 102 acquires the image information of the rainy day and transmits the image information of the rainy day to the server 104. The server 104 calibrates the power of the light supplement lamp after acquiring the rainy day image information to obtain an influence proportion coefficient of the power of the light supplement lamp on the rainy day image information; acquiring background image information and raindrop image information in the image information in rainy days; obtaining an evaluation index of raindrop reflection to rainy image information by using background image information and raindrop image information; and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
In another embodiment, the terminal 102 acquires the rainy day image information, calibrates the power of the light supplement lamp, and obtains the influence proportionality coefficient of the power of the light supplement lamp to the rainy day image information; acquiring background image information and raindrop image information in the image information in rainy days; obtaining an evaluation index of raindrop reflection to rainy image information by using background image information and raindrop image information; and adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
As shown in fig. 2, an embodiment of the present application further provides a method for adjusting power of a fill-in light, which is described by taking the method as an example when the method is applied to the terminal or the server in fig. 1, and the method includes the following steps:
step S201, calibrating the power of the light supplement lamp to obtain the influence proportion coefficient of the power of the light supplement lamp to the image information in rainy days.
The power of the light supplement lamps is calibrated, so that the lighting effect of each light supplement lamp group in the equipment on the rainfall environment when the light supplement lamps are independently started is obtained, namely the influence proportionality coefficient of the power of the light supplement lamps on the image information in rainy days is obtained. The influence proportionality coefficient can be obtained by the ratio of the raindrop brightness increasing amount to the background brightness increasing amount after the power of the light supplementing lamp is increased. The larger the ratio is, the stronger the influence of the power change of the fill-in light on the raindrop brightness is than the influence on the background brightness.
Furthermore, when the light supplement lamp is used for the first time, the power of the light supplement lamp can be calibrated to obtain the influence proportionality coefficient of the power of the plurality of light supplement lamps on the image information in rainy days. And then, the influence proportion coefficient obtained for the first time can be directly used for searching without calibration again. The power of the light supplement lamp is calibrated based on the acquired image information under the condition that a single light supplement lamp is started at a specific power. The power of the light supplement lamp is calibrated to obtain the influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days, wherein the existing raindrop detection technology is required to distinguish raindrop pixels and background pixels in each frame of image.
It should be noted that, the influence proportion coefficient of the power of the acquired fill-in light on the image information in rainy days is calibrated in a normal scene, and automatic calibration and adaptive adjustment in rainy days can be further performed. If the scene of the collected image information and the scene of the image information during calibration change greatly during actual work, the calibration needs to be carried out again.
As an implementation manner, calibrating the power of the fill-in lamp can be implemented by the following method: assuming, there are m lamp groups;
the first step, independently starting the ith lamp group i belongs to [1, m ], increasing power by a fixed step length s, acquiring n frames by each step of power, and performing the second step and the third step on data of each group of n frames;
secondly, distinguishing raindrop pixels and background pixels in each frame by using the existing raindrop detection technology;
thirdly, averaging n frames acquired by each power, and counting the obtained images to prevent interferenceAverage background brightness E of image b And average raindrop brightness E r
Figure BDA0002957934700000061
Figure BDA0002957934700000062
The fourth step, select two powers p 1 And p 2 According to power p 1 ,p 2 The difference of the statistical values can be obtained as follows:
Figure BDA0002957934700000063
can use a plurality of different powers p 1 And p 2 To increase by averaging the results of the calculations
Figure BDA0002957934700000064
The accuracy of (2);
Figure BDA0002957934700000065
p 1 and p 2 Indicating power, Δ E, of different fill-in lamps r Is the difference value of the average brightness of two raindrop pixels under the condition of different power of the fill-in lamp,
Figure BDA0002957934700000066
the difference value of the average brightness of the two raindrop pixels under the condition of different power of the light supplement lamp is obtained.
And repeating the steps to finish the calibration of the effects of the m lamp groups. The ratio of the influence of each lamp group on the average raindrop brightness and the average background brightness in the scene can be expressed as m lamp groups
Figure BDA0002957934700000067
i denotes the ith lamp group.
For a certain group i of lamps, canObtaining a determined influence coefficient k i ,k i The larger the light i is, the stronger the effect of improving the raindrop brightness is than the effect of improving the scene brightness.
In addition, the above E b The method comprises the steps that under the condition that a light supplement lamp is started at a certain power, multiframe rainy-day image information is obtained, further background brightness in each frame of rainy-day image information is obtained from the multiframe rainy-day image information, the average background brightness is calculated based on the background brightness of the multiframe rainy-day image information, and the average background brightness is E b . Above E r The method comprises the steps that under the condition that a light supplement lamp is started at a certain power, multi-frame rainy day image information is obtained, raindrop brightness in each frame of rainy day image information is obtained from the multi-frame rainy day image information, and average raindrop brightness, namely E, is calculated based on the raindrop brightness of the multi-frame rainy day image information r
And step S202, obtaining background image information and raindrop image information in the rainy day image information.
Specifically, the background image information and the raindrop image information obtained from the image information in rainy days can be obtained by the existing raindrop detection technology, for example, the raindrop detection algorithm based on k-means and chromaticity constraints is implemented.
And step S203, obtaining an evaluation index by using the background image information and the raindrop image information.
Specifically, multiple frames of images are collected under the power of a certain fill-in light, and each frame of image has corresponding background image information and raindrop image information. When the light supplement lamp operates by adopting the power of the light supplement lamp, multi-frame images (the number of the collected images can be 5 frames or more than 5 frames) are collected, background image information and raindrop image information are reserved in each frame of image, and the evaluation index can be obtained.
Specifically, obtaining the evaluation index based on the background image information and the raindrop image information may be implemented by using the following formula:
Figure BDA0002957934700000071
wherein the content of the first and second substances,g is an evaluation index for evaluating the influence of raindrop reflection on image information, E r As average raindrop brightness, G, in raindrop image information 0 To evaluate the index threshold parameter, E b Q is the average background luminance in the background image information, i.e. the ratio of the number of raindrop pixels to the number of background pixels. The raindrop image raindrop pixel size is derived from raindrop image information, and the background image pixel size is derived from background image information.
According to the calculation formula, the evaluation index G of the influence of raindrop reflection on the picture is proportional to the ratio of raindrop to background brightness and the ratio of raindrop to background pixel, and G is 0 when no raindrop is reflected. As an implementable way, an acceptable maximum value is set to G 0 (G 0 >0),G 0 The smaller the light is, the more limited the light is. The power of a certain light changes by delta P, and the variation of the evaluation index G is as follows:
Figure BDA0002957934700000081
it can be deduced that: when in use
Figure BDA0002957934700000082
When G is positively correlated with Δ P, when
Figure BDA0002957934700000083
In this case, G and Δ P are inversely correlated, and therefore, the evaluation index G needs to be decreased to decrease the value
Figure BDA0002957934700000084
Power of the lamp group is increased
Figure BDA0002957934700000085
Lamp group power.
And step S204, adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
As an alternative embodiment, if G.ltoreq.G 0 The power of the current fill-in light lamp does not need to be additionally adjusted; if it isG>G 0 Obtaining the respective power of m groups of light supplement lamps of the current equipment, obtaining the influence coefficient of each lamp group according to the influence coefficient k
Figure BDA0002957934700000086
The sequences are from big to small. Selecting
Figure BDA0002957934700000087
The lamp set with the largest value, if
Figure BDA0002957934700000088
Stopping adjustment; if it is
Figure BDA0002957934700000089
The power of the lamp group of the light supplement lamp is not the minimum value of the available section, and the power of the current lamp group is reduced according to a fixed step length; if the lamp group power is the minimum value, the next one is selected
Figure BDA00029579347000000810
Adjusting the maximum light supplement lamp set; if it is
Figure BDA00029579347000000811
And the power is not the maximum value of the available section, the power is increased according to a fixed step length, and if the current power of the lamp group is the maximum value of the available section, the next one is selected
Figure BDA00029579347000000812
Maximum lamp group adjustment; until G is less than or equal to G 0 And stopping the adjustment.
Specifically, adjusting the power of the fill light is performed automatically, and manual intervention may not be required.
In the above steps S201 to S204, the power of the fill-in light is calibrated to obtain an influence scale factor, after the calibration is completed, the background image information and the raindrop image information in the real-time rainy day image information are obtained, and the power of the fill-in light is automatically adjusted based on the evaluation indexes obtained from the background image information and the raindrop image information to reduce the influence of raindrops on the rainy day image information, so that the problem that the fill-in light influences the exterior design and the control of the camera in the prior art is solved. This application intelligence linkage, automatic control light filling banks optimizes the light filling effect under the heavy rainfall weather. The image information of the part covered by the raindrops is reserved, and the strong reflection interference of the raindrops is restrained.
In some optional embodiments, before the calibrating the power of the fill-in light to obtain an influence proportionality coefficient of the power of the fill-in light to the image information in rainy days, the method further includes: and setting a power change value of the light supplement lamp. The power change value is also called step change power, is a change value of single adjustment power, and can be preset according to specific adjustment requirements.
Further, the adjusting the power of the light supplement lamp according to the evaluation index and the influence scale factor includes:
if the evaluation index accords with a preset evaluation index threshold value, the power of the light supplement lamp is not changed;
and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to the set power change value based on the evaluation index and the influence proportion coefficient.
In some optional embodiments, the adjusting the power of the fill-in light according to the set power variation value based on the evaluation index and the influence scaling factor includes:
and obtaining real-time adjustment parameters of the plurality of light supplement lamps based on the evaluation index and the influence coefficients of the plurality of light supplement lamps.
And screening out a first light supplement lamp of which the power needs to be adjusted from the plurality of light supplement lamps based on the real-time adjustment parameters.
And adjusting the power of the first light supplement lamp based on the real-time adjustment parameters of the first light supplement lamp.
The real-time adjustment parameter of the ith lamp group can be adjusted by S ═ K i -E ri /E bi Thus obtaining the product.
Wherein S represents a real-time adjustment parameter, E r Is the average brightness of the raindrop pixels,
Figure BDA0002957934700000091
is the average luminance of the background pixels,
it should be noted that a single fill-in lamp of the multiple fill-in lamps may be a fill-in lamp of a fill-in lamp group style.
After obtaining the real-time adjustment parameters of the multiple light supplement lamps, sorting the light supplement lamps according to the absolute values of the implementation adjustment parameters, and selecting the light supplement lamp with the largest real-time adjustment parameter absolute value as a first light supplement lamp.
In some optional embodiments, the adjusting the power of the first fill-in light based on the real-time adjustment parameter of the first fill-in light includes: stopping adjusting the power of the first supplementary lighting lamp under the condition that the real-time adjustment parameter of the first supplementary lighting lamp meets a first threshold value; stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is the minimum power; the second threshold is greater than the first threshold; and when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is not the minimum power, reducing the power of the first light supplement lamp according to the power change value.
Further, the adjusting the power of the first light supplement lamp based on the real-time adjustment parameter of the first light supplement lamp further includes: stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a third threshold and the power of the first light supplement lamp is the maximum power; when the real-time adjustment parameter of the first light supplement lamp meets a third threshold value and the power of the first light supplement lamp is not the maximum power, increasing the power of the first light supplement lamp according to the power change value; the second threshold is greater than the first threshold, and the first threshold is greater than the third threshold.
It should be noted that a single fill-in lamp of the multiple fill-in lamps may be a fill-in lamp of a fill-in lamp set.
After obtaining the real-time adjustment parameters of the multiple light supplement lamps, sorting the light supplement lamps according to the absolute values of the implementation adjustment parameters, and selecting the light supplement lamp with the largest real-time adjustment parameter absolute value as a first light supplement lamp.
After the first fill-in light is selected, the first threshold may be 0, i.e. K i =E ri /E bi And stopping adjusting the first light supplement lamp.
The second threshold may be greater than the impact proportionality coefficient, K i >E ri /E bi If the power of the first light supplement lamp is not the minimum power, reducing the power of the existing first light supplement lamp by a power change value, and finishing the adjustment of the first light supplement lamp at this time; if the power of the first light supplement lamp is the minimum power, the light power of the current light supplement lamp cannot be adjusted, and the adjustment is not performed any more, but the information of the light supplement lamp enters the process of screening the first light supplement lamp in the next round.
The third threshold may be smaller than the influence scaling factor, i.e., K i <E ri /E bi If the power of the first light supplement lamp is not the maximum power, increasing the power of the existing first light supplement lamp by a power change value to complete the adjustment of the first light supplement lamp; if the power of the first light supplement lamp is the maximum power, the current power of the first light supplement lamp cannot be adjusted, and is not adjusted any more, but the information of the light supplement lamp enters the process of screening the first light supplement lamp in the next round.
In some optional embodiments, the method further comprises:
and detecting a real-time weather state and the starting state of the light supplement lamp.
And acquiring background image information and raindrop image information in the rainy-day image information under the conditions that the real-time weather state is rainy and the light supplement lamp is turned on.
It should be noted that, in the present solution, the power of the fill-in light is automatically adjusted in real time, so that a real-time weather state needs to be detected.
At present, the light supplement lamp is mainly controlled by two schemes, one scheme is that the intensity of light is judged by sensing natural light through hard light sensitivity; the other is based on image brightness analysis. The method mainly aims at the overall intensity control of light supplement by using image brightness analysis control, the proportion among different types of lamp sets is determined through experimental calibration, the attention point is the uniformity and the range of the light supplement in a view field, and the light supplement effect in a rainy environment is not considered.
The application provides a power adjusting device of light filling lamp has realized combination mode discernment and intelligent light filling, and it has realized that automatic adjustment optimizes the light filling under heavy rain weather, weakens the negative effect that the raindrop reflection brought, and the protection raindrop shelters from the partial image effect beyond the pixel. The method aims to weaken the influence of raindrops in a short distance on a video, does not involve the use of a digital image processing method to remove the raindrops, is not limited by the frame rate of a camera, recognizes and counts information such as raindrop brightness difference and picture ratio by collecting certain video frames in continuous time intervals, combines various light divergence angles of a light supplementing lamp group, and further optimizes the method on the basis of a calibration light supplementing scheme.
This application provides simultaneously with the light filling banks correction case of raindrop detection linkage, weakens closely raindrop before acquireing the video frame and to the strong reflection signal of light, promotes background brightness and raindrop reflection luminance's ratio, optimizes the light filling effect of light filling lamp in rainfall weather, promotes the sense organ experience of video stream. Furthermore, the power adjustment of the light supplement lamp is guided by means of raindrop detection and statistical information thereof, and the real-time requirement on a detection algorithm is low.
Based on the same inventive concept, the present application further provides a power adjustment device for a fill-in light, and the system is used to implement the foregoing embodiments and preferred embodiments, which have already been described and will not be described again. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
In one embodiment, as shown in fig. 3, a power adjustment apparatus for a fill-in lamp is provided, and the apparatus includes a calibration module 31, an image information obtaining module 31, an index obtaining module 33, and an adjustment module 34.
The calibration module 31 calibrates the power of the light supplement lamp to obtain an influence proportionality coefficient of the power of the light supplement lamp to the image information in rainy days.
The image information obtaining module 32 is configured to obtain background image information and raindrop image information in the image information in rainy days.
The index obtaining module 33 is configured to obtain an evaluation index by using the background image information and the raindrop image information.
And the adjusting module 34 is configured to adjust the power of the light supplement lamp according to the evaluation index and the influence scale factor.
According to the device, the power of the light supplement lamp is calibrated firstly to obtain the influence proportionality coefficient, after the calibration is completed, the background image information and the raindrop image information in the real-time rainy day image information are obtained, and the power of the light supplement lamp is automatically adjusted based on the evaluation indexes obtained from the background image information and the raindrop image information, so that the influence of raindrops on the rainy day image information is reduced, and the problem that the light supplement lamp influences the appearance design and the control of a camera in the prior art to be unchanged is solved.
In some of these alternative embodiments, the adjustment module 34 includes a holding unit and an adjustment unit. Specifically, the holding unit is configured to not change the power of the fill-in light if the evaluation index meets a preset evaluation index threshold. And the adjusting unit is used for adjusting the power of the light supplement lamp according to the set power change value based on the evaluation index and the influence proportion coefficient if the evaluation index does not accord with the evaluation index threshold.
For specific limitations of the device, reference may be made to the above limitations on the power adjustment method of the fill-in light, and details are not described here. All or part of each module in the power adjusting device of the fill-in light can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to implement a method for adjusting the power of the fill-in light.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
s1, calibrating the power of the light supplement lamp to obtain the influence proportion coefficient of the power of the light supplement lamp to the image information in rainy days;
s2, obtaining background pixel information background image information and raindrop pixel information raindrop image information in the rainy day image information;
s3, obtaining evaluation indexes of raindrop reflection on the raindrop image information by using the background pixel information background image information and the raindrop pixel information raindrop image information;
and S4, adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
In one embodiment, the processor executing the computer program further comprises the steps of: before the power of the light supplement lamp is calibrated to obtain an influence proportionality coefficient of the power of the light supplement lamp to the image information in rainy days, the method further comprises the following steps:
and setting a power change value of the light supplement lamp.
In one embodiment, the processor executing the computer program further comprises the steps of: the adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient comprises:
if the evaluation index accords with a preset evaluation index threshold value, the power of the light supplement lamp is not changed;
and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to a preset power change value based on the evaluation index and the influence proportion coefficient.
In one embodiment, the processor executing the computer program further comprises the steps of: the adjusting the power of the light supplement lamp according to the set power change value based on the evaluation index and the influence scale factor includes:
obtaining real-time adjustment parameters of the plurality of light supplement lamps based on the evaluation index and the influence coefficients of the plurality of light supplement lamps;
screening out a first light supplement lamp of which the power needs to be adjusted from the plurality of light supplement lamps based on the real-time adjustment parameters;
and adjusting the power of the first light supplement lamp based on the real-time adjustment parameter of the first light supplement lamp.
In one embodiment, the adjusting the power of the first fill-in lamp based on the real-time adjustment parameter of the first fill-in lamp includes:
stopping adjusting the power of the first supplementary lighting lamp under the condition that the real-time adjustment parameter of the first supplementary lighting lamp meets a first threshold value;
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is the minimum power;
and when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is not the minimum power, reducing the power of the first light supplement lamp according to the power change value.
In one embodiment, the adjusting the power of the first fill-in light based on the real-time adjustment parameter of the first fill-in light further includes:
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a third threshold and the power of the first light supplement lamp is the maximum power;
when the real-time adjustment parameter of the first light supplement lamp meets a third threshold value and the power of the first light supplement lamp is not the maximum power, increasing the power of the first light supplement lamp according to the power change value;
the second threshold is greater than the first threshold, and the first threshold is greater than the third threshold.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting a real-time weather state and a starting state of the light supplement lamp;
and acquiring background image information and raindrop image information in the rainy-day image information under the conditions that the real-time weather state is rainy and the light supplement lamp is turned on.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
s1, calibrating the power of the light supplement lamp to obtain the influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days;
s2, obtaining background pixel information background image information and raindrop pixel information raindrop image information in the rainy day image information;
s3, obtaining evaluation indexes of raindrop reflection on the raindrop image information by using the background pixel information background image information and the raindrop pixel information raindrop image information;
and S4, adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
before the power of the light supplement lamp is calibrated to obtain an influence proportionality coefficient of the power of the light supplement lamp to the image information in rainy days, the method further comprises the following steps:
and setting a power change value of the light supplement lamp. In one embodiment, the processor, when executing the computer program, further performs the steps of:
the adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient comprises:
if the evaluation index accords with a preset evaluation index threshold value, the power of the light supplement lamp is not changed;
and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to a preset power change value based on the evaluation index and the influence proportion coefficient.
In one embodiment, the adjusting the power of the fill-in light according to the set power variation value based on the evaluation index and the influence scale factor includes:
obtaining real-time adjustment parameters of the plurality of light supplement lamps based on the evaluation index and the influence coefficients of the plurality of light supplement lamps;
screening out a first light supplement lamp of which the power needs to be adjusted from the plurality of light supplement lamps based on the real-time adjustment parameters;
and adjusting the power of the first light supplement lamp based on the real-time adjustment parameter of the first light supplement lamp.
The adjusting the power of the first light supplement lamp based on the real-time adjustment parameter of the first light supplement lamp includes:
stopping adjusting the power of the first supplementary lighting lamp under the condition that the real-time adjustment parameter of the first supplementary lighting lamp meets a first threshold value;
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is the minimum power;
and when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is not the minimum power, reducing the power of the first light supplement lamp according to the power change value.
In one embodiment, the adjusting the power of the first fill-in light based on the real-time adjustment parameter of the first fill-in light further includes:
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a third threshold and the power of the first light supplement lamp is the maximum power;
when the real-time adjustment parameter of the first light supplement lamp meets a third threshold value and the power of the first light supplement lamp is not the maximum power, increasing the power of the first light supplement lamp according to the power change value;
the second threshold is greater than the first threshold, and the first threshold is greater than the third threshold.
In one embodiment, the method further comprises:
detecting a real-time weather state and a starting state of the light supplement lamp;
and acquiring background image information and raindrop image information in the rainy-day image information under the conditions that the real-time weather state is rainy and the light supplement lamp is turned on.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A power adjusting method of a light supplement lamp is characterized in that the light supplement lamp is used for supplementing light in the process of shooting image information in rainy days, and the method comprises the following steps:
calibrating the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days; the influence proportion coefficient is the ratio k of the raindrop brightness improvement amount to the background brightness improvement amount after the power of the light supplement lamp is improved;
Figure DEST_PATH_FDA0003697160620000011
wherein, Delta E r Is the difference value of the average brightness of two raindrop pixels, Delta E, under the condition of different power of the fill-in light b The difference value of the average brightness of two background pixels under the condition of different power of the fill-in light;
obtaining background image information and raindrop image information in the rainy day image information;
obtaining an evaluation index of raindrop reflection to the image information in rainy days by using the background image information and the raindrop image information; specifically, the evaluation index is obtained based on the background image information and the raindrop image information, and is implemented by using the following formula:
Figure 870918DEST_PATH_IMAGE003
wherein G is an evaluation index for evaluating the influence of raindrop reflection on image information, and E r As the average raindrop brightness in the raindrop image information, E b The average background brightness in the background image information is obtained, and Q is the ratio of the raindrop pixel size to the background pixel size, namely the raindrop pixel number to the background pixel number;
adjusting the power of the light supplement lamp according to the evaluation index and the influence proportion coefficient; specifically, if the evaluation index meets a preset evaluation index threshold, the power of the light supplement lamp is not changed; and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to a preset power change value based on the evaluation index and the influence proportion coefficient.
2. The method according to claim 1, wherein the adjusting the power of the fill-in light according to a preset power variation value based on the evaluation index and the influence scaling factor comprises:
obtaining real-time adjustment parameters of the plurality of light supplement lamps based on the evaluation index and the influence proportion coefficients of the plurality of light supplement lamps;
screening out a first light supplement lamp of which the power needs to be adjusted from the plurality of light supplement lamps based on the real-time adjustment parameters;
and adjusting the power of the first light supplement lamp based on the real-time adjustment parameters of the first light supplement lamp.
3. The method of claim 2, wherein the adjusting the power of the first fill-in lamp based on the real-time adjustment parameter of the first fill-in lamp comprises:
stopping adjusting the power of the first supplementary lighting lamp under the condition that the real-time adjustment parameter of the first supplementary lighting lamp meets a first threshold value;
when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is the minimum power, stopping adjusting the power of the first light supplement lamp, wherein the second threshold is larger than the first threshold;
and when the real-time adjustment parameter of the first light supplement lamp meets a second threshold and the power of the first light supplement lamp is not the minimum power, reducing the power of the first light supplement lamp according to the power change value.
4. The method of claim 3, wherein the adjusting the power of the first fill-in lamp based on the real-time adjustment parameter of the first fill-in lamp further comprises:
stopping adjusting the power of the first light supplement lamp when the real-time adjustment parameter of the first light supplement lamp meets a third threshold and the power of the first light supplement lamp is the maximum power;
when the real-time adjustment parameter of the first light supplement lamp meets a third threshold value and the power of the first light supplement lamp is not the maximum power, increasing the power of the first light supplement lamp according to the power change value;
the first threshold is greater than the third threshold.
5. The method according to any one of claims 1 to 4, further comprising:
detecting a real-time weather state and a starting state of the light supplement lamp;
and acquiring background image information and raindrop image information in the rainy-day image information under the conditions that the real-time weather state is rainy and the light supplement lamp is turned on.
6. The power adjusting device of the light supplement lamp is characterized in that the light supplement lamp is used for supplementing light in the process of shooting image information in rainy days, and the device comprises a calibration module, an image information acquisition module, an index acquisition module and an adjustment module;
the calibration module calibrates the power of the light supplement lamp to obtain an influence proportion coefficient of the power of the light supplement lamp on the image information in rainy days; the influence proportion coefficient is the ratio k of the raindrop brightness improvement amount to the background brightness improvement amount after the power of the light supplement lamp is improved;
Figure 339810DEST_PATH_FDA0003697160620000011
wherein, Delta E r Is the difference value of the average brightness of two raindrop pixels, Delta E, under the condition of different power of the fill-in light b The difference value of the average brightness of two background pixels under the condition of different power of the fill-in light;
the image information acquisition module is used for acquiring background image information and raindrop image information in the rainy day image information;
the index acquisition module is used for acquiring an evaluation index of raindrop reflection to the rainy day image information by using the background image information and the raindrop image information; specifically, the evaluation index is obtained based on the background image information and the raindrop image information, and is implemented by using the following formula:
Figure 574377DEST_PATH_IMAGE003
wherein G is an evaluation index for evaluating the influence of raindrop reflection on image information, and E r As the average raindrop brightness in the raindrop image information, E b The average background brightness in the background image information is obtained, and Q is the ratio of the raindrop pixel size to the background pixel size, namely the raindrop pixel number to the background pixel number;
the adjusting module is used for adjusting the power of the light supplementing lamp according to the evaluation index and the influence proportion coefficient; specifically, if the evaluation index meets a preset evaluation index threshold, the power of the light supplement lamp is not changed; and if the evaluation index does not accord with the evaluation index threshold, adjusting the power of the light supplement lamp according to a preset power change value based on the evaluation index and the influence proportion coefficient.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202110228667.7A 2021-03-02 2021-03-02 Power adjusting method and device for fill-in light, computer equipment and storage medium Active CN113056068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110228667.7A CN113056068B (en) 2021-03-02 2021-03-02 Power adjusting method and device for fill-in light, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110228667.7A CN113056068B (en) 2021-03-02 2021-03-02 Power adjusting method and device for fill-in light, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113056068A CN113056068A (en) 2021-06-29
CN113056068B true CN113056068B (en) 2022-08-02

Family

ID=76509493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110228667.7A Active CN113056068B (en) 2021-03-02 2021-03-02 Power adjusting method and device for fill-in light, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113056068B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994311A (en) * 2015-06-16 2015-10-21 青岛海信网络科技股份有限公司 Automatic adjustment light supplement method of electronic police apparatus
CN106056544A (en) * 2016-05-24 2016-10-26 中国科学院深圳先进技术研究院 Video image raindrop removing method and video image raindrop removing system
CN110198416A (en) * 2019-06-11 2019-09-03 威海德盛电子有限公司 Light compensating apparatus and its control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9564085B2 (en) * 2012-05-27 2017-02-07 Dialog Semiconductor Inc. Selective dimming to reduce power of a light emitting display device
CN103516993B (en) * 2012-06-29 2017-12-26 联想(北京)有限公司 A kind of brightness adjusting method
CN104537634B (en) * 2014-12-31 2017-07-07 中国科学院深圳先进技术研究院 The method and system of raindrop influence is removed in dynamic image
CN105574830B (en) * 2016-02-04 2020-02-21 沈阳工业大学 Low-quality image enhancement method under extreme weather condition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994311A (en) * 2015-06-16 2015-10-21 青岛海信网络科技股份有限公司 Automatic adjustment light supplement method of electronic police apparatus
CN106056544A (en) * 2016-05-24 2016-10-26 中国科学院深圳先进技术研究院 Video image raindrop removing method and video image raindrop removing system
CN110198416A (en) * 2019-06-11 2019-09-03 威海德盛电子有限公司 Light compensating apparatus and its control method

Also Published As

Publication number Publication date
CN113056068A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN111402135B (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108805103B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN108174118B (en) Image processing method and device and electronic equipment
CN104917975B (en) A kind of adaptive automatic explosion method based on target signature
CN108055452B (en) Image processing method, device and equipment
CN110248112B (en) Exposure control method of image sensor
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN110022469B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107509044B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN110033418B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108024054B (en) Image processing method, device, equipment and storage medium
CN108053438B (en) Depth of field acquisition method, device and equipment
CN111182217A (en) Image white balance processing method and device
US11601600B2 (en) Control method and electronic device
CN110047060B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111541937B (en) Image quality adjusting method, television device and computer storage medium
CN110708463A (en) Focusing method, focusing device, storage medium and electronic equipment
CN107194901B (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN105827898B (en) Gamma curve method of adjustment and device applied to video camera
CN114331907A (en) Color shading correction method and device
CN117014733B (en) Shooting correction method, device and equipment
CN113056068B (en) Power adjusting method and device for fill-in light, computer equipment and storage medium
CN107635124B (en) White balancing treatment method, device and the equipment of face shooting
CN104780322B (en) Photographic device, image capture method, image processing apparatus

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