[go: up one dir, main page]

CN104598939B - The generation method and equipment of a kind of bar code - Google Patents

The generation method and equipment of a kind of bar code Download PDF

Info

Publication number
CN104598939B
CN104598939B CN201310529141.8A CN201310529141A CN104598939B CN 104598939 B CN104598939 B CN 104598939B CN 201310529141 A CN201310529141 A CN 201310529141A CN 104598939 B CN104598939 B CN 104598939B
Authority
CN
China
Prior art keywords
line width
gray level
printing line
printing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310529141.8A
Other languages
Chinese (zh)
Other versions
CN104598939A (en
Inventor
雷伟
陈�峰
刘志红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310529141.8A priority Critical patent/CN104598939B/en
Publication of CN104598939A publication Critical patent/CN104598939A/en
Application granted granted Critical
Publication of CN104598939B publication Critical patent/CN104598939B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Ink Jet (AREA)

Abstract

本发明公开了一种一维条码的生成方法和设备,主要内容包括:通过获取多灰度级的喷墨打印设备打印的包含了色块的灰度级以及所述色块的实际打印线宽信息的实验图像信息;分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码;这样,有效避免了由于打印介质、墨水以及干燥环境等外在因素以及喷头物理分辨率不足导致条码打印质量低的问题,提高了一维条码的打印质量,尤其是低模数的一维条码的打印质量。

The invention discloses a method and device for generating a one-dimensional barcode, the main contents of which include: obtaining the gray level including color blocks printed by an inkjet printing device with multiple gray levels and the actual printing line width of the color blocks The experimental image information of the information; analyze the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level; input the statistical value of the actual printing line width information corresponding to each gray level into the barcode Generating software, traversing to obtain one-dimensional barcode dot matrix information, and printing one-dimensional barcode according to the one-dimensional barcode dot matrix information; in this way, it is effectively avoided due to external factors such as printing media, ink and drying environment, and the physical resolution of the nozzle. Insufficient rate leads to the problem of low barcode printing quality, and improves the printing quality of one-dimensional barcodes, especially the printing quality of low modulus one-dimensional barcodes.

Description

一种一维条码的生成方法和设备Method and device for generating one-dimensional barcode

技术领域technical field

本发明涉及一维条码技术领域,尤其涉及一维条码的生成方法和设备。The invention relates to the technical field of one-dimensional barcodes, in particular to a method and equipment for generating one-dimensional barcodes.

背景技术Background technique

在喷墨印刷领域,由于喷墨打印头的分辨率限制,导致无法保证任意模数条码的打印质量,尤其是低模数的一维条码的打印质量。In the field of inkjet printing, due to the limitation of the resolution of the inkjet print head, the printing quality of arbitrary modulus barcodes, especially the printing quality of low modulus one-dimensional barcodes cannot be guaranteed.

在通常使用的条码生成技术中,以喷墨打印头的物理分辨率为基准,按照一维条码国际生成验证方法来生成一维条码点阵,这样可以得到打印出理论意义上比较优质的条码,但是,在实际打印过程中,由于打印介质、使用的打印墨水以及环境干燥程度等外在因素的影响,使得打印出来的条码质量远比理论上的要差,尤其是在打印模数小于喷墨打印喷头最低分辨率的条码时,打印出的条码质量更差,甚至在使用这些条码时,严重影响对该条码的识别。In the commonly used barcode generation technology, based on the physical resolution of the inkjet print head, the one-dimensional barcode dot matrix is generated according to the one-dimensional barcode international generation verification method, so that a relatively high-quality barcode in the theoretical sense can be printed. However, in the actual printing process, due to the influence of external factors such as the printing medium, the printing ink used, and the degree of environmental dryness, the quality of the printed barcode is far worse than the theoretical one, especially when the printing modulus is smaller than that of the inkjet barcode. When printing the barcode with the lowest resolution of the nozzle, the quality of the printed barcode is even worse, and even when using these barcodes, it seriously affects the recognition of the barcode.

由此可见,亟需一种一维条码的生成方法,用来解决技术中存在的低模数一维条码质量低的问题。It can be seen that there is an urgent need for a method for generating one-dimensional barcodes, which is used to solve the problem of low quality of low-modulus one-dimensional barcodes in the technology.

发明内容Contents of the invention

本发明实施例提供了一种一维条码的生成方法和设备,用于解决现有技术中存在的低模数一维条码质量低的问题。Embodiments of the present invention provide a method and device for generating one-dimensional barcodes, which are used to solve the problem of low quality of low-modulus one-dimensional barcodes in the prior art.

一种一维条码生成方法,包括:A method for generating a one-dimensional barcode, comprising:

获取多灰度级的喷墨打印设备打印的实验图像信息,其中,所述实验图像信息中包含了色块的灰度级以及所述色块的实际打印线宽信息;Obtaining experimental image information printed by a multi-grayscale inkjet printing device, wherein the experimental image information includes the grayscale of the color block and the actual printing line width information of the color block;

分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;Analyzing the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level;

将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码。Input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, traverse to obtain the one-dimensional barcode dot matrix information, and print the one-dimensional barcode according to the one-dimensional barcode dot matrix information.

分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值,包括:Analyze the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level, including:

获取所述实验图像信息中包含的灰度条宽组合序列,其中,所述灰度条宽组合序列中包含了物理灰度级数和打印每一个色块使用的喷孔数量;Obtaining the grayscale bar width combination sequence contained in the experimental image information, wherein the grayscale bar width combination sequence includes the number of physical grayscale levels and the number of nozzle holes used to print each color block;

利用图像分析软件,测量得到每一个灰度级对应的实际打印线宽信息的统计值,其中,所述实际打印线宽信息的统计值包括一个实际打印线宽使用的首个喷孔打印的灰度级、该实际打印线宽使用的中间喷孔打印的数量、该实际打印线宽使用的末喷孔打印的灰度级。Using image analysis software, the statistical value of the actual printing line width information corresponding to each gray level is measured, wherein the statistical value of the actual printing line width information includes the gray value printed by the first nozzle hole used for the actual printing line width degree, the number of middle orifice printing used by the actual printing line width, and the gray level of the final orifice printing used by the actual printing line width.

所述中间喷孔是指实际打印线宽使用的喷孔除了使用的首个喷孔和最后使用的末喷孔之外的其他喷孔。The middle nozzle hole refers to other nozzle holes except the first nozzle hole used and the last nozzle hole used for the actual printing line width.

每一个实际打印线宽使用的中间喷孔打印的灰度级大于该实际打印线宽使用的首个喷孔打印的灰度级、且大于该实际打印线宽使用的末喷孔打印的灰度级。The gray level printed by the middle orifice used by each actual printing line width is greater than the gray level printed by the first orifice used by the actual printed line width, and greater than the gray level printed by the last orifice used by the actual printed line width class.

每一个实际打印线宽使用的中间喷孔打印的灰度级是喷墨打印设备所使用的最高灰度级。The gray level printed by the middle orifice used for each actual printing line width is the highest gray level used by the inkjet printing device.

将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,包括:Input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, traverse to obtain the one-dimensional barcode dot matrix information, including:

将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,替换设置的理论打印线宽信息,并修正条码验证的可译码计算值;Inputting the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, replacing the set theoretical printing line width information, and correcting the decodable calculated value of the barcode verification;

利用修正后的可译码计算值作为条码生成标准,选择满足设定条件的条码排列方式作为待打印的一维条码的点阵信息。Using the corrected decodable calculation value as the barcode generation standard, the barcode arrangement that meets the set conditions is selected as the dot matrix information of the one-dimensional barcode to be printed.

一种一维条码生成设备,包括:A one-dimensional barcode generating device, comprising:

获取模块,用于获取多灰度级的喷墨打印设备打印的实验图像信息,其中,所述实验图像信息中包含了色块的灰度级以及所述色块的实际打印线宽信息;An acquisition module, configured to acquire experimental image information printed by a multi-grayscale inkjet printing device, wherein the experimental image information includes the grayscale of the color block and the actual printing line width information of the color block;

分析模块,用于分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;An analysis module, configured to analyze the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level;

生成模块,用于将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码。The generation module is used to input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, traverse to obtain the one-dimensional barcode dot matrix information, and print the obtained one-dimensional barcode dot matrix information according to the one-dimensional barcode dot matrix information. 1D barcode.

所述分析模块,用于获取所述实验图像信息中包含的灰度条宽组合序列,其中,所述灰度条宽组合序列中包含了物理灰度级数和打印每一个色块使用的喷孔数量;The analysis module is used to obtain the grayscale bar width combination sequence contained in the experimental image information, wherein the grayscale bar width combination sequence includes the physical grayscale levels and the inkjet used to print each color block. Number of holes;

利用图像分析软件,测量得到每一个灰度级对应的实际打印线宽信息的统计值,其中,所述实际打印线宽信息的统计值包括一个实际打印线宽使用的首个喷孔打印的灰度级、该实际打印线宽使用的中间喷孔打印的数量、该实际打印线宽使用的末喷孔打印的灰度级。Using image analysis software, the statistical value of the actual printing line width information corresponding to each gray level is measured, wherein the statistical value of the actual printing line width information includes the gray value printed by the first nozzle hole used for the actual printing line width degree, the number of middle orifice printing used by the actual printing line width, and the gray level of the final orifice printing used by the actual printing line width.

所述中间喷孔是指实际打印线宽使用的喷孔除了使用的首个喷孔和最后使用的末喷孔之外的其他喷孔。The middle nozzle hole refers to other nozzle holes except the first nozzle hole used and the last nozzle hole used for the actual printing line width.

每一个实际打印线宽使用的中间喷孔打印的灰度级大于该实际打印线宽使用的首个喷孔打印的灰度级、且大于该实际打印线宽使用的末喷孔打印的灰度级。The gray level printed by the middle orifice used by each actual printing line width is greater than the gray level printed by the first orifice used by the actual printed line width, and greater than the gray level printed by the last orifice used by the actual printed line width class.

每一个实际打印线宽使用的中间喷孔打印的灰度级是喷墨打印设备所使用的最高灰度级。The gray level printed by the middle orifice used for each actual printing line width is the highest gray level used by the inkjet printing device.

所述生成模块,具体用于将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,替换设置的理论打印线宽信息,并修正条码验证的可译码计算值;The generation module is specifically used to input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, replace the set theoretical printing line width information, and correct the decodable calculation value of the barcode verification ;

利用修正后的可译码计算值作为条码生成标准,选择满足设定条件的条码排列方式作为待打印的一维条码的点阵信息。Using the corrected decodable calculation value as the barcode generation standard, the barcode arrangement that meets the set conditions is selected as the dot matrix information of the one-dimensional barcode to be printed.

本发明有益效果如下:The beneficial effects of the present invention are as follows:

本发明实施例通过获取多灰度级的喷墨打印设备打印的包含了色块的灰度级以及所述色块的实际打印线宽信息的实验图像信息;分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码;这样,有效避免了由于打印介质、墨水以及干燥环境等外在因素以及喷头物理分辨率不足导致条码打印质量低的问题,提高了一维条码的打印质量,尤其是低模数的一维条码的打印质量。In the embodiment of the present invention, the experimental image information including the gray level of the color block and the actual printing line width information of the color block printed by the multi-gray-level inkjet printing device is acquired; the experimental image information is analyzed to obtain each The statistical value of the actual printing line width information corresponding to a gray level; the statistical value of the actual printing line width information corresponding to each gray level is input into the barcode generation software, traverses to obtain the one-dimensional barcode dot matrix information, and according to the Describe the one-dimensional barcode dot matrix information, and print the one-dimensional barcode; in this way, the problem of low barcode printing quality caused by external factors such as printing media, ink and drying environment and insufficient physical resolution of the nozzle is effectively avoided, and the one-dimensional barcode is improved. Excellent print quality, especially for low-modulus one-dimensional barcodes.

附图说明Description of drawings

图1为本发明实施例一提供的一种一维条码的生成方法的流程示意图;FIG. 1 is a schematic flowchart of a method for generating a one-dimensional barcode provided in Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种一维条码的生成设备的结构示意图。FIG. 2 is a schematic structural diagram of a one-dimensional barcode generating device provided in Embodiment 2 of the present invention.

具体实施方式detailed description

为了实现本发明的目的,本发明实施例提供了一种一维条码的生成方法和设备,通过获取多灰度级的喷墨打印设备打印的包含了色块的灰度级以及所述色块的实际打印线宽信息的实验图像信息;分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码;这样,有效避免了由于打印介质、墨水以及干燥环境等外在因素以及喷头物理分辨率不足导致条码打印质量低的问题,提高了一维条码的打印质量,尤其是低模数的一维条码的打印质量。In order to achieve the purpose of the present invention, an embodiment of the present invention provides a method and device for generating a one-dimensional barcode, by obtaining the gray levels printed by a multi-grayscale inkjet printing device that includes color blocks and the color blocks The experimental image information of the actual printing line width information; analyze the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level; the actual printing line width information corresponding to each gray level Input the statistical value of the barcode into the barcode generation software, traverse to obtain the one-dimensional barcode dot matrix information, and print the one-dimensional barcode according to the one-dimensional barcode dot matrix information; in this way, it effectively avoids external problems caused by printing media, ink and drying environment, etc. Factors and the lack of physical resolution of the nozzle lead to low barcode printing quality, which improves the printing quality of one-dimensional barcodes, especially the printing quality of low-modulus one-dimensional barcodes.

下面结合说明书附图对本发明各个实施例进行详细描述。Various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

实施例一:Embodiment one:

如图1所示,为本发明实施例一提供的一种一维条码的生成方法的流程示意图,所述方法可以如下所述。As shown in FIG. 1 , it is a schematic flowchart of a method for generating a one-dimensional barcode provided in Embodiment 1 of the present invention, and the method may be described as follows.

步骤101:获取多灰度级的喷墨打印设备打印的实验图像信息。Step 101: Obtain experimental image information printed by a multi-grayscale inkjet printing device.

其中,所述实验图像信息中包含了色块的灰度级以及所述色块的实际打印线宽信息。Wherein, the experimental image information includes the gray level of the color block and the actual printing line width information of the color block.

在步骤101中,利用多灰度级的喷墨打印设备,打印指定的实验图像。其中,打印得到的实验图像能够体现不同喷墨打印头所打印区域、不同喷孔数量以及不同灰度级对应的实际打印线宽信息等。In step 101, a specified experimental image is printed using a multi-grayscale inkjet printing device. Among them, the printed experimental images can reflect the actual printed line width information corresponding to different inkjet print heads, different numbers of nozzle holes, and different gray levels.

其中,喷墨打印设备的喷孔数量可以1~N个,N根据打印条码需要使用的最大线宽宽度值确定。例如:当喷墨打印设备的喷头的分辨率为300dpi时,一般需要15个喷孔即可。Wherein, the number of nozzle holes of the inkjet printing device may be 1 to N, and N is determined according to the maximum line width value required for printing barcodes. For example: when the resolution of the nozzle of the inkjet printing device is 300dpi, generally 15 nozzle holes are required.

需要说明的是,不同的灰度级可以通过调整喷墨打印设备的喷头实现。It should be noted that different gray levels can be realized by adjusting the nozzles of the inkjet printing device.

步骤102:分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值。Step 102: Analyze the experimental image information to obtain the statistical value of the actual printing line width information corresponding to each gray level.

在步骤102中,利用一个高分辨率的扫描设备,将所述实验图像信息扫描至计算机设备,并利用图像分析软件,测量得到所述喷墨打印设备的各种喷头的宽度以及每一个灰度级对应的实际打印线宽信息的统计值。In step 102, use a high-resolution scanning device to scan the experimental image information to the computer device, and use image analysis software to measure the width and each grayscale of the various nozzles of the inkjet printing device The statistical value of the actual printing line width information corresponding to the level.

需要说明的是,所述高分辨率的扫描设备是指扫描设备的分辨率大于等于十倍以上的喷墨打印设备喷头的物理分辨率;并且扫描设备的分辨率越高,分析结果越准确。It should be noted that the high-resolution scanning device means that the resolution of the scanning device is greater than or equal to ten times the physical resolution of the nozzle of the inkjet printing device; and the higher the resolution of the scanning device, the more accurate the analysis result.

具体地,在利用图像分析软件对得到的图像信息进行分析时,首先,获取所述实验图像信息中包含的灰度条宽组合序列。Specifically, when using the image analysis software to analyze the obtained image information, firstly, the gray-scale bar width combination sequence included in the experimental image information is obtained.

其中,所述灰度条宽组合序列中包含了物理灰度级数和打印每一个色块使用的喷孔数量。Wherein, the grayscale bar width combination sequence includes the number of physical grayscale levels and the number of nozzle holes used to print each color block.

所述物理灰度级数与喷墨打印设备喷头的固有物理打印灰度级相关;所述打印每一个色块使用的喷孔数量是由打印一维条码的模数确定的。The number of physical gray scales is related to the intrinsic physical print gray scale of the nozzle of the inkjet printing device; the number of nozzle holes used for printing each color block is determined by the modulus for printing one-dimensional barcodes.

由于在实际应用中,一个一维条码的黑色块的宽度只与该黑条边上的线宽有关系,因此,在色块宽度大于3个喷孔数量的情况下,打印色块所使用的中间的喷孔(除了首个使用的喷孔以及最后一个使用的喷孔)均是以喷墨打印设备的最高级灰度进行喷印完成,这样保证宽度不受影响的情况下,也保证了打印条码的质量。Since in practical applications, the width of a black block of a one-dimensional barcode is only related to the line width on the side of the black bar, therefore, when the width of the color block is greater than the number of 3 nozzle holes, the color block used for printing the color block The nozzle holes in the middle (except the first used nozzle hole and the last used nozzle hole) are all printed with the highest gray scale of the inkjet printing equipment, so as to ensure that the width is not affected, and it is also guaranteed The quality of printed barcodes.

其次,利用图像分析软件,测量得到每一个灰度级对应的实际打印线宽信息的统计值。Secondly, use the image analysis software to measure the statistical value of the actual printing line width information corresponding to each gray level.

其中,所述实际打印线宽信息的统计值包括一个实际打印线宽使用的首个喷孔打印的灰度级、该实际打印线宽使用的中间喷孔打印的数量、该实际打印线宽使用的末喷孔打印的灰度级。Wherein, the statistical value of the actual printing line width information includes the gray level of the first nozzle hole printing used by the actual printing line width, the number of middle nozzle holes printing used by the actual printing line width, and the actual printing line width. The gray level printed by the last orifice.

如表1所示,为不同灰度级对应的色块(或者线宽)的种类:As shown in Table 1, the types of color blocks (or line widths) corresponding to different gray levels:

表1Table 1

从表1中可以看出,不同灰度级对应的色块种类是不同的,W1灰度级对应的色块是N个,其他对应的色块都是2n个。It can be seen from Table 1 that the types of color blocks corresponding to different gray levels are different, the number of color blocks corresponding to the W1 gray level is N, and the other corresponding color blocks are 2 n .

下面以物理灰度级为4,测量最宽的色块对应的喷孔数量为15为例,说明分析得到的每一个灰度级对应的实际打印线宽信息的统计值,如表2所示:Taking the physical gray level as 4 and measuring the number of nozzle holes corresponding to the widest color block as 15 as an example, the statistical value of the actual printing line width information corresponding to each gray level obtained from the analysis is shown in Table 2. :

W1W1 W2W2 W3W3 W4W4 W5W5 W6W6 W7W7 W8W8 W9W9 W10W10 W11W11 W12W12 W13W13 W14W14 W15W15 1,1(1)1,1(1) d1d1 d101d101 d111d111 d121d121 d131d131 d141d141 d151d151 d161d161 d171d171 d181d181 d191d191 d1A1d1A1 d1B1d1B1 d1C1d1C1 d1D1d1D1 1,2(2)1,2(2) d2d2 d102d102 d112d112 d122d122 d132d132 d142d142 d152d152 d162d162 d172d172 d182d182 d192d192 d1A2d1A2 d1B2d1B2 d1C2d1C2 d1D2d1D2 1,3(3)1,3(3) d3d3 d103d103 d113d113 d123d123 d133d133 d143d143 d153d153 d163d163 d173d173 d183d183 d193d193 d1A3d1A3 d1B3d1B3 d1C3d1C3 d1D3d1D3 1,4(4)1,4(4) d4d4 d104d104 d114d114 d124d124 d134d134 d144d144 d154d154 d164d164 d174d174 d184d184 d194d194 d1A4d1A4 d1B4d1B4 d1C4d1C4 d1D4d1D4 2,12,1 d201d201 d211d211 d221d221 d231d231 d241d241 d251d251 d261d261 d271d271 d281d281 d291d291 d2A1d2A1 d2B1d2B1 d2C1d2C1 d2D1d2D1 2,22,2 d202d202 d212d212 d222d222 d232d232 d242d242 d252d252 d262d262 d272d272 d282d282 d292d292 d2A2d2A2 d2B2d2B2 d2C2d2C2 d2D2d2D2 2,32,3 d203d203 d213d213 d223d223 d233d233 d243d243 d253d253 d263d263 d273d273 d283d283 d293d293 d2A3d2A3 d2B3d2B3 d2C3d2C3 d2D3d2D3 2,42,4 d204d204 d214d214 d224d224 d234d234 d244d244 d254d254 d264d264 d274d274 d284d284 d294d294 d2A4d2A4 d2B4d2B4 d2C4d2C4 d2D4d2D4 3,13,1 d301d301 d311d311 d321d321 d331d331 d341d341 d351d351 d361d361 d371d371 d381d381 d391d391 d3A1d3A1 d3B1d3B1 d3C1d3C1 d3D1d3D1 3,23,2 d302d302 d312d312 d322d322 d332d332 d312d312 d352d352 d362d362 d372d372 d382d382 d392d392 d3A2d3A2 d3B2d3B2 d3C2d3C2 d3D2d3D2

3,33,3 d303d303 d313d313 d323d323 d333d333 d343d343 d353d353 d363d363 d373d373 d383d383 d393d393 d3A3d3A3 d3B3d3B3 d3C3d3C3 d3D3d3D3 3,43,4 d304d304 d314d314 d324d324 d334d334 d344d344 d354d354 d364d364 d374d374 d384d384 d394d394 d3A4d3A4 d3B4d3B4 d3C4d3C4 d3D4d3D4 4,14,1 d401d401 d411d411 d421d421 d431d431 d441d441 d451d451 d461d461 d471d471 d481d481 d491d491 d4A1d4A1 d4B1d4B1 d4C1d4C1 d4D1d4D1 4,24,2 d402d402 d412d412 d422d422 d432d432 d442d442 d452d452 d462d462 d472d472 d482d482 d492d492 d4A2d4A2 d4B2d4B2 d4C2d4C2 d4D2d4D2 4,34,3 d403d403 d413d413 d423d423 d433d433 d443d443 d453d453 d463d463 d473d473 d483d483 d493d493 d4A3d4A3 d4B3d4B3 d4C3d4C3 d4D3d4D3 4,44,4 d404d404 d414d414 d424d424 d434d434 d444d444 d454d454 d464d464 d474d474 d484d484 d494d494 d4A4d4A4 d4B4d4B4 d4C4d4C4 d4D4d4D4

表2Table 2

其中,表中d后面标注的三个数字代表的含义为:Among them, the meanings of the three numbers marked after d in the table are:

第一个数字表示一个色块喷印使用的首个喷孔打印的灰度级;The first number indicates the gray level printed by the first nozzle hole used for printing a color patch;

第二个数字表示一个色块使用的中间喷孔打印的数量(以16进制表示),其中,所述中间喷孔是指实际打印线宽使用的喷孔除了使用的首个喷孔和最后使用的末喷孔之外的其他喷孔;且使用中间喷孔打印的灰度级大于使用的首个喷孔打印的灰度级、且大于该实际打印线宽使用的末喷孔打印的灰度级;The second number indicates the number of middle nozzle holes used by a color block (expressed in hexadecimal), wherein, the middle nozzle hole refers to the nozzle hole used by the actual printing line width except the first nozzle hole and the last nozzle hole used Other orifices other than the last orifice used; and the gray level printed by using the middle orifice is greater than the gray level printed by the first orifice used, and greater than the gray level printed by the last orifice used for the actual printing line width degree level;

第三个数字表示一个色块喷印使用的最后使用的喷孔打印的灰度级。The third number indicates the gray level printed by the last used orifice used to print a patch.

需要说明的是,使用的中间喷孔打印的灰度级可以是喷墨打印设备所使用的最高灰度级,这里不做限制。It should be noted that the gray level printed by the middle nozzle hole may be the highest gray level used by the inkjet printing device, and there is no limitation here.

步骤103:将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码。Step 103: Input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, traverse to obtain the one-dimensional barcode dot matrix information, and print out the one-dimensional barcode dot matrix information according to the one-dimensional barcode dot matrix information barcode.

在步骤103中,首先,将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,替换设置的理论打印线宽信息,并修正条码验证的可译码计算值。In step 103, firstly, input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, replace the set theoretical printing line width information, and correct the decodable calculated value of the barcode verification.

其次,利用修正后的可译码计算值作为条码生成标准,选择满足设定条件的条码排列方式作为待打印的一维条码的点阵信息。Secondly, using the corrected decodable calculation value as the barcode generation standard, select the barcode arrangement that meets the set conditions as the dot matrix information of the one-dimensional barcode to be printed.

最后,根据所述一维条码点阵信息,打印得到一维条码。Finally, according to the dot matrix information of the one-dimensional barcode, the one-dimensional barcode is printed.

通过本发明实施例一的方案,获取多灰度级的喷墨打印设备打印的包含了色块的灰度级以及所述色块的实际打印线宽信息的实验图像信息;分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码;这样,有效避免了由于打印介质、墨水以及干燥环境等外在因素以及喷头物理分辨率不足导致条码打印质量低的问题,提高了一维条码的打印质量,尤其是低模数的一维条码的打印质量。Through the solution of Embodiment 1 of the present invention, the experimental image information printed by the multi-grayscale inkjet printing device including the grayscale of the color block and the actual printing line width information of the color block is obtained; the experimental image is analyzed Information, to obtain the statistical value of the actual printing line width information corresponding to each gray level; input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, and traverse to obtain the one-dimensional barcode dot matrix information , and according to the dot matrix information of the one-dimensional barcode, the one-dimensional barcode is printed; in this way, the problem of low printing quality of the barcode due to external factors such as the printing medium, ink and drying environment and the insufficient physical resolution of the nozzle is effectively avoided, and the improvement is improved. The printing quality of one-dimensional barcodes, especially the printing quality of low modulus one-dimensional barcodes.

实施例二:Embodiment two:

如图2所示,为本发明实施例二提供的一种一维条码的生成设备的结构示意图,本发明实施例二是与本发明实施例一在同一发明构思下的发明,所述生成设备包括:获取模块11、分析模块12和生成模块13,其中:As shown in Figure 2, it is a schematic structural diagram of a one-dimensional barcode generating device provided by Embodiment 2 of the present invention. Embodiment 2 of the present invention is an invention under the same inventive concept as Embodiment 1 of the present invention. The generating device Including: acquisition module 11, analysis module 12 and generation module 13, wherein:

获取模块11,用于获取多灰度级的喷墨打印设备打印的实验图像信息,其中,所述实验图像信息中包含了色块的灰度级以及所述色块的实际打印线宽信息;The obtaining module 11 is used to obtain the experimental image information printed by the multi-grayscale inkjet printing device, wherein the experimental image information includes the grayscale of the color block and the actual printing line width information of the color block;

分析模块12,用于分析所述实验图像信息,得到每一个灰度级对应的实际打印线宽信息的统计值;The analysis module 12 is used to analyze the experimental image information, and obtain the statistical value of the actual printing line width information corresponding to each gray level;

生成模块13,用于将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,遍历得到一维条码点阵信息,并根据所述一维条码点阵信息,打印得到一维条码。The generation module 13 is used for inputting the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, traversing to obtain the one-dimensional barcode dot matrix information, and printing according to the one-dimensional barcode dot matrix information Get a one-dimensional barcode.

具体地,所述分析模块12,用于获取所述实验图像信息中包含的灰度条宽组合序列,其中,所述灰度条宽组合序列中包含了物理灰度级数和打印每一个色块使用的喷孔数量;Specifically, the analysis module 12 is configured to obtain the grayscale bar width combination sequence contained in the experimental image information, wherein the grayscale bar width combination sequence includes the physical grayscale levels and the number of prints for each color. The number of orifices used by the block;

利用图像分析软件,测量得到每一个灰度级对应的实际打印线宽信息的统计值,其中,所述实际打印线宽信息的统计值包括一个实际打印线宽使用的首个喷孔打印的灰度级、该实际打印线宽使用的中间喷孔打印的数量、该实际打印线宽使用的末喷孔打印的灰度级。Using image analysis software, the statistical value of the actual printing line width information corresponding to each gray level is measured, wherein the statistical value of the actual printing line width information includes the gray value printed by the first nozzle hole used for the actual printing line width degree, the number of middle orifice printing used by the actual printing line width, and the gray level of the final orifice printing used by the actual printing line width.

所述中间喷孔是指实际打印线宽使用的喷孔除了使用的首个喷孔和最后使用的末喷孔之外的其他喷孔。The middle nozzle hole refers to other nozzle holes except the first nozzle hole used and the last nozzle hole used for the actual printing line width.

每一个实际打印线宽使用的中间喷孔打印的灰度级大于该实际打印线宽使用的首个喷孔打印的灰度级、且大于该实际打印线宽使用的末喷孔打印的灰度级。The gray level printed by the middle orifice used by each actual printing line width is greater than the gray level printed by the first orifice used by the actual printed line width, and greater than the gray level printed by the last orifice used by the actual printed line width class.

每一个实际打印线宽使用的中间喷孔打印的灰度级是喷墨打印设备所使用的最高灰度级。The gray level printed by the middle orifice used for each actual printing line width is the highest gray level used by the inkjet printing device.

具体地,所述生成模块13,具体用于将所述每一个灰度级对应的实际打印线宽信息的统计值输入条码生成软件,替换设置的理论打印线宽信息,并修正条码验证的可译码计算值;Specifically, the generating module 13 is specifically configured to input the statistical value of the actual printing line width information corresponding to each gray level into the barcode generation software, replace the set theoretical printing line width information, and correct the possibility of barcode verification. Decode the computed value;

利用修正后的可译码计算值作为条码生成标准,选择满足设定条件的条码排列方式作为待打印的一维条码的点阵信息。Using the corrected decodable calculation value as the barcode generation standard, the barcode arrangement that meets the set conditions is selected as the dot matrix information of the one-dimensional barcode to be printed.

需要说明的是,本发明实施例二所述的设备可以是硬件实现的设备,也可以是软件实现的设备,这里不做限定。It should be noted that the device described in Embodiment 2 of the present invention may be a device implemented by hardware or a device implemented by software, which is not limited here.

本领域的技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices (devices), or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (12)

1. a kind of bar code generation method, it is characterised in that including:
The experimental image information of the ink jet printing device printing of multi-grey level is obtained, wherein, included in the experimental image information The actual printing line width information of the gray level of color lump and the color lump;
The experimental image information is analyzed, the statistical value of the corresponding actual printing line width information of each gray level is obtained;
By the statistical value input bar code generation software of the corresponding actual printing line width information of each described gray level, traversal is obtained Bar code lattice information, and according to the bar code lattice information, printing obtains bar code.
2. the method as described in claim 1, it is characterised in that the analysis experimental image information, obtains each gray level The statistical value of corresponding actual printing line width information, including:
The grayscale bar wide array sequence included in the experimental image information is obtained, wherein, in the grayscale bar wide array sequence Contain physics number of greyscale levels and print the nozzle hole number that each color lump is used;
Using image analysis software, measurement obtains the statistical value of the corresponding actual printing line width information of each gray level, wherein, The actual statistical value for printing line width information includes the gray level for the first spray orifice printing that an actual printing line width is used, is somebody's turn to do The gray level for the last spray orifice printing that the quantity for the middle spray orifice printing that actual printing line width is used, the actual printing line width are used.
3. method as claimed in claim 2, it is characterised in that the middle spray orifice refers to the spray orifice that actual printing line width is used Other spray orifices in addition to the first spray orifice used and the last spray orifice finally used.
4. method as claimed in claim 2 or claim 3, it is characterised in that the middle spray orifice that each actual printing line width is used is beaten The gray level of print is more than the gray level for the first spray orifice printing that the actual printing line width is used and made more than the actual printing line width The gray level of last spray orifice printing.
5. method as claimed in claim 4, it is characterised in that the middle spray orifice printing that each actual printing line width is used Gray level is highest gray level used in ink jet printing device.
6. the method as described in claim 1 or 5, it is characterised in that will the corresponding actual print wire of each described gray level The statistical value input bar code generation software of wide information, traversal obtains bar code lattice information, including:
By the statistical value input bar code generation software of the corresponding actual printing line width information of each described gray level, replace and set Theoretical printing line width information, and correct the decodable code calculated value of bar code checking;
Standard is generated by the use of revised decodable code calculated value as bar code, selection meets the bar code arrangement mode imposed a condition and made For the lattice information of bar code to be printed.
7. a kind of bar code generates equipment, it is characterised in that including:
Acquisition module, for obtaining the experimental image information that the ink jet printing device of multi-grey level is printed, wherein, the lab diagram As containing the gray level of color lump and the actual printing line width information of the color lump in information;
Analysis module, for analyzing the experimental image information, obtains the corresponding actual printing line width information of each gray level Statistical value;
Generation module, for the corresponding actual statistical value input bar code for printing line width information of each described gray level to be generated Software, traversal obtains bar code lattice information, and according to the bar code lattice information, printing obtains bar code.
8. equipment is generated as claimed in claim 7, it is characterised in that
The analysis module, the grayscale bar wide array sequence included for obtaining in the experimental image information, wherein, the ash Physics number of greyscale levels is contained in degree bar wide array sequence and the nozzle hole number that each color lump is used is printed;
Using image analysis software, measurement obtains the statistical value of the corresponding actual printing line width information of each gray level, wherein, The actual statistical value for printing line width information includes the gray level for the first spray orifice printing that an actual printing line width is used, is somebody's turn to do The gray level for the last spray orifice printing that the quantity for the middle spray orifice printing that actual printing line width is used, the actual printing line width are used.
9. equipment is generated as claimed in claim 8, it is characterised in that the middle spray orifice refers to what actual printing line width was used Other spray orifices of spray orifice in addition to the first spray orifice used and the last spray orifice finally used.
10. equipment is generated as claimed in claim 8 or 9, it is characterised in that the middle spray that each actual printing line width is used The gray level of hole printing is more than the gray level for the first spray orifice printing that the actual printing line width is used and more than the actual print wire The gray level for the last spray orifice printing that width is used.
11. equipment is generated as claimed in claim 10, it is characterised in that the middle spray orifice that each actual printing line width is used The gray level of printing is highest gray level used in ink jet printing device.
12. the generation equipment as described in claim 7 or 11, it is characterised in that
The generation module, specifically for the corresponding actual statistical value for printing line width information of each described gray level is inputted Bar code generates software, replaces the theoretical printing line width information set, and correct the decodable code calculated value of bar code checking;
Standard is generated by the use of revised decodable code calculated value as bar code, selection meets the bar code arrangement mode imposed a condition and made For the lattice information of bar code to be printed.
CN201310529141.8A 2013-10-30 2013-10-30 The generation method and equipment of a kind of bar code Expired - Fee Related CN104598939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310529141.8A CN104598939B (en) 2013-10-30 2013-10-30 The generation method and equipment of a kind of bar code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310529141.8A CN104598939B (en) 2013-10-30 2013-10-30 The generation method and equipment of a kind of bar code

Publications (2)

Publication Number Publication Date
CN104598939A CN104598939A (en) 2015-05-06
CN104598939B true CN104598939B (en) 2017-09-12

Family

ID=53124711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310529141.8A Expired - Fee Related CN104598939B (en) 2013-10-30 2013-10-30 The generation method and equipment of a kind of bar code

Country Status (1)

Country Link
CN (1) CN104598939B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1146418A2 (en) * 2000-04-14 2001-10-17 Seiko Epson Corporation Method of printing two-dimensional code symbols, printer and printer driver for carrying out the invention, and data storage medium
CN1331884A (en) * 1998-12-25 2002-01-16 可比雅株式会社 Method and device for image processing
CN101758665A (en) * 2008-12-25 2010-06-30 兄弟工业株式会社 Print controller for controlling ink jet printer
CN102653172A (en) * 2011-03-04 2012-09-05 精工爱普生株式会社 Image forming apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1331884A (en) * 1998-12-25 2002-01-16 可比雅株式会社 Method and device for image processing
EP1146418A2 (en) * 2000-04-14 2001-10-17 Seiko Epson Corporation Method of printing two-dimensional code symbols, printer and printer driver for carrying out the invention, and data storage medium
CN101758665A (en) * 2008-12-25 2010-06-30 兄弟工业株式会社 Print controller for controlling ink jet printer
CN102653172A (en) * 2011-03-04 2012-09-05 精工爱普生株式会社 Image forming apparatus and method

Also Published As

Publication number Publication date
CN104598939A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN1252978C (en) Image processing device and image processing method
CN1094422C (en) Image formation system and apparatus assembling said system
CN1399243A (en) Display device, display method and record medium with display control program
CN1305006C (en) Method and system for profviding promated information to image processing apparatus
CN100351770C (en) Layout adjustment method and apparatus
CN1098515C (en) Character generating apparatus and method of the same
CN1249655C (en) Photoelectric device driving device, display device, driving method and weight determining method
CN1642747A (en) Test chart, geometrical characteristic analysis system, geometrical characteristic anaylysis method, printer, and ink-jet printer
CN1882026A (en) Method of generating information embedded halftone screen code
CN1919604A (en) Printing device, printing method and image processing device, image processing method
CN1761937A (en) A printing and display device
CN1731399A (en) Information processing apparatus, control method therefor, and program
CN1396537A (en) Print cost accounting method, device and system, printer driver, print device and system and print publishing system
CN1809116A (en) Image processing apparatus, image forming apparatus, image reading process apparatus, image processing method
CN1283460C (en) Liquid ejecting device and method
CN101046892A (en) Graphics-rendering apparatus
CN1399244A (en) Character display device, method and program and record medium therefor
CN1874894A (en) Printing method, printing device, printing system and test pattern
CN104598939B (en) The generation method and equipment of a kind of bar code
CN1841407A (en) Image processing apparatus
CN1140862A (en) Method and apparatus for forming font and font produced method and apparatus for drawing blurred figure
CN1533902A (en) Method and apparatus for forming image
CN1847978A (en) Printing apparatus and correction data generating method
CN1787598A (en) Managing device and control method, print processing system, program and recording medium
CN1104703C (en) Method and apparatus for producing paper fiber structure date, paper fiber structure data, method and apparatus for drawing bled figure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170912

Termination date: 20191030

CF01 Termination of patent right due to non-payment of annual fee