[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104463795B - A kind of dot matrix DM image in 2 D code processing method and processing device - Google Patents

A kind of dot matrix DM image in 2 D code processing method and processing device Download PDF

Info

Publication number
CN104463795B
CN104463795B CN201410674241.4A CN201410674241A CN104463795B CN 104463795 B CN104463795 B CN 104463795B CN 201410674241 A CN201410674241 A CN 201410674241A CN 104463795 B CN104463795 B CN 104463795B
Authority
CN
China
Prior art keywords
image
sigma
value
function
dimensional
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
CN201410674241.4A
Other languages
Chinese (zh)
Other versions
CN104463795A (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.)
Yuan Chong
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410674241.4A priority Critical patent/CN104463795B/en
Publication of CN104463795A publication Critical patent/CN104463795A/en
Application granted granted Critical
Publication of CN104463795B publication Critical patent/CN104463795B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The present invention relates to a kind of dot matrix DM image in 2 D code processing method and processing device, the method includes:Step one, reads image uniform sizes;Step 2, is converted into gray-scale maps;Step 3, Gaussian smoothing filter is processed;Step 4, binary conversion treatment;Step 5, spot detection obtains code element diameter;Step 6, carries out dynamic filter and improved binary conversion treatment according to code element diameter to original gradation figure;Step 7, carries out open and close operator to binary image, obtains dot matrix image;Step 8, to dot matrix image median filter process, is converted into standard two-dimensional code image.The method can overcome dot matrix DataMatrix code identifying that intermediate gap is excessive, uneven illumination even noise jamming the problems such as, can be detected by current DM code hand-held identification equipment, without secondary development on hardware, system design is feasible quickly effective, can meet the actual demand at present to dot matrix DM decoding.

Description

Dot-matrix DM two-dimensional code image processing method and device
Technical Field
The invention belongs to the technical field of two-dimensional code computer image processing, and particularly relates to a dot matrix type DM two-dimensional code image processing method and device.
Background
The dot matrix dm (datamatrix) is mainly used in the fields of automobile manufacturing, pharmaceutical medicine, military firearm management and the like at present, and is widely applied to materials such as metal, glass, hard plastic and the like due to easy generation. Meanwhile, due to the diversity of the dot matrix DM two-dimensional code generation method and the used materials, the barcode image generally has the conditions of low contrast, multi-noise interference, complex background, uneven illumination in the acquisition process and the like. Unlike the standard DM symbol, the lattice DM two-dimensional code has a large gap between the dots, as shown in fig. 1. If such a code is recognized without any processing, the difficulty of recognition increases, and therefore, it is necessary to perform image preprocessing on a dot matrix two-dimensional code image.
With the development and popularization of embedded platforms, portable two-dimensional code recognition readers have appeared, so that two-dimensional codes can be recognized and read more quickly and conveniently, and at present, researches on DM code image preprocessing are endless, but researches on dot-matrix DM code image preprocessing are relatively few. Therefore, the invention provides a lattice type DM image preprocessing method and a corresponding device.
Disclosure of Invention
The invention provides a series of image preprocessing methods of morphological transformation combined with binaryzation aiming at the problem of low recognition rate of dot matrix DataMatrix two-dimensional codes, and the smooth blurring and the morphological transformation have self-adaptability through spot detection. The method can overcome the problems of overlarge gap, uneven illumination, noise interference and the like in the identification of the dot matrix type DataMatrix code, and converts the dot matrix type DM two-dimensional code into a standard format, so that the detection can be carried out through the conventional DM code handheld identification equipment, secondary development is not needed on hardware, the system design is feasible, quick and effective, and the actual requirement on dot matrix type DM decoding at present can be met.
The invention provides a dot matrix DM two-dimensional code image processing method, which comprises the following steps:
the method comprises the following steps: reading a dot matrix DM two-dimensional code image, and performing width unification processing by using a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original dot matrix DM two-dimensional code image;
step two: converting the images with uniform sizes into gray level images;
step three: performing Gaussian smoothing filtering processing on the grayed image to remove fine textures of an image background, so that solid points of the dot matrix code elements are smoother;
step four: converting the gray level image after Gaussian smooth filtering into a black and white binary image;
step five: carrying out code element detection on the image subjected to binarization in the fourth step to obtain the diameter of the dot matrix code element;
step six: dynamically changing the size of the average template according to the diameter size of the lattice code element obtained in the step five, further carrying out dynamic mean value filtering processing on the gray level image in the step two, and then carrying out improved binarization processing combining a kittler algorithm and a Bernsen algorithm on the gray level image after the dynamic mean value filtering;
step seven: and carrying out morphological opening operation and closing operation on the binary image obtained in the step six to obtain a processed dot matrix image, wherein,
the opening operation is represented by the following equation:
the closing operation is represented by the following equation:
wherein A is an input binary image, and B is a square structural element.
Step eight: and e, converting the dot matrix image obtained in the step seven into a standard DM two-dimensional code image of a recognizable block structure through median filtering denoising processing.
Furthermore, the side length of the square structural element B in the seventeenth operation in the step is preferably 1/3 of the lattice symbol diameter, and the side length of the square structural element B in the closed operation is preferably 1 to 5 display pixels smaller than the lattice symbol diameter.
Further, the median filtering denoising process used in the step eight is preferably implemented by the following steps:
replacing the value of a point in the image with the median of the values of the points in a neighborhood of the point, and making the surrounding pixel values close to the true values, thereby eliminating isolated noise points, wherein the two-dimensional median filter output is obtained by the following formula:
g(x,y)=med{f(x-k,y-1),(k,1∈W)}
wherein med { } represents the median of the access array sequence; f (x, y), g (x, y) are respectively an original image and a processed image; w is a two-dimensional template of 3 x 3 size; k and l are integers and respectively represent increment in the x and y directions of the coordinates.
Further, the dynamic mean filtering processing of step six preferably further includes the following steps:
(1) template size was obtained by the following formula:
wherein round represents a rounding operation;
(2) calculating an average filtering template:
wherein k is the size of the average template, D is the diameter of the lattice code element, and is the average template;
(3) the average filtering is performed as follows:
I1(x,y)=*I(x,y)
wherein I (x, y) represents a gray-scale map matrix, I1(x, y) represents a filtered image gray matrix;
further, the process of converting the gaussian smooth-filtered gray scale image into a black-and-white binary image in the fourth step specifically includes:
(1) obtaining a global threshold T by using a Kittler algorithm, wherein the method for calculating the global threshold T comprises the following steps:
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
(2) scanning the whole f (x, y) gray level image, the binarization result is:
wherein b (x, y) is the binarization result.
Further, the improved binarization processing combining the kittler algorithm and the Bernsen algorithm used in the step six comprises the following specific steps:
the method for calculating the global threshold T comprises the following steps of (1) obtaining the global threshold T by using a Kittler algorithm:
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
step (2) processing the interval with uneven illumination in the image histogram by adopting Bernsen algorithm, wherein the gray value of the interval is concentrated near the global threshold T obtained in step (1), if T is T3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
If T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
Wherein,
T3is the basis for threshold selection and T3(x,y)=maxs-mins
T2(x,y)=0.5(maxd+mind),
T4(x,y)=0.5(T+T2(x,y));
Wherein,
maxdrepresenting the maximum pixel value of the pixel point (x, y) in a window with the size of 4w by 4 w;
representing the minimum pixel value of a pixel (x, y) in a large window of 4w by 4 w;
representing the maximum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
representing the minimum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
in the formula, max represents the maximum value of the pixel in the window, min represents the minimum value of the pixel in the window, k and l are integers and respectively represent the increment in the directions of coordinates x and y; w represents a window of local threshold operation, the value range of w is 5-9, and T is2Representing the mean value of the pixel grey levels, T, within the window4Is T2And the average of the global threshold T.
Further, the specific flow of symbol detection in step five is as follows:
detecting the image elements by using a Gaussian Laplacian operator, and for a two-dimensional Gaussian function:
the method comprises the following steps that sigma is a width parameter of a function, namely a characteristic scale, and is used for controlling the radial action range of the function, the larger sigma represents the wider radial direction of the function, the larger similar code element is, the smaller sigma represents the narrower radial direction of the function, the smaller similar code element is, x and y represent two-dimensional space positions, and g (x, y and sigma) represents a two-dimensional Gaussian function;
laplace transform of formula (1):
wherein, Delta2g represents the Laplace function, Delta, of a two-dimensional Gaussian function2Representing a second order differential operator, g representing a two-dimensional Gaussian function; normalized laplacian of gaussian transform:
in the formula (3)Represents a normalized laplacian of gaussian function with a variance of 0;
the normalized two-dimensional laplacian function shown in the formula (3) is a circularly symmetric function, and two-dimensional code elements of different sizes are detected by changing the value of σ to obtainObtaining the pole value is equivalent to solving the following equation:
wherein,representing a normalized Gaussian Laplace functionThe partial derivative of the sigma is calculated,representing normalized laplace function of gaussiansA pole value of (d);
that is:
r2-2σ2=0
wherein r represents the radius of the circular code element of the two-dimensional code image binaryzation in scaleThe laplacian of gaussian response value is maximized, and similarly, if a circular symbol in the image is black and white inverted, then the laplacian of gaussian response value for that symbol is scaled toThe time reaches the minimum, the scale sigma value when the Gaussian response reaches the peak value is the characteristic scale of code element detection, the discrete Laplacian response value of the binarized image under different scales is calculated, then each point in the position space is checked, if the Laplacian response value of the point is larger than or smaller than the values of other cubic space neighborhoods, the point is the detected two-dimensional code data element point, and the searching for the position space pixel pointAnd scale spaceCan be represented by the following function:
the function represents the point at which the laplacian response reaches a maximum or minimum at both spatial location and scaleThe value of (1) is the symbol to be detected; wherein t represents a scale value, (x, y) represents a spatial position, and max minus(x,y,t)(-) denotes the maximum or minimum of the response function at spatial and scale positions, arg (-) denotes the value of the variable corresponding to the function value,representing a standard two-dimensional laplacian function in scale space.
The invention also provides a dot-matrix DM two-dimensional code image processing device, which comprises:
the image reading module is used for reading the dot matrix DM two-dimensional code image and performing width unification processing by utilizing a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original dot matrix DM two-dimensional code image;
the gray level conversion module is used for converting the images with uniform sizes into gray level images;
the Gaussian smoothing filtering module is used for performing Gaussian smoothing filtering processing on the grayed image to remove fine textures of an image background and enable solid points of the dot matrix code elements to be smoother;
the binarization conversion module is used for converting the gray level image after Gaussian smooth filtering into a black and white binarization image;
the code element detection module is used for carrying out code element detection on the image subjected to binarization in the binarization conversion module to obtain the diameter of the dot matrix code element;
the dynamic mean value filtering and binary conversion module is used for dynamically changing the size of the mean template according to the diameter size of the lattice code element obtained by the code element detection module, further carrying out dynamic mean value filtering processing on the gray level image obtained by the gray level conversion module, and then carrying out improved binary processing combining a kittler algorithm and a Bernsen algorithm on the gray level image after the dynamic mean value filtering;
an operation module for performing morphological open operation and close operation on the binary image obtained by the dynamic mean filtering and binary conversion module to obtain a processed dot matrix image,
the opening operation is represented by the following equation:
the closing operation is represented by the following equation:
wherein A is an input binary image; b is a square structural element;
and the standardization module is used for converting the dot matrix image obtained by the operation module into a standard DM two-dimensional code image of a recognizable block structure through median filtering denoising processing.
Furthermore, the side length of the square structural element B in the opening operation of the operation module is preferably 1/3 of the dot matrix symbol diameter, and the side length of the square structural element B in the closing operation is preferably 1 to 5 display pixels smaller than the dot matrix symbol diameter.
Further, the median filtering denoising process used by the normalization module is preferably implemented by:
replacing the value of a point in the image with the median of the values of the points in a neighborhood of the point, and making the surrounding pixel values close to the true values, thereby eliminating isolated noise points, wherein the two-dimensional median filter output is obtained by the following formula:
g(x,y)=med{f(x-k,y-1),(k,1∈W)}
wherein med { } represents the median of the access array sequence; f (x, y), g (x, y) are respectively an original image and a processed image; w is a two-dimensional template of 3 x 3 size; k and l are integers and respectively represent increment in the x and y directions of the coordinates.
Drawings
FIG. 1 is a graph of a comparison of a lattice DM code with a standard DM code;
FIG. 2 is a flow chart of a dot matrix DM code image processing;
FIG. 3 is a diagram illustrating a binarized dot matrix DM code image and binarized blob (symbol) detection;
FIG. 4 is a graph of the effect of an open operation and a closed operation;
fig. 5 is a schematic diagram of the effect of converting a dot matrix DM code image into a standard DM two-dimensional code image.
Detailed Description
The invention will be described in further detail with reference to the following figures and specific examples, without limiting the scope of the invention.
As shown in fig. 1, the lattice DM code (right) is significantly different from the standard DM code (left).
Because the lattice type DM code is composed of uniform round points according to a certain rule, if the pictures are directly subjected to fuzzy smoothing and morphological change according to a conventional method, the effect is not ideal, and the over-processing and the processing effect are not obvious easily.
[ example one ]
The embodiment provides a dot matrix DM two-dimensional code image processing flow and a method, which may be implemented by a computer program or a hardware circuit, and the specific flow is shown in fig. 2.
(one) reading images and unifying sizes
For convenience of processing, firstly, the size of the dot-matrix two-dimensional image is unified after the image is read, and the width is unified by using a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original image, and experiments show that the unification can enable the identification to be more accurate.
(II) conversion to grayscale
The image processing method is convenient for processing the image and needs to convert the originally acquired image into a gray image.
(III) Gaussian smoothing filter processing
Since the roughness of the barcode background affects the identification accuracy, and the dot matrix modules of the dot matrix DM code are all solid dots, and the solid dots are not greatly affected by the smoothness, a fuzzy smoothing process is required to remove the complex texture of the picture. The requirement of the lattice type DM bar code on the smoothing treatment is not too high, and the dynamic mean filtering and the Gaussian filtering are found to meet the requirement through experimental comparison of various smoothing filtering transformations. Therefore, the natural smoothing effect is obtained by using Gaussian smoothing in the step, and the blurring is not too much, so that the measurement of the spot detection is more accurate and stable.
(IV) binarization processing
The binarization processing of the image is to convert the gray level image into a black and white binarization image which can reflect the whole structure and local characteristics of the image by selecting a proper threshold value. In the dot Matrix Data Matrix barcode image processing process, by performing corresponding operation on the binarized image, the characteristic information such as the boundary, position, size and the like of the target area can be easily acquired, thereby laying a foundation for analysis and identification of the barcode image.
Firstly, a global threshold value T is obtained by using a Kittler algorithm, and the method for calculating the global threshold value T is as follows:
wherein f is(x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
then, scanning the whole f (x, y) gray image, the binarization result is:
wherein b (x, y) is the binarization result.
(V) speckle detection
The principle of spot detection (i.e., lattice symbol detection) is as follows:
detecting the image code element by utilizing a Laplacian of Guassian (LoG) operator, and for a two-dimensional Gaussian function:
the method comprises the following steps that sigma is a width parameter of a function, namely a characteristic scale, and is used for controlling the radial action range of the function, the larger sigma represents the wider radial direction of the function, the larger similar code element is, the smaller sigma represents the narrower radial direction of the function, the smaller similar code element is, x and y represent two-dimensional space positions, and g (x, y and sigma) represents a two-dimensional Gaussian function;
laplace transform of formula (1):
wherein, Delta2g represents the Laplace function, Delta, of a two-dimensional Gaussian function2Representing a second order differential operator, g representing a two-dimensional Gaussian function;
normalized laplacian of gaussian transform:
in the formula (3)Represents a normalized laplacian of gaussian function with a variance of 0;
the normalized two-dimensional laplacian function shown in the formula (3) is a circularly symmetric function, and two-dimensional code elements of different sizes are detected by changing the value of σ to obtainObtaining the pole value is equivalent to solving the following equation:
wherein,representing a normalized Gaussian Laplace functionThe partial derivative of the sigma is calculated,representing normalized laplace function of gaussiansA pole value of (d);
that is:
r2-2σ2=0
wherein r represents the radius of the circular code element of the two-dimensional code image binaryzation in scaleThe laplacian of gaussian response value is maximized, and similarly, if a circular symbol in the image is black and white inverted, then the laplacian of gaussian response value for that symbol is scaled toThe time reaches the minimum, the scale sigma value when the Gaussian response reaches the peak value is the characteristic scale of code element detection, the discrete Laplacian response value of the binarized image under different scales is calculated, then each point in the position space is checked, if the Laplacian response value of the point is larger than or smaller than the values of other cubic space neighborhoods, the point is the detected two-dimensional code data element point, and the searching for the position space pixel pointAnd scale spaceCan be represented by the following function:
the function represents the value of the point where the laplace response reaches the maximum or minimum value at the same time on the spatial position and scale, and the point is the code element to be detected; wherein t represents a scale value, (x, y) represents a spatial position, and max minus(x,y,t)(-) denotes the maximum or minimum of the response function at spatial and scale positions, arg (-) denotes the value of the variable corresponding to the function value,representing a standard two-dimensional laplacian function in scale space.
According to the above principle, the sizes of the data element points and their respective blobs of the two-dimensional code image can be well detected, see fig. 3.
(VI) dynamic filtering and improved binarization processing
Firstly, dynamic filtering processing is carried out:
(1) template size was obtained by the following formula:
wherein round represents a rounding operation;
(2) calculating an average filtering template:
wherein k is the size of the average template, D is the diameter of the lattice code element, and is the average template;
(3) the average filtering is performed as follows:
I1(x,y)=*I(x,y)
wherein I (x, y) represents a gray-scale map matrix, I1(x, y) represents a filtered image gray matrix;
then, an improved binarization process is performed:
the binarization algorithm of the method selects a binarization algorithm combining a kittler algorithm and an improved Bernsen algorithm, can well ignore unnecessary background details aiming at the characteristics of a dot matrix type two-dimensional code dot module relative to smoothness and similar background textures, and has good processing effect on pictures with uneven illumination. Firstly, finding out the area of the image with uneven illumination according to a simple statistical algorithm of Kittler, then improving the processing process of the Bernsen algorithm, adjusting parameters, weakening the artifact problem of the original algorithm, and processing the part of the image with uneven illumination by using the improved algorithm. The algorithm has good stability and self-adaptability, and can obviously improve the binarization effect and the recognition rate of the two-dimensional bar code.
The binaryzation processing method combining the kittler algorithm and the improved Bernsen algorithm is as follows:
the method for calculating the global threshold T comprises the following steps of (1) obtaining the global threshold T by using a Kittler algorithm:
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
step (2) adopts Bernsen algorithm to process the interval with uneven illumination in the image histogram, the gray value of the interval is concentrated near the global threshold T obtained in step (1),
if T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
If T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
Wherein,
T3is the basis for threshold selection and T3(x,y)=maxs-mins
T2(x,y)=0.5(maxd+mind),
T4(x,y)=0.5(T+T2(x,y));
Wherein,
maxdrepresenting the maximum pixel value of the pixel point (x, y) in a window with the size of 4w by 4 w;
representing the minimum pixel value of a pixel (x, y) in a large window of 4w by 4 w;
representing the maximum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
representing the minimum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
in the formula, max represents the maximum value of the pixel in the window, min represents the minimum value of the pixel in the window, k and l are integers and respectively represent the increment in the directions of coordinates x and y; w represents a window of local threshold operation, the value range of w is 5-9, and T is2Representing the mean value of the pixel grey levels, T, within the window4Is T2And the average of the global threshold T.
(VII) performing opening and closing operation to obtain dot matrix image
The lattice type DM code is composed of lattice modules, and in order to change the lattice module into a recognizable standard DM code, the lattice module needs to be changed into a block structure, and morphological transformation is used for opening and closing operation, and the opening and closing operation is a combined form of expansion and corrosion.
Wherein A is swollen by B and is described asIs defined as:
wherein, A is corroded by B and is marked as A theta B, and the definition is as follows:
AΘB={z|(B)z∩Ac≠Φ}
the morphological open operation of A by B can be named as A omicB, and the operation is the result of swelling corrosion of A by B and then B:
the morphological closing operation of A by B can be denoted as A.B, which is the result of the expansion of A by B and then the erosion expansion by B:
in the method, A is an input binary image, and B is a square structural element.
The opening operation can smooth the contour of the image, can also break narrow connection and eliminate burrs, but is different from corrosion in that the large contour of the image is not subjected to overall shrinkage, and the position of an object is not changed at all. Closed arithmetic can also smooth the contour, but in contrast to open arithmetic, it is generally able to close narrow discontinuities and fill small holes. Fig. 4 is a schematic diagram of an open operation and a closed operation. Therefore, the open operation and the close operation are applied to the DM two-dimensional code standardization, and stray points and some burrs after binarization can be removed. A large number of experiments can be summarized, and the square structural element of one third of the spot size (namely the lattice code element diameter) obtained by spot detection is used for carrying out open operation to remove stray points and burrs. The square structural elements of 1 to 5 display pixel points slightly smaller than the spot size (namely the dot matrix code element diameter) are used for carrying out closed operation, so that the point module is changed into an approximate block structure, and the L-shaped boundary of the point module is clearly visible.
(eight) performing median filtering processing after opening and closing operation, and converting the median filtering processing into a standard two-dimensional code image
The median filtering denoising process is preferably implemented by:
replacing the value of a point in the image with the median of the values of the points in a neighborhood of the point, and making the surrounding pixel values close to the true values, thereby eliminating isolated noise points, wherein the two-dimensional median filter output is obtained by the following formula:
g(x,y)=med{f(x-k,y-1),(k,l∈W)}
wherein med { } represents the median of the access array sequence; f (x, y), g (x, y) are respectively an original image and a processed image; w is a two-dimensional template of 3 x 3 size; k and 1 are integers respectively representing increment in the x and y directions of the coordinates.
The effect after conversion into a standard DM two-dimensional code image is shown in fig. 5.
[ example two ]
The invention also provides a software virtual device of the functional module architecture, which comprises the following structures:
a dot-matrix DM two-dimensional code image processing device comprises:
the image reading module is used for reading the dot matrix DM two-dimensional code image and performing width unification processing by utilizing a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original dot matrix DM two-dimensional code image;
the gray level conversion module is used for converting the images with uniform sizes into gray level images;
the Gaussian smoothing filtering module is used for performing Gaussian smoothing filtering processing on the grayed image to remove fine textures of an image background and enable solid points of the dot matrix code elements to be smoother;
the binarization conversion module is used for converting the gray level image after Gaussian smooth filtering into a black and white binarization image;
the code element detection module is used for carrying out code element detection on the image subjected to binarization in the binarization conversion module to obtain the diameter of the dot matrix code element;
the dynamic mean filtering and binary conversion module is used for dynamically changing the size of an average template according to the diameter size of the lattice code element obtained by the code element detection module, further performing dynamic mean filtering processing on the gray level image obtained by the gray level conversion module, and then performing improved binary processing combining a kittler algorithm and a Bernsen algorithm on the gray level image after the dynamic mean filtering:
an operation module for performing morphological open operation and close operation on the binary image obtained by the dynamic mean filtering and binary conversion module to obtain a processed dot matrix image,
the opening operation is represented by the following equation:
the closing operation is represented by the following equation:
wherein A is an input binary image; b is a square structural element;
and the standardization module is used for converting the dot matrix image obtained by the operation module into a standard DM two-dimensional code image of a recognizable block structure through median filtering denoising processing.
Of course, the product of the above functional module architecture can also be implemented by a real hardware circuit.
The lattice blobs referred to in this invention are also referred to as lattice symbols, and the blobs and symbols are in the same concept.
All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Claims (2)

1. A dot matrix DM two-dimensional code image processing method comprises the following steps:
the method comprises the following steps: reading a dot matrix DM two-dimensional code image, and performing width unification processing by using a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original dot matrix DM two-dimensional code image;
step two: converting the images with uniform sizes into gray level images;
step three: performing Gaussian smoothing filtering processing on the grayed image to remove fine textures of an image background, so that solid points of the dot matrix code elements are smoother;
step four: converting the gray level image after Gaussian smooth filtering into a black and white binary image, and specifically comprising the following steps:
(1) obtaining a global threshold T by using a Kittler algorithm, wherein the method for calculating the global threshold T comprises the following steps:
T = Σ x Σ y e ( x , y ) f ( x , y ) Σ x Σ y e ( x , y )
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
(2) scanning the whole f (x, y) gray level image, the binarization result is:
b ( x , y ) = 255 f ( x , y ) > T 0 f ( x , y ) < T
wherein b (x, y) is a binarization result;
step five: and (3) carrying out code element detection on the image subjected to binarization in the fourth step to obtain the diameter of the dot matrix code element, wherein the specific flow of the code element detection is as follows:
detecting the image elements by using a Gaussian Laplacian operator, and for a two-dimensional Gaussian function:
g ( x , y , &sigma; ) = 1 2 &pi; &sigma; e - ( x 2 + y 2 ) 2 &sigma; - - - ( 1 )
the method comprises the following steps that sigma is a width parameter of a function, namely a characteristic scale, and is used for controlling the radial action range of the function, the larger sigma represents the wider radial direction of the function, the larger similar code element is, the smaller sigma represents the narrower radial direction of the function, the smaller similar code element is, x and y represent two-dimensional space positions, and g (x, y and sigma) represents a two-dimensional Gaussian function;
laplace transform of formula (1):
&Delta; 2 g = &part; 2 g &part; x 2 + &part; 2 g &part; y 2 - - - ( 2 )
wherein, Delta2g represents the Laplace function, Delta, of a two-dimensional Gaussian function2Representing a second order differential operator, g representing a two-dimensional Gaussian function;
normalized laplacian of gaussian transform:
&Delta; n o r m 2 g = &sigma; 2 ( &part; 2 g &part; x 2 + &part; 2 g &part; y 2 ) = &sigma; 2 &Delta; 2 g = - 1 &pi;&sigma; 2 &lsqb; 1 - x 2 + y 2 2 &sigma; 2 &rsqb; &CenterDot; e - ( x 2 + y 2 ) 2 &sigma; - - - ( 3 )
in the formula (3)Represents a normalized laplacian of gaussian function with a variance of 0;
the normalized two-dimensional laplacian function shown in the formula (3) is a circularly symmetric function, and two-dimensional code elements of different sizes are detected by changing the value of σ to obtainObtaining the pole value is equivalent to solving the following equation:
&part; ( &Delta; n o r m 2 g ) &part; &sigma; = 0
wherein,representing a normalized Gaussian Laplace functionThe partial derivative of the sigma is calculated,representing normalized laplace function of gaussiansA pole value of (d);
that is:
( x 2 + y 2 - 2 &sigma; 2 ) &CenterDot; e - ( x 2 + y 2 ) 2 &sigma; = 0
r2-2σ2=0
wherein r represents the radius of the circular code element after the binaryzation of the two-dimensional code image in the scaleThe laplacian of gaussian response value is maximized, and similarly, if a circular symbol in the image is black and white inverted, then the laplacian of gaussian response value for that symbol is scaled toThe time reaches the minimum, the scale sigma value when the Gaussian response reaches the peak value is the characteristic scale of code element detection, the discrete Laplacian response value of the binarized image under different scales is calculated, then each point in the position space is checked, if the Laplacian response value of the point is larger than or smaller than the values of other cubic space neighborhoods, the point is the detected two-dimensional code data element point, and the searching for the position space pixel pointAnd scale spaceCan be represented by the following function:
( x ^ , y ^ , t ^ ) = arg max min local ( x , y ; t ) ( &Delta; n o r m 2 L ( x , y , t ) )
the function represents the value of the point where the laplace response reaches the maximum or minimum value at the same time on the spatial position and scale, and the point is the code element to be detected; wherein t represents a scale value, (x, y) represents a spatial position, and max min local(x,y,t)(-) denotes the maximum or minimum of the response function at spatial and scale positions, arg (-) denotes the value of the variable corresponding to the function value,represents a standard two-dimensional laplace function in scale space;
step six: dynamically changing the size of the average template according to the diameter size of the lattice code element obtained in the step five, further carrying out dynamic mean value filtering processing on the gray level image obtained in the step two, and then carrying out binaryzation processing combining a kittler algorithm and an improved Bernsen algorithm on the gray level image subjected to dynamic mean value filtering;
the dynamic mean filtering comprises the following steps:
(1) template size was obtained by the following formula:
wherein round represents a rounding operation;
(2) calculating an average filtering template:
wherein k is the size of the average template, D is the diameter of the lattice code element, and is the average template;
(3) the average filtering is performed as follows:
I1(x,y)=*I(x,y)
wherein I (x, y) represents a gray-scale map matrix, I1(x, y) represents a filtered image gray matrix;
the binaryzation processing combining the kittler algorithm and the improved Bernsen algorithm comprises the following specific steps:
(1) obtaining a global threshold T by using a Kittler algorithm, wherein the method for calculating the global threshold T comprises the following steps:
T = &Sigma; x &Sigma; y e ( x , y ) f ( x , y ) &Sigma; x &Sigma; y e ( x , y )
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
(2) processing the interval with uneven illumination in the image histogram by adopting a Bernsen algorithm, wherein the gray value of the interval is concentrated near the global threshold T obtained in the step (1),
if T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
If T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
Wherein,
T3is the basis for threshold selection and T3(x,y)=maxs-mins
T2(x,y)=0.5(maxd+mind),
T4(x,y)=0.5(T+T2(x,y));
Wherein,
maxdrepresenting the maximum pixel value of the pixel point (x, y) in a window with the size of 4w by 4 w;
representing the minimum pixel value of a pixel (x, y) in a large window of 4w by 4 w;
representing the maximum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
representing a pixelPoint (x, y) minimum pixel value in a smaller window of size 2w x 2 w;
in the formula, max represents the maximum value of the pixel in the window, min represents the minimum value of the pixel in the window, k and l are integers and respectively represent the increment in the directions of coordinates x and y; w represents a window of local threshold operation, the value range of w is 5-9, and T is2Representing the mean value of the pixel grey levels, T, within the window4Is T2Average with a global threshold T;
step seven: and carrying out morphological opening operation and closing operation on the binary image obtained in the step six to obtain a processed dot matrix image, wherein,
the opening operation is represented by the following equation:
the closing operation is represented by the following equation:
A &CenterDot; B = ( A &CirclePlus; B ) &Theta; B
wherein A is an input binary image, B is a square structural element, the side length of the square structural element B in the open operation is 1/3 of the lattice code element diameter, and the side length of the square structural element B in the closed operation is 1 to 5 display pixel points smaller than the lattice code element diameter;
step eight: converting the dot matrix image obtained in the seventh step into a standard DM two-dimensional code image of a recognizable block structure through median filtering denoising, wherein the median filtering denoising is realized through the following steps:
replacing the value of a point in the image with the median of the values of the points in a neighborhood of the point, and making the surrounding pixel values close to the true values, thereby eliminating isolated noise points, wherein the two-dimensional median filter output is obtained by the following formula:
g(x,y)=med{f(x-k,y-l),(k,l∈W)}
wherein med { } represents the median of the access array sequence; f (x, y), g (x, y) are respectively an original image and a processed image; w is a two-dimensional template of 3 x 3 size; k and l are integers and respectively represent increment in the x and y directions of the coordinates.
2. A dot-matrix DM two-dimensional code image processing device comprises:
the image reading module is used for reading the dot matrix DM two-dimensional code image and performing width unification processing by utilizing a nearest neighbor interpolation algorithm or a bilinear interpolation algorithm on the basis of not changing the high width proportion of the original dot matrix DM two-dimensional code image;
the gray level conversion module is used for converting the images with uniform sizes into gray level images;
the Gaussian smoothing filtering module is used for performing Gaussian smoothing filtering processing on the grayed image to remove fine textures of an image background and enable solid points of the dot matrix code elements to be smoother;
the binarization conversion module is used for converting the gray level image after Gaussian smooth filtering into a black and white binarization image, and specifically comprises the following steps:
(1) obtaining a global threshold T by using a Kittler algorithm, wherein the method for calculating the global threshold T comprises the following steps:
T = &Sigma; x &Sigma; y e ( x , y ) f ( x , y ) &Sigma; x &Sigma; y e ( x , y )
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
(2) scanning the whole f (x, y) gray level image, the binarization result is:
b ( x , y ) = 255 f ( x , y ) > T 0 f ( x , y ) < T
wherein b (x, y) is a binarization result;
the code element detection module is used for carrying out code element detection on the image subjected to binarization in the binarization conversion module to obtain the diameter of the dot matrix code element, and the specific flow of the code element detection is as follows:
detecting the image elements by using a Gaussian Laplacian operator, and for a two-dimensional Gaussian function:
g ( x , y , &sigma; ) = 1 2 &pi; &sigma; e - ( x 2 + y 2 ) 2 &sigma; - - - ( 1 )
the method comprises the following steps that sigma is a width parameter of a function, namely a characteristic scale, and is used for controlling the radial action range of the function, the larger sigma represents the wider radial direction of the function, the larger similar code element is, the smaller sigma represents the narrower radial direction of the function, the smaller similar code element is, x and y represent two-dimensional space positions, and g (x, y and sigma) represents a two-dimensional Gaussian function;
laplace transform of formula (1):
&Delta; 2 g = &part; 2 g &part; x 2 + &part; 2 g &part; y 2 - - - ( 2 )
wherein, Delta2g represents the Laplace function, Delta, of a two-dimensional Gaussian function2Representing a second order differential operator, g representing a two-dimensional Gaussian function;
normalized laplacian of gaussian transform:
&Delta; n o r m 2 g = &sigma; 2 ( &part; 2 g &part; x 2 + &part; 2 g &part; y 2 ) = &sigma; 2 &Delta; 2 g = - 1 &pi;&sigma; 2 &lsqb; 1 - x 2 + y 2 2 &sigma; 2 &rsqb; &CenterDot; e - ( x 2 + y 2 ) 2 &sigma; - - - ( 3 )
in the formula (3)Represents a normalized laplacian of gaussian function with a variance of 0;
the normalized two-dimensional laplacian function shown in the formula (3) is a circularly symmetric function, and two-dimensional code elements of different sizes are detected by changing the value of σ to obtainObtaining the pole value is equivalent to solving the following equation:
&part; ( &Delta; n o r m 2 g ) &part; &sigma; = 0
wherein,representing a normalized Gaussian Laplace functionThe partial derivative of the sigma is calculated,representation normalized Gaussian LaplaceFunction(s)A pole value of (d);
that is:
( x 2 + y 2 - 2 &sigma; 2 ) &CenterDot; e - ( x 2 + y 2 ) 2 &sigma; = 0
r2-2σ2=0
wherein r represents the radius of the circular code element after the binaryzation of the two-dimensional code image in the scaleThe laplacian of gaussian response value is maximized, and similarly, if a circular symbol in the image is black and white inverted, then the laplacian of gaussian response value for that symbol is scaled toThe time reaches the minimum, the scale sigma value when the Gaussian Laplace response reaches the peak value is the characteristic scale of code element detection, the discrete Laplace response value of the binarized image under different scales is calculated, then each point in the position space is checked, if the Laplace response value of the point is larger or smaller than the adjacent domain of other cubic spaces, the discrete Laplace response value is obtainedThen that point is the detected two-dimensional code data element point, the search location spaceAnd scale spaceCan be represented by the following function:
( x ^ , y ^ , t ^ ) = arg max min local ( x , y ; t ) ( &Delta; n o r m 2 L ( x , y , t ) )
the function represents the value of the point where the laplace response reaches the maximum or minimum value at the same time on the spatial position and scale, and the point is the code element to be detected; wherein t represents a scale value, (x, y) represents a spatial position, and max min local(x,y,t)(-) denotes the maximum or minimum of the response function at spatial and scale positions, arg (-) denotes the value of the variable corresponding to the function value,indicating the standard two-dimensional Laplace in scale spaceA function;
the dynamic mean value filtering and binary conversion module is used for dynamically changing the size of the mean template according to the diameter size of the lattice code element obtained by the code element detection module, further carrying out dynamic mean value filtering processing on the gray level image obtained by the gray level conversion module, and then carrying out binary processing combining a kittler algorithm and an improved Bernsen algorithm on the gray level image after the dynamic mean value filtering; the dynamic mean filtering comprises the following steps:
(1) template size was obtained by the following formula:
wherein round represents a rounding operation;
(2) calculating an average filtering template:
wherein k is the size of the average template, D is the diameter of the lattice code element, and is the average template;
(3) the average filtering is performed as follows:
I1(x,y)=*I(x,y)
wherein I (x, y) represents a gray-scale map matrix, I1(x, y) represents a filtered image gray matrix;
the binaryzation processing combining the kittler algorithm and the improved Bernsen algorithm comprises the following specific steps:
(1) obtaining a global threshold T by using a Kittler algorithm, wherein the method for calculating the global threshold T comprises the following steps:
T = &Sigma; x &Sigma; y e ( x , y ) f ( x , y ) &Sigma; x &Sigma; y e ( x , y )
wherein f (x, y) is the original gray scale map obtained in step two, and e (x, y) is max { | ex|,|eyI.e. the maximum value of the gradient, exF (x-1, y) -f (x +1, y) is the gradient in the horizontal direction, eyF (x, y-1) -f (x, y +1) is the gradient in the vertical direction;
(2) processing the interval with uneven illumination in the image histogram by adopting a Bernsen algorithm, wherein the gray value of the interval is concentrated near the global threshold T obtained in the step (1),
if T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
If T is3D is the interval width processed by Bernsen algorithm, namely the diameter of lattice element
The result of binarization
Wherein,
T3is the basis for threshold selection and T3(x,y)=maxs-mins
T2(x,y)=0.5(maxd+mind),
T4(x,y)=0.5(T+T2(x,y));
Wherein,
maxdrepresenting the maximum pixel value of the pixel point (x, y) in a window with the size of 4w by 4 w;
representing the minimum pixel value of a pixel (x, y) in a large window of 4w by 4 w;
representing the maximum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
representing the minimum pixel value of a pixel (x, y) in a smaller window of size 2w x 2 w;
in the formula, max represents the maximum value of the pixel in the window, min represents the minimum value of the pixel in the window, k and l are integers and respectively represent the increment in the directions of coordinates x and y; w represents a window of local threshold operation, the value range of w is 5-9, and T is2Representing the mean value of the pixel grey levels, T, within the window4Is T2Average with a global threshold T;
an operation module for performing morphological open operation and close operation on the binary image obtained by the dynamic mean filtering and binary conversion module to obtain a processed dot matrix image,
the opening operation is represented by the following equation:
the closing operation is represented by the following equation:
A &CenterDot; B = ( A &CirclePlus; B ) &Theta; B
wherein A is an input binary image; b is a square structural element, the side length of the square structural element B in the open operation is 1/3 of the lattice code element diameter, and the side length of the square structural element B in the closed operation is 1 to 5 display pixel points smaller than the lattice code element diameter;
the standardization module is used for converting the dot matrix image obtained by the operation module into a standard DM two-dimensional code image of a recognizable block structure through median filtering denoising processing, and the median filtering denoising processing is realized through the following steps:
replacing the value of a point in the image with the median of the values of the points in a neighborhood of the point, and making the surrounding pixel values close to the true values, thereby eliminating isolated noise points, wherein the two-dimensional median filter output is obtained by the following formula:
g(x,y)=med{f(x-k,y-l),(k,l∈W)}
wherein med { } represents the median of the access array sequence; f (x, y), g (x, y) are respectively an original image and a processed image; w is a two-dimensional template of 3 x 3 size; k and l are integers and respectively represent increment in the x and y directions of the coordinates.
CN201410674241.4A 2014-11-21 2014-11-21 A kind of dot matrix DM image in 2 D code processing method and processing device Expired - Fee Related CN104463795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410674241.4A CN104463795B (en) 2014-11-21 2014-11-21 A kind of dot matrix DM image in 2 D code processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410674241.4A CN104463795B (en) 2014-11-21 2014-11-21 A kind of dot matrix DM image in 2 D code processing method and processing device

Publications (2)

Publication Number Publication Date
CN104463795A CN104463795A (en) 2015-03-25
CN104463795B true CN104463795B (en) 2017-03-01

Family

ID=52909783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410674241.4A Expired - Fee Related CN104463795B (en) 2014-11-21 2014-11-21 A kind of dot matrix DM image in 2 D code processing method and processing device

Country Status (1)

Country Link
CN (1) CN104463795B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113290A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 Method and device for positioning one-dimensional code
CN106960427A (en) * 2016-01-11 2017-07-18 中兴通讯股份有限公司 The method and apparatus of image in 2 D code processing
CN105609008A (en) * 2016-02-05 2016-05-25 中国科学院理化技术研究所 Control system and control method based on two-dimensional code image
CN105938556B (en) * 2016-04-22 2020-07-28 复旦大学 Wide line detection method based on water flow method
CN106875357A (en) * 2017-01-26 2017-06-20 上海正雅齿科科技有限公司 Image in 2 D code processing method
CN107169977B (en) * 2017-04-24 2020-08-18 华南理工大学 Self-adaptive threshold color image edge detection method based on FPGA and Kirsch
CN108109120B (en) * 2017-12-18 2020-09-08 凌云光技术集团有限责任公司 Illumination compensation method and device for dot matrix two-dimensional code
CN108491796B (en) * 2018-03-22 2021-10-22 电子科技大学 Time domain periodic point target detection method
CN108647550B (en) * 2018-04-11 2021-07-16 中山大学 Machine learning-based two-dimensional code fuzzy clustering identification method and system
CN110046528B (en) * 2018-11-20 2022-10-28 维库(厦门)信息技术有限公司 Dot-shaped DataMatrix two-dimensional code identification method
CN109766656B (en) * 2019-01-25 2021-03-09 北京航空航天大学 Gradient lattice structure design method based on topological optimization
CN110009615B (en) * 2019-03-31 2020-06-19 深圳大学 Image corner detection method and detection device
CN110349189A (en) * 2019-05-31 2019-10-18 广州铁路职业技术学院(广州铁路机械学校) A kind of background image update method based on continuous inter-frame difference
CN110287752B (en) * 2019-06-25 2023-04-14 北京慧眼智行科技有限公司 Lattice code detection method and device
CN110276226A (en) * 2019-06-26 2019-09-24 北京慧眼智行科技有限公司 A kind of dot matrix code detection method and system
CN110348267A (en) * 2019-07-19 2019-10-18 北京慧眼智行科技有限公司 A kind of horizontal and vertical parity check code detection localization method and device
CN111553317B (en) * 2020-05-14 2023-08-08 北京惠朗时代科技有限公司 Anti-fake code acquisition method and device, computer equipment and storage medium
CN112562021B (en) * 2020-12-26 2023-05-23 苏州斯普锐智能系统股份有限公司 Image filter processing method for bar code
CN113034481A (en) * 2021-04-02 2021-06-25 广州绿怡信息科技有限公司 Equipment image blur detection method and device
CN115829848A (en) * 2022-07-22 2023-03-21 宁德时代新能源科技股份有限公司 Method, apparatus and computer-readable storage medium for processing graphic symbols

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6606421B1 (en) * 2000-05-25 2003-08-12 Hewlett-Packard Development Company, L.P. Geometric deformation correction method and system for dot pattern images
CN1472704A (en) * 2003-06-27 2004-02-04 上海龙贝信息科技有限公司 Strengthening method for two-dimensional barcode digital image information
CN103383738A (en) * 2012-05-03 2013-11-06 香港科技大学 Embedding visual information in a two-dimensional bar code
CN103824257A (en) * 2012-11-16 2014-05-28 无锡汉兴电子有限公司 Two-dimensional code image preprocessing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10141876A1 (en) * 2001-08-28 2003-03-20 Sick Ag Code recognition method
JP2013055472A (en) * 2011-09-02 2013-03-21 Sony Corp Image processor, image processing method and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6606421B1 (en) * 2000-05-25 2003-08-12 Hewlett-Packard Development Company, L.P. Geometric deformation correction method and system for dot pattern images
CN1472704A (en) * 2003-06-27 2004-02-04 上海龙贝信息科技有限公司 Strengthening method for two-dimensional barcode digital image information
CN103383738A (en) * 2012-05-03 2013-11-06 香港科技大学 Embedding visual information in a two-dimensional bar code
CN103824257A (en) * 2012-11-16 2014-05-28 无锡汉兴电子有限公司 Two-dimensional code image preprocessing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Data Matrix二维条码图像识别的算法研究与实现》;李雅静;《万方学位论文》;20100319;第三章和第四章 *
《一种新的二维条码图像二值化算法》;杨硕等;《昆明理工大学学报(自然科学版)》;20080520;第33卷(第1期);摘要和第1节 *

Also Published As

Publication number Publication date
CN104463795A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104463795B (en) A kind of dot matrix DM image in 2 D code processing method and processing device
CN105069394B (en) Quick Response Code weighted average gray level method coding/decoding method and system
CN107292310B (en) Visual positioning and automatic reading method for circular pointer type dial plate
US8509536B2 (en) Character recognition device and method and computer-readable medium controlling the same
CN104794502A (en) Image processing and mode recognition technology-based rice blast spore microscopic image recognition method
CN105354866A (en) Polygon contour similarity detection method
US6507675B1 (en) Structure-guided automatic learning for image feature enhancement
CN111899270A (en) Card frame detection method, device and equipment and readable storage medium
CN107577979A (en) DataMatrix type Quick Response Codes method for quickly identifying, device and electronic equipment
CN104899589B (en) It is a kind of that the pretreated method of two-dimensional bar code is realized using threshold binarization algorithm
CN109961416B (en) Business license information extraction method based on morphological gradient multi-scale fusion
Bodnár et al. A novel method for barcode localization in image domain
CN114529715B (en) Image identification method and system based on edge extraction
CN115272306B (en) Solar cell panel grid line enhancement method utilizing gradient operation
CN112085721A (en) Damage assessment method, device and equipment for flooded vehicle based on artificial intelligence and storage medium
CN112101058A (en) Method and device for automatically identifying test paper bar code
JP5201184B2 (en) Image processing apparatus and program
CN104268550A (en) Feature extraction method and device
CN112926695A (en) Image recognition method and system based on template matching
US10115195B2 (en) Method and apparatus for processing block to be processed of urine sediment image
CN111178111A (en) Two-dimensional code detection method, electronic device, storage medium and system
CN113159027B (en) Seven-segment digital display instrument identification method based on minimum external rectangular variant
CN109815791B (en) Blood vessel-based identity recognition method and device
CN113705660A (en) Target identification method and related equipment
Lakshmi et al. Plant leaf image detection method using a midpoint circle algorithm for shape-based feature extraction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170228

Address after: 050031 Hebei Province, Yuhua District, prosperous street, No. 131, North University of science and Technology Park, layer 1204, 12,

Patentee after: Hebei nine degrees Software Technology Co.,Ltd.

Address before: 050071 Shijiazhuang Province, Xinhua District, Heping West Road, press and Publication Bureau dormitory News Building, unit 15, unit 202, 1

Patentee before: Gao Tao

TR01 Transfer of patent right

Effective date of registration: 20210521

Address after: 050000 Room 302, unit 4, building 6, 108 Huaizhong Road, Qiaoxi District, Shijiazhuang City, Hebei Province

Patentee after: Yuan Chong

Address before: 050031 1204, 12th floor, Beida Science Park, 131 Fuqiang street, Yuhua District, Shijiazhuang City, Hebei Province

Patentee before: Hebei nine degrees Software Technology Co.,Ltd.

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

Granted publication date: 20170301