CN101882201B - Barcode decoding chip and method - Google Patents

Barcode decoding chip and method Download PDF

Info

Publication number
CN101882201B
CN101882201B CN 201010188793 CN201010188793A CN101882201B CN 101882201 B CN101882201 B CN 101882201B CN 201010188793 CN201010188793 CN 201010188793 CN 201010188793 A CN201010188793 A CN 201010188793A CN 101882201 B CN101882201 B CN 101882201B
Authority
CN
China
Prior art keywords
barcode
bar code
rss
module
image
Prior art date
Application number
CN 201010188793
Other languages
Chinese (zh)
Other versions
CN101882201A (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 201010188793 priority Critical patent/CN101882201B/en
Publication of CN101882201A publication Critical patent/CN101882201A/en
Application granted granted Critical
Publication of CN101882201B publication Critical patent/CN101882201B/en

Links

Abstract

The invention discloses a barcode decoding chip and a barcode decoding method. The barcode decoding chip comprises a PDF417 barcode edge judgment module which is used for scanning barcode image and judging if the barcode edge has a PDF417 barcode edge; a PDF417 identification module which is used for performing PDF417 barcode identification of a barcode image when the PDF417 barcode edge judgmentmodule determines the barcode image has the PDF417 barcode edge; an RSS barcode characteristic judgment module which is used for extracting bar null value and judging if the barcode image has the searching characteristic of an RSS barcode when the PDF417 barcode edge judgment module determines the barcode image has no PDF417 barcode edge; and an RSS identification module which is used for performing RSS barcode identification of the barcode image when the RSS barcode characteristic judgment module determines the barcode image has the searching characteristic of the RSS barcode. The barcode decoding chip of the invention can realize the identification of various barcode and has the advantages of convenient use, high decoding speed and low cost.

Description

一种条码解码芯片及方法【技术领域】[0001] 本发明涉及一种解码芯片及方法,特别涉及一种能够识别多种条码的条码解码芯片及方法。 The method of decoding the bar code and chip TECHNICAL FIELD [0001] The present invention relates to a method and a decoder chip, and particularly relates to a method for identifying a variety of chip and barcode decoding barcodes. 【背景技术】[0002] 条码技术是在计算机技术与信息技术基础上发展起来的一门集编码、印刷、识别、 数据采集和处理于一身的新兴技术。 BACKGROUND OF THE INVENTION [0002] Bar code technology is developed in computer technology and information technology on the basis of a set of coding, new printing technology, identification, data acquisition and processing in one. 条码技术由于其识别快速、准确、可靠以及成本低等优点,被广泛应用于商业、图书管理、仓储、邮电、交通和工业控制等领域,并且势必在逐渐兴起的“物联网”应用中发挥重大的作用。 Bar code technology to identify because of its fast, accurate, reliable and low cost, is widely used in commercial, library management, warehousing, telecommunications, transportation, and industrial control and other fields, and is bound to gradually rise of the "Internet of Things" applications play a major role. [0003] 目前被广泛使用的条码包括一维条码及二维条码。 [0003] is widely used bar code includes a dimensional bar code and two-dimensional bar. 一维条码又称线形条码,是由平行排列的多个“条”和“空”单元组成,条形码信息靠条和空的不同宽度和位置来表达。 Also known as one-dimensional bar linear bar code, are arranged in parallel a plurality of "strips" and "empty" units, the information on the barcode bars and spaces of various widths and positions expressed. 一维条码只是在一个方向(一般是水平方向)表达信息,而在垂直方向则不表达任何信息,因此信息容量及空间利用率较低,并且在条码损坏后即无法识别。 One-dimensional bar code only in one direction (usually the horizontal direction) expressing information, any information in the vertical direction is not expressed, and therefore the information capacity and low utilization of space, and can not recognize the barcode after damage. [0004] 二维条码是由按一定规律在二维方向上分布的黑白相间的特定几何图形组成,其可以在二维方向上表达信息,因此信息容量及空间利用率较高,并具有一定的校验功能。 [0004] The two-dimensional bar code is a particular geometric black and white according to certain rules in the direction of the two-dimensional distribution of the composition which may be expressed in two-dimensional direction information, the information capacity and high space utilization, and has a certain check function. 二维条码可以分为堆叠式二维条码和矩阵式二维条码。 Dimensional bar code can be divided into two-dimensional bar code and stacked matrix-dimensional bar code. 堆叠式二维条码是由多行短截的一维条码堆叠而成,代表性的堆叠式二维条码包括PDF417、Code 49、Code 16K等。 Stacked dimensional bar code is a multi-line stub by stacking dimensional bar code, a two-dimensional bar code representative stacked comprises PDF417, Code 49, Code 16K, etc. [0005] 通常来说,现有的解码芯片都是针对一种条码进行解码,比如一维条码解码芯片、 RSS条码解码芯片、PDF417条码解码芯片等。 [0005] Generally speaking, a conventional decoder for decoding chips are directed to a bar code, such as one-dimensional bar code decoding chip, RSS bar code decoding chip, PDF417 barcode decoding chip. 而这三种条码却十分常用,有时需要对这三种条码进行解码,则需要轮流使用三种解码芯片,不够便捷,解码速度慢,并且成本高。 The three bar code is very common, and sometimes need to be decoded, the need to use three turns decoder chip, not convenient, the decoding slow these three bar code, and costly. [0006] 因此,针对现有技术存在的以上不足,亟需提供一种能够实现对多种条码的识别, 并且使用方便、解码速度更快、成本更低的解码芯片及方法。 [0006] Thus, for the above disadvantages of the prior art, need to provide a variety of bar code enables identification of, and ease of use, faster decoding speed, and lower cost method of decoding chip. 【发明内容】[0007] 为了解决以上问题,本发明提供了一种能够实现多种条码的识别,并且使用方便、 解码速度更快、成本更低的条码解码芯片及方法。 SUMMARY OF THE INVENTION [0007] In order to solve the above problem, the present invention provides a variety of bar code identification can be achieved, and easy to use, faster decoding speed, lower cost methods and barcode decoding chip. [0008] 本发明公开了一种条码解码芯片,包括:用于对条码图像进行扫描并判断条码图像是否存在PDF417条码边界的PDF417条码边界判断模块;用于在PDF417条码边界判断模块判断出条码图像存在PDF417条码边界时对条码图像进行PDF417条码识别的PDF417识别模块;用于在PDF417条码边界判断模块判断出条码图像不存在PDF417条码边界时对条码图像进行条空值提取,并判断条码图像是否存在RSS条码的搜索特征的RSS条码特征判断模块;用于在RSS条码特征判断模块判断出条码图像存在RSS条码的搜索特征时对条码图像进行RSS条码识别的RSS识别模块;用于在RSS条码特征判断模块判断条码图像不存在RSS条码的搜索特征或RSS识别模块识别失败时对条码图像进行一维条码识别的一维条码识别模块;用于输出PDF417识别模块、RSS识别模块或一维条码识别模块识别成功时所得到的码字信息 [0008] The present invention discloses a barcode decoding chip, comprising: means for scanning the barcode image and determines whether the barcode PDF417 barcode image has a boundary edge determination module PDF417 barcode; PDF417 bar code boundary for determining module determines that the barcode image PDF417 barcode image PDF417 barcode recognition in the presence of a boundary PDF417 barcode identification module; for the barcode image extraction article null value when the PDF417 barcode boundary determining module determines that the bar code PDF417 barcode image boundary does not exist, and judges whether the bar code image is present the RSS bar code search feature RSS barcode feature determining module; for RSS barcode feature determining module determines RSS bar code image recognition module for RSS bar code recognition in the presence of the barcode search feature RSS bar code image; means for determining characteristic RSS barcode Analyzing module absence RSS barcode image search feature or RSS barcode recognition module recognizes the barcode image fails to one-dimensional bar code identification module to identify the one-dimensional bar; recognition module for outputting PDF417, RSS recognition module or one-dimensional bar recognition module recognizes codeword information obtained success 或PDF417识别模块或一维条码识别模块识别失败时所得到的译码失败信息的输出模块。 Or PDF417 dimensional bar code recognition module or a failure recognition module recognizes the resulting output module fails to decode the information. [0009] 根据本发明一优选实施例,RSS识别模块包括:用于对条码图像的条码片段进行组合的RSS条码图像处理模块;用于判断条码片段组合是否符合RSS条码组合规则的RSS 条码判断模块;用于对符合RSS条码组合规则的条码片段组合进行识别的RSS条码译码模块。 [0009] According to a preferred embodiment of the present invention, RSS identification module comprising: an image processing module for RSS barcode bar code segment of the barcode image are combined; RSS bar code for bar code segment determining module determines whether the combination of the RSS bar code combination rule ; fragment for combination complies with RSS bar code of the bar code for identifying the combination rule RSS bar code decoding module. [0010] 根据本发明一优选实施例,RSS识别模块中进一步包括与RSS条码译码模块连接的计数器,用于记录RSS条码译码模块识别失败的次数,当计数器的计数值未到达预设值时,计数器控制RSS条码图像处理模块重新对条码图像的条码片段进行组合,当计数器的计数值达到预设值时,则判定识别失败,并将计数值清零。 [0010] According to a preferred embodiment of the present invention, RSS identification module further comprises a counter connected to the RSS bar code decoding module for recording the number of RSS bar code decoding module identifying the failure, when the count value of the counter does not reach the predetermined value when, the counter control RSS barcode image processing module to re-segment the barcode the barcode image are combined, when the count value of the counter reaches a preset value, it is determined that the failure to identify and count is cleared. [0011] 根据本发明一优选实施例,PDF417条码边界判断模块包括:[0012] 扫描模块,用于对条码图像进行扫描并判断条码图像是否存在多个条空边界;[0013] 计数器,与扫描模块连接,用于记录扫描模块的扫描次数,并控制扫描模块变换扫描方向或获取新的条码图像进行扫描,当计数器控制扫描模块获取新的条码图像进行扫描时,计数器内的记录的次数清零;[0014] 至少两个边界判断单元,用于分别利用不同的边界判断规则来对扫描到的多个条空边界进行并行边界判断。 [0011] According to a preferred embodiment of the present invention, PDF417 bar code boundary determination module comprises: [0012] scanning module configured to scan the barcode image and determines whether a plurality of bar-space barcode image boundary is present; [0013] counters, and scan module is connected, the number of scans for recording the scanning module, and controls the scan conversion module scan direction or acquire a new barcode image scanning, the scanning module when the counter control to obtain a new barcode image is scanned, the number of records in the counter is cleared ; [0014] at least two boundary determination unit for respectively using different boundary parallel to the boundary determination rule determining a plurality of bar-space to the boundary scan. [0015] 根据本发明一优选实施例,一维条码识别模块通过RSS条码特征判断模块提取的条空值判断条码类型,并根据条码类型进行识别。 [0015] According to a preferred embodiment of the present invention, one-dimensional bar code recognition module determines null section bar code type determining module features extracted by the RSS bar code, and identified according to the barcode type. [0016] 根据本发明一优选实施例,一维条码识别模块内包括多个对应不同类型的一维条码的识别逻辑,对条码图像进行并行识别。 [0016] According to a preferred embodiment of the present invention, one-dimensional bar code recognition module includes a recognition logic corresponding to a plurality of different types of one-dimensional bar code, the bar code image recognition parallel. [0017] 根据本发明一优选实施例,在RSS条码特征判断模块对条码图像提取条空值时, 多次提取条码图像的条空值,并统计各条空位置中条空值的出现次数,选择各条空位置的出现次数最多的条空值,形成一组条空值。 [0017] According to a preferred embodiment of the present invention, wherein determining when the barcode module extracts RSS article null bar code image, extracting multiple nulls article barcode image, and counting the number of occurrences of the strip pieces null null position, selecting the most number of occurrences of nulls bar pieces empty position, forming a set of null values. [0018] 本发明进一步公开了一种条码解码方法,该方法包括:a.对条码图像进行扫描, 并判断条码图像是否存在PDF417条码边界;b.若条码图像存在PDF417条码边界,则对条码图像进行PDF417条码识别;c.若条码图像不存在PDF417条码边界,则对条码图像进行条空值提取,并判断是否存在RSS条码的搜索特征;d.若条码图像存在RSS条码的搜索特征,则对条码图像进行RSS条码识别;e.对步骤c中判断出的不存在RSS条码的搜索特征的条码图像或步骤d中未识别成功的条码图像进行一维条码识别;f.输出步骤b、d、e识别成功时所得到的码字信息或步骤b、e识别失败时所得到的译码失败信息。 [0018] The present invention further discloses a method for decoding bar code, the method comprising:.. A scanned image of the bar code, and determines whether the barcode PDF417 barcode image boundary exists; if B barcode PDF417 barcode image boundary is present, the bar code image for PDF417 barcode recognition;. c if the barcode image PDF417 bar code boundary does not exist on the barcode image strip null extracted, and determines the search features are present RSS bar code;. d if the bar code image exists in the search feature RSS bar code, then the the barcode image RSS barcode recognition;. e step c, it is determined that the search feature RSS bar code is not present barcode image or step (d) is not successful identification bar code image is one-dimensional bar code recognition;. f output step b, d, when e recognition success information or the code word obtained in step b, e recognition failure when the failure information obtained by decoding. [0019] 根据本发明一优选实施例,在步骤c中,多次提取条码图像的条空值,并统计各条空位置中条空值的出现次数,选择各条空位置的出现次数最多的条空值,形成一组条空值。 [0019] According to a preferred embodiment of the present invention, in step c, extracted several times null article barcode image, and counting the number of occurrences of nulls strip pieces empty position occurs most often selected pieces of empty positions Article null, null values ​​form a set. [0020] 本发明的特点在于,该条码解码芯片与方法能够实现对多种条码的识别,并且使用方便、解码速度更快、成本更低。 [0020] The feature of the invention is that the barcode decoding chip and the method enables the identification of various barcode, and easy to use, faster decoding speed, lower cost. [0021]【附图说明】[0022] 图1是本发明一实施例中的条码解码芯片的电路连接框图。 [0021] BRIEF DESCRIPTION [0022] FIG. 1 is a block diagram showing a connection circuit in a barcode decoding chip embodiment of the present invention. [0023] 图2是图1的实施例中的PDF417条码边界判断模块的电路连接框图。 [0023] FIG. 2 is a circuit connection diagram of the embodiment of Figure 1 in determining the boundary PDF417 barcode module. [0024] 图3是一种RSS条码的示意图。 [0024] FIG. 3 is a schematic diagram of a RSS bar code. [0025] 图4是一种RSS条码结构中的搜索特征的组合形式。 [0025] FIG. 4 is a combination of a RSS bar code search feature structure. [0026] 图5是本发明一实施例中的条码解码方法的流程图。 [0026] FIG. 5 is a flowchart barcode decoding method according to an embodiment of the present invention. [0027]【具体实施方式】[0028] 下面结合附图和实施例对本发明进行详细说明。 Drawings and embodiments of the present invention will be described in detail [0027] DETAILED DESCRIPTION OF THE INVENTION [0028] The following binding. [0029] 如图1所示,在本实施例中,条码解码芯片包括PDF417条码边界判断模块02、 PDF417识别模块03、RSS条码特征判断模块04、RSS条码识别模块06、一维条码识别模块05与输出模块07。 [0029] As shown, in this embodiment, the bar code PDF417 barcode decoding chip comprising a boundary determination module 02, PDF417 identification module 03, RSS bar code feature determining module 04, RSS bar code recognition module 06, a one-dimensional bar code recognition module 051 07 and output module. [0030] 如图2所示,PDF417条码边界判断模块02包括了扫描模块21,连接扫描模块21 并对其扫描次数做统计的计数器22,四个边界判断单元23-26。 [0030] As shown, PDF417 bar code boundary determination module 022 comprises a scanning module 21, module 21 connected to the scan counter 22 and make statistics, its four boundary scan number determining unit 23-26. 当条码解码芯片获得条码图像01后,扫描模块21在获取到条码图像01后对其进行扫描,并判断该条码图像01是否存在多个条空边界。 When the barcode decoding chip barcode image 01 is obtained, the scanning module 21 to scan the image after the barcode 01 is acquired, and determines the presence or absence of a plurality of barcode images 01 bar-space boundary. 计数器22中会设置两个不同的预设值,当达到第一个预设值时,计数器22会控制扫描模块21改变扫描方向,而达到第二个预设值时,计数器22控制扫描模块21去获取新的条码图像进行扫描,并且将计数器22内的记录的次数清零。 When the counter 22 will be set to two different preset values, reached first when a preset value, the counter 22 will control the scanning module 21 to change the scanning direction, and reaches the second preset value, the counter 22 controls the scanning module 21 to obtain a new barcode image is scanned, and clears the number of records in the counter 22. 扫描模块21扫描并判断出条码图像01存在多个条空边界,则直接将多个条空边界传输至边界判断单元23-26进行边界判断。 The scanning module 21 scans and determine the presence of a plurality of bar-space boundary barcode image 01, the plurality of bar-space boundary directly transmitted to the boundary determination unit determines 23-26 boundary. 在扫描模块21判断出条码图像01具有多个条空边界时,将多个条空边界传输到四个边界判断单元23-26,进行并行的边界判断。 The scanning module 21 determines that the boundary has a plurality of air bars, a plurality of bar-space boundary to transmit four boundary determination unit 23-26 performs the edge determination barcode image 01 in parallel. 边界判断单元2346分别对应81111113边界判断规则、31111118边界判断规则、71111113边界判断规则与31111117边界判断规则。 Boundary determining unit 2346 respectively correspond to the boundary determination rule 81111113, 31111118 boundary determination rule, 71111113 and 31111117 border boundary determination rule judgment rule. 在其他实施例中,也可使用至少两个边界判断单元来对条码图像01进行并行的边界判断。 In other embodiments, the boundary may be determined on the barcode image 01 in parallel using at least two edge determination units. [0031] 若PDF417条码边界判断模块02判断出条码图像01存在PDF417条码边界,则通过PDF417识别模块03对条码图像01进行识别。 [0031] If the bar code PDF417 boundary determination module 02 determines that there is a boundary barcode PDF417 barcode image 01, the image 01 to be identified by bar code PDF417 recognition module 03. 若识别成功,则将码字信息传输到输出模块07,由输出模块07将码字信息输出。 If the identification is successful, the codeword information 07 transmitted to the output module, the output module 07 outputs codeword information. 若识别失败,则将识别失败的信息传输到输出模块07,由输出模块07将译码失败的信息输出。 If the identification fails, then the identification information to the output module failed transmission 07, by the output module 07 outputs the information fails to decode. [0032] 若PDF417条码边界判断模块02判断出条码图像01不存在PDF417条码边界,则通过RSS条码特征判断模块04对条码图像01进行条空值提取。 [0032] If the bar code PDF417 boundary determination module 02 determines that the bar code PDF417 bar code image 01 does not exist a boundary, the module 04 pairs for barcode image 01 extracted by the RSS article null barcode feature determination. 在本发明一优选实施例中,对条码图像01的条空值进行多次提取,并统计各条空位置中条空值的出现次数,选择各条空位置的出现次数最多的条空值,形成一组条空值,以提高所获得的条空值的准确性。 In a preferred embodiment of the present invention, a null value to the article barcode image 01 is extracted a plurality of times, and counting the number of occurrences of the strip pieces null null position, the selected number of occurrences of the most pieces of empty strip null position, forming a set of null values, to improve the accuracy of the article obtained by a null value. [0033] 当RSS条码特征判断模块04提取出条空值后,继续判断提取出的这一组条空值中是否存在RSS条码的搜索特征。 [0033] When the RSS barcode feature determining module 04 extracts the null section, determines whether to continue the search feature RSS bar code is present in this slice group in the null extracted. 如图3所示,RSS条码结构包括左码词+搜索特征(Finder) +右码词组成的片段。 As shown in FIG. 3, RSS bar code structure comprises a left segment code word search feature + (the Finder) + Right code-word. 一个RSS条码可以包括最多11个片段,每个片段中的搜索特征(Finder)各不相同。 RSS bar code may include a maximum of 11 segments, wherein the search (the Finder) in each segment varies. 根据ISO IEC24724-2006国际标准,RSS条码结构中的搜索特征(Finder)可以包括如图4所示的组合形式。 The international standard ISO IEC24724-2006, search feature (Finder) RSS bar code may include a combination of structures in the form shown in FIG. 例如,当RSS条码条码包括2个片段时,其编码规则允许的片段组合方式为:A1搜索特征+A2搜索特征。 For example, when the RSS Bar code comprising two fragments, which fragments encoding rules allow for the combination: A1 + A2 search feature search feature. [0034] 若RSS条码特征判断模块04判断条码图像01存在RSS条码的搜索特征,则通过RSS条码识别模块06对条码图像信息进行识别。 [0034] If the RSS bar code search feature determining module 04 determines the presence characterized RSS barcode barcode image 01, RSS bar code is identified by the identification module 06 pairs barcode image information. RSS条码识别模块06包括RSS条码图像处理模块61、RSS条码判断模块62与RSS条码译码模块63。 RSS RSS barcode identifying module 06 comprises a barcode image processing module 61, RSS bar code determination module 62 and RSS bar code decoding module 63. RSS条码图像处理模块61对条码图像01的条码片断进行组合,然后由RSS条码判断模块62判断RSS条码图像处理模块61组合出的条码片段组合是否符合RSS条码组合规则,若符合,则由RSS条码译码模块63对符合RSS条码组合规则的条码片段组合进行识别,若不符合,则转由一维条码识别模块05进行识别。 RSS barcode image processing module 61 clips barcode the barcode image 01 are combined, then combined by the RSS bar code determination module 62 determines RSS barcode image processing module 61 yards composition segment Meets RSS bar code combination rules, if met, RSS bar code by module 63 decodes the bar code fragment composition complies with RSS bar code identifying the combination rule, if not met, the switch identified by the one-dimensional bar code recognition module 05. RSS条码译码模块63识别出码字信息后,会传输到输出模块07,由输出模块07输出码字信息。 After the RSS bar code decoding module 63 identifies codeword information, it will be transmitted to the output module 07, the output codeword from the information output module 07. RSS条码译码模块63识别失败后,会将条码图像01信息传输到一维条码识别模块05进行识别。 After decoding module 63 RSS barcode recognition fails, the information will be transmitted to the barcode image 01 one-dimensional bar code recognition module 05 recognizes. 在本发明一优选实施例中,RSS条码识别模块06中进一步包括与RSS条码译码模块63连接的计数器(未图示),用于记录RSS条码译码模块63识别失败的次数。 In a preferred embodiment of the present invention, RSS barcode identifying module 06 further comprises a counter connected to the RSS bar code decoding module 63 (not shown) for recording the number of RSS bar code decoding module 63 to identify the failure. 并且,在计数器中有一预设值,当失败次数未达到预设值时,计数器控制RSS条码图像处理模块61重新对条码图像01的条码片段进行组合,当失败次数达到预设值时,判定识别失败,并将记录的次数清零。 Further, there is a preset value in the counter, when the number of failures does not reach a preset value, the counter control RSS barcode image processing module 61 to re-image the bar code 01 bar code fragments are combined, when the number of failures reaches a preset value, it is determined identification failure, and the number of records cleared. [0035] 若RSS条码特征判断模块04判断条码图像01不存在RSS条码的搜索特征,或者RSS条码识别模块06未识别出码字信息,则将条码图像01信息传输到一维条码识别模块05来进行一维条码识别。 [0035] If the RSS barcode feature determining module 04 determines barcode image search feature RSS bar code 01 does not exist, or RSS bar code recognition module 06 does not recognize the code word information, the information is transmitted to the barcode image 01 one-dimensional bar code recognition module 05 to one-dimensional bar code recognition. 一维条码识别模块05会根据条空值来判断条码类型,并对根据条码类型对条码图像01进行识别。 Identification module 05 one-dimensional bar code type will be determined in accordance with Article null value, and recognition of the barcode image 01 according to the barcode type. 或者,一维条码识别模块05中包括多个对应不同类型的一维条码的识别逻辑,对输入的条码图像01进行并行识别。 Alternatively, a one-dimensional bar code recognition module 05 comprises a plurality of one-dimensional bar recognition logic corresponding to different types of input barcode image 01 parallel recognition. 若一维条码识别模块05识别成功,则将码字信息传输到输出模块07,由输出模块07将码字信息输出,若一维条码识别模块05识别失败,则将识别失败信息传输到输出模块07,由输出模块07输出识别失败信肩、ο[0036] 如图5所示,在本发明一实施例的条码解码方法中,首先对条码图像进行扫描, 并判断条码图像中是否存在PDF417条码边界。 If the one-dimensional barcode identifying module 05 to identify successful, the codeword information transmitted to the output module 07, the codeword information 07 output module, when the one-dimensional bar code identification recognition module 05 fails, the recognition failure information transmitted to the output module 07, by the output module 07 outputs a recognition failure is believed shoulder, ο [0036] As shown in FIG barcode decoding method according to an embodiment of the present invention, first scanning of the barcode image 5, and determines whether there is a barcode image PDF417 barcodes boundary. 对图像扫描之后,会先判断条码图像是否具有多个条空边界。 After scanning the image, first determines whether the barcode image having a plurality of bar-space boundary. 当判断出条码图像不具有多个条空边界,则获取新的条码图像进行扫描。 When it is determined that the barcode image does not have a plurality of bar-space boundary, the new barcode image acquisition scan. 当判断出条码图像存在多个条空边界时,根据PDF417的四种边界特征对条空边界进行PDF417条码边界判断。 When judged that there is a plurality of bar-space boundary barcode image, according to four boundary feature PDF417 bar code is PDF417 bar-space boundary is determined for the boundary. 在进行PDF417条码边界判断时,会分别用PDF417条码的四种边界的判断规则来对所述多个条空边界进行并行的PDF417条码边界判断,以提高判断速度。 PDF417 barcode PDF417 bar code boundary is determined when performing the edge determination, can be performed in parallel respectively with four kinds of boundary determination rule of the plurality of barcode PDF417 bar-space boundary, is determined to increase the speed. 若条码图像存在PDF417条码边界,则对条码图像进行PDF417条码识别。 If the bar code PDF417 barcode image boundary is present, the barcode image PDF417 barcode recognition. 识别出码字信息,则输出码字信息,未识别出码字信息,则输出译码失败信息。 Recognized codeword information, codeword information is output, codeword information is not recognized, the output fails to decode the information. [0037] 当判断条码图像不存在PDF417条码边界时,则对条码图像进行条空值提取,并判断是否存在RSS条码的搜索特征。 [0037] When it is determined that the barcode PDF417 bar code boundary image does not exist, then the value of the barcode image extraction bar-space, and determines whether there is a search feature RSS bar code. 在进行条空值提取时,会多次提取条码图像的条空值,并统计各条空位置中条空值的出现次数,选择各条空位置的出现次数最多的条空值,形成一组条空值,以提高条空值的准确度。 During null value extraction section, extract the article several times null barcode image, and counting the number of occurrences of the strip pieces null null position, the selected number of occurrences of the most pieces of empty strip null position, form a group Article null value, in order to improve the accuracy of the article null values. 然后,判断提取出的那一组条空值是否存在RSS条码的搜索特征。 Then, it is judged that the extracted slice group search feature value is null RSS bar code is present. 若条码图像存在RSS条码的搜索特征,则对条码图像进行RSS条码识别。 If the barcode image exists in the search feature RSS bar code, the bar code image RSS barcode recognition. 在进行RSS条码识别时,会先对条码图像进行处理,形成条码片断组合,然后判断其是否符合RSS条码组合规则,在判断条码组合符合RSS条码组合规则时,会对其进行累计,达到一定预设值时再进行识别。 During RSS bar code recognition, bar code images will first be processed to form a bar code segment combinations, and then determine whether it meets a combination of RSS bar code rule, when the composition is determined in line with the bar code rule combinations RSS bar code, will be accumulated up to a certain pre- and then identifying when the set value. 识别成功,则输出码字信息,识别失败,则对条码图像进行一维条码识别。 Recognition is successful, codeword information is output, recognition fails, the one-dimensional barcode image bar code recognition. [0038] 若条码图像不存在RSS条码的搜索特征,或是RSS条码识别失败,例如判断条码组合不符合RSS条码组合规则或识别不出码字信息时,会对条码图像进行一维条码识别。 When [0038] If the barcode image search feature RSS bar code does not exist, or RSS barcode recognition fails, for example, bar codes that do not meet determines RSS bar code, or a combination rule identification no codeword information, the bar code will be one-dimensional bar code image recognition. 在进行一维条码识别时,可先根据条空值确定一维条码类型,然后根据一维条码类型对条码图片进行识别;也可使用多个对应不同类型的一维条码的识别逻辑,对条码图像进行并行识别。 During the one-dimensional bar code recognition, may be determined according to the value of a bar-space-dimensional bar code type, and then barcode recognition according to a one-dimensional bar code image type; logic may be used to identify a plurality of one-dimensional bar corresponding to different types of bar code parallel image recognition. 识别成功,则输出码字信息,识别失败,则输出译码失败信息。 Recognition is successful, codeword information is output, recognition fails, the output fails to decode the information. [0039] 本发明的条码解码芯片及方法能够实现对一维条码、RSS条码与PDF417条码的识别,并且使用方便、解码速度更快、成本更低。 [0039] barcode decoding chip and method of the present invention enables identification of the one-dimensional bar codes, RSS bar code with the bar code PDF417, and easy to use, faster decoding speed, lower cost. [0040] 在上述实施例中,仅对本发明进行了示范性描述,但是本领域技术人员在阅读本专利申请后可以在不脱离本发明的精神和范围的情况下对本发明进行各种修改。 [0040] In the above embodiment, only the present invention has been exemplarily described, those skilled in the art upon reading the present patent application may be made without departing from the present invention that various modifications of the spirit and scope of the present invention.

Claims (9)

1. 一种条码解码芯片,其特征在于:所述条码解码芯片包括:PDF417条码边界判断模块,用于对条码图像进行扫描并判断所述条码图像是否存在PDF417条码边界;PDF417识别模块,用于在所述PDF417条码边界判断模块判断出所述条码图像存在PDF417条码边界时对所述条码图像进行PDF417条码识别;RSS条码特征判断模块,用于在所述PDF417条码边界判断模块判断出所述条码图像不存在PDF417条码边界时对所述条码图像进行条空值提取,并判断所述条码图像是否存在RSS条码的搜索特征;RSS识别模块,用于在所述RSS条码特征判断模块判断出所述条码图像存在RSS条码的搜索特征时对所述条码图像进行RSS条码识别;一维条码识别模块,用于在所述RSS条码特征判断模块判断条码图像不存在RSS条码的搜索特征或所述RSS识别模块识别失败时对所述条码图像进行一维条码识别;输出模 A barcode decoding chip, wherein: the barcode decoding chip comprising: PDF417 bar code boundary determination means for scanning the bar code image and determining the presence or absence of the barcode PDF417 barcode image boundary; PDF417 identification module in the PDF417 barcode boundary determining module determines that the barcode image PDF417 barcode identifying the presence of a boundary of the bar code PDF417 barcode image; RSS barcode feature determining means for determining the boundaries of PDF417 barcode module determines that the bar code Article null for the barcode PDF417 barcode image extracting image boundary does not exist, and determines whether the barcode image search feature RSS bar code is present; RSS identification module in the RSS barcode feature determining module determines that said RSS bar code identification for the presence of search feature RSS barcode the barcode images barcode image; one-dimensional bar code identification means for determining the RSS barcode feature search module determines characterized barcode image RSS bar code is not present or the identification RSS performing a dimensional bar code identification module to identify the barcode image fails; output module ,用于输出所述PDF417识别模块、所述RSS识别模块或所述一维条码识别模块识别成功时所得到的码字信息或所述PDF417识别模块或所述一维条码识别模块识别失败时所得到的译码失败信息。 , When an output of the PDF417 identification module, the identification module RSS or the one-dimensional bar code recognition module recognizes success obtained PDF417 codeword information or the identification module or the one-dimensional bar code recognition module recognizes the failure the resulting fails to decode the information.
2.如权利要求1所述的条码解码芯片,其特征在于:所述RSS识别模块包括: RSS条码图像处理模块,用于对所述条码图像的条码片段进行组合;RSS条码判断模块,用于判断条码片段组合是否符合RSS条码组合规则; RSS条码译码模块,用于对符合RSS条码组合规则的条码片段组合进行识别。 2. The barcode decoding chip according to claim 1, wherein: the RSS identification module comprises: an image processing module RSS bar code, the bar code for a fragment of the barcode image are combined; RSS bar code determining means for Analyzing RSS bar code fragments composition meets barcode combination rule; RSS bar code decoding module, configured to meet the combination of fragments RSS bar code barcode combination rule is identified.
3.如权利要求2所述的条码解码芯片,其特征在于:所述RSS识别模块中进一步包括与所述RSS条码译码模块连接的计数器,用于记录所述RSS条码译码模块识别失败的次数, 当所述计数器的计数值未到达预设值时,所述计数器控制所述RSS条码图像处理模块重新对所述条码图像的条码片段进行组合,当所述计数器的计数值达到预设值时,则判定识别失败,并将计数值清零。 3. The barcode decoding chip according to claim 2, wherein: the RSS further comprises a counter identification module connected to the RSS bar code decoding module, for recording the RSS bar code decoding failure recognition module number, when the count value of the counter does not reach the preset value, said counter controlling the RSS barcode image processing module to re-segment the barcode the barcode image are combined, when the count value of the counter reaches a preset value when it is determined that the failure to identify and count is cleared.
4.如权利要求1所述的条码解码芯片,其特征在于:所述PDF417条码边界判断模块包括:扫描模块,用于对条码图像进行扫描并判断所述条码图像是否存在多个条空边界; 计数器,与所述扫描模块连接,用于记录所述扫描模块的扫描次数,并控制所述扫描模块变换扫描方向或获取新的条码图像进行扫描,当所述计数器控制所述扫描模块获取新的条码图像进行扫描时,计数器内的记录的次数清零;至少两个边界判断单元,用于分别利用不同的边界判断规则来对扫描到的多个条空边界进行并行边界判断。 4. The barcode decoding chip according to claim 1, wherein: said boundary determining PDF417 barcode module comprising: a scanning module for scanning the barcode image of the barcode image and determines whether a plurality of bar-space boundary is present; a counter, coupled to the scanning module, for recording the number of scans of the scanning module, and controls the scan conversion module scan direction or acquire a new barcode image scanning, acquiring control of the counter when the new scanning module when scanning the barcode image, the number of records in the counter is cleared; the at least two edge determination units for respectively using different boundary parallel to the boundary determination rule determining a plurality of bar-space to the boundary scan.
5.如权利要求1所述的条码解码芯片,其特征在于:所述一维条码识别模块通过所述RSS条码特征判断模块提取的所述条空值判断条码类型,并根据所述条码类型进行识别。 5. The barcode decoding chip according to claim 1, wherein: the one-dimensional bar code recognition module via the RSS Analyzing the strip null code type determination barcode feature extraction module, and according to the barcode type recognition.
6.如权利要求1所述的条码解码芯片,其特征在于:所述一维条码识别模块内包括多个对应不同类型的一维条码的识别逻辑,对所述条码图像进行并行识别。 The barcode decoding chip as claimed in claim 1, further comprising: a plurality of one-dimensional bar recognition logic corresponding to the different types of the one-dimensional bar code recognition module, parallel to the bar code image recognition.
7.如权利要求1所述的条码解码芯片,其特征在于:在所述RSS条码特征判断模块对所述条码图像提取条空值时,多次提取所述条码图像的条空值,并统计各条空位置中条空值的出现次数,选择所述各条空位置的出现次数最多的条空值,形成一组条空值。 7. The barcode decoding chip according to claim 1, wherein: when the RSS bar code image feature extraction module determines the barcode strip null, null extracted several times the article barcode image, and statistics Article number of occurrences of the each null position empty, selecting the largest number of pieces of strip null values ​​empty position, forming a set of null values.
8. —种条码解码方法,其特征在于:所述方法包括:a.对条码图像进行扫描,并判断所述条码图像是否存在PDF417条码边界;b.若所述条码图像存在PDF417条码边界,则对所述条码图像进行PDF417条码识别;c.若所述条码图像不存在PDF417条码边界,则对所述条码图像进行条空值提取,并判断是否存在RSS条码的搜索特征;d.若所述条码图像存在RSS条码的搜索特征,则对所述条码图像进行RSS条码识别;e.对步骤c中判断出的不存在RSS条码的搜索特征的条码图像或步骤d中未识别成功的条码图像进行一维条码识别;f.输出步骤b、d、e识别成功时所得到的码字信息或步骤b、e识别失败时所得到的译码失败信息。 8. - kind of bar code decoding method, characterized in that: said method comprising: a scanned image of the bar code, and determining whether the bar code PDF417 barcode image boundary is present; B if the bar code PDF417 barcode image boundary is present, then. PDF417 bar code for identification of the barcode image;. c PDF417 barcode and if the barcode image boundary does not exist, then the value of the barcode image extraction bar-space, and determines whether there is a search feature RSS bar code;. d if the presence barcode image search feature RSS bar code, the bar code image of the RSS bar code recognition;. e judged in step c searches characteristic RSS bar code is not present in step d barcode image or not image recognition is successful bar code one-dimensional bar code recognition;. F output step b, when the d, e recognition success information or the code word obtained in step b, e recognition failure when the failure information obtained by decoding.
9.如权利要求8所述的条码解码方法,其特征在于:在步骤c中,多次提取所述条码图像的条空值,并统计各条空位置中条空值的出现次数,选择所述各条空位置的出现次数最多的条空值,形成一组条空值。 9. The bar code decoding method according to claim 8, wherein: in step (c), extracted several times the value of the barcode bar-space image, and counting the number of occurrences of the each article null position empty, selecting said largest number of occurrences of nulls strip pieces empty position, forming a set of null values.
CN 201010188793 2010-06-01 2010-06-01 Barcode decoding chip and method CN101882201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010188793 CN101882201B (en) 2010-06-01 2010-06-01 Barcode decoding chip and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010188793 CN101882201B (en) 2010-06-01 2010-06-01 Barcode decoding chip and method

Publications (2)

Publication Number Publication Date
CN101882201A CN101882201A (en) 2010-11-10
CN101882201B true CN101882201B (en) 2012-06-27

Family

ID=43054213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010188793 CN101882201B (en) 2010-06-01 2010-06-01 Barcode decoding chip and method

Country Status (1)

Country Link
CN (1) CN101882201B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521558B (en) * 2011-11-18 2014-04-02 深圳市宝捷信科技有限公司 Bar code identifying method and device
CN106446751A (en) * 2016-10-11 2017-02-22 福建中金在线信息科技有限公司 Bar code recognition method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452117A (en) 2003-05-22 2003-10-29 深圳矽感科技有限公司 Two-D bar code encoding and decoding method
CN1708769A (en) 2002-10-31 2005-12-14 圣像实验室有限公司 Two-dimensional code having superior decoding property which is possible to control the level of error correcting codes, and method for encoding and decoding the same
US7181066B1 (en) 2002-12-26 2007-02-20 Cognex Technology And Investment Corporation Method for locating bar codes and symbols in an image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133689A (en) * 2002-10-10 2004-04-30 Denso Wave Inc Two-dimensional code read method and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708769A (en) 2002-10-31 2005-12-14 圣像实验室有限公司 Two-dimensional code having superior decoding property which is possible to control the level of error correcting codes, and method for encoding and decoding the same
US7181066B1 (en) 2002-12-26 2007-02-20 Cognex Technology And Investment Corporation Method for locating bar codes and symbols in an image
CN1452117A (en) 2003-05-22 2003-10-29 深圳矽感科技有限公司 Two-D bar code encoding and decoding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特開2004-133689A 2004.04.30

Also Published As

Publication number Publication date
CN101882201A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
US5479004A (en) Dynamically variable machine readable binary code and method for reading and producing thereof
EP0978087B1 (en) System and method for ocr assisted bar code decoding
US5637849A (en) Maxicode data extraction using spatial domain features
US9208367B2 (en) Mobile computer configured to read multiple decodable indicia
CN103699861B (en) Having a plurality of encoded information reading terminal imaging assembly
US20130284801A1 (en) Mobile communication terminal configured to display multi-symbol decodable indicia
US5304787A (en) Locating 2-D bar codes
CN1219273C (en) Imaging engine and technology for reading postal codes
EP0754328B1 (en) Method and apparatus for decoding bar code images using information from previous scan lines
US20110240741A1 (en) Document decoding system and method for improved decoding performance of indicia reading terminal
CN100517378C (en) Method for encoding and decoding two-dimensional code
US20070114285A1 (en) 2D coding and decoding barcode and its method thereof
CA1293326C (en) Method and apparatus for bar code data autodiscrimination
US20020041712A1 (en) Apparatus and method for decoding damaged optical codes
EP1383070B1 (en) Two-dimensional code reading method for portable terminal with digital camera
US5262625A (en) Multiple bar code decoding system and method
US9990527B2 (en) System and method for document processing
Deorowicz et al. Robust relative compression of genomes with random access
JP2734386B2 (en) String reader
US6446868B1 (en) Scanning system for decoding two-dimensional barcode symbologies with a one-dimensional general purpose scanner
US20020196979A1 (en) Automatically extracting graphical bar codes
EP3038009B1 (en) Method of barcode templating for enhanced decoding performance
US6631843B2 (en) Composite code symbology
US20110068173A1 (en) System and method for recognizing deformed linear barcodes from a stream of varied-focus video frames
US7185816B1 (en) Bar code and method of forming a bar code having color for encoding supplemental information

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03