CN102629312B - Omnidirectional multiple line laser bar code reading device and method thereof - Google Patents

Omnidirectional multiple line laser bar code reading device and method thereof Download PDF

Info

Publication number
CN102629312B
CN102629312B CN 201210005080 CN201210005080A CN102629312B CN 102629312 B CN102629312 B CN 102629312B CN 201210005080 CN201210005080 CN 201210005080 CN 201210005080 A CN201210005080 A CN 201210005080A CN 102629312 B CN102629312 B CN 102629312B
Authority
CN
China
Prior art keywords
laser
bar code
information
circuit
line
Prior art date
Application number
CN 201210005080
Other languages
Chinese (zh)
Other versions
CN102629312A (en
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 广州优库电子有限公司
Priority to CN 201210005080 priority Critical patent/CN102629312B/en
Publication of CN102629312A publication Critical patent/CN102629312A/en
Application granted granted Critical
Publication of CN102629312B publication Critical patent/CN102629312B/en

Links

Abstract

本发明公开了一种全向多线激光条码识读装置及方法,该装置包括处理器、DAC输出电路、电机控制电路、激光器、电机、激光旋转机构、激光接收器、前端信号调理电路、宽度采样电路、解码电路,处理器分别与DAC输出电路、电机控制电路、解码电路、通讯电路连接,DAC输出电路与激光器连接,电机控制电路与电机连接,电机驱动激光旋转机构旋转,激光接收器、前端信号调理电路、宽度采样电路、解码电路依次连接。 The present invention discloses a multi-line laser bar code reader the whole apparatus and method, the apparatus comprising a processor, the output of the DAC circuit, a motor control circuit, a laser, a motor, a laser rotating mechanism, the laser receiver, the front end signal conditioning circuits, the width a sampling circuit, a decoding circuit, a processor circuit DAC output, respectively, the motor control circuit, a decoding circuit, connected to the communication circuit, and the laser DAC output circuit connected to the motor control circuit is connected with the motor, a motor drive mechanism for rotating the rotary laser beam, a laser receiver, front-end signal conditioning circuits, the width of the sampling circuit, a decoding circuit connected in sequence. 该方法是如果条码信息不完整,则再读取另一条扫描线所得到的条码信息,然后将前后两组信息进行整合重组,得到完整的条码扫描结果。 If the bar code information is not complete, then read the bar code information obtained by another scanning line, and then to integrate two sets of information before and after recombination, the obtained complete bar code scanning results. 本发明针对打邹、破损及反光条码,能够实现快速解码,让用户感觉到流畅的条码阅读,提高作业效率。 The present invention is directed to beat Zou, damaged and reflective bar code, can achieve rapid decoding, allows users to feel smooth bar code reading, improve operational efficiency.

Description

—种全向多线激光条码识读装置及方法 - kind of multi-line omni-directional bar code laser apparatus and method

技术领域 FIELD

[0001] 本发明涉及激光条码识别研究领域,特别涉及一种全向多线激光条码识读装置及方法。 [0001] The present invention relates to the field of laser bar code recognition research, particularly to a multi-line laser bar code reading apparatus and method for full.

背景技术 Background technique

[0002] 条码阅读器是用于读取条码所包含的信息的一种设备。 [0002] The bar code reader is an apparatus for reading information contained in the bar code. 它识别准确、数据输入速度快,且设备简单、成本较低,在超市、图书馆、仓库等众多场合得到越来越广泛的使用。 It identifies accurate, fast data input speed, and simple equipment, lower costs and get more and more widely used in supermarkets, libraries, warehouses and many other occasions. 条码阅读器按照光源不同可以分为虹光条码阅读器(也称为CCD扫描枪)和激光条码阅读器。 A bar code reader in accordance with the different light sources may be divided into avision barcode reader (also referred to as CCD scanner) and the laser bar code reader. 虹光条码阅读器是利用光电藕合(CCD)原理,对条码印刷图案进行成像,然后再译码。 Prismatic bar code reader using optical coupling (CCD) principle, the bar code pattern printed image, and then decoded. 它的优势是:无转轴,马达,使用寿命长;价格便宜。 Its advantages are: no long shaft, motor, life; cheap. 激光条码阅读器是利用激光二极管作为光源的单线式扫描器,但其在扫描速度、扫描距离、扫描灵敏度等都优于虹光条码阅读器,因此目前市场上主要应用的是激光条码阅读器。 Laser bar code reader with a laser diode as a light source-line scanner, but the scanning speed, scanning distance, scanning sensitivity so superior avision bar code reader, and therefore the market is the main application of laser bar code reader.

[0003] 激光条码阅读器主要有转镜式和颤镜式两种。 [0003] rotating mirror and the main mirror chatter two types of laser bar code reader. 转镜式是采用高速马达带动一个棱镜组旋转,使二极管发出的单点激光变成一线。 High-speed rotating mirror is driven by a motor rotating prism, so that single-point laser diode into line. 颤镜式的制作成本低于转镜式,但这种原理的激光枪不易提高扫描速度,一般为33次/秒,最高可以达到100次/秒,在一些需要快速进行扫描的场合达不到应用的要求。 Production cost is lower than the flutter mirror rotating mirror, but this principle is not easy to increase the scanning speed of the laser gun, typically 33 times / sec, can be up to 100 times / sec, in some occasion demands reach quickly scan requirements of the application.

[0004] 公开号为CN101916357A的中国专利公开了一种激光条码识读装置及条码识读方法,该装置包括蓝光激光器、偏转镜、可摆动反射镜、集光器、滤光镜、光电接收器、放大处理电路、与放大处理电路相接且对蓝光激光器进行控制的处理器和电源模块。 [0004] Publication No. CN101916357A Chinese patent discloses a laser bar code readers and bar code reading means method, the apparatus comprising a blue laser, the deflecting mirror, the mirror can be swung, collector, filter, photo receiver , enlargement processing circuit, the amplifying and processing circuit for a blue laser phase control processor and power supply modules. 其识读方法是:扫描光信号接收、扫描光信号模数转换及采集、快速傅里叶变换、去除高频分量、傅里叶反变换、使用大律法进行阈值计算、根据阈值对条码信号进行二值化和根据各类条码标准进行解码。 Reading which is: a signal receiving scanning light, the scanning light signal acquisition and analog-digital conversion, the fast Fourier transform, the high frequency component removed, inverse Fourier transform, using the law of large threshold is calculated, the bar code based on the threshold signal binarizing and decoding according to various types of bar code standards. 这种方法具有以下缺点:(1)这种方法虽减少了硬件结构,识读多运用软件算法,但是这也同时造成识别速度较慢,无法进行快速解码。 This method has the following disadvantages: (1) Although this method reduces the hardware architecture, software algorithms use more readers, but it also causes slow recognition can not be fast decoding. (2)这种方法仍然采用颤镜式,扫描速度低,不适用于需要快速进行扫描的场合。 (2) This method is still used chatter mirror, the scanning speed is low, it does not apply to applications requiring fast scanning.

[0005] 因此,需要提供一种识读速度快、且识别率高的激光条码识读装置及其识别方法。 [0005] Accordingly, it is necessary to provide one kind of fast reading speed and the laser bar code identification method and apparatus of the recognition rate. 发明内容 SUMMARY

[0006] 本发明的主要目的在于克服现有技术的缺点与不足,提供一种全向多线激光条码识读装置,其具有识读效率高的优点,尤其针对打邹、破损及反光条码,识读效果较好。 [0006] The main object of the present invention to overcome the shortcomings and deficiencies of the prior art, there is provided a multi-line omni-directional laser bar code reading apparatus, a reading which has the advantage of high efficiency, especially for playing Zou, breakage and reflective bar code, reading better. 本发明还提供了一种基于上述装置的全向多线激光条码识读方法。 The present invention further provides a multi-line omni-directional laser-based bar code method of the above-described apparatus.

[0007] 本发明的目的通过以下的技术方案实现:一种全向多线激光条码识读装置,包括: [0007] The object of the present invention is achieved by the following technical solution: an all-reading device to the multi-line laser bar code, comprising:

[0008] 处理器,用于根据控制要求发出控制激光器发射、电机转动的控制信号,同时用于对获得的条码信息进行识别,并将识别信息结果通过通讯电路上传到上位机; [0008] processor, under the control requirements for emitting the laser emission control, a control signal to rotate the motor, while the bar code for identification information obtained, the identification information and upload the results to the host computer via the communication circuit;

[0009] DAC (Digital to Analog Converter,数字信号转换成模拟信号)输出电路,用于根据处理器传送的激光器发射控制信号控制激光器发射;[0010] 电机控制电路,用于根据处理器传送的电机转动控制信号控制电机转速; [0009] DAC (Digital to Analog Converter, a digital signal into an analog signal) circuit for controlling laser emission control signal transmitted in accordance with a laser emitting processor; [0010] motor control circuit for the motor of the processor transfer rotation of the motor speed control signal;

[0011] 激光器,用于在DAC输出电路控制下将激光发射到激光旋转机构; [0011] The laser control circuit for the DAC output to the laser rotary laser emitting means;

[0012] 电机,用于驱动激光旋转机构转动; [0012] The motor for driving the rotation mechanism rotates the laser;

[0013] 激光旋转机构,在电机驱动下旋转,从而使激光器照射到该机构上的激光随着旋转,形成若干条激光线; [0013] The laser rotary mechanism, when the motor is driven to rotate so that the laser is irradiated on the laser with the rotation mechanism, a plurality of laser beams form a line;

[0014] 激光接收器,用于在激光旋转机构产生的激光线照射到条码时,接收条码的激光信息,将此激光信号转换成电信号,然后将电信号传递到前端信号调理电路; [0014] The laser receiver, a laser in a laser line information generated by the laser rotary irradiating mechanism to the bar code, the bar code received, converts this laser beam into an electrical signal, and then transmit electrical signals to the front-end signal conditioning circuit;

[0015] 前端信号调理电路,用于将接收到的电信号放大、整理为与条码对应的脉冲信号,输出到宽度采样电路; [0015] The front-end signal conditioning circuit, for amplifying the received electrical signal, organized into a pulse signal corresponding to the bar code, the width of the output sampling circuit;

[0016] 宽度采样电路,用于根据与条码对应的脉冲信号得到条码的宽度; [0016] The width of the sampling circuit, the width of the bar code for obtaining the pulse signal corresponding to the bar code;

[0017] 解码电路,用于将采集并预处理后的信号进行解码,得到条码代表的条码信息; Signal [0017] The decoding circuit, for the pre-acquisition and decoding, to obtain bar code information represented by the bar code;

[0018] 上述处理器分别与DAC输出电路、电机控制电路、解码电路、通讯电路连接,DAC输出电路与激光器连接,电机控制电路与电机连接,电机驱动激光旋转机构旋转,激光接收器、前端信号调理电路、宽度采样电路、解码电路依次连接,工作时,激光旋转机构发射的激光扫描线照射在条码上,激光接收器接收条码上反射的信息。 [0018] The processor outputs the DAC circuit, the motor control circuit, a decoding circuit, connected to the communication circuit, and the laser DAC output circuit connected to the motor control circuit is connected with the motor, the motor rotating the rotary mechanism drives the laser, the laser receiver, the front end of the signal conditioning circuit, the width of the sampling circuit, a decoding circuit connected in sequence, during operation, the laser rotary irradiating a laser scanning lines emitted mechanism on the bar code, the bar code laser receiver receives the information on the reflection.

[0019] 具体的,所述处理器具体为单片机。 [0019] Specifically, the processor is a microcontroller specifically.

[0020] 具体的,所述激光旋转机构具体是指光学棱镜。 [0020] Specifically, the laser rotary mechanism specifically refers optical prism. 采用这种棱镜能够将原来激光器发射的单点激光转换成网状的多条激光扫描线。 With this prism can convert the original single point laser emitted by the laser into a plurality of mesh laser scan lines.

[0021] 优选的,所述处理器还连接一个喇叭,处理器根据解码电路得到的信息控制喇叭发出提示音。 [0021] Preferably, the processor is further connected to a loudspeaker, the processor issues tone decoding circuit according to the information obtained by the control horn. 通过喇叭提示音,操作人员可明确得到该条码信息是否符合要求。 By horn beep, the operator can clearly get the bar code information to meet the requirements.

[0022] 优选的,所述处理器还连接一指示灯,用于提示解码是否成功。 [0022] Preferably, the processor is further connected to an indicator light, for determining whether the decoding is successful prompt. 采用这种结构非常适合于超市等噪杂的场合,收银员可以不受环境噪音影响,清晰便捷地判断条码是否读取成功。 This structure is well suited for noisy places such as supermarkets, cashiers can not influence the noise environment, clear and easily determine whether the bar code is read successfully.

[0023] 一种基于上述装置的全向多线激光条码识读方法,处理器将激光器发射控制信号和电机转动控制信号分别发送到激光器和电机,激光器将激光发射到激光旋转机构上,电机带动激光旋转机构旋转,激光旋转机构将单点激光转换成若干条激光扫描线,工作时,将条码放置于该激光扫描区域内,激光接收器采集该条码的反射信息,通过放大、采样、解码,将得到的条码信息传递到处理器,处理器判断该条码信息是否完整,如果完整,则直接将条码信息发送到上位机;如果不完整,则再读取另一条扫描线所得到的条码信息,然后将前后两组信息进行整合重组,得到完整的条码扫描结果,然后将该条码信息发送到上位机。 [0023] A motor rotation control signal and control signals are transmitted to the motor and the laser, the laser will emit laser light onto the laser rotary mechanism, the motor drives the multi-line laser bar code reading method, the emitter of said processor means based on the whole laser laser rotation mechanism, the laser rotary mechanism single point of laser light into a plurality of laser beams scan line, at work, the bar code is placed inside the laser scanning region, the laser receiver acquired reflection information of the bar code, by amplifying, sampling, decoding, the resulting bar code information is transmitted to the processor, the processor determines whether the bar code information is complete, if complete, the bar code information will be sent directly to the host computer; if not complete, then another read the bar code information obtained by the scanning line, then two sets of information before and after integration and restructuring, obtained complete bar code scanning result, and then transmits the bar code information to the host computer.

[0024] 作为优选方案,所述激光旋转机构在电机驱动下将单点激光转换成20条呈网状分布的激光线,这些激光扫描线分为五个方向,夹角为72°,每个方向有4条并行的激光线。 [0024] As a preferred embodiment, the laser rotary motor drive mechanism in the single-point laser 20 is converted into a laser line reticular distribution, these laser scanning line is divided into five directions, an angle of 72 °, each direction parallel laser line 4. 现有技术中激光器仅发出一条激光,在扫描时要求条码必须放置在该激光扫描的区域,否则无法检测,而采用激光旋转机构将激光转换中成多方向的多条激光线后,只要将条码放置在这些激光线扫描的范围内,任何一条激光线能够检测,即可识别出条码信息,扩大了条码放置的范围,使条码识读装置使用更方便,且速度和准确度更高。 After only a prior art laser emits a laser beam, required when scanning bar code must be placed in the region of the laser scanning, otherwise not be detected, and a plurality of laser line laser rotating mechanism to convert the laser light in multiple directions, as long as the bar code within the confines of these laser scanning lines, any of the laser line can be detected, the bar code information can be identified, expanding the range of the bar code is placed by the barcode reading apparatus easier to use, and greater speed and accuracy.

[0025] 所述判断条码信息是否完整的步骤具体如下:所述处理器内包括一个包含所有正确条码信息的标准库,所述标准库中的条码信息均按照每η个黑白条为一组进行分割,在比对时,当前读取的条码信息每η个黑白条为一组依次与标准库中信息进行比对,一旦二者不同,则认为此条码不完整,将该组条码位置记录下来,然后跳过若干个黑白条,继续以η个黑白条为一组依次与标准库中信息进行比对,直到所有条码信息比对完毕。 [0025] The step of determining whether the bar code information intact as follows: within the standard processor includes a library contains all of the correct bar code information, bar code information in the standard library are black and white bars at every η is a group dividing, when the comparison, the read bar code information of the current black and white bars each η is a set of standard library and sequentially comparing information, once they are different, this bar code is considered incomplete, the set position of the bar code recorded then skips a number of black and white bars, η continue to be black and white bars of a standard set of library sequence alignment information, bar code information until all have been compared.

[0026] 所述将条码信息进行整合重组的步骤具体如下:在两条扫描线得到的条码信息均进行解码后,将第一条扫描线标记的、条码信息错误的位置用第二条条码对应位置信息进行替换,从而得到完整的条码信息。 Step [0026] The integration of the bar code information reorganization follows: two scanning lines in the bar code information was obtained after decoding, the first scan line marking, bar code information corresponding to the error position by the second bar code Alternatively the location information to obtain the complete bar code information.

[0027] 所述条码信息具体是指与条码中各黑白条颜色相对应的一组脉冲信号以及每个黑条或白条的宽度。 [0027] The bar code information is the width of a particular set of barcodes each pulse signal corresponding to the colors of black and white strips and each of the black stripes or white bars.

[0028] 所述激光接收器是根据条码上不同颜色对激光的反射率不同来接收条码信息的,条码黑条部分反射率低,空白部分反射率高,从而能够较清楚的区别出条码的形状。 [0028] According to the laser receiver is receiving a different color on the bar code on the bar code information of the different reflectivities of the laser, a low reflection bar code black bar portion, a blank portion of high reflectivity, it is possible to distinguish more clearly the shape of the barcode .

[0029] 本发明与现有技术相比,具有如下优点和有益效果: [0029] Compared with the prior art the present invention has the following advantages and benefits:

[0030] 1、本发明中的方法可以在识别的条码信息不完整时,将各个扫描线所得到的条码信息整合重组,得到完整的条码扫描结果,针对打邹、破损及反光条码,能够实现快速解码,让用户感觉到流畅的条码阅读,提高收银等的作业效率。 [0030] 1, the method of the present invention may be the recognized barcode information is incomplete, the bar code information of each scan line of the obtained re-integration, to obtain the complete bar code scanning results, for playing Zou, breakage and reflective bar code, can be achieved fast decoding, allowing users to feel smooth bar code reading, improve the operating efficiency of the cash register.

[0031] 2、本发明中采取高速旋转电机(3600转/分钟),即激光线达到1200线/秒,当条码经过激光网线时,能够快速解码,提高收银速度,非常适合大型超市等对收银速度要求高的场合。 [0031] 2, the present invention taken in the high-speed rotary electric machine (3600 rev / min), i.e. the laser lines 1200 lines / sec, when the bar code laser-cable can be quickly decoded to improve silver speed, is ideal for large supermarkets and the like of silver high speed requirements of the occasion.

[0032] 3、本发明中提供了指示灯和喇叭声音两种方法,提示解码是否成功。 [0032] 3, the present invention provides two methods lights and horn sound, whether to prompt the decoding is successful. 这种特性非常适合于超市等噪杂的场合,收银员可以不受环境噪音影响,清晰便捷地判断条码是否读取成功。 This feature is ideal for noisy places such as supermarkets, cashiers can not influence the noise environment, clear and easily determine whether the bar code is read successfully.

[0033] 4、本发明中采用激光旋转机构,能够将单点激光转换成20条呈网状分布的激光线,在用户使用时,只要将条码放置在该网状区域内,即可进行扫描,相对于现有技术,扩大了条码放置的范围,使条码识读装置使用更方便,且速度和准确度更高。 [0033] 4, the present invention is employed in the laser rotary mechanism, it can be converted into a single-point laser 20 laser line reticular distribution, when the user uses, as long as the bar code is placed within the mesh region, can be scanned with respect to the prior art, to expand the range of the bar code placed by the barcode reading apparatus easier to use, and greater speed and accuracy.

附图说明 BRIEF DESCRIPTION

[0034] 图1是本发明装置的结构原理示意图; [0034] FIG. 1 is a diagram showing the schematic arrangement of apparatus of the present invention;

[0035] 图2是本发明方法的具体流程示意图; [0035] FIG 2 is a specific flow schematic diagram of the method of the present invention;

[0036] 图3是本发明方法的第一个示例图; [0036] FIG. 3 is a first example of a method of the present invention;

[0037] 图4是本发明方法的第二个示例图; [0037] FIG 4 is a second example of a method according to the present invention;

[0038] 图5是本发明中激光线扫描线扫描区域示意图。 [0038] FIG. 5 is a schematic view of a scanning region of the scanning line of the laser line in the present invention.

具体实施方式 Detailed ways

[0039] 下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。 [0039] and the following description in conjunction with the accompanying drawings of the embodiments of the present invention will be further detailed embodiment, the embodiment of the present invention is not limited thereto.

[0040] 实施例1 [0040] Example 1

[0041] 如图1所示,一种全向多线激光条码识读装置,包括处理器、DAC输出电路、电机控制电路、激光器、电机、激光旋转机构、激光接收器、前端信号调理电路、宽度米样电路、解码电路,处理器分别与DAC输出电路、电机控制电路、解码电路、通讯电路连接,DAC输出电路与激光器连接,电机控制电路与电机连接,电机驱动激光旋转机构旋转,激光接收器、前端信号调理电路、宽度采样电路、解码电路依次连接,工作时,激光旋转机构发射的激光扫描线照射在条码上,激光接收器接收条码上反射的信息。 [0041] As shown, a fully multi-line laser bar code reading apparatus, comprising a processor, the output of the DAC circuit, a motor control circuit, a laser, a motor, a laser rotating mechanism, the laser receiver, the front end signal conditioning circuit, m width sampling circuit, a decoding circuit, a processor circuit DAC output, respectively, the motor control circuit, a decoding circuit, connected to the communication circuit, and the laser DAC output circuit connected to the motor control circuit is connected with the motor, the motor rotating the rotary mechanism drives the laser, the laser receiver , a front-end signal conditioning circuits, the width of the sampling circuit, a decoding circuit connected in sequence, during operation, the laser rotary irradiating a laser scanning lines emitted mechanism on the bar code, the bar code laser receiver receives the information on the reflection. 其中:处理器,用于根据控制要求发出控制激光器发射、电机转动的控制信号,同时用于对获得的条码信息进行识别,并将识别信息结果通过通讯电路上传到上位机;DAC输出电路,用于根据处理器传送的激光器发射控制信号控制激光器发射;电机控制电路,用于根据处理器传送的电机转动控制信号控制电机转速;激光器,用于在DAC输出电路控制下将激光发射到激光旋转机构;电机,用于驱动激光旋转机构转动;激光旋转机构,在电机驱动下旋转,从而使激光器照射到该机构上的激光随着旋转,形成若干条激光线;激光接收器,用于在激光旋转机构产生的激光线照射到条码时,接收条码的激光信息,将此激光信号转换成电信号,然后将电信号传递到前端信号调理电路;前端信号调理电路,用于将接收到的电信号放大、整理为与条码对应的脉冲信号,输 Wherein: the processor, under the control requirements for emitting the laser emission control, a control signal to rotate the motor, while the bar code for identification information obtained, the identification information and upload the results to the host computer via the communication circuit; the DAC output circuit for the laser emitting in the processor transmits a control signal emitted by the laser; motor control circuit for rotating the motor speed control signal in accordance with the motor processor transmission; laser for controlling the output of the DAC circuit to the laser rotary laser emitting means ; a motor for driving the rotation of the laser rotary mechanism; laser rotary mechanism, at the rotary motor drive, so that the laser is irradiated onto the rotating means with a laser, laser beams form a plurality of lines; a laser receiver for rotating the laser when the laser line is irradiated to the bar code generating means, receiving the laser bar code information, converts this laser beam into an electrical signal, and then transmit electrical signals to the front-end signal conditioning circuit; front-end signal conditioning circuit, for amplifying the received electrical signal , organized into a pulse signal corresponding to the bar code, the output 到宽度采样电路;宽度采样电路,用于根据与条码对应的脉冲信号得到条码的宽度;解码电路,用于将采集并预处理后的信号进行解码,得到条码代表的条码信息。 The width of the sampling circuit; width of a sampling circuit for obtaining the bar code signal according to a pulse width corresponding to the bar code; decoding circuit for signal acquisition and decoding the pre-processed to obtain bar code information represented by the barcode.

[0042] 所述条码信息具体是指与条码中各黑白条颜色相对应的一组脉冲信号以及每个黑条或白条的宽度。 [0042] The bar code information is the width of a particular set of barcodes each pulse signal corresponding to the colors of black and white strips and each of the black stripes or white bars. 所述激光接收器是根据条码上不同颜色对激光的反射率不同来接收条码信息的,条码为“黑条”和“空白”相间,可简称为黑白条,条码黑条部分反射率低,空白部分反射率高,激光线扫描到“黑条”时,反射回得信号很弱,经过激光接收器和前端信号调理电路处理,“黑条”信号转换为与之相对应的高电平信号。 The laser receiver is based on the different colors of the bar code laser light reflectance different bar code information is received, the barcode is "black bars" and "blank" phase, may be referred to as black and white bars, the bar code portion of low reflectivity black stripes, white when the high reflectance portion, a laser scanning line to "black stripe", have very weak signal reflected back through the front end of the laser receiver and a signal conditioning circuit for processing, "black bars" high-level signal into a signal corresponding thereto. 同样道理,激光线扫描到“空白”信号时,得到与“空白”相对应的低电平信号。 Similarly, the laser scanning line to "blank" signal, to obtain the "blank" is relatively low-level signal. 这样就会得到与条码相对应的一组脉冲信号。 This will give a set of pulse signals corresponding to the bar code.

[0043] 条码信息中的宽度具体是通过下述步骤得到的:当发生电平转换时(例如遇到“黑条”,电平从低电平向高电平转换),处理器内部会启动定时计数器,以固定时间(如I微妙)向上累加计数,当再次发生电平转换时(例如“黑条”结束,遇到“空白”时,电平从高电平向低电平转换),得到的累加计数值即为条码的宽度。 [0043] The width of the specific bar code information is obtained by the following steps: when the level transition occurs (e.g. encounter the "black bars" level to the high level to the low level), the processor starts an internal timing counter, a fixed time (e.g. subtle I) accumulated counts up, when the level transition occurs again (e.g., when the "black bars" end, encounters "blank", transition from low level to high level), accumulating a count value obtained is the width of the bar code.

[0044] 本实施例中,处理器具体为单片机。 [0044] In this embodiment, the processor is a microcontroller specifically. 激光旋转机构具体是光学棱镜。 Laser particular optical prism rotation mechanism. 采用这种棱镜能够将原来激光器发射的单点激光转换成网状的多条激光扫描线。 With this prism can convert the original single point laser emitted by the laser into a plurality of mesh laser scan lines. 如图5所示,激光旋转机构在电机驱动下将单点激光转换成20条呈网状分布的激光线,这些激光扫描线分为五个方向,夹角为72°,每个方向有4条并行的激光线。 As shown, the laser rotary motor drive mechanism in the single-point laser 20 to convert the laser line 5 reticular distribution, these laser scanning line is divided into five directions, an angle of 72 °, in each direction 4 Article parallel laser line. 现有技术中激光器仅发出一条激光,在扫描时要求条码必须放置在该激光扫描的区域,否则无法检测,而采用激光旋转机构将激光转换中成多方向的多条激光线后,只要将条码放置在这些激光线扫描的范围内,任何一条激光线能够检测,即可识别出条码信息,扩大了条码放置的范围,使条码识读装置使用更方便,且速度和准确度更高。 After only a prior art laser emits a laser beam, required when scanning bar code must be placed in the region of the laser scanning, otherwise not be detected, and a plurality of laser line laser rotating mechanism to convert the laser light in multiple directions, as long as the bar code within the confines of these laser scanning lines, any of the laser line can be detected, the bar code information can be identified, expanding the range of the bar code is placed by the barcode reading apparatus easier to use, and greater speed and accuracy.

[0045] 本实施例中,所述处理器还连接一个喇叭和一个指示灯,处理器根据解码电路得到的信息控制喇叭和指示灯发出提示音和不同颜色的灯光。 [0045] In this embodiment, the processor is further connected to a horn and a lamp, the processor emit different colors tones and lights obtained in accordance with the control information decoding circuit horn and lights. 采用这种结构非常适合于超市等噪杂的场合,收银员可以不受环境噪音影响,清晰便捷地判断条码是否读取成功。 This structure is well suited for noisy places such as supermarkets, cashiers can not influence the noise environment, clear and easily determine whether the bar code is read successfully.

[0046] 如图2所示,一种基于上述装置的全向多线激光条码识读方法,步骤为:处理器将激光器发射控制信号和电机转动控制信号分别发送到激光器和电机,激光器将激光发射到激光旋转机构上,电机带动激光旋转机构旋转,激光旋转机构将单点激光转换成若干条激光扫描线,工作时,将条码放置于该激光扫描区域内,激光接收器采集该条码的反射信息,通过放大、采样、解码,将得到的条码信息传递到处理器,处理器判断该条码信息是否完整,如果完整,则直接将条码信息发送到上位机;如果不完整,则再读取另一条扫描线所得到的条码信息,然后将前后两组信息进行整合重组,得到完整的条码扫描结果,然后将该条码信息发送到上位机。 [0046] 2 An apparatus based on the omni-directional multi-line laser bar code reading method, the steps of: a laser emission control signal processor and a motor rotation control signal to the motor and the laser, the laser of the laser, respectively transmitted to the laser rotary mechanism, motor driven rotary laser rotating mechanism, the laser rotary mechanism single point of laser light into a plurality of laser beams scan line, at work, the bar code is placed inside the laser scanning region, the laser receiver collecting reflected the barcode information, by amplifying, sampling, decodes the obtained barcode information to the processor, the processor determines whether the bar code information is complete, if complete, the bar code information will be sent directly to the host computer; if not complete, then the read another bar code information obtained by one scanning line, then the two sets of information before and after integration and restructuring, obtained complete bar code scanning result, and then transmits the bar code information to the host computer.

[0047] 所述判断条码信息是否完整的步骤具体如下:所述处理器内包括一个包含所有正确条码信息的标准库,所述标准库中的条码信息均按照每η个黑白条为一组进行分割,在比对时,当前读取的条码信息每η个黑白条为一组依次与标准库中信息进行比对,一旦二者不同,则认为此条码不完整,将该组条码位置记录下来,然后跳过若干个黑白条,继续以η个黑白条为一组依次与标准库中信息进行比对,直到所有条码信息比对完毕。 [0047] The step of determining whether the bar code information intact as follows: within the standard processor includes a library contains all of the correct bar code information, bar code information in the standard library are black and white bars at every η is a group dividing, when the comparison, the read bar code information of the current black and white bars each η is a set of standard library and sequentially comparing information, once they are different, this bar code is considered incomplete, the set position of the bar code recorded then skips a number of black and white bars, η continue to be black and white bars of a standard set of library sequence alignment information, bar code information until all have been compared.

[0048] 所述将条码信息进行整合重组的步骤具体如下:在两条扫描线得到的条码信息均进行解码后,将第一条扫描线标记的、条码信息错误的位置用第二条条码对应位置信息进行替换,从而得到完整的条码信息。 Step [0048] The integration of the bar code information reorganization follows: two scanning lines in the bar code information was obtained after decoding, the first scan line marking, bar code information corresponding to the error position by the second bar code Alternatively the location information to obtain the complete bar code information.

[0049] 结合图2-4,将本发明中的识读方法详述如下:图3左边的条码为完整条码,右边的条码为破损条码,标准条码的黑白条个数固定,开始识读后,通过处理器打开激光器,然后控制电机旋转,激光旋转机构将激光转换成网状的激光线,一旦激光接收器检测到有条码信号输入,则开始解码,本实施例中以4个黑白条为I组,简称为I位解码,整个条码的总位数为N位,依次将每位条码信息与标准库中的信息做比对,如果相匹配则继续解码直到完成整个条码的解码,如果整个条码都匹配,则输出解码成功的结果。 Figure 3 is a complete bar code on the left bar code, the bar code is damaged bar code on the right, the number of black and white bar code fixed criterion, starts reading: [0049] Figures 2-4 in conjunction with the reading method of the present invention described in detail below , opened by the laser processor, and controls the motor rotation, the laser rotary mechanism of converting laser light into a laser line mesh, once the receiver detects the laser bar code signal is input, decoding is started, the present embodiment is a black and white striped to 4 group I, referred to as I bit decode, the total number of bits for the entire N bits of bar code, bar code information for each sequence information in the standard library than to do, if the match is continued until the decoding decode the entire barcode, if the entire barcode match, successfully decoded result is output. 如果在第X(a)位解码失败,则保留当前X(a)位解码结果,然后跳过两条条码,对剩下的X(b) = (NlX(a))位条码信息继续解码,直到全部解码完成。 If the failure of X (a) decoding position, the retention of the current X (a) bit decoding result, and skip the two barcodes, the remaining X (b) = (NlX (a)) continues to decode the bar code information bits, until all decoded. 然后读取下一条激光线的条码信息,按照上述解码过程,直到第Y(a)位解码失败,保留当前Y (a)位解码结果,然后判断X(b)+Y(a)是否大于等于整个条码的总位数N,如果是,则说明当前破损的形式为图4所示的形式,则不用再对第二个条码Y(a)位后的信息进行解码,可直接将第二条激光线的Y(a)位信息作为第一部分结果,把第一条激光线中X(b)位中的(NY(a))位作为第二部分结果,从而得到完整的条码信息,对外输出识读结果。 Then reads the bar code information at a laser line, according to the above decoding process, the decoded position until Y (a) fails to keep the current Y (a) bit decoding result, and then determine X (b) + Y (a) is greater than equal to entire barcode total number of bits N, and if so, then the current break in the form of the form shown in FIG. 4, the information is no longer the second barcode Y (a) decoding a bit, the second direct Y (a) position information of the laser line as a result of the first portion, the first laser line X (b) bits (NY (a)) bits as a result of a second part, to give a complete bar code information, external output read the result. 如果X(b)+Y(a)小余整个条码的总位数N,则说明当前破损的形式为图3所示的形式,则需要对第二条激光线得到的条码信息继续进行解码,从Y(a)为跳过两条条码,然后对剩下的Y(b) = (NlY(a))位条码信息继续解码,直到全部解码完成。 If X (b) + Y (a) the total number of bits less than the entire bar code N, then the current break in the form of the form shown in FIG. 3, bar code information is required for the second laser line was continuously decodes from Y (a) skip two bar code, then the remaining Y (b) = (NlY (a)) continues to decode the bar code information bits, until all decoded. 然后将第一条激光线的X(a)位作为第一部分结果,将第二条激光线中Y(b)位中的(NX(a))位作为第二部分结果,从而得到完整的条码信息,对外输出识读结果。 Then the first laser line X (a) a first portion of bits as a result, the (NX (a)) bits as a result of a second portion of the second laser lines Y (b) bits, resulting in complete bar information, external output reading results.

[0050] 上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。 [0050] The preferred embodiment of the present invention embodiment, but the embodiment of the present invention is not limited to the above embodiments, changes made to any other without departing from the spirit and principle of the present invention, modifications, substitutions , combined, simplified, should be equivalent replacement method, it is included within the scope of the present invention.

Claims (9)

1.一种全向多线激光条码识读装置,其特征在于,包括: 处理器,用于根据控制要求发出控制激光器发射、电机转动的控制信号,同时用于对获得的条码信息进行识别,并将识别信息结果通过通讯电路上传到上位机; DAC输出电路,用于根据处理器传送的激光器发射控制信号控制激光器发射; 电机控制电路,用于根据处理器传送的电机转动控制信号控制电机转速; 激光器,用于在DAC输出电路控制下将激光发射到激光旋转机构; 电机,用于驱动激光旋转机构转动; 激光旋转机构,用于在电机驱动下旋转,从而使激光器照射到该机构上的激光随着旋转,形成20条呈网状分布的激光线,这些激光扫描线分为五个方向,夹角为72°,每个方向有4条并行的激光线; 激光接收器,用于在激光旋转机构产生的激光线照射到条码时,接收条码的激光信息,将此激光 An omni-directional multi-line laser bar code reading apparatus comprising: a processor for issuing a control according to the control requirements of the laser emission, the rotation of the motor control signal, while the bar code for identifying the obtained information, identification information and upload the results to the host computer via the communication circuit; the DAC output circuit for transmitting a control signal in accordance with a laser emitting a laser transfer processor; motor control circuit for rotating the motor speed control signal transmitted in accordance with the motor processor ; laser control circuit for the DAC output to the laser rotary laser emitting means; a motor for driving the rotation of the laser rotary mechanism; laser rotary mechanism for rotating the drive motor in such that laser is irradiated onto the mechanism with the rotation of the laser, forming a laser line 20 reticular distribution, these laser scanning line is divided into five directions, an angle of 72 °, in each direction of the four parallel laser lines; a laser receiver for when the laser line generated by the laser rotary irradiating mechanism to the bar code, the bar code information received laser, this laser 号转换成电信号,然后将电信号传递到前端信号调理电路; 前端信号调理电路,用于将接收到的电信号放大、整理为与条码对应的脉冲信号,输出到宽度采样电路; 宽度采样电路,用于根据与条码对应的脉冲信号得到条码的宽度; 解码电路,用于将采集并预处理后的信号进行解码,得到条码代表的条码信息; 上述处理器分别与DAC输出电路、电机控制电路、解码电路、通讯电路连接,DAC输出电路与激光器连接,电机控制电路与电机连接,电机驱动激光旋转机构旋转,激光接收器、前端信号调理电路、宽度采样电路、解码电路依次连接,工作时,激光旋转机构发射的激光扫描线照射在条码上,激光接收器接收条码上反射的信息。 No. converted into an electrical signal, and then transmit electrical signals to the front-end signal conditioning circuit; front-end signal conditioning circuit, for amplifying the received electrical signal, organized into a pulse signal corresponding to the bar code, the width of the sampling circuit to the output; the width of a sampling circuit for obtaining the width of the bar code with the bar code corresponding to the pulse signal; a signal decoding circuit for the acquisition and pre-decodes the barcode to obtain information represented by the bar code; said processor circuit DAC output, respectively, the motor control circuit , the decoding circuit, the communication circuit connected to the DAC output circuit and the laser is connected to the motor control circuit is connected with the motor, the rotary electric machine drives the laser rotating mechanism, the laser receiver, the front end signal conditioning circuits, the width of the sampling circuit, a decoding circuit connected in sequence, during operation, laser scanning lines emitted irradiating laser rotating mechanism on the bar code, the bar code laser receiver receives the information on the reflection.
2.根据权利要求1所述的全向多线激光条码识读装置,其特征在于,所述处理器具体为单片机。 According to claim omni-directional multi-line laser bar code reading device of claim 1 wherein the processor is a microcontroller specifically.
3.根据权利要求1所述的全向多线激光条码识读装置,其特征在于,所述激光旋转机构具体是指光学棱镜。 3. The omni-directional multi-line laser bar code reading apparatus, wherein according to claim 1, said laser rotary mechanism specifically refers optical prism.
4.根据权利要求1所述的全向多线激光条码识读装置,其特征在于,所述处理器还连接一个喇叭。 4. The omni-directional multi-line laser bar code reading apparatus, wherein according to claim 1, said processor further connected to a speaker.
5.根据权利要求1所述的全向多线激光条码识读装置,其特征在于,所述处理器还连接一指示灯。 According to claim omni-directional multi-line laser bar code reading device of claim 1 wherein the processor is further connected to an indicator light.
6.一种基于权利要求1-5任一项所述的全向多线激光条码识读装置的全向多线激光条码识读方法,其特征在于,处理器将激光器发射控制信号和电机转动控制信号分别发送到激光器和电机,激光器将激光发射到激光旋转机构上,电机带动激光旋转机构旋转,激光旋转机构将单点激光转换成若干条激光扫描线,工作时,将条码放置于该激光扫描区域内,激光接收器采集该条码的反射信息,通过放大、采样、解码,将得到的条码信息传递到处理器,处理器判断该条码信息是否完整,如果完整,则直接将条码信息发送到上位机;如果不完整,则再读取另一条扫描线所得到的条码信息,然后将前后两组信息进行整合重组,得到完整的条码扫描结果,然后将该条码信息发送到上位机; 所述激光旋转机构在电机驱动下将单点激光转换成20条呈网状分布的激光线, A method based on the full reading of any of claims 1-5 of the full multi-line laser bar code reading apparatus according to the multi-line laser bar code claim, wherein the laser emission control signals to the processor and rotation of the motor control signals are transmitted to the laser and the motor, the laser will laser emission to the laser rotary mechanism, the motor drives the laser rotation mechanism, the laser rotary mechanism single point of laser light into a plurality of laser beams scan line, at work, the bar code is placed in the laser the scanning area, the reflected laser receiver information of the bar code acquired by amplifying, sampling, decodes the obtained barcode information to the processor, the processor determines whether the bar code information is complete, if complete, the bar code information will be sent directly to the PC; if not complete, then read the bar code information obtained by another scanning line, and then to integrate two sets of information before and after recombination, the obtained complete bar code scanning result, and then transmits the bar code information to the host computer; the a laser rotary motor drive mechanism in the single-point laser 20 is converted into a laser line reticular distribution, 些激光扫描线分为五个方向,夹角为72 °,每个方向有4条并行的激光线。 These laser scanning line is divided into five directions, an angle of 72 °, in each direction of the four parallel laser line.
7.根据权利要求6所述的全向多线激光条码识读方法,其特征在于,所述判断条码信息是否完整的步骤具体如下:所述处理器内包括一个包含所有正确条码信息的标准库,所述标准库中的条码信息均按照每η个黑白条为一组进行分割,在比对时,当前读取的条码信息每η个黑白条为一组依次与标准库中信息进行比对,一旦二者不同,则认为此条码不完整,将该组条码位置记录下来,然后跳过若干个黑白条,继续以η个黑白条为一组依次与标准库中信息进行比对,直到所有条码信息比对完毕。 7. The omni-directional multi-line laser bar code reading method, wherein according to claim 6, said determining step is complete bar code information as follows: within the standard processor includes a library contains all of the correct bar code information , bar code information of the standard library are divided into a set of black and white bars at every η, when the comparison, each of the read bar code information of the current black and white bars η is a standard set of library information sequentially for comparison Once the two different, this is considered incomplete bar code, the bar code location record set, then skip the number of black and white bars, η continue to be black and white bars of a standard set of library information sequentially for comparison until all bar code information is complete comparison.
8.根据权利要求6所述的全向多线激光条码识读方法,其特征在于,所述将条码信息进行整合重组的步骤具体如下:在两条扫描线得到的条码信息均进行解码后,将第一条扫描线标记的、条码信息错误的位置用第二条条码对应位置信息进行替换,从而得到完整的条码息。 According to claim 6 in full, characterized in that the multi-line laser bar code, said bar code information integration and restructuring steps are as follows: two scanning lines in the bar code information was obtained after decoding, the first scan line marking, bar code information corresponding to the error position information is replaced with the position the second bar code, the bar code to obtain the full information.
9.根据权利要求6所述的全向多线激光条码识读方法,其特征在于,所述条码信息具体是指与条码中各黑白条颜色相对应的一组脉冲信号以及每个黑条或白条的宽度。 According to claim 6 omni-directional multi-line laser bar code reading method, wherein said bar code information and particularly refers to a set of barcodes each pulse signal corresponding to the colors of black and white bars and black bars or each the width of the white bar.
CN 201210005080 2012-01-10 2012-01-10 Omnidirectional multiple line laser bar code reading device and method thereof CN102629312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210005080 CN102629312B (en) 2012-01-10 2012-01-10 Omnidirectional multiple line laser bar code reading device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210005080 CN102629312B (en) 2012-01-10 2012-01-10 Omnidirectional multiple line laser bar code reading device and method thereof

Publications (2)

Publication Number Publication Date
CN102629312A CN102629312A (en) 2012-08-08
CN102629312B true CN102629312B (en) 2014-08-13

Family

ID=46587570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210005080 CN102629312B (en) 2012-01-10 2012-01-10 Omnidirectional multiple line laser bar code reading device and method thereof

Country Status (1)

Country Link
CN (1) CN102629312B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646231B (en) * 2013-12-04 2016-05-18 中国电子科技集团公司第五十研究所 Two-dimensional optical scanner machine
CN103761501A (en) * 2014-02-18 2014-04-30 苏州德沃智能系统有限公司 Laser bar code scanning apparatus
CN104182710B (en) * 2014-08-21 2017-02-15 深圳市兴通物联科技有限公司 Energy saving methods and laser bar code scanning platform
CN106650862B (en) * 2015-11-04 2019-06-28 光宝电子(广州)有限公司 Structure, coding/decoding method and the decoding apparatus of bar code
CN105975888A (en) * 2016-05-04 2016-09-28 上海皇和信息科技有限公司 Method of decoding defective one-dimensional barcode
CN106203231B (en) * 2016-07-12 2018-11-23 福建惠联众网络科技有限公司 Voucher cloud printing system that supports active reading print
CN106446751A (en) * 2016-10-11 2017-02-22 福建中金在线信息科技有限公司 Bar code recognition method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1213088A (en) 1997-09-30 1999-04-07 富士通株式会社 Optical scanning apparatus
CN201946011U (en) 2010-12-30 2011-08-24 深圳市民德电子科技有限公司 Reader for one-dimensional bar code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8251291B2 (en) * 2009-04-01 2012-08-28 Honeywell International Inc. Rotational bar code orientation sensor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1213088A (en) 1997-09-30 1999-04-07 富士通株式会社 Optical scanning apparatus
CN201946011U (en) 2010-12-30 2011-08-24 深圳市民德电子科技有限公司 Reader for one-dimensional bar code

Also Published As

Publication number Publication date
CN102629312A (en) 2012-08-08

Similar Documents

Publication Publication Date Title
US9245219B2 (en) Apparatus for displaying bar codes from light emitting display surfaces
US7398927B2 (en) Data reader and methods for imaging targets subject to specular reflection
US5572006A (en) Automatic exposure single frame imaging systems
US8596542B2 (en) Apparatus operative for capture of image data
US7331523B2 (en) Adaptive optical image reader
US5361158A (en) Multiple source optical scanner
US9047098B2 (en) Method of programming the default cable interface software in an indicia reading device
US5914476A (en) Optical reader configured to accurately and rapidly read multiple symbols
CA2288758C (en) Optical scanner and image reader for reading images and decoding optical information including one and two dimensional symbologies at variable depth of field
CN102842023B (en) Hybrid dual laser scanning and imaging optical system
US9251392B2 (en) Indicia reading apparatus
CN101031930B (en) Scanner and method for eliminating specular reflection
US5019699A (en) Hand-held optical character reader with means for instantaneously reading information from a predetermined area at an optical sensing area
US6889903B1 (en) Method and apparatus for optically reading information
US20150242671A1 (en) Method and apparatus for reading optical indicia using a plurality of data sources
JP3602863B2 (en) Electronic optical reader
US6637658B2 (en) Optical reader having partial frame operating mode
EP1119867B1 (en) Symbology imaging and reading apparatus and method
US5532467A (en) Optical scanning head
EP2463804B1 (en) System for reading visible and/or invisible code symbols in a user-transparent manner using visible/invisible illumination source switching during data capture and processing operations
US4500776A (en) Method and apparatus for remotely reading and decoding bar codes
CN104395911B (en) Related to the dynamic range, scan angle control to provide control of the length of the laser scan line is projected on to the object being scanned laser scan code symbol reading system
US7984855B2 (en) Indicia reading apparatus having image sensing and processing circuit
US6681994B1 (en) Method and apparatus for optically reading information
US5646390A (en) Dataform readers and methods

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
COR Bibliographic change or correction in the description

Free format text: CORRECT: INVENTOR; FROM: ZHANG YONGJUN HE CHANGYIN TO: ZHANG YONGJUN HE CHANGYIN ZHANG GUOJUN CHEN XIONGQUN

C53 Change or modification
C14 Granted