CN107391056B - Manufacturing method and system for printing discontinuous bar code - Google Patents

Manufacturing method and system for printing discontinuous bar code Download PDF

Info

Publication number
CN107391056B
CN107391056B CN201710537067.2A CN201710537067A CN107391056B CN 107391056 B CN107391056 B CN 107391056B CN 201710537067 A CN201710537067 A CN 201710537067A CN 107391056 B CN107391056 B CN 107391056B
Authority
CN
China
Prior art keywords
bar code
printing
symbol
interruption
source
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.)
Active
Application number
CN201710537067.2A
Other languages
Chinese (zh)
Other versions
CN107391056A (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.)
Newland Digital Technology Co ltd
Original Assignee
Newland Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Newland Digital Technology Co ltd filed Critical Newland Digital Technology Co ltd
Priority to CN201710537067.2A priority Critical patent/CN107391056B/en
Publication of CN107391056A publication Critical patent/CN107391056A/en
Application granted granted Critical
Publication of CN107391056B publication Critical patent/CN107391056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera

Abstract

The invention discloses a manufacturing method and a manufacturing system for printing discontinuous bar codes, which comprises the following steps: acquiring a bar code image, preprocessing the bar code image, and positioning the bar code image and a source bar code symbol; generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds; calculating the size of a bar code module of the source bar code symbol; setting printing interruption parameters, wherein the printing interruption parameters comprise an interruption direction, an interruption number n and an interruption proportion, and calculating interruption width; according to the printing interruption parameters, dividing the source bar code symbol into n equal parts from left to right in the horizontal direction, generating a printing interruption area for each horizontal bisector, setting all pixels on the printing interruption area to be white, and generating a printing interruption bar code symbol; and outputting the printed intermittent bar code symbols to the rectangular bearing plate. The method can be used for quantitatively manufacturing the printing interrupted bar codes with different parameters; any number of printed interrupted barcodes of the same format can be produced reproducibly.

Description

Manufacturing method and system for printing discontinuous bar code
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a system for manufacturing printed discontinuous bar codes.
Background
In industries such as automatic identification, one-dimensional codes or two-dimensional codes are generally used as information transmission media. The one-dimensional code or the two-dimensional code is identified and read by using a handheld scanner, a bar code identifying and reading engine, a data acquisition device with a bar code identifying and reading function, a fixed bar code scanner or an industrial bar code scanner and other equipment. The test and debugging are needed for many times in the processes of bar code reading equipment research and development, production test and test before purchase. To perform the error correction capability test, intermittent low quality bar codes need to be printed for testing.
Traditionally, the method for obtaining the printed discontinuous low-quality bar code mainly utilizes image processing software such as PS and the like to manufacture a trapezoidal low-quality bar code. The collection of low-quality barcodes printed in discontinuous types by adopting the method mainly has the following defects: (1) making and printing the intermittent bar code by PS is difficult; (2) the printing intermittent bar codes obtained by the PS method have the problems that parameters cannot be quantified and cannot be copied after being consumed, so that the testing results cannot be quantified or compared.
Disclosure of Invention
The invention aims to provide a method and a system for conveniently and flexibly manufacturing and printing discontinuous bar codes, and solves the problem that the existing low-quality bar codes cannot be quantified and cannot be copied after being consumed, so that the test results cannot be quantified or compared.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a manufacturing method for printing an interrupted bar code comprises the following steps:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; generating a printing discontinuous region a for each horizontal bisector, wherein for points (x, y) on the printing discontinuous region a, the value range of x is {0 … w }, the value range of y is { h/n × k … h/n × k + wide }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
And performing binarization processing after the first action, wherein the binarization processing comprises comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
The method further comprises an eighth action of displaying the rectangular bearing plate carrying the printing interrupted bar code symbols, wherein the displaying comprises printing displaying and screen displaying.
The invention also discloses a manufacturing method for printing the discontinuous bar code, which comprises the following steps:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
an action six, when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number n of discontinuities, the width w of the barcode symbol and the height h of the barcode symbol to form n vertical bisectors, wherein two end points of each vertical bisector have the coordinates { (w/n × k, 0), (w/n × k, h) }, and k is 1 …. n; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k … w/n × k + wide }, the value range of y is {0 … h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
And performing binarization processing after the first action, wherein the binarization processing comprises comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
The method further comprises an eighth action of displaying the rectangular bearing plate carrying the printing interrupted bar code symbols, wherein the displaying comprises printing displaying and screen displaying.
The invention also discloses a manufacturing system for printing the interrupted bar code, which comprises the following steps:
a processor adapted to implement instructions; and
a storage device adapted to store a plurality of instructions for loading and executing by a processor:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; generating a printing discontinuous region a for each horizontal bisector, wherein for points (x, y) on the printing discontinuous region a, the value range of x is {0 … w }, the value range of y is { h/n × k … h/n × k + wide }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
And performing binarization processing after the first action, wherein the binarization processing comprises comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
The invention also discloses a manufacturing system for printing the interrupted bar code, which comprises a processor and a printer, wherein the processor is suitable for realizing each instruction; and
a storage device adapted to store a plurality of instructions for loading and executing by a processor:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
an action six, when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number n of discontinuities, the width w of the barcode symbol and the height h of the barcode symbol to form n vertical bisectors, wherein two end points of each vertical bisector have the coordinates { (w/n × k, 0), (w/n × k, h) }, and k is 1 …. n; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k … w/n × k + wide }, the value range of y is {0 … h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
And performing binarization processing after the first action, wherein the binarization processing comprises comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
The invention has the beneficial effects that:
firstly, printing discontinuous bar codes with different parameters can be manufactured quantitatively by the method;
secondly, any number of printing discontinuous bar codes with the same specification can be manufactured repeatedly by the method;
thirdly, the printed discontinuous bar code manufactured by the method can be displayed on different bar code media,
forming paper bar codes and screen bar codes for different test occasions;
and fourthly, the manufacturing method has high flexibility and can manufacture printing discontinuous bar codes with different resolutions.
Drawings
FIG. 1 is a flow chart of a method of making a printed intermittent barcode of the present invention;
FIG. 2 is a schematic view of a source bar code symbol of the present invention;
FIG. 3 is a schematic view of printing a broken bar code symbol according to the present invention.
Detailed Description
The present invention will be described in detail below with reference to specific embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to these embodiments are included in the scope of the present invention.
Referring to fig. 1 to 3, in one embodiment of the present invention, a method for manufacturing a printed discontinuous barcode is disclosed, which is suitable for use in the industry of automatically recognizing barcodes, and other industries using one-dimensional barcodes or two-dimensional barcodes as information transmission media. The printed discontinuous bar code manufactured by the method can be used for testing bar code reading equipment, including one-dimensional or two-dimensional hand-held scanners, fixed universal scanners, industrial bar code scanners, reading engines, terminal equipment with a bar code identification function and the like, and as shown in figure 1, the method comprises the following steps:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
the acquired bar code image can be used for extracting a picture carrying a one-dimensional bar code or a two-dimensional bar code from an existing bar code database, or acquiring a bar code image in a scanning mode, or acquiring a standard bar code image in a photographing mode, or generating a required bar code image through bar code generating software, wherein the one-dimensional bar code or the two-dimensional bar code carried on the bar code image is a source bar code symbol, and the acquired bar code image is stored on a storage medium and is convenient to recycle. The bar code image carrying the one-dimensional bar code or the two-dimensional bar code adopts a bmp format or other formats and the like. Wherein the one-dimensional barcode may include Code39, Code93, Code128, Codabar, EAN-13, EAN-8, UPC-A, ISBN-13, GS1-128, ITF-14, etc., and the two-dimensional barcode may include PDF417, QR, DataMatrix, GridMatrix, hanxin, etc.
After the barcode image is obtained, binarization processing can be performed on the barcode image, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, the pixel points with the gray value larger than 128 are converted into white, and the pixel points with the gray value smaller than 128 are converted into black. Specifically, the whole bar code image is scanned, and a gray formula is utilized: and (3) calculating the gray value of each pixel point on each barcode image at gray of 0.2126 × r +0.7152 × g +0.0722 × b, comparing the gray value with the gray value of 128, assigning the pixel point with the gray value being more than 128 to be 255, and assigning the pixel point with the gray value being less than 128 to be 0.
The bar code image obtained by the method is regular, irrelevant information is removed, and a simple method can be adopted to position the source bar code symbol to obtain the parameter value of the source bar code symbol. Specifically, the whole image is scanned, and each black pixel point is judged to appear, wherein the vertical coordinate of the black pixel point is the lower boundary when the vertical coordinate is the minimum, the vertical coordinate of the black pixel point is the upper boundary when the vertical coordinate is the maximum, the horizontal coordinate of the black pixel point is the left boundary when the horizontal coordinate is the minimum, and the horizontal coordinate of the black pixel point is the right boundary when the. The boundary coordinates of the source barcode symbol are thus marked, which include the lower left corner (bcleft, bcbottom), the lower right corner (bcright, bcbottom), the upper left corner (bcleft, bctop), and the upper right corner (bcright, bctop) of the source barcode symbol. And obtaining the width w and the height h of the source bar code symbol according to the boundary coordinates. And simultaneously acquiring the width and the height of the bar code image.
Secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
in this step, the formed rectangular bearing plate is used for bearing the printing of the discontinuous bar code symbols, and a rectangular bearing plate needs to be generated according to the parameters of the width and the height of the bar code image, so that the rectangular bearing plate can bear the printing of the discontinuous bar code symbols. The rectangular bearing plate adopts a bmp image with a white background, and the rectangular bearing plate can also adopt other background colors according to the use requirement.
Traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
in this step, the discontinuity direction is a two-dimensional plane direction of a discontinuity line in the source barcode symbol, and the discontinuity direction may be a horizontal direction or a vertical direction.
In this step, the number of the discontinuities n is the number of the discontinuity lines, and the number of the discontinuities may be 1 to 10 (which must be an integer), such as 2, 3, 5, etc., and the printing discontinuities formed by different numbers of the discontinuities are different in degree. For example, a number of breaks of 3 indicates that there are 3 printed break lines in the source barcode symbol.
In this step, the interruption ratio r is a percentage of the width of the interruption line to the size of the barcode module, the percentage may be 10 to 90%, such as 30%, 40%, 50%, 46%, 78%, 80%, 90%, 48.9%, 52.3%, and the like, and the printing interruption degrees formed by different percentages are different. For example, at a percentage of 30%, representing a bar code module size of 100 pixels, there are 30 dots arranged as white printing break lines.
Fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; for each horizontal bisector, a printing intermittent region a is generated, and for the point (x, y) on the printing intermittent region a, the value range of x is {0 … w }, the value range of y is { h/n × k … h/n × k + wide }, and k is 1 …. Setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
in another embodiment, in action six, when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number of discontinuities n, the width of the barcode symbol w, and the height of the barcode symbol h to form n vertical bisectors, where two end points of each vertical bisector are represented by { (w/n × k, 0), (w/n × k, h) }, k is 1 … {; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k … w/n × k + wide }, the value range of y is {0 … h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols.
And seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images. And after the printed intermittent bar code symbols are output to the rectangular bearing plate to form printed intermittent bar code images, the printed intermittent bar code images can be stored, so that the subsequent use is facilitated.
The formed printing interrupted bar code image can be printed on different media, and the media can be paper, metal, plastic or PVC materials of different types. The formed printing discontinuous bar code image can be displayed on a screen medium, the screen medium can be a screen of a computer, a mobile phone, a PDA and other equipment and an electronic ink screen, screens with different resolutions can be adopted, and the screens can be adjusted to be in different brightness, so that the diversity and the comprehensiveness of the picture are increased. When the printing of the intermittent bar code image is carried out or displayed, the intermittent bar code image can be printed singly for display or a plurality of the printing of the intermittent bar code images form a matrix with a plurality of rows and a plurality of columns for display.
And after the first action, performing binarization processing, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
The printed discontinuous bar code image acquired by the method can be displayed in various modes, wherein the displaying comprises printing displaying and screen displaying. The formed printing interrupted bar code image can be printed on different media, and the media can be paper, metal, plastic or PVC materials of different types. The formed printing discontinuous bar code image can be displayed on a screen medium, the screen medium can be a screen of a computer, a mobile phone, a PDA and other equipment and an electronic ink screen, screens with different resolutions can be adopted, and the screens can be adjusted to be in different brightness, so that the diversity and the comprehensiveness of the picture are increased. When the printing of the intermittent bar code image is carried out or displayed, the intermittent bar code image can be printed singly for display or a plurality of the printing of the intermittent bar code images form a matrix with a plurality of rows and a plurality of columns for display.
The invention also discloses a manufacturing system for printing the discontinuous bar code, which is based on all the methods and steps of the manufacturing method for printing the discontinuous bar code.
Specifically, the system comprises:
a processor adapted to implement instructions; and
a storage device adapted to store a plurality of instructions for loading and executing by a processor:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; for each horizontal bisector, a printing intermittent region a is generated, and for the point (x, y) on the printing intermittent region a, the value range of x is {0 … w }, the value range of y is { h/n × k … h/n × k + wide }, and k is 1 …. Setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
in another embodiment, in action six, when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number of discontinuities n, the width of the barcode symbol w, and the height of the barcode symbol h to form n vertical bisectors, where two end points of each vertical bisector are represented by { (w/n × k, 0), (w/n × k, h) }, k is 1 … {; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k … w/n × k + wide }, the value range of y is {0 … h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols.
And seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
The system refers to all methods and steps of the manufacturing method of the printing intermittent bar codes, and the printing intermittent bar codes with different parameters can be manufactured quantitatively by adopting the method and the system; any number of printing interrupted bar codes with the same specification can be repeatedly manufactured; the manufactured printing interrupted bar code can be displayed on different bar code media to form a paper bar code and a screen bar code for different test occasions; the printing discontinuous bar code manufactured by the system and the method has high flexibility, and the printing discontinuous bar codes with different resolutions can be manufactured.
It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can also be combined appropriately to form other embodiments understood by those skilled in the art.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.

Claims (10)

1. A manufacturing method for printing an interrupted bar code is characterized by comprising the following steps:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein the coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; generating a printing discontinuous region a for each horizontal bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is {0, …, w }, the value range of y is { h/n × k, …, h/n × k + wide }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
2. The method of claim 1, wherein the step of printing the interrupted bar code comprises:
and after the first action, performing binarization processing, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
3. The method of claim 1, wherein the step of printing the interrupted bar code comprises:
the method further comprises an eighth action of displaying the rectangular bearing plate carrying the printing interrupted bar code symbols, wherein the displaying comprises printing displaying and screen displaying.
4. A manufacturing method for printing an interrupted bar code is characterized by comprising the following steps:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n vertical bisectors, wherein the coordinates of two end points of each vertical bisector are { (w/n × k, 0), (w/n × k, h) }, and k is 1 …. n; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k, …, w/n × k + wide }, the value range of y is {0, …, h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
5. The method of claim 4, wherein said printing is performed in a batch mode, wherein said printing comprises: and after the first action, performing binarization processing, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
6. The method of claim 4, wherein said printing is performed in a batch mode, wherein said printing comprises: the method further comprises an eighth action of displaying the rectangular bearing plate carrying the printing interrupted bar code symbols, wherein the displaying comprises printing displaying and screen displaying.
7. A system for printing a discontinuous bar code, comprising:
a processor adapted to implement instructions; and
a storage device adapted to store a plurality of instructions for loading and executing by a processor:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a horizontal direction, dividing the source barcode symbol into n equal parts from left to right along the horizontal direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n horizontal equal division lines, wherein the coordinates of two end points of each horizontal equal division line are { (0, h/n × k), (w, h/n × k) }, and k is 1 …. n; generating a printing discontinuous region a for each horizontal bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is {0, …, w }, the value range of y is { h/n × k, …, h/n × k + wide }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
8. The system of claim 7, wherein the printing system is configured to print a discontinuous barcode comprising: and after the first action, performing binarization processing, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
9. A system for printing interrupted bar codes, comprising: a processor adapted to implement instructions; and
a storage device adapted to store a plurality of instructions for loading and executing by a processor:
the method comprises the steps of firstly, obtaining a bar code image, wherein a source bar code symbol is borne on the bar code image; obtaining a bar code image parameter value and a source bar code symbol parameter value on the bar code image, wherein the bar code image parameter value comprises a bar code image width and a bar code image height, and the source bar code symbol parameter value comprises a boundary point coordinate, a bar code symbol width w and a bar code symbol height h;
secondly, generating a rectangular bearing plate by taking the width and the height of the bar code image as thresholds;
traversing all pixel points of the source bar code symbol, recording the lengths of continuous black pixel points in a list one by one, and searching a minimum value in the list, wherein the minimum value is a bar code module size unit of the source bar code symbol, and the bar code module size unit is a basic unit forming a bar code;
setting printing interruption parameters, wherein the printing interruption parameters comprise interruption directions, interruption numbers n and interruption proportions r;
fifthly, calculating the break width wide-unit r according to the size unit of the bar code module and the break proportion r;
when the discontinuity direction is a vertical direction, dividing the source barcode symbol into n equal parts from top to bottom along the vertical direction according to the number of discontinuities n, the width w of the barcode symbol and the height h of the barcode symbol to form n vertical bisectors, wherein the coordinates of two end points of each vertical bisector are { (w/n × k, 0), (w/n × k, h) }, and k is 1 …. n; generating a printing discontinuous region a for each vertical bisector, wherein for a point (x, y) on the printing discontinuous region a, the value range of x is { w/n × k, …, w/n × k + wide }, the value range of y is {0, …, h }, and k is 1 …. n; setting all pixels on the printing discontinuous area to be white and generating printing discontinuous bar code symbols;
and seventhly, outputting the printing interrupted bar code symbols to the rectangular bearing plate to form printing interrupted bar code images.
10. The system of claim 9, wherein the printing is performed in a batch bar code printing system, wherein: and after the first action, performing binarization processing, wherein the binarization processing comprises the step of comparing the gray value of each pixel point on the barcode image with 128, converting the pixel points with the gray values larger than 128 into white, and converting the pixel points with the gray values smaller than 128 into black.
CN201710537067.2A 2017-07-04 2017-07-04 Manufacturing method and system for printing discontinuous bar code Active CN107391056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710537067.2A CN107391056B (en) 2017-07-04 2017-07-04 Manufacturing method and system for printing discontinuous bar code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710537067.2A CN107391056B (en) 2017-07-04 2017-07-04 Manufacturing method and system for printing discontinuous bar code

Publications (2)

Publication Number Publication Date
CN107391056A CN107391056A (en) 2017-11-24
CN107391056B true CN107391056B (en) 2020-05-05

Family

ID=60335176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710537067.2A Active CN107391056B (en) 2017-07-04 2017-07-04 Manufacturing method and system for printing discontinuous bar code

Country Status (1)

Country Link
CN (1) CN107391056B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096795A (en) * 2010-11-25 2011-06-15 西北工业大学 Method for recognizing worn two-dimensional barcode image
JP2013089004A (en) * 2011-10-18 2013-05-13 Riso Kagaku Corp Image processing apparatus
CN105160339A (en) * 2015-08-06 2015-12-16 四川大学 Two-dimension code printing quality online assessment method
CN105678692A (en) * 2016-01-07 2016-06-15 北京印刷学院 Two-dimensional code pre-deformation design method on conical surface
CN105787897A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Processing method and device of fuzzy two-dimensional code image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096795A (en) * 2010-11-25 2011-06-15 西北工业大学 Method for recognizing worn two-dimensional barcode image
JP2013089004A (en) * 2011-10-18 2013-05-13 Riso Kagaku Corp Image processing apparatus
CN105160339A (en) * 2015-08-06 2015-12-16 四川大学 Two-dimension code printing quality online assessment method
CN105678692A (en) * 2016-01-07 2016-06-15 北京印刷学院 Two-dimensional code pre-deformation design method on conical surface
CN105787897A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Processing method and device of fuzzy two-dimensional code image

Also Published As

Publication number Publication date
CN107391056A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US9501680B2 (en) Method and device for batch scanning 2D barcodes
EP2183702B1 (en) Imaging system for reading target with multiple symbols
CN102521558B (en) Bar code identifying method and device
US8254683B2 (en) Code image processing method
US8453921B2 (en) Data transfers with bar codes
JP2013131208A (en) Method and device for performing position specification and decoding of machine-readable symbol
US20150302236A1 (en) Method and device for identifying a two-dimensional barcode
JP2021119465A (en) Enhanced matrix symbol error correction method
CN105787403B (en) A kind of bar code reading method of high pixel image processing and the bar code recognizing apparatus of high pixel image processing
US9652652B2 (en) Method and device for identifying a two-dimensional barcode
CN111539236A (en) Method for reading multiple bar codes at one time
CN110940670B (en) Machine vision-based flexographic printing label printing first manuscript detection system and implementation method thereof
CN111783495A (en) Bar code identification method and device, electronic equipment and storage medium
CN102782705B (en) Comprise the resolution adjustment of the image of the text of experience OCR process
CN103839028B (en) A kind of paper media method and system interactive with reader
CN107742089B (en) Method for automatically identifying two-dimensional code by using spreadsheet
TW201601068A (en) Image type high-speed barcode scanning method
CN107391056B (en) Manufacturing method and system for printing discontinuous bar code
KR20110105369A (en) A 2d barcode image extracting/decoding device, and the method therefor
CN107392282B (en) Method and system for manufacturing wear bar code
CN109145916B (en) Image character recognition and cutting method and storage device
CN204360383U (en) A kind of bar code recognizing apparatus of high pixel image processing
CN107392285B (en) Method and system for manufacturing deformed bar code
CN107403218B (en) Method for changing bar code ink
CN112800798B (en) Aztec code positioning method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Applicant after: New Continent Digital Technology Co., Ltd.

Address before: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Applicant before: Fujian Newland Computer Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant