CN113840095A - Light supplement lamp control method and related device - Google Patents

Light supplement lamp control method and related device Download PDF

Info

Publication number
CN113840095A
CN113840095A CN202111039208.0A CN202111039208A CN113840095A CN 113840095 A CN113840095 A CN 113840095A CN 202111039208 A CN202111039208 A CN 202111039208A CN 113840095 A CN113840095 A CN 113840095A
Authority
CN
China
Prior art keywords
threshold
information
scene
light
exposure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111039208.0A
Other languages
Chinese (zh)
Other versions
CN113840095B (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 CN202111039208.0A priority Critical patent/CN113840095B/en
Publication of CN113840095A publication Critical patent/CN113840095A/en
Application granted granted Critical
Publication of CN113840095B publication Critical patent/CN113840095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • 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

Abstract

The application discloses a light supplement lamp control method and a related device, wherein the light supplement lamp control method comprises the steps of responding to the turn-on of a light supplement lamp, and acquiring multiple groups of acquisition parameter information when image acquisition equipment acquires a shooting scene within a preset time period; each group of acquisition parameter information comprises gain information, exposure information and picture brightness information; determining an initial closing threshold value and a threshold value adjusting coefficient of the light supplementing lamp by using the multiple groups of acquisition parameter information; wherein the threshold adjustment coefficient is related to a shooting scene where the image acquisition equipment is located; and determining a final closing threshold value of the light supplementing lamp by using the initial closing threshold value and the threshold value adjusting coefficient. By the method, the final closing threshold of the light supplement lamp can be updated adaptively according to different scenes, and accuracy of control of the light supplement lamp is improved.

Description

Light supplement lamp control method and related device
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method for controlling a fill-in light and a related device.
Background
With the wide application of image capturing devices in various scenes, especially in recent years, the requirements for capturing the image effect are higher and higher. At present, the image sensor that image acquisition equipment adopted can't gather clear image under the relatively poor environment of illumination condition, consequently often can dispose the light filling lamp, and the light filling lamp can open automatically when light is darker, and when light is bright, the light filling lamp self-closing.
However, in a general light supplement process, since the environment suddenly becomes bright, the acquisition device mistakenly regards that the current environment brightness is increased, and the light supplement lamp is mistakenly turned off; after the light supplement lamp is turned off, the light supplement lamp is turned on again due to the fact that the actual environment is dark, and therefore the problem that the light supplement lamp flickers is caused. Especially in narrow or shielded space, the environment can reflect the light source of the fill light more strongly, and the probability of the problems is higher.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a light supplement lamp control method and a related device, and the accuracy of light supplement lamp control can be effectively improved.
In order to solve the technical problem, the application adopts a technical scheme that: the method for controlling the light supplement lamp comprises the following steps: responding to the turn-on of the light supplement lamp, and acquiring multiple groups of acquisition parameter information when the image acquisition equipment acquires a shooting scene within a preset time period; each group of acquisition parameter information comprises gain information, exposure information and picture brightness information; determining an initial closing threshold value and a threshold value adjusting coefficient of the light supplementing lamp by using the multiple groups of acquisition parameter information; wherein the threshold adjustment coefficient is related to a shooting scene where the image acquisition equipment is located; and determining a final closing threshold value of the light supplementing lamp by using the initial closing threshold value and the threshold value adjusting coefficient.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided an image capturing apparatus comprising a memory and a processor coupled to each other, wherein the memory stores program instructions for execution by the processor to implement the fill-in light control method in any of the above embodiments.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a computer-readable storage medium storing a computer program for implementing the fill light control method in any of the above embodiments.
Different from the prior art, the beneficial effects of the application are that: the application provides a light supplement lamp control method, which comprises the following steps: responding to the turn-on of the light supplement lamp, and acquiring multiple groups of acquisition parameter information when the image acquisition equipment acquires a shooting scene within a preset time period; each group of acquisition parameter information comprises gain information, exposure information and picture brightness information; determining an initial closing threshold value and a threshold value adjusting coefficient of the light supplementing lamp by using the multiple groups of acquisition parameter information; wherein the threshold adjustment coefficient is related to a shooting scene where the image acquisition equipment is located; and determining a final closing threshold value of the light supplementing lamp by using the initial closing threshold value and the threshold value adjusting coefficient. By the mode, in the process of determining the final closing threshold of the light supplement lamp, the shooting scene where the acquisition equipment is located is taken into consideration, and the threshold adjustment coefficient corresponding to the current shooting scene is determined by utilizing the gain information, the exposure information and the picture brightness information acquired in different scenes, so that the final closing threshold of the light supplement lamp can be updated adaptively according to different scenes, the phenomenon of mistaken closing of the light supplement lamp due to self reflection of the light supplement lamp or scene factors is avoided, and the accuracy of the light supplement lamp control is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flow chart of an embodiment of a fill-in light lamp control method according to the present application;
FIG. 2 is a schematic flow chart of one embodiment of step S102 in FIG. 1;
FIG. 3 is a schematic flow chart of another embodiment of step S102 in FIG. 1;
FIG. 4 is a schematic flow chart of one embodiment of step S302 in FIG. 3;
fig. 5 is an application scene diagram of an embodiment of a fill-in light lamp control method according to the present application;
fig. 6 is an application scene diagram of a light supplement lamp control method according to another embodiment of the present application;
FIG. 7 is a schematic flow chart of one embodiment of step S103 in FIG. 1;
FIG. 8 is a flowchart illustrating an embodiment of step S502 in FIG. 7;
FIG. 9 is a flowchart illustrating an embodiment of step S603 in FIG. 8;
FIG. 10 is a schematic flow chart diagram of an embodiment after step S103 in FIG. 1;
FIG. 11 is a schematic diagram of a frame of an embodiment of the imaging apparatus of the present application;
FIG. 12 is a schematic structural diagram of an embodiment of an imaging apparatus according to the present application;
FIG. 13 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a fill-in light control method according to an embodiment of the present application. Specifically, the method may include the steps of:
s101: responding to the turn-on of the light supplement lamp, and acquiring multiple groups of acquisition parameter information when the image acquisition equipment acquires a shooting scene within a preset time period; and each group of acquisition parameter information comprises gain information, exposure information and picture brightness information.
Specifically, the fill light according to the technical scheme of the application is a visible light fixture for performing light compensation on equipment lacking illuminance; the acquisition equipment is camera equipment or monitoring equipment provided with a light supplement lamp, and can supplement light under the condition of dark shooting scene so as to improve the shooting effect of the acquired picture; and the acquisition equipment can estimate the ambient brightness of the current shooting scene according to the equipment parameter information including gain, exposure and picture brightness acquired by the current acquisition equipment. The acquisition equipment is provided with an amplifier for amplifying the video signal, the gain refers to the amplification amount of the amplifier, the exposure refers to the light quantity irradiated on the photosensitive element by the lens in the acquisition process, and the image brightness is the average brightness of pixel points on the image acquired by the acquisition equipment at present. The gain information, exposure information and picture brightness information of the acquisition device can be directly read from the registers of the acquisition device.
In a specific implementation scenario, the preset time period is a time period after the light supplement lamp is turned on, and may be 2s, 3s, or 4s, and the like, and is not specifically limited herein; and calculating the ambient brightness of the current shooting scene by using the gain, exposure and picture brightness information acquired by the acquisition equipment. Usually, the light supplement lamp needs to be turned on under the condition that the ambient brightness of the shooting scene is dark, the obtained gain and exposure numerical value are large, and the picture brightness numerical value is relatively low. Of course, in other embodiments, the collected parameter information may further include other parameter information such as shutter information and fill-in light intensity information, as long as the estimation of the ambient brightness of the shooting scene can be achieved, and is not specifically limited herein.
S102: determining an initial closing threshold value and a threshold value adjusting coefficient of the light supplementing lamp by using multiple groups of acquisition parameter information; the threshold adjusting coefficient is related to a shooting scene where the image acquisition equipment is located.
In this embodiment, the step of determining the initial turn-off threshold using multiple sets of acquisition parameter information is specifically described. Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an embodiment of step S102 in fig. 1. The step S102 includes:
s201: and acquiring the acquisition parameter ratio corresponding to each group of acquisition parameter information.
Specifically, the acquisition parameter ratio is a ratio of a product of gain information and exposure information of the corresponding group to picture brightness information. Illustratively, if the gain information of the current group is x, the exposure information is y, and the picture brightness information is z, then the ratio of the acquisition parameters of the current group is
Figure BDA0003248596320000041
The larger the acquisition parameter ratio is, the lower the ambient brightness is, and the darker the scene is; on the contrary, the smaller the ratio of the acquisition parameters is, the higher the ambient brightness is at the moment, and the brighter the scene is.
S202: and carrying out weighted average on all the acquisition parameter ratios, and taking the result as an initial closing threshold value of the light supplement lamp.
Specifically, in this embodiment, the weighted average calculation is performed on the acquisition parameter ratios P of all frames within the preset time period to obtain the initial turn-off threshold T of the fill-in light.
By the method, the initial closing threshold of the light supplement lamp is obtained by utilizing the acquisition parameter information, and technical support is provided for the subsequent adjustment of the closing threshold according to different scenes.
In yet another embodiment, the step of determining the threshold adjustment factor using multiple sets of acquisition parameter information is specifically described. Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another embodiment of step S102 in fig. 1. The step S102 further includes:
s301: the method comprises the steps of obtaining a difference value between acquisition parameter ratios of a starting time and an ending time of a preset time period, and obtaining a first number of pictures with brightness information larger than a brightness threshold value in the preset time period.
Specifically, in this embodiment, a difference between a collection parameter ratio corresponding to a start frame picture and a collection parameter ratio corresponding to an end frame picture in a preset time period is calculated, so as to obtain a change condition of collection parameter information after the light supplement lamp is turned on. The first number is the number of frames with the picture brightness information larger than a preset brightness threshold value, namely the number of overexposure continuous frames acquired in a preset time period.
In another embodiment, a difference between the acquisition parameter ratio corresponding to the ending frame picture and the acquisition parameter ratio before the light supplement lamp is turned on may be calculated, and a change condition of the acquisition parameter information before and after the light supplement lamp is turned on may be determined.
S302: the threshold adjustment factor is determined using the difference and the first number.
Through the implementation mode, the threshold adjustment coefficient is acquired by using the change condition of the acquisition parameter information and the overexposure frame number, the accuracy of the threshold adjustment coefficient is effectively improved, and technical support is provided for the self-adaptive adjustment of the final closing threshold.
Referring to fig. 4, fig. 4 is a flowchart illustrating an embodiment of step S302 in fig. 3. The step S302 includes:
s401: in response to the fact that the absolute value of the difference is larger than a first tolerance threshold and the first number is smaller than a first frame number threshold, judging that the shooting scene is an open scene, and setting a threshold adjusting coefficient as a first adjusting coefficient; wherein the first adjustment coefficient is greater than 0 and less than or equal to 1.
Specifically, please refer to fig. 5, and fig. 5 is an application scenario diagram of a fill-in light control method according to an embodiment of the present application. In an open scene, after the light supplement lamp 11 is turned on, because light is comparatively dispersed, the light returned to the acquisition equipment 13 is comparatively even, so that the influence on the acquisition parameter information such as gain, exposure and picture brightness of the acquisition equipment 13 is comparatively small, the acquisition equipment 13 can normally evaluate the brightness of the current environment at the moment, and the acquired difference value and the first number can truly reflect the variation amplitude of the acquisition parameter information.
In this embodiment, when the absolute value of the difference is greater than the first tolerance threshold and the first number is less than the first frame number threshold, it is determined that the shooting scene is an open scene at this time, and the threshold adjustment coefficient is determined as a first adjustment coefficient a, where 0< a ≦ 1.
S402: in response to the absolute value of the difference being smaller than a second tolerance threshold and the first number being greater than a second frame number threshold, determining that the shot scene is an occlusion scene and the threshold adjustment coefficient is a second adjustment coefficient; wherein the second adjustment coefficient is smaller than the first adjustment coefficient;
specifically, please refer to fig. 6, where fig. 6 is an application scenario diagram of a fill-in light control method according to another embodiment of the present application. Under the scene is sheltered from to collection equipment, light 11 opens the back, and during the camera lens of collection equipment 13 was returned in the comparatively concentrated reflection of light, collection equipment 13 received light was comparatively sufficient, and collection equipment 13's gain, exposure information were less this moment, and collection equipment 13 can misunderstanding think that the scene of shooing is bright at present, because the existence of automatic exposure logic can shoot the picture in the period that the light filling lamp was opened and continuously be in the state of overexposure simultaneously.
In view of this, in this embodiment, when the absolute value of the difference is smaller than the second tolerance threshold and the first number is larger than the second frame number threshold, that is, the variation range of the acquisition parameter ratio is smaller than the second tolerance threshold and the overexposure frame number is larger than the second frame number threshold, it is determined that the shooting scene is an occlusion scene at this time, and the threshold adjustment coefficient is the second adjustment coefficient b, where 0< b < a < 1. It should be noted that the first tolerance threshold is greater than the second tolerance threshold, and the first frame number threshold is less than the second frame number threshold.
S403: responding to the absolute value of the difference value being greater than or equal to a second tolerance threshold and less than or equal to a first tolerance threshold, and meanwhile, the first number being greater than or equal to a first frame number threshold and less than or equal to a second frame number threshold, wherein the first tolerance threshold is greater than the second tolerance threshold, and the first frame number threshold is less than the second frame number threshold, and then judging that the shooting scene is a transition scene, and the threshold adjusting coefficient is a third adjusting coefficient; and the third adjusting coefficient is larger than the second adjusting coefficient and smaller than the first adjusting coefficient.
Specifically, when the variation amplitude of the acquisition parameter ratio is greater than or equal to a second tolerance threshold and less than or equal to a first tolerance threshold, and the overexposure frame number is between the first frame number threshold and the second frame number threshold, it is determined that the shooting scene is a transition scene, at this time, part of the light returns to the lens of the acquisition device due to the shielding reflection, and the threshold adjustment coefficient is a third adjustment coefficient c, where 0< b < c < a < 1.
Through the embodiment, the shooting scene information is judged by using the variation amplitude of the equipment parameter information acquired by the acquisition equipment in the current shooting scene and the size relation between the overexposure frame number and the corresponding preset threshold, so that the accuracy of determining the threshold adjustment coefficient is improved.
S103: and determining a final closing threshold of the light supplementing lamp by using the initial closing threshold and the threshold adjusting coefficient.
Specifically, the final closing threshold is obtained by adaptively adjusting threshold adjustment coefficients corresponding to different shooting scenes.
Through the embodiment, in the process of determining the final closing threshold of the light supplement lamp, the shooting scene where the acquisition device is located is taken into consideration, and the threshold adjustment coefficient corresponding to the current shooting scene is determined by using the gain information, the exposure information and the picture brightness information acquired in different scenes, so that the final closing threshold of the light supplement lamp can be updated adaptively according to different scenes, the phenomenon of mistaken closing of the light supplement lamp due to self reflection of the light supplement lamp or scene factors is avoided, and the accuracy of the light supplement lamp control is improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating an embodiment of step S103 in fig. 1. The step S103 specifically includes:
s501: and responding to the fact that the judgment result of the shooting scene is an open scene, and then the final closing threshold is the product of the first adjusting coefficient and the initial closing threshold.
Specifically, in the present embodiment, when it is determined that the collection device is in an open scene, the final turn-off threshold is adjusted to be a product of the first adjustment coefficient and the initial turn-off threshold, i.e., T' ═ T × a.
S502: and in response to the fact that the judgment result of the shooting scene is the sheltering scene or the transition scene, obtaining a first scene picture collected after a preset time period, determining a threshold value adjusting coefficient by using the first scene picture, and determining a final closing threshold value based on the threshold value adjusting coefficient and the initial closing threshold value.
Specifically, in this embodiment, when it is determined that the capture device is in the occlusion scene or the transition scene, a first scene picture at any time after a preset time period may be acquired, and whether the capture device is continuously in the occlusion scene is further determined by using the first scene picture. After the light supplement lamp is turned on, the scene where the collecting device is located may change again, and then whether the light reflection condition is continuous or not needs to be further judged, whether the ambient light source changes or not needs to be further judged, and if the ambient light source changes, the closing threshold value needs to be updated again at this moment. For example, after the fill light is turned on, the collection device moves from the shielded scene to an indoor scene with good lighting conditions, and at this time, the fill light needs to be turned off, but since the turn-off threshold value in the shielded scene is small, if the threshold value is not updated in time, the fill light may be difficult to turn off.
Through above-mentioned embodiment, judge through first scene picture whether acquisition device is continuously in sheltering from the scene, effectively solve the problem that the light filling lamp is difficult to close.
Referring to fig. 8, fig. 8 is a flowchart illustrating an embodiment of step S502 in fig. 7. The step S502 specifically includes:
s601: acquiring first acquisition parameter information corresponding to a first scene picture; the first acquisition parameter information comprises first gain information, first exposure information, first picture brightness information and first fill-in light intensity.
S602: and obtaining a gain difference value between the first gain information and the gain information at the end moment of the preset time period, and simultaneously obtaining an exposure difference value between the first exposure information and the exposure information at the end moment of the preset time period.
Specifically, a gain difference value and an exposure difference value corresponding to the ending frame acquisition picture and the first scene picture are calculated.
S603: and determining a threshold adjusting coefficient by using the first gain information, the first exposure information, the first picture brightness information, the first fill-in light intensity, the gain difference value and the exposure difference value.
Through the implementation mode, the threshold value adjusting coefficient is re-determined by using the gain information change condition, the exposure information change condition and the plurality of acquisition parameter information, so that the accuracy of the threshold value adjusting coefficient is effectively improved, and technical support is provided for the self-adaptive adjustment of the final closing threshold value.
Referring to fig. 9, fig. 9 is a flowchart illustrating an embodiment of step S603 in fig. 8. The step S603 includes:
s701: and responding to the judgment result that the shot scene is a sheltered scene, wherein the first gain information is smaller than a preset gain threshold, the first exposure information is smaller than a preset exposure threshold, the first picture brightness information is smaller than the preset picture brightness threshold, the first fill light intensity is smaller than the preset fill light intensity, the absolute value of the gain difference is larger than a preset gain change threshold, and the absolute value of the exposure difference is larger than the preset exposure change threshold, judging that the scene of the first scene picture is the sheltered scene, and the threshold adjustment coefficient is the product of the second adjustment coefficient and a fourth adjustment coefficient, wherein the fourth adjustment coefficient is larger than 0 and smaller than or equal to 1.
Specifically, when the scene determination result is a blocked scene and the acquired first gain information, first exposure information, first picture brightness information, first fill light intensity, gain difference value and exposure difference value of the first scene picture are all smaller than corresponding preset threshold values, a fourth adjustment threshold value d is acquired, wherein d is greater than 0 and less than or equal to 1; at this time, the threshold adjustment coefficient is updated again to be the product of the second adjustment coefficient b and the fourth adjustment coefficient d, and finally the threshold T' is closed.
S702: and responding to the fact that the judgment result of the shooting scene is a transition scene, the first gain information is smaller than a preset gain threshold value, the first exposure information is smaller than a preset exposure threshold value, the first picture brightness information is smaller than a preset picture brightness threshold value, the first fill light intensity is smaller than a preset fill light intensity, the absolute value of the gain difference value is larger than a preset gain change threshold value, the absolute value of the exposure difference value is larger than a preset exposure change threshold value, the scene of the first scene picture is judged to be a sheltered scene, and the threshold value adjustment coefficient is the product of the third adjustment coefficient and the fourth adjustment coefficient.
Specifically, when the scene determination result is a transition scene and the acquired first gain information, first exposure information, first picture brightness information, first fill-in light intensity, gain difference value and exposure difference value of the first scene picture are all smaller than corresponding preset threshold values, a fourth adjustment threshold value d is acquired, wherein d is greater than 0 and less than or equal to 1; at this time, the threshold adjustment coefficient is updated again to be the product of the third adjustment coefficient c and the fourth adjustment coefficient d, and finally the threshold T' is closed.
Through the embodiment, whether the shielding is continued is judged again by using the device parameter information of the collected image after the preset time period, and the size of the final closing threshold value is updated again based on the judgment result, so that the problem that the light supplement lamp is difficult to close due to scene switching is avoided.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating an embodiment after step S103 in fig. 1. Step S103 is followed by:
s801: and acquiring current gain information, current exposure information and current picture brightness information of the current scene picture.
Specifically, the current gain information, the current exposure information, and the current picture brightness information of the current scene picture may be directly read from the register of the capture device.
S802: obtaining a current acquisition parameter ratio in a current scene picture by using current gain information, current exposure information and current picture brightness information; and the current acquisition parameter ratio is the ratio of the product of the current gain information and the current exposure information to the current picture brightness information.
S803: and judging whether the ratio of the current acquisition parameters is smaller than a final closing threshold value.
S804: if yes, the light supplement lamp is turned off.
Specifically, if the current acquisition parameter ratio is smaller than the final turn-off threshold, it indicates that the ambient brightness is high at this time, and the light supplement lamp needs to be turned off.
S805: otherwise, the on state of the light supplement lamp is maintained.
Specifically, if the current acquisition parameter ratio is greater than or equal to the final closing threshold, it indicates that the ambient brightness at this time does not meet the preset condition, and the on state of the fill-in light needs to be maintained.
Through the mode, the current acquisition parameter ratio corresponding to the current scene picture is acquired and compared with the updated final closing threshold, the closing of the light supplement lamp is controlled, and the light supplement lamp control accuracy of the acquisition equipment in different scenes is effectively improved.
Referring to fig. 11, fig. 11 is a schematic frame diagram of an embodiment of an image capturing apparatus according to the present application. The identification apparatus 100 includes an acquisition module 10, an acquisition module 12, and a threshold adjustment module 14. Specifically, the acquisition module 10 is configured to respond to turning on of the light supplement lamp, and acquire multiple sets of acquisition parameter information when the image acquisition device acquires a shooting scene within a preset time period; and each group of acquisition parameter information comprises gain information, exposure information and picture brightness information. The acquisition module 12 is configured to determine an initial turn-off threshold and a threshold adjustment coefficient of the fill-in light by using multiple sets of acquisition parameter information; the threshold adjusting coefficient is related to a shooting scene where the image acquisition equipment is located. The threshold adjustment module 14 is configured to determine a final turn-off threshold of the fill light using the initial turn-off threshold and the threshold adjustment coefficient. Through the embodiment, in the process of determining the final closing threshold of the light supplement lamp, the shooting scene where the acquisition device is located is taken into consideration, and the threshold adjustment coefficient corresponding to the current shooting scene is determined by using the gain information, the exposure information and the picture brightness information acquired in different scenes, so that the final closing threshold of the light supplement lamp can be updated adaptively according to different scenes, the phenomenon of mistaken closing of the light supplement lamp due to self reflection of the light supplement lamp or scene factors is avoided, and the accuracy of the light supplement lamp control is improved.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of the image capturing apparatus of the present application. The apparatus 20 includes a memory 200 and a processor 202 coupled to each other, wherein the memory 200 stores program instructions, and the processor 202 is configured to execute the program instructions to implement the fill light control method in any of the embodiments.
Specifically, the processor 202 may also be referred to as a CPU (Central Processing Unit). The processor 202 may be an integrated circuit chip having signal processing capabilities. The Processor 202 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, processor 202 may be implemented collectively by a plurality of integrated circuit chips.
Referring to fig. 13, fig. 13 is a block diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. The computer-readable storage medium 30 stores a computer program 300, which can be read by a computer, and the computer program 300 can be executed by a processor to implement the fill light control method in any of the above embodiments. The computer program 300 may be stored in the computer-readable storage medium 30 in the form of a software product, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. The computer-readable storage medium 30 having a storage function may be various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a terminal device, such as a computer, a server, a mobile phone, or a tablet.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for controlling a fill-in light is characterized by comprising the following steps:
responding to the turn-on of the light supplement lamp, and acquiring multiple groups of acquisition parameter information when the image acquisition equipment acquires a shooting scene within a preset time period; each group of acquisition parameter information comprises gain information, exposure information and picture brightness information;
determining an initial closing threshold value and a threshold value adjusting coefficient of the light supplementing lamp by using the multiple groups of acquisition parameter information; wherein the threshold adjustment coefficient is related to a shooting scene where the image acquisition equipment is located;
and determining a final closing threshold value of the light supplementing lamp by using the initial closing threshold value and the threshold value adjusting coefficient.
2. The method as claimed in claim 1, wherein the step of determining the threshold adjustment factor using the plurality of sets of the collected parameter information comprises:
acquiring a difference value between acquisition parameter ratios of the starting time and the ending time of the preset time period, and acquiring a first number of the image brightness information in the preset time period, wherein the first number of the image brightness information is greater than a brightness threshold value; wherein the acquisition parameter ratio is the ratio of the product of the gain information and the exposure information to the picture brightness information;
determining the threshold adjustment factor using the difference and the first number.
3. The method as claimed in claim 2, wherein the step of determining the threshold adjustment factor using the difference and the first number comprises:
in response to the fact that the absolute value of the difference is larger than a first tolerance threshold and the first number is smaller than a first frame number threshold, judging that the shooting scene is an open scene, wherein the threshold adjusting coefficient is a first adjusting coefficient; wherein the first adjustment coefficient is greater than 0 and less than or equal to 1;
in response to that the absolute value of the difference is smaller than a second tolerance threshold and the first number is larger than a second frame number threshold, determining that the shooting scene is an occlusion scene, and the threshold adjustment coefficient is a second adjustment coefficient; wherein the second adjustment factor is less than the first adjustment factor;
in response to the absolute value of the difference being greater than or equal to a second tolerance threshold and less than or equal to a first tolerance threshold, and the first number being greater than or equal to a first frame number threshold and less than or equal to a second frame number threshold, wherein the first tolerance threshold is greater than the second tolerance threshold, and the first frame number threshold is less than the second frame number threshold, determining that the shooting scene is a transition scene, and the threshold adjustment coefficient is a third adjustment coefficient; wherein the third adjustment coefficient is greater than the second adjustment coefficient and less than the first adjustment coefficient.
4. A method for controlling a fill-in light according to claim 2, wherein the step of determining an initial turn-off threshold of the fill-in light using the plurality of sets of the collected parameter information comprises:
acquiring acquisition parameter ratios corresponding to each group of acquisition parameter information;
and carrying out weighted average on all the acquisition parameter ratios, and taking the result as the initial closing threshold value of the light supplement lamp.
5. A method for controlling a fill-in light lamp according to claim 3, wherein the step of determining a final turn-off threshold of the fill-in light lamp using the initial turn-off threshold and the threshold adjustment factor comprises:
responding to the judgment result of the shooting scene to be an open scene, wherein the final closing threshold is the product of the first adjustment coefficient and the initial closing threshold;
and in response to the judgment result of the shooting scene being an occlusion scene or a transition scene, obtaining a first scene picture acquired after the preset time period, determining the threshold value adjusting coefficient by using the first scene picture, and determining the final closing threshold value based on the threshold value adjusting coefficient and the initial closing threshold value.
6. The fill-in light control method according to claim 5, wherein the step of determining the threshold adjustment coefficient using the first scene picture comprises:
acquiring first acquisition parameter information corresponding to the first scene picture; the first acquisition parameter information comprises first gain information, first exposure information, first picture brightness information and first fill-in light intensity;
obtaining a gain difference between the first gain information and the gain information at the termination time of the preset time period, and obtaining an exposure difference between the first exposure information and the exposure information at the termination time of the preset time period;
and determining the threshold adjusting coefficient by using the first gain information, the first exposure information, the first picture brightness information, the first fill-in light intensity, the gain difference and the exposure difference.
7. A fill-in lamp control method according to claim 6, wherein the step of determining the threshold adjustment factor using the first gain information, the first exposure information, the first frame brightness information, the first fill-in lamp intensity, the gain difference value, and the exposure difference value comprises:
responding to a judgment result of the shot scene, that is, a blocked scene is obtained, the first gain information is smaller than a preset gain threshold, the first exposure information is smaller than a preset exposure threshold, the first picture brightness information is smaller than a preset picture brightness threshold, the first fill-in light intensity is smaller than a preset fill-in light intensity, the absolute value of the gain difference is larger than a preset gain change threshold, and the absolute value of the exposure difference is larger than a preset exposure change threshold, judging that the scene of the first scene picture is the blocked scene, wherein the threshold adjustment coefficient is a product of the second adjustment coefficient and a fourth adjustment coefficient, and the fourth adjustment coefficient is larger than 0 and smaller than or equal to 1;
and in response to that the judgment result of the shot scene is a transition scene, the first gain information is smaller than a preset gain threshold, the first exposure information is smaller than a preset exposure threshold, the first picture brightness information is smaller than a preset picture brightness threshold, the first fill-in light intensity is smaller than a preset fill-in light intensity, the absolute value of the gain difference is larger than a preset gain change threshold, and the absolute value of the exposure difference is larger than a preset exposure change threshold, judging that the scene of the first scene picture is a sheltered scene, and the threshold adjustment coefficient is the product of the third adjustment coefficient and the fourth adjustment coefficient.
8. A method for controlling a fill-in light of claim 1, wherein after the step of determining a final turn-off threshold of the fill-in light using the initial turn-off threshold and the threshold adjustment factor, the method further comprises:
acquiring current gain information, current exposure information and current picture brightness information of a current scene picture;
obtaining a current acquisition parameter ratio in the current scene picture by using the current gain information, the current exposure information and the current picture brightness information; wherein the current acquisition parameter ratio is a ratio of a product of the current gain information and the current exposure information to the current picture brightness information;
judging whether the ratio of the current acquisition parameter is smaller than the final closing threshold value;
if yes, the light supplement lamp is turned off.
9. An image capturing apparatus, comprising a memory and a processor coupled to each other, wherein the memory stores program instructions for execution by the processor to implement the fill-in light control method as claimed in claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for implementing the fill light control method of claims 1 to 8.
CN202111039208.0A 2021-09-06 2021-09-06 Light supplement lamp control method and related device Active CN113840095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111039208.0A CN113840095B (en) 2021-09-06 2021-09-06 Light supplement lamp control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111039208.0A CN113840095B (en) 2021-09-06 2021-09-06 Light supplement lamp control method and related device

Publications (2)

Publication Number Publication Date
CN113840095A true CN113840095A (en) 2021-12-24
CN113840095B CN113840095B (en) 2023-03-24

Family

ID=78962387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111039208.0A Active CN113840095B (en) 2021-09-06 2021-09-06 Light supplement lamp control method and related device

Country Status (1)

Country Link
CN (1) CN113840095B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554105A (en) * 2022-04-27 2022-05-27 深圳比特微电子科技有限公司 Method and device for controlling light supplement lamp, camera and storage medium
CN114898537A (en) * 2022-04-19 2022-08-12 广州美术学院 Posture prompting method, posture prompting device, terminal equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102416A (en) * 2007-07-25 2008-01-09 北京中星微电子有限公司 A method and device for automatic control of light supplementary light of shooting device
CN106331519A (en) * 2016-10-31 2017-01-11 维沃移动通信有限公司 Method for adjusting light-compensating lamp and mobile terminal
CN108063900A (en) * 2017-12-12 2018-05-22 青岛海信移动通信技术股份有限公司 The regulation and control method, apparatus and storage medium of a kind of light compensating lamp
WO2018120074A1 (en) * 2016-12-30 2018-07-05 天彩电子(深圳)有限公司 Night-vision switching method for monitoring photographing apparatus, and system thereof
CN108810420A (en) * 2017-05-03 2018-11-13 迅驰(北京)视讯科技有限公司 Control method, system and the Car license recognition instrument of light compensating lamp
CN110351490A (en) * 2018-04-04 2019-10-18 杭州海康威视数字技术股份有限公司 Exposure method, device and picture pick-up device
CN110418067A (en) * 2019-06-18 2019-11-05 浙江大华技术股份有限公司 Light filling lamp control method, device, picture pick-up device and storage medium
CN111614892A (en) * 2020-04-28 2020-09-01 深圳英飞拓智能技术有限公司 Face image acquisition method, shooting device and computer-readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102416A (en) * 2007-07-25 2008-01-09 北京中星微电子有限公司 A method and device for automatic control of light supplementary light of shooting device
CN106331519A (en) * 2016-10-31 2017-01-11 维沃移动通信有限公司 Method for adjusting light-compensating lamp and mobile terminal
WO2018120074A1 (en) * 2016-12-30 2018-07-05 天彩电子(深圳)有限公司 Night-vision switching method for monitoring photographing apparatus, and system thereof
CN108810420A (en) * 2017-05-03 2018-11-13 迅驰(北京)视讯科技有限公司 Control method, system and the Car license recognition instrument of light compensating lamp
CN108063900A (en) * 2017-12-12 2018-05-22 青岛海信移动通信技术股份有限公司 The regulation and control method, apparatus and storage medium of a kind of light compensating lamp
CN110351490A (en) * 2018-04-04 2019-10-18 杭州海康威视数字技术股份有限公司 Exposure method, device and picture pick-up device
CN110418067A (en) * 2019-06-18 2019-11-05 浙江大华技术股份有限公司 Light filling lamp control method, device, picture pick-up device and storage medium
CN111614892A (en) * 2020-04-28 2020-09-01 深圳英飞拓智能技术有限公司 Face image acquisition method, shooting device and computer-readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114898537A (en) * 2022-04-19 2022-08-12 广州美术学院 Posture prompting method, posture prompting device, terminal equipment and storage medium
CN114898537B (en) * 2022-04-19 2023-09-29 广州美术学院 Gesture prompting method, gesture prompting device, terminal equipment and storage medium
CN114554105A (en) * 2022-04-27 2022-05-27 深圳比特微电子科技有限公司 Method and device for controlling light supplement lamp, camera and storage medium
CN114554105B (en) * 2022-04-27 2022-08-02 深圳比特微电子科技有限公司 Method and device for controlling light supplement lamp, camera and storage medium

Also Published As

Publication number Publication date
CN113840095B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN107635102B (en) Method and device for acquiring exposure compensation value of high-dynamic-range image
CN110351490B (en) Exposure method, exposure device and image pickup equipment
US10630906B2 (en) Imaging control method, electronic device and computer readable storage medium
CN111028189B (en) Image processing method, device, storage medium and electronic equipment
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108337445B (en) Photographing method, related device and computer storage medium
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN113840095B (en) Light supplement lamp control method and related device
CN110445989B (en) Image processing method, image processing device, storage medium and electronic equipment
JP4482037B2 (en) Digital imaging exposure
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
CN107105172B (en) Focusing method and device
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
CN110493515B (en) High dynamic range shooting mode starting method and device, storage medium and electronic equipment
US10972676B2 (en) Image processing method and electronic device capable of optimizing hdr image by using depth information
CN113163127B (en) Image processing method, device, electronic equipment and storage medium
CN110266965B (en) Image processing method, image processing device, storage medium and electronic equipment
CN114785966B (en) Exposure control method, shooting processing method, device and medium
CN108337448B (en) High dynamic range image acquisition method and device, terminal equipment and storage medium
CN115767260A (en) Anti-overexposure processing method and device, image acquisition equipment and storage medium
CN116320714A (en) Image acquisition method, apparatus, device, storage medium, and program product
JPH06113195A (en) Video camera device
CN114500830A (en) Camera adjusting method and device, electronic equipment and storage medium
US10609299B1 (en) Method of measuring light using dual cameras

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