[go: up one dir, main page]

WO2018121185A1 - Method for adjusting power of infrared lamp, and photographic equipment - Google Patents

Method for adjusting power of infrared lamp, and photographic equipment Download PDF

Info

Publication number
WO2018121185A1
WO2018121185A1 PCT/CN2017/114427 CN2017114427W WO2018121185A1 WO 2018121185 A1 WO2018121185 A1 WO 2018121185A1 CN 2017114427 W CN2017114427 W CN 2017114427W WO 2018121185 A1 WO2018121185 A1 WO 2018121185A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
infrared lamp
output power
power
image
Prior art date
Application number
PCT/CN2017/114427
Other languages
French (fr)
Chinese (zh)
Inventor
苏辉
徐露艳
董文勇
王晟
王鹏飞
栾国良
金升阳
蒋海青
Original Assignee
杭州萤石网络有限公司
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 杭州萤石网络有限公司 filed Critical 杭州萤石网络有限公司
Publication of WO2018121185A1 publication Critical patent/WO2018121185A1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • 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
    • 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/71Circuitry for evaluating the brightness variation

Definitions

  • the current camera equipment is generally equipped with an infrared light, the infrared light as an infrared light source, can provide the camera device with the brightness required for imaging, fill the camera environment.
  • the infrared light is activated, and the infrared light will operate at full load at the set rated power. That is to say, the infrared lamps of the current imaging device are all operated at a fixed large output power when starting up.
  • the embodiment of the present application provides a method for adjusting the power of the infrared lamp and an imaging device.
  • the technical solution is as follows:
  • the image parameter is used to indicate the brightness of the current shooting environment
  • the method before the acquiring the image parameters of the captured image, the method further includes:
  • the reducing the output power of the infrared lamp comprises:
  • the current output power of the infrared lamp is reduced by a preset power, and the preset power is obtained by multiplying a maximum output power of the infrared lamp by a preset ratio, where the preset ratio is greater than 0 and less than 1;
  • the reducing the current output power of the infrared lamp by a preset power comprises:
  • the camera device further includes:
  • the adjustment module comprises:
  • the increasing unit is configured to increase the current output power of the infrared lamp by the preset power.
  • the increasing unit is used for:
  • a computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for adjusting the power of the infrared lamp provided by the embodiment of the present application is implemented.
  • the method includes:
  • FIG. 1 is a flowchart of a method for adjusting power of an infrared lamp according to an embodiment of the present application
  • FIG. 3C is a schematic structural diagram of an adjustment module 330 according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of hardware of an image pickup apparatus according to an embodiment of the present application.
  • the embodiment of the present application is applied to an imaging device configured with an infrared light, and the imaging device can activate an infrared light when detecting that the brightness of the shooting environment is insufficient, and use the infrared light emitted by the infrared light to fill the shooting environment, thereby
  • the camera device provides the brightness required for imaging.
  • the image pickup apparatus further has an image analysis function capable of acquiring a specific image parameter of the captured image by performing image analysis on the captured image.
  • the image capturing apparatus may perform image analysis on the captured image through image analysis software to acquire specific image parameters.
  • the image parameter may include an automatic exposure value or an average brightness value, and the like, and may also include other image parameters that can indicate the brightness of the shooting environment, which is not limited in this embodiment of the present application.
  • the image parameter can indicate the brightness of the current shooting environment
  • the brightness of the shooting environment can be determined according to the acquired image parameters, and the output power of the infrared lamp can be adaptively adjusted according to the ambient brightness.
  • the preset parameter range is used to indicate that the current shooting environment is in a normal brightness range.
  • the preset parameter range can be set according to specific image parameters, and different image parameters can set different preset parameter ranges.
  • the output power of the infrared lamp can be reduced to reduce the power consumption and heat generation of the infrared lamp; when the image parameter is not within the preset parameter range, and the shooting environment is determined to be dark according to the image parameter , can increase the output power of the infrared light to increase the brightness required for imaging.
  • FIG. 2 is a flowchart of a method for adjusting power of an infrared lamp according to an embodiment of the present application. The method is applied to an image capturing device. Referring to FIG. 2, the method includes:
  • Step 201 When the infrared light is activated, the maximum output power of the infrared light is used as the output power of the infrared light to emit infrared light.
  • the imaging device can activate the infrared lamp to fill light when it detects that the brightness of the shooting environment is insufficient.
  • the maximum output power of the infrared light can be used as the output power of the infrared light, that is, the infrared light is output at the maximum power.
  • the maximum output power of the infrared lamp may be a preset power rating of the infrared lamp.
  • the image parameter may include an automatic exposure value or an average brightness value, and may also include other image parameters that can indicate the brightness of the shooting environment, which is not limited in this embodiment of the present application.
  • Step 203 Determine whether the image parameter is within a preset parameter range.
  • the preset parameter range is used to indicate that the current shooting environment is in a normal brightness range, and when the image parameter is within the preset parameter range, the power of the infrared lamp does not need to be adjusted.
  • the preset parameter range can be set according to specific image parameters, and different image parameters can set different preset parameter ranges.
  • determining whether the image parameter is within a preset parameter range may include the following manners:
  • Step 204 Adjust the output power of the infrared lamp when the image parameter is not within the preset parameter range.
  • adjusting the output power of the infrared lamp may include the following methods:
  • the second mode when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value, increasing the output power of the infrared lamp; when the average brightness value is not at When the preset brightness threshold is within the range, and the average brightness value is greater than the second preset brightness value, the output power of the infrared lamp is decreased, and the second preset brightness value is greater than the first preset brightness value.
  • the preset power is 0.05P
  • the output power of the current infrared lamp can be reduced by 0.05P, if the automatic exposure of the captured image is continued.
  • the light value, and detecting that the automatic exposure value is still less than the first preset exposure value continues to reduce the output power of the infrared lamp by 0.05P until the automatic exposure value is detected within the preset exposure threshold range.
  • the acquiring module 310 is configured to acquire image parameters of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment;
  • the adjustment module 330 includes:
  • the increasing unit 332 is configured to increase an output power of the infrared light when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value;
  • the reducing unit 331 is configured to reduce a current output power of the infrared light by a preset power, where the preset power is obtained by multiplying a maximum output power of the infrared light by a preset ratio.
  • the preset ratio is greater than 0 and less than 1;
  • the increasing unit 332 is configured to:
  • the current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
  • Audio component 410 can be used to output and/or input audio signals.
  • the audio component 410 includes a microphone (MIC) that is configured to receive an external audio signal when the camera device 400 is in an operational mode, such as an imaging mode.
  • the received audio signal may be further stored in memory 404 or transmitted via communication component 416.
  • audio component 410 can also include a speaker for outputting an audio signal.
  • FIG. 4 does not constitute a limitation on the imaging apparatus 400, and the imaging apparatus 400 may include more or less components than those illustrated, or combine some components, or different components.
  • the embodiment of the present application does not limit this.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for adjusting the power of the infrared lamp provided by the embodiment of the present application is implemented.
  • the method includes:
  • the image parameter is used to indicate the brightness of the current shooting environment

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Disclosed is a method for adjusting the power of an infrared lamp, belonging to the field of photography. The method comprises: in the process of photographic equipment starting an infrared lamp to photograph an image, acquiring an image parameter of the photographed image, with the image parameter being used to indicate the brightness of a current photographic environment; determining whether the image parameter is within a pre-set parameter range; and when the image parameter is not within the pre-set parameter range, adjusting the output power of the infrared lamp. Since an acquired image parameter can indicate the brightness of a photographic environment, the brightness of the photographed environment can be determined according to the image parameter, such that the output power of an infrared lamp can be suitably adjusted according to the brightness of the photographic environment, thereby avoiding the problems of relatively high power consumption and heat generation caused by the infrared lamp always operating at the maximum output power, and prolonging the service life of photographic equipment.

Description

红外灯功率的调整方法及摄像设备Infrared lamp power adjustment method and camera device
本申请要求于2016年12月27日提交中国专利局、申请号为201611227537.7、发明名称为“红外灯功率的调整方法及摄像设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201611227537.7, entitled "Infrared Lamp Power Adjustment Method and Camera Equipment", filed on December 27, 2016, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请实施例涉及摄像领域,特别涉及一种红外灯功率的调整方法及摄像设备。The embodiment of the present invention relates to the field of imaging, and particularly relates to a method for adjusting the power of an infrared lamp and an imaging device.
背景技术Background technique
为了满足人们在夜间或低亮度环境下的摄像需求,目前的摄像设备上一般都配置有红外灯,红外灯作为红外光源,能够为摄像设备提供摄像所需的亮度,对摄像环境进行补光。In order to meet the needs of people in the night or low-light environment, the current camera equipment is generally equipped with an infrared light, the infrared light as an infrared light source, can provide the camera device with the brightness required for imaging, fill the camera environment.
相关技术中,在摄像设备工作的过程中,当检测到所拍摄环境的亮度不足时,即会启动红外灯,而且红外灯将以设定的额定功率满负荷工作。也即是,目前摄像设备的红外灯在启动时,均以固定的较大输出功率运行。In the related art, during the operation of the image capturing apparatus, when it is detected that the brightness of the photographing environment is insufficient, the infrared light is activated, and the infrared light will operate at full load at the set rated power. That is to say, the infrared lamps of the current imaging device are all operated at a fixed large output power when starting up.
但是实际应用中,当对环境相对较亮的场景进行拍摄时,比如对反光比较多的近景场景进行拍摄时,可能仅需要很小的红外灯输出功率就能满足实际的摄像需求,如果此时红外灯仍以较大的额定功率持续运行,将会增大摄像设备的能耗,而且由于红外灯本身属于一种大发热量的电子元器件,持续大功率运行将导致摄像设备的大量热量积累,影响设备的使用寿命。However, in practical applications, when shooting a scene with a relatively bright environment, such as shooting a close-up scene with more reflections, it may only need a small infrared light output power to meet the actual imaging needs. The infrared lamp is still running at a large rated power, which will increase the energy consumption of the camera device, and since the infrared lamp itself belongs to a large heat-generating electronic component, continuous high-power operation will result in a large amount of heat accumulation of the camera device. , affecting the service life of the equipment.
发明内容Summary of the invention
为了解决摄像设备的红外灯以固定的最大输出功率运行导致的能耗和产热较大的问题,本申请实施例提供了一种红外灯功率的调整方法及摄像设备。所述技术方案如下:In order to solve the problem of large energy consumption and heat generation caused by the operation of the infrared lamp of the imaging device with a fixed maximum output power, the embodiment of the present application provides a method for adjusting the power of the infrared lamp and an imaging device. The technical solution is as follows:
第一方面,提供了一种红外灯功率的调整方法,应用于摄像设备中,所述方法包括:In a first aspect, a method for adjusting the power of an infrared lamp is provided for use in an image capturing apparatus, the method comprising:
在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;Obtaining image parameters of the captured image during the process of starting the infrared light to capture an image, the image parameter is used to indicate the brightness of the current shooting environment;
判断所述图像参数是否处于预设参数范围内; Determining whether the image parameter is within a preset parameter range;
当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted.
可选地,所述获取所拍摄图像的图像参数之前,还包括:Optionally, before the acquiring the image parameters of the captured image, the method further includes:
当所述红外灯启动时,将所述红外灯的最大输出功率作为所述红外灯的输出功率,以发射红外光线。When the infrared lamp is activated, the maximum output power of the infrared lamp is used as the output power of the infrared lamp to emit infrared light.
可选地,所述图像参数包括自动曝光值;所述判断所述图像参数是否处于预设参数范围内,包括:Optionally, the image parameter includes an automatic exposure value; and determining whether the image parameter is within a preset parameter range includes:
判断所述自动曝光值是否处于预设曝光阈值范围内;Determining whether the automatic exposure value is within a preset exposure threshold range;
相应地,所述当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整,包括:Correspondingly, when the image parameter is not within the preset parameter range, adjusting an output power of the infrared lamp comprises:
当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值小于第一预设曝光值时,减小所述红外灯的输出功率;Decrease the output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range and the automatic exposure value is less than the first preset exposure value;
当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值大于第二预设曝光值时,增大所述红外灯的输出功率,所述第二预设曝光值大于所述第一预设曝光值。Increasing an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is greater than a second preset exposure value, the second preset exposure value Greater than the first preset exposure value.
可选地,所述图像参数包括平均亮度值;所述判断所述图像参数是否处于预设参数范围内,包括:Optionally, the image parameter includes an average brightness value; and determining whether the image parameter is within a preset parameter range includes:
判断所述平均亮度值是否处于预设亮度阈值范围内;Determining whether the average brightness value is within a preset brightness threshold range;
相应地,所述当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整,包括:Correspondingly, when the image parameter is not within the preset parameter range, adjusting an output power of the infrared lamp comprises:
当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值小于第一预设亮度值时,增大所述红外灯的输出功率;When the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value, increasing an output power of the infrared lamp;
当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值大于第二预设亮度值时,减小所述红外灯的输出功率,所述第二预设亮度值大于所述第一预设亮度值。When the average brightness value is not within the preset brightness threshold range, and the average brightness value is greater than the second preset brightness value, reducing the output power of the infrared lamp, the second preset brightness value Greater than the first preset brightness value.
可选地,所述减小所述红外灯的输出功率,包括:Optionally, the reducing the output power of the infrared lamp comprises:
将所述红外灯当前的输出功率减小预设功率,所述预设功率为所述红外灯的最大输出功率与预设比例相乘得到,所述预设比例大于0且小于1;The current output power of the infrared lamp is reduced by a preset power, and the preset power is obtained by multiplying a maximum output power of the infrared lamp by a preset ratio, where the preset ratio is greater than 0 and less than 1;
相应地,所述增大所述红外灯的输出功率,包括: Correspondingly, increasing the output power of the infrared lamp comprises:
将所述红外灯当前的输出功率增大所述预设功率。The current output power of the infrared lamp is increased by the preset power.
可选地,所述红外灯设置有多个功率控制档位,所述多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中,相邻的两个功率控制档位对应的输出功率,相差所述预设功率;Optionally, the infrared lamp is provided with a plurality of power control gear positions, each of the plurality of power control gear positions corresponds to one output power, and the plurality of powers are sequentially arranged according to the magnitude of the output power. In the control gear position, the output power corresponding to the two adjacent power control gear positions is different from the preset power;
相应地,所述将所述红外灯当前的输出功率减小预设功率,包括:Correspondingly, the reducing the current output power of the infrared lamp by a preset power comprises:
将所述红外灯当前的功率控制档位降低一个功率控制档位,以将所述红外灯当前的输出功率减小所述预设功率;Lowering a current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power;
相应地,所述将所述红外灯当前的输出功率增大所述预设功率,包括:Correspondingly, the increasing the current output power of the infrared lamp by the preset power comprises:
将所述红外灯当前的功率控制档位增大一个功率控制档位,以将所述红外灯当前的输出功率增大所述预设功率。The current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
可选地,所述对所述红外灯的输出功率进行调整,包括:Optionally, the adjusting the output power of the infrared lamp comprises:
通过调整驱动信号的占空比,对所述红外灯的输出功率进行调整,所述驱动信号用于控制所述红外灯的驱动电路的输出功率。The output power of the infrared lamp is adjusted by adjusting a duty ratio of the driving signal, and the driving signal is used to control an output power of a driving circuit of the infrared lamp.
第二方面,提供了一种摄像设备,所述摄像设备包括:In a second aspect, an imaging apparatus is provided, the imaging apparatus comprising:
获取模块,用于在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;An acquiring module, configured to acquire an image parameter of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment;
判断模块,用于判断所述图像参数是否处于预设参数范围内;a determining module, configured to determine whether the image parameter is within a preset parameter range;
调整模块,用于当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。And an adjustment module, configured to adjust an output power of the infrared lamp when the image parameter is not within the preset parameter range.
可选地,所述摄像设备还包括:Optionally, the camera device further includes:
启动模块,用于获取所拍摄图像的图像参数之前,当所述红外灯启动时,将所述红外灯的最大输出功率作为所述红外灯的输出功率,以发射红外光线。The startup module is configured to: when the infrared light is activated, use the maximum output power of the infrared light as the output power of the infrared light to emit infrared light before the image parameter of the captured image is acquired.
可选地,所述图像参数包括自动曝光值;所述判断模块用于判断所述自动曝光值是否处于预设曝光阈值范围内;Optionally, the image parameter includes an automatic exposure value; the determining module is configured to determine whether the automatic exposure value is within a preset exposure threshold range;
相应地,所述调整模块包括:Correspondingly, the adjustment module comprises:
减小单元,用于当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值小于第一预设曝光值时,减小所述红外灯的输出功率; a reducing unit, configured to reduce an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is less than a first preset exposure value;
增大单元,用于当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值大于第二预设曝光值时,增大所述红外灯的输出功率,所述第二预设曝光值大于所述第一预设曝光值。An increasing unit, configured to increase an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is greater than a second preset exposure value, The second preset exposure value is greater than the first preset exposure value.
可选地,所述图像参数包括平均亮度值;所述判断模块用于判断所述平均亮度值是否处于预设亮度阈值范围内;Optionally, the image parameter includes an average brightness value; the determining module is configured to determine whether the average brightness value is within a preset brightness threshold range;
相应地,所述调整模块包括:Correspondingly, the adjustment module comprises:
增大单元,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值小于第一预设亮度值时,增大所述红外灯的输出功率;An increasing unit, configured to increase an output power of the infrared lamp when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than a first preset brightness value;
减小单元,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值大于第二预设亮度值时,减小所述红外灯的输出功率,所述第二预设亮度值大于所述第一预设亮度值。a reducing unit, configured to reduce an output power of the infrared lamp when the average brightness value is not within the preset brightness threshold range, and the average brightness value is greater than a second preset brightness value, The second preset brightness value is greater than the first preset brightness value.
可选地,所述减小单元用于将所述红外灯当前的输出功率减小预设功率,所述预设功率为所述红外灯的最大输出功率与预设比例相乘得到,所述预设比例大于0且小于1;Optionally, the reducing unit is configured to reduce a current output power of the infrared light by a preset power, where the preset power is obtained by multiplying a maximum output power of the infrared light by a preset ratio. The preset ratio is greater than 0 and less than 1;
相应地,所述增大单元用于将所述红外灯当前的输出功率增大所述预设功率。Correspondingly, the increasing unit is configured to increase the current output power of the infrared lamp by the preset power.
可选地,所述红外灯设置有多个功率控制档位,所述多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中相邻的两个功率控制档位对应的输出功率相差所述预设功率;Optionally, the infrared lamp is provided with a plurality of power control gear positions, each of the plurality of power control gear positions corresponds to one output power, and the plurality of powers are sequentially arranged according to the magnitude of the output power. The output power corresponding to two adjacent power control gear positions in the control gear position is different from the preset power;
相应地,所述减小单元用于:Correspondingly, the reducing unit is used for:
将所述红外灯当前的功率控制档位降低一个功率控制档位,以将所述红外灯当前的输出功率减小所述预设功率;Lowering a current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power;
相应地,所述增大单元用于:Correspondingly, the increasing unit is used for:
将所述红外灯当前的功率控制档位增大一个功率控制档位,以将所述红外灯当前的输出功率增大所述预设功率。The current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
可选地,所述调整模块用于:Optionally, the adjustment module is configured to:
通过调整驱动信号的占空比,对所述红外灯的输出功率进行调整,所述驱动信号用于控制所述红外灯的驱动电路的输出功率。 The output power of the infrared lamp is adjusted by adjusting a duty ratio of the driving signal, and the driving signal is used to control an output power of a driving circuit of the infrared lamp.
第三方面,提供一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的红外灯功率的调整方法。该方法包括:In a third aspect, a computer readable storage medium is provided. The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for adjusting the power of the infrared lamp provided by the embodiment of the present application is implemented. The method includes:
在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;Obtaining image parameters of the captured image during the process of starting the infrared light to capture an image, the image parameter is used to indicate the brightness of the current shooting environment;
判断所述图像参数是否处于预设参数范围内;Determining whether the image parameter is within a preset parameter range;
当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted.
本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
本申请实施例中,摄像设备可以在启动红外灯拍摄图像的过程中,获取所拍摄图像的用于指示当前所处拍摄环境亮度的图像参数,判断该图像参数是否处于预设参数范围内,当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整。由于获取的图像参数能够指示拍摄环境的亮度,因此可以根据该图像参数确定所拍摄环境的亮度,进而根据拍摄环境的亮度对红外灯的输出功率进行适应性调整,避免了红外灯一直以最大输出功率运行导致的能耗和产热较大的问题,延长了摄像设备的使用寿命。In the embodiment of the present application, the image capturing device may acquire an image parameter of the captured image for indicating the brightness of the current shooting environment during the process of starting the image capturing of the infrared light, and determine whether the image parameter is within the preset parameter range. When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted. Since the acquired image parameter can indicate the brightness of the shooting environment, the brightness of the shooting environment can be determined according to the image parameter, and the output power of the infrared lamp can be adaptively adjusted according to the brightness of the shooting environment, thereby avoiding the maximum output of the infrared light. The problem of energy consumption and heat generation caused by power operation prolongs the service life of the camera equipment.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the embodiments of the present application, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1是本申请实施例提供的一种红外灯功率的调整方法的流程图;1 is a flowchart of a method for adjusting power of an infrared lamp according to an embodiment of the present application;
图2是本申请实施例提供的另一种红外灯功率的调整方法的流程图;2 is a flow chart of another method for adjusting the power of an infrared lamp according to an embodiment of the present application;
图3A是本申请实施例提供的一种摄像设备的结构示意图;3A is a schematic structural diagram of an image pickup apparatus according to an embodiment of the present application;
图3B是本申请实施例提供的另一种摄像设备的结构示意图;FIG. 3B is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present application; FIG.
图3C是本申请实施例提供的一种调整模块330的结构示意图;FIG. 3C is a schematic structural diagram of an adjustment module 330 according to an embodiment of the present disclosure;
图4是本申请实施例提供的一种摄像设备的硬件结构示意图。FIG. 4 is a schematic structural diagram of hardware of an image pickup apparatus according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申 请实施方式作进一步的详细描述。In order to make the purpose, technical solution and advantages of the present application more clear, the following will be combined with the accompanying drawings. Please refer to the implementation method for further detailed description.
在对本申请实施例进行详细的解释说明之前,先对本申请实施例的实施环境予以介绍。本申请实施例应用于配置有红外灯的摄像设备中,该摄像设备能够在检测到所拍摄环境的亮度不足时,启动红外灯,利用红外灯发射的红外光线对拍摄环境进行补光,从而为摄像设备提供摄像所需的亮度。进一步地,该摄像设备还具有图像分析功能,能够通过对所拍摄的图像进行图像分析,获取所拍摄图像的特定图像参数。示例地,该摄像设备可以通过图像分析软件对所拍摄的图像进行图像分析,获取特定图像参数。Before explaining the embodiments of the present application in detail, the implementation environment of the embodiments of the present application is first introduced. The embodiment of the present application is applied to an imaging device configured with an infrared light, and the imaging device can activate an infrared light when detecting that the brightness of the shooting environment is insufficient, and use the infrared light emitted by the infrared light to fill the shooting environment, thereby The camera device provides the brightness required for imaging. Further, the image pickup apparatus further has an image analysis function capable of acquiring a specific image parameter of the captured image by performing image analysis on the captured image. For example, the image capturing apparatus may perform image analysis on the captured image through image analysis software to acquire specific image parameters.
图1是本申请实施例提供的一种红外灯功率的调整方法的流程图。该方法应用于摄像设备中,参见图1,该方法包括:FIG. 1 is a flowchart of a method for adjusting power of an infrared lamp according to an embodiment of the present application. The method is applied to an imaging device. Referring to FIG. 1, the method includes:
步骤101:在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,该图像参数用于指示当前所处拍摄环境的亮度。Step 101: Acquire an image parameter of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment.
其中,该图像参数可以包括自动曝光值或者平均亮度值等,当然也可以包括其他能够指示拍摄环境亮度的图像参数,本申请实施例对此不做限定。The image parameter may include an automatic exposure value or an average brightness value, and the like, and may also include other image parameters that can indicate the brightness of the shooting environment, which is not limited in this embodiment of the present application.
由于该图像参数能够指示当前所处拍摄环境的亮度,因此根据获取的图像参数即可确定所处拍摄环境的亮度,进而可以根据环境亮度对红外灯的输出功率进行适应性的调整。Since the image parameter can indicate the brightness of the current shooting environment, the brightness of the shooting environment can be determined according to the acquired image parameters, and the output power of the infrared lamp can be adaptively adjusted according to the ambient brightness.
步骤102:判断该图像参数是否处于预设参数范围内。Step 102: Determine whether the image parameter is within a preset parameter range.
其中,该预设参数范围用于指示当前所处的拍摄环境处于正常的亮度范围。该预设参数范围可以根据具体的图像参数进行设置,不同的图像参数可以设置不同的预设参数范围。The preset parameter range is used to indicate that the current shooting environment is in a normal brightness range. The preset parameter range can be set according to specific image parameters, and different image parameters can set different preset parameter ranges.
当图像参数处于预设参数范围内时,说明当前所处的拍摄环境处于正常的亮度范围,无需对红外灯的功率进行调整;当图像参数不处于预设参数范围内时,说明当前所处的拍摄环境不处于正常的亮度范围,可能过亮或者过暗,因此需要对红外灯的功率进行调整。When the image parameter is within the preset parameter range, it indicates that the current shooting environment is in the normal brightness range, and there is no need to adjust the power of the infrared lamp; when the image parameter is not within the preset parameter range, the current location is The shooting environment is not in the normal brightness range and may be too bright or too dark, so the power of the infrared lamp needs to be adjusted.
步骤103:当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整。Step 103: Adjust the output power of the infrared lamp when the image parameter is not within the preset parameter range.
具体地,当该图像参数不处于该预设参数范围内,且根据该图像参数确 定拍摄环境较亮时,可以减小红外灯的输出功率,以降低红外灯的功耗和发热;当该图像参数不处于该预设参数范围内,且根据该图像参数确定拍摄环境较暗时,可以增大红外灯的输出功率,以增大摄像所需的亮度。Specifically, when the image parameter is not within the preset parameter range, and according to the image parameter, When the shooting environment is brighter, the output power of the infrared lamp can be reduced to reduce the power consumption and heat generation of the infrared lamp; when the image parameter is not within the preset parameter range, and the shooting environment is determined to be dark according to the image parameter , can increase the output power of the infrared light to increase the brightness required for imaging.
本申请实施例中,摄像设备可以在启动红外灯拍摄图像的过程中,获取所拍摄图像的用于指示当前所处拍摄环境亮度的图像参数,判断该图像参数是否处于预设参数范围内,当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整。由于获取的图像参数能够指示拍摄环境的亮度,因此可以根据该图像参数确定所拍摄环境的亮度,进而根据拍摄环境的亮度对红外灯的输出功率进行适应性调整,避免了红外灯一直以最大输出功率运行导致的能耗和产热较大的问题,延长了摄像设备的使用寿命。In the embodiment of the present application, the image capturing device may acquire an image parameter of the captured image for indicating the brightness of the current shooting environment during the process of starting the image capturing of the infrared light, and determine whether the image parameter is within the preset parameter range. When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted. Since the acquired image parameter can indicate the brightness of the shooting environment, the brightness of the shooting environment can be determined according to the image parameter, and the output power of the infrared lamp can be adaptively adjusted according to the brightness of the shooting environment, thereby avoiding the maximum output of the infrared light. The problem of energy consumption and heat generation caused by power operation prolongs the service life of the camera equipment.
图2是本申请实施例提供的一种红外灯功率的调整方法的流程图,该方法应用于摄像设备中,参见图2,该方法包括:2 is a flowchart of a method for adjusting power of an infrared lamp according to an embodiment of the present application. The method is applied to an image capturing device. Referring to FIG. 2, the method includes:
步骤201:当该红外灯启动时,将该红外灯的最大输出功率作为该红外灯的输出功率,以发射红外光线。Step 201: When the infrared light is activated, the maximum output power of the infrared light is used as the output power of the infrared light to emit infrared light.
该摄像设备在拍摄图像的过程中,当检测到所拍摄环境的亮度不足时,可以启动红外灯进行补光。而当该红外灯启动时,可以将该红外灯的最大输出功率作为该红外灯的输出功率,即该红外灯以最大功率输出。In the process of capturing an image, the imaging device can activate the infrared lamp to fill light when it detects that the brightness of the shooting environment is insufficient. When the infrared light is activated, the maximum output power of the infrared light can be used as the output power of the infrared light, that is, the infrared light is output at the maximum power.
其中,该红外灯的最大输出功率可以为该红外灯预设的额定功率。The maximum output power of the infrared lamp may be a preset power rating of the infrared lamp.
步骤202:在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,该图像参数用于指示当前所处拍摄环境的亮度。Step 202: Acquire image parameters of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment.
本申请实施例中,为了对红外灯的输出功率进行控制,可以在拍摄图像的过程中,获取能够指示当前所处拍摄环境的亮度的图像参数,以便根据获取的图像参数确定所处拍摄环境的亮度,进而根据环境亮度对红外灯的输出功率进行适应性的调整。In the embodiment of the present application, in order to control the output power of the infrared lamp, an image parameter capable of indicating the brightness of the current shooting environment may be acquired during the process of capturing an image, so as to determine the shooting environment according to the acquired image parameter. The brightness, and then the adaptive adjustment of the output power of the infrared lamp according to the ambient brightness.
具体地,该图像参数可以包括自动曝光值或者平均亮度值,当然也可以包括其他能够指示拍摄环境亮度的图像参数,本申请实施例对此不做限定。Specifically, the image parameter may include an automatic exposure value or an average brightness value, and may also include other image parameters that can indicate the brightness of the shooting environment, which is not limited in this embodiment of the present application.
其中,自动曝光(AE,Automatic Exposure)值用于指示拍摄该图像时自动曝光模块的自动增益。自动曝光是指根据光线的强弱自动调整所拍摄图像 的曝光值,具体可以通过自动曝光模块输出的自动增益进行调整。当外界场景比较亮时,自动曝光模块输出的自动增益会变小,即AE值较小;当外界场景比较暗时,自动曝光模块输出的自动增益会变大,即AE值较大。该摄像设备可以通过获取自动曝光模块输出的自动增益,得到所拍摄图像的自动曝光值。Among them, the automatic exposure (AE, Automatic Exposure) value is used to indicate the automatic gain of the automatic exposure module when the image is taken. Auto exposure is to automatically adjust the captured image according to the intensity of the light. The exposure value can be adjusted by the automatic gain output from the AE module. When the external scene is brighter, the automatic gain of the automatic exposure module will become smaller, that is, the AE value is smaller; when the external scene is darker, the automatic gain of the automatic exposure module will become larger, that is, the AE value is larger. The imaging device can obtain an automatic exposure value of the captured image by acquiring an automatic gain output by the automatic exposure module.
其中,平均亮度值是指图像中所有像素点的亮度值的平均值。当外界场景比较亮时,所拍摄图像的平均亮度值会变大;当外界场景比较暗时,所拍摄图像的平均亮度值会变小。该摄像设备可以对所拍摄的图像进行图像分析,获取所拍摄图像中所有像素点的亮度值,并计算所有像素点的亮度值之和与像素点数目之间的比值,得到该图像的平均亮度值。The average brightness value refers to the average value of the brightness values of all the pixels in the image. When the external scene is brighter, the average brightness value of the captured image will become larger; when the external scene is darker, the average brightness value of the captured image will become smaller. The image capturing device can perform image analysis on the captured image, obtain brightness values of all pixels in the captured image, and calculate a ratio between a sum of brightness values of all the pixel points and the number of pixel points, to obtain an average brightness of the image. value.
需要说明的是,本申请实施例所述的拍摄图像的过程可以为拍摄照片的过程,也可以为拍摄视频的过程。当拍摄视频时,该摄像设备可以对视频中的图像帧进行图像分析,获取图像帧的图像参数。It should be noted that the process of capturing an image according to the embodiment of the present application may be a process of taking a photo, or a process of capturing a video. When capturing a video, the imaging device can perform image analysis on the image frame in the video to acquire image parameters of the image frame.
步骤203:判断该图像参数是否处于预设参数范围内。Step 203: Determine whether the image parameter is within a preset parameter range.
其中,该预设参数范围用于指示当前所处的拍摄环境处于正常的亮度范围,当图像参数处于预设参数范围内时,无需对红外灯的功率进行调整。该预设参数范围可以根据具体的图像参数进行设置,不同的图像参数可以设置不同的预设参数范围。The preset parameter range is used to indicate that the current shooting environment is in a normal brightness range, and when the image parameter is within the preset parameter range, the power of the infrared lamp does not need to be adjusted. The preset parameter range can be set according to specific image parameters, and different image parameters can set different preset parameter ranges.
具体地,针对不同的图像参数,判断该图像参数是否处于预设参数范围内的方式可以包括以下几种方式:Specifically, for different image parameters, determining whether the image parameter is within a preset parameter range may include the following manners:
第一种方式,当该图像参数包括自动曝光值时,该预设参数范围可以为预设曝光阈值范围,相应地,判断该图像参数是否处于预设参数范围内包括:判断该自动曝光值是否处于预设曝光阈值范围内。In the first mode, when the image parameter includes an automatic exposure value, the preset parameter range may be a preset exposure threshold range. Correspondingly, determining whether the image parameter is within the preset parameter range includes: determining whether the automatic exposure value is Within the preset exposure threshold.
其中,该预设曝光阈值范围可以为大于或等于第一预设曝光值且小于或等于第二预设曝光值的范围,即该预设曝光阈值范围为[第一预设曝光值,第二预设曝光值]的区间。其中,该第二预设曝光值大于该第一预设曝光值。The preset exposure threshold range may be a range greater than or equal to the first preset exposure value and less than or equal to the second preset exposure value, that is, the preset exposure threshold range is [the first preset exposure value, the second The interval of the preset exposure value]. The second preset exposure value is greater than the first preset exposure value.
进一步地,该预设曝光阈值范围可以根据一个标准曝光值确定,该预设曝光阈值范围可以为该标准曝光值的预设比例范围。例如,假设标准曝光值为AE_Thres,则该预设曝光阈值范围可以为[0.9AE_Thres,1.1AE_Thres]。也 即是,所拍摄图像的AE值可以在AE_Thres的上下10%的范围内波动。Further, the preset exposure threshold range may be determined according to a standard exposure value, and the preset exposure threshold range may be a preset ratio range of the standard exposure value. For example, assuming the standard exposure value is AE_Thres, the preset exposure threshold range may be [0.9AE_Thres, 1.1 AE_Thres]. and also That is, the AE value of the captured image may fluctuate within a range of 10% above and below AE_Thres.
第二种方式,当该图像参数包括平均亮度值时,该预设参数范围可以为具体的预设亮度阈值范围,相应地,判断该图像参数是否处于预设参数范围内包括:判断该平均亮度值是否处于预设亮度阈值范围内。In a second mode, when the image parameter includes an average brightness value, the preset parameter range may be a specific preset brightness threshold range. Correspondingly, determining whether the image parameter is within the preset parameter range includes: determining the average brightness. Whether the value is within the preset brightness threshold.
其中,该平均亮度值可以为大于或等于第一预设亮度值且小于或等于第二预设亮度值的范围,即该预设亮度阈值范围为[第一预设亮度值,第二预设亮度值]的区间。其中,该第二预设亮度值大于该第一预设亮度值。The average brightness value may be a range greater than or equal to the first preset brightness value and less than or equal to the second preset brightness value, that is, the preset brightness threshold range is [the first preset brightness value, the second preset The range of the brightness value]. The second preset brightness value is greater than the first preset brightness value.
进一步地,该预设亮度阈值范围可以根据一个标准亮度值确定,该预设亮度阈值范围可以为该标准亮度值的预设比例范围。例如,假设标准亮度值为Luma_Thres,则该预设曝光阈值范围可以为[0.9Luma_Thres,1.1Luma_Thres]。也即是,所拍摄图像的平均亮度值可以在Luma_Thres的上下10%的范围内波动。Further, the preset brightness threshold range may be determined according to a standard brightness value, and the preset brightness threshold range may be a preset ratio range of the standard brightness value. For example, assuming the standard brightness value is Luma_Thres, the preset exposure threshold range may be [0.9Luma_Thres, 1.1Luma_Thres]. That is, the average brightness value of the captured image may fluctuate within a range of 10% above and below Luma_Thres.
需要说明的是,不同摄像设备上的预设曝光阈值范围和预设亮度阈值范围可能不同,每个摄像设备上的预设曝光阈值范围和预设亮度阈值范围可以通过实际验证进行设置。It should be noted that the preset exposure threshold range and the preset brightness threshold range on different imaging devices may be different, and the preset exposure threshold range and the preset brightness threshold range on each imaging device may be set by actual verification.
步骤204:当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整。Step 204: Adjust the output power of the infrared lamp when the image parameter is not within the preset parameter range.
当该图像参数不处于该预设参数范围内时,说明该图像参数指示的拍摄环境的亮度不在正常的亮度范围内,周围环境的亮度可能过亮或过暗,因此需要对红外灯的输出功率进行调整,以通过调整红外灯的输出功率调整拍摄环境的亮度。When the image parameter is not within the preset parameter range, it indicates that the brightness of the shooting environment indicated by the image parameter is not in the normal brightness range, and the brightness of the surrounding environment may be too bright or too dark, so the output power of the infrared lamp is required. Make adjustments to adjust the brightness of the shooting environment by adjusting the output power of the infrared light.
具体地,针对不同的图像参数,当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整可以包括以下几种方式:Specifically, for different image parameters, when the image parameter is not within the preset parameter range, adjusting the output power of the infrared lamp may include the following methods:
第一种方式:当该自动曝光值不处于该预设曝光阈值范围内,且该自动曝光值小于第一预设曝光值时,减小该红外灯的输出功率;当该自动曝光值不处于该预设曝光阈值范围内,且该自动曝光值大于第二预设曝光值时,增大该红外灯的输出功率,该第二预设曝光值大于该第一预设曝光值。The first mode: when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is less than the first preset exposure value, reducing the output power of the infrared light; when the automatic exposure value is not at When the preset exposure threshold is within the range, and the automatic exposure value is greater than the second preset exposure value, the output power of the infrared light is increased, and the second preset exposure value is greater than the first preset exposure value.
其中,当所拍摄图像的自动曝光值小于第一预设曝光值时,说明当前所处的拍摄环境较亮,较小的红外灯输出功率即可满足拍摄需求,因此为了减 小功耗,可以减小该红外灯的输出功率;当该自动曝光值大于第二预设曝光值时,说明当前所处的拍摄环境较暗,当前的红外灯输出功率已经不能满足拍摄需求,因此为了增大拍摄环境的亮度,可以增大该红外灯的输出功率。Wherein, when the automatic exposure value of the captured image is smaller than the first preset exposure value, it indicates that the current shooting environment is brighter, and the smaller infrared light output power can meet the shooting demand, so The small power consumption can reduce the output power of the infrared lamp; when the automatic exposure value is greater than the second preset exposure value, it indicates that the current shooting environment is dark, and the current infrared lamp output power cannot meet the shooting requirement. Therefore, in order to increase the brightness of the shooting environment, the output power of the infrared lamp can be increased.
第二种方式:当该平均亮度值不处于该预设亮度阈值范围内,且该平均亮度值小于第一预设亮度值时,增大该红外灯的输出功率;当该平均亮度值不处于该预设亮度阈值范围内,且该平均亮度值大于第二预设亮度值时,减小该红外灯的输出功率,该第二预设亮度值大于该第一预设亮度值。The second mode: when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value, increasing the output power of the infrared lamp; when the average brightness value is not at When the preset brightness threshold is within the range, and the average brightness value is greater than the second preset brightness value, the output power of the infrared lamp is decreased, and the second preset brightness value is greater than the first preset brightness value.
其中,当所拍摄图像的平均亮度值小于第一预设亮度值时,说明当前所处的拍摄环境较暗,当前的红外灯输出功率已经不能满足拍摄需求,因此为了增大拍摄环境的亮度,可以增大该红外灯的输出功率;当所拍摄图像的平均亮度值大于第二预设亮度值时,说明当前所处的拍摄环境较暗,较小的红外灯输出功率即可满足拍摄需求,因此为了减小功耗,可以减小该红外灯的输出功率。Wherein, when the average brightness value of the captured image is less than the first preset brightness value, it indicates that the current shooting environment is dark, and the current infrared lamp output power cannot meet the shooting requirement, so in order to increase the brightness of the shooting environment, Increasing the output power of the infrared lamp; when the average brightness value of the captured image is greater than the second preset brightness value, it indicates that the current shooting environment is dark, and the smaller infrared light output power can meet the shooting demand, so By reducing power consumption, the output power of the infrared lamp can be reduced.
具体地,上述减小该红外灯的输出功率的过程可以包括:将该红外灯当前的输出功率减小预设功率。相应地,上述增大该红外灯的输出功率的过程可以包括:将该红外灯当前的输出功率增大该预设功率。Specifically, the process of reducing the output power of the infrared lamp may include: reducing the current output power of the infrared lamp by a preset power. Correspondingly, the increasing the output power of the infrared lamp may include: increasing the current output power of the infrared lamp by the preset power.
其中,该预设功率为该红外灯的最大输出功率与预设比例相乘得到,该预设比例大于0且小于1。例如,该预设比例可以为0.05或者0.1等。示例地,假设该红外灯的最大输出功率为P,该预设比例为0.05,则该预设功率即为0.05P。当该图像参数不处于预设参数范围内时,该摄像设备即可将当前红外灯的输出功率增大或减小0.05P。The preset power is obtained by multiplying the maximum output power of the infrared lamp by a preset ratio, and the preset ratio is greater than 0 and less than 1. For example, the preset ratio may be 0.05 or 0.1 or the like. For example, assuming that the maximum output power of the infrared lamp is P, and the preset ratio is 0.05, the preset power is 0.05P. When the image parameter is not within the preset parameter range, the imaging device can increase or decrease the output power of the current infrared lamp by 0.05P.
需要说明的是,上述调整红外灯的输出功率的过程可以为循环调整的过程,也即是,当第一次获取所拍摄图像的图像参数,并根据该图像参数对红外灯的输出功率进行调整后,该摄像设备可以继续获取所拍摄图像的图像参数,判断该图像参数是否处于预设参数范围内,如果仍不处于该预设参数范围内,则继续对红外灯的输出功率进行调整,直至检测到获取的图像参数处于该预设参数范围时,停止调整。It should be noted that the process of adjusting the output power of the infrared lamp may be a process of cyclic adjustment, that is, when the image parameters of the captured image are acquired for the first time, and the output power of the infrared lamp is adjusted according to the image parameter. Afterwards, the image capturing device may continue to acquire image parameters of the captured image, determine whether the image parameter is within a preset parameter range, and if it is still not within the preset parameter range, continue to adjust the output power of the infrared light until When it is detected that the acquired image parameter is within the preset parameter range, the adjustment is stopped.
例如,若预设功率为0.05P,则当该自动曝光值小于第一预设曝光值时,可以将当前红外灯的输出功率减小0.05P,如果继续获取所拍摄图像的自动曝 光值,并检测到该自动曝光值仍小于该第一预设曝光值,则继续将红外灯的输出功率减小0.05P,直至检测到自动曝光值在预设曝光阈值范围内为止。For example, if the preset power is 0.05P, when the automatic exposure value is less than the first preset exposure value, the output power of the current infrared lamp can be reduced by 0.05P, if the automatic exposure of the captured image is continued. The light value, and detecting that the automatic exposure value is still less than the first preset exposure value, continues to reduce the output power of the infrared lamp by 0.05P until the automatic exposure value is detected within the preset exposure threshold range.
本申请实施例中,为了能够实现将红外灯输出功率每次减小或增大预设功率,获取所拍摄图像的图像参数之前,可以为该红外灯设置多个功率控制档位,该多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中,相邻的两个功率控制档位对应的输出功率,相差该预设功率。相应地,将该红外灯当前的输出功率减小预设功率包括:将该红外灯当前的功率控制档位降低一个功率控制档位,以将该红外灯当前的输出功率减小该预设功率;将该红外灯当前的输出功率增大该预设功率包括:将该红外灯当前的功率控制档位增大一个功率控制档位,以将该红外灯当前的输出功率增大该预设功率。In the embodiment of the present application, in order to reduce the output power of the infrared lamp or increase the preset power, and obtain the image parameters of the captured image, a plurality of power control gears may be set for the infrared lamp, and the multiple Each power control gear position in the power control gear position corresponds to one output power, and among the plurality of power control gear positions arranged in order of the output power, the output power corresponding to the adjacent two power control gear positions is different. Preset power. Correspondingly, reducing the current output power of the infrared lamp by the preset power comprises: lowering the current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power Increasing the current output power of the infrared lamp by the preset power includes: increasing a current power control gear position of the infrared lamp by a power control gear position to increase the current output power of the infrared lamp by the preset power .
实际应用中,可以通过调整驱动信号的占空比,对该红外灯的输出功率进行调整,该驱动信号用于控制该红外灯的驱动电路的输出功率。相应地,每个功率控制档位用于控制该驱动信号的占空比,通过改变功率控制档位调整驱动信号的占空比,即可将红外灯输出功率增大或减小该预设功率。In practical applications, the output power of the infrared lamp can be adjusted by adjusting the duty ratio of the driving signal, and the driving signal is used to control the output power of the driving circuit of the infrared lamp. Correspondingly, each power control gear position is used to control the duty ratio of the driving signal, and the infrared lamp output power can be increased or decreased by adjusting the duty ratio of the driving signal by changing the power control gear position. .
在一个实施例中,可以通过功率输出算法调整该红外灯的输出功率,即通过以下公式确定该红外灯的输出功率:In one embodiment, the output power of the infrared lamp can be adjusted by a power output algorithm, that is, the output power of the infrared lamp is determined by the following formula:
P′=(20-count)×t×PP'=(20-count)×t×P
其中,P′为红外灯的当前输出功率,P为红外灯的最大输出功率,count为调整参数,t为预设比例。t用于指示调整功率过程每次减小或增大的预设功率,例如t可以为0.05、0.1等。Where P' is the current output power of the infrared lamp, P is the maximum output power of the infrared lamp, count is the adjustment parameter, and t is the preset ratio. t is used to indicate a preset power that is reduced or increased each time the power adjustment process is performed, for example, t may be 0.05, 0.1, or the like.
红外灯启动过程中,count初始化为0,此时该红外灯的输出功率P′为最大输出功率P。后续过程中,若根据图像参数确定需要减小红外灯的输出功率,则将count加1;若根据图像参数确定需要增大红外灯的输出功率,则将count减1。重复上述步骤,直至检测到图像参数处于预设参数范围内时,停止调整。During the startup of the infrared lamp, the count is initialized to 0, and the output power P' of the infrared lamp is the maximum output power P. In the subsequent process, if it is determined according to the image parameters that the output power of the infrared lamp needs to be reduced, the count is incremented by one; if it is determined according to the image parameters that the output power of the infrared lamp needs to be increased, the count is decremented by one. Repeat the above steps until the image parameters are detected to be within the preset parameters, and the adjustment is stopped.
需要说明的是,对应于上述功率控制档位,count相当于减小的功率控制档位数,count加1相当于降低一个功率控制档位,count减1相当于增大一个功率控制档位。 It should be noted that, corresponding to the above power control gear position, count is equivalent to the reduced power control gear position, and counting 1 is equivalent to lowering one power control gear position, and counting minus 1 is equivalent to increasing one power control gear position.
还需要说明的是,本申请实施例仅是以自动曝光值和平均亮度值这两种图像参数为例进行说明,而实际应用中,也可以获取其他能够指示拍摄环境亮度的图像参数,并按照上述方式对红外灯的输出功率进行调整,本申请实施例对此不做限定。It should be noted that, in the embodiment of the present application, only two image parameters, namely an automatic exposure value and an average brightness value, are taken as an example, and in actual applications, other image parameters capable of indicating the brightness of the shooting environment may be acquired, and according to In the above manner, the output power of the infrared lamp is adjusted, which is not limited in this embodiment of the present application.
本申请实施例中,摄像设备可以在启动红外灯拍摄图像的过程中,获取所拍摄图像的用于指示当前所处拍摄环境亮度的图像参数,判断该图像参数是否处于预设参数范围内,当该图像参数不处于该预设参数范围内时,对该红外灯的输出功率进行调整。由于获取的图像参数能够指示拍摄环境的亮度,因此可以根据该图像参数确定所拍摄环境的亮度,进而根据拍摄环境的亮度对红外灯的输出功率进行适应性调整,避免了红外灯一直以最大输出功率运行导致的能耗和产热较大的问题,延长了摄像设备的使用寿命。In the embodiment of the present application, the image capturing device may acquire an image parameter of the captured image for indicating the brightness of the current shooting environment during the process of starting the image capturing of the infrared light, and determine whether the image parameter is within the preset parameter range. When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted. Since the acquired image parameter can indicate the brightness of the shooting environment, the brightness of the shooting environment can be determined according to the image parameter, and the output power of the infrared lamp can be adaptively adjusted according to the brightness of the shooting environment, thereby avoiding the maximum output of the infrared light. The problem of energy consumption and heat generation caused by power operation prolongs the service life of the camera equipment.
图3A是本申请实施例提供的一种摄像设备的结构示意图。参见图3A,该摄像设备包括:FIG. 3A is a schematic structural diagram of an image pickup apparatus according to an embodiment of the present application. Referring to FIG. 3A, the imaging apparatus includes:
获取模块310,用于在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;The acquiring module 310 is configured to acquire image parameters of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment;
判断模块320,用于判断所述图像参数是否处于预设参数范围内;The determining module 320 is configured to determine whether the image parameter is within a preset parameter range;
调整模块330,用于当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。The adjusting module 330 is configured to adjust an output power of the infrared lamp when the image parameter is not within the preset parameter range.
可选地,参见图3B,所述摄像设备还包括:Optionally, referring to FIG. 3B, the image capturing apparatus further includes:
启动模块340,用于获取所拍摄图像的图像参数之前,当所述红外灯启动时,将所述红外灯的最大输出功率作为所述红外灯的输出功率,以发射红外光线。The startup module 340 is configured to: when the infrared light is activated, use the maximum output power of the infrared light as the output power of the infrared light to emit infrared light before acquiring the image parameter of the captured image.
可选地,所述图像参数包括自动曝光值;所述判断模块320用于判断所述自动曝光值是否处于预设曝光阈值范围内;Optionally, the image parameter includes an automatic exposure value; the determining module 320 is configured to determine whether the automatic exposure value is within a preset exposure threshold range;
相应地,参见图3C,所述调整模块330包括:Accordingly, referring to FIG. 3C, the adjustment module 330 includes:
减小单元331,用于当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值小于第一预设曝光值时,减小所述红外灯的输出功率;The reducing unit 331 is configured to reduce an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is less than the first preset exposure value;
增大单元332,用于当所述自动曝光值不处于所述预设曝光阈值范围内, 且所述自动曝光值大于第二预设曝光值时,增大所述红外灯的输出功率,所述第二预设曝光值大于所述第一预设曝光值。The increasing unit 332 is configured to: when the automatic exposure value is not within the preset exposure threshold range, And when the automatic exposure value is greater than the second preset exposure value, increasing an output power of the infrared light, the second preset exposure value being greater than the first preset exposure value.
可选地,所述图像参数包括平均亮度值;所述判断模块320用于判断所述平均亮度值是否处于预设亮度阈值范围内;Optionally, the image parameter includes an average brightness value; the determining module 320 is configured to determine whether the average brightness value is within a preset brightness threshold range;
相应地,参见图3C,所述调整模块330包括:Accordingly, referring to FIG. 3C, the adjustment module 330 includes:
增大单元332,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值小于第一预设亮度值时,增大所述红外灯的输出功率;The increasing unit 332 is configured to increase an output power of the infrared light when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value;
减小单元331,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值大于第二预设亮度值时,减小所述红外灯的输出功率,所述第二预设亮度值大于所述第一预设亮度值。The reducing unit 331 is configured to reduce the output power of the infrared lamp when the average brightness value is not within the preset brightness threshold range, and the average brightness value is greater than the second preset brightness value, The second preset brightness value is greater than the first preset brightness value.
可选地,所述减小单元331用于将所述红外灯当前的输出功率减小预设功率,所述预设功率为所述红外灯的最大输出功率与预设比例相乘得到,所述预设比例大于0且小于1;Optionally, the reducing unit 331 is configured to reduce a current output power of the infrared light by a preset power, where the preset power is obtained by multiplying a maximum output power of the infrared light by a preset ratio. The preset ratio is greater than 0 and less than 1;
相应地,所述增大单元332用于将所述红外灯当前的输出功率增大所述预设功率。Correspondingly, the increasing unit 332 is configured to increase the current output power of the infrared light by the preset power.
可选地,所述红外灯设置有多个功率控制档位,所述多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中相邻的两个功率控制档位对应的输出功率相差所述预设功率;Optionally, the infrared lamp is provided with a plurality of power control gear positions, each of the plurality of power control gear positions corresponds to one output power, and the plurality of powers are sequentially arranged according to the magnitude of the output power. The output power corresponding to two adjacent power control gear positions in the control gear position is different from the preset power;
相应地,所述减小单元331用于:Correspondingly, the reducing unit 331 is configured to:
将所述红外灯当前的功率控制档位降低一个功率控制档位,以将所述红外灯当前的输出功率减小所述预设功率;Lowering a current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power;
相应地,所述增大单元332用于:Correspondingly, the increasing unit 332 is configured to:
将所述红外灯当前的功率控制档位增大一个功率控制档位,以将所述红外灯当前的输出功率增大所述预设功率。The current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
可选地,所述调整模块330用于:Optionally, the adjustment module 330 is configured to:
通过调整驱动信号的占空比,对所述红外灯的输出功率进行调整,所述驱动信号用于控制所述红外灯的驱动电路的输出功率。The output power of the infrared lamp is adjusted by adjusting a duty ratio of the driving signal, and the driving signal is used to control an output power of a driving circuit of the infrared lamp.
需要说明的是,上述实施例提供的摄像设备在调整红外灯功率时,仅以 上述各功能模块的划分进行举例说明。实际应用中,可以根据需要将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的摄像设备与红外灯功率的调整方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the image pickup device provided by the above embodiment adjusts the power of the infrared lamp, only The division of each of the above functional modules is illustrated by way of example. In practical applications, the above function assignments may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiment of the present invention is the same as the embodiment of the method for adjusting the power of the infrared lamp, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
图4是根据一示例性实施例示出的一种摄像设备400的硬件结构示意图。例如,摄像设备400可以是卡片机、单反摄像机等各种类型的摄像机,或者球机、云台等监控摄像头,或者手机、计算机、平板电脑等具有摄像功能的终端等。FIG. 4 is a schematic diagram showing the hardware structure of an image pickup apparatus 400 according to an exemplary embodiment. For example, the imaging apparatus 400 may be various types of cameras such as a card machine and a SLR camera, or a surveillance camera such as a dome camera or a pan/tilt head, or a terminal having a camera function such as a mobile phone, a computer, or a tablet computer.
参照图4,摄像设备400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)接口412,传感器组件414,以及通信组件416。Referring to FIG. 4, the imaging apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, and a sensor component 414, And a communication component 416.
处理组件402通常控制摄像设备400的整体操作,诸如与显示,数据通信,相机操作和记录操作相关联的操作。处理组件402可以由包括的一个或多个处理器420来执行指令,以完成上述方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。 Processing component 402 typically controls the overall operation of imaging device 400, such as operations associated with display, data communication, camera operations, and recording operations. Processing component 402 can execute instructions by one or more processors 420 included to perform all or part of the steps of the above methods. Moreover, processing component 402 can include one or more modules to facilitate interaction between component 402 and other components. For example, processing component 402 can include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.
存储器404被配置为存储各种类型的数据以支持在摄像设备400中的操作。这些数据示例地包括用于在摄像设备400上操作的任何应用程序或方法的指令,图片,视频,音频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 404 is configured to store various types of data to support operations in the imaging apparatus 400. These data illustratively include instructions, pictures, video, audio, etc. for any application or method operating on camera device 400. Memory 404 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable. Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
电源组件406为摄像设备400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为摄像设备400生成、管理和分配电源相关联的组件。 Power component 406 provides power to various components of camera device 400. Power component 406 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to camera device 400.
多媒体组件408包括摄像头,该摄像头包括前置摄像头和/或后置摄像头。当摄像设备400处于操作模式,如拍摄模式或视频模式时,摄像头可以接收外部的多媒体数据。该摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力的器件。在一个实施例中,多媒体组件408包括在所述摄像设备400和用户之间提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。The multimedia component 408 includes a camera that includes a front camera and/or a rear camera. When the imaging apparatus 400 is in an operation mode such as a shooting mode or a video mode, the camera can receive external multimedia data. The camera can be a fixed optical lens system or a device with focal length and optical zoom capability. In one embodiment, the multimedia component 408 includes a screen that provides an output interface between the camera device 400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
音频组件410可以用于输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当摄像设备400处于操作模式,如摄像模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送出去。在一些实施例中,音频组件410还可以包括一个扬声器,用于输出音频信号。 Audio component 410 can be used to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive an external audio signal when the camera device 400 is in an operational mode, such as an imaging mode. The received audio signal may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 can also include a speaker for outputting an audio signal.
I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮和启动按钮。The I/O interface 412 provides an interface between the processing component 402 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, and a launch button.
传感器组件414包括一个或多个传感器,用于为摄像设备400提供各个方面的状态评估。例如,传感器组件414可以检测到摄像设备400的打开/关闭状态,组件的相对定位,光线的强弱等。传感器组件414可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 414 includes one or more sensors for providing various aspects of state evaluation for imaging device 400. For example, the sensor assembly 414 can detect the on/off state of the camera device 400, the relative positioning of the components, the intensity of the light, and the like. Sensor assembly 414 can include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件416被配置为便于摄像设备400和其他设备之间有线或无线方式的通信。摄像设备400可以接入基于通信标准的无线网络,如WiFi(无线局域网),2G或4G网络,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。 Communication component 416 is configured to facilitate wired or wireless communication between camera device 400 and other devices. The camera device 400 can access a wireless network based on a communication standard such as WiFi (Wireless Local Area Network), 2G or 4G network, or a combination thereof. In an exemplary embodiment, communication component 416 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
在示例性实施例中,摄像设备400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。 In an exemplary embodiment, camera device 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), A gated array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由摄像设备400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 404 comprising instructions executable by processor 420 of imaging apparatus 400 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
本领域技术人员可以理解,图4中示出的结构并不构成对摄像设备400的限定,摄像设备400可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,本申请实施例对此不做限定。It will be understood by those skilled in the art that the structure shown in FIG. 4 does not constitute a limitation on the imaging apparatus 400, and the imaging apparatus 400 may include more or less components than those illustrated, or combine some components, or different components. The embodiment of the present application does not limit this.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,该计算机程序被处理器执行时实现本申请实施例提供的红外灯功率的调整方法。该方法包括:The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for adjusting the power of the infrared lamp provided by the embodiment of the present application is implemented. The method includes:
在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;Obtaining image parameters of the captured image during the process of starting the infrared light to capture an image, the image parameter is used to indicate the brightness of the current shooting environment;
判断所述图像参数是否处于预设参数范围内;Determining whether the image parameter is within a preset parameter range;
当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted.
可见,由于本实施例获取的图像参数能够指示拍摄环境的亮度,因此可以根据该图像参数确定所拍摄环境的亮度,进而根据拍摄环境的亮度对红外灯的输出功率进行适应性调整,避免了红外灯一直以最大输出功率运行导致的能耗和产热较大的问题,延长了摄像设备的使用寿命。It can be seen that, since the image parameters acquired in this embodiment can indicate the brightness of the shooting environment, the brightness of the shooting environment can be determined according to the image parameters, and the output power of the infrared light can be adaptively adjusted according to the brightness of the shooting environment, thereby avoiding infrared. The lamp has always been operating at maximum output power, resulting in increased energy consumption and heat production, extending the life of the camera.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the application. Any modifications, equivalents, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application. within.

Claims (15)

  1. 一种红外灯功率的调整方法,其特征在于,应用于摄像设备中,所述方法包括:A method for adjusting the power of an infrared lamp is characterized in that it is applied to an image capturing apparatus, and the method comprises:
    在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;Obtaining image parameters of the captured image during the process of starting the infrared light to capture an image, the image parameter is used to indicate the brightness of the current shooting environment;
    判断所述图像参数是否处于预设参数范围内;Determining whether the image parameter is within a preset parameter range;
    当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。When the image parameter is not within the preset parameter range, the output power of the infrared lamp is adjusted.
  2. 如权利要求1所述的方法,其特征在于,所述获取所拍摄图像的图像参数之前,还包括:The method of claim 1, wherein before the acquiring the image parameters of the captured image, the method further comprises:
    当所述红外灯启动时,将所述红外灯的最大输出功率作为所述红外灯的输出功率,以发射红外光线。When the infrared lamp is activated, the maximum output power of the infrared lamp is used as the output power of the infrared lamp to emit infrared light.
  3. 如权利要求1所述的方法,其特征在于,所述图像参数包括自动曝光值;所述判断所述图像参数是否处于预设参数范围内,包括:The method of claim 1, wherein the image parameter comprises an automatic exposure value; and the determining whether the image parameter is within a preset parameter range comprises:
    判断所述自动曝光值是否处于预设曝光阈值范围内;Determining whether the automatic exposure value is within a preset exposure threshold range;
    相应地,所述当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整,包括:Correspondingly, when the image parameter is not within the preset parameter range, adjusting an output power of the infrared lamp comprises:
    当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值小于第一预设曝光值时,减小所述红外灯的输出功率;Decrease the output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range and the automatic exposure value is less than the first preset exposure value;
    当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值大于第二预设曝光值时,增大所述红外灯的输出功率,所述第二预设曝光值大于所述第一预设曝光值。Increasing an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is greater than a second preset exposure value, the second preset exposure value Greater than the first preset exposure value.
  4. 如权利要求1所述的方法,其特征在于,所述图像参数包括平均亮度值;所述判断所述图像参数是否处于预设参数范围内,包括:The method of claim 1, wherein the image parameter comprises an average brightness value; and the determining whether the image parameter is within a preset parameter range comprises:
    判断所述平均亮度值是否处于预设亮度阈值范围内;Determining whether the average brightness value is within a preset brightness threshold range;
    相应地,所述当所述图像参数不处于所述预设参数范围内时,对所述红 外灯的输出功率进行调整,包括:Correspondingly, when the image parameter is not within the preset parameter range, the red The output power of the external light is adjusted, including:
    当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值小于第一预设亮度值时,增大所述红外灯的输出功率;When the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than the first preset brightness value, increasing an output power of the infrared lamp;
    当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值大于第二预设亮度值时,减小所述红外灯的输出功率,所述第二预设亮度值大于所述第一预设亮度值。When the average brightness value is not within the preset brightness threshold range, and the average brightness value is greater than the second preset brightness value, reducing the output power of the infrared lamp, the second preset brightness value Greater than the first preset brightness value.
  5. 如权利要求3或4所述的方法,其特征在于,所述减小所述红外灯的输出功率,包括:The method according to claim 3 or 4, wherein said reducing the output power of said infrared lamp comprises:
    将所述红外灯当前的输出功率减小预设功率,所述预设功率为所述红外灯的最大输出功率与预设比例相乘得到,所述预设比例大于0且小于1;The current output power of the infrared lamp is reduced by a preset power, and the preset power is obtained by multiplying a maximum output power of the infrared lamp by a preset ratio, where the preset ratio is greater than 0 and less than 1;
    相应地,所述增大所述红外灯的输出功率,包括:Correspondingly, increasing the output power of the infrared lamp comprises:
    将所述红外灯当前的输出功率增大所述预设功率。The current output power of the infrared lamp is increased by the preset power.
  6. 如权利要求5所述的方法,其特征在于,所述红外灯设置有多个功率控制档位,所述多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中,相邻的两个功率控制档位对应的输出功率,相差所述预设功率;The method of claim 5, wherein the infrared lamp is provided with a plurality of power control gear positions, each of the plurality of power control gear positions corresponding to one output power, and according to the output Among the plurality of power control gears in which the power is sequentially arranged, the output power corresponding to the adjacent two power control gears is different from the preset power;
    相应地,所述将所述红外灯当前的输出功率减小预设功率,包括:Correspondingly, the reducing the current output power of the infrared lamp by a preset power comprises:
    将所述红外灯当前的功率控制档位降低一个功率控制档位,以将所述红外灯当前的输出功率减小所述预设功率;Lowering a current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power;
    相应地,所述将所述红外灯当前的输出功率增大所述预设功率,包括:Correspondingly, the increasing the current output power of the infrared lamp by the preset power comprises:
    将所述红外灯当前的功率控制档位增大一个功率控制档位,以将所述红外灯当前的输出功率增大所述预设功率。The current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
  7. 如权利要求1所述的方法,其特征在于,所述对所述红外灯的输出功率进行调整,包括:The method of claim 1 wherein said adjusting said output power of said infrared lamp comprises:
    通过调整驱动信号的占空比,对所述红外灯的输出功率进行调整,所述驱动信号用于控制所述红外灯的驱动电路的输出功率。 The output power of the infrared lamp is adjusted by adjusting a duty ratio of the driving signal, and the driving signal is used to control an output power of a driving circuit of the infrared lamp.
  8. 一种摄像设备,其特征在于,所述摄像设备包括:An image pickup apparatus, wherein the image pickup apparatus comprises:
    获取模块,用于在启动红外灯拍摄图像的过程中,获取所拍摄图像的图像参数,所述图像参数用于指示当前所处拍摄环境的亮度;An acquiring module, configured to acquire an image parameter of the captured image during the process of starting the infrared light to capture an image, where the image parameter is used to indicate the brightness of the current shooting environment;
    判断模块,用于判断所述图像参数是否处于预设参数范围内;a determining module, configured to determine whether the image parameter is within a preset parameter range;
    调整模块,用于当所述图像参数不处于所述预设参数范围内时,对所述红外灯的输出功率进行调整。And an adjustment module, configured to adjust an output power of the infrared lamp when the image parameter is not within the preset parameter range.
  9. 如权利要求8所述的摄像设备,其特征在于,所述摄像设备还包括:The image pickup apparatus according to claim 8, wherein the image pickup apparatus further comprises:
    启动模块,用于获取所拍摄图像的图像参数之前,当所述红外灯启动时,将所述红外灯的最大输出功率作为所述红外灯的输出功率,以发射红外光线。The startup module is configured to: when the infrared light is activated, use the maximum output power of the infrared light as the output power of the infrared light to emit infrared light before the image parameter of the captured image is acquired.
  10. 如权利要求8所述的摄像设备,其特征在于,所述图像参数包括自动曝光值;所述判断模块用于判断所述自动曝光值是否处于预设曝光阈值范围内;The image pickup apparatus according to claim 8, wherein the image parameter comprises an automatic exposure value; and the determining module is configured to determine whether the automatic exposure value is within a preset exposure threshold range;
    相应地,所述调整模块包括:Correspondingly, the adjustment module comprises:
    减小单元,用于当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值小于第一预设曝光值时,减小所述红外灯的输出功率;a reducing unit, configured to reduce an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is less than a first preset exposure value;
    增大单元,用于当所述自动曝光值不处于所述预设曝光阈值范围内,且所述自动曝光值大于第二预设曝光值时,增大所述红外灯的输出功率,所述第二预设曝光值大于所述第一预设曝光值。An increasing unit, configured to increase an output power of the infrared lamp when the automatic exposure value is not within the preset exposure threshold range, and the automatic exposure value is greater than a second preset exposure value, The second preset exposure value is greater than the first preset exposure value.
  11. 如权利要求8所述的摄像设备,其特征在于,所述图像参数包括平均亮度值;所述判断模块用于判断所述平均亮度值是否处于预设亮度阈值范围内;The image pickup apparatus according to claim 8, wherein the image parameter comprises an average brightness value; and the determining module is configured to determine whether the average brightness value is within a preset brightness threshold range;
    相应地,所述调整模块包括:Correspondingly, the adjustment module comprises:
    增大单元,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值小于第一预设亮度值时,增大所述红外灯的输出功率;An increasing unit, configured to increase an output power of the infrared lamp when the average brightness value is not within the preset brightness threshold range, and the average brightness value is less than a first preset brightness value;
    减小单元,用于当所述平均亮度值不处于所述预设亮度阈值范围内,且所述平均亮度值大于第二预设亮度值时,减小所述红外灯的输出功率,所述 第二预设亮度值大于所述第一预设亮度值。a reducing unit, configured to reduce an output power of the infrared lamp when the average brightness value is not within the preset brightness threshold range, and the average brightness value is greater than a second preset brightness value, The second preset brightness value is greater than the first preset brightness value.
  12. 如权利要求10或11所述的摄像设备,其特征在于,所述减小单元用于将所述红外灯当前的输出功率减小预设功率,所述预设功率为所述红外灯的最大输出功率与预设比例相乘得到,所述预设比例大于0且小于1;The image capturing apparatus according to claim 10 or 11, wherein the reducing unit is configured to reduce a current output power of the infrared light by a preset power, and the preset power is a maximum of the infrared light The output power is multiplied by a preset ratio, and the preset ratio is greater than 0 and less than 1;
    相应地,所述增大单元用于将所述红外灯当前的输出功率增大所述预设功率。Correspondingly, the increasing unit is configured to increase the current output power of the infrared lamp by the preset power.
  13. 如权利要求12所述的摄像设备,其特征在于,所述红外灯设置有多个功率控制档位,所述多个功率控制档位中的每个功率控制档位对应一个输出功率,且按照输出功率的大小顺序排列的多个功率控制档位中,相邻的两个功率控制档位对应的输出功率,相差所述预设功率;The image pickup apparatus according to claim 12, wherein the infrared lamp is provided with a plurality of power control gear positions, and each of the plurality of power control gear positions corresponds to one output power, and according to Among the plurality of power control gears in which the output power is sequentially arranged, the output power corresponding to the adjacent two power control gears is different from the preset power;
    相应地,所述减小单元用于:Correspondingly, the reducing unit is used for:
    将所述红外灯当前的功率控制档位降低一个功率控制档位,以将所述红外灯当前的输出功率减小所述预设功率;Lowering a current power control gear of the infrared lamp by one power control gear to reduce the current output power of the infrared lamp by the preset power;
    相应地,所述增大单元用于:Correspondingly, the increasing unit is used for:
    将所述红外灯当前的功率控制档位增大一个功率控制档位,以将所述红外灯当前的输出功率增大所述预设功率。The current power control gear of the infrared lamp is increased by a power control gear to increase the current output power of the infrared lamp by the preset power.
  14. 如权利要求8所述的摄像设备,其特征在于,所述调整模块用于:The image pickup apparatus according to claim 8, wherein the adjustment module is configured to:
    通过调整驱动信号的占空比,对所述红外灯的输出功率进行调整,所述驱动信号用于控制所述红外灯的驱动电路的输出功率。The output power of the infrared lamp is adjusted by adjusting a duty ratio of the driving signal, and the driving signal is used to control an output power of a driving circuit of the infrared lamp.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的方法步骤。 A computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program being executed by a processor to implement the method steps of any of claims 1-7.
PCT/CN2017/114427 2016-12-27 2017-12-04 Method for adjusting power of infrared lamp, and photographic equipment WO2018121185A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611227537.7A CN108243311A (en) 2016-12-27 2016-12-27 The method of adjustment and picture pick-up device of infrared lamp power
CN201611227537.7 2016-12-27

Publications (1)

Publication Number Publication Date
WO2018121185A1 true WO2018121185A1 (en) 2018-07-05

Family

ID=62702560

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/114427 WO2018121185A1 (en) 2016-12-27 2017-12-04 Method for adjusting power of infrared lamp, and photographic equipment

Country Status (2)

Country Link
CN (1) CN108243311A (en)
WO (1) WO2018121185A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969193A (en) * 2019-11-15 2020-04-07 常州瑞昇科技有限公司 Fabric image acquisition method and device, computer equipment and storage medium
CN112333898A (en) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 Lamp brightness adjusting method and device, lamp and storage medium
CN113992858A (en) * 2021-12-23 2022-01-28 天地伟业技术有限公司 Light control method and computer readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944135B (en) * 2019-11-18 2022-05-31 深圳前海达闼云端智能科技有限公司 Power control method, electronic device and storage medium
CN111432136B (en) * 2020-04-03 2021-06-18 浙江大华技术股份有限公司 Current value adjusting method and device for lens lamp panel
CN111935405B (en) * 2020-08-19 2021-09-14 云从科技集团股份有限公司 Camera equipment control method, system, equipment and medium
CN113114951A (en) * 2021-04-25 2021-07-13 北京华捷艾米科技有限公司 Infrared exposure value adjusting method, system and equipment
CN113792582A (en) * 2021-08-02 2021-12-14 深圳市一心视觉科技有限公司 Infrared light source driving method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040080627A1 (en) * 2002-07-11 2004-04-29 Kroll James Clarence Video recording camera system
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104202537A (en) * 2014-09-05 2014-12-10 天彩电子(深圳)有限公司 Dimming method for infrared camera
CN104469321A (en) * 2014-12-23 2015-03-25 天津天地伟业数码科技有限公司 Infrared light video analysis intelligent control method
CN104580936A (en) * 2015-01-20 2015-04-29 华为技术有限公司 Infrared night vision device, control method and control device
CN105389571A (en) * 2015-12-08 2016-03-09 东莞市中控电子技术有限公司 Image acquisition system and image acquisition method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271218B (en) * 2011-01-17 2012-08-29 深圳市保千里电子有限公司 Scene-oriented ultra-intelligent video camera and camera shooting method thereof
CN204761568U (en) * 2015-07-02 2015-11-11 深圳市艾普视达数码科技有限公司 Surveillance camera machine with infrared light automatic compensation LED lamp

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040080627A1 (en) * 2002-07-11 2004-04-29 Kroll James Clarence Video recording camera system
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104202537A (en) * 2014-09-05 2014-12-10 天彩电子(深圳)有限公司 Dimming method for infrared camera
CN104469321A (en) * 2014-12-23 2015-03-25 天津天地伟业数码科技有限公司 Infrared light video analysis intelligent control method
CN104580936A (en) * 2015-01-20 2015-04-29 华为技术有限公司 Infrared night vision device, control method and control device
CN105389571A (en) * 2015-12-08 2016-03-09 东莞市中控电子技术有限公司 Image acquisition system and image acquisition method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333898A (en) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 Lamp brightness adjusting method and device, lamp and storage medium
CN112333898B (en) * 2019-08-30 2023-04-25 北京字节跳动网络技术有限公司 Lamp brightness adjusting method and device, lamp and storage medium
CN110969193A (en) * 2019-11-15 2020-04-07 常州瑞昇科技有限公司 Fabric image acquisition method and device, computer equipment and storage medium
CN110969193B (en) * 2019-11-15 2023-04-18 常州瑞昇科技有限公司 Fabric image acquisition method and device, computer equipment and storage medium
CN113992858A (en) * 2021-12-23 2022-01-28 天地伟业技术有限公司 Light control method and computer readable storage medium
CN113992858B (en) * 2021-12-23 2022-03-04 天地伟业技术有限公司 Light control method and computer readable storage medium

Also Published As

Publication number Publication date
CN108243311A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
WO2018121185A1 (en) Method for adjusting power of infrared lamp, and photographic equipment
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
CN118175436B (en) Image processing method and related device
US8593566B2 (en) Method and apparatus for controlling light emission of flash and digital photographing apparatus using the method and apparatus
CN108040204B (en) A multi-camera-based image capturing method, device and storage medium
EP3926944A1 (en) Method and apparatus for displaying captured preview image, and medium
CN106060287A (en) Shooting method, device and terminal
CN119631419A (en) Image processing method and related equipment
CN111586280B (en) Shooting method, device, terminal and readable storage medium
CN107820025B (en) Method and device for photographing processing
CN111835941A (en) Image generation method and apparatus, electronic device, computer-readable storage medium
CN112312034B (en) Exposure method and device of image acquisition module, terminal equipment and storage medium
JP5316923B2 (en) Imaging apparatus and program thereof
CN111277754B (en) Mobile terminal shooting method and device
WO2016074414A1 (en) Image processing method and apparatus
WO2023236215A1 (en) Image processing method and apparatus, and storage medium
CN116152078A (en) Image processing method, device, system and storage medium
CN110874829B (en) Image processing method and device, electronic device and storage medium
JP2006217505A (en) Photographing device
JP6103570B2 (en) Imaging apparatus and control method thereof
CN114073063B (en) Image processing methods and devices, camera components, electronic equipment, storage media
CN116634267A (en) Camera shooting method, device, electronic equipment and storage medium
CN118524292A (en) Image generation method, device, electronic equipment and storage medium
CN119342354A (en) Shooting method, device and storage medium
CN118784987A (en) Exposure time adjustment method and device, and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17889446

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17889446

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.11.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17889446

Country of ref document: EP

Kind code of ref document: A1