WO2018000532A1 - 一种量化污损QRCode的方法及系统 - Google Patents

一种量化污损QRCode的方法及系统 Download PDF

Info

Publication number
WO2018000532A1
WO2018000532A1 PCT/CN2016/094804 CN2016094804W WO2018000532A1 WO 2018000532 A1 WO2018000532 A1 WO 2018000532A1 CN 2016094804 W CN2016094804 W CN 2016094804W WO 2018000532 A1 WO2018000532 A1 WO 2018000532A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
fouling
data
qrcode
error correction
Prior art date
Application number
PCT/CN2016/094804
Other languages
English (en)
French (fr)
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 ES16906929T priority Critical patent/ES2924094T3/es
Priority to BR112018014589A priority patent/BR112018014589A2/pt
Priority to EP16906929.1A priority patent/EP3399468B1/en
Priority to US16/073,775 priority patent/US20190034684A1/en
Publication of WO2018000532A1 publication Critical patent/WO2018000532A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06075Constructional details the marking containing means for error correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06131Constructional details the marking comprising a target pattern, e.g. for indicating the center of the bar code or for helping a bar code reader to properly orient the scanner or to retrieve the bar code inside of an image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Definitions

  • the present invention relates to a method and system for quantifying a fouling QRCode.
  • the present invention is directed to the improvement of the above problems in the prior art, that is, the technical problem to be solved by the present invention is to provide a method and system for quantifying the fouling QRCode, which is helpful for solving the problem that the scanner can not quantitatively evaluate the stained barcode.
  • the scanning performance, the cost of testing labor, and the test results are not representative.
  • a technical solution of the present invention is: a method for quantifying a dirty QRCode, comprising the following steps,
  • S1 setting the version of the QRCode to be defaced and the error correction level, and calculating the number of data code words and error correction code words of the barcode under the current version and the error correction level condition;
  • S2 setting the coded character type of the QRCode to be defaced, and calculating the maximum number of characters that can be encoded when using the current character type, that is, the data code word after the number of the mode indicator and the character count indicator added to the code are satisfied.
  • the number of bits is smaller than the number of data code words in the current version and the error correction level; and the maximum number of characters is used for encoding to avoid the occurrence of padding characters in the data code word;
  • S3 generating a QRCode under the above setting conditions, dividing each function graphic module and the coding area module into a region, including a data codeword and an error correction codeword module, a barcode boundary module, a position detection graphics module, a correction graphics module, and a positioning graphics module , version information module, format information module;
  • S4 Different modules are quantified and decontaminated, and are divided into data and error correction code word fouling, boundary stain, position detection pattern stain, corrected pattern stain, positioning pattern stain, version information fouling, format information Defaced.
  • the number of characters used in the encoding including the digital mode, the alphanumeric mode, and the 8-bit byte mode is equal to the number of characters corresponding to the data codeword specified by the current version and the error correction level, and is avoided. The case of padding characters.
  • the QRCode encoding method is parsed, and the QRCode data and the error correcting code word contamination are quantized, and the 8-bit data bits of each data codeword and the error correcting codeword are randomly defaced, and 8 data are If any one or more bits of the bit have a reading error, it is determined that the current data code word or the error correction code word has a substitution error.
  • the number of substitution errors of the current QRCode barcode corresponding to the current version and the error correction level is queried to ensure that the degree of fouling of the data and the error correction codeword does not exceed the error correction of the error codeword by the QRCode barcode itself. ability.
  • the staining of the data and the error correcting codeword does not include the staining of the remaining bits of the QRCode barcode.
  • the data of the current QRCode barcode and the error rate of the error correction codeword are contaminated codeword modules/(number of data codewords + number of error correction codewords)*100%.
  • the barcode boundary blank areas of the barcode boundary module respectively correspond to 0, 1, 2, 3, and 4 module widths, and the stains of the barcode boundary modules are divided into 5 levels.
  • the stain of the position detecting graphic module includes a separate upper left corner position detecting pattern stain, a separate lower left corner position detecting pattern stain, a separate upper right corner position detecting pattern stain, and two of them. Or three position detection patterns are simultaneously stained; the number of correction patterns of the correction pattern module is regarded as a single correction pattern stain and a plurality of correction patterns are simultaneously stained; and the positioning pattern module is The fouling is divided into vertical positioning pattern staining, horizontal positioning pattern staining and two positioning patterns simultaneously staining; the staining of the version information module is divided into the lower left corner version information defacement, the upper right corner version information defacement and The two versions of the information are simultaneously defaced; the staining of the format information module is divided into the lower left corner plus the upper right corner format information defacement and the upper left corner format information defacement.
  • the actual fouling condition is simulated to the maximum extent of the fouling of each module, and the fouling mode for each module is a light color module or a dark color module that pollutes each module into a bar code.
  • the present invention also provides a system for quantifying a fouling QRCode, comprising:
  • the bar code making module is the bar code with the lowest anti-fouling ability, and the specific performance is as follows: under the same level of error correction, the number of characters used in the encoding is equal to the version information of the bar code, the error correction level, and the data code word corresponding to the coded characters. The maximum number of characters;
  • Dividing the bar code module area module that is, dividing each module area of the bar code, providing a regional boundary line for each module quantization pollution, the module area includes a data code word and an error correction code word module, a bar code boundary module, a position detection graphic module, a correction graphic module, and positioning Graphic module, version information module, format information module;
  • the method of selecting the decontamination method can select the pre-printing decontamination type or the actual actual decontamination type, and the specific performance is as follows: the pre-printing decontamination type indicates that the bar code is performed when the bar code having the lowest anti-fouling ability is produced. Defaced, and then printed out the stain bar code; after the actual defaced type is printed with the bar code with the lowest anti-fouling ability, the manual or mechanical arm is used to control the graffiti pen to deface the specific module area;
  • the fouling module that is, the decontamination of each module, is specifically divided into data and error correction code word fouling, boundary fouling, position detection pattern staining, correction pattern fouling, positioning pattern fouling, version information fouling, format Information is defaced.
  • the invention has the following beneficial effects: the scanning performance of the scanner for the stained barcode can be quantitatively evaluated, the test labor cost is small, the test result is representative, and the targeted point is located to locate a certain stain point.
  • the bar code scanning performance has the greatest impact, which improves the scanner's scan performance.
  • FIG. 1 is a flowchart of an algorithm according to an embodiment of the present invention.
  • 3 is a boundary fouling model in an embodiment of the present invention.
  • FIG. 5 is a diagram of a corrected graphic fouling model in an embodiment of the present invention.
  • FIG. 6 is a positioning pattern fouling model in an embodiment of the present invention.
  • FIG. 7 is a version information defacement model in an embodiment of the present invention.
  • FIG. 8 is a format information fouling model in an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a divided area of each module of the present invention.
  • the present invention provides a method for quantifying a fouling QRCode, including the following steps. suddenly
  • S1 setting the version of the QRCode to be defaced and the error correction level, and calculating the number of data code words and error correction code words of the barcode under the current version and the error correction level condition;
  • S2 setting the coded character type of the QRCode to be defaced, and calculating the maximum number of characters that can be encoded when using the current character type, that is, the data code word after the number of the mode indicator and the character count indicator added to the code are satisfied.
  • the number of bits is smaller than the number of data code words in the current version and the error correction level; and the maximum number of characters is used for encoding to avoid the occurrence of padding characters in the data code word;
  • S3 generating a QRCode under the above setting conditions, dividing each function graphic module and the coding area module into a region, including a data codeword and an error correction codeword module, a barcode boundary module, a position detection graphics module, a correction graphics module, and a positioning graphics module , version information module, format information module;
  • S4 Different modules are quantified and decontaminated, and are divided into data and error correction code word fouling, boundary stain, position detection pattern stain, corrected pattern stain, positioning pattern stain, version information fouling, format information Defaced.
  • the number of characters used in the encoding including the digital mode, the alphanumeric mode, and the 8-bit byte mode is equal to the number of characters corresponding to the data codeword specified by the current version and the error correction level, and the case of adding padding characters is avoided.
  • the QRCode encoding method is parsed, and the QRCode data and the error correction code word contamination are quantized, and the 8-bit data bits of each data code word and the error correction code word are randomly defaced, and any one or more of the 8 data bits are used. If a reading error occurs, it is determined that the current data code word or the error correction code word has a substitution error.
  • the current error of the current QRCode barcode corresponding to the current version and the error correction level is checked to ensure that the degree of fouling of the data and the error correction code word does not exceed the error correction capability of the QRCode barcode itself for the error code word.
  • the fouling of the remaining bits of the QRCode barcode is not included in the corruption of the data and error correction codewords.
  • the current QRCode barcode data and the error correction code word are defaced by the contaminated codeword module / (number of data code words + number of error correction code words) * 100%.
  • the barcode boundary blank areas of the barcode boundary module respectively correspond to 0, 1, 2, 3, and 4 module widths, and the stains of the barcode boundary modules are divided into 5 levels.
  • the stain on the position detecting graphic module includes a separate upper left corner position detecting pattern stain, a separate lower left corner position detecting pattern stain, a separate upper right corner position detecting pattern stain, and two or three position detecting patterns simultaneously stained Loss; the number of correction patterns of the correction pattern module is regarded as a single correction pattern stain and a plurality of correction patterns are simultaneously defaced; the stain of the positioning pattern module is divided into vertical positioning patterns Defacement, horizontal positioning pattern staining and two positioning patterns are simultaneously defaced; the stain of the version information module is divided into the lower left version The information is defaced, the version information of the upper right corner is defaced, and the two versions of the information are simultaneously defaced; the defacement of the format information module is divided into the lower left corner plus the upper right corner format information defacement and the upper left corner
  • the fouling mode for each module is a light color module or a dark color module that pollutes each module into a bar code.
  • the present invention also provides a system for quantifying a fouling QRCode, comprising:
  • the bar code making module is the bar code with the lowest anti-fouling ability, and the specific performance is as follows: under the same level of error correction, the number of characters used in the encoding is equal to the version information of the bar code, the error correction level, and the data code word corresponding to the coded characters. The maximum number of characters;
  • Dividing the bar code module area module that is, dividing each module area of the bar code, providing a regional boundary line for each module quantization pollution, the module area includes a data code word and an error correction code word module, a bar code boundary module, a position detection graphic module, a correction graphic module, and positioning Graphic module, version information module, format information module;
  • the method of selecting the decontamination method can select the pre-printing decontamination type or the actual actual decontamination type, and the specific performance is as follows: the pre-printing decontamination type indicates that the bar code is performed when the bar code having the lowest anti-fouling ability is produced. Defaced, and then printed out the stain bar code; after the actual defaced type is printed with the bar code with the lowest anti-fouling ability, the manual or mechanical arm is used to control the graffiti pen to deface the specific module area.
  • the fouling module that is, the decontamination of each module, is specifically divided into data and error correction code word fouling, boundary fouling, position detection pattern staining, correction pattern fouling, positioning pattern fouling, version information fouling, format Information is defaced.
  • Embodiment 1 As shown in FIGS. 2-8, a method and system for quantifying a fouling QRCode, the fouling model includes data and error correction codeword fouling, boundary fouling, position detection pattern staining, and correction pattern fouling , positioning graphics fouling, version information defacement, format information defacement.
  • the degree of fouling of the data and the error correction codeword reaches the maximum value of the degree of fouling of the barcode itself, which is the maximum fouling rate of the data and the error correction codeword.
  • the blank area of the boundary stain is 1 module width, which is the second level of boundary fouling.
  • the position detection pattern staining model is the upper left corner position detecting pattern stain.
  • this version of the barcode since this version of the barcode has only one correction pattern, it is stained for a single correction pattern.
  • the positioning pattern fouling model is horizontally and vertically positioned and simultaneously defaced.
  • the version information fouling model is that the lower left version information and the upper right version information are simultaneously defaced.
  • the format information decontamination model is the upper left corner format information defacement.
  • the fouling mode in this embodiment is a dark module that pollutes each module into a bar code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Toxicology (AREA)
  • Quality & Reliability (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Image Processing (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及一种量化污损QRCode的方法及系统。所述方法的污损包含数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损;根据不同的污损模型在条码的不同位置上进行不同程度的量化污损;所述的QRCode的污损程度不大于条码本身对错误码的纠错能力;QRCode的编码字符个数要等于当前条码版本和纠错等级所规定的数据码字对应的字符个数,不存在加入填充字符的情况;数据和纠错码字污损不包含剩余位;污损的方式可采用前期打印污损式和后期实际污损式。本发明有助于解决目前无法量化地评估扫描器对污损条码的扫描性能、测试人力成本大、测试结果不具有代表性的问题。

Description

一种量化污损QRCode的方法及系统 技术领域
本发明涉及一种量化污损QRCode的方法及系统。
背景技术
在条码扫描领域,人们经常会遇到所要扫描的条码被污损的情况,污损的情况不外乎条码污染,条码破损,条码褶皱,条码褪色模糊等情况,而这些污损的本质就是条码中的黑白颜色模块被破坏,使得扫描器无法识别当前模块的反射率,从而导致扫描器无法解码。扫描器能否扫描被污损的条码由条码本身数据纠错能力和扫描器的扫描算法两个方面决定。目前市面上还没有比较系统的方法可以量化地评估一款扫描器对污损条码的扫描性能。
另一方面,市面上出现的条码被污损的位置全是随机性出现的,扫描器生产厂家是无法真实的模拟实际中会出现如何污损的图形,如果采用大量的污损条码样本进行逐一扫描不仅耗费较大的精力,而且测试结果也不具有代表性。因此,针对上述问题是本发明研究的对象。
发明内容
本发明针对上述现有技术存在的问题做出改进,即本发明所要解决的技术问题是提供一种量化污损QRCode的方法及系统,有助于解决目前无法量化地评估扫描器对污损条码的扫描性能、测试人力成本大、测试结果不具有代表性的问题。
为了解决上述技术问题,本发明的一种技术方案是:一种量化污损QRCode的方法,包括如下步骤,
S1:设定要进行污损的QRCode的版本及纠错等级,计算当前版本及纠错等级条件下的条码的数据码字和纠错码字的个数;
S2:设定要进行污损的QRCode的编码字符类型,计算使用当前字符类型时能够编码的最多字符个数,即满足加上编码的模式指示符位数和字符计数指示符后的数据码字位数小于当前版本及纠错等级条件下的数据码字位数;并使用最多的字符个数进行编码,避免数据码字中出现填充字符的情况;
S3:生成上述设定条件下的QRCode,将各个功能图形模块和编码区域模块划分区域,包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
S4:分别将不同的模块进行量化污损,分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
在本发明一实施例中,编码使用的包括数字模式、字母数字模式、8位字节模式的字符个数要等于当前版本及纠错等级所规定的数据码字对应的字符个数,避免加入填充字符的情况。
在本发明一实施例中,解析QRCode的编码方式,对QRCode的数据和纠错码字污损进行量化,每个数据码字和纠错码字的8位数据位随机污损,8个数据位的任何1位或多位出现识读错误,则判定当前的数据码字或纠错码字出现替代错误。
在本发明一实施例中,查询当前版本及纠错等级所对应的当前QRCode条码的替代错误数,保证对数据和纠错码字的污损程度不超过QRCode条码本身对错误码字的纠错能力。
在本发明一实施例中,对数据和纠错码字的污损中不包含对QRCode条码剩余位的污损。
在本发明一实施例中,当前QRCode条码的数据和纠错码字的污损率为污染的码字模块/(数据码字个数+纠错码字个数)*100%。
在本发明一实施例中,所述条码边界模块的条码边界空白区分别对应0、1、2、3、4个模块宽度,对所述条码边界模块的污损共划分为5个等级。
在本发明一实施例中,对所述位置探测图形模块的污损包括单独左上角位置探测图形污损、单独左下角位置探测图形污损、单独右上角位置探测图形污损以及其中的两个或三个位置探测图形同时污损;对所述校正图形模块的污损视QRCode条码的校正图形个数,分为单个校正图形污损和多个校正图形同时污损;对所述定位图形模块的污损分为垂直定位图形污损、水平定位图形污损以及两个定位图形同时污损;对所述版本信息模块的污损分为左下角版本信息污损、右上角版本信息污损以及两个版本信息同时污损;对所述格式信息模块的污损分为左下角加右上角格式信息污损和左上角格式信息污损。
在本发明一实施例中,对各模块的污损最大程度的模拟实际污损情况,对各模块的污损方式是将各个模块全部污染成条码的浅色模块或深色模块。
本发明还提供了一种量化污损QRCode的系统,包括:
条码制作模块,即制作抗污损能力最低的条码,具体表现为:在同等纠错等级下,编码所用的字符个数等于条码的版本信息、纠错等级以及编码字符所限定的数据码字对应的最大字符个数;
划分条码模块区域模块,即划分条码各个模块区域,为各个模块量化污损提供区域界线,模块区域包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
污损方式选择模块,即污损的方式能够选择采用前期打印污损式或后期实际污损式,具体表现为:前期打印污损式表示在制作抗污损能力最低的条码时就对条码进行污损,然后打印出污损条码;后期实际污损式是打印出抗污损能力最低的条码后,采用手工或机械臂控制涂鸦笔的方式对特定模块区域进行污损;
污损模块,即对各个模块进行污损,具体分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
与现有技术相比,本发明具有以下有益效果:可以量化的评估扫描器对污损条码的扫描性能、测试人力成本小、测试结果具有代表性、有针对性的定位出某个污损点对条码扫描性能影响最大,从而改善扫描器的扫码性能。
附图说明
图1为本发明实施例的算法流程图。
图2为本发明实施例中数据和纠错码字污损模型。
图3为本发明实施例中边界污损模型。
图4为本发明实施例中位置探测图形污损模型。
图5为本发明实施例中校正图形污损模型。
图6为本发明实施例中定位图形污损模型。
图7为本发明实施例中版本信息污损模型。
图8为本发明实施例中格式信息污损模型。
图9为本发明各模块划分区域示意图。
具体实施方式
如图1、9所示,本发明提供了一种量化污损QRCode的方法,包括如下步 骤,
S1:设定要进行污损的QRCode的版本及纠错等级,计算当前版本及纠错等级条件下的条码的数据码字和纠错码字的个数;
S2:设定要进行污损的QRCode的编码字符类型,计算使用当前字符类型时能够编码的最多字符个数,即满足加上编码的模式指示符位数和字符计数指示符后的数据码字位数小于当前版本及纠错等级条件下的数据码字位数;并使用最多的字符个数进行编码,避免数据码字中出现填充字符的情况;
S3:生成上述设定条件下的QRCode,将各个功能图形模块和编码区域模块划分区域,包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
S4:分别将不同的模块进行量化污损,分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
编码使用的包括数字模式、字母数字模式、8位字节模式的字符个数要等于当前版本及纠错等级所规定的数据码字对应的字符个数,避免加入填充字符的情况。解析QRCode的编码方式,对QRCode的数据和纠错码字污损进行量化,每个数据码字和纠错码字的8位数据位随机污损,8个数据位的任何1位或多位出现识读错误,则判定当前的数据码字或纠错码字出现替代错误。查询当前版本及纠错等级所对应的当前QRCode条码的替代错误数,保证对数据和纠错码字的污损程度不超过QRCode条码本身对错误码字的纠错能力。对数据和纠错码字的污损中不包含对QRCode条码剩余位的污损。当前QRCode条码的数据和纠错码字的污损率为污染的码字模块/(数据码字个数+纠错码字个数)*100%。
所述条码边界模块的条码边界空白区分别对应0、1、2、3、4个模块宽度,对所述条码边界模块的污损共划分为5个等级。对所述位置探测图形模块的污损包括单独左上角位置探测图形污损、单独左下角位置探测图形污损、单独右上角位置探测图形污损以及其中的两个或三个位置探测图形同时污损;对所述校正图形模块的污损视QRCode条码的校正图形个数,分为单个校正图形污损和多个校正图形同时污损;对所述定位图形模块的污损分为垂直定位图形污损、水平定位图形污损以及两个定位图形同时污损;对所述版本信息模块的污损分为左下角版 本信息污损、右上角版本信息污损以及两个版本信息同时污损;对所述格式信息模块的污损分为左下角加右上角格式信息污损和左上角格式信息污损;
对各模块的污损最大程度的模拟实际污损情况,对各模块的污损方式是将各个模块全部污染成条码的浅色模块或深色模块。
本发明还提供了一种量化污损QRCode的系统,包括:
条码制作模块,即制作抗污损能力最低的条码,具体表现为:在同等纠错等级下,编码所用的字符个数等于条码的版本信息、纠错等级以及编码字符所限定的数据码字对应的最大字符个数;
划分条码模块区域模块,即划分条码各个模块区域,为各个模块量化污损提供区域界线,模块区域包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
污损方式选择模块,即污损的方式能够选择采用前期打印污损式或后期实际污损式,具体表现为:前期打印污损式表示在制作抗污损能力最低的条码时就对条码进行污损,然后打印出污损条码;后期实际污损式是打印出抗污损能力最低的条码后,采用手工或机械臂控制涂鸦笔的方式对特定模块区域进行污损。
污损模块,即对各个模块进行污损,具体分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
实施例一:如图2~8所示,一种量化污损QRCode的方法及系统,污损模型包含数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
本实施例中,数据和纠错码字污损程度达到条码本身可纠错的污损程度的最大值,为数据和纠错码字的最大污损率。
本实施例中,边界污损的空白区为1个模块宽度,为边界污损的第二等级。
本实施例中,位置探测图形污损模型为左上角位置探测图形污损。
本实施例中,因为此版本条码只有一个校正图形,故为单个校正图形污损。
本实施例中,定位图形污损模型为水平和垂直定位图形同时污损。
本实施例中,版本信息污损模型为左下角版本信息和右上角版本信息同时污损。
本实施例中,格式信息污损模型为左上角格式信息污损。
进一步的,本实施例中的污损方式为将各个模块污染为条码的深色模块。
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。

Claims (10)

  1. 一种量化污损QRCode的方法,其特征在于:包括如下步骤,
    S1:设定要进行污损的QRCode的版本及纠错等级,计算当前版本及纠错等级条件下的条码的数据码字和纠错码字的个数;
    S2:设定要进行污损的QRCode的编码字符类型,计算使用当前字符类型时能够编码的最多字符个数,即满足加上编码的模式指示符位数和字符计数指示符后的数据码字位数小于当前版本及纠错等级条件下的数据码字位数;并使用最多的字符个数进行编码,避免数据码字中出现填充字符的情况;
    S3:生成上述设定条件下的QRCode,将各个功能图形模块和编码区域模块划分区域,包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
    S4:分别将不同的模块进行量化污损,分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
  2. 根据权利要求1所述的量化污损QRCode的方法,其特征在于:编码使用的包括数字模式、字母数字模式、8位字节模式的字符个数要等于当前版本及纠错等级所规定的数据码字对应的字符个数,避免加入填充字符的情况。
  3. 根据权利要求2所述的量化污损QRCode的方法,其特征在于:解析QRCode的编码方式,对QRCode的数据和纠错码字污损进行量化,每个数据码字和纠错码字的8位数据位随机污损,8个数据位的任何1位或多位出现识读错误,则判定当前的数据码字或纠错码字出现替代错误。
  4. 根据权利要求3所述的量化污损QRCode的方法,其特征在于:查询当前版本及纠错等级所对应的当前QRCode条码的替代错误数,保证对数据和纠错码字的污损程度不超过QRCode条码本身对错误码字的纠错能力。
  5. 根据权利要求4所述的量化污损QRCode的方法,其特征在于:对数据和纠错码字的污损中不包含对QRCode条码剩余位的污损。
  6. 根据权利要求3所述的量化污损QRCode的方法,其特征在于:当前QRCode条码的数据和纠错码字的污损率为污染的码字模块/(数据码字个数+纠错码字个数)*100%。
  7. 根据权利要求1所述的量化污损QRCode的方法,其特征在于:所述条码边界模块的条码边界空白区分别对应0、1、2、3、4个模块宽度,对所述条码边界模块的污损共划分为5个等级。
  8. 根据权利要求1所述的量化污损QRCode的方法,其特征在于:对所述位置探测图形模块的污损包括单独左上角位置探测图形污损、单独左下角位置探测图形污损、单独右上角位置探测图形污损以及其中的两个或三个位置探测图形同时污损;对所述校正图形模块的污损视QRCode条码的校正图形个数,分为单个校正图形污损和多个校正图形同时污损;对所述定位图形模块的污损分为垂直定位图形污损、水平定位图形污损以及两个定位图形同时污损;对所述版本信息模块的污损分为左下角版本信息污损、右上角版本信息污损以及两个版本信息同时污损;对所述格式信息模块的污损分为左下角加右上角格式信息污损和左上角格式信息污损。
  9. 根据权利要求1、3、7或8所述的量化污损QRCode的方法,其特征在于:对各模块的污损最大程度的模拟实际污损情况,对各模块的污损方式是将各个模块全部污染成条码的浅色模块或深色模块。
  10. 一种量化污损QRCode的系统,其特征在于:包括:
    条码制作模块,即制作抗污损能力最低的条码,具体表现为:在同等纠错等级下,编码所用的字符个数等于条码的版本信息、纠错等级以及编码字符所限定的数据码字对应的最大字符个数;
    划分条码模块区域模块,即划分条码各个模块区域,为各个模块量化污损提供区域界线,模块区域包括数据码字和纠错码字模块、条码边界模块、位置探测图形模块、校正图形模块、定位图形模块、版本信息模块、格式信息模块;
    污损方式选择模块,即污损的方式能够选择采用前期打印污损式或后期实际污损式,具体表现为:前期打印污损式表示在制作抗污损能力最低的条码时就对条码进行污损,然后打印出污损条码;后期实际污损式是打印出抗污损能力最低的条码后,采用手工或机械臂控制涂鸦笔的方式对特定模块区域进行污损;
    污损模块,即对各个模块进行污损,具体分为数据和纠错码字污损、边界污损、位置探测图形污损、校正图形污损、定位图形污损、版本信息污损、格式信息污损。
PCT/CN2016/094804 2016-06-27 2016-08-12 一种量化污损QRCode的方法及系统 WO2018000532A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
ES16906929T ES2924094T3 (es) 2016-06-27 2016-08-12 Método para la distorsión cuantitativa de un código QR
BR112018014589A BR112018014589A2 (pt) 2016-06-27 2016-08-12 um método e um sistema para desfiguração quantitativa dos códigos qr
EP16906929.1A EP3399468B1 (en) 2016-06-27 2016-08-12 Method for quantitative defacing of a qr code
US16/073,775 US20190034684A1 (en) 2016-06-27 2016-08-12 Method and system for quantifying damaged qr codes

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610476212.6 2016-06-27
CN201610476212.6A CN106127276B (zh) 2016-06-27 2016-06-27 一种量化污损QRCode的方法及系统

Publications (1)

Publication Number Publication Date
WO2018000532A1 true WO2018000532A1 (zh) 2018-01-04

Family

ID=57267156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094804 WO2018000532A1 (zh) 2016-06-27 2016-08-12 一种量化污损QRCode的方法及系统

Country Status (6)

Country Link
US (1) US20190034684A1 (zh)
EP (1) EP3399468B1 (zh)
CN (1) CN106127276B (zh)
BR (1) BR112018014589A2 (zh)
ES (1) ES2924094T3 (zh)
WO (1) WO2018000532A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463863B (zh) * 2017-09-04 2020-05-15 广州杰赛科技股份有限公司 二维码异常识别方法、装置和系统,共享单车
US11498099B2 (en) 2018-10-23 2022-11-15 Ecolab Usa Inc. Verification of cleaning processes with electronically readable coded coupon
CN109934036B (zh) * 2019-03-22 2022-01-04 福州符号信息科技有限公司 一种通过单一位置探测图形识读qr码的方法和系统
CN111079463B (zh) * 2019-10-22 2022-08-16 福建新大陆支付技术有限公司 一种用于软件测试的生成污损二维码的方法
JP7401284B2 (ja) * 2019-12-12 2023-12-19 東京エレクトロン株式会社 基板処理装置
CN113761962B (zh) * 2021-09-13 2022-09-16 武汉先同科技有限公司 一种赋码产品视觉检测方法、系统以及存储介质
CN116739022B (zh) * 2023-08-15 2023-11-07 北京紫光青藤微系统有限公司 用于条码图像的译码方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908125A (zh) * 2010-06-01 2010-12-08 福建新大陆电脑股份有限公司 Qr码条码解码芯片及其解码方法
CN102999772A (zh) * 2012-11-14 2013-03-27 韩偲铭 一种新型矩阵式二维码的编解码方法
US20140061316A1 (en) * 2012-08-31 2014-03-06 International Business Machines Corporation Two-dimensional barcode to avoid unintentional scanning
JP5720623B2 (ja) * 2012-05-14 2015-05-20 株式会社デンソー 二次元コード読取装置
CN105706118A (zh) * 2013-10-30 2016-06-22 凸版Tdk标签株式会社 生成二维条码的方法、生成二维条码的装置、读取二维条码的方法、读取二维条码的装置、二维条码及程序

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6560741B1 (en) * 1999-02-24 2003-05-06 Datastrip (Iom) Limited Two-dimensional printed code for storing biometric information and integrated off-line apparatus for reading same
CN100369059C (zh) * 2006-01-18 2008-02-13 冯文伦 一种矩阵式二维条码及其编码解码方法
CN1885725B (zh) * 2006-07-12 2011-04-06 中国物品编码中心 纠错编码方法
JP5827738B1 (ja) * 2014-10-15 2015-12-02 株式会社トッパンTdkレーベル 二次元コード生成方法、二次元コード生成装置、プログラム、二次元コード、二次元コード読み取り方法、および、二次元コード読み取り装置
CN104951726B (zh) * 2015-06-25 2017-12-08 福建联迪商用设备有限公司 用于qr二维码位置探测的方法及装置
CN105117677B (zh) * 2015-07-30 2017-10-31 福建联迪商用设备有限公司 一种qr码特征检测方法及系统
CN105138943B (zh) * 2015-09-02 2017-10-24 福建联迪商用设备有限公司 Qr码位置探测图形破损时的解码方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908125A (zh) * 2010-06-01 2010-12-08 福建新大陆电脑股份有限公司 Qr码条码解码芯片及其解码方法
JP5720623B2 (ja) * 2012-05-14 2015-05-20 株式会社デンソー 二次元コード読取装置
US20140061316A1 (en) * 2012-08-31 2014-03-06 International Business Machines Corporation Two-dimensional barcode to avoid unintentional scanning
CN102999772A (zh) * 2012-11-14 2013-03-27 韩偲铭 一种新型矩阵式二维码的编解码方法
CN105706118A (zh) * 2013-10-30 2016-06-22 凸版Tdk标签株式会社 生成二维条码的方法、生成二维条码的装置、读取二维条码的方法、读取二维条码的装置、二维条码及程序

Also Published As

Publication number Publication date
CN106127276B (zh) 2018-12-21
EP3399468A1 (en) 2018-11-07
EP3399468A4 (en) 2019-08-14
ES2924094T3 (es) 2022-10-04
EP3399468B1 (en) 2022-05-04
US20190034684A1 (en) 2019-01-31
BR112018014589A2 (pt) 2019-01-08
CN106127276A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2018000532A1 (zh) 一种量化污损QRCode的方法及系统
JP4122629B2 (ja) 2次元コードの生成方法
JP2023145619A5 (zh)
EP2393037B1 (en) Data matrix decoding chip and decoding method thereof
EP2393038A1 (en) Matrix-type two-dimensional barcode decoding chip and decoding method thereof
US12002198B2 (en) Character defect detection method and device
JP6006315B2 (ja) 印刷されたデータの機械読み取り
GB2600340A (en) A two dimensional barcode provided with dynamic environmental indicator provided within a gap
CN106997446B (zh) 增强的矩阵符号纠错方法
CN102306273A (zh) 彩色条码识别打印系统及方法
JP2010262558A (ja) 情報表現画像、印刷物、画像処理装置及び画像処理プログラム
CN101405747A (zh) 生成图像码的方法和设备以及解码图像码的方法和设备
CN106446732A (zh) 一种条形码的识别方法、装置及设备
US10460142B2 (en) Barcode identification method for improving decoding reliability by correcting image distortion
CN107742089B (zh) 一种使用电子表格进行二维码自动识别的方法
JP2010129048A (ja) 二次元コード表示装置及びガスメータ
CN106626845B (zh) 灰度二维码的印制方法
US9704006B2 (en) Image processing apparatus
JP2020160961A (ja) 二次元コード読取装置、コンピュータプログラム、及び、二次元コード
CN115063405A (zh) 钢材表面缺陷检测的方法、系统、电子设备和存储介质
CN109299628B (zh) 一种条码的译码方法及装置
CN111079463B (zh) 一种用于软件测试的生成污损二维码的方法
Berisso DotCode Damage Testing
CN105934780B (zh) 用于打印文档的简单编码、认证和复制检测的系统
JP7109398B2 (ja) 画像表示媒体、画像処理装置、画像処理方法、及びプログラム

Legal Events

Date Code Title Description
REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112018014589

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 2016906929

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016906929

Country of ref document: EP

Effective date: 20180802

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112018014589

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20180717