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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000007639 printing Methods 0.000 claims abstract description 149
- 238000007641 inkjet printing Methods 0.000 claims abstract description 25
- 238000004458 analytical method Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 claims description 9
- 239000007921 spray Substances 0.000 claims 24
- 238000005259 measurement Methods 0.000 claims 2
- 239000011159 matrix material Substances 0.000 abstract description 25
- 238000001035 drying Methods 0.000 abstract description 4
- 238000004590 computer program Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012795 verification Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 241001270131 Agaricus moelleri Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
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
技术领域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. :
表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)
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)
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 |
-
2013
- 2013-10-30 CN CN201310529141.8A patent/CN104598939B/en not_active Expired - Fee Related
Patent Citations (4)
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 |