如何生成可靠扫描的小型高密度线性条形码? [英] How do you generate small, high-density linear barcodes that scan reliably?

查看:153
本文介绍了如何生成可靠扫描的小型高密度线性条形码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力将POS系统集成到我的网站.所以我想生成条形码.我正在使用SKU,因为对格式进行编码的数据字段是XXXXX-XXX-XXX-XXX.

I am working to integrate POS system to my site. So I want to generate barcode. I am using SKU as the data fields to encode the formate is XXXXX-XXX-XXX-XXX.

X是从0到9的数字,因此在进行研究后,我发现代码128最正确地纠正了我.尺寸问题,当我使用barbecue生成条形码并调整图像大小时,扫描仪无法读取条形码,物品上的标签为2'x 3 1/2'英寸.所以,请您解释一下尺寸限制是什么,我能得到的最小尺寸是多少英寸.

X is a digit from 0 to 9 so after doing research I found code 128 is the best correct me if I am wrong. The problem with size, The label on items are 2' by 3 1/2' inches, when I generate barcode using barbecue and resize the image the scanner cannot read the barcode. So could you please explain what is the size constrains and what is the smallest size that I can get in inches.

推荐答案

高质量条形码的生产要求从头到尾精确地控制打印过程.

Production of high-quality barcodes requires that the printing process is accurately controlled from end-to-end.

代码128的优化

代码128的通用用途没有强制性的大小限制,但是代码128在特定行业的特定应用将定义此类约束.为了您的内部目的,只有实际限制会规定较低的尺寸限制,例如打印机的保真度和扫描仪的功能.

There are no mandated size limits imposed on generic uses of Code 128, however specific applications of Code 128 to particular industries will define such constraints. For your in-house purposes only practical constraints will dictate a lower size limit such as the fidelity of your printer and the capabilities of your scanner.

确保在代码128中尽可能紧凑地表示数据(例如,通过使用将由模式C"进行双倍密度压缩的纯数字数据),将减少所需的条形和空格数,调整符号大小时将提供更大的灵活性.有关更多详细信息,请参见此答案.

Ensuring that the data is represented within the Code 128 as compactly as possible (for example by using numeric-only data that will be double-density compressed by "Mode C") will reduce the required number of bars and spaces, which will provide more flexibility when sizing the symbol. See this answer for more detail.

通过在扫描后重新构建SKU来删除破折号是否可行?考虑带有和不带有破折号的SKU的Code 128的不同宽度,以查看其影响:

Is it practical to drop the dashes from your SKUs perhaps by reconstituting them after scanning? Consider the different widths of Code 128s for your SKUs with and without dashes to see the impact of this:

在符号的任一端必须保持至少X尺寸(窄条的宽度)十倍的安静区域.如图所示,应该将安静区域视为Code 128符号的组成部分.

A quiet zone of at least ten times the X-dimension (width of a narrow bar) must be maintained at either end of the symbol. The quiet zone should be considered an integral part of the Code 128 symbol as this image shows.

通用线性条形码的优化

通常,在调整符号大小时,应力求使条形码的宽度最大化,但前提是条形码应能舒适地位于扫描仪的视场范围内,并受以下限制:

When sizing the symbol in general you should aim to maximise the width of the barcode provided that it fits comfortably within the scanner's field of view subject to the following constraints:

避免使用抗锯齿功能,如果您使用的是低分辨率打印过程,那么确保输出符号的X尺寸是打印机像素尺寸的整数倍特别重要.这样,您就可以避免由于像素掠夺而将原本打算宽度相同的线条栅格化为不同的宽度.

Avoid anti-aliasing and if you are using a low-resolution printing process then it is especially important to ensure that the X-dimension of the output symbol is an integer multiple of the printer's pixel size. This way you can avoid lines intended to have the same width from being rasterised to differing widths due to pixel-grazing as demonstrated in this image.

对于某些打印过程,软件可能还需要通过将条的宽度减小固定量来补偿墨水渗出,同时保持准确的边对边间距.

With certain printing processes it may also be necessary for the software to compensate for ink bleed by reducing the width of bars by a fixed amount whilst maintaining accurate edge-to-edge spacing.

代码128的规范(ISO/IEC 15417)对此后述过程进行了如下描述:

The specification for Code 128 (ISO/IEC 15417) describes this latter processes as follows:

用于在基于像素的打印机上创建条形码的图形软件 必须将每个条形图和空间精确地缩放到像素的间距 正在使用的打印机.适用于边缘到类似边缘的可解码符号 像代码128一样,组成每个符号字符的像素数 必须是模块数量的固定且恒定的整数倍 在符号字符中.//设计通用打印软件 支持广泛的打印机应向用户提供 调整X尺寸和钢筋宽度增长或损失的能力.

Graphics software used to create bar codes on pixel-based printers must scale each bar and space exactly to the pixel pitch of the printer being used. For edge to similar edge decodable symbologies like Code 128 the number of pixels comprising each symbol character must be a fixed and constant integer multiple of the number of modules in the symbol character. // General purpose printing software designed to support a wide range of printers should provide the user the capability of adjusting the X dimension and bar width growth or loss.

此答案演示了不遵循这些过程控制时发生的情况.

This answer demonstrates what happens when these process controls aren't followed.

这篇关于如何生成可靠扫描的小型高密度线性条形码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆