CN104723711A - Method for printing horizontal barcode with barcode printer - Google Patents

Method for printing horizontal barcode with barcode printer Download PDF

Info

Publication number
CN104723711A
CN104723711A CN201510119353.8A CN201510119353A CN104723711A CN 104723711 A CN104723711 A CN 104723711A CN 201510119353 A CN201510119353 A CN 201510119353A CN 104723711 A CN104723711 A CN 104723711A
Authority
CN
China
Prior art keywords
bar code
barcode
bar
horizontal
printer
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.)
Granted
Application number
CN201510119353.8A
Other languages
Chinese (zh)
Other versions
CN104723711B (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.)
Beijing Kechuang Jing Cheng Science And Technology Co Ltd
Original Assignee
Beijing Kechuang Jing Cheng Science And 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 Beijing Kechuang Jing Cheng Science And Technology Co Ltd filed Critical Beijing Kechuang Jing Cheng Science And Technology Co Ltd
Priority to CN201510119353.8A priority Critical patent/CN104723711B/en
Publication of CN104723711A publication Critical patent/CN104723711A/en
Application granted granted Critical
Publication of CN104723711B publication Critical patent/CN104723711B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)

Abstract

The invention provides a method for printing a horizontal barcode with a barcode printer. The method comprises the following steps that A, the bar width compensation dosage range of printing of the horizontal barcode is determined according to the print head precision of the printer, and a test pattern of the horizontal barcode which contains each bar width compensation dosage and a vertical barcode is formed and printed; the horizontal barcode means that the bar direction of the barcode is parallel to the travel direction of the printing head of the barcode printer, and the vertical barcode means that the bar direction is vertical to the travel direction of the printing head of the barcode printer; B, the horizontal barcode containing each bar width compensation dosage is compared with the standard vertical barcode, and the bar width compensation dosage corresponding to the horizontal barcode which has the smallest bar width error with the vertical barcode is determined; and C, when the horizontal barcode is printed, each bar width in the barcode is compensated according to the determined bar width compensation dosage and then is printed. By comparing the compensation dosage in the compensation range with an ideal value to determine the optimum compensation dosage, the horizontal barcode is close to the ideal value, and the printing quality of the barcode is improved.

Description

A kind of bar code printer prints the method for horizontal bar code
Technical field
The present invention relates to bar code printing technical field, particularly a kind of bar code printer prints the method for horizontal bar code.
Background technology
Bar code printer is a kind of equipment realizing bar code printing output based on sensible heat mode, melts the ink on carbon ribbon, transferred on print media during printing by the heating print unit on printhead; Or directly make the print media variable color with specific coatings, realize bar code printing.The bar code printed is made up of one group of rectangular strip that is spaced, parallel, antiradar reflectivity, the bar (as being black) of these antiradar reflectivities is called " bar ", and the high reflectance gap (as being white) between each bar is called " sky ".
Because printer paper-feeding precision, printhead are brought down a fever the joint effect of speed and dielectric material quality, when the bearing of trend of the bar (or empty) in bar code be laterally, namely parallel with the printhead stroke directions of printer time, time vertical with printer paper-feeding direction in other words, bar code-bar may be caused wide inconsistent with the width for printing, affect bar code printing quality, and then affect the discrimination of bar code.For convenience of description, in this description, the bar code that aforesaid way prints is called horizontal bar code; Corresponding longitudinal bar code be defined as the bearing of trend of the bar in bar code vertical with the printhead stroke directions of printer time, parallel with printer paper-feeding direction in other words.
Summary of the invention
The application provides a kind of bar code printer to print the method for horizontal bar code, comprises step:
A, the wide compensation rate scope of bar of printhead precision determination Cross slat code printing according to printer, generate and print and comprise the horizontal bar code of the wide compensation rate of each bar and the resolution chart of longitudinal bar code;
Described horizontal bar code refers to that the bar direction in bar code is parallel with the printhead stroke directions of bar code printer, and longitudinal bar code is that finger direction is vertical with the printhead stroke directions of bar code printer;
B, the horizontal bar code comprising the wide compensation rate of each bar by described and the longitudinal bar code of standard compare, and determine and the wide compensation rate of bar corresponding to the horizontal bar code that the wide error of the bar of longitudinal bar code is minimum;
C, when printing horizontal bar code, compensate rear printing according to the wide compensation rate of described bar determined to rule each in bar code is wide.
By upper, by the compensation range that the precision primary election of printhead is applicable to, and by the offset in compensation range is compared with ideal value one by one, determine optimal compensation amount, in actual print procedure, carrying out width compensation according to optimal compensation amount to horizontal bar code, is that horizontal bar code is close to ideal value to greatest extent, thus improve the print quality of bar code, be convenient to identify.
Optionally, in steps A, the minimum of a value of described compensation rate scope is 1, and maximum is equal with printhead precision.
Optionally, also comprise when printing horizontal bar code: when judging that the bar code discal patch that will print is wide and be less than the wide compensation rate of determined described bar, this is not compensated.
By upper, after making correction-compensation, at least can retain a print unit in the position of bar and print.
Accompanying drawing explanation
Fig. 1 is flow chart of the present invention;
Fig. 2 is the principle schematic of standardized test chart;
Fig. 3 is the schematic diagram revised bar code.
Detailed description of the invention
Based on the defect of prior art, a kind of bar code printer disclosed in this invention prints the method for horizontal bar code.
As shown in Figure 1, the method that bar code printer prints horizontal bar code comprises the following steps:
Step S10: according to printhead precision confirmed standard resolution chart, print described standardized test chart.
As shown in Figure 2, standardized test chart is made up of two large divisions, comprises standard bar code district 21 and compensating test district 22.In this example, suppose that this resolution chart is that the printer of above-below direction paper delivery in Fig. 2 printed, be understood that, the stroke of the printhead of this printer is left and right directions in Fig. 2 accordingly.
Wherein, standard bar code district 21 comprises the longitudinal bar code 201 of the standard printed by upper and lower page orientation, and (bar in bar code and empty orientation are longitudinal arrangement, namely bar and empty bearing of trend parallel with in page orientation same plane), for as the test benchmark after resolution chart printing.
Compensating test district 22 comprises offset and (is numbered in Fig. 2 by five groups of horizontal bar codes of 1 to 5 arrangements and be respectively 202 ~ 206, bar in bar code and empty orientation are transversely arranged, namely bar is vertical in same plane with page orientation with empty bearing of trend), for testing actual printing effect, described offset represents the quantity of the heating print unit compensated in a millimeter.In the district of compensating test shown in Fig. 2 22, the offset of five groups of bar codes confirms to comprise the following steps:
S101: determine compensation rate scope according to printhead precision d;
Described printhead precision d represents the quantity of the heating print unit in a millimeter, and the standard of common printhead precision d comprises 6,8 or 12.In this step compensation rate scope, minimum compensating value is 1, and the available accuracy d of maximum offset n and printhead matches, i.e. n=d.In the present embodiment, printhead precision d=5, then maximum offset n=d=5, namely compensate 5 heating print units in one millimeter.
S102: according to the bar code in different offset determination compensating test district 22.
According to the compensation rate scope determined in step S101, determine the offset of each group bar code in compensating test district 22, for Fig. 2, the offset of five groups of bar codes then in compensating test district 22 is respectively 1,2,3,4,5, namely in one millimeter, compensating 1 ~ 5 heating print unit respectively.
S103: the bar code printing standard bar code district 21 and compensating test district 22.
Step S20: by contrasting with standardized test chart, determine optimal compensation value from compensation rate scope.
Contrast can adopt manual type to carry out, 90 ° are rotated clockwise by standard bar code district 21, respectively with five groups of bar code comparisons one by one in compensating test district 22, to confirm the wide immediate one group of bar code of bar code-bar in compensating test district 22, confirm that the offset of this bar code is for optimum, namely determines optimal compensation value t.
Preferably, also can adopt and confirm optimal compensation value in an automated fashion, namely by image recognition technology, first identify that each bar code-bar of also record standard bar code district 21 Plays bar code 201 is wide; Secondly, to identify and to record each bar code-bar of five groups of bar codes in compensating test district 22 wide; Then, carry out bar width ratio comparatively by corresponding respectively for each group of bar code in compensating test district 22 with standard bar code 201, to confirm the wide immediate one group of bar code of bar code-bar, and then the offset of this group bar code is set to optimal compensation value t.
Step S30: judge that the bar code printed is the need of correction.
In this step, judge that the bar code printed comprises the need of the step revised:
Step S301: judge bar code printing direction.
When according to page orientation upper and lower shown in Fig. 2, and bar code printing as standard bar code district 21 Plays bar code 201 time, the bar namely in bar code and empty orientation are longitudinal arrangement, and bar and empty bearing of trend are with when paralleling in page orientation same plane, now without the need to compensating, enter step S50; Otherwise five groups of bar codes in bar code printing is as compensating test district 22, the bar namely in bar code and empty orientation are transversely arranged, when bar is vertical in same plane with page orientation with empty bearing of trend, enter step S202.Bar code printing direction is judged by print routine.
Step S302: judge whether the barcode size r printed can meet compensation requirement.
Described barcode size r represents the heating print unit quantity comprised in bar code minimum widith unit.Described minimum widith unit refers to the width of the width minimum unit of the bar code that actual needs prints.In this step, determine whether to meet by the difference calculated in barcode size r and step S20 between the optimal compensation value t that determines and compensate requirement, i.e. r-t >=1.When not meeting above-mentioned expression formula, namely without the need to carrying out correction-compensation, entering step S50, otherwise entering step S40.The condition arranging r-t >=1 its object is to: after making correction-compensation, at least can retain a print unit print in the position of bar.Otherwise the width of bar may be corrected for 0, in such cases, this would not be printed.
Step S40: correction-compensation is carried out to bar code according to optimal compensation value.
As shown in Figure 3, in figure, the actual bar width exported is 302, and compensate according to the optimal compensation value t determined in step S20, the optimal compensation value t namely in figure shown in 303, namely reaches bar code normal width 301 after compensation.
Step S50: directly print bar code, does not do correction-compensation process.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all in a word, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. bar code printer prints a method for horizontal bar code, it is characterized in that, comprises step:
A, the wide compensation rate scope of bar of printhead precision determination Cross slat code printing according to printer, generate and print and comprise the horizontal bar code of the wide compensation rate of each bar and the resolution chart of longitudinal bar code;
Described horizontal bar code refers to that the bar direction in bar code is parallel with the printhead stroke directions of bar code printer, and longitudinal bar code is that finger direction is vertical with the printhead stroke directions of bar code printer;
B, the horizontal bar code comprising the wide compensation rate of each bar by described and the longitudinal bar code of standard compare, and determine and the wide compensation rate of bar corresponding to the horizontal bar code that the wide error of the bar of longitudinal bar code is minimum;
C, when printing horizontal bar code, compensate rear printing according to the wide compensation rate of described bar determined to rule each in bar code is wide.
2. method according to claim 1, is characterized in that, in steps A, the minimum of a value of described compensation rate scope is 1, and maximum is equal with printhead precision.
3. method according to claim 1, is characterized in that, also comprises when printing horizontal bar code: when judging that the bar code discal patch that will print is wide and be less than the wide compensation rate of determined described bar, do not compensate this.
CN201510119353.8A 2015-03-18 2015-03-18 Method for printing horizontal barcode with barcode printer Expired - Fee Related CN104723711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510119353.8A CN104723711B (en) 2015-03-18 2015-03-18 Method for printing horizontal barcode with barcode printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510119353.8A CN104723711B (en) 2015-03-18 2015-03-18 Method for printing horizontal barcode with barcode printer

Publications (2)

Publication Number Publication Date
CN104723711A true CN104723711A (en) 2015-06-24
CN104723711B CN104723711B (en) 2017-03-22

Family

ID=53448376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510119353.8A Expired - Fee Related CN104723711B (en) 2015-03-18 2015-03-18 Method for printing horizontal barcode with barcode printer

Country Status (1)

Country Link
CN (1) CN104723711B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108790449A (en) * 2018-07-08 2018-11-13 北京逸智联科技有限公司 A kind of bar code printing technique
CN108891130A (en) * 2018-07-08 2018-11-27 北京逸智联科技有限公司 A kind of bar code printing system
CN110909841A (en) * 2019-10-14 2020-03-24 浙江百世技术有限公司 Horizontal and vertical double-bar-code express bill and scanning system thereof
CN112060779A (en) * 2020-10-12 2020-12-11 刘昌宏 Longitudinal thermal printing method
CN115476606A (en) * 2022-08-23 2022-12-16 北京博信德诚技术发展有限公司 Ink jet printing control method, control device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1287922A (en) * 1999-09-14 2001-03-21 普林昌尼克斯股份有限公司 System for bar codes calibration and printing
EP2015221A2 (en) * 2007-06-07 2009-01-14 Canon Finetech Inc. Barcode generation system, computer readable recordng medium, and printing device
JP2013035291A (en) * 2012-09-05 2013-02-21 Kyocera Document Solutions Inc Beam scanning type printer for bar code printing, and beam scanning type image forming apparatus for bar code printing
CN103386830A (en) * 2012-05-07 2013-11-13 北大方正集团有限公司 Method and system for determining one-dimensional barcode bar width compensation amount, and barcode printing method
CN104401138A (en) * 2014-11-13 2015-03-11 苏州佳世达光电有限公司 Label printing calibration method and label printer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1287922A (en) * 1999-09-14 2001-03-21 普林昌尼克斯股份有限公司 System for bar codes calibration and printing
EP2015221A2 (en) * 2007-06-07 2009-01-14 Canon Finetech Inc. Barcode generation system, computer readable recordng medium, and printing device
CN103386830A (en) * 2012-05-07 2013-11-13 北大方正集团有限公司 Method and system for determining one-dimensional barcode bar width compensation amount, and barcode printing method
JP2013035291A (en) * 2012-09-05 2013-02-21 Kyocera Document Solutions Inc Beam scanning type printer for bar code printing, and beam scanning type image forming apparatus for bar code printing
CN104401138A (en) * 2014-11-13 2015-03-11 苏州佳世达光电有限公司 Label printing calibration method and label printer

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108790449A (en) * 2018-07-08 2018-11-13 北京逸智联科技有限公司 A kind of bar code printing technique
CN108891130A (en) * 2018-07-08 2018-11-27 北京逸智联科技有限公司 A kind of bar code printing system
CN108891130B (en) * 2018-07-08 2020-01-17 浙江企银印务科技有限公司 Bar code printing system
CN110909841A (en) * 2019-10-14 2020-03-24 浙江百世技术有限公司 Horizontal and vertical double-bar-code express bill and scanning system thereof
CN112060779A (en) * 2020-10-12 2020-12-11 刘昌宏 Longitudinal thermal printing method
CN115476606A (en) * 2022-08-23 2022-12-16 北京博信德诚技术发展有限公司 Ink jet printing control method, control device and storage medium
CN115476606B (en) * 2022-08-23 2024-04-12 北京博信德诚技术发展有限公司 Ink jet printing control method, control device and storage medium

Also Published As

Publication number Publication date
CN104723711B (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN104723711A (en) Method for printing horizontal barcode with barcode printer
US9641702B2 (en) Methods and systems of generating a lenticular article using a printing blanket
US10081209B2 (en) Methods and systems for determining a printing position
US20160136983A1 (en) Method for compensating for failed printing nozzles in inkjet printing systems
EP2790921B1 (en) Printing a double-sided image and generating printer control data for printing double-sided image
CN110949006A (en) Compensating for density fluctuations when changing print heads
CN104660863B (en) A kind of digital sample printing device color bearing calibration
US10035366B2 (en) Determining an alignment characteristic based on distances of features of a printed pattern
US11077690B2 (en) Printing apparatus, an amount of displacement calculating method, and a testing chart
CN109955607B (en) Method for automatically calibrating a printing press having an image detection system by means of a computer
CN101830109A (en) Inkjet printing correction method, inkjet printing apparatus and multifunctional one-piece machine
US9519848B2 (en) Calibration target
US10507667B2 (en) System and methods for detecting malfunctioning nozzles in a digital printing press
US8104857B2 (en) Method of calculating correction value, correction value calculating program, and liquid ejecting apparatus
US7505622B2 (en) Color information acquisition apparatus, color information acquisition method, and color information acquisition program product
US8125694B2 (en) Method of determining number of patches
US7673960B2 (en) Calibration of a print head having multiple dies
US20090225341A1 (en) Test Chart and Color Calibration Method
CN104339840B (en) Test the automatic predetermined of color value
CN104742554B (en) A kind of method that bar code printer is printed
CN110154546B (en) Error correction method for thermal transfer printer and thermal transfer printer
CN115904274A (en) Printing method and device of full-automatic four-color printing machine, electronic device and storage medium
EP2112553B1 (en) Manufacture of colour proofs
CN104669810B (en) A kind of bar code printing method
US11615277B2 (en) Digital printing method and system using control patches

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170322

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