CN108495422B - Method and circuit for automatically controlling infrared lamp current according to scene - Google Patents

Method and circuit for automatically controlling infrared lamp current according to scene Download PDF

Info

Publication number
CN108495422B
CN108495422B CN201810517735.XA CN201810517735A CN108495422B CN 108495422 B CN108495422 B CN 108495422B CN 201810517735 A CN201810517735 A CN 201810517735A CN 108495422 B CN108495422 B CN 108495422B
Authority
CN
China
Prior art keywords
infrared lamp
pin
current
micro
control chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810517735.XA
Other languages
Chinese (zh)
Other versions
CN108495422A (en
Inventor
侯世柒
吴燕燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingtian Biometric Technology Co ltd
Original Assignee
Shenzhen Mingtian Biometric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingtian Biometric Technology Co ltd filed Critical Shenzhen Mingtian Biometric Technology Co ltd
Priority to CN201810517735.XA priority Critical patent/CN108495422B/en
Publication of CN108495422A publication Critical patent/CN108495422A/en
Application granted granted Critical
Publication of CN108495422B publication Critical patent/CN108495422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light

Abstract

The invention discloses a method and a circuit for automatically controlling infrared lamp current according to a scene, which comprises a micro-control chip and a main chip, wherein the micro-control chip can write a register through I2C to control the output current, and the method comprises the following steps: the main chip is connected or disconnected with the micro-control chip circuit through the GPIO, different register values are written in through the I2C interface to adjust the pulse width of the output current, the current of the infrared lamp is dynamically controlled, and the brightness and the power of the infrared lamp are further controlled. The invention can dynamically adjust the current of the infrared lamp in the using process, dynamically adapt to more application scenes, save power supply, enable equipment to quickly acquire ideal iris pictures and reduce average energy consumption.

Description

Method and circuit for automatically controlling infrared lamp current according to scene
Technical Field
The invention relates to the technical field of control of infrared lamp current, in particular to a method and a circuit for automatically controlling infrared lamp current according to a scene.
Background
Iris recognition is the most characteristic point and the most unique biological recognition technology in the current biological recognition field, and is increasingly applied to mobile electronic equipment for individual identification and authentication. Experiments show that the iris area of human eyes shows more obvious details under infrared band light, meanwhile, in order to know the use of iris recognition equipment under different light conditions, an infrared lamp is required to be added in equipment design for infrared light filling, mobile equipment can only select infrared lamp beads with large single-point heating value and strong power due to the influences of machine body thickness, space size and the like, equipment is easy to generate large local heating value, the problem of insufficient heat dissipation and the like, the service life of the infrared lamp and the stability of the equipment are influenced, in addition, once infrared lamp current in the prior art cannot be changed, the power is constant, the current can only be set according to ideal working distance, the short-distance reflectivity is too strong and overexposure is caused, and the long-distance brightness is insufficient and too dark.
Disclosure of Invention
The invention aims to automatically and dynamically adjust the infrared lamp current according to environmental changes, acquire ideal input images, accelerate the processing speed of an iris recognition algorithm, and simultaneously avoid the problems of low speed of acquiring ideal images under the conditions of short-distance overexposure, long-distance overexposure and constant power when the current is fixed, large heat dissipation capacity caused by high average power, and the like. The method and the circuit for automatically controlling the infrared lamp current according to the scene are provided.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a method for automatically controlling infrared lamp current according to a scene, comprising a micro control chip and a main chip, wherein the micro control chip can write a register through I2C to control the output current, and the method is characterized by comprising the following steps:
a1: the main chip is connected or disconnected with the micro-control chip circuit through the GPIO, and the current pulse width is modulated through the I2C interface, so that the current of the infrared lamp is dynamically controlled, and the brightness and the power of the infrared lamp are further controlled.
Specific: in the implementation process for A1, the specific steps are as follows:
s1, setting a multi-gear current pulse width according to the maximum current in the hardware circuit design;
s2, measuring the influence of different current sizes on the image exposure balance parameters under the condition of pulse width current of each gear, and calculating the exposure balance;
and S3, dynamically adjusting the current of the infrared lamp according to the feedback of the image scene.
Specific: the exposure balance equation of step S2 is: av+tv=sv+lv
AV is the logarithm of the current pulse width corresponding to the constant parameter;
TV is the logarithm of the exposure time corresponding to the constant parameter;
SV is the logarithm of the gain magnitude corresponding to the constant parameter;
LV is the logarithm of the feedback brightness versus the constant parameter.
Specific: when the influence of the pulse width current of each gear on the balance equation is calculated, setting TV, keeping SV constant, under ideal light source, measuring the corresponding change of brightness value LV when each gear AV changes, adjusting AV parameters according to the value of each gear ideal light source LV until the equation error is minimum under all ideal light source conditions, obtaining AV parameters under each gear pulse width current, and establishing the balance equation.
Specific: the specific operation steps of the step A1 are as follows:
b1: the main control chip is selectively connected or disconnected with the micro control chip through GPIO_FLASH_EN;
b2, synchronously providing a micro-control chip clock through FLASH EN SYNC;
b3, selecting a micro-control chip control circuit channel through GPIO_FLASH_SEL;
b4, controlling the current of the gating channel through an I2C interface 'SCL 3' and 'SDA 3';
on the other hand, the embodiment of the invention also provides a circuit for automatically controlling the infrared lamp current according to the scene, which comprises a micro-control chip and a main chip, wherein the micro-control chip can write a register through I2C to control the output current, the GPIO pin of the main chip is connected with the CMPCLK pin of the micro-control chip, the STROBE pin of the main chip is connected with the CMDAT0 pin of the micro-control chip, and the EN pin of the main chip is connected with the CMDAT1 pin of the micro-control chip; the SCL pin of the main chip is connected with the SCL pin of the micro-control chip, and the SDA pin of the main chip is connected with the SDA pin of the micro-control chip.
Specific: the circuit also comprises a resistor R2311 and a resistor R2312, wherein one end of the resistor R2311 is connected with a STROBE pin of the main chip, and the other end of the resistor R2311 is grounded; one end of the resistor R2312 is connected to the EN pin of the main chip, and the other end of the resistor R2312 is grounded.
Specific: the LED2 pin of the main chip is connected with the anode of the LED lamp, and the cathode of the LED lamp is grounded.
Specific: the LED1 pin of the main chip is connected with an IR_LED for compensating exposure brightness.
Specific: the SW pin of the main chip is connected with one end of an inductor L2301, the other end of the inductor L2301 is connected with a power supply VBAT, and the circuit also comprises a capacitor C2333 and a capacitor C2322, wherein one end of the capacitor C2333 is connected with the VBAT, and the other end of the capacitor C2322 is grounded; the VOUT pin of the main chip is connected to a capacitor C2332, and the other end of the capacitor C2332 is grounded.
The method and the circuit for automatically controlling the infrared lamp current according to the scene provided by the invention have the beneficial effects that: according to the scheme, the current of the infrared lamp can be dynamically adjusted in the using process, the infrared lamp is dynamically adapted to more application scenes, the power supply is saved, the equipment can quickly acquire an ideal iris picture, and the average energy consumption is reduced.
Drawings
FIG. 1 is a schematic diagram of a main chip of a circuit for automatically controlling infrared lamp current according to a scene;
FIG. 2 is a circuit diagram of a circuit for automatically controlling infrared lamp current according to a scene according to the present invention;
fig. 3 is a schematic diagram of a connection structure of electrical components in a circuit diagram of a circuit for automatically controlling infrared lamp current according to a scenario according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
In the description of the present invention, it should be understood that the terms "upper," "lower," "front," "rear," "left," "right," "top," "bottom," "inner," "outer," and the like indicate or are based on the orientation or positional relationship shown in the drawings, merely to facilitate description of the present invention and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Referring to fig. 1-3, a method for automatically controlling infrared lamp current according to a scene includes a micro control chip capable of controlling the output current through writing an I2C into a register, and a main chip, wherein the main chip selectively turns on or off the micro control chip through a "gpio_flash_en", synchronously provides a micro control chip clock through a "flash_en_sync", selectively controls a circuit channel through the "gpio_flash_sel", and controls the current of a gating channel through I2C interfaces "SCL3" and "SDA 3". The main chip is connected or disconnected with the micro-control chip circuit through the GPIO, different register values are written into through the I2C interface to modulate the current pulse width, the current of the infrared lamp is dynamically controlled, and the brightness and the power of the infrared lamp are further controlled.
According to the maximum current in the hardware circuit design, setting a multi-gear current pulse width, measuring the influence of different current sizes under the current conditions of each gear pulse width on the image exposure balance parameter, calculating the exposure balance, and dynamically adjusting the current size of the infrared lamp according to the feedback of the image scene.
The exposure balance equation is: av+tv=sv+lv
AV is the logarithm of the current pulse width corresponding to the constant parameter;
TV is the logarithm of the exposure time corresponding to the constant parameter;
SV is the logarithm of the gain magnitude corresponding to the constant parameter;
LV is the logarithm of the feedback brightness corresponding to the constant parameter;
when the influence of the pulse width current of each gear on the balance equation is calculated, setting TV, keeping SV constant, under ideal light source, measuring the corresponding change of brightness value LV when each gear AV changes, adjusting AV parameters according to the value of each gear ideal light source LV until the equation error is minimum under all ideal light source conditions, obtaining AV parameters under each gear pulse width current, and establishing the balance equation.
To sum up: the main control chip is selectively connected or disconnected with the micro-control chip through the GPIO_FLASH_EN, the micro-control chip is selected through the GPIO_FLASH_SEL to control the infrared lamp passage, and different register values are written into through the I2C interface to control and change the current of the gated infrared lamp. The method comprises the steps of pre-grading 10-level brightness change in a laboratory, measuring the influence on the balance type of an automatic exposure algorithm under the condition of current brightness of each level, determining exposure balance type parameters, dynamically adjusting the current of an infrared lamp according to automatic exposure brightness feedback in an actual scene, dynamically adapting to more application scenes, saving power of a power supply, enabling equipment to quickly acquire ideal iris pictures, and reducing average energy consumption.
On the other hand, the embodiment of the invention also provides a circuit for automatically controlling the infrared lamp current according to the scene, which comprises a micro-control chip and a main chip, wherein the micro-control chip can write a register through I2C to control the output current, the GPIO pin of the main chip is connected with the CMPCLK pin of the micro-control chip, the STROBE pin of the main chip is connected with the CMDAT0 pin of the micro-control chip, and the EN pin of the main chip is connected with the CMDAT1 pin of the micro-control chip; the SCL pin of the main chip is connected with the SCL pin of the micro-control chip, and the SDA pin of the main chip is connected with the SDA pin of the micro-control chip. The circuit also comprises a resistor R2311 and a resistor R2312, wherein one end of the resistor R2311 is connected with a STROBE pin of the main chip, and the other end of the resistor R2311 is grounded; one end of the resistor R2312 is connected to the EN pin of the main chip, and the other end of the resistor R2312 is grounded. The LED2 pin of the main chip is connected with the anode of the LED lamp, and the cathode of the LED lamp is grounded. The LED1 pin of the main chip is connected with an IR_LED for compensating exposure brightness. The SW pin of the main chip is connected with one end of an inductor L2301, the other end of the inductor L2301 is connected with a power supply VBAT, and the circuit also comprises a capacitor C2333 and a capacitor C2322, wherein one end of the capacitor C2333 is connected with the VBAT, and the other end of the capacitor C2322 is grounded; the VOUT pin of the main chip is connected to a capacitor C2332, and the other end of the capacitor C2332 is grounded.
According to the scheme, the current of the infrared lamp can be dynamically adjusted in the using process, the infrared lamp is dynamically adapted to more application scenes, the power supply is saved, the equipment can quickly acquire an ideal iris picture, and the average energy consumption is reduced.
To sum up: the main control chip is selectively connected or disconnected with the micro-control chip through the GPIO_FLASH_EN, the micro-control chip is selected through the GPIO_FLASH_SEL to control the infrared lamp passage, and different register values are written into through the I2C interface to control and change the current of the gated infrared lamp. The method comprises the steps of pre-grading 10-level brightness change in a laboratory, measuring the influence on the balance type of an automatic exposure algorithm under the condition of current brightness of each level, determining exposure balance type parameters, dynamically adjusting the current of an infrared lamp according to automatic exposure brightness feedback in an actual scene, dynamically adapting to more application scenes, saving power of a power supply, enabling equipment to quickly acquire ideal iris pictures, and reducing average energy consumption.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.

Claims (9)

1. A method for automatically controlling infrared lamp current according to a scene, comprising a micro control chip and a main chip, wherein the micro control chip can write a register through I2C to control the output current, and the method is characterized by comprising the following steps:
a1: the main chip is connected or disconnected with the micro-control chip circuit through the GPIO, different register values are written in through the I2C interface to adjust the pulse width of the output current, the current of the infrared lamp is dynamically controlled, and the brightness and the power of the infrared lamp are further controlled;
in the implementation process for A1, the specific steps are as follows:
s1, setting a multi-gear current pulse width according to the maximum current and the frequency in the hardware circuit design;
s2, measuring the influence of different current sizes on the image exposure balance parameters under the current pulse width condition of each gear, and calculating the exposure balance;
and S3, dynamically adjusting the current of the infrared lamp according to the feedback of the image scene.
2. The method for automatically controlling infrared lamp current according to scene as set forth in claim 1, wherein the exposure balance equation of step S2 is: av+tv=sv+lv;
AV is the logarithm of the current pulse width corresponding to the constant parameter;
TV is the logarithm of the exposure time corresponding to the constant parameter;
SV is the logarithm of the gain magnitude corresponding to the constant parameter;
LV is the logarithm of the feedback brightness versus the constant parameter.
3. The method for automatically controlling the infrared lamp current according to the scene as set forth in claim 2, wherein when the influence of the current pulse width of each current stage on the balance equation is calculated, the TV is set, the SV is constant, under the ideal light source, when the AV change of each stage is measured, the corresponding change of the brightness value LV is measured, the AV parameters are adjusted according to the LV value of each ideal light source until the equation error is the minimum under all ideal light sources, the AV parameters under each current pulse width can be obtained, and the equation balance is established.
4. The method for automatically controlling the infrared lamp current according to the scene as set forth in claim 1, wherein the specific operation steps of step A1 are as follows:
b1: the main control chip is selectively connected or disconnected with the micro control chip through GPIO_FLASH_EN;
b2, synchronously providing a micro-control chip clock through FLASH EN SYNC;
b3, selecting a micro-control chip control circuit channel through GPIO_FLASH_SEL;
b4, controlling the magnitude of the gating channel current through the I2C interfaces SCL3 and SDA 3.
5. A circuit for automatically controlling infrared lamp current according to a scene, which adopts the method for automatically controlling infrared lamp current according to a scene as set forth in any one of claims 1 to 4, characterized in that: the micro-control chip capable of controlling the output current by writing the I2C into the register and the main chip are included, wherein the GPIO pin of the main chip is connected with the CMPCLK pin of the micro-control chip, the STROBE pin of the main chip is connected with the CMDAT0 pin of the micro-control chip, and the EN pin of the main chip is connected with the CMDAT1 pin of the micro-control chip; the SCL pin of the main chip is connected with the SCL pin of the micro-control chip, and the SDA pin of the main chip is connected with the SDA pin of the micro-control chip.
6. A circuit for automatically controlling infrared lamp current according to a scenario as set forth in claim 5, wherein: the circuit also comprises a resistor R2311 and a resistor R2312, wherein one end of the resistor R2311 is connected with a STROBE pin of the main chip, and the other end of the resistor R2311 is grounded; one end of the resistor R2312 is connected to the EN pin of the main chip, and the other end of the resistor R2312 is grounded.
7. A circuit for automatically controlling infrared lamp current according to a scenario as set forth in claim 5, wherein: the LED2 pin of the main chip is connected with the anode of the LED lamp, and the cathode of the LED lamp is grounded.
8. A circuit for automatically controlling infrared lamp current according to a scenario as set forth in claim 5, wherein: the LED1 pin of the main chip is connected with an IR_LED for compensating exposure brightness.
9. A circuit for automatically controlling infrared lamp current according to a scenario as set forth in claim 5, wherein: the SW pin of the main chip is connected with one end of an inductor L2301, the other end of the inductor L2301 is connected with a power supply VBAT, and the circuit also comprises a capacitor C2333 and a capacitor C2322, wherein one end of the capacitor C2333 is connected with the VBAT, and the other end of the capacitor C2322 is grounded; the VOUT pin of the main chip is connected to a capacitor C2332, and the other end of the capacitor C2332 is grounded.
CN201810517735.XA 2018-05-25 2018-05-25 Method and circuit for automatically controlling infrared lamp current according to scene Active CN108495422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810517735.XA CN108495422B (en) 2018-05-25 2018-05-25 Method and circuit for automatically controlling infrared lamp current according to scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810517735.XA CN108495422B (en) 2018-05-25 2018-05-25 Method and circuit for automatically controlling infrared lamp current according to scene

Publications (2)

Publication Number Publication Date
CN108495422A CN108495422A (en) 2018-09-04
CN108495422B true CN108495422B (en) 2024-01-19

Family

ID=63352178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810517735.XA Active CN108495422B (en) 2018-05-25 2018-05-25 Method and circuit for automatically controlling infrared lamp current according to scene

Country Status (1)

Country Link
CN (1) CN108495422B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872106A (en) * 2010-05-21 2010-10-27 深圳市艾威视数码科技有限公司 Intelligent infrared camera and intelligent infrared light intensity adjustment method thereof
CN101917794A (en) * 2010-06-28 2010-12-15 浙江大华技术股份有限公司 Circuit and method for performing adaptive quantization adjustment on power of infrared lamps of infrared camera
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104394311A (en) * 2014-09-15 2015-03-04 沈洪泉 Iris identification imaging module for mobile terminal and image acquisition method
CN208190973U (en) * 2018-05-25 2018-12-04 深圳市明天生物识别科技有限公司 A kind of circuit automatically controlling infrared lamp current according to scene

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160212317A1 (en) * 2015-01-15 2016-07-21 Motorola Mobility Llc 3d ir illumination for iris authentication
US20170061210A1 (en) * 2015-08-26 2017-03-02 Intel Corporation Infrared lamp control for use with iris recognition authentication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872106A (en) * 2010-05-21 2010-10-27 深圳市艾威视数码科技有限公司 Intelligent infrared camera and intelligent infrared light intensity adjustment method thereof
CN101917794A (en) * 2010-06-28 2010-12-15 浙江大华技术股份有限公司 Circuit and method for performing adaptive quantization adjustment on power of infrared lamps of infrared camera
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104394311A (en) * 2014-09-15 2015-03-04 沈洪泉 Iris identification imaging module for mobile terminal and image acquisition method
CN208190973U (en) * 2018-05-25 2018-12-04 深圳市明天生物识别科技有限公司 A kind of circuit automatically controlling infrared lamp current according to scene

Also Published As

Publication number Publication date
CN108495422A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN106375645B (en) A kind of adaptive control system based on infrared eye
US8614766B1 (en) Systems and methods for controlling a power state of a remote device using camera body backlighting control signaling
EP2706745A1 (en) Method and apparatus for controlling flash
US11079658B2 (en) Lighting system and control thereof
CN104349149B (en) A kind of image imaging effect method of adjustment and electronic equipment
CN103957363A (en) Flash camera shooting method and camera shooting device
CN103051804B (en) Intelligent photo taking method and system of mobile terminal
CN104076898A (en) Method and device for controlling luminance of mobile terminal screen
CN101873437A (en) Method and device for regulating exposure
CN105721748A (en) Photographing control device and auxiliary flash control device
CN103516984A (en) Method and device for intelligently switching to HDR mode of camera
CN104780320A (en) Ambient light detection method and electronic equipment
CN105304061A (en) Adjusting method of displayed picture of terminal and terminal
CN205071165U (en) Spherical video camera
CN108495422B (en) Method and circuit for automatically controlling infrared lamp current according to scene
CN105791694A (en) Shooting control device, auxiliary flashing device and auxiliary flashing control system
CN105323382B (en) A kind of screen light compensation method, device and mobile terminal
CN104375358B (en) digital studio photography lighting system
CN208190973U (en) A kind of circuit automatically controlling infrared lamp current according to scene
CN109429031A (en) Infrared monitoring device, corresponding infrared light method of adjustment and storage medium
CN105681642A (en) Shooting control device, auxiliary flash control device and auxiliary flash control system
CN111163570A (en) NB-IOT (NB-IOT) -based indoor lamp combination regulation and control system and method
KR101014622B1 (en) Led illuminating system for photography and the control method
CN108391356A (en) A kind of Intelligent House Light control system
CN111163257B (en) Shooting terminal parameter intelligent adjustment system and method and shooting terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant