CN102810150B - Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method - Google Patents
Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method Download PDFInfo
- Publication number
- CN102810150B CN102810150B CN201110147193.XA CN201110147193A CN102810150B CN 102810150 B CN102810150 B CN 102810150B CN 201110147193 A CN201110147193 A CN 201110147193A CN 102810150 B CN102810150 B CN 102810150B
- Authority
- CN
- China
- Prior art keywords
- dimensional barcode
- special
- dislocation
- dimensional
- bar code
- 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
Links
Landscapes
- Printers Characterized By Their Purpose (AREA)
- Credit Cards Or The Like (AREA)
Abstract
The invention discloses a dislocation-priority special-shape matrix type two-dimensional barcode arrangement method which comprises the following steps: (1) setting a form on a paper substrate, wherein the form internally comprises four transversely-juxtaposed two-dimensional barcodes with same size; (2) acquiring the length LX and the width LY of the form; (3) acquiring the length MX and the width MY of a two-dimensional barcode module; (4) calculating the length PX of a two-dimensional barcode symbol, wherein the PX=(LY-5*3MX)/4; (5) calculating the module number MC of the two-dimensional barcode symbol, wherein the MC=PX/MX (round-off number); (6) calculating the starting Y coordinate DY formed by arranging the two-dimensional barcode symbol by taking the top left corner of the form as the point of origin, wherein the DY=(LY-MC*MY)/2; (7) calculating the starting X coordinate D1X of the first two-dimensional barcode symbol, wherein the D1X=3MX; and (8) calculating the starting X coordinates of the other three special-shape matrix type two-dimensional barcode symbols. Due to the adoption of the dislocation-priority special-shape matrix type two-dimensional barcode arrangement method, the technical problem on how to ensure that the two-dimensional barcode is in the normal form in the narrow form area as far as possible on account of printing dislocation is solved, and the multi-part note can be printed continuously and conveniently.
Description
Technical field
The present invention relates to bar code field, in particular to the arrangement method of a kind of multiple special-shaped matrix two-dimensional barcodes in certain area.
Background technology
Matrix two-dimensional barcode is made up of by X and the splicing of Y-direction equal number the module that some length of sides are equal, global matrix formula two dimensional bar code symbol is also the square-shaped image symbol that a length of side is equal, module represents information 0 and 1 respectively by black and white, and whole matrix two-dimensional barcode can express a packet.Module is larger, and the image of whole matrix two-dimensional barcode symbol is larger, and the size between them is directly proportional.If instead limit the area of whole symbol, so want to hold more information, what just need the dimension definitions of module is smaller, but too little and None-identified, this is the equal of the index of two contradictions.
The general matrix two-dimensional barcode pictorial symbol generally side of being, when file have enough regions and the matrix two-dimensional barcode of multiple side that needs to arrange time, directly just passable side by side, when file limited area and be a fixing long and narrow space time, two-dimensional bar code of how arranging just has had certain difficulty, especially in order to make full use of area space, a non-side's special-shaped matrix two-dimensional barcode built through particular design wait the two-dimensional bar code of arranging and print, this problem just difficulty further.Some application scenarios, when such as stylus printer prints multiple part bills continuously, often occur that entirety has misplaced a line or multirow forward or backward, this situation is more common, as long as but content intact, generally all can normally be judged to be effective document and can not cancel.But those are employed to the bill of two-dimensional bar code, when there is dislocation, two-dimensional bar code can by the original design that misplaces out should form inside, become and the printing on side or printable character overlap, so, two-dimensional bar code just becomes None-identified, in this case bill can only cancel and again prints, and wrong market condition is more common, under wrong market condition, two-dimensional bar code how still can be made to be printed on normal design position, be current technology Problems existing.Specific in this case, bill is design when needing to arrange multiple special-shaped matrix two-dimensional barcode, and problem just becomes difficulty further.
Therefore, how the problems referred to above are solved, be the research direction place of those skilled in the art.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method, and it is in order to realize at a long and narrow table area, ensures that two-dimensional bar code drops on the arrangement method in normal form as far as possible for printing dislocation.
In order to achieve the above object, the invention provides a kind of Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method, it comprises the following steps:
Step 1: arrange a form on a paper substrates, comprises 4 measure-alike, horizontal two-dimensional bar codes side by side in this form;
Step 2: obtain form length and width size LX and LY;
Step 3: the length and width size MX and the MY that obtain two-dimensional bar code module;
Step 4: the long size PX=(LX-5*3MX)/4 calculating two dimensional bar code symbol;
Step 5: the number of modules MC=PX/MX calculating two dimensional bar code symbol rounds;
Step 6: with the form upper left corner for initial point, calculates the starting Y-coordinate DY=(LY-MC*MY)/2 of two dimensional bar code symbol arrangement;
Step 7: the starting X-coordinate D1X=3MX calculating first two dimensional bar code symbol;
Step 8: the starting X-coordinate calculating all the other 3 special-shaped matrix two-dimensional barcode symbols: D2X=D1X+MX*MC+3MX, D3X=D2X+MX*MC+3MX, D4X=D3X+MX*MC+3MX, wherein, the origin coordinates of to be arranged 4 special-shaped matrix two-dimensional barcode symbols is respectively: (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY), and (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY) be for initial point with the form upper left corner of special-shaped matrix two-dimensional barcode symbol to be printed, origin is (0, 0).
Preferably in embodiment, the long LX of described form is 80mm, and wide LY is 20mm.
Preferably in embodiment, the long size MX of described two-dimensional bar code module is 0.42mm, is widely of a size of 0.35mm.
Preferably in embodiment, the distance between described 4 two-dimensional bar codes is 1.26mm.
Preferably in embodiment, described form has frame line, and the distance of arbitrary two-dimensional bar code and described frame line is more than or equal to 1mm.
Preferably in embodiment, described two-dimensional bar code occupy in the middle of form on longitudinal direction.
Preferably in embodiment, with the described form upper left corner for initial point (0,0), the origin coordinates of 4 two dimensional bar code symbols is respectively: (1.26,2.48), (20.58,2.48), (39.9,2.48), (57.22,2.48), coordinate linear module is mm.
Compared with prior art, beneficial effect of the present invention is:
Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method provided by the invention, because there has been unnecessary blank above and below, better spatial accommodation has been had to dislocation, optimally solve at a long and narrow table area, ensure that two-dimensional bar code drops on the technical matters in normal form as far as possible for printing dislocation, multiple part bills can be printed continuously easily, save time and paper wood.
Accompanying drawing explanation
Fig. 1 is Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method one schematic diagram of the present invention;
Fig. 2 is Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method one embodiment schematic diagram of the present invention;
Fig. 3 is another preferred embodiment schematic diagram of Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method of the present invention.
Description of reference numerals: 1-paper substrates; 2-form; 3-two-dimensional bar code.
Embodiment
Be clearly and completely described the technical scheme in the embodiment of the present invention below, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention provides the top-priority special-shaped matrix two-dimensional barcode arrangement method of a kind of dislocation, in order to realize at a long and narrow table area, ensure that two-dimensional bar code drops on the arrangement method in normal form as far as possible for printing dislocation.
Consult Fig. 1 and Fig. 2, Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method of the present invention, comprises the following steps:
Step 1: arrange a form 2 on a paper substrates 1, comprises 4 measure-alike, horizontal two-dimensional bar codes 3 side by side in this form 2;
Step 2: the form length and width size LX and the LY that obtain special-shaped matrix two-dimensional barcode symbol;
Step 3: the length and width size MX and the MY that obtain special-shaped matrix two-dimensional barcode module;
Wherein, MX and MY size derives from the true picture print resolution of printer, and it is a given value in the present invention.
Step 4: the long size PX=(LX-5*3MX)/4 calculating special-shaped matrix two-dimensional barcode symbol;
Coordinating consults shown in Fig. 2, scheme known thus, 4 two-dimensional bar codes are provided with in form 2 of the present invention, so have 5 gaps, according to the national standard of two-dimensional bar code, the blank (i.e. 3MX) of at least 3 module size is needed around two-dimensional bar code, so 1 gap needs 3MX, MX represents the long size of two-dimensional bar code module, 5 gaps are exactly 5*3MX, deduct the length in these 5 gaps with form total length L X, then divided by 4, obtain the long size PX of the single two-dimensional bar code that can hold.
Step 5: the number of modules MC=PX/MX calculating two dimensional bar code symbol rounds;
In this step, module and number of modules are the name word concepts defined in two-dimensional bar code standard, matrix two-dimensional barcode is made up of multiple number of modules that number is anyhow equal, that is can learn that module side is multiplied by the length of side that number of modules equals two-dimensional bar code by the description of two-dimensional bar code standard, breach the definition of two-dimensional bar code standard in the present invention, by module definition in order to not be square, but observe the rule that in two-dimensional bar code standard, laterally longitudinal number of modules is identical, so this step is because the size of form limits the PX obtained, divided by the long size MX of module, just can obtain the number of modules MC that a length direction meets.
Step 6: with the form upper left corner for initial point, calculates the starting Y-coordinate DY=(LY-MC*MY)/2 of two dimensional bar code symbol arrangement;
Due to, MY is the wide size of module, number of modules MC is multiplied by longitudinal width that MY is single two-dimensional bar code, deduct longitudinal width with table width, then divided by 2, obtain the width of each blank up and down, take the upper left corner as the words of true origin, also be Y-coordinate, because 4 two-dimensional bar codes are laterally side by side, so Y-coordinate is identical.
Step 7: the starting X-coordinate D1X=3MX calculating first two dimensional bar code symbol;
Can be learnt by above-mentioned, around two-dimensional bar code, need the blank of at least 3 module size, so 1 gap needs 3MX, therefore, the starting X-coordinate D1X=3MX of two dimensional bar code symbol.
Step 8: the starting X-coordinate calculating all the other 3 special-shaped matrix two-dimensional barcode symbols: D2X=D1X+MX*MC+3MX, D3X=D2X+MX*MC+3MX, D4X=D3X+MX*MC+3MX,
Wherein, the origin coordinates of to be arranged 4 special-shaped matrix two-dimensional barcode symbols is respectively: (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY), and (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY) be with the form upper left corner of special-shaped matrix two-dimensional barcode symbol to be printed for initial point, origin is (0,0).
For an embodiment, above-mentioned steps of the present invention is described below, refers to shown in Fig. 3:
Step 1: arrange a form 2 on a paper substrates 1, comprises 4 measure-alike, horizontal two-dimensional bar codes 3 side by side in this form 2;
Step 2: the form length and width size LX and LY, LX=80mm, the LY=20mm that obtain special-shaped matrix two-dimensional barcode symbol of waiting to arrange;
Step 3: the length and width size MX and MY, MX=0.42mm, the MY=0.35mm that obtain special-shaped matrix two-dimensional barcode module; This numerical value derives from the true picture print resolution of printer, and in the present invention, it is a given value.
Step 3: long size PX=(LX-5*3MX)/4, PX=(the 80-15*0.42)/4=18.43mm calculating special-shaped matrix two-dimensional barcode symbol;
Step 5: the number of modules MC=PX/MX calculating special-shaped matrix two-dimensional barcode symbol rounds, MC=18.43/0.42=43;
Step 6: with the form upper left corner for initial point, calculates starting Y-coordinate DY=(LY-MC*MY)/2, DY=(the 20-43*0.35)/2=2.48mm of special-shaped matrix two-dimensional barcode symbol arrangement;
Step 7: the starting X-coordinate D1X=3MX calculating first special-shaped matrix two-dimensional barcode symbol, D1X=3*0.42=1.26mm;
Step 8: the starting X-coordinate calculating all the other 3 special-shaped matrix two-dimensional barcode symbols: D2X=D1X+MX*MC+3MX=1.26+0.42*43+1.26=1.26+18.06+1.26=20.5 8mm, D3X=D2X+MX*MC+3MX=20.58+18.06+1.26=39.9mm, D4X=D3X+MX*MC+3MX=39.9+18.06+1.26=59.22mm;
Wherein, the origin coordinates of to be arranged 4 special-shaped matrix two-dimensional barcode symbols is respectively: (1.26,2.48), (20.58,2.48), (39.9,2.48), (57.22,2.48), this serial origin is the form upper left corner of special-shaped matrix two-dimensional barcode symbol to be printed, and origin is (0,0), coordinate linear module is mm.
A preferred embodiment of the present invention, is more than or equal to 1mm between described 4 two-dimensional bar codes.
Described form 2 has frame line, and another preferred embodiment of the present invention, the distance of arbitrary two-dimensional bar code and described frame line is more than or equal to 1mm.
A preferred embodiment of the present invention, described multiple two-dimensional bar codes 3 occupy in the middle of form 2 on longitudinal direction.
In sum, the invention provides a kind of Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method, because there has been unnecessary blank above and below, better spatial accommodation has been had to dislocation, optimally solve at a long and narrow table area, ensure that two-dimensional bar code drops on the technical matters in normal form as far as possible for printing dislocation, multiple part bills can be printed easily continuously, save time and paper wood.
More than illustrate just illustrative for the purpose of the present invention, and nonrestrictive, and those of ordinary skill in the art understand; when not departing from the spirit and scope that following claims limit, many amendments can be made, change; or equivalence, but all will fall within the scope of protection of the present invention.
Claims (7)
1. a Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method, is characterized in that, it comprises the following steps:
Step 1: arrange a form on a paper substrates, comprises 4 measure-alike, horizontal two-dimensional bar codes side by side in this form;
Step 2: obtain form length and width size LX and LY;
Step 3: the length and width size MX and the MY that obtain two-dimensional bar code module;
Step 4: the long size PX=(LX-5*3MX)/4 calculating two dimensional bar code symbol;
Step 5: the number of modules MC=PX/MX calculating two dimensional bar code symbol rounds;
Step 6: with the form upper left corner for initial point, calculates the starting Y-coordinate DY=(LY-MC*MY)/2 of two dimensional bar code symbol arrangement;
Step 7: the starting X-coordinate D1X=3MX calculating first two dimensional bar code symbol;
Step 8: the starting X-coordinate calculating all the other 3 special-shaped matrix two-dimensional barcode symbols: D2X=D1X+MX*MC+3MX, D3X=D2X+MX*MC+3MX, D4X=D3X+MX*MC+3MX, wherein, the origin coordinates of to be arranged 4 special-shaped matrix two-dimensional barcode symbols is respectively: (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY), and (D1X, DY), (D2X, DY), (D3X, DY), (D4X, DY) be for initial point with the form upper left corner of special-shaped matrix two-dimensional barcode symbol to be printed, origin is (0, 0).
2. Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 1, is characterized in that, the long LX of described form is 80mm, and wide LY is 20mm.
3. Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 2, is characterized in that, the long size MX of described two-dimensional bar code module is 0.42mm, is widely of a size of 0.35mm.
4. Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 3, is characterized in that, the distance between described 4 two-dimensional bar codes is 1.26mm.
5. the Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 1 or 3, is characterized in that, described form has frame line, and the distance of arbitrary two-dimensional bar code and described frame line is more than or equal to 1mm.
6. Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 1, is characterized in that, described two-dimensional bar code occupy in the middle of form on longitudinal direction.
7. Dislocation-priorityspecial-shape special-shape matrix type two-dimensional barcode arrangement method according to claim 3, is characterized in that, with the described form upper left corner for initial point (0,0), the origin coordinates of 4 two dimensional bar code symbols is respectively: (1.26,2.48), (20.58,2.48), (39.9,2.48), (57.22,2.48), coordinate linear module is mm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110147193.XA CN102810150B (en) | 2011-06-02 | 2011-06-02 | Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110147193.XA CN102810150B (en) | 2011-06-02 | 2011-06-02 | Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102810150A CN102810150A (en) | 2012-12-05 |
CN102810150B true CN102810150B (en) | 2015-04-08 |
Family
ID=47233854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110147193.XA Active CN102810150B (en) | 2011-06-02 | 2011-06-02 | Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102810150B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733346A (en) * | 2018-04-13 | 2018-11-02 | 云南黑软科技有限公司 | Successively decrease cumulative aperture method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1336583A (en) * | 2001-09-03 | 2002-02-20 | 吴建明 | Matrix code printing and identifying method |
CN1963838A (en) * | 2006-11-07 | 2007-05-16 | 中国物品编码中心 | Method for correcting distortion of two-dimension bar figure |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100321708A1 (en) * | 2006-10-20 | 2010-12-23 | Stefan Lynggaard | Printing of coding patterns |
-
2011
- 2011-06-02 CN CN201110147193.XA patent/CN102810150B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1336583A (en) * | 2001-09-03 | 2002-02-20 | 吴建明 | Matrix code printing and identifying method |
CN1963838A (en) * | 2006-11-07 | 2007-05-16 | 中国物品编码中心 | Method for correcting distortion of two-dimension bar figure |
Non-Patent Citations (1)
Title |
---|
二维条码的码图结构设计中的若干问题;张玲等;《计算机与数字工程》;20040420;第32卷(第2期);第25-27页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102810150A (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101876967B (en) | Method for generating PDF text paragraphs | |
CN105630817B (en) | A kind of method and system of electronic invoice Context resolution | |
EP3093797A1 (en) | Reading and writing verification device for rfid medium, and reading and writing verification method for same | |
US9613005B2 (en) | Method and apparatus for bidirectional typesetting | |
US11630621B2 (en) | Information processing apparatus and non-transitory computer readable medium | |
CN106022426A (en) | Method and system for generating two-dimensional code with color pattern | |
CN102810150B (en) | Dislocation-priority special-shape matrix type two-dimensional barcode arrangement method | |
JP5779378B2 (en) | Imposition template, imposition data generation apparatus, imposition data generation method and program | |
CN113204933B (en) | PCB jointed board determination method and device, electronic equipment and storage medium | |
CN102810151B (en) | Capacity-priority special-shape matrix type two-dimensional barcode arrangement method | |
CN100480894C (en) | Printing method with small margin or no margin | |
JP2014049774A (en) | Image processing apparatus, image processing method, image recording apparatus, and program | |
WO2012057797A1 (en) | Determining imposition of printable objects | |
CN102810170B (en) | Quick response matrix code and building method thereof | |
CN103186513B (en) | A kind of method of document format conversion and device | |
CN202257626U (en) | Information recording device having largest capacity | |
CN104589788B (en) | Digital printing processing method and device | |
CN104156345A (en) | Method and device for identifying explanatory text in portable document format file | |
CN102810169B (en) | Special-shaped two-dimensional matrix barcode construction method | |
CN202088672U (en) | Dislocation priority information recording device | |
CN102810149B (en) | Quick response matrix code position sensing figure and construction method thereof | |
JP2013129103A (en) | Apparatus and program for printing label | |
CN104461408A (en) | Small margin or margin-free printing method | |
CN111309300A (en) | Code generation method, device, computer system and readable storage medium | |
CN107886015B (en) | Bar code printing method and bar code printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |