CN108416239B - A barcode recognition engine and its control method for reducing power consumption - Google Patents
A barcode recognition engine and its control method for reducing power consumption Download PDFInfo
- Publication number
- CN108416239B CN108416239B CN201810098421.0A CN201810098421A CN108416239B CN 108416239 B CN108416239 B CN 108416239B CN 201810098421 A CN201810098421 A CN 201810098421A CN 108416239 B CN108416239 B CN 108416239B
- Authority
- CN
- China
- Prior art keywords
- supplementary light
- unit
- frame period
- triode
- optical imaging
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10712—Fixed beam scanning
- G06K7/10722—Photodetector array or CCD scanning
- G06K7/10752—Exposure time control
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Studio Devices (AREA)
Abstract
本发明实施例公开了一种条码识别引擎及其降低功耗的控制方法,所述条码识别引擎包括光学成像单元、补光单元、瞄准单元、解码单元和引擎单片机;所述解码单元触发解码时,所述光学成像单元采集光信号并转换为图像数据后传输至解码单元解码;光学成像单元根据其内部生成的帧周期信号和引擎单片机输出的电源控制信号控制补光单元的供电状态;光学成像单元在帧周期信号的曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭;所述补光单元打开时为光学成像单元做补光增强,瞄准单元用于瞄准指示。通过曝光时间来同步调节补光时长,周期性且有规律的开关补光,实现低功耗、低温度的同时且不影响图像成像的质量,使成像更加稳定。
The embodiment of the present invention discloses a barcode recognition engine and its control method for reducing power consumption. The barcode recognition engine includes an optical imaging unit, a supplementary light unit, an aiming unit, a decoding unit and an engine single-chip microcomputer; when the decoding unit triggers decoding , the optical imaging unit collects light signals and converts them into image data and transmits them to the decoding unit for decoding; the optical imaging unit controls the power supply state of the supplementary light unit according to the frame period signal generated inside it and the power supply control signal output by the engine microcontroller; the optical imaging unit The unit controls the supplementary light unit to turn on the supplementary light at the exposure time of the frame period signal, and controls the supplementary light unit to close at the sampling time of the frame period signal; when the supplementary light unit is turned on, the optical imaging unit is used for supplementary light enhancement, and the aiming unit is used for aiming instruct. The duration of supplementary light is adjusted synchronously through the exposure time, and the supplementary light is switched on and off periodically to achieve low power consumption and low temperature without affecting the quality of image imaging, making imaging more stable.
Description
技术领域technical field
本发明涉及条码识别技术领域,尤其涉及一种条码识别引擎及其降低功耗的控制方法。The invention relates to the technical field of barcode identification, in particular to a barcode identification engine and a control method for reducing power consumption thereof.
背景技术Background technique
随着条码应用及移动支付的普及,二维码识别已逐渐应用到社会的各个行业。目前,二维码识别通常采用影像式的识读方式,主流技术是通过CCD (电荷耦合元件,一种半导体器件)/CMOS(互补金属氧化物半导体,由电压控制的一种放大器件)配合合适的镜头来做光学成像,然后由后端的解码部分做图像识别。原始的成像质量对解码的效率至关重要,为获得更好的成像质量,通常会通过额外的补光来提升获得的成像质量。尤其是在暗光环境,为了保证识读的效果及景深,需要使用亮度高的补光来进行补偿,这样不可避免的会带来发热量和功耗的上升。例如,在长时间的高强度工作之后,环境温度较高,器件本身的发热量得不到良好传导的情况下,轻者会影响 CCD/CMOS的成像质量,严重会导致器件损害并停止工作。With the popularity of barcode applications and mobile payments, two-dimensional code recognition has gradually been applied to various industries in society. At present, two-dimensional code recognition usually adopts image-based reading method, and the mainstream technology is through CCD (charge-coupled device, a semiconductor device)/CMOS (complementary metal-oxide semiconductor, a voltage-controlled amplification device) with appropriate The lens is used for optical imaging, and then the decoding part of the back end is used for image recognition. The original image quality is crucial to the efficiency of decoding. In order to obtain better image quality, additional light is usually used to improve the obtained image quality. Especially in low-light environments, in order to ensure the reading effect and depth of field, it is necessary to use high-brightness fill light to compensate, which will inevitably lead to an increase in heat generation and power consumption. For example, after a long time of high-intensity work, the ambient temperature is high, and the heat generated by the device itself cannot be well conducted. In mild cases, the imaging quality of CCD/CMOS will be affected, and in severe cases, the device will be damaged and stop working.
发明内容Contents of the invention
针对上述技术问题,本发明实施例提供了一种条码识别引擎及其降低功耗的控制方法,以解决现有二维码识别长时间工作导致发热量和功耗的上升、影像成像质量的问题。In view of the above-mentioned technical problems, the embodiment of the present invention provides a barcode recognition engine and its control method for reducing power consumption, so as to solve the problems of increasing heat generation and power consumption and image quality caused by long-time work of existing two-dimensional code recognition .
本发明实施例提供一种条码识别引擎,包括光学成像单元、补光单元、瞄准单元、解码单元和引擎单片机;An embodiment of the present invention provides a barcode recognition engine, including an optical imaging unit, a supplementary light unit, an aiming unit, a decoding unit, and an engine single-chip microcomputer;
所述解码单元触发解码时,所述光学成像单元采集光信号并转换为图像数据后传输至解码单元解码;光学成像单元根据其内部生成的帧周期信号和引擎单片机输出的电源控制信号控制补光单元的供电状态;光学成像单元在帧周期信号的其曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭;所述补光单元打开时为光学成像单元做补光增强,瞄准单元用于瞄准指示。When the decoding unit triggers the decoding, the optical imaging unit collects the optical signal and converts it into image data and then transmits it to the decoding unit for decoding; the optical imaging unit controls the supplementary light according to the frame period signal generated inside it and the power supply control signal output by the engine microcontroller The power supply state of the unit; the optical imaging unit controls the supplementary light unit to turn on the supplementary light at the exposure time of the frame period signal, and controls the supplementary light unit to close at the sampling time of the frame period signal; when the supplementary light unit is turned on, it is used as supplementary light for the optical imaging unit Light intensified, aiming unit for aiming indication.
可选地,所述的条码识别引擎中,所述光学成像单元包括镜头、CMOS 图像传感器、补光控制电路和MIPI接口芯片;所述补光单元包括补光灯;Optionally, in the described barcode recognition engine, the optical imaging unit includes a lens, a CMOS image sensor, a supplementary light control circuit and a MIPI interface chip; the supplementary light unit includes a supplementary light;
所述CMOS图像传感器将镜头采集的光学信号转化为电信号,通过模拟转化转化为图像数据并输出;The CMOS image sensor converts the optical signal collected by the lens into an electrical signal, converts it into image data through analog conversion, and outputs it;
CMOS图像传感器输出成像的帧周期信号,补光控制电路根据所述帧周期信号和所述电源控制信号的高低电平组合来控制补光单元的供电状态;补光控制电路在各帧周期信号的曝光时间控制补光单元打开补光,在各帧周期信号的采样时间控制补光单元关闭补光;The CMOS image sensor outputs the frame period signal for imaging, and the supplementary light control circuit controls the power supply state of the supplementary light unit according to the combination of the high and low levels of the frame period signal and the power supply control signal; The exposure time controls the supplementary light unit to turn on the supplementary light, and controls the supplementary light unit to turn off the supplementary light at the sampling time of each frame period signal;
CMOS图像传感器在采样时间采集并输出图像数据、经MIPI接口芯片格式转化后传输给解码单元做解码处理。The CMOS image sensor collects and outputs image data at the sampling time, and after format conversion by the MIPI interface chip, it is transmitted to the decoding unit for decoding processing.
可选地,所述的条码识别引擎中,所述补光控制电路包括第一三极管、第二三极管、第三三极管、第一电阻和第二电阻;Optionally, in the barcode recognition engine, the supplementary light control circuit includes a first triode, a second triode, a third triode, a first resistor and a second resistor;
所述第一三极管的基极连接引擎单片机,第一三极管的发射极连接电源端,第一三极管的集电极连接补光灯的正极和第二三极管的发射极,第二三极管的基极连接第一电阻的一端和CMOS图像传感器的帧曝光输出脚,第一电阻的另一端连接电源端,第二三极管的集电极连接第三三极管的基极,第三三极管的集电极连接补光灯的负极,第三三极管的发射极通过第二电阻接地。The base of the first triode is connected to the engine microcontroller, the emitter of the first triode is connected to the power supply terminal, the collector of the first triode is connected to the anode of the fill light and the emitter of the second triode, The base of the second transistor is connected to one end of the first resistor and the frame exposure output pin of the CMOS image sensor, the other end of the first resistor is connected to the power supply terminal, and the collector of the second transistor is connected to the base of the third transistor. pole, the collector of the third triode is connected to the negative pole of the supplementary light, and the emitter of the third triode is grounded through the second resistor.
可选地,所述的条码识别引擎中,所述第一三极管和第二三极管为PNP 型三极管,第三三极管为NPN型三极管。Optionally, in the barcode recognition engine, the first transistor and the second transistor are PNP transistors, and the third transistor is an NPN transistor.
可选地,所述的条码识别引擎中,所述补光控制电路还包括第一电容,所述第一电容的一端连接电源端和第一三极管的发射极,第一电容的另一端接地。Optionally, in the barcode recognition engine, the supplementary light control circuit further includes a first capacitor, one end of the first capacitor is connected to the power supply terminal and the emitter of the first triode, and the other end of the first capacitor is grounded.
可选地,所述的条码识别引擎中,所述补光控制电路还包括第三电阻和第四电阻;Optionally, in the barcode recognition engine, the supplementary light control circuit further includes a third resistor and a fourth resistor;
所述第三电阻的一端连接第二三极管的基极,第三电阻的另一端连接第一电阻的一端和CMOS图像传感器的帧曝光输出脚,第四电阻的一端连接第二三极管的集电极,第四电阻的另一端连接第三三极管基极。One end of the third resistor is connected to the base of the second transistor, the other end of the third resistor is connected to one end of the first resistor and the frame exposure output pin of the CMOS image sensor, and one end of the fourth resistor is connected to the second transistor The collector of the fourth resistor is connected to the base of the third triode.
本发明实施例第二方面提供了一种采用所述的条码识别引擎的降低功耗的控制方法,包括:The second aspect of the embodiment of the present invention provides a control method for reducing power consumption using the barcode recognition engine, including:
步骤A、解码单元触发解码时,所述光学成像单元采集光信号并转换为图像数据后传输至解码单元解码;Step A, when the decoding unit triggers the decoding, the optical imaging unit collects the optical signal and converts it into image data, and then transmits it to the decoding unit for decoding;
步骤B、光学成像单元根据其内部生成的帧周期信号和引擎单片机输出的电源控制信号控制补光单元的供电状态;在所述帧周期信号的曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭;Step B, the optical imaging unit controls the power supply state of the supplementary light unit according to the frame period signal generated inside it and the power supply control signal output by the engine microcontroller; controls the supplementary light unit to turn on the supplementary light at the exposure time of the frame period signal, and in the frame period The sampling time of the signal controls the light supplement unit to turn off;
步骤C、所述补光单元打开时为光学成像单元做补光增强,瞄准单元用于瞄准指示。Step C, when the supplementary light unit is turned on, it provides supplementary light enhancement for the optical imaging unit, and the aiming unit is used for aiming instructions.
可选地,所述的条码识别引擎的降低功耗的控制方法中,所述步骤B包括:Optionally, in the control method for reducing power consumption of the barcode recognition engine, the step B includes:
步骤B1、光学成像单元的补光控制电路根据所述帧周期信号和所述电源控制信号的高低电平组合来控制补光单元的供电状态;Step B1, the supplementary light control circuit of the optical imaging unit controls the power supply state of the supplementary light unit according to the high-low level combination of the frame period signal and the power control signal;
步骤B2、所述补光控制电路在各帧周期信号的曝光时间控制补光单元打开补光,在各帧周期信号的采样时间控制补光单元关闭补光。Step B2, the supplementary light control circuit controls the supplementary light unit to turn on the supplementary light at the exposure time of each frame period signal, and controls the supplementary light unit to turn off the supplementary light at the sampling time of each frame period signal.
本发明实施例提供的技术方案中,所述条码识别引擎包括光学成像单元、补光单元、瞄准单元、解码单元和引擎单片机;所述解码单元触发解码时,所述光学成像单元采集光信号并转换为图像数据后传输至解码单元解码;光学成像单元根据其内部生成的帧周期信号和引擎单片机输出的电源控制信号控制补光单元的供电状态;光学成像单元在帧周期信号的曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭;所述补光单元打开时为光学成像单元做补光增强,瞄准单元用于瞄准指示。通过曝光时间来同步调节补光时长,周期性且有规律的开关补光,实现低功耗、低温度的同时且不影响图像成像的质量,使成像更加稳定。In the technical solution provided by the embodiment of the present invention, the barcode recognition engine includes an optical imaging unit, a supplementary light unit, an aiming unit, a decoding unit, and an engine microcontroller; when the decoding unit triggers decoding, the optical imaging unit collects optical signals and After being converted into image data, it is transmitted to the decoding unit for decoding; the optical imaging unit controls the power supply state of the supplementary light unit according to the frame period signal generated internally and the power supply control signal output by the engine microcontroller; the optical imaging unit controls the supplementary light unit at the exposure time of the frame period signal. The light unit turns on the supplementary light, and controls the supplementary light unit to turn off at the sampling time of the frame period signal; when the supplementary light unit is turned on, it provides supplementary light enhancement for the optical imaging unit, and the aiming unit is used for aiming instructions. The duration of supplementary light is adjusted synchronously through the exposure time, and the supplementary light is switched on and off periodically to achieve low power consumption and low temperature without affecting the quality of image imaging, making imaging more stable.
附图说明Description of drawings
图1为本发明实施例中条码识别引擎的结构示意图。FIG. 1 is a schematic structural diagram of a barcode recognition engine in an embodiment of the present invention.
图2为本发明实施例中条码识别引擎的结构框图。Fig. 2 is a structural block diagram of a barcode recognition engine in an embodiment of the present invention.
图3为本发明实施例中光学成像单元的结构框图。Fig. 3 is a structural block diagram of an optical imaging unit in an embodiment of the present invention.
图4为本发明实施例中CMOS成像周期和补光周期的时序图。FIG. 4 is a timing diagram of a CMOS imaging period and a supplementary light period in an embodiment of the present invention.
图5为本发明实施例中补光控制电路的电路图。FIG. 5 is a circuit diagram of a supplementary light control circuit in an embodiment of the present invention.
图6为本发明实施例中条码识别引擎的降低功耗的控制方法流程图。FIG. 6 is a flowchart of a control method for reducing power consumption of a barcode recognition engine in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The embodiments of the present invention, and all other embodiments obtained by those skilled in the art without creative efforts, all belong to the protection scope of the present invention.
请同时参阅图1、图2和图3,所述条码识别引擎包括光学成像单元1、补光单元2(在光学成像单元1的左右两侧各设置1个补光灯,即21、22)、瞄准单元3、解码单元4和引擎单片机5。在解码单元4触发解码时,所述光学成像单元1采集光信号并转换为图像数据后传输至解码单元4解码。所述补光单元被点亮,用于为光学成像单元1内部的传感器做补光增强,以便条码识别引擎能够应用于弱光环境。瞄准单元3用于瞄准指示,用户使用解码时起到指引作用。这些器件的发热量及功耗的主要来源为补光单元。以补光灯(图3以D代表两个补光灯,对应图1中的21、22)为例,其瞬时功耗接近0.5W,占整个光学器件的功耗比>50%,也是主要的发热源。此为,本实施例利用CMOS图像传感器的成像周期的原理(需要通过周期性的曝光来不断成像),光学成像单元1根据其内部生成的帧周期信号和引擎单片机5输出的电源控制信号 POWER控制补光单元2的供电状态;光学成像单元1在帧周期信号的曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭。相对于现有一直打开补光的方式,本实施例通过曝光时间来同步调节补光时长,周期性且有规律的开关补光,实现低功耗、低温度的同时且不影响图像成像的质量,使成像更加稳定。Please refer to Fig. 1, Fig. 2 and Fig. 3 at the same time, the barcode recognition engine includes an optical imaging unit 1 and a supplementary light unit 2 (one supplementary light is respectively arranged on the left and right sides of the optical imaging unit 1, namely 21, 22) , aiming unit 3, decoding unit 4 and engine single-chip microcomputer 5. When decoding is triggered by the decoding unit 4 , the optical imaging unit 1 collects optical signals and converts them into image data, which are then transmitted to the decoding unit 4 for decoding. The supplementary light unit is turned on to enhance the supplementary light for the sensor inside the optical imaging unit 1, so that the barcode recognition engine can be applied in a low-light environment. The aiming unit 3 is used for aiming instructions, and plays a guiding role when the user uses decoding. The main source of heat generation and power consumption of these devices is the supplementary light unit. Take the supplementary light (D in Figure 3 represents two supplementary lights, corresponding to 21 and 22 in Figure 1) as an example, its instantaneous power consumption is close to 0.5W, accounting for >50% of the power consumption of the entire optical device, and it is also the main source of heat. This is, the present embodiment utilizes the principle of the imaging period of the CMOS image sensor (need to be continuously imaged by periodic exposure), and the optical imaging unit 1 is controlled according to the frame period signal generated inside it and the power supply control signal POWER output by the engine microcontroller 5. The power supply state of the supplementary light unit 2: the optical imaging unit 1 controls the supplementary light unit to turn on the supplementary light at the exposure time of the frame period signal, and controls the supplementary light unit to turn off at the sampling time of the frame period signal. Compared with the existing method of always turning on the fill light, this embodiment adjusts the fill light duration synchronously through the exposure time, and periodically and regularly switches the fill light to achieve low power consumption and low temperature without affecting the image quality , making the imaging more stable.
所述光学成像单元1包括镜头11、CMOS图像传感器12、补光控制电路13 和MIPI(Mobile Industry Processor Interface,移动产业处理器接口)接口芯片 14。所述补光单元包括补光灯。所述CMOS图像传感器12将镜头11采集的光信号转化为电信号,通过内部的模拟电路和数字电路将所述电信号转换为对应的图像数据并输出。CMOS图像传感器12输出成像的帧周期信号Strobe;补光控制电路13根据所述帧周期信号和所述电源控制信号的高低电平组合来控制补光单元的供电状态,在各帧周期信号的曝光时间控制补光灯打开补光,在各帧周期信号的采样时间(即停止曝光开始采集图像数据时)控制补光灯关闭补光。CMOS图像传感器12在采样时间采集并输出图像数据Data、经MIPI 接口芯片14格式转化后传输给后端的解码单元4做解码处理。The optical imaging unit 1 includes a lens 11, a CMOS image sensor 12, a supplementary light control circuit 13 and a MIPI (Mobile Industry Processor Interface, mobile industry processor interface) interface chip 14. The supplementary light unit includes a supplementary light lamp. The CMOS image sensor 12 converts the optical signal collected by the lens 11 into an electrical signal, and converts the electrical signal into corresponding image data through an internal analog circuit and a digital circuit and outputs it. The CMOS image sensor 12 outputs the imaging frame period signal Strobe; the supplementary light control circuit 13 controls the power supply state of the supplementary light unit according to the combination of the high and low levels of the frame period signal and the power supply control signal, and the exposure of each frame period signal The time-controlled supplementary light turns on the supplementary light, and controls the supplementary light to turn off the supplementary light at the sampling time of each frame period signal (that is, when the exposure is stopped and the image data is collected). The CMOS image sensor 12 collects and outputs the image data Data at the sampling time, and after format conversion by the MIPI interface chip 14, it is transmitted to the decoding unit 4 at the backend for decoding processing.
需要理解的是,所述CMOS图像传感器12通过电源VIN_3V3供电,与解码单元4进行I2C通信,输出的时序控制信号Timing(其中包括帧周期信号Strobe 和场同步信号Vsync)给MIPI接口芯片14。此为现有技术,此处不作详述。It should be understood that the CMOS image sensor 12 is powered by the power supply VIN_3V3, communicates with the decoding unit 4 through I2C, and outputs the timing control signal Timing (including the frame period signal Strobe and the field synchronization signal Vsync) to the MIPI interface chip 14 . This is prior art and will not be described in detail here.
CMOS成像周期CIC和补光周期FLC的时序如图4所示。CMOS图像传感器 12中,一个帧周期信号T包括曝光时间N和采样时间S,所述曝光时间即CMOS 图像传感器12接收电信号并转换为图像数据的时间,采样时间S(非曝光时间) 为CMOS图像传感器对图像数据的采集和传输时间。所述曝光时间的起始时刻为t1,曝光结束的时间为t2,则补光持续的时间为Δt(Δt的时间等于曝光时间 N)。本实施例通过在曝光时间N打开补光,持续Δt,在采样时间关闭补光,持续的周期性的补光更能有效的节省功耗,降低发光器件的热量,提高各器件的使用寿命。The time sequence of the CMOS imaging cycle CIC and the supplementary light cycle FLC is shown in FIG. 4 . In the CMOS image sensor 12, a frame period signal T includes an exposure time N and a sampling time S. The exposure time is the time when the CMOS image sensor 12 receives an electrical signal and converts it into image data, and the sampling time S (non-exposure time) is CMOS The acquisition and transmission time of image data by the image sensor. The start time of the exposure time is t1, the end time of the exposure is t2, and the supplementary light duration is Δt (the time of Δt is equal to the exposure time N). In this embodiment, the supplementary light is turned on at the exposure time N for a duration of Δt, and the supplementary light is turned off at the sampling time. The continuous periodic supplementary light can more effectively save power consumption, reduce the heat of the light-emitting device, and increase the service life of each device.
请一并参阅图5,所述补光控制电路13包括第一三极管Q1、第二三极管 Q2、第三三极管Q3、第一电阻R1和第二电阻R2;所述第一三极管Q1的基极连接引擎单片机,第一三极管Q1的发射极连接电源端VCC,第一三极管Q1的集电极连接两个补光灯D(此处以D代表两个补光灯)的正极和第二三极管Q2 的发射极,第二三极管Q2的基极连接第一电阻R1的一端和CMOS图像传感器 12的帧曝光输出脚,第一电阻R1的另一端连接电源端VCC,第二三极管Q2的集电极连接第三三极管Q3的基极,第三三极管Q3的集电极连接两个补光灯D 的负极,第三三极管Q3的发射极通过第二电阻R2接地。Please also refer to FIG. 5 , the supplementary light control circuit 13 includes a first triode Q1, a second triode Q2, a third triode Q3, a first resistor R1 and a second resistor R2; The base of the triode Q1 is connected to the engine microcontroller, the emitter of the first triode Q1 is connected to the power supply terminal VCC, and the collector of the first triode Q1 is connected to two fill lights D (here, D represents two fill lights lamp) and the emitter of the second triode Q2, the base of the second triode Q2 is connected to one end of the first resistor R1 and the frame exposure output pin of the CMOS image sensor 12, and the other end of the first resistor R1 is connected to The power supply terminal VCC, the collector of the second triode Q2 is connected to the base of the third triode Q3, the collector of the third triode Q3 is connected to the negative poles of the two supplementary lights D, and the third triode Q3 The emitter is grounded through the second resistor R2.
其中,第一三极管Q1和第二三极管Q2为PNP型三极管,第三三极管Q3为 NPN型三极管。条码识别引擎的引擎单片机控制激光器电源开关的控制引脚输出电源控制信号POWER,其为低电平时打开第一三极管Q1,为高电平时关闭第一三极管Q1。CMOS图像传感器12的帧曝光输出指示引脚输出帧周期信号Strobe,其为低电平时打开第二三极管Q2,为高电平时关闭第二三极管Q2。第三三极管Q3的基极输出高电平时导通,低电平则截止。Wherein, the first transistor Q1 and the second transistor Q2 are PNP transistors, and the third transistor Q3 is an NPN transistor. The engine microcontroller of the barcode recognition engine controls the control pin of the laser power switch to output a power control signal POWER, which turns on the first triode Q1 when it is low level, and turns off the first triode Q1 when it is high level. The frame exposure output indication pin of the CMOS image sensor 12 outputs a frame period signal Strobe, which turns on the second transistor Q2 when it is at a low level, and turns off the second transistor Q2 when it is at a high level. The base of the third transistor Q3 is turned on when the output is at a high level, and is turned off at a low level.
所述条码识别引擎工作时,电源控制信号POWER持续为低电平,打开第一三极管Q1。第二三极管Q2由帧周期信号Strobe的高低电平进行同步开关。具体为:帧周期信号Strobe为低电平时打开第二三极管Q2,此时第三三极管 Q3的基极输入高电平而导通,控制补光灯D点亮;帧周期信号Strobe为高电平时关闭第二三极管Q2,第三三极管Q3关闭从而控制补光灯D熄灭。这样即可实现补光灯的周期性且精准的亮灭,达到降低功耗,降低器件发热的目的。When the barcode recognition engine is working, the power control signal POWER is kept at low level, and the first transistor Q1 is turned on. The second triode Q2 is switched synchronously by the high and low levels of the frame period signal Strobe. Specifically: when the frame period signal Strobe is at a low level, the second triode Q2 is turned on, at this time, the base of the third triode Q3 is turned on by inputting a high level, and the supplementary light D is controlled to light up; the frame period signal Strobe When the level is high, the second triode Q2 is turned off, and the third triode Q3 is turned off so as to control the supplementary light D to go out. In this way, the periodic and precise turning on and off of the fill light can be realized, so as to reduce power consumption and heat generation of the device.
优选地,所述补光控制电路13还包括第一电容C1,所述第一电容C1的一端连接电源端VCC和第一三极管Q1的发射极,第一电容C1的另一端接地;通过第一电容滤波去噪使输入补光灯的电源电压更加稳定,补光灯的补光效果更佳。Preferably, the supplementary light control circuit 13 further includes a first capacitor C1, one end of the first capacitor C1 is connected to the power supply terminal VCC and the emitter of the first triode Q1, and the other end of the first capacitor C1 is grounded; The first capacitor filtering and denoising makes the power supply voltage of the input fill light more stable, and the fill light effect of the fill light is better.
优选地,所述补光控制电路13还包括第三电阻R3和第四电阻R4;所述第三电阻R3的一端连接第二三极管Q2的基极,第三电阻R3的另一端连接第一电阻R1的一端和CMOS图像传感器的帧曝光输出脚,第四电阻R4的一端连接第二三极管Q2的集电极,第四电阻R4的另一端连接第三三极管Q3基极。通过第三电阻R3的限流可保护第二三极管Q2,第四电阻R4的限流可保护第三三极管 Q3。Preferably, the supplementary light control circuit 13 further includes a third resistor R3 and a fourth resistor R4; one end of the third resistor R3 is connected to the base of the second transistor Q2, and the other end of the third resistor R3 is connected to the second transistor Q2. One end of a resistor R1 is connected to the frame exposure output pin of the CMOS image sensor, one end of the fourth resistor R4 is connected to the collector of the second transistor Q2, and the other end of the fourth resistor R4 is connected to the base of the third transistor Q3. The current limiting through the third resistor R3 can protect the second transistor Q2, and the current limiting through the fourth resistor R4 can protect the third transistor Q3.
优选地,所述补光灯采用LED,可以高频的周期性的亮灭,可靠地满足长时间周期亮灭的需求。实测在亮度保证成像的同时,功耗得到有效的降低。Preferably, the supplementary light adopts LED, which can be turned on and off periodically at a high frequency, and can reliably meet the requirement of turning on and off for a long period of time. It is measured that while the brightness ensures imaging, the power consumption is effectively reduced.
基于上述的条码识别引擎,本发明还提供一种条码识别引擎的降低功耗的控制方法,请参阅图6,所述降低功耗的控制方法包括:Based on the above-mentioned barcode recognition engine, the present invention also provides a control method for reducing power consumption of the barcode recognition engine, please refer to FIG. 6, the control method for reducing power consumption includes:
S10、解码单元触发解码时,所述光学成像单元采集光信号并转换为图像数据后传输至解码单元解码;S10. When the decoding unit triggers the decoding, the optical imaging unit collects the optical signal and converts it into image data, and then transmits it to the decoding unit for decoding;
S20、光学成像单元根据其内部生成的帧周期信号和引擎单片机输出的电源控制信号控制补光单元的供电状态;在所述帧周期信号的曝光时间控制补光单元打开补光,在帧周期信号的采样时间控制补光单元关闭;S20, the optical imaging unit controls the power supply state of the supplementary light unit according to the frame period signal generated inside it and the power supply control signal output by the engine microcontroller; controls the supplementary light unit to turn on the supplementary light at the exposure time of the frame period signal, and controls the supplementary light unit to turn on the supplementary light during the frame period signal The sampling time controls the closing of the supplementary light unit;
S30、所述补光单元打开时为光学成像单元做补光增强,瞄准单元用于瞄准指示。S30. When the supplementary light unit is turned on, it provides supplementary light enhancement for the optical imaging unit, and the aiming unit is used for aiming instructions.
其中,所述步骤S20包括:Wherein, the step S20 includes:
步骤21、光学成像单元的补光控制电路根据所述帧周期信号和所述电源控制信号的高低电平组合来控制补光单元的供电状态;Step 21, the supplementary light control circuit of the optical imaging unit controls the power supply state of the supplementary light unit according to the high-low level combination of the frame period signal and the power control signal;
步骤22、所述补光控制电路在各帧周期信号的曝光时间控制补光单元打开补光,在各帧周期信号的采样时间控制补光单元关闭补光。Step 22, the supplementary light control circuit controls the supplementary light unit to turn on the supplementary light at the exposure time of each frame period signal, and controls the supplementary light unit to turn off the supplementary light at the sampling time of each frame period signal.
综上所述,本发明提供一种条码识别引擎及其降低功耗的控制方法,适用于所有通过光学成像来进行条码识别的嵌入式设备。通过获取CMOS图像传感器的曝光和采样的帧周期信号,在曝光时间打开补光,在采样时间关闭补光,周期性的补光在保证补光补偿效果的同时,大大降低了补光灯的功耗和发热量,降低幅度实测达到30%-50%左右,减轻因补光灯发热对 CCD/CMOS的成像影响;同时也间接延长了器件的使用寿命,更能有效的节省功耗,具有低功耗、低成本、能够保证识读引擎长期稳定工作的优点。解决了现有市面上的工业扫描引擎长时间工作不可避免会带来功耗和发热量的增加的问题。In summary, the present invention provides a barcode recognition engine and its control method for reducing power consumption, which are applicable to all embedded devices that perform barcode recognition through optical imaging. By obtaining the exposure and sampled frame period signals of the CMOS image sensor, the supplementary light is turned on at the exposure time, and the supplementary light is turned off at the sampling time. Periodic supplementary light greatly reduces the power of the supplementary light while ensuring the compensation effect of the supplementary light. Consumption and heat generation, the measured reduction rate reaches about 30%-50%, reducing the imaging impact of CCD/CMOS due to the heat of the supplementary light; at the same time, it also indirectly prolongs the service life of the device, and can effectively save power consumption. The advantages of power consumption, low cost, and the ability to ensure long-term stable operation of the reading engine. It solves the problem that the industrial scanning engines on the market will inevitably increase power consumption and heat generation when they work for a long time.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810098421.0A CN108416239B (en) | 2018-01-31 | 2018-01-31 | A barcode recognition engine and its control method for reducing power consumption |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810098421.0A CN108416239B (en) | 2018-01-31 | 2018-01-31 | A barcode recognition engine and its control method for reducing power consumption |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108416239A CN108416239A (en) | 2018-08-17 |
| CN108416239B true CN108416239B (en) | 2019-10-11 |
Family
ID=63127381
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810098421.0A Active CN108416239B (en) | 2018-01-31 | 2018-01-31 | A barcode recognition engine and its control method for reducing power consumption |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108416239B (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019169515A1 (en) * | 2018-03-04 | 2019-09-12 | 深圳盈达信息科技有限公司 | Barcode recognition engine and power consumption reduction control method therefor |
| CN109460686B (en) * | 2018-09-25 | 2022-06-14 | 深圳盈达信息科技有限公司 | Method and system for blanking aiming light of aiming device |
| CN112115728B (en) * | 2018-11-15 | 2023-06-02 | 无锡盈达聚力科技有限公司 | Light supplementing lamp control method of scanning device |
| CN109740393A (en) * | 2018-12-06 | 2019-05-10 | 无锡盈达聚力科技有限公司 | Bar code scanning system and method |
| CN110852127A (en) * | 2019-10-26 | 2020-02-28 | 深圳盈达信息科技有限公司 | Bar code reading method and terminal |
| CN112040139B (en) * | 2020-09-09 | 2022-07-29 | 绍兴埃瓦科技有限公司 | Light supplementing method for camera imaging |
| CN112489322B (en) * | 2020-11-18 | 2022-11-22 | 上海商米科技集团股份有限公司 | Quick code scanning method for POS machine product |
| CN114554091B (en) * | 2022-02-23 | 2023-10-20 | 中国计量大学 | Quick image acquisition method for express mobile terminal |
| CN115220286B (en) * | 2022-07-18 | 2024-02-27 | 上海商米科技集团股份有限公司 | Code scanning engine scanning method and system, code scanning equipment and storage medium |
| CN115396572B (en) * | 2022-08-11 | 2023-12-15 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
| CN115577726A (en) * | 2022-11-11 | 2023-01-06 | 无锡盈达聚力科技有限公司 | Image forming apparatus and image forming method |
| CN116132811A (en) * | 2022-12-29 | 2023-05-16 | 深圳市优必行科技有限公司 | Camera light filling lamp control method and device, camera, robot equipment and medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7350711B2 (en) * | 2006-02-28 | 2008-04-01 | Symbol Technologies, Inc. | Ambient light shield and color filter for imaging-based bar code reader |
| CN102932603A (en) * | 2012-08-16 | 2013-02-13 | 浙江宇视科技有限公司 | Light supplementation control method and camera |
| CN104866798B (en) * | 2015-05-21 | 2019-01-25 | 新大陆数字技术股份有限公司 | It is a kind of for obtaining the bar code reading engine of image data |
| CN107463173B (en) * | 2017-07-31 | 2021-06-18 | 广州达泊智能科技有限公司 | Warehouse AGV navigation method and device, computer equipment and storage medium |
-
2018
- 2018-01-31 CN CN201810098421.0A patent/CN108416239B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN108416239A (en) | 2018-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108416239B (en) | A barcode recognition engine and its control method for reducing power consumption | |
| TWI239768B (en) | Photographing apparatus and imaging apparatus | |
| CN103414834B (en) | A kind of screen power-saving method, device and mobile terminal | |
| JP2007318581A (en) | Imaging apparatus, photographing auxiliary light source emission / imaging control method, and imaging auxiliary light source emission / imaging control program | |
| CN102523392B (en) | Circuit capable of improving dynamic range of image sensor and control method thereof | |
| CN105282460B (en) | The enhanced reading method of dynamic range and circuit eliminated with imbalance | |
| CN106960649B (en) | Pixel circuit, image system with pixel circuit and operation method thereof | |
| WO2021022868A1 (en) | Light supplementation method and apparatus for camera | |
| CN101116326B (en) | LED flash control | |
| CN114697561B (en) | Method and device for automatic exposure control of image sensor through environment switching | |
| WO2022188558A1 (en) | Image processing method and apparatus, and camera | |
| SE0103286D0 (en) | An optical sensor device and a method of controlling its exposure time | |
| CN109286763B (en) | Image sensor and method of operation | |
| CN106452580A (en) | Visible light communication coding method compatible with smartphone camera and system thereof | |
| CN109040608A (en) | A kind of single frames high dynamic range imaging method and system | |
| WO2019169515A1 (en) | Barcode recognition engine and power consumption reduction control method therefor | |
| CN1624566A (en) | Flash light intensity adjustment system and method | |
| TWI544746B (en) | Pre-flash time adjustment circuit and image sensor using the same | |
| JP2010045294A (en) | Photo-sensor, measurement apparatus and camera system | |
| CN104580745A (en) | Shooting light fill-in method and device of mobile terminal | |
| CN118524599A (en) | Luminance control device and luminance control method | |
| CN106375685B (en) | Pulse width modulation pixel exposure method and pixel structure | |
| CN102413615A (en) | Two-wire input dimming circuit for DC-DC (direct current-direct current) control | |
| CN101674692B (en) | Light-emitting diode driving device and lighting system | |
| TW201607322A (en) | Method of adaptively reducing power consumption and an image sensor thereof |
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 | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20180817 Assignee: WUXI IDATA TECHNOLOGY Co.,Ltd. Assignor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Contract record no.: X2021980006619 Denomination of invention: A bar code recognition engine and its control method for reducing power consumption Granted publication date: 20191011 License type: Common License Record date: 20210722 |
|
| EE01 | Entry into force of recordation of patent licensing contract | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20180817 Assignee: GUANGZHOU ORIGIN INFORMATION TECHNOLOGY Co.,Ltd. Assignor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Contract record no.: X2021980006861 Denomination of invention: A bar code recognition engine and its control method for reducing power consumption Granted publication date: 20191011 License type: Common License Record date: 20210727 Application publication date: 20180817 Assignee: Hangzhou juyun Internet of things Technology Co.,Ltd. Assignor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Contract record no.: X2021980007033 Denomination of invention: A bar code recognition engine and its control method for reducing power consumption Granted publication date: 20191011 License type: Common License Record date: 20210729 |
|
| EE01 | Entry into force of recordation of patent licensing contract | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Barcode Recognition Engine and Its Control Method for Reducing Power Consumption Effective date of registration: 20230512 Granted publication date: 20191011 Pledgee: Bank of China Limited Shenzhen High tech Zone Sub branch Pledgor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2023980040470 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PC01 | Cancellation of the registration of the contract for pledge of patent right |
Date of cancellation: 20231016 Granted publication date: 20191011 Pledgee: Bank of China Limited Shenzhen High tech Zone Sub branch Pledgor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2023980040470 |
|
| PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Barcode Recognition Engine and Its Control Method for Reducing Power Consumption Effective date of registration: 20231023 Granted publication date: 20191011 Pledgee: Bank of China Limited Shenzhen High tech Zone Sub branch Pledgor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2023980062124 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20191011 Pledgee: Bank of China Limited Shenzhen High tech Zone Sub branch Pledgor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2023980062124 |
|
| PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A barcode recognition engine and its control method for reducing power consumption Granted publication date: 20191011 Pledgee: Bank of China Limited Shenzhen High tech Zone Sub branch Pledgor: SHENZHEN YINGDA INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2024980049522 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right |