WO2005001749A1 - Method of enhancing digital image information of two-dimensional bar code - Google Patents

Method of enhancing digital image information of two-dimensional bar code Download PDF

Info

Publication number
WO2005001749A1
WO2005001749A1 PCT/CN2004/000698 CN2004000698W WO2005001749A1 WO 2005001749 A1 WO2005001749 A1 WO 2005001749A1 CN 2004000698 W CN2004000698 W CN 2004000698W WO 2005001749 A1 WO2005001749 A1 WO 2005001749A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
pixels
digital image
original
blank
Prior art date
Application number
PCT/CN2004/000698
Other languages
French (fr)
Chinese (zh)
Inventor
Longxiang Bian
Original Assignee
Lp Technologies (Shanghai) Inc.
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 Lp Technologies (Shanghai) Inc. filed Critical Lp Technologies (Shanghai) Inc.
Publication of WO2005001749A1 publication Critical patent/WO2005001749A1/en

Links

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/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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

Abstract

A method for providing enhanced processing to two-dimension bar code digital images along horizontal and vertical directions simultaneously. In the method, digital images is composed of a original pixel matrix of n row x m column, and the method includes following steps: (1) inserting k blank pixels between two adjacent original pixels along horizontal direction of the pixel matrix of n row x m column so as to form a pixel matrix of (k(n-1)+n) row x m column; (2) inserting k' blank pixels between two adjacent pixels along vertical direction of the pixel matrix of (k(n-1)+n) row x m column so as to form a pixel matrix of (k(n-1)+n) row x (k'(m-1)+m) column; (3) for the blank pixel which is inserted between two adjacent original pixels along horizontal direction or vertical direction, the attribute value is obtained by interpolation based the attribute values of two original pixels, for others, their attribute value is obtained by interpolation based the attribute value of the closest (4) original pixels.

Description

二维条形码数字图像信息的增强方法 技术领域  Method for enhancing two-dimensional barcode digital image information
本发明涉及二维数字图像信息的增强方法, 特别涉及一种通过插值增强 处理来提高二维条形码数字图像分辨率的方法。 背景技术  The present invention relates to a method for enhancing two-dimensional digital image information, and in particular, to a method for improving resolution of a two-dimensional barcode digital image through interpolation enhancement processing. Background technique
计算机具有出色的计算能力和存储容量, 但是相比之下, 数据输入能力 却无法与之相匹配, 这限制了计算机处理能力的提高。 为此, 人们发明了条 形码, 一种为便于机器识读而专门设计的图形符号系统。  Computers have excellent computing power and storage capacity, but in contrast, data input capabilities cannot match them, which limits the increase in computer processing power. For this reason, people invented bar codes, a graphic symbol system specially designed for easy machine reading.
为了提高条形码的信息容量, 开始时几条一维条形码被堆栈在一起组成 堆栈码。 为了进一步提高信息存储容量, 必须提高信息存储密度, 由此诞生 了一种在原理和结构上与一维条形码和堆栈码完全不同的二维条形码。 由于 类似二维条形码之类的二维数字图像具有很高的信息容量和信息密度, 因此 对于图像处理系统也提出了更高的要求。 图 1 示出了对二维条形码进行识读 的图像处理系统。 如图 1所示, 系统包括图像摄入装置 1、 图像转换装置 2、 图像存储器 3、 图像处理装置 4和译码装置 5。 首先, 图像摄入装置 1将二维 条形码图像转换为电模拟信号, 然后图像转换装置 2 将电模拟信号转换成数 字信号, 并由图像存储器 3 存储数字信号形式的二维条形码数字化图像。 图 像处理装置 4 从数字化图像中提取出能进行二维条形码译码的有效信息, 并 由译码装置 5 对这些译码的有效信息进行译码和输出编译在二维条形码中的 文字及图形 (如相片、 指紋等)信息。  In order to increase the information capacity of the bar code, several one-dimensional bar codes are initially stacked together to form a stack code. In order to further increase the information storage capacity, the information storage density must be increased. As a result, a two-dimensional bar code that is completely different from the one-dimensional bar code and the stack code in principle and structure was born. Because two-dimensional digital images such as two-dimensional barcodes have high information capacity and information density, higher requirements are also placed on image processing systems. Figure 1 shows an image processing system that reads two-dimensional barcodes. As shown in FIG. 1, the system includes an image intake device 1, an image conversion device 2, an image memory 3, an image processing device 4, and a decoding device 5. First, the image ingesting device 1 converts a two-dimensional barcode image into an electric analog signal, and then the image converting device 2 converts the electric analog signal into a digital signal, and the image memory 3 stores a two-dimensional barcode digital image in the form of a digital signal. The image processing device 4 extracts effective information capable of two-dimensional barcode decoding from the digitized image, and the decoding device 5 decodes the decoded effective information and outputs characters and graphics compiled in the two-dimensional barcode ( (Such as photos, fingerprints, etc.).
为了满足高容量和密度的数字图像的识读要求, 目前基本上有两种方法, 以下作进一步的描述。  In order to meet the requirements of high-capacity and high-density digital image reading, there are basically two methods at present, which will be further described below.
一种解决方法是提高图像摄入装置中光电传感器的分辩率并扩大摄入图 像的尺寸。 但是光电传感器的分辨率受工艺水平的限制, 提高已经非常困难, 而且系统成本也随分辨率的提高而大幅度上升。  One solution is to increase the resolution of the photoelectric sensor in the image capture device and increase the size of the captured image. However, the resolution of the photoelectric sensor is limited by the process level, and it is very difficult to improve the resolution. Moreover, the system cost also increases greatly with the increase of the resolution.
另一种解决方法是在图像处理装置中对数字图像进行增强处理。 具体方 式为, 釆用链码 (chain code)对一维条形码进行扫描, 然后沿着链码扫描轨迹, 对一维条形码的条码和空白 (space)进行插值处理从而提高一维条形码信息的分 辨率。 但是这种方法仅限于沿一个方向上作图像增强处理, 因此只适用于一 维条形码之类的数字图像, 对于二维条形码之类的数字图像信息的增强则无 法应用。 发明内容 Another solution is to enhance the digital image in an image processing device. Specifically, the one-dimensional barcode is scanned with a chain code, and then the trajectory is scanned along the chain code to perform interpolation processing on the barcode and the space of the one-dimensional barcode to improve the analysis of the one-dimensional barcode information. Resolution. However, this method is limited to image enhancement processing in one direction, so it is only applicable to digital images such as one-dimensional barcodes, and cannot be applied to the enhancement of digital image information such as two-dimensional barcodes. Summary of the invention
本发明的目的是提供一种二维条形码数字图像信息的增强方法, 其可以 沿水平和垂直二个方向对二维条形码数字图像信息同时进行增强处理。  An object of the present invention is to provide a method for enhancing two-dimensional barcode digital image information, which can simultaneously enhance the two-dimensional barcode digital image information in both horizontal and vertical directions.
本发明的目的通过以下技术方案实现:  The object of the present invention is achieved by the following technical solutions:
一种二维条形码数字图像信息的增强方法, 所述数字图像由 n行 X m列 的原始像素矩阵组成, 每个原始像素具有一定的属性取值, 包含以下步骤: A method for enhancing two-dimensional barcode digital image information. The digital image is composed of an original pixel matrix of n rows and x m columns. Each original pixel has a certain attribute value and includes the following steps:
(1)沿所述 n行 X m列像素矩阵的水平方向, 在两个相邻的原始像素之间插 入 k个空白像素以构成 (k(n-l)+n)行 Xm列的像素矩阵; (1) inserting k blank pixels between two adjacent original pixels along the horizontal direction of the pixel matrix of n rows by X m columns to form a pixel matrix of (k (n-1) + n) rows by Xm columns;
(2)沿所述 0 η-1)+η)行 Xm列的像素矩阵的垂直方向, 在两个相邻像素之间 插入 k'个空白像素以构成 (k(n-l)+n)行 X (k'(m-l)+m)列的像素矩阵; 以及  (2) Insert k 'blank pixels between two adjacent pixels along the vertical direction of the pixel matrix of 0m-1) + n) rows Xm columns to form (k (nl) + n) rows X a pixel matrix of (k '(ml) + m) columns; and
(3)在所述 (k(n-l)+n)行 X (k'(m-l)+m)列像素矩阵中, 对于沿水平方向或垂直方 向插入在两个相邻原始像素之间的空白像素, 其属性取值根据这两个原始像素的 属性取值作插值计算得到, 对于其它的空白像素, 其属性取值根据与其最邻近的 4个原始像素的属性取值作插值计算得到。  (3) In the (k (nl) + n) row X (k '(ml) + m) column pixel matrix, for a blank pixel inserted between two adjacent original pixels in the horizontal or vertical direction , Its attribute value is obtained by interpolation based on the attribute values of the two original pixels, and for other blank pixels, its attribute value is obtained by interpolation based on the attribute values of the four original pixels nearest to it.
比较好的是, 在上述二维条形码数字图像信息的增强方法中, 每个像素的 属性取值为其灰度值。 或者, 每个像素的属性取值为其三基色的强度值。或者, 每个像素的属性取值为其荧光发光属性。  It is better that in the above-mentioned two-dimensional barcode digital image information enhancement method, the attribute value of each pixel is its gray value. Or, the attribute value of each pixel is the intensity value of its three primary colors. Alternatively, the attribute value of each pixel is its fluorescence emission property.
比较好的是, 在上述二维条形码数字图像信息的增强方法中, 所述插值计 算按照线性插值算法施行。 '  Preferably, in the above-mentioned method for enhancing digital image information of a two-dimensional barcode, the interpolation calculation is performed according to a linear interpolation algorithm. '
上述方法的优点是通过将原始数字图像扩大数倍并且利用插值算法确定 空白像素的属性取值, 可以对低分辩率和小图像尺寸图像摄入装置获取的高 信息容量和密度的二维条形码图像进行识读, 降低了产品成本, 提高了二维 条形码的识读正确率。 该方法不仅可用于二维条形码识读器, 而且可以推广 至一维条形码的识读器及其它目的、 用途的二维数字图像处理系统。 附图说明 通过以下结合附图对本发明较佳实施例的描述, 可以进一步理解本发明 的目的、 特征和优点, 其中: The advantage of the above method is that by enlarging the original digital image several times and determining the values of the attributes of the blank pixels by using interpolation algorithms, it is possible to obtain a two-dimensional barcode image with high information capacity and density obtained by a low-resolution and small-image-size image intake device Performing the reading reduces the product cost and improves the correct reading rate of the two-dimensional barcode. This method can be used not only for two-dimensional bar code readers, but also for one-dimensional bar code readers and other two-dimensional digital image processing systems for other purposes. BRIEF DESCRIPTION OF THE DRAWINGS The objectives, features, and advantages of the present invention can be further understood through the following description of the preferred embodiments of the present invention with reference to the accompanying drawings, in which:
图 1示出了对二维条形码进行识读的图像处理系统。  FIG. 1 shows an image processing system for reading a two-dimensional barcode.
图 2a和 2b分别为二维条形码的原始数字图像和映射数字图像的示意图。 具体实施方式  Figures 2a and 2b are schematic diagrams of the original digital image and the mapped digital image of the two-dimensional barcode, respectively. detailed description
增强处理前的二维条形码数字图像信息实际上可以视为由若干像素以矩 阵形式排列组成的点阵, 每个像素都位于其中一个矩阵点上并且具有一定的 属性取值, 这里的属性取值可以是该像素的灰度值、 三基色的强度值或者荧 光发光属性等光学属性。  The two-dimensional barcode digital image information before the enhancement processing can actually be regarded as a dot matrix composed of a plurality of pixels arranged in a matrix form. Each pixel is located on one of the matrix points and has a certain attribute value. The attribute value here It can be an optical property such as the gray value of the pixel, the intensity value of the three primary colors, or the fluorescence emission property.
本发明方法的核心思想是, 为了提高分辨率, 首先是将原始数字图像 (即上述 增强处理前的二维条形码数字图像, 以下将该数字图像内的像素称为原始像 素)沿水平方向和垂直方向放大, 具体而言, 以 n行 X m列的像素矩阵为例, 操 作方式为沿矩阵的水平方向, 在两个相邻原始像素之间插入 k个空白像素以构成 (k(n-l)+n)i Xm列的像素矩阵, 并且沿该 (k(n-l)+n)行 Xm列的像素矩阵的垂直方 向, 在两个相邻像素之间插入 k'个空白像素以构成 (k(n-l)+n)行 X (k'(m-l)+m)列的 映射像素矩阵。 然后, 根据原始像素的属性取值对空白像素的属性取值进行插值 计算, 具体而言, 在放大后的 (k(n-l)+n)行 X (k'(m-l)+m)列映射像素矩阵中, 对于 沿水平方向或垂直方向插入在两个相邻原始像素之间的空白像素, 可根据这两个 原始像素的属性取值进行插值计算得到, 对于其它的空白像素, 可根据与其最邻 近的 4个原始像素的属性取值作插值计算得到。 在上述插值计算中, 假设每个空 白像素的属性取值都与邻近原始像素的属性取值相关, 因此每个空白像素的属性 取值是其邻近原始像素属性取值与相应的相关程度乘积的总和, 即  The core idea of the method of the present invention is that, in order to improve the resolution, first of all, the original digital image (that is, the two-dimensional barcode digital image before the enhancement processing described above, and the pixels in the digital image are hereinafter referred to as original pixels) are horizontal and vertical Direction enlargement, specifically, taking a pixel matrix of n rows by m columns as an example, the operation mode is to insert k blank pixels between two adjacent original pixels along the horizontal direction of the matrix to form (k (nl) + n) i Xm column pixel matrix, and along the vertical direction of the (k (nl) + n) row Xm column pixel matrix, insert k 'blank pixels between two adjacent pixels to form (k (nl ) + n) mapped pixel matrix of row X (k '(ml) + m) column. Then, the attribute value of the blank pixel is interpolated according to the attribute value of the original pixel. Specifically, the pixel is mapped in the enlarged (k (nl) + n) row X (k '(ml) + m) column. In the matrix, blank pixels inserted between two adjacent original pixels in the horizontal or vertical direction can be calculated by interpolation according to the attribute values of these two original pixels. For other blank pixels, The attribute values of the neighboring 4 original pixels are calculated by interpolation. In the above interpolation calculation, it is assumed that the attribute value of each blank pixel is related to the attribute value of the neighboring original pixel, so the attribute value of each blank pixel is the product of its neighboring original pixel attribute value and the corresponding correlation degree. Sum, ie
N N
Ρ' ^Ρ^ η^Ν (1)  Ρ '^ Ρ ^ η ^ Ν (1)
这里 P'为某一空白像素的属性取值, Pi为该空白像素的邻近原始像素的属性取值, N为该空白像素邻近的原始像素的个数, Tii为邻近原始像素与该空白像素的相关 程度。 每对邻近像素与空白像素属性取值的相关程度 与它们之间的空间距离有 关, 当这种相关程度与距离呈线性关系时, 即称为线性插值, 如果呈非线性关系 时, 即称为非线性插值。 容易理解的是, 当像素是一个由多个点构成的区域时, 像素之间的空间距离即为多点区域内特定位置点之间的距离。 Here P 'is the attribute value of a blank pixel, Pi is the attribute value of the blank pixel adjacent to the original pixel, N is the number of primitive pixels adjacent to the blank pixel, and Tii is the number of neighboring original pixels and the blank pixel. Relevance. The correlation between each pair of neighboring pixels and the value of the blank pixel attribute is related to the spatial distance between them. Off, when this correlation degree has a linear relationship with distance, it is called linear interpolation, and if it is non-linear, it is called nonlinear interpolation. It is easy to understand that when a pixel is an area composed of multiple points, the spatial distance between pixels is the distance between specific position points in the multi-point area.
以下描述按照本发明增强处理方法的一个较佳实施例。 假设处理前的二 维条形码数字图像信息由 n行 X m列的像素矩阵组成, 其属性取值为像素的灰 度值, 并且为简单起见, 沿水平方向在两个相邻的原始像素之间仅插入一个空白 像素, 并沿垂直方向在两个相邻的像素之间仅插入一个空白像素。  A preferred embodiment of the enhancement processing method according to the present invention is described below. Assume that the two-dimensional barcode digital image information before processing is composed of a pixel matrix of n rows by m columns, and its attribute value is the gray value of the pixel. For simplicity, it is horizontally between two adjacent original pixels. Only one blank pixel is inserted, and only one blank pixel is inserted between two adjacent pixels in the vertical direction.
首先是原始像素矩阵的放大映射或插入处理步骤。 为此, 应将二维条形 码原始数字图像区域映射至另一个大于该原始数字图像区域的映射区域, 即 由(211-1:)行 X (2m-1)列的像素矩阵组成的数字图像区域。  The first is the enlargement mapping or interpolation processing steps of the original pixel matrix. To this end, the original digital image area of the two-dimensional barcode should be mapped to another mapping area larger than the original digital image area, that is, a digital image area composed of a pixel matrix of (211-1 :) rows X (2m-1) columns .
如图 2a所示, 在原始数字图像区域中, 每个像素可用数组 (i,j)表示其位 置, 用 Pi,j表示该像素的灰度值, 其中 i为水平坐标, 代表该像素在水平方向 上的序号 (假设从左到右), 并且 (n-l)≥i≥0, j 为垂直坐标, 代表该像素在垂直 方向上的序号 (假设从上到下), 并且 (m-l)≥j≥0。  As shown in FIG. 2a, in the original digital image area, each pixel can be represented by an array (i, j), and Pi, j can be used to represent the gray value of the pixel, where i is the horizontal coordinate, which represents that the pixel is horizontal. Sequence number in the direction (assuming from left to right), and (nl) ≥i≥0, j is the vertical coordinate, which represents the sequence number of the pixel in the vertical direction (assuming from top to bottom), and (ml) ≥j≥ 0.
如图 2b所示, 在映射数字图像区域中, 每个像素用数组 (i',j')表示其位置, 用 P'i,,j,表示该像素的灰度值, 其中 i,为水平坐标, 代表该像素在水平方向上的 序号 (假设从左到右), 并且 (2n-2)≥i,≥l, j,为垂直坐标, 代表该像素在垂直方 向上的序号 (假设从上到下), 并且 (2m-2)≥j '≥l。  As shown in FIG. 2b, in the mapped digital image area, each pixel is represented by an array (i ', j') and its position is represented by P'i ,, j, where i is the horizontal Coordinate, represents the serial number of the pixel in the horizontal direction (assuming from left to right), and (2n-2) ≥i, ≥l, j, is a vertical coordinate, represents the serial number of the pixel in the vertical direction (assuming from above) To the next), and (2m-2) ≥j'≥l.
对于原始像素, 其在映射数字图像区域内的坐标与在原始数字图像区域 内的坐标满足下列关系- i' =2i (2a)  For the original pixel, its coordinates in the mapped digital image area and its coordinates in the original digital image area satisfy the following relationship-i '= 2i (2a)
j ' =2j (2b) 因此原始像素灰度值在两个数字图像区域之间的映射关系为:
Figure imgf000006_0001
然后是对映射数字图像区域内的空白像素进行插值处理。 如图 2b所示, 在映射数字图像区域内, 每个原始像素点对应三个与其相邻的空白像素点, 分别位于其近邻着的右方、 下方和右下方。 以坐标为 (i,,j,)的原始像素点为例, 其三个相邻的对应空白像素点的坐标分别为 (i,+l ,j,)、 (i,j'+l,)和 (i'+l ,j,+l)。 根 据上述插值计算方式, 对于位于右方和下方的空白像素, 由于其分别处于两个相 邻的原始像素 (i',j')与 (i'+2,j')之间和 (i',j')与 (^'+2), 所以可根据相邻的两个原 始像素的灰度值和原始像素与空白像素之间的相关程度进行插值计算得到灰度 值。 对于位于右下方的空白像素, 其 4个原始像素 (i'j')、 (i,+2,j,)、 (i,,j,+2)与 (i'+2,j'+2)最邻近, 因此可根据相邻的 4个原始像素的灰度值和原始像素与空白 像素之间的相关程度进行插值计算得到灰度值。
j '= 2j (2b) Therefore, the mapping relationship between the gray value of the original pixel between the two digital image regions is:
Figure imgf000006_0001
Then, the blank pixels in the mapped digital image area are interpolated. As shown in FIG. 2b, in the mapped digital image area, each original pixel point corresponds to three blank pixel points adjacent to it, They are located to the right, lower, and lower right of their immediate neighbors. Taking the original pixel with coordinates (i ,, j,) as an example, the coordinates of three adjacent corresponding blank pixels are (i, + l, j,), (i, j '+ l,) And (i '+ l, j, + l). According to the above interpolation calculation method, for the blank pixels located on the right and below, since they are respectively located between two adjacent original pixels (i ', j') and (i '+ 2, j') and (i ' , j ') and (^' + 2), so the gray value can be obtained by interpolation calculation according to the gray value of two adjacent original pixels and the correlation between the original pixel and the blank pixel. For the blank pixel at the bottom right, its 4 original pixels (i'j '), (i, + 2, j,), (i ,, j, + 2) and (i' + 2, j '+ 2 ) Is the nearest neighbor, so the gray value can be obtained by interpolation calculation based on the gray values of the four adjacent original pixels and the correlation between the original pixels and the blank pixels.
最为常用的插值算法是线性插值处理算法, 该算法假设原始像素与空白像素 之间相关程度与他们之间的空间距离呈线性关系。 如果在本实施例中采用线性插 值算法, 则 3个空白像素的灰度值可以下式表示:  The most commonly used interpolation algorithm is a linear interpolation processing algorithm, which assumes that the correlation between the original pixel and the blank pixel is linear with the spatial distance between them. If a linear interpolation algorithm is used in this embodiment, the gray values of the three blank pixels can be expressed by the following formula:
P +u' = (P j-+P +2j 2 (4a) P + u '= (P j- + P +2 j 2 (4a)
^+ ϊ = Ρ ^ +2)/2 (4b)^ + ϊ = Ρ ^ +2 ) / 2 (4b)
Figure imgf000007_0001
对于映射数字图像区域内的所有空白像素点, 都可以利用上式, 根据邻 近的原始像素的灰度值插值计算得到相应的灰度值, 由此得到分辨率得到增 强的映射数字图像区域。
Figure imgf000007_0001
For all blank pixel points in the mapped digital image area, the above formula can be used to calculate the corresponding gray value according to the gray value interpolation of neighboring original pixels, thereby obtaining a mapped digital image area with enhanced resolution.
值得指出的是, 在本实施例中采用的是线性插值算法, 但是这并不意味 着本发明不能采用其它非线性算法, 实际上采用何种插值增强处理算法取决 于具体的应用环境而与本发明的核心思想无关。 此外, 在本实施例中, 虽然沿 水平方向和沿垂直方向在两个相邻的像素之间插入的是一个空白像素, 但是这仅 是为理解和叙述方便起见而作的假定, 实际上, 本领域内的普通技术人员在阅读 说明书上述描述部分之后, 很容易将本发明的原理推广至在相邻像素之间插入多 个空白像素并且两个方向上插入空白像素个数也不同的情形。  It is worth pointing out that the linear interpolation algorithm is used in this embodiment, but this does not mean that the present invention cannot use other non-linear algorithms. In fact, what kind of interpolation enhancement processing algorithm is used depends on the specific application environment. The core idea of the invention has nothing to do with it. In addition, in this embodiment, although a blank pixel is inserted between two adjacent pixels in the horizontal direction and the vertical direction, this is only an assumption made for understanding and description convenience. In fact, After reading the above description of the description, a person of ordinary skill in the art can easily generalize the principle of the present invention to a situation in which multiple blank pixels are inserted between adjacent pixels and the number of blank pixels is different in both directions.

Claims

权利要求 Rights request
1.一种二维条形码数字图像信息的增强方法, 所述数字图像由 n行 Xm列 的原始像素矩阵组成, 每个原始像素具有一定的属性取值, 其特征在于, 包 含以下步骤: A method for enhancing digital image information of a two-dimensional barcode, the digital image is composed of an original pixel matrix of n rows and Xm columns, and each original pixel has a certain attribute value, and is characterized by comprising the following steps:
(1)沿所述 n行 X m列像素矩阵的水平方向, 在两个相邻的原始像素之间插 入 k个空白像素以构成 (k(n-l)+n)行 X m列的像素矩阵;  (1) along the horizontal direction of the pixel matrix of n rows by X m columns, inserting k blank pixels between two adjacent original pixels to form a pixel matrix of (k (nl) + n) rows by X m columns;
(2)沿所述 (k(n-l)+n)行 Xm列的像素矩阵的垂直方向, 在两个相邻像素之间 插入 k'个空白像素以构成 (k(n-l)+n)行 X (k'(m-l)+m)列的像素矩阵; 以及  (2) Insert k ′ blank pixels between two adjacent pixels along the vertical direction of the pixel matrix of (k (nl) + n) rows and Xm columns to form (k (nl) + n) rows X a pixel matrix of (k '(ml) + m) columns; and
(3)在所述 (k(n- l)+n)行 X (k'(m- 1 )+m)列像素矩阵中, 对于沿水平方向或垂直方 向插入在两个相邻原始像素之间的空白像素, 其属性取值根据这两个原始像素的 属性取值作插值计算得到, 对于其它的空白像素, 其属性取值根据与其最邻近的 4个原始像素的属性取值作插值计算得到。  (3) In the pixel matrix of (k (n-1) + n) rows X (k '(m-1) + m) columns, for inserting between two adjacent original pixels in the horizontal or vertical direction For blank pixels, the attribute values are calculated by interpolation based on the attribute values of the two original pixels. For other blank pixels, the attribute values are calculated based on the attributes of the 4 original pixels closest to them. get.
2.如权利要求 1所述的二维条形码数字图像信息的增强方法, 其特征在于, 每个像素的属性取值为其灰度值。  2. The method for enhancing digital image information of a two-dimensional barcode according to claim 1, wherein the attribute value of each pixel is its gray value.
3.如权利要求 1所述的二维条形码数字图像信息的增强方法, 其特征在于, 每个像素的属性取值为其三基色的强度值。  The method for enhancing digital image information of a two-dimensional barcode according to claim 1, wherein the attribute value of each pixel is the intensity value of its three primary colors.
4.如权利要求 1所述的二维条形码数字图像信息的增强方法, 其特征在于, 每个像素的属性取值为其荧光发光属性。  4. The method for enhancing digital image information of a two-dimensional barcode according to claim 1, wherein the attribute value of each pixel is its fluorescence emission property.
5.如权利要求 1〜4 中任意一项所述的二维条形码数字图像信息的增强方 法, 其特征在于, 所述插值计算按照线性插值算法施行。  The method for enhancing two-dimensional barcode digital image information according to any one of claims 1 to 4, wherein the interpolation calculation is performed according to a linear interpolation algorithm.
PCT/CN2004/000698 2003-06-27 2004-06-28 Method of enhancing digital image information of two-dimensional bar code WO2005001749A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN03129574.6 2003-06-27
CNA031295746A CN1472704A (en) 2003-06-27 2003-06-27 Strengthening method for two-dimensional barcode digital image information

Publications (1)

Publication Number Publication Date
WO2005001749A1 true WO2005001749A1 (en) 2005-01-06

Family

ID=30122773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2004/000698 WO2005001749A1 (en) 2003-06-27 2004-06-28 Method of enhancing digital image information of two-dimensional bar code

Country Status (2)

Country Link
CN (1) CN1472704A (en)
WO (1) WO2005001749A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100377167C (en) * 2006-03-17 2008-03-26 北京紫光捷通科技有限公司 Two-dimensional code area precisive positioning method for two-dimensional recognition
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN114066861A (en) * 2021-11-22 2022-02-18 安徽理工大学 Coal and gangue identification method based on cross algorithm edge detection theory and visual features
CN115526810A (en) * 2022-11-07 2022-12-27 青岛理工大学 Underwater image enhancement method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122998B (en) * 2007-09-28 2010-06-23 宝利微电子系统控股公司 Image interpolation method and device based on direction detection
CN101882213B (en) * 2010-06-01 2012-09-19 福建新大陆电脑股份有限公司 Method for sampling barcode images
WO2012010968A1 (en) * 2010-07-19 2012-01-26 Ati Technologies Ulc Displaying compressed supertile images
CN103700073A (en) * 2013-12-20 2014-04-02 深圳市掌网立体时代视讯技术有限公司 Hand infrared image enhancing method and device
CN104463795B (en) * 2014-11-21 2017-03-01 高韬 A kind of dot matrix DM image in 2 D code processing method and processing device
CN108122196B (en) * 2016-11-28 2022-07-05 阿里巴巴集团控股有限公司 Texture mapping method and device for picture
CN112053284A (en) * 2020-08-24 2020-12-08 海南太美航空股份有限公司 Image processing method and system for inserting empty pixel points and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4916298A (en) * 1987-11-06 1990-04-10 Sgs-Thomson Microelectronics Sa Method for the optical reading of bar codes
US5867595A (en) * 1994-06-15 1999-02-02 Metanetics Corporation Recognizing dataforms in image areas

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4916298A (en) * 1987-11-06 1990-04-10 Sgs-Thomson Microelectronics Sa Method for the optical reading of bar codes
US5867595A (en) * 1994-06-15 1999-02-02 Metanetics Corporation Recognizing dataforms in image areas

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GU, L.T. ET AL.: "Principle and Design of a Novel Composite Spatial Code", JOURNAL OF OPTOELECTRONICS. LASER, vol. 12, no. 7, July 2001 (2001-07-01), pages 715 - 718 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100377167C (en) * 2006-03-17 2008-03-26 北京紫光捷通科技有限公司 Two-dimensional code area precisive positioning method for two-dimensional recognition
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN112580383B (en) * 2020-12-29 2023-08-29 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN114066861A (en) * 2021-11-22 2022-02-18 安徽理工大学 Coal and gangue identification method based on cross algorithm edge detection theory and visual features
CN114066861B (en) * 2021-11-22 2024-04-19 安徽理工大学 Coal gangue identification method based on intersection algorithm edge detection theory and visual characteristics
CN115526810A (en) * 2022-11-07 2022-12-27 青岛理工大学 Underwater image enhancement method
CN115526810B (en) * 2022-11-07 2023-04-07 青岛理工大学 Underwater image enhancement method

Also Published As

Publication number Publication date
CN1472704A (en) 2004-02-04

Similar Documents

Publication Publication Date Title
Zhang et al. Light field saliency detection with deep convolutional networks
KR100560330B1 (en) A bar code perfect virtue coding and decoding system for largeness a volume the two dimension color which a color revision is possible and method thereof
KR101312830B1 (en) Embedded interaction code enabled surface type identification
US7581171B2 (en) Positionally encoded document image analysis and labeling
US9406010B2 (en) Producing, capturing and using visual identification tags for moving objects
US20060274948A1 (en) Stroke localization and binding to electronic document
Jiang et al. A fast approach to the detection and correction of skew documents
JP4926466B2 (en) Local metadata embedding solution
WO2005001749A1 (en) Method of enhancing digital image information of two-dimensional bar code
US9275734B2 (en) Memory having information refinement detection function by applying a logic operation in parallel for each memory address to the match/mismatch results of data items and memory addresses, information detection method using memory, and memory address comparison circuit for the memory
US7991191B2 (en) Clustering-scheme-encoded interfaces providing orientation feedback
JP5147102B2 (en) Memory access method
Pandey et al. Binary document image super resolution for improved readability and OCR performance
JPH11504738A (en) Rotate run-length coded images
US7729539B2 (en) Fast error-correcting of embedded interaction codes
JP2013109758A (en) Image processing method and image processing device
US20170161580A1 (en) Method and system for text-image orientation
JP2019061495A (en) Information processing apparatus
JP2003346105A (en) Two-dimensional bar code and method for recording the same
CN101882213B (en) Method for sampling barcode images
US20200019803A1 (en) Method and apparatus for determining summation of pixel characteristics for rectangular region of digital image avoiding non-aligned loads using multiple copies of input data
WO2004095357A1 (en) A synchronous two-dimensional barcode system with all-around informaton, and reading method thereof
TWI286706B (en) Two-dimensional barcode card and the decoding method
Yang et al. Hallucinating very low-resolution and obscured face images
Hu et al. A Novel LSB Matching Algorithm Based on Information Pre-Processing

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

DPEN Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed from 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase