WO2015149711A1 - Infrared control device and method, and camera - Google Patents

Infrared control device and method, and camera Download PDF

Info

Publication number
WO2015149711A1
WO2015149711A1 PCT/CN2015/075790 CN2015075790W WO2015149711A1 WO 2015149711 A1 WO2015149711 A1 WO 2015149711A1 CN 2015075790 W CN2015075790 W CN 2015075790W WO 2015149711 A1 WO2015149711 A1 WO 2015149711A1
Authority
WO
WIPO (PCT)
Prior art keywords
photosensitive element
light intensity
photosensitive
module
infrared
Prior art date
Application number
PCT/CN2015/075790
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 WO2015149711A1 publication Critical patent/WO2015149711A1/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/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • H04N23/11Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths for generating image signals from visible and infrared light wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • 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

Definitions

  • Embodiments of the present invention relate to information processing technologies, and in particular, to an infrared control device, method, and video camera.
  • the visible light that can be seen by the human eye is arranged in wavelength from long to short, followed by red, orange, yellow, green, cyan, blue, and purple.
  • the wavelength of red light is in the range of 0.62 to 0.76 ⁇ m; the light longer than the wavelength of red light is called infrared light, and the human eye cannot see infrared rays.
  • the camera's photosensitive unit captures all incident light, it includes visible light, infrared light, and so on.
  • an infrared filter is added between the lens of the camera and the photosensitive unit to filter out the infrared rays, so that the photosensitive unit only senses visible light.
  • the camera can be equipped with an infrared light to emit infrared light that is invisible to the naked eye to illuminate the object being photographed. In this case, turn off the IR filter to capture images that are invisible or blurred by the naked eye in a dark environment.
  • the infrared filter is turned off, the external light gradually rises due to the opening of the infrared light, and the infrared filter is turned on again. Since the current external illumination is due to the illumination of the infrared lamp, when the infrared filter is turned on, the external illumination will suddenly be low, and the infrared filter is turned off. Therefore, a camera equipped with an infrared lamp is prone to repeated switching of the infrared filter in a dark environment.
  • Embodiments of the present invention provide an infrared control device, method, and camera to solve the problem of image instability caused by a camera in the prior art.
  • an embodiment of the present invention provides an infrared control device, including: a light intensity statistics module, a sliding filter module, a window comparison module, an energy analysis module, and a control module; the light intensity statistics module, the sliding filter module, The window comparison module and the control module are sequentially connected;
  • the light intensity statistic module is further connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
  • the sliding filter module is configured to perform sliding filtering on the average photosensitive intensity and send the result to the window comparison module;
  • the window comparison module is configured to compare the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to the control module;
  • the energy analysis module is connected to the imaging sensor and the control module, and is configured to perform red, green and blue RGB energy analysis according to the imaging data to determine a state of the infrared light; if the state of the infrared light is on Sending a second control signal to the control module, and if the state of the infrared light is off, sending a third control signal to the control module;
  • the control module is further connected to the infrared filter, configured to control, according to the first control signal and the second control signal, a state of the infrared filter to be off, according to the first control signal and
  • the third control signal controls the state of the infrared filter to be on.
  • the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit;
  • the imaging sensor includes: at least one group of photosensitive elements; each group The photosensitive elements each include: an R photosensitive element, a Gr photosensitive element, a Gb photosensitive element, and a B photosensitive element;
  • the channel selection unit is connected to the imaging sensor and the ratio calculation unit, and configured to respectively determine light intensity of each component in the photosensitive element according to the imaging data, and send the light intensity to the ratio Rate calculation unit;
  • the ratio calculating unit is further connected to the determining unit, and configured to respectively calculate a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to light intensity of each element in the photosensitive element a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and sent to the determining unit;
  • the determining unit is further connected to the control module, and configured to, according to the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, And an energy analysis of the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor, and determining the state of the infrared light.
  • the determining unit is further configured to: if the R photosensitive element and the Gr photosensitive element correspond to light intensity in each set of photosensitive elements The ratio, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each of the photosensitive elements to the difference of 1 is 0, and the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element and the B photosensitive in the imaging sensor The difference between the average light intensities of the components is 0, and the state of the infrared lamp is determined to be on.
  • the energy analysis module further includes: a white point selection unit;
  • the white point selection unit is connected to the imaging sensor and the channel selection unit for performing white point data selection in the imaging data, and transmitting the selected white point data to the channel selection unit;
  • the channel selection unit is further configured to respectively determine light intensities of the components in the photosensitive element according to the white point data.
  • the energy analysis module further includes: an amplitude filtering unit;
  • the amplitude filtering unit is located between the white point selecting unit and the channel selecting unit, before the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the white point data And performing amplitude filtering on the white point data.
  • the energy analysis module further includes: a region weight unit;
  • the area weighting unit is connected to the ratio calculating unit, and configured to calculate, in the ratio calculating unit, the R photosensitive element and the Gr sensing element in each of the photosensitive elements according to the light intensity of each component in the photosensitive element. a ratio of the light intensity corresponding to the component, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each of the photosensitive elements, the components of the photosensitive element respectively determined according to the white point data in different regions The weight corresponding to the light intensity configuration.
  • an embodiment of the present invention provides an infrared control device, including: a light intensity statistics module, a sliding filter module, a light intensity analysis module, a window comparison module, and a control module; the light intensity statistics module and the sliding filter module.
  • the window comparison module and the control module are sequentially connected;
  • the light intensity statistics module is connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
  • the sliding filter module is configured to perform sliding filtering on the average photosensitive intensity, and send the image to the window comparison module and the light intensity analysis module;
  • the light intensity analysis module is connected to the imaging sensor and the window comparison module, and is configured to perform a light intensity analysis according to the average light intensity, determine a state of the infrared light, and if the determination result is on, output Feedback information to the window comparison module;
  • the window comparison module is configured to output a control signal to the control module according to the average photosensitive intensity and the feedback information
  • the control module is further connected to the infrared filter for controlling the state of the infrared filter according to the control signal.
  • the light intensity analysis module includes: a sampling processing unit and a determining unit;
  • the sampling processing unit is connected to the sliding filter module and the determining unit, and is configured to sample the average photosensitive intensity within a preset time to obtain a change amplitude of the average photosensitive intensity;
  • the determining unit is connected to the window comparison module, and is configured to compare the change amplitude with a preset amplitude, and determine a state of the infrared light according to the comparison result; if the infrared light is on Transmitting the change amplitude as the feedback information to the window comparison module;
  • the window comparison module is further configured to use the difference between the average photosensitive intensity and the change amplitude as input data, and compare the state of the infrared filter with an open threshold and a closed threshold. control.
  • the determining unit is further configured to determine the infrared if the change amplitude is less than the preset amplitude The light is turned off; if the change amplitude is greater than or equal to the preset amplitude, it is determined that the infrared light is on.
  • the present invention provides an infrared control method, including:
  • the light intensity statistic module of the infrared control device counts the average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and sends it to the sliding filter module of the infrared control device;
  • the sliding filter module performs sliding filtering on the average photosensitive intensity, and the sliding filtering is sent to a window comparison module of the infrared control device;
  • the window comparison module compares the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to a control module of the infrared control device;
  • the energy analysis module of the infrared control device performs red, green and blue RGB according to the imaging data. Energy analysis to determine the state of the infrared light;
  • the energy analysis module sends a second control signal to the control module; or, if the state of the infrared light is off, the energy analysis module sends a message to the control module Three control signals;
  • the control module controls the state of the infrared filter to be off according to the first control information and the second control signal; and controls the infrared filter according to the first control signal and the third control signal The status is on.
  • the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit;
  • the imaging sensor includes: a photosensitive element; each group of photosensitive elements All include: R photosensitive element, Gr photosensitive element, Gb photosensitive element and B photosensitive element;
  • the energy analysis module of the infrared control device performs red, green, and blue RGB energy analysis according to the imaging data, and determines the state of the infrared light, including:
  • the channel selection unit respectively determines light intensities of the elements in the photosensitive element according to the imaging data
  • the ratio calculating unit respectively calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each of the photosensitive elements, and the light intensity of the B photosensitive element and the Gb photosensitive element a ratio; according to the light intensity of each element in the photosensitive element, respectively calculating an average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor;
  • the determining unit is configured according to a ratio of a light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element and a Gr photosensitive in the imaging sensor. Energy analysis is performed on the average light intensity corresponding to each of the element, the Gb photosensitive element, and the B photosensitive element, and the state of the infrared lamp is determined.
  • the The determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of a light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element, a Gr photosensitive element in the imaging sensor, Energy analysis is performed on the average light intensity of each of the Gb photosensitive element and the B photosensitive element, and the state of the infrared light is determined, including:
  • the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element of each of the photosensitive elements to each of the photosensitive elements is 0, and The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor is 0, and the determining unit determines that the state of the infrared light is on.
  • the energy analysis module further includes: a white point selection unit;
  • the method further includes:
  • the white point selection unit performs selection of white point data in the imaging data
  • the channel selection unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data, including:
  • the channel selection unit determines the light intensity of each of the photosensitive elements based on the white point data.
  • the energy analysis module further includes: an amplitude filtering unit;
  • the method further includes:
  • the amplitude filtering unit performs amplitude filtering on the white point data.
  • the energy analysis module further includes: a region weight unit;
  • the area weighting unit assigns different weights to the light intensities of the elements in the photosensitive elements corresponding to the white point data in different areas.
  • an embodiment of the present invention further provides an infrared control method, including:
  • the light intensity statistic module of the infrared control device counts the average sensitivity of the imaging sensor according to the imaging data output by the imaging sensor, and sends the average sensitivity to the sliding filter module of the infrared control device;
  • the sliding filter module performs sliding filtering on the average photosensitive intensity, and sends the sliding comparison filter to the window comparison module and the light intensity analysis module of the infrared control device;
  • the light intensity analysis module performs a light intensity analysis according to the average light intensity, determines a state of the infrared light, and if the determination result is on, outputs feedback information to the window comparison module;
  • the window comparison module outputs a control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information;
  • the control module controls the state of the infrared filter according to the control signal.
  • the light intensity analysis module includes: a sampling processing unit and a determining unit;
  • the light intensity analysis module performs a light intensity analysis according to the average light intensity, and determines a state of the infrared light. If the determination result is on, outputting feedback information to the window comparison module includes:
  • the sampling processing unit samples the average photosensitive intensity for a preset time to obtain a change amplitude of the average photosensitive intensity
  • the determining unit compares the change amplitude with a preset amplitude, and determines a state of the infrared light according to the comparison result; if the infrared light is on, the change amplitude is used as the feedback information Sended to the window comparison module;
  • the window comparison module outputs according to the average photosensitive intensity and the feedback information.
  • the control signal to a control module for the infrared control device includes:
  • the window comparison module uses the difference between the average photosensitive intensity and the change amplitude as input data, and controls the state of the infrared filter compared with an open threshold and a closed threshold.
  • the determining unit compares the change amplitude with a preset amplitude, and determines the infrared according to the comparison result
  • the status of the lights including:
  • the determining unit determines that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, the determining unit determines the The infrared light is on.
  • the embodiment of the present invention further provides a camera, including at least: an infrared filter, an imaging sensor, and an infrared control device; wherein the infrared filter is connected to the imaging sensor, and respectively Infrared control devices are connected;
  • the infrared control device is the infrared control device according to any one of the above aspects, or the infrared control device according to any of the above fourth aspects.
  • the infrared control device, the method and the camera of the embodiment of the invention can determine the state of the infrared lamp through the energy analysis module or the illumination analysis module, and then control the state of the red filter through the control unit, thereby avoiding the opening of the infrared lamp. This results in repeated switching of the infrared filter to ensure the stability of the imaging of the camera.
  • FIG. 1 is a schematic structural diagram of an infrared control device according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of an infrared control device according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of an infrared control device according to Embodiment 3 of the present invention.
  • Embodiment 4 is a schematic structural diagram of an infrared control device according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of an infrared control device according to Embodiment 5 of the present invention.
  • FIG. 6 is a flowchart of an infrared control method according to Embodiment 6 of the present invention.
  • Embodiment 7 is a flowchart of an infrared control method according to Embodiment 7 of the present invention.
  • FIG. 8 is a schematic structural diagram of a camera according to Embodiment 8 of the present invention.
  • FIG. 1 is a schematic structural diagram of an infrared control device according to Embodiment 1 of the present invention.
  • the infrared control device of this embodiment is suitable for a camera having an infrared lamp and an infrared filter.
  • the camera may be, for example, a network camera (IP Camera) or a video monitoring device.
  • IP Camera network camera
  • the infrared control device 100 of the present embodiment includes a light intensity statistics module 101 , a sliding filter module 102 , a window comparison module 103 , an energy analysis module 104 , and a control module 105 .
  • the light intensity statistics module 101, the sliding filter module 102, the window comparison module 103, and the control module 105 are sequentially connected.
  • the light intensity statistic module 101 is further connected to an imaging sensor 106 for counting the average photographic intensity of the imaging sensor 106 according to the imaging data output by the imaging sensor 106 and transmitting it to the sliding filter module 102.
  • the imaging sensor includes at least one photosensitive element, and the photosensitive elements may specifically be Charge Coupled Device (CCD) or Complementary Metal-Oxide Semiconductor (CMOS).
  • CCD Charge Coupled Device
  • CMOS Complementary Metal-Oxide Semiconductor
  • the imaging data refers to data of an unprocessed original imaged image, that is, RAW image data.
  • the RGB energy analysis is actually calculated according to the imaging data, respectively, to obtain the respective energies of visible light of different wavelengths of R, G, and B in the incident light, such as light intensity, and R, G, and B obtained according to the calculation.
  • the respective energy levels of different wavelengths of visible light determine whether there is infrared light in the incident light. If so, the infrared light of the camera is turned on, and if not, the infrared light of the camera is off.
  • the sliding filter module 102 is configured to perform sliding filtering on the average photosensitive intensity and send the same to the window comparison module 103.
  • the sliding module 102 performs sliding filtering on the average photosensitive intensity obtained by the light intensity statistics module 101, so that the fluctuation of the average photosensitive intensity is more stable, thereby making the control of the infrared filter more stable and better ensuring imaging stability. .
  • the window comparison module 103 is configured to compare the average photosensitive intensity with an open threshold; if the average photosensitive intensity is greater than the open threshold, output a first control signal to the control module 105.
  • the energy analysis module 104 is connected to the imaging sensor 106 and the control module 105, and is configured to perform red, green and blue RGB energy analysis according to the imaging data to determine the state of the infrared light; if the state of the infrared light is on, the control The module sends a second control signal, and if the state of the infrared light is off, sends a third control signal to the control module 105.
  • the control module 105 is further connected to the infrared filter 107, and is configured to control the state of the infrared filter 107 to be off according to the first control signal and the second control signal, according to the first control signal and the third The control signal controls the state of the infrared filter to be on.
  • the infrared light is turned on in a dark environment to improve the night vision capability of the camera, that is, the imaging effect in a dark environment. If it is determined that the infrared light is on, that is, the current external light is weak, infrared light is required to fill the light, and the infrared light is not filtered through the infrared filter, thereby controlling the infrared filter. Stay closed. If it is determined that the infrared light is off, that is, the current external illumination has met the imaging illumination requirement, and it is not necessary to turn on the infrared light to fill the light.
  • the first control information is output to turn on the infrared filter, and according to the third control signal, the infrared light is turned on, that is, the average light intensity is due to the infrared light.
  • the emitted infrared light is increased, so it is necessary to control the infrared filter to be in a closed state.
  • the infrared light is turned off, that is, the current average intensity is not increased by the infrared light emitted by the infrared light, so the infrared filter needs to be turned on to filter out the infrared to make the image clearer. .
  • the state of the infrared filter is respectively controlled according to the first control signal and the second control signal or the third control signal, and the infrared filter is actually controlled according to the current external light intensity and the on state of the infrared light. . Therefore, it is possible to avoid directly controlling the infrared filter according to the incident light intensity, that is, external illumination, and the infrared filter caused by repeated switching, especially in a dark environment, causes imaging instability.
  • the infrared control device may be an integrated circuit having the above functions, or may be implemented by integrating a software program having the above functions into an entity such as a processor.
  • the average photosensitive intensity of the imaging sensor and the state of the infrared light can be determined, and the infrared filter is controlled according to the average photosensitive intensity and the state of the infrared light, thereby avoiding infrared due to the opening of the infrared light.
  • the filter is repeatedly switched to ensure the stability of the imaging of the camera.
  • the infrared control device provided in this embodiment can be integrated into the camera in a hardware and/or software manner, so that the camera does not need an infrared light control interface, and does not need an external detection circuit to implement, and the hardware overhead is small.
  • FIG. 2 is a schematic structural diagram of an infrared control device according to Embodiment 2 of the present invention.
  • the energy analysis module 104 includes a channel selection unit 201, a ratio calculation unit 202, and a determination unit 203.
  • the imaging sensor 106 includes: at least one set of photosensitive elements; each set of photosensitive elements includes: an R photosensitive element, a Gr photosensitive element, a Gb photosensitive element, and a B photosensitive element.
  • the set of photosensitive elements corresponds to one pixel, and one pixel includes 4 photosensitive dots.
  • the four photosensitive dots are points corresponding to the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element.
  • the channel selection unit 201 is connected to the imaging sensor 106 and the ratio calculation unit 202 for determining the light intensity of each component in the photosensitive element according to the imaging data, and transmitting the light intensity to the ratio calculation unit 202.
  • the ratio calculating unit 202 is connected to the determining unit 203, and is configured to respectively calculate a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each element in the photosensitive element, and the B photosensitive element and Gb photosensitive element corresponding to the ratio of light intensity, and sent to the determining unit;
  • the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor 106 is calculated based on the light intensity of each element in the photosensitive element.
  • the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element indicates the influence of red light on the green light, which can be represented by R/Gr
  • the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element indicates the blue light to the green light.
  • the effect can be expressed by B/Gb.
  • the average light intensity corresponding to each of the photosensitive elements actually refers to the average value of the light intensities of all the R photosensitive elements in the imaging sensor, the average value of the light intensities of all the Gr photosensitive elements, the average of the light intensities of all the Gb photosensitive elements, and all The average value of the light intensity of the B photosensitive element.
  • the determining unit 203 is further connected to the control module 105, and is configured to, according to the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each set of photosensitive elements, the B photosensitive element and the Gb photosensitive element.
  • the ratio of the light intensity and the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor 106 are subjected to energy analysis to determine the state of the infrared light.
  • the determining unit 203 is further configured to: if the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each set of photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element of each set of the photosensitive elements, and 1
  • the absolute value of the difference is 0, and the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor is 0, and the infrared light is determined The status is on.
  • the “differential value of 0” in this embodiment is not absolutely 0, and may be approximately equal to 0.
  • the intensity of natural light is weak, and the intensity of light induced by the imaging sensor is mostly the infrared light emitted by the infrared light, and for the infrared red line, the different photosensitive elements can be sensed. That is to say, the light intensity induced by each of the different photosensitive elements is similar, and thus the average light intensity of each of R, Gr, B, and Gb is close, and the difference between them is 0.
  • R/Gr and B/Gb are also similar to each other because the light intensities induced by the different photosensitive elements are close to 1, so the difference from 1 is also zero.
  • the solution of the embodiment may be based on the foregoing embodiment, specifically analyzing the light intensity of each photosensitive element in the imaging sensor through the channel selection unit, the ratio calculation unit and the determination unit, and determining whether the infrared light is turned on, and the infrared light thereof
  • the determination scheme is more precise, and the infrared filter is controlled to ensure the stability of the imaging.
  • FIG. 3 is a schematic structural diagram of an infrared control device according to Embodiment 3 of the present invention.
  • the energy analysis module 104 further includes a white point selection unit 301.
  • the white point selection unit 301 is connected to the imaging sensor 106 and the channel selection unit 201 for selecting white point data in the imaging data, and transmitting the selected white point data to the channel selection unit 201.
  • the channel selection unit 201 is further configured to respectively determine light intensities of the components of the at least one set of photosensitive elements according to the white point data.
  • the white point data may be data that matches white balance in the imaging data.
  • the white point data in this embodiment is not absolute white point data, that is, the light intensity of each of the R, G, and B colors is not completely equal, as long as the difference between them is It can be within the preset range.
  • the intensity of each component is determined by the selected white point data, so that the embodiment ensures the stability of the image while ensuring that the image has no chromatic aberration.
  • the energy analysis module 104 further includes: an amplitude filtering unit 302.
  • the amplitude filtering unit 302 is located between the white point selecting unit 301 and the channel selecting unit 201, and is configured to determine the light intensity of each component in the photosensitive member before the channel selecting unit 201 respectively determines the light intensity of each component in the photosensitive member. Amplitude filtering is performed to select the white point data.
  • the energy analysis module 104 further includes: a region weight unit 303;
  • the area weight unit 303 is connected to the ratio calculating unit 202 for calculating, in the ratio calculating unit 202, the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each group of the photosensitive elements according to the light intensity of each element in the photosensitive element.
  • the corresponding light intensity is assigned to the light intensity of each of the photosensitive elements determined according to the white point data in different regions.
  • the white point selection unit performs white point selection, and analyzes the white point data to ensure that the image has no chromatic aberration; the area weight unit makes the calculation corresponding to the light intensity of each component more. Accurate, so as to better ensure the stability of the image.
  • This embodiment also provides an infrared control device.
  • 4 is an infrared provided by Embodiment 4 of the present invention. Schematic diagram of the structure of the control device. As shown in FIG. 4 , the infrared control device 400 includes a light intensity statistics module 401 , a sliding filter module 402 , a light intensity analysis module 403 , a window comparison module 404 , and a control module 405 .
  • the light intensity statistics module 401, the sliding filter module 402, the window comparison module 404, and the control module 405 are sequentially connected.
  • the light intensity statistics module 401 is coupled to the imaging sensor 406 for counting the average light intensity of the imaging sensor 406 according to the imaging data output by the imaging sensor 406 and transmitting the average light intensity to the sliding filter module 402.
  • the sliding filter module 402 is configured to perform sliding filtering on the average photosensitive intensity and send the same to the window comparison module 404 and the light intensity analysis module 403.
  • the light intensity analysis module 403 is connected to the imaging sensor 406 and the window comparison module 404 for performing the intensity intensity analysis according to the average light intensity, determining the state of the infrared light, and if the determination result is on, outputting feedback information to the window. Comparison module 404.
  • the window comparison module 404 is configured to output a control signal to the control module 405 according to the average light intensity and the feedback information.
  • the control module 405 is further connected to the infrared filter 407 for controlling the state of the infrared filter 407 according to the control signal.
  • the photographic intensity analysis is performed based on the average sensitometric intensity of the imaging sensor, and the change in the photographic intensity is monitored. If the change in the intensity of the light is large, it can be considered to be caused by the opening of the infrared light. Correspondingly, if the change in the intensity of the light is small, the normal light intensity of the natural light fluctuates, and thus the infrared light is turned off.
  • the feedback information output by the light intensity analysis module is sent to the window comparison module, so that the window comparison module compensates the average photosensitive intensity according to the feedback information, so that the window comparison module and the control module perform infrared filtering according to the compensated photosensitive intensity.
  • the state control of the slice is performed based on the average sensitometric intensity of the imaging sensor, and the change in the photographic intensity is monitored. If the change in the intensity of the light is large, it can be considered to be caused by the opening of the infrared light. Correspondingly, if the change in the intensity of the light is small, the normal light intensity
  • the feedback information may be, for example, a fluctuation amplitude of the light intensity
  • the imaging data is compensated according to the feedback information, which may be to reduce the light intensity added by the infrared light in the imaging data.
  • the window comparison module and the control module perform state control of the infrared filter according to the compensated imaging data, which is avoided by reducing the influence of the infrared light.
  • the infrared filter is repeatedly switched to ensure the stability of the imaging.
  • the light intensity analysis module can determine the state of the infrared light according to the light intensity analysis, and if the infrared light is turned on, the window comparison module compensates the imaging data through the feedback information, thereby controlling the infrared filter through the control module.
  • the light sheet is controlled to reduce the influence of the infrared light and avoid repeated switching of the infrared filter, thereby ensuring the stability of the image.
  • FIG. 5 is a schematic structural diagram of an infrared control device according to Embodiment 5 of the present invention.
  • the light intensity analysis module 403 includes: a sampling processing unit 501 and a determining unit 502.
  • the sampling processing unit 501 is connected to the sliding filter module 402 and the determining unit 502 for sampling the average photosensitive intensity for a preset time to obtain a variation amplitude of the average photosensitive intensity.
  • the determining unit 502 is connected to the window comparison module 404, and is configured to compare the change amplitude with a preset amplitude, and determine a state of the infrared light according to the comparison result; if the infrared light is on, the change amplitude is This feedback information is sent to the window comparison module 404.
  • the window comparison module 404 is further configured to use the difference between the average photosensitive intensity and the change amplitude as input data, and compare the state of the infrared filter 407 with the opening threshold and the closing threshold.
  • the determining unit 502 is further configured to: if the change amplitude is less than the preset amplitude, determine that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, determine that the infrared light is Open.
  • the preset threshold may specifically be the same as the open threshold. Usually the open threshold is greater than the shutdown threshold.
  • the amplitude of the change in the average sensitivity obtained by the sampling processing unit is more accurate, thereby better ensuring the stability of the imaging.
  • FIG. 6 is a flowchart of an infrared control method according to Embodiment 6 of the present invention. As shown in Figure 6, the method is specific Includes the following:
  • Step 601 The light intensity statistics module of the infrared control device counts the average light intensity of the image sensor according to the imaging data output by the imaging sensor, and sends the image to the sliding filter module of the infrared control device.
  • Step 602 The sliding filter module performs sliding filtering on the average photosensitive intensity, and the sliding filtering is sent to the window comparison module of the infrared control device.
  • Step 603 The window comparison module compares the average photosensitive intensity with an open threshold; if the average photosensitive intensity is greater than the open threshold, the first control signal is output to the control module of the infrared control device.
  • Step 604 The energy analysis module of the infrared control device performs red, green, and blue RGB energy analysis according to the imaging data to determine the state of the infrared light.
  • Step 605 If the state of the infrared light is on, the energy analysis module sends a second control signal to the control module; or, if the state of the infrared light is off, the energy analysis module sends a third control signal to the control module. .
  • Step 606 The control module controls the state of the infrared filter to be off according to the first control information and the second control signal, and controls the state of the infrared filter to be turned on according to the first control signal and the third control signal. .
  • the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit;
  • the imaging sensor includes: a photosensitive element; each group of the photosensitive elements includes: an R photosensitive element, a Gr photosensitive element, and a Gb photosensitive element; B photosensitive element.
  • the energy analysis module of the infrared control device in step 601 of the foregoing solution performs red, green, and blue RGB energy analysis according to the imaging data to determine the state of the infrared light, and specifically includes:
  • the channel selection unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data
  • the ratio calculation unit respectively calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each element in the photosensitive element, and a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element;
  • the light intensity of each component in the photosensitive element is calculated separately for the imaging The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the sensor;
  • the determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element, a Gr photosensitive element, and a Gb in the imaging sensor.
  • the average light intensity of each of the photosensitive element and the B photosensitive element is subjected to energy analysis to determine the state of the infrared lamp.
  • the determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of a light intensity of the B photosensitive element and the Gb photosensitive element, and an R in the imaging sensor.
  • the average light intensity corresponding to each of the photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element is subjected to energy analysis to determine the state of the infrared light, and specifically includes:
  • the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each group of photosensitive elements, the ratio of the corresponding light intensity of the B photosensitive element and the Gb photosensitive element in each set of photosensitive elements is 0, and the imaging is The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the sensor is 0, and the determining unit determines that the state of the infrared light is on.
  • the capability analysis module further includes: a white point selection unit.
  • the method further includes:
  • the white point selection unit performs selection of white point data in the imaging data.
  • the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data, and specifically includes:
  • the channel selection unit determines the light intensity of each of the photosensitive elements based on the white point data.
  • the energy analysis module further includes: an amplitude filtering unit.
  • the method before the channel selecting unit determines the light intensity of each component in the photosensitive element according to the white point data, the method further includes:
  • the amplitude filtering unit performs amplitude filtering on the white point data.
  • the energy analysis module further includes: a region weight unit.
  • the ratio calculation unit as described above calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, respectively, according to the light intensity of each element in the photosensitive element, and the photosensitive element of each of the photosensitive elements And before the ratio of the light intensity of the Gb photosensitive element, it also includes:
  • the area weighting unit assigns different weights to the light intensities of the elements in the photosensitive element corresponding to the white point data in different areas.
  • the embodiment of the present invention may be implemented by the infrared control device according to any one of the foregoing Embodiments 1 to 3.
  • the specific implementation process and the explanation are similar to the foregoing embodiment, and details are not described herein again.
  • FIG. 7 is a flowchart of an infrared control method according to Embodiment 7 of the present invention. As shown in FIG. 7, the method specifically includes the following:
  • Step 701 The light intensity statistics module of the infrared control device counts the average sensitivity of the imaging sensor according to the imaging data output by the imaging sensor, and sends the average sensitivity to the sliding filter module of the infrared control device.
  • Step 702 The sliding filter module performs sliding filtering on the average photosensitive intensity, and sends the sliding filter to the window comparison module and the light intensity analysis module of the infrared control device.
  • Step 703 The light intensity analysis module performs light intensity analysis according to the average light intensity, determines the state of the infrared light, and if the determination result is on, outputs feedback information to the window comparison module.
  • Step 704 The window comparison module outputs a control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information.
  • Step 705 The control module controls the state of the infrared filter according to the control signal.
  • the light intensity analysis module includes: a sampling processing unit and a determination unit.
  • the light intensity analysis module performs the photosensitive intensity score according to the average photosensitive intensity. Determining, determining the state of the infrared lamp, and if the determination result is on, outputting feedback information to the window comparison module, including:
  • the sampling processing unit samples the average photosensitive intensity for a preset time to obtain a change amplitude of the average photosensitive intensity
  • the determining unit compares the change amplitude with the preset amplitude, and determines the state of the infrared light according to the comparison result; if the infrared light is turned on, the change amplitude is sent to the window comparison module as the feedback information.
  • the window comparison module outputs the control signal to the control module of the infrared control device according to the average sensitivity and the feedback information, including:
  • the window comparison module takes the difference between the average photosensitive intensity and the change amplitude as input data, and controls the state of the infrared filter compared with the open threshold and the closed threshold.
  • the determining unit compares the change amplitude with the preset amplitude, and determines the state of the infrared light according to the comparison result, which specifically includes:
  • the determining unit determines that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, the determining unit determines that the infrared light is on.
  • the embodiment of the present invention may be implemented by the infrared control device according to any one of the foregoing embodiment 4 or the fifth embodiment.
  • the specific implementation process and the explanation are similar to the foregoing embodiment, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a camera according to Embodiment 8 of the present invention. As shown in FIG. 8, the camera 800 includes at least an infrared filter 801, an imaging sensor 802, and an infrared control device 803.
  • the infrared filter 801 is connected to the imaging sensor 802 and is respectively connected to the infrared control device 803.
  • the infrared control device 801 may be the infrared control device according to any one of the first to third embodiments, or may be the infrared control device according to any one of the above embodiments.
  • the camera provided in this embodiment includes the infrared control device provided in any of the above embodiments, and the specific beneficial effects thereof are similar to those in the foregoing embodiment, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Color Television Image Signal Generators (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

Provided are an infrared control device and method, and a camera. The infrared control device of the present invention comprises: a light intensity counting module, a sliding filtering module, a window comparison module, an energy analysis module and a control module, wherein the light intensity counting module counts an average sensed light intensity according to imaging data; the sliding filtering module filters the average sensed light intensity; the window comparison module compares the average sensed light intensity to an open threshold value, and if the average sensed light intensity is greater than the open threshold, a first control signal is output; the energy analysis module conducts an energy analysis according to the imaging data so as to judge the state of an infrared lamp, if the infrared lamp is turned on, a second control signal is sent, and if the infrared lamp is turned off, a third control signal is sent; and the control module controls the infrared filter to be turned off according to the first control signal and the second control signal, and controls the infrared filter to be turned on according to the first control signal and the third control signal. The embodiments of the present invention can improve the imaging stability of a camera.

Description

红外控制装置、方法及摄像机Infrared control device, method and camera
本申请要求于2014年4月3日提交中国专利局、申请号为201410131994.0、发明名称为“红外控制装置、方法及摄像机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410131994.0, entitled "Infrared Control Device, Method and Camera", filed on April 3, 2014, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本发明实施例涉及信息处理技术,尤其涉及一种红外控制装置、方法及摄像机。Embodiments of the present invention relate to information processing technologies, and in particular, to an infrared control device, method, and video camera.
背景技术Background technique
人的眼睛能看到的可见光按波长从长到短排列,依次为红、橙、黄、绿、青、蓝、紫。其中红光的波长范围为0.62~0.76μm;比红光波长更长的光叫红外线,人的肉眼是看不到红外线的。由于摄像机的感光单元是对所有的入射光线进行感应捕获,其中包括可见光、红外线等。为避免红外线对成像后图像色彩的影响,在摄像机的镜头与感光单元之间加装一个红外滤光片,以滤除红外线,从而使得该感光单元仅感应可见光。The visible light that can be seen by the human eye is arranged in wavelength from long to short, followed by red, orange, yellow, green, cyan, blue, and purple. The wavelength of red light is in the range of 0.62 to 0.76 μm; the light longer than the wavelength of red light is called infrared light, and the human eye cannot see infrared rays. Since the camera's photosensitive unit captures all incident light, it includes visible light, infrared light, and so on. In order to avoid the influence of infrared rays on the color of the image after imaging, an infrared filter is added between the lens of the camera and the photosensitive unit to filter out the infrared rays, so that the photosensitive unit only senses visible light.
然而,为提高摄像机夜视能力,可为该摄像机配置红外灯,以发出人们肉眼看不到的红外光线去照亮被拍摄的物体。此时,需关掉该红外滤光片,以拍摄黑暗环境下肉眼看不到或模糊的影像。然而当该红外滤光片关闭后,由于红外灯的开启,外部光照又逐渐升高,该红外滤光片又会开启。由于当前外部光照是由于红外灯的照晒,当该红外滤光片开启后,外部光照又会突然将低,关闭该红外滤光片。因此,配置红外灯的摄像机在黑暗环境中容易出现红外滤光片的反复切换。However, in order to improve the night vision capability of the camera, the camera can be equipped with an infrared light to emit infrared light that is invisible to the naked eye to illuminate the object being photographed. In this case, turn off the IR filter to capture images that are invisible or blurred by the naked eye in a dark environment. However, when the infrared filter is turned off, the external light gradually rises due to the opening of the infrared light, and the infrared filter is turned on again. Since the current external illumination is due to the illumination of the infrared lamp, when the infrared filter is turned on, the external illumination will suddenly be low, and the infrared filter is turned off. Therefore, a camera equipped with an infrared lamp is prone to repeated switching of the infrared filter in a dark environment.
然而,该红外滤光片的反复切换容易导致该摄像机所成像的图像不稳定。However, repeated switching of the infrared filter tends to cause instability of the image imaged by the camera.
发明内容 Summary of the invention
本发明实施例提供一种红外控制装置、方法及摄像机,以解决现有技术中摄像机所成像的图像不稳定的问题。Embodiments of the present invention provide an infrared control device, method, and camera to solve the problem of image instability caused by a camera in the prior art.
第一方面,本发明实施例提供一种红外控制装置,包括:光强统计模块、滑动滤波模块、窗口比较模块、能量分析模块及控制模块;所述光强统计模块、所述滑动滤波模块、所述窗口比较模块及所述控制模块依次连接;In a first aspect, an embodiment of the present invention provides an infrared control device, including: a light intensity statistics module, a sliding filter module, a window comparison module, an energy analysis module, and a control module; the light intensity statistics module, the sliding filter module, The window comparison module and the control module are sequentially connected;
所述光强统计模块,还与成像传感器相连接,用于根据所述成像传感器输出的成像数据统计所述成像传感器的平均感光强度,并发送至所述滑动滤波模块;The light intensity statistic module is further connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
所述滑动滤波模块,用于对所述平均感光强度进行滑动滤波,并发送至所述窗口比较模块;The sliding filter module is configured to perform sliding filtering on the average photosensitive intensity and send the result to the window comparison module;
所述窗口比较模块,用于根据所述平均感光强度与打开阈值相比较;若所述平均感光强度大于所述打开阈值,输出第一控制信号至所述控制模块;The window comparison module is configured to compare the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to the control module;
所述能量分析模块,与所述成像传感器及所述控制模块相连接,用于根据所述成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态;若所述红外灯的状态为开启,向所述控制模块发送第二控制信号,若所述红外灯的状态为关闭,向所述控制模块发送第三控制信号;The energy analysis module is connected to the imaging sensor and the control module, and is configured to perform red, green and blue RGB energy analysis according to the imaging data to determine a state of the infrared light; if the state of the infrared light is on Sending a second control signal to the control module, and if the state of the infrared light is off, sending a third control signal to the control module;
所述控制模块,还与红外滤光片相连接,用于根据所述第一控制信号和所述第二控制信号控制所述红外滤光片的状态为关闭,根据所述第一控制信号和所述第三控制信号控制所述红外滤光片的状态为开启。The control module is further connected to the infrared filter, configured to control, according to the first control signal and the second control signal, a state of the infrared filter to be off, according to the first control signal and The third control signal controls the state of the infrared filter to be on.
根据第一方面,在第一方面的第一种可能实现方式中,所述能量分析模块包括:通道选择单元、比率计算单元及判定单元;所述成像传感器包括:至少一组感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件;According to a first aspect, in a first possible implementation manner of the first aspect, the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit; the imaging sensor includes: at least one group of photosensitive elements; each group The photosensitive elements each include: an R photosensitive element, a Gr photosensitive element, a Gb photosensitive element, and a B photosensitive element;
所述通道选择单元,与所述成像传感器及所述比率计算单元相连接,用于根据所述成像数据分别确定所述感光元件中各元件的光强度,并发送至所述比 率计算单元;The channel selection unit is connected to the imaging sensor and the ratio calculation unit, and configured to respectively determine light intensity of each component in the photosensitive element according to the imaging data, and send the light intensity to the ratio Rate calculation unit;
所述比率计算单元,还与所述判定单元相连接,用于根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值,并发送至所述判定单元;The ratio calculating unit is further connected to the determining unit, and configured to respectively calculate a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to light intensity of each element in the photosensitive element a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and sent to the determining unit;
根据所述感光元件中各元件的光强度,分别计算所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度,并发送至所述判定单元;Calculating, according to the light intensity of each element in the photosensitive element, an average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor, and transmitting to the determining unit;
所述判定单元,还与所述控制模块相连接,用于根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态。The determining unit is further connected to the control module, and configured to, according to the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, And an energy analysis of the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor, and determining the state of the infrared light.
根据第一方面的第一种可能实现的方式,在第二种可能实现的方式中,所述判定单元,还用于若所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值均为0,且所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,则确定所述红外灯的状态为开启。According to a first possible implementation manner of the first aspect, in a second possible implementation manner, the determining unit is further configured to: if the R photosensitive element and the Gr photosensitive element correspond to light intensity in each set of photosensitive elements The ratio, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each of the photosensitive elements to the difference of 1 is 0, and the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element and the B photosensitive in the imaging sensor The difference between the average light intensities of the components is 0, and the state of the infrared lamp is determined to be on.
根据第一方面的第一种或第二种可能实现的方式,在第三种可能实现的方式中,所述能量分析模块还包括:白点选择单元;According to the first or second possible implementation manner of the first aspect, in a third possible implementation manner, the energy analysis module further includes: a white point selection unit;
所述白点选择单元,与所述成像传感器及所述通道选择单元连接,用于在所述成像数据中进行白点数据的选择,并将选择的所述白点数据发送至所述通道选择单元;The white point selection unit is connected to the imaging sensor and the channel selection unit for performing white point data selection in the imaging data, and transmitting the selected white point data to the channel selection unit;
所述通道选择单元,还用于根据所述白点数据分别确定所述感光元件中各元件的光强度。 The channel selection unit is further configured to respectively determine light intensities of the components in the photosensitive element according to the white point data.
根据第一方面的第三种可能实现的方式,在第四种可能实现的方式中,所述能量分析模块还包括:幅值滤波单元;According to a third possible implementation manner of the first aspect, in a fourth possible implementation manner, the energy analysis module further includes: an amplitude filtering unit;
所述幅值滤波单元,位于所述白点选择单元和所述通道选择单元之间,用于在所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度之前,对所述白点数据进行幅值滤波。The amplitude filtering unit is located between the white point selecting unit and the channel selecting unit, before the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the white point data And performing amplitude filtering on the white point data.
根据第一方面的第四种可能实现的方式,在第五种可能实现的方式中,所述能量分析模块还包括:区域权重单元;According to a fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the energy analysis module further includes: a region weight unit;
所述区域权重单元,与所述比率计算单元相连接,用于在所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,对根据不同区域内的所述白点数据分别确定的所述感光元件中各元件的光强度配置对应的权重。The area weighting unit is connected to the ratio calculating unit, and configured to calculate, in the ratio calculating unit, the R photosensitive element and the Gr sensing element in each of the photosensitive elements according to the light intensity of each component in the photosensitive element. a ratio of the light intensity corresponding to the component, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each of the photosensitive elements, the components of the photosensitive element respectively determined according to the white point data in different regions The weight corresponding to the light intensity configuration.
第二方面,本发明实施例提供一种红外控制装置,包括:光强统计模块、滑动滤波模块、光强分析模块、窗口比较模块、控制模块;所述光强统计模块、所述滑动滤波模块、所述窗口比较模块及所述控制模块依次连接;In a second aspect, an embodiment of the present invention provides an infrared control device, including: a light intensity statistics module, a sliding filter module, a light intensity analysis module, a window comparison module, and a control module; the light intensity statistics module and the sliding filter module. The window comparison module and the control module are sequentially connected;
所述光强统计模块,与成像传感器相连接,用于根据所述成像传感器输出的成像数据统计所述成像传感器的平均感光强度,并发送至所述滑动滤波模块;The light intensity statistics module is connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
所述滑动滤波模块,用于对所述平均感光强度进行滑动滤波,并发送至所述窗口比较模块及所述光强分析模块;The sliding filter module is configured to perform sliding filtering on the average photosensitive intensity, and send the image to the window comparison module and the light intensity analysis module;
所述光强分析模块,与所述成像传感器及所述窗口比较模块相连接,用于根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块;The light intensity analysis module is connected to the imaging sensor and the window comparison module, and is configured to perform a light intensity analysis according to the average light intensity, determine a state of the infrared light, and if the determination result is on, output Feedback information to the window comparison module;
所述窗口比较模块,用于根据所述平均感光强度及所述反馈信息,输出控制信号至所述控制模块; The window comparison module is configured to output a control signal to the control module according to the average photosensitive intensity and the feedback information;
所述控制模块,还与红外滤光片相连接,用于根据所述控制信号对所述红外滤光片的状态进行控制。The control module is further connected to the infrared filter for controlling the state of the infrared filter according to the control signal.
根据第二方面,在第二方面的第一种可能实现的方式中,所述光强分析模块包括:采样处理单元、判定单元;According to the second aspect, in a first possible implementation manner of the second aspect, the light intensity analysis module includes: a sampling processing unit and a determining unit;
所述采样处理单元,与所述滑动滤波模块及所述判定单元相连接,用于将所述平均感光强度在预设时间内进行采样,获取所述平均感光强度的变化幅值;The sampling processing unit is connected to the sliding filter module and the determining unit, and is configured to sample the average photosensitive intensity within a preset time to obtain a change amplitude of the average photosensitive intensity;
所述判定单元,与所述窗口比较模块相连接,用于将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态;若所述红外灯为开启,将所述变化幅值作为所述反馈信息发送至所述窗口比较模块;The determining unit is connected to the window comparison module, and is configured to compare the change amplitude with a preset amplitude, and determine a state of the infrared light according to the comparison result; if the infrared light is on Transmitting the change amplitude as the feedback information to the window comparison module;
对应的,所述窗口比较模块,还用于将所述平均感光强度与所述变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对所述红外滤光片的状态进行控制。Correspondingly, the window comparison module is further configured to use the difference between the average photosensitive intensity and the change amplitude as input data, and compare the state of the infrared filter with an open threshold and a closed threshold. control.
根据第二方面的第一种可能实现的方式,在第二种可能实现的方式中,所述判定单元,还用于若所述变化幅值小于所述预设幅值,则确定所述红外灯为关闭;若所述变化幅值大于等于所述预设幅值,则确定所述红外灯为开启。According to a first possible implementation manner of the second aspect, in a second possible implementation manner, the determining unit is further configured to determine the infrared if the change amplitude is less than the preset amplitude The light is turned off; if the change amplitude is greater than or equal to the preset amplitude, it is determined that the infrared light is on.
第三方面,本发明提供一种红外控制方法,包括:In a third aspect, the present invention provides an infrared control method, including:
红外控制装置的光强统计模块根据成像传感器输出的成像数据统计所述成像传感器的平均感光强度,发送至所述红外控制装置的滑动滤波模块;The light intensity statistic module of the infrared control device counts the average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and sends it to the sliding filter module of the infrared control device;
所述滑动滤波模块对所述平均感光强度进行滑动滤波,所述滑动滤波之后发送至所述红外控制装置的窗口比较模块;The sliding filter module performs sliding filtering on the average photosensitive intensity, and the sliding filtering is sent to a window comparison module of the infrared control device;
所述窗口比较模块根据所述平均感光强度与打开阈值相比较;若所述平均感光强度大于所述打开阈值,输出第一控制信号至所述红外控制装置的控制模块;The window comparison module compares the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to a control module of the infrared control device;
所述红外控制装置的能量分析模块根据所述成像数据,进行红绿蓝RGB 能量分析,判断红外灯的状态;The energy analysis module of the infrared control device performs red, green and blue RGB according to the imaging data. Energy analysis to determine the state of the infrared light;
若所述红外灯的状态为开启,所述能量分析模块向所述控制模块发送第二控制信号;或者,若所述红外灯的状态为关闭,所述能量分析模块向所述控制模块发送第三控制信号;If the state of the infrared light is on, the energy analysis module sends a second control signal to the control module; or, if the state of the infrared light is off, the energy analysis module sends a message to the control module Three control signals;
所述控制模块根据所述第一控制信息和所述第二控制信号控制红外滤光片的状态为关闭;根据所述第一控制信号及所述第三控制信号控制所述红外滤光片的状态为开启。The control module controls the state of the infrared filter to be off according to the first control information and the second control signal; and controls the infrared filter according to the first control signal and the third control signal The status is on.
根据第三方面,在第三方面的第一种可能实现的方式中,所述能量分析模块包括:通道选择单元、比率计算单元及判定单元;所述成像传感器包括:感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件;According to a third aspect, in a first possible implementation manner of the third aspect, the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit; the imaging sensor includes: a photosensitive element; each group of photosensitive elements All include: R photosensitive element, Gr photosensitive element, Gb photosensitive element and B photosensitive element;
所述红外控制装置的能量分析模块根据所述成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态,包括:The energy analysis module of the infrared control device performs red, green, and blue RGB energy analysis according to the imaging data, and determines the state of the infrared light, including:
所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度;The channel selection unit respectively determines light intensities of the elements in the photosensitive element according to the imaging data;
所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值;根据所述感光元件中各元件的光强度,分别计算所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度;The ratio calculating unit respectively calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each of the photosensitive elements, and the light intensity of the B photosensitive element and the Gb photosensitive element a ratio; according to the light intensity of each element in the photosensitive element, respectively calculating an average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor;
所述判定单元根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态。The determining unit is configured according to a ratio of a light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element and a Gr photosensitive in the imaging sensor. Energy analysis is performed on the average light intensity corresponding to each of the element, the Gb photosensitive element, and the B photosensitive element, and the state of the infrared lamp is determined.
根据第三方面的第一种可能实现方式,在第二种可能实现方式中,所述判 定单元根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态,包括:According to a first possible implementation of the third aspect, in a second possible implementation, the The determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of a light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element, a Gr photosensitive element in the imaging sensor, Energy analysis is performed on the average light intensity of each of the Gb photosensitive element and the B photosensitive element, and the state of the infrared light is determined, including:
若所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值均为0,且所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,所述判定单元确定所述红外灯的状态为开启。If the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element of each of the photosensitive elements to each of the photosensitive elements is 0, and The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor is 0, and the determining unit determines that the state of the infrared light is on.
根据第三方面的第一种或第二种可能实现的方式,在第三种可能实现的方式中,所述能量分析模块还包括:白点选择单元;According to the first or second possible implementation manner of the third aspect, in a third possible implementation manner, the energy analysis module further includes: a white point selection unit;
在所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度之前,还包括:Before the channel selecting unit respectively determines the light intensity of each of the photosensitive elements according to the imaging data, the method further includes:
所述白点选择单元在所述成像数据中进行白点数据的选择;The white point selection unit performs selection of white point data in the imaging data;
对应的,所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度,包括:Correspondingly, the channel selection unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data, including:
所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度。The channel selection unit determines the light intensity of each of the photosensitive elements based on the white point data.
根据第三方面的第三种可能实现的方式,在第四种可能实现的方式中,所述能量分析模块还包括:幅值滤波单元;According to a third possible implementation manner of the third aspect, in a fourth possible implementation manner, the energy analysis module further includes: an amplitude filtering unit;
在所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度之前,还包括:Before the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the white point data, the method further includes:
所述幅值滤波单元对所述白点数据进行幅值滤波。The amplitude filtering unit performs amplitude filtering on the white point data.
根据第三方面的第四种可能实现的方式,在第五种可能实现的方式中,所述能量分析模块还包括:区域权重单元; According to a fourth possible implementation manner of the third aspect, in a fifth possible implementation manner, the energy analysis module further includes: a region weight unit;
在所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,还包括:Calculating, according to the light intensity of each element in the photosensitive element, a ratio of light intensities corresponding to light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, wherein the photosensitive element is in each set of photosensitive elements And before the ratio of the light intensity of the Gb photosensitive element, it also includes:
所述区域权重单元对不同区域内的所述白点数据所对应的所述感光元件中各元件的光强度配置不同的权重。The area weighting unit assigns different weights to the light intensities of the elements in the photosensitive elements corresponding to the white point data in different areas.
第四方面,本发明实施例还提供一种红外控制方法,包括:In a fourth aspect, an embodiment of the present invention further provides an infrared control method, including:
红外控制装置的光强统计模块根据成像传感器输出的成像数据统计所述成像传感器的平均感光度,并发送至所述红外控制装置的滑动滤波模块;The light intensity statistic module of the infrared control device counts the average sensitivity of the imaging sensor according to the imaging data output by the imaging sensor, and sends the average sensitivity to the sliding filter module of the infrared control device;
所述滑动滤波模块对所述平均感光强度进行滑动滤波,并在所述滑动滤波之后发送至所述红外控制装置的窗口比较模块及光强分析模块;The sliding filter module performs sliding filtering on the average photosensitive intensity, and sends the sliding comparison filter to the window comparison module and the light intensity analysis module of the infrared control device;
所述光强分析模块根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块;The light intensity analysis module performs a light intensity analysis according to the average light intensity, determines a state of the infrared light, and if the determination result is on, outputs feedback information to the window comparison module;
所述窗口比较模块根据所述平均感光强度及所述反馈信息,输出控制信号至所述红外控制装置的控制模块;The window comparison module outputs a control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information;
所述控制模块根据所述控制信号对红外滤光片的状态进行控制。The control module controls the state of the infrared filter according to the control signal.
根据第四方面,在第四方面的第一种可能实现的方式中,所述光强分析模块包括:采样处理单元、判定单元;According to the fourth aspect, in a first possible implementation manner of the fourth aspect, the light intensity analysis module includes: a sampling processing unit and a determining unit;
所述光强分析模块根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块,包括:The light intensity analysis module performs a light intensity analysis according to the average light intensity, and determines a state of the infrared light. If the determination result is on, outputting feedback information to the window comparison module includes:
所述采样处理单元对所述平均感光强度在预设时间内进行采样,获取所述平均感光强度的变化幅值;The sampling processing unit samples the average photosensitive intensity for a preset time to obtain a change amplitude of the average photosensitive intensity;
所述判定单元将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态;若所述红外灯为开启,将所述变化幅值作为所述反馈信息发送至所述窗口比较模块;The determining unit compares the change amplitude with a preset amplitude, and determines a state of the infrared light according to the comparison result; if the infrared light is on, the change amplitude is used as the feedback information Sended to the window comparison module;
对应的,所述窗口比较模块根据所述平均感光强度及所述反馈信息,输出 所述控制信号至对所述红外控制装置的控制模块,包括:Correspondingly, the window comparison module outputs according to the average photosensitive intensity and the feedback information. The control signal to a control module for the infrared control device includes:
所述窗口比较模块将所述平均感光强度与所述变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对所述红外滤光片的状态进行控制。The window comparison module uses the difference between the average photosensitive intensity and the change amplitude as input data, and controls the state of the infrared filter compared with an open threshold and a closed threshold.
根据第四方面的第一种可能实现的方式,在第二种可能实现的方式中,所述判定单元将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态,包括:According to a first possible implementation manner of the fourth aspect, in a second possible implementation manner, the determining unit compares the change amplitude with a preset amplitude, and determines the infrared according to the comparison result The status of the lights, including:
若所述变化幅值小于所述预设幅值,则所述判定单元确定所述红外灯为关闭;若所述变化幅值大于等于所述预设幅值,则所述判定单元确定所述红外灯为开启。If the change amplitude is less than the preset amplitude, the determining unit determines that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, the determining unit determines the The infrared light is on.
第五方面,本发明实施例还提供一种摄像机,至少包括:红外滤光片、成像传感器及红外控制装置;其中,所述红外滤光片与所述成像传感器相连接,且分别与所述红外控制装置相连接;In a fifth aspect, the embodiment of the present invention further provides a camera, including at least: an infrared filter, an imaging sensor, and an infrared control device; wherein the infrared filter is connected to the imaging sensor, and respectively Infrared control devices are connected;
所述红外控制装置为上述第三方面任一所述的红外控制装置,或,上述第四方面任一所述的红外控制装置。The infrared control device is the infrared control device according to any one of the above aspects, or the infrared control device according to any of the above fourth aspects.
本发明实施例的红外控制装置、方法及摄像机,由于可通过能量分析模块或光照分析模块判断红外灯的状态,继而再通过控制单元对红滤光片进行状态控制,可避免由于红外灯的开启导致红外滤光片的反复切换,从而保证摄像机的成像的稳定性。The infrared control device, the method and the camera of the embodiment of the invention can determine the state of the infrared lamp through the energy analysis module or the illumination analysis module, and then control the state of the red filter through the control unit, thereby avoiding the opening of the infrared lamp. This results in repeated switching of the infrared filter to ensure the stability of the imaging of the camera.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例一所提供的红外控制装置的结构示意图; 1 is a schematic structural diagram of an infrared control device according to Embodiment 1 of the present invention;
图2为本发明实施例二所提供的红外控制装置的结构示意图;2 is a schematic structural diagram of an infrared control device according to Embodiment 2 of the present invention;
图3为本发明实施例三所提供的红外控制装置的结构示意图;3 is a schematic structural diagram of an infrared control device according to Embodiment 3 of the present invention;
图4为本发明实施例四所提供的红外控制装置的结构示意图;4 is a schematic structural diagram of an infrared control device according to Embodiment 4 of the present invention;
图5为本发明实施例五所提供的红外控制装置的结构示意图;FIG. 5 is a schematic structural diagram of an infrared control device according to Embodiment 5 of the present invention; FIG.
图6为本发明实施例六所提供的红外控制方法的流程图;6 is a flowchart of an infrared control method according to Embodiment 6 of the present invention;
图7为本发明实施例七所提供的红外控制方法的流程图;7 is a flowchart of an infrared control method according to Embodiment 7 of the present invention;
图8为本发明实施例八所提供的摄像机的结构示意图。FIG. 8 is a schematic structural diagram of a camera according to Embodiment 8 of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
图1为本发明实施例一所提供的红外控制装置的结构示意图。本实施例的红外控制装置适用于具有红外灯及红外滤光片的摄像机。其中,该摄像机例如可以是网络摄像机(IP Camera,简称IPC)或视频监控设备。如图1所示,本实施例的红外控制装置100包括:光强统计模块101、滑动滤波模块102、窗口比较模块103、能量分析模块104和控制模块105。光强统计模块101、滑动滤波模块102、窗口比较模块103及控制模块105依次连接。FIG. 1 is a schematic structural diagram of an infrared control device according to Embodiment 1 of the present invention. The infrared control device of this embodiment is suitable for a camera having an infrared lamp and an infrared filter. The camera may be, for example, a network camera (IP Camera) or a video monitoring device. As shown in FIG. 1 , the infrared control device 100 of the present embodiment includes a light intensity statistics module 101 , a sliding filter module 102 , a window comparison module 103 , an energy analysis module 104 , and a control module 105 . The light intensity statistics module 101, the sliding filter module 102, the window comparison module 103, and the control module 105 are sequentially connected.
光强统计模块101,还与成像传感器(sensor)106相连接,用于根据该成像传感器106输出的成像数据统计该成像传感器106的平均感光强度,并发送至滑动滤波模块102。The light intensity statistic module 101 is further connected to an imaging sensor 106 for counting the average photographic intensity of the imaging sensor 106 according to the imaging data output by the imaging sensor 106 and transmitting it to the sliding filter module 102.
具体地,该成像传感器包括至少一个感光元件,该些感光元件具体可以为 电荷耦合元件(Charge Coupled Device,简称CCD)或金属氧化物半导体元件(Complementary Metal-Oxide Semiconductor,简称CMOS)。Specifically, the imaging sensor includes at least one photosensitive element, and the photosensitive elements may specifically be Charge Coupled Device (CCD) or Complementary Metal-Oxide Semiconductor (CMOS).
该成像数据指的是未经处理的原始成像图像的数据,即RAW图像数据。根据成像数据进行RGB能量分析,实际是分别根据成像数据分别计算获得入射光线中R、G、B三种不同波长的可见光各自的能量,如光强度,根据计算获得的R、G、B三种不同波长的可见光各自的能量大小,判断入射光线中是否具有红外光,若是,则该摄像头的红外灯为开启状态,若否,则该摄像头的红外灯为关闭状态。The imaging data refers to data of an unprocessed original imaged image, that is, RAW image data. According to the imaging data, the RGB energy analysis is actually calculated according to the imaging data, respectively, to obtain the respective energies of visible light of different wavelengths of R, G, and B in the incident light, such as light intensity, and R, G, and B obtained according to the calculation. The respective energy levels of different wavelengths of visible light determine whether there is infrared light in the incident light. If so, the infrared light of the camera is turned on, and if not, the infrared light of the camera is off.
滑动滤波模块102,用于对该平均感光强度进行滑动滤波,并发送至窗口比较模块103。The sliding filter module 102 is configured to perform sliding filtering on the average photosensitive intensity and send the same to the window comparison module 103.
该滑动模块102对光强统计模块101所获得该平均感光强度进行滑动滤波,可使得该平均感光强度的波动更稳定,从而使得对红外滤波器的控制更稳定,更好地保证成像的稳定性。The sliding module 102 performs sliding filtering on the average photosensitive intensity obtained by the light intensity statistics module 101, so that the fluctuation of the average photosensitive intensity is more stable, thereby making the control of the infrared filter more stable and better ensuring imaging stability. .
窗口比较模块103,用于根据该平均感光强度与打开阈值相比较;若该平均感光强度大于该打开阈值,输出第一控制信号至该控制模块105。The window comparison module 103 is configured to compare the average photosensitive intensity with an open threshold; if the average photosensitive intensity is greater than the open threshold, output a first control signal to the control module 105.
能量分析模块104,与该成像传感器106及控制模块105相连接,用于根据该成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态;若该红外灯的状态为开启,向该控制模块发送第二控制信号,若该红外灯的状态为关闭,向该控制模块105发送第三控制信号。The energy analysis module 104 is connected to the imaging sensor 106 and the control module 105, and is configured to perform red, green and blue RGB energy analysis according to the imaging data to determine the state of the infrared light; if the state of the infrared light is on, the control The module sends a second control signal, and if the state of the infrared light is off, sends a third control signal to the control module 105.
控制模块105,还与红外滤光片107相连接,用于根据该第一控制信号和该第二控制信号控制该红外滤光片107的状态为关闭,根据该第一控制信号和该第三控制信号控制该红外滤光片的状态为开启。The control module 105 is further connected to the infrared filter 107, and is configured to control the state of the infrared filter 107 to be off according to the first control signal and the second control signal, according to the first control signal and the third The control signal controls the state of the infrared filter to be on.
由于开启红外灯多为黑暗环境中,以提高摄像机的夜视能力,即黑暗环境中的成像效果。若判断确定红外灯为开启,也就是说当前外部光照较弱,需要红外光线进行补光,而无需通过红外滤光片滤除红外光,因而控制红外滤光片 维持关闭状态。若判断确定红外灯为关闭,也就是说,当前外部光照已满足成像照度需求,而无需开启红外灯进行补光。Since the infrared light is turned on in a dark environment to improve the night vision capability of the camera, that is, the imaging effect in a dark environment. If it is determined that the infrared light is on, that is, the current external light is weak, infrared light is required to fill the light, and the infrared light is not filtered through the infrared filter, thereby controlling the infrared filter. Stay closed. If it is determined that the infrared light is off, that is, the current external illumination has met the imaging illumination requirement, and it is not necessary to turn on the infrared light to fill the light.
当该平均感光强度大于该打开阈值时,输出该第一控制信息用以开启红外滤光片,然根据该第三控制信号可知,红外灯为开启,也就是说该平均感光强度是由于红外灯所发射的红外光而增大,因而需控制该红外滤光片为关闭状态。若根据该第三控制信号可知,红外灯为关闭,也就是说,当前该平均感光强度并非红外灯所发射的红外光而增大,因而需开启红外滤光片滤除红外以使图像更清晰。When the average photosensitive intensity is greater than the opening threshold, the first control information is output to turn on the infrared filter, and according to the third control signal, the infrared light is turned on, that is, the average light intensity is due to the infrared light. The emitted infrared light is increased, so it is necessary to control the infrared filter to be in a closed state. According to the third control signal, the infrared light is turned off, that is, the current average intensity is not increased by the infrared light emitted by the infrared light, so the infrared filter needs to be turned on to filter out the infrared to make the image clearer. .
根据该第三控制信息控制红外滤光片的状态切换,实际根据当前外部光照的强度控制该红外滤光片开启或关闭的状态切换。Controlling the state switching of the infrared filter according to the third control information, and actually controlling the state switching of the infrared filter to be turned on or off according to the intensity of the current external illumination.
根据该第一控制信号及该第二控制信号或第三控制信号分别对该红外滤光片的状态进行控制,实际根据当前外部光照强度及该红外灯的开启状态对该红外滤光片进行控制。因而可避免仅根据入射光强,也就是外部光照直接对红外滤光片进行控制,而造成的红外滤光片反复切换,特别是黑暗环境中,而造成的成像不稳定。The state of the infrared filter is respectively controlled according to the first control signal and the second control signal or the third control signal, and the infrared filter is actually controlled according to the current external light intensity and the on state of the infrared light. . Therefore, it is possible to avoid directly controlling the infrared filter according to the incident light intensity, that is, external illumination, and the infrared filter caused by repeated switching, especially in a dark environment, causes imaging instability.
需要说明的是,本实施例提供的红外控制装置,可以具有上述功能的集成电路,还可以是将具有上述功能的软件程序集成在处理器等实体中实现。It should be noted that the infrared control device provided in this embodiment may be an integrated circuit having the above functions, or may be implemented by integrating a software program having the above functions into an entity such as a processor.
本实施例方案,可确定该成像传感器的平均感光强度及红外灯的状态,并根据该平均感光强度及该红外灯的状态对红外滤光片进行状态控制,可避免由于红外灯的开启导致红外滤光片的反复切换,从而保证摄像机的成像的稳定性。In this embodiment, the average photosensitive intensity of the imaging sensor and the state of the infrared light can be determined, and the infrared filter is controlled according to the average photosensitive intensity and the state of the infrared light, thereby avoiding infrared due to the opening of the infrared light. The filter is repeatedly switched to ensure the stability of the imaging of the camera.
同时,由于本实施例提供的红外控制装置,可作硬件和/或软件的方式,集成在该摄像机中,使得该摄像机无需红外灯控制接口,且无需外置检测电路来实现,硬件开销小。In the meantime, the infrared control device provided in this embodiment can be integrated into the camera in a hardware and/or software manner, so that the camera does not need an infrared light control interface, and does not need an external detection circuit to implement, and the hardware overhead is small.
实施例二 Embodiment 2
本实施例还提供一种红外控制装置。图2为本发明实施例二所提供的红外控制装置的结构示意图。在上述方案的基础上,如图2所示,能量分析模块104包括:通道选择单元201、比率计算单元202及判定单元203。成像传感器106包括:至少一组感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件。This embodiment also provides an infrared control device. FIG. 2 is a schematic structural diagram of an infrared control device according to Embodiment 2 of the present invention. Based on the above solution, as shown in FIG. 2, the energy analysis module 104 includes a channel selection unit 201, a ratio calculation unit 202, and a determination unit 203. The imaging sensor 106 includes: at least one set of photosensitive elements; each set of photosensitive elements includes: an R photosensitive element, a Gr photosensitive element, a Gb photosensitive element, and a B photosensitive element.
该一组感光元件对应一个像素点,而一个像素点包括4个感光点。该4个感光点分别为R感光元件、Gr感光元件、Gb感光元件及B感光元件所对应的点。The set of photosensitive elements corresponds to one pixel, and one pixel includes 4 photosensitive dots. The four photosensitive dots are points corresponding to the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element.
通道选择单元201,与成像传感器106及比率计算单元202相连接,用于根据该成像数据分别确定该感光元件中各元件的光强度,并发送至比率计算单元202。The channel selection unit 201 is connected to the imaging sensor 106 and the ratio calculation unit 202 for determining the light intensity of each component in the photosensitive element according to the imaging data, and transmitting the light intensity to the ratio calculation unit 202.
比率计算单元202,与判定单元203相连接,用于根据该感光元件中各元件的光强度,分别计算该每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值,并发送至所述判定单元;The ratio calculating unit 202 is connected to the determining unit 203, and is configured to respectively calculate a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each element in the photosensitive element, and the B photosensitive element and Gb photosensitive element corresponding to the ratio of light intensity, and sent to the determining unit;
根据该感光元件中各元件的光强度,分别计算成像传感器106中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度。The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor 106 is calculated based on the light intensity of each element in the photosensitive element.
具体地,R感光元件与Gr感光元件对应光强度的比值表示红光对绿光的影响,可通过R/Gr表示,B感光元件及Gb感光元件对应光强度的比值表示蓝光光对绿光的影响,可通过B/Gb表示。Specifically, the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element indicates the influence of red light on the green light, which can be represented by R/Gr, and the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element indicates the blue light to the green light. The effect can be expressed by B/Gb.
感光元件各自所对应的平均光强度实际指的是该成像传感器中所有的R感光元件的光强度的平均值、所有Gr感光元件光强度的平均值、所有Gb感光元件光强度的平均值及所有B感光元件光强度的平均值。The average light intensity corresponding to each of the photosensitive elements actually refers to the average value of the light intensities of all the R photosensitive elements in the imaging sensor, the average value of the light intensities of all the Gr photosensitive elements, the average of the light intensities of all the Gb photosensitive elements, and all The average value of the light intensity of the B photosensitive element.
判定单元203,还与控制模块105相连接,用于根据该每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应 光强度的比值、及该成像传感器106中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断该红外灯的状态。The determining unit 203 is further connected to the control module 105, and is configured to, according to the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each set of photosensitive elements, the B photosensitive element and the Gb photosensitive element The ratio of the light intensity and the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor 106 are subjected to energy analysis to determine the state of the infrared light.
优选的,判定单元203,还用于若该每组感光元件中R感光元件与Gr感光元件对应光强度的比值、该每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值绝对值均为0,且该成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,则确定该红外灯的状态为开启。Preferably, the determining unit 203 is further configured to: if the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each set of photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element of each set of the photosensitive elements, and 1 The absolute value of the difference is 0, and the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor is 0, and the infrared light is determined The status is on.
需要说明的是,本实施例中的“差值均为0”并非绝对为0,也可以是约等于0。在黑暗环境中,自然光的强度较弱,成像传感器所感应的光强度多为该红外灯开启所发射的红外光线,而对于红外红线,该些不同感光元件均可感应到。也就是说,该些不同的感光元件各自感应到的光强度类似,因此R、Gr、B、Gb各自的平均光强度接近,其相互之间的差值即均为0。R/Gr与B/Gb也由于该些不同的感光元件各自感应到的光强度类似,均接近于1,因此其与1的差值也为0。It should be noted that the “differential value of 0” in this embodiment is not absolutely 0, and may be approximately equal to 0. In the dark environment, the intensity of natural light is weak, and the intensity of light induced by the imaging sensor is mostly the infrared light emitted by the infrared light, and for the infrared red line, the different photosensitive elements can be sensed. That is to say, the light intensity induced by each of the different photosensitive elements is similar, and thus the average light intensity of each of R, Gr, B, and Gb is close, and the difference between them is 0. R/Gr and B/Gb are also similar to each other because the light intensities induced by the different photosensitive elements are close to 1, so the difference from 1 is also zero.
本实施例的方案可在上述实施例的基础上,具体通过通道选择单元、比率计算单元及判定单元,对成像传感器中各感光元件的光强度进行分析,判断红外灯是否有开启,其红外灯判定方案更精确,更保证的对红外滤光片进行控制,继而保证成像的稳定性。The solution of the embodiment may be based on the foregoing embodiment, specifically analyzing the light intensity of each photosensitive element in the imaging sensor through the channel selection unit, the ratio calculation unit and the determination unit, and determining whether the infrared light is turned on, and the infrared light thereof The determination scheme is more precise, and the infrared filter is controlled to ensure the stability of the imaging.
实施例三Embodiment 3
本实施例还提供一种红外控制装置。图3为本发明实施例三所提供的红外控制装置的结构示意图。如图3所示,其中能量分析模块104还包括白点选择单元301。This embodiment also provides an infrared control device. FIG. 3 is a schematic structural diagram of an infrared control device according to Embodiment 3 of the present invention. As shown in FIG. 3, the energy analysis module 104 further includes a white point selection unit 301.
其中该白点选择单元301,与成像传感器106及通道选择单元201连接,用于在该成像数据中进行白点数据的选择,并将选择的该白点数据发送至该通道选择单元201。 The white point selection unit 301 is connected to the imaging sensor 106 and the channel selection unit 201 for selecting white point data in the imaging data, and transmitting the selected white point data to the channel selection unit 201.
通道选择单元201,还用于根据该白点数据分别确定该至少一组感光元件中各元件的光强度。The channel selection unit 201 is further configured to respectively determine light intensities of the components of the at least one set of photosensitive elements according to the white point data.
具体地,该白点数据可以是该成像数据中符合白平衡的数据。需要说明的是,在本实施例中的白点数据并非绝对的白点数据,也就是说,其所对应的R、G、B各色光强度并非完全相等,只要其彼此之间的差值在预设范围内即可。通过选择的白点数据确定各元件的强度,使得本实施例在保证图像的稳定性的同时,还保证图像无色差。Specifically, the white point data may be data that matches white balance in the imaging data. It should be noted that the white point data in this embodiment is not absolute white point data, that is, the light intensity of each of the R, G, and B colors is not completely equal, as long as the difference between them is It can be within the preset range. The intensity of each component is determined by the selected white point data, so that the embodiment ensures the stability of the image while ensuring that the image has no chromatic aberration.
进一步地,在上述方案中,该能量分析模块104还包括:幅值滤波单元302。该幅值滤波单元302位于白点选择单元301与通道选择单元201之间,用于在通道选择单元201根据该白点数据分别确定该感光件中各元件的光强度之前,对该白点数据进行幅值滤波,从而对该白点数据进行精选。Further, in the above solution, the energy analysis module 104 further includes: an amplitude filtering unit 302. The amplitude filtering unit 302 is located between the white point selecting unit 301 and the channel selecting unit 201, and is configured to determine the light intensity of each component in the photosensitive member before the channel selecting unit 201 respectively determines the light intensity of each component in the photosensitive member. Amplitude filtering is performed to select the white point data.
在如上所述方案中,该所述能量分析模块104还包括:区域权重单元303;In the above solution, the energy analysis module 104 further includes: a region weight unit 303;
区域权重单元303,与比率计算单元202相连接,用于在比率计算单元202根据该感光元件中各元件的光强度,分别计算每组感光元件中R感光元件与Gr感光元件对应光强度的比值,每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,对根据不同区域内的该白点数据分别确定的该感光元件中各元件的光强度配置对应的权重。The area weight unit 303 is connected to the ratio calculating unit 202 for calculating, in the ratio calculating unit 202, the ratio of the light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each group of the photosensitive elements according to the light intensity of each element in the photosensitive element. Before the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each group of photosensitive elements, the corresponding light intensity is assigned to the light intensity of each of the photosensitive elements determined according to the white point data in different regions.
由于不同区域内,成像传感器中对应的感光元件感光能力的差异,使不同入射光强可能产生相同的成像数据,因而对不同区域内的感光元件的各元件配置不同的权重,以通过加权运算获得更准确的各元件对应的光强度。Due to the difference in the sensitizing ability of the corresponding photosensitive elements in the imaging sensor in different regions, different incident light intensities may generate the same imaging data, and thus different components of the photosensitive elements in different regions are configured with different weights to obtain by weighting operation. More accurate light intensity corresponding to each component.
本实施例方案在上述方案的基础上,还通过白点选择单元进行白点选择之后,针对白点数据进行分析,还可保证图像无色差;区域权单元使得计算获得各元件对应的光强度更准确,从而更好的保证图像的稳定性。Based on the above solution, the white point selection unit performs white point selection, and analyzes the white point data to ensure that the image has no chromatic aberration; the area weight unit makes the calculation corresponding to the light intensity of each component more. Accurate, so as to better ensure the stability of the image.
实施例四Embodiment 4
本实施例还提供一种红外控制装置。图4为本发明实施例四所提供的红外 控制装置的结构示意图。如图4所示,该红外控制装置400包括:光强统计模块401、滑动滤波模块402、光强分析模块403、窗口比较模块404、控制模块405。光强统计模块401、滑动滤波模块402、窗口比较模块404及控制模块405依次连接。This embodiment also provides an infrared control device. 4 is an infrared provided by Embodiment 4 of the present invention. Schematic diagram of the structure of the control device. As shown in FIG. 4 , the infrared control device 400 includes a light intensity statistics module 401 , a sliding filter module 402 , a light intensity analysis module 403 , a window comparison module 404 , and a control module 405 . The light intensity statistics module 401, the sliding filter module 402, the window comparison module 404, and the control module 405 are sequentially connected.
光强统计模块401,与成像传感器406相连接,用于根据该成像传感器406输出的成像数据统计该成像传感器406的平均感光强度,并发送至滑动滤波模块402。The light intensity statistics module 401 is coupled to the imaging sensor 406 for counting the average light intensity of the imaging sensor 406 according to the imaging data output by the imaging sensor 406 and transmitting the average light intensity to the sliding filter module 402.
滑动滤波模块402,用于对该平均感光强度进行滑动滤波,并发送至窗口比较模块404及光强分析模块403。The sliding filter module 402 is configured to perform sliding filtering on the average photosensitive intensity and send the same to the window comparison module 404 and the light intensity analysis module 403.
光强分析模块403,与成像传感器406及窗口比较模块404相连接,用于根据该平均感光强度,进行感光强度分析,判断红外灯的状态,若该判断结果为开启,输出反馈信息至该窗口比较模块404。The light intensity analysis module 403 is connected to the imaging sensor 406 and the window comparison module 404 for performing the intensity intensity analysis according to the average light intensity, determining the state of the infrared light, and if the determination result is on, outputting feedback information to the window. Comparison module 404.
窗口比较模块404,用于根据该平均感光强度及该反馈信息,输出控制信号至该控制模块405。The window comparison module 404 is configured to output a control signal to the control module 405 according to the average light intensity and the feedback information.
该控制模块405,还与红外滤光片407相连接,用于根据该控制信号对红外滤光片407的状态进行控制。The control module 405 is further connected to the infrared filter 407 for controlling the state of the infrared filter 407 according to the control signal.
具体地,根据成像传感器的平均感光强度进行感光强度分析,对该感光强度的变化进行监测。若感光强度变化较大,则可认为是红外灯的开启所造成的,对应的,若感光强度变化较小,属于自然光的正常光强度波动,因而该红外灯为关闭。该光强分析模块输出的反馈信息至窗口比较模块,以使窗口比较模块根据该反馈信息对该平均感光强度进行补偿,从而使得该窗口比较模块及控制模块根据补偿后的感光强度进行红外滤光片的状态控制。该反馈信息例如可以是光强度的波动幅值,根据该反馈信息对成像数据进行补偿,可以是减少该成像数据中由于开启红外灯所增加的光强度。该窗口比较模块及控制模块根据补偿后的成像数据进行红外滤光片的状态控制,由于减少红外灯的影响,避免了 红外滤光片的反复切换,从而保证成像的稳定性。Specifically, the photographic intensity analysis is performed based on the average sensitometric intensity of the imaging sensor, and the change in the photographic intensity is monitored. If the change in the intensity of the light is large, it can be considered to be caused by the opening of the infrared light. Correspondingly, if the change in the intensity of the light is small, the normal light intensity of the natural light fluctuates, and thus the infrared light is turned off. The feedback information output by the light intensity analysis module is sent to the window comparison module, so that the window comparison module compensates the average photosensitive intensity according to the feedback information, so that the window comparison module and the control module perform infrared filtering according to the compensated photosensitive intensity. The state control of the slice. The feedback information may be, for example, a fluctuation amplitude of the light intensity, and the imaging data is compensated according to the feedback information, which may be to reduce the light intensity added by the infrared light in the imaging data. The window comparison module and the control module perform state control of the infrared filter according to the compensated imaging data, which is avoided by reducing the influence of the infrared light. The infrared filter is repeatedly switched to ensure the stability of the imaging.
本实施例方案,通过光强分析模块根据感光强度分析可判断红外灯的状态,且若该红外灯为开启时,通过反馈信息使得窗口比较模块对成像数据进行补偿,从而通过控制模块对红外滤光片进行控制,可减少红外灯的影响,避免红外滤光片的反复切换,从而保证成像的稳定性。In the embodiment, the light intensity analysis module can determine the state of the infrared light according to the light intensity analysis, and if the infrared light is turned on, the window comparison module compensates the imaging data through the feedback information, thereby controlling the infrared filter through the control module. The light sheet is controlled to reduce the influence of the infrared light and avoid repeated switching of the infrared filter, thereby ensuring the stability of the image.
实施例五Embodiment 5
本实施例还提供一种红外控制装置。图5为本发明实施例五所提供的红外控制装置的结构示意图。如图5所示,该方案中的,光强分析模块403包括:采样处理单元501、判定单元502。This embodiment also provides an infrared control device. FIG. 5 is a schematic structural diagram of an infrared control device according to Embodiment 5 of the present invention. As shown in FIG. 5, the light intensity analysis module 403 includes: a sampling processing unit 501 and a determining unit 502.
该采样处理单元501,与滑动滤波模块402及判定单元502相连接,用于将该平均感光强度在预设时间内进行采样,获取该平均感光强度的变化幅值。The sampling processing unit 501 is connected to the sliding filter module 402 and the determining unit 502 for sampling the average photosensitive intensity for a preset time to obtain a variation amplitude of the average photosensitive intensity.
判定单元502,与窗口比较模块404相连接,用于将该变化幅值与预设幅值进行比较,根据该比较结果判断该红外灯的状态;若该红外灯为开启,将该变化幅值作为该反馈信息发送至窗口比较模块404。The determining unit 502 is connected to the window comparison module 404, and is configured to compare the change amplitude with a preset amplitude, and determine a state of the infrared light according to the comparison result; if the infrared light is on, the change amplitude is This feedback information is sent to the window comparison module 404.
对应的,窗口比较模块404,还用于将该平均感光强度与该变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对该红外滤光片407的状态进行控制。Correspondingly, the window comparison module 404 is further configured to use the difference between the average photosensitive intensity and the change amplitude as input data, and compare the state of the infrared filter 407 with the opening threshold and the closing threshold.
优选的,该判定单元502,还用于若该变化幅值小于该预设幅值,则确定该红外灯为关闭;若该变化幅值大于等于该预设幅值,则确定该红外灯为开启。Preferably, the determining unit 502 is further configured to: if the change amplitude is less than the preset amplitude, determine that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, determine that the infrared light is Open.
该预设阈值具体可以与打开阈值相同。通常打开阈值大于关闭阈值。The preset threshold may specifically be the same as the open threshold. Usually the open threshold is greater than the shutdown threshold.
本实施例通过采样处理单元所获取到的获取该平均感光度的变化幅值,更准确,从而更好地保证成像的稳定性。In this embodiment, the amplitude of the change in the average sensitivity obtained by the sampling processing unit is more accurate, thereby better ensuring the stability of the imaging.
实施例六Embodiment 6
本实施例提供一种红外控制方法。该方法可由红外控制装置执行。图6为本发明实施例六所提供的红外控制方法的流程图。如图6所示,该方法,具体 包括如下:This embodiment provides an infrared control method. The method can be performed by an infrared control device. FIG. 6 is a flowchart of an infrared control method according to Embodiment 6 of the present invention. As shown in Figure 6, the method is specific Includes the following:
步骤601、红外控制装置的光强统计模块根据成像传感器输出的成像数据统计该成像传感器的平均感光强度,发送至该红外控制装置的滑动滤波模块。Step 601: The light intensity statistics module of the infrared control device counts the average light intensity of the image sensor according to the imaging data output by the imaging sensor, and sends the image to the sliding filter module of the infrared control device.
步骤602、该滑动滤波模块对该平均感光强度进行滑动滤波,该滑动滤波之后发送至该红外控制装置的窗口比较模块。Step 602: The sliding filter module performs sliding filtering on the average photosensitive intensity, and the sliding filtering is sent to the window comparison module of the infrared control device.
步骤603、该窗口比较模块根据该平均感光强度与打开阈值相比较;若该平均感光强度大于所述打开阈值,输出第一控制信号至该红外控制装置的控制模块。Step 603: The window comparison module compares the average photosensitive intensity with an open threshold; if the average photosensitive intensity is greater than the open threshold, the first control signal is output to the control module of the infrared control device.
步骤604、该红外控制装置的能量分析模块根据该成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态。Step 604: The energy analysis module of the infrared control device performs red, green, and blue RGB energy analysis according to the imaging data to determine the state of the infrared light.
步骤605、若该红外灯的状态为开启,该能量分析模块向该控制模块发送第二控制信号;或者,若该红外灯的状态为关闭,该能量分析模块向该控制模块发送第三控制信号。Step 605: If the state of the infrared light is on, the energy analysis module sends a second control signal to the control module; or, if the state of the infrared light is off, the energy analysis module sends a third control signal to the control module. .
步骤606、该控制模块根据该第一控制信息和该第二控制信号控制红外滤光片的状态为关闭;根据该第一控制信号及该第三控制信号控制该红外滤光片的状态为开启。Step 606: The control module controls the state of the infrared filter to be off according to the first control information and the second control signal, and controls the state of the infrared filter to be turned on according to the first control signal and the third control signal. .
进一步地,上述方案中该能量分析模块包括:通道选择单元、比率计算单元及判定单元;该成像传感器包括:感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件。Further, in the above solution, the energy analysis module includes: a channel selection unit, a ratio calculation unit, and a determination unit; the imaging sensor includes: a photosensitive element; each group of the photosensitive elements includes: an R photosensitive element, a Gr photosensitive element, and a Gb photosensitive element; B photosensitive element.
上述方案中步骤601中该红外控制装置的能量分析模块根据该成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态,具体包括:The energy analysis module of the infrared control device in step 601 of the foregoing solution performs red, green, and blue RGB energy analysis according to the imaging data to determine the state of the infrared light, and specifically includes:
该通道选择单元根据该成像数据分别确定该感光元件中各元件的光强度;The channel selection unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data;
该比率计算单元根据该感光元件中各元件的光强度,分别计算该每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值;根据该感光元件中各元件的光强度,分别计算该成像 传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度;The ratio calculation unit respectively calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each element in the photosensitive element, and a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element; The light intensity of each component in the photosensitive element is calculated separately for the imaging The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the sensor;
该判定单元根据该每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及该成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断该红外灯的状态。The determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element, a Gr photosensitive element, and a Gb in the imaging sensor. The average light intensity of each of the photosensitive element and the B photosensitive element is subjected to energy analysis to determine the state of the infrared lamp.
进一步地,在上述方案中,该判定单元根据该每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及该成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断该红外灯的状态,具体包括:Further, in the above aspect, the determining unit is based on a ratio of a light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, a ratio of a light intensity of the B photosensitive element and the Gb photosensitive element, and an R in the imaging sensor. The average light intensity corresponding to each of the photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element is subjected to energy analysis to determine the state of the infrared light, and specifically includes:
若该每组感光元件中R感光元件与Gr感光元件对应光强度的比值、该每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值均为0,且该成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,该判定单元确定该红外灯的状态为开启。If the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each group of photosensitive elements, the ratio of the corresponding light intensity of the B photosensitive element and the Gb photosensitive element in each set of photosensitive elements is 0, and the imaging is The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the sensor is 0, and the determining unit determines that the state of the infrared light is on.
优选的,上述方案中,能力分析模块还包括:白点选择单元。在如上所述的,该通道选择单元根据该成像数据分别确定该感光元件中各元件的光强度之前,还包括:Preferably, in the foregoing solution, the capability analysis module further includes: a white point selection unit. Before the channel selecting unit determines the light intensity of each component in the photosensitive element according to the imaging data, the method further includes:
该白点选择单元在该成像数据中进行白点数据的选择。The white point selection unit performs selection of white point data in the imaging data.
对应的,该通道选择单元根据该成像数据分别确定该感光元件中各元件的光强度,具体包括:Correspondingly, the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data, and specifically includes:
该通道选择单元根据该白点数据分别确定该感光元件中各元件的光强度。The channel selection unit determines the light intensity of each of the photosensitive elements based on the white point data.
进一步地,如上所述方案中的,能量分析模块还包括:幅值滤波单元。在上述,通道选择单元根据该白点数据分别确定该感光元件中各元件的光强度之前,还包括: Further, in the solution as described above, the energy analysis module further includes: an amplitude filtering unit. In the above, before the channel selecting unit determines the light intensity of each component in the photosensitive element according to the white point data, the method further includes:
该幅值滤波单元对该白点数据进行幅值滤波。The amplitude filtering unit performs amplitude filtering on the white point data.
上述方案的基础上,能量分析模块还包括:区域权重单元。在如上所述的该比率计算单元根据该感光元件中各元件的光强度,分别计算该每组感光元件中R感光元件与Gr感光元件对应光强度的比值,该每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,还包括:Based on the above solution, the energy analysis module further includes: a region weight unit. The ratio calculation unit as described above calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, respectively, according to the light intensity of each element in the photosensitive element, and the photosensitive element of each of the photosensitive elements And before the ratio of the light intensity of the Gb photosensitive element, it also includes:
该区域权重单元对不同区域内的该白点数据所对应的该感光元件中各元件的光强度配置不同的权重。The area weighting unit assigns different weights to the light intensities of the elements in the photosensitive element corresponding to the white point data in different areas.
本实施例方案可有上述实施例一至实施例三任一所述的红外控制装置执行,其具体的实现过程及解释说明与上述实施例类似,在此不再赘述。The embodiment of the present invention may be implemented by the infrared control device according to any one of the foregoing Embodiments 1 to 3. The specific implementation process and the explanation are similar to the foregoing embodiment, and details are not described herein again.
实施例七Example 7
本实施例还提供一种红外控制方法。该方法由红外控制装置执行。图7为本发明实施例七所提供的红外控制方法的流程图。如图7所示,该方法,具体包括如下:This embodiment also provides an infrared control method. The method is performed by an infrared control device. FIG. 7 is a flowchart of an infrared control method according to Embodiment 7 of the present invention. As shown in FIG. 7, the method specifically includes the following:
步骤701、红外控制装置的光强统计模块根据成像传感器输出的成像数据统计该成像传感器的平均感光度,并发送至该红外控制装置的滑动滤波模块。Step 701: The light intensity statistics module of the infrared control device counts the average sensitivity of the imaging sensor according to the imaging data output by the imaging sensor, and sends the average sensitivity to the sliding filter module of the infrared control device.
步骤702、该滑动滤波模块对该平均感光强度进行滑动滤波,并在该滑动滤波之后发送至该红外控制装置的窗口比较模块及光强分析模块。Step 702: The sliding filter module performs sliding filtering on the average photosensitive intensity, and sends the sliding filter to the window comparison module and the light intensity analysis module of the infrared control device.
步骤703、该光强分析模块根据该平均感光强度,进行感光强度分析,判断红外灯的状态,若该判断结果为开启,输出反馈信息至该窗口比较模块。Step 703: The light intensity analysis module performs light intensity analysis according to the average light intensity, determines the state of the infrared light, and if the determination result is on, outputs feedback information to the window comparison module.
步骤704、该窗口比较模块根据该平均感光强度及该反馈信息,输出控制信号至该红外控制装置的控制模块。Step 704: The window comparison module outputs a control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information.
步骤705、该控制模块根据该控制信号对红外滤光片的状态进行控制。Step 705: The control module controls the state of the infrared filter according to the control signal.
进一步地,如上所述方案中,该光强分析模块包括:采样处理单元、判定单元。Further, in the solution as described above, the light intensity analysis module includes: a sampling processing unit and a determination unit.
上述步骤703中该光强分析模块根据该平均感光强度,进行感光强度分 析,判断红外灯的状态,若该判断结果为开启,输出反馈信息至该窗口比较模块,包括:In the above step 703, the light intensity analysis module performs the photosensitive intensity score according to the average photosensitive intensity. Determining, determining the state of the infrared lamp, and if the determination result is on, outputting feedback information to the window comparison module, including:
该采样处理单元对该平均感光强度在预设时间内进行采样,获取该平均感光强度的变化幅值;The sampling processing unit samples the average photosensitive intensity for a preset time to obtain a change amplitude of the average photosensitive intensity;
该判定单元将该变化幅值与预设幅值进行比较,根据该比较结果判断该红外灯的状态;若该红外灯为开启,将该变化幅值作为该反馈信息发送至该窗口比较模块。The determining unit compares the change amplitude with the preset amplitude, and determines the state of the infrared light according to the comparison result; if the infrared light is turned on, the change amplitude is sent to the window comparison module as the feedback information.
对应的,上述步骤704中该窗口比较模块根据该平均感光度及该反馈信息,输出该控制信号至该红外控制装置的控制模块,包括:Correspondingly, in step 704, the window comparison module outputs the control signal to the control module of the infrared control device according to the average sensitivity and the feedback information, including:
该窗口比较模块将该平均感光强度与该变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对该红外滤光片的状态进行控制。The window comparison module takes the difference between the average photosensitive intensity and the change amplitude as input data, and controls the state of the infrared filter compared with the open threshold and the closed threshold.
上述方案的基础上,其中,该判定单元将该变化幅值与预设幅值进行比较,根据该比较结果判断所述红外灯的状态,具体包括:On the basis of the foregoing solution, the determining unit compares the change amplitude with the preset amplitude, and determines the state of the infrared light according to the comparison result, which specifically includes:
若该变化幅值小于该预设幅值,则该判定单元确定该红外灯为关闭;若该变化幅值大于等于该预设幅值,则该判定单元确定该红外灯为开启。If the change amplitude is less than the preset amplitude, the determining unit determines that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, the determining unit determines that the infrared light is on.
本实施例方案可有上述实施例四或实施例五中任一所述的红外控制装置执行,其具体的实现过程及解释说明与上述实施例类似,在此不再赘述。The embodiment of the present invention may be implemented by the infrared control device according to any one of the foregoing embodiment 4 or the fifth embodiment. The specific implementation process and the explanation are similar to the foregoing embodiment, and details are not described herein again.
实施例八Example eight
本实施例还提供一种摄像机。图8为本发明实施例八所提供的摄像机的结构示意图。如图8所示,该摄像机800至少包括:红外滤光片801、成像传感器802及红外控制装置803。This embodiment also provides a camera. FIG. 8 is a schematic structural diagram of a camera according to Embodiment 8 of the present invention. As shown in FIG. 8, the camera 800 includes at least an infrared filter 801, an imaging sensor 802, and an infrared control device 803.
其中,该红外滤光片801与成像传感器802相连接,且分别与红外控制装置803相连接。The infrared filter 801 is connected to the imaging sensor 802 and is respectively connected to the infrared control device 803.
该红外控制装置801可以是上述实施例一至实施例三中任一所述的红外控制装置,还可以是如上述实施例四或五中任一所述的红外控制装置。 The infrared control device 801 may be the infrared control device according to any one of the first to third embodiments, or may be the infrared control device according to any one of the above embodiments.
本实施例提供的摄像机,包括上述任一实施例提供的红外控制装置,其具体的有益效果与上述实施例类似,在此不再赘述。The camera provided in this embodiment includes the infrared control device provided in any of the above embodiments, and the specific beneficial effects thereof are similar to those in the foregoing embodiment, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (19)

  1. 一种红外控制装置,其特征在于,包括:光强统计模块、滑动滤波模块、窗口比较模块、能量分析模块及控制模块;所述光强统计模块、所述滑动滤波模块、所述窗口比较模块及所述控制模块依次连接;An infrared control device, comprising: a light intensity statistics module, a sliding filter module, a window comparison module, an energy analysis module and a control module; the light intensity statistics module, the sliding filter module, and the window comparison module And the control module is sequentially connected;
    所述光强统计模块,还与成像传感器相连接,用于根据所述成像传感器输出的成像数据统计所述成像传感器的平均感光强度,并发送至所述滑动滤波模块;The light intensity statistic module is further connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
    所述滑动滤波模块,用于对所述平均感光强度进行滑动滤波,并发送至所述窗口比较模块;The sliding filter module is configured to perform sliding filtering on the average photosensitive intensity and send the result to the window comparison module;
    所述窗口比较模块,用于根据所述平均感光强度与打开阈值相比较;若所述平均感光强度大于所述打开阈值,输出第一控制信号至所述控制模块;The window comparison module is configured to compare the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to the control module;
    所述能量分析模块,与所述成像传感器及所述控制模块相连接,用于根据所述成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态;若所述红外灯的状态为开启,向所述控制模块发送第二控制信号,若所述红外灯的状态为关闭,向所述控制模块发送第三控制信号;The energy analysis module is connected to the imaging sensor and the control module, and is configured to perform red, green and blue RGB energy analysis according to the imaging data to determine a state of the infrared light; if the state of the infrared light is on Sending a second control signal to the control module, and if the state of the infrared light is off, sending a third control signal to the control module;
    所述控制模块,还与红外滤光片相连接,用于根据所述第一控制信号和所述第二控制信号控制所述红外滤光片的状态为关闭,根据所述第一控制信号和所述第三控制信号控制所述红外滤光片的状态为开启。The control module is further connected to the infrared filter, configured to control, according to the first control signal and the second control signal, a state of the infrared filter to be off, according to the first control signal and The third control signal controls the state of the infrared filter to be on.
  2. 根据权利要求1所述的装置,其特征在于,所述能量分析模块包括:通道选择单元、比率计算单元及判定单元;所述成像传感器包括:至少一组感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件;The device according to claim 1, wherein the energy analysis module comprises: a channel selection unit, a ratio calculation unit, and a determination unit; the imaging sensor comprises: at least one set of photosensitive elements; each set of photosensitive elements comprises: R photosensitive element, Gr photosensitive element, Gb photosensitive element and B photosensitive element;
    所述通道选择单元,与所述成像传感器及所述比率计算单元相连接,用于根据所述成像数据分别确定所述感光元件中各元件的光强度,并发送至所述比率计算单元; The channel selection unit is connected to the imaging sensor and the ratio calculation unit, and configured to respectively determine light intensity of each component in the photosensitive element according to the imaging data, and send the light intensity to the ratio calculation unit;
    所述比率计算单元,还与所述判定单元相连接,用于根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值,并发送至所述判定单元;The ratio calculating unit is further connected to the determining unit, and configured to respectively calculate a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to light intensity of each element in the photosensitive element a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and sent to the determining unit;
    根据所述感光元件中各元件的光强度,分别计算所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度,并发送至所述判定单元;Calculating, according to the light intensity of each element in the photosensitive element, an average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor, and transmitting to the determining unit;
    所述判定单元,还与所述控制模块相连接,用于根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态。The determining unit is further connected to the control module, and configured to, according to the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, And an energy analysis of the average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor, and determining the state of the infrared light.
  3. 根据权利要求2所述的装置,其特征在于,The device according to claim 2, characterized in that
    所述判定单元,还用于若所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值均为0,且所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,则确定所述红外灯的状态为开启。The determining unit is further configured to: if the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each set of the photosensitive elements, and The difference between the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element is 0, and the infrared light is determined. The status is on.
  4. 根据权利要求2或3所述的装置,其特征在于,所述能量分析模块还包括:白点选择单元;The device according to claim 2 or 3, wherein the energy analysis module further comprises: a white point selection unit;
    所述白点选择单元,与所述成像传感器及所述通道选择单元连接,用于在所述成像数据中进行白点数据的选择,并将选择的所述白点数据发送至所述通道选择单元;The white point selection unit is connected to the imaging sensor and the channel selection unit for performing white point data selection in the imaging data, and transmitting the selected white point data to the channel selection unit;
    所述通道选择单元,还用于根据所述白点数据分别确定所述感光元件中各元件的光强度。The channel selection unit is further configured to respectively determine light intensities of the components in the photosensitive element according to the white point data.
  5. 根据权利要求4所述的装置,其特征在于,所述能量分析模块还包括: 幅值滤波单元;The device according to claim 4, wherein the energy analysis module further comprises: Amplitude filtering unit;
    所述幅值滤波单元,位于所述白点选择单元和所述通道选择单元之间,用于在所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度之前,对所述白点数据进行幅值滤波。The amplitude filtering unit is located between the white point selecting unit and the channel selecting unit, before the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the white point data And performing amplitude filtering on the white point data.
  6. 根据权利要求5所述的装置,其特征在于,所述能量分析模块还包括:区域权重单元;The device according to claim 5, wherein the energy analysis module further comprises: a region weight unit;
    所述区域权重单元,与所述比率计算单元相连接,用于在所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,对根据不同区域内的所述白点数据分别确定的所述感光元件中各元件的光强度配置对应的权重。The area weighting unit is connected to the ratio calculating unit, and configured to calculate, in the ratio calculating unit, the R photosensitive element and the Gr sensing element in each of the photosensitive elements according to the light intensity of each component in the photosensitive element. a ratio of the light intensity corresponding to the component, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each of the photosensitive elements, the components of the photosensitive element respectively determined according to the white point data in different regions The weight corresponding to the light intensity configuration.
  7. 一种红外控制装置,其特征在于,包括:光强统计模块、滑动滤波模块、光强分析模块、窗口比较模块、控制模块;所述光强统计模块、所述滑动滤波模块、所述窗口比较模块及所述控制模块依次连接;An infrared control device, comprising: a light intensity statistics module, a sliding filter module, a light intensity analysis module, a window comparison module, a control module; the light intensity statistics module, the sliding filter module, and the window comparison The module and the control module are sequentially connected;
    所述光强统计模块,与成像传感器相连接,用于根据所述成像传感器输出的成像数据统计所述成像传感器的平均感光强度,并发送至所述滑动滤波模块;The light intensity statistics module is connected to the imaging sensor, and configured to calculate an average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and send the average photosensitive intensity to the sliding filter module;
    所述滑动滤波模块,用于对所述平均感光强度进行滑动滤波,并发送至所述窗口比较模块及所述光强分析模块;The sliding filter module is configured to perform sliding filtering on the average photosensitive intensity, and send the image to the window comparison module and the light intensity analysis module;
    所述光强分析模块,与所述成像传感器及所述窗口比较模块相连接,用于根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块;The light intensity analysis module is connected to the imaging sensor and the window comparison module, and is configured to perform a light intensity analysis according to the average light intensity, determine a state of the infrared light, and if the determination result is on, output Feedback information to the window comparison module;
    所述窗口比较模块,用于根据所述平均感光强度及所述反馈信息,输出控制信号至所述控制模块;The window comparison module is configured to output a control signal to the control module according to the average photosensitive intensity and the feedback information;
    所述控制模块,还与红外滤光片相连接,用于根据所述控制信号对所述红 外滤光片的状态进行控制。The control module is further connected to the infrared filter for the red color according to the control signal The state of the outer filter is controlled.
  8. 根据权利要求7所述的装置,其特征在于,所述光强分析模块包括:采样处理单元、判定单元;The apparatus according to claim 7, wherein the light intensity analysis module comprises: a sampling processing unit and a determining unit;
    所述采样处理单元,与所述滑动滤波模块及所述判定单元相连接,用于将所述平均感光强度在预设时间内进行采样,获取所述平均感光强度的变化幅值;The sampling processing unit is connected to the sliding filter module and the determining unit, and is configured to sample the average photosensitive intensity within a preset time to obtain a change amplitude of the average photosensitive intensity;
    所述判定单元,与所述窗口比较模块相连接,用于将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态;若所述红外灯为开启,将所述变化幅值作为所述反馈信息发送至所述窗口比较模块;The determining unit is connected to the window comparison module, and is configured to compare the change amplitude with a preset amplitude, and determine a state of the infrared light according to the comparison result; if the infrared light is on Transmitting the change amplitude as the feedback information to the window comparison module;
    对应的,所述窗口比较模块,还用于将所述平均感光强度与所述变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对所述红外滤光片的状态进行控制。Correspondingly, the window comparison module is further configured to use the difference between the average photosensitive intensity and the change amplitude as input data, and compare the state of the infrared filter with an open threshold and a closed threshold. control.
  9. 根据权利要求8所述的装置,其特征在于,The device of claim 8 wherein:
    所述判定单元,还用于若所述变化幅值小于所述预设幅值,则确定所述红外灯为关闭;若所述变化幅值大于等于所述预设幅值,则确定所述红外灯为开启。The determining unit is further configured to: if the change amplitude is less than the preset amplitude, determine that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, determine the The infrared light is on.
  10. 一种红外控制方法,其特征在于,包括:An infrared control method, comprising:
    红外控制装置的光强统计模块根据成像传感器输出的成像数据统计所述成像传感器的平均感光强度,发送至所述红外控制装置的滑动滤波模块;The light intensity statistic module of the infrared control device counts the average photosensitive intensity of the imaging sensor according to the imaging data output by the imaging sensor, and sends it to the sliding filter module of the infrared control device;
    所述滑动滤波模块对所述平均感光强度进行滑动滤波,所述滑动滤波之后发送至所述红外控制装置的窗口比较模块;The sliding filter module performs sliding filtering on the average photosensitive intensity, and the sliding filtering is sent to a window comparison module of the infrared control device;
    所述窗口比较模块根据所述平均感光强度与打开阈值相比较;若所述平均感光强度大于所述打开阈值,输出第一控制信号至所述红外控制装置的控制模块;The window comparison module compares the average photosensitive intensity with an opening threshold; if the average photosensitive intensity is greater than the opening threshold, outputting a first control signal to a control module of the infrared control device;
    所述红外控制装置的能量分析模块根据所述成像数据,进行红绿蓝RGB 能量分析,判断红外灯的状态;The energy analysis module of the infrared control device performs red, green and blue RGB according to the imaging data. Energy analysis to determine the state of the infrared light;
    若所述红外灯的状态为开启,所述能量分析模块向所述控制模块发送第二控制信号;或者,若所述红外灯的状态为关闭,所述能量分析模块向所述控制模块发送第三控制信号;If the state of the infrared light is on, the energy analysis module sends a second control signal to the control module; or, if the state of the infrared light is off, the energy analysis module sends a message to the control module Three control signals;
    所述控制模块根据所述第一控制信息和所述第二控制信号控制红外滤光片的状态为关闭;根据所述第一控制信号及所述第三控制信号控制所述红外滤光片的状态为开启。The control module controls the state of the infrared filter to be off according to the first control information and the second control signal; and controls the infrared filter according to the first control signal and the third control signal The status is on.
  11. 根据权利要求10所述的方法,其特征在于,所述能量分析模块包括:通道选择单元、比率计算单元及判定单元;所述成像传感器包括:感光元件;每组感光元件均包括:R感光元件、Gr感光元件、Gb感光元件及B感光元件;The method according to claim 10, wherein the energy analysis module comprises: a channel selection unit, a ratio calculation unit, and a determination unit; the imaging sensor comprises: a photosensitive element; each set of photosensitive elements comprises: an R photosensitive element , Gr photosensitive element, Gb photosensitive element and B photosensitive element;
    所述红外控制装置的能量分析模块根据所述成像数据,进行红绿蓝RGB能量分析,判断红外灯的状态,包括:The energy analysis module of the infrared control device performs red, green, and blue RGB energy analysis according to the imaging data, and determines the state of the infrared light, including:
    所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度;The channel selection unit respectively determines light intensities of the elements in the photosensitive element according to the imaging data;
    所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值,B感光元件及Gb感光元件对应光强度的比值;根据所述感光元件中各元件的光强度,分别计算所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度;The ratio calculating unit respectively calculates a ratio of light intensity corresponding to the light intensity of the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements according to the light intensity of each of the photosensitive elements, and the light intensity of the B photosensitive element and the Gb photosensitive element a ratio; according to the light intensity of each element in the photosensitive element, respectively calculating an average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor;
    所述判定单元根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态。The determining unit is configured according to a ratio of a light intensity corresponding to the R photosensitive element and the Gr photosensitive element in each of the photosensitive elements, a ratio of the light intensity of the B photosensitive element and the Gb photosensitive element, and an R photosensitive element and a Gr photosensitive in the imaging sensor. Energy analysis is performed on the average light intensity corresponding to each of the element, the Gb photosensitive element, and the B photosensitive element, and the state of the infrared lamp is determined.
  12. 根据权利要求11所述的方法,其特征在于,所述判定单元根据所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、B感光元件及 Gb感光元件对应光强度的比值、及所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度进行能量分析,判断所述红外灯的状态,包括:The method according to claim 11, wherein the determining unit is configured to calculate a ratio of light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, and a B photosensitive element and The ratio of the light intensity of the Gb photosensitive element and the average light intensity of each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element of the imaging sensor are used for energy analysis, and the state of the infrared light is determined, including:
    若所述每组感光元件中R感光元件与Gr感光元件对应光强度的比值、所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值与1的差值均为0,且所述成像传感器中R感光元件、Gr感光元件、Gb感光元件及B感光元件各自对应的平均光强度相互之间的差值均为0,所述判定单元确定所述红外灯的状态为开启。If the ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each of the photosensitive elements, the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element of each of the photosensitive elements to each of the photosensitive elements is 0, and The average light intensity corresponding to each of the R photosensitive element, the Gr photosensitive element, the Gb photosensitive element, and the B photosensitive element in the imaging sensor is 0, and the determining unit determines that the state of the infrared light is on.
  13. 根据权利要求11或12所述的方法,其特征在于,所述能量分析模块还包括:白点选择单元;The method according to claim 11 or 12, wherein the energy analysis module further comprises: a white point selection unit;
    在所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度之前,还包括:Before the channel selecting unit respectively determines the light intensity of each of the photosensitive elements according to the imaging data, the method further includes:
    所述白点选择单元在所述成像数据中进行白点数据的选择;The white point selection unit performs selection of white point data in the imaging data;
    对应的,所述通道选择单元根据所述成像数据分别确定所述感光元件中各元件的光强度,包括:Correspondingly, the channel selection unit respectively determines the light intensity of each component in the photosensitive element according to the imaging data, including:
    所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度。The channel selection unit determines the light intensity of each of the photosensitive elements based on the white point data.
  14. 根据权利要求13所述的方法,其特征在于,所述能量分析模块还包括:幅值滤波单元;The method according to claim 13, wherein the energy analysis module further comprises: an amplitude filtering unit;
    在所述通道选择单元根据所述白点数据分别确定所述感光元件中各元件的光强度之前,还包括:Before the channel selecting unit respectively determines the light intensity of each component in the photosensitive element according to the white point data, the method further includes:
    所述幅值滤波单元对所述白点数据进行幅值滤波。The amplitude filtering unit performs amplitude filtering on the white point data.
  15. 根据权利要求14所述的方法,其特征在于,所述能量分析模块还包括:区域权重单元;The method according to claim 14, wherein the energy analysis module further comprises: a region weight unit;
    在所述比率计算单元根据所述感光元件中各元件的光强度,分别计算所述 每组感光元件中R感光元件与Gr感光元件对应光强度的比值,所述每组感光元件中B感光元件及Gb感光元件对应光强度的比值之前,还包括:The ratio calculation unit respectively calculates the light intensity according to the light intensity of each element in the photosensitive element The ratio of the light intensity of the R photosensitive element to the Gr photosensitive element in each group of photosensitive elements, before the ratio of the light intensity of the B photosensitive element and the Gb photosensitive element in each set of photosensitive elements, further includes:
    所述区域权重单元对不同区域内的所述白点数据所对应的所述感光元件中各元件的光强度配置不同的权重。The area weighting unit assigns different weights to the light intensities of the elements in the photosensitive elements corresponding to the white point data in different areas.
  16. 一种红外控制方法,其特征在于,包括:An infrared control method, comprising:
    红外控制装置的光强统计模块根据成像传感器输出的成像数据统计所述成像传感器的平均感光度,并发送至所述红外控制装置的滑动滤波模块;The light intensity statistic module of the infrared control device counts the average sensitivity of the imaging sensor according to the imaging data output by the imaging sensor, and sends the average sensitivity to the sliding filter module of the infrared control device;
    所述滑动滤波模块对所述平均感光强度进行滑动滤波,并在所述滑动滤波之后发送至所述红外控制装置的窗口比较模块及光强分析模块;The sliding filter module performs sliding filtering on the average photosensitive intensity, and sends the sliding comparison filter to the window comparison module and the light intensity analysis module of the infrared control device;
    所述光强分析模块根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块;The light intensity analysis module performs a light intensity analysis according to the average light intensity, determines a state of the infrared light, and if the determination result is on, outputs feedback information to the window comparison module;
    所述窗口比较模块根据所述平均感光强度及所述反馈信息,输出控制信号至所述红外控制装置的控制模块;The window comparison module outputs a control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information;
    所述控制模块根据所述控制信号对红外滤光片的状态进行控制。The control module controls the state of the infrared filter according to the control signal.
  17. 根据权利要求16所述的方法,其特征在于,所述光强分析模块包括:采样处理单元、判定单元;The method according to claim 16, wherein the light intensity analysis module comprises: a sampling processing unit and a determining unit;
    所述光强分析模块根据所述平均感光强度,进行感光强度分析,判断红外灯的状态,若所述判断结果为开启,输出反馈信息至所述窗口比较模块,包括:The light intensity analysis module performs a light intensity analysis according to the average light intensity, and determines a state of the infrared light. If the determination result is on, outputting feedback information to the window comparison module includes:
    所述采样处理单元对所述平均感光强度在预设时间内进行采样,获取所述平均感光强度的变化幅值;The sampling processing unit samples the average photosensitive intensity for a preset time to obtain a change amplitude of the average photosensitive intensity;
    所述判定单元将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态;若所述红外灯为开启,将所述变化幅值作为所述反馈信息发送至所述窗口比较模块;The determining unit compares the change amplitude with a preset amplitude, and determines a state of the infrared light according to the comparison result; if the infrared light is on, the change amplitude is used as the feedback information Sended to the window comparison module;
    对应的,所述窗口比较模块根据所述平均感光强度及所述反馈信息,输出所述控制信号至对所述红外控制装置的控制模块,包括: Correspondingly, the window comparison module outputs the control signal to the control module of the infrared control device according to the average photosensitive intensity and the feedback information, including:
    所述窗口比较模块将所述平均感光强度与所述变化幅值的差值作为输入数据,与打开阈值、关闭阈值相比较,对所述红外滤光片的状态进行控制。The window comparison module uses the difference between the average photosensitive intensity and the change amplitude as input data, and controls the state of the infrared filter compared with an open threshold and a closed threshold.
  18. 根据权利要求17所述的方法,其特征在于,所述判定单元将所述变化幅值与预设幅值进行比较,根据所述比较结果判断所述红外灯的状态,包括:The method according to claim 17, wherein the determining unit compares the change amplitude with a preset amplitude, and determines the state of the infrared light according to the comparison result, including:
    若所述变化幅值小于所述预设幅值,则所述判定单元确定所述红外灯为关闭;若所述变化幅值大于等于所述预设幅值,则所述判定单元确定所述红外灯为开启。If the change amplitude is less than the preset amplitude, the determining unit determines that the infrared light is off; if the change amplitude is greater than or equal to the preset amplitude, the determining unit determines the The infrared light is on.
  19. 一种摄像机,其特征在于,至少包括:红外滤光片、成像传感器及红外控制装置;其中,所述红外滤光片与所述成像传感器相连接,且分别与所述红外控制装置相连接;A camera, comprising: an infrared filter, an imaging sensor, and an infrared control device; wherein the infrared filter is connected to the imaging sensor and respectively connected to the infrared control device;
    所述红外控制装置为权利要求1-6中任一项所述的红外控制装置,或,权利要求7-9中任一项所述的红外控制装置。 The infrared control device is the infrared control device according to any one of claims 1 to 6, or the infrared control device according to any one of claims 7-9.
PCT/CN2015/075790 2014-04-03 2015-04-02 Infrared control device and method, and camera WO2015149711A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410131994.0A CN104980639A (en) 2014-04-03 2014-04-03 Infrared control device, infrared control method and image camera
CN201410131994.0 2014-04-03

Publications (1)

Publication Number Publication Date
WO2015149711A1 true WO2015149711A1 (en) 2015-10-08

Family

ID=54239409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075790 WO2015149711A1 (en) 2014-04-03 2015-04-02 Infrared control device and method, and camera

Country Status (2)

Country Link
CN (1) CN104980639A (en)
WO (1) WO2015149711A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491283A (en) * 2015-11-26 2016-04-13 北京奇虎科技有限公司 Mode setting method and system for image pick-up device
CN110717887A (en) * 2019-09-05 2020-01-21 中国航空工业集团公司洛阳电光设备研究所 Method for detecting bad elements of line-row detector

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108289164B (en) * 2017-01-10 2020-07-03 杭州海康威视数字技术股份有限公司 Mode switching method and device of camera with infrared light supplement lamp
CN109151331A (en) * 2017-06-19 2019-01-04 西安中兴新软件有限责任公司 A kind of detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996035977A1 (en) * 1995-05-10 1996-11-14 Korea Communications Co., Ltd. An opening and shutting device of infrared-ray filter for cameras
CN202696754U (en) * 2012-01-19 2013-01-23 迅驰(北京)视讯科技有限公司 Digital vidicon
CN103237381A (en) * 2013-04-01 2013-08-07 天津天地伟业数码科技有限公司 Optical filter switching circuit and optical filter switching method for infrared monitoring
CN203313287U (en) * 2013-06-17 2013-11-27 深圳警翼数码科技有限公司 Photographic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996035977A1 (en) * 1995-05-10 1996-11-14 Korea Communications Co., Ltd. An opening and shutting device of infrared-ray filter for cameras
CN202696754U (en) * 2012-01-19 2013-01-23 迅驰(北京)视讯科技有限公司 Digital vidicon
CN103237381A (en) * 2013-04-01 2013-08-07 天津天地伟业数码科技有限公司 Optical filter switching circuit and optical filter switching method for infrared monitoring
CN203313287U (en) * 2013-06-17 2013-11-27 深圳警翼数码科技有限公司 Photographic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491283A (en) * 2015-11-26 2016-04-13 北京奇虎科技有限公司 Mode setting method and system for image pick-up device
CN110717887A (en) * 2019-09-05 2020-01-21 中国航空工业集团公司洛阳电光设备研究所 Method for detecting bad elements of line-row detector

Also Published As

Publication number Publication date
CN104980639A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
US9143704B2 (en) Image capturing device and method thereof
US20160227100A1 (en) Dual camera systems and methods for rapid 3a convergence and high dynamic range exposure metering
JP6717858B2 (en) Calibration of defective image sensor element
US8357899B2 (en) Color correction circuitry and methods for dual-band imaging systems
US8803994B2 (en) Adaptive spatial sampling using an imaging assembly having a tunable spectral response
KR102100031B1 (en) Camera and method of producing color images
WO2015149711A1 (en) Infrared control device and method, and camera
US9113095B2 (en) Imaging device with the autofocus
JP6330474B2 (en) Image processing apparatus, image processing apparatus control method, and imaging apparatus
US10096128B2 (en) Change degree deriving device, change degree deriving system, and non-transitory computer readable medium
TW201512701A (en) Image capturing apparatus and the control method thereof
WO2020026561A1 (en) Image processing device, image processing method, program and image-capturing device
JP2006318000A (en) Color conversion device and photographing device
US11575841B2 (en) Information processing apparatus, imaging apparatus, method, and storage medium
US11451719B2 (en) Image processing apparatus, image capture apparatus, and image processing method
US20210297573A1 (en) Imaging device, control method, and storage medium
US20130266220A1 (en) Color signal processing circuit, color signal processing method, color reproduction evaluating method, imaging apparatus, electronic apparatus and testing device
JP6504892B2 (en) Imaging device
US9906705B2 (en) Image pickup apparatus
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium
WO2013114802A1 (en) Image processing device, image processing method therefor, computer program, and image processing system
CN104581056B (en) A kind of method and device based on photosensitive sensor assisted image adjustment
EP3343897B1 (en) Camera and method of producing color images
WO2023188939A1 (en) Image capture method, image capture device, and program
JP2016200742A (en) Imaging apparatus

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: 15772709

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase
122 Ep: pct application non-entry in european phase

Ref document number: 15772709

Country of ref document: EP

Kind code of ref document: A1