The bearing calibration of printer and device
Technical field
The present invention relates to printer fields, bearing calibration and device in particular to a kind of printer.
Background technique
Printer is the common tool in our routine office works, either document files or ENGINEERING CAD drawing, is all needed
Printer is used to be printed.Currently, printer brand is different in the market, many kinds of, quality is irregular, and it is limited to
The influence of the factors such as production technology, manufacturing cost, use environment, traffic condition, printer can more or less have printing error,
And influence of the printing error for ENGINEERING CAD drawing is especially great, if for example, certain large size cartographic units need to once print tens
The long drawing of rice, the straightway that a length on drawing is 5000mm, generated error possibly even reach 50mm.Due to
The influence of printing error gently then generates substandard products, waste product in fields such as mechanical equipment, engineering constructions, causes to waste;It is heavy then cause
Safety accident seriously threatens people life property safety.Therefore, printer in the prior art exists because of printing error, and leads
The technical problem for causing its reliability, stability lower.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of bearing calibration of printer and devices, at least to solve in the prior art beat
There is the technical problem for causing its reliability lower because of printing error in print machine.
According to an aspect of an embodiment of the present invention, a kind of bearing calibration of printer is provided, this method comprises: obtaining
First printing offset of target printer;Judge whether the first printing offset exceeds default bias amount range;If really
The fixed first printing offset exceeds the default bias amount range, then obtains the mesh according to the first printing offset
The first correction data of printer is marked, and the target printer is corrected according to first correction data.
Further, the first printing offset for obtaining target printer includes: the detection target printer
Target print data and practical print data, wherein the practical print data is by the target printer according to the target
Generation when print data is printed;The difference for calculating the target print data and the practical print data, to obtain
The first printing offset.
Further, after correcting the target printer according to first correction data, the method also includes:
The second of the target printer is taken to print offset, wherein the second printing offset is by through first correction data
The target printer after correction is generated according to the target print data;Judge whether the second printing offset surpasses
The default bias amount range out;If it is determined that the second printing offset exceeds the default bias amount range, then according to institute
It states the first printing offset and the second printing offset obtains the second correction data of the target printer, and according to institute
It states the second correction data and corrects the target printer.
Further, described to obtain the target according to the first printing offset and the second printing offset and beat
Second correction data of print machine includes: to obtain the target according to the first printing offset and the second printing offset
The discrete type of the printing offset of printer is distributed dot chart;Dot chart, which is distributed, according to the discrete type obtains the target print
The error curve of the printing offset of machine;Second correction number of the target printer is generated according to the error curve
According to.
Further, before obtaining the first printing offset of target printer, the method also includes: described in acquisition
The attribute information of target printer, wherein the title of the target printer is included at least in the attribute information;In default school
The history control information with the name-matches of the target printer is searched in positive list, wherein in the history control information
Including at least the history correction data of the target printer;The target printer is carried out by the history correction data
Precorrection.
According to another aspect of an embodiment of the present invention, a kind of means for correcting of printer is additionally provided, which includes:
One acquiring unit, for obtaining the first printing offset of target printer;First judging unit, for judging described first dozen
Whether print offset exceeds default bias amount range;First processing units, for if it is determined that the first printing offset exceeds
The default bias amount range then obtains the first correction data of the target printer according to the first printing offset,
And the target printer is corrected according to first correction data.
Further, the first acquisition unit includes: detection sub-unit, for detecting the target of the target printer
Print data and practical print data, wherein the practical print data is by the target printer according to the target print
Generation when data are printed;Computation subunit, for calculating the difference of the target print data and the practical print data
Value, to obtain the first printing offset.
Further, described device further include: second acquisition unit, for obtaining the second printing of the target printer
Offset, wherein it is described second printing offset by through first correction data correction after the target printer according to
The target print data and generate;Second judgment unit, for judging it is described pre- whether the second printing offset exceeds
If offset ranges;The second processing unit, be used for if it is determined that it is described second printing offset exceed the default bias amount range,
The second correction data of the target printer is then obtained according to the first printing offset and the second printing offset,
And the target printer is corrected according to second correction data.
Further, described the second processing unit includes: the first acquisition subelement, for being deviated according to first printing
Amount and the second printing offset obtain the discrete type distribution dot chart of the printing offset of the target printer;Second obtains
Subelement is taken, the error for being distributed the printing offset that dot chart obtains the target printer according to the discrete type is bent
Line;Subelement is generated, for generating second correction data of the target printer according to the error curve.
Further, described device further include: third acquiring unit, the attribute for obtaining the target printer are believed
Breath, wherein the title of the target printer is included at least in the attribute information;Searching unit, in default checking list
The history control information with the name-matches of the target printer is searched in list, wherein in the history control information at least
History correction data including the target printer;Third processing unit is used for through the history correction data to described
Target printer carries out precorrection.
It in embodiments of the present invention, should by judgement by the way of obtaining the first printing offset of target printer
Whether the first printing offset exceeds default bias amount range, has reached if it is determined that the first printing offset is beyond default bias amount
Range then obtains the first correction data of target printer according to the first printing offset, and is corrected according to the first correction data
The purpose of target printer, to realize elimination or reduce the printing error of printer, improve the reliability of printer and steady
Qualitative technical effect, so solve printer in the prior art exist cause its reliability lower because of printing error
Technical problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 (a) is a kind of flow diagram of the bearing calibration of optional printer according to an embodiment of the present invention;
Fig. 1 (b) is a kind of schematic diagram of the bearing calibration of optional printer according to an embodiment of the present invention;
Fig. 1 (c) is the schematic diagram of the bearing calibration of another optional printer according to an embodiment of the present invention;
Fig. 2 is the flow diagram of the bearing calibration of another optional printer according to an embodiment of the present invention;
Fig. 3 is the flow diagram of the bearing calibration of another optional printer according to an embodiment of the present invention;
Fig. 4 is the flow diagram of the bearing calibration of another optional printer according to an embodiment of the present invention;
Fig. 5 (a) is the flow diagram of the bearing calibration of another optional printer according to an embodiment of the present invention;
Fig. 5 (b) is the flow diagram of the bearing calibration of another optional printer according to an embodiment of the present invention
Fig. 6 is a kind of structural schematic diagram of the means for correcting of optional printer according to an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the means for correcting of another optional printer according to an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the means for correcting of another optional printer according to an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the means for correcting of another optional printer according to an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the means for correcting of another optional printer according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the bearing calibration of printer is provided, it should be noted that attached
The step of process of figure illustrates can execute in a computer system such as a set of computer executable instructions, though also,
So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein
Or the step of description.
Fig. 1 (a) is the bearing calibration of printer according to an embodiment of the present invention, and as shown in Fig. 1 (a), this method includes such as
Lower step:
Step S102 obtains the first printing offset of target printer;
Step S104, judges whether the first printing offset exceeds default bias amount range;
Step S106, however, it is determined that the first printing offset exceeds default bias amount range, then according to the first printing offset
The first correction data of target printer is obtained, and target printer is corrected according to the first correction data.
It in embodiments of the present invention, should by judgement by the way of obtaining the first printing offset of target printer
Whether the first printing offset exceeds default bias amount range, has reached if it is determined that the first printing offset is beyond default bias amount
Range then obtains the first correction data of target printer according to the first printing offset, and is corrected according to the first correction data
The purpose of target printer, to realize elimination or reduce the printing error of printer, improve the reliability of printer and steady
Qualitative technical effect, so solve printer in the prior art exist cause its reliability lower because of printing error
Technical problem.
Optionally, it is related can be printed upon paper etc. to computer connection and by the processing result of computer for target printer
On medium, target printer can be beaten for impact printer, non-impact printer, fully formed character printer, dot character
Print machine, string data printer, line printer, laser type printer, electrostatic printer, ink-jet printer, thermal print
Machine etc..Target printer can be used in print on paper machinery drawing, which can be A0 paper or A1 paper.Target print
The printing offset of machine can be equal to its printing error, however, it is determined that the first printing offset of target printer is not out pre-
If offset ranges, then it can be considered as the printing error within the scope of allowing or is controllable.
Optionally, Fig. 1 (b) is a kind of schematic diagram of the bearing calibration of optional printer according to an embodiment of the present invention,
As shown in Fig. 1 (b), target printer can be used as one of output equipment of computer, and user can pass through the display of computer
There is " printer A ", " printer B " on the display interface of computer in Fig. 1 (b) and " print in equipment selection target printer
Three printers of machine C ", the target printer that user currently selects are " printer C ".Fig. 1 (c) is according to an embodiment of the present invention
The schematic diagram of the bearing calibration of another optional printer is clicked " printer C " with mouse, can be gone out as shown in Fig. 1 (c)
The function menu of existing " printer C ", can execute the correct operation to " printer C " in the function menu.
Optionally, Fig. 2 is the process signal of the bearing calibration of another optional printer according to an embodiment of the present invention
Figure, as shown in Fig. 2, step S102, the first printing offset for obtaining target printer include:
Step S202 detects the target print data and practical print data of target printer, wherein practical print data
Generation when being printed by target printer according to target print data;
Step S204 calculates the difference of target print data and practical print data, to obtain the first printing offset.
Optionally, target print data are referred to before being printed using target printer, are inputted to target printer
Or the data sent, target print data can also be understood to that system is sent to target printer and target printer is resonable
By the print data that should above generate.Practical print data refers to the mistake that target printer is printed according to target print data
After the truthful data generated in journey, i.e. printing stop or complete, the truthful data that can be measured on paper, generally,
Due to the presence of printing error, target print data and practical print data are not consistent, for example, beating using target printer
When printing certain straight line in some CAD diagram paper, the target print data of this straight line are as follows: length=2000mm, i.e. this are straight
The target length of line is 2000mm.If after printing, the physical length for measuring this straight line in the CAD diagram paper is
1800mm, then the difference of the target print data He practical print data of this straight line is 200mm, i.e., the first printing offset is
200mm.For another example when printing certain two straight line in some CAD diagram paper using target printer, the target of two straight lines
Print data are as follows: DEG=45 °, i.e. the target angle of two straight lines is 45 °.If measuring the CAD diagram paper after printing
In the practical angles of two straight lines be 47 °, then the target print data of this straight line and the difference of practical print data are
2 °, i.e., the first printing offset is 2 °.
Optionally, target print data can also be coordinate data, for example, target print data include x-axis and y-axis direction
On data, can include two groups of data in above-mentioned every reference axis.
Optionally, Fig. 3 is the process signal of the bearing calibration of another optional printer according to an embodiment of the present invention
Figure, as shown in figure 3, after executing step S106, i.e., after correcting target printer according to the first correction data, this method
Further include:
Step S302 obtains the second printing offset of target printer, wherein the second printing offset is by through the first school
Target printer after correction data correction is generated according to target print data;
Step S304, judges whether the second printing offset exceeds default bias amount range;
Step S306, however, it is determined that the second printing offset exceeds default bias amount range, then according to the first printing offset
The second correction data of target printer is obtained with the second printing offset, and target print is corrected according to the second correction data
Machine.
Optionally, however, it is determined that the second printing offset is not out default bias amount range, it may be considered that passing through the
After one correction data corrects target printer, which has reached the standard of normal print, i.e. printing error is allowing
Or it is controllable within the scope of.In addition, can continue to obtain printer after correcting target printer according to the second correction data
Third print offset, wherein third print offset by through the second correction data correction after target printer according to mesh
It marks print data and generates, however, it is determined that third printing offset still exceeds default bias amount range, then can be according to the first printing
Offset, the second printing offset and third printing offset obtain the third correction data of target printer, and according to third
Correction data corrects target printer.Herein it should be noted that the premise for stopping obtaining next correction data is that basis is worked as
After preceding correction data correction target printer, target printer generates current printing offset according to target print data simultaneously
Without departing from default bias amount range, if above-mentioned premise is reached, then printer needs to repeat above-mentioned steps, to get
More accurate correction data.
Optionally, Fig. 4 is the process signal of the bearing calibration of another optional printer according to an embodiment of the present invention
Figure obtains the of target printer according to the first printing offset and the second printing offset as shown in figure 4, in step S306
Two correction datas include:
Step S402 obtains the printing offset of target printer according to the first printing offset and the second printing offset
Discrete type be distributed dot chart;
Step S404 is distributed the error curve that dot chart obtains the printing offset of target printer according to discrete type;
Step S406 generates the second correction data of target printer according to error curve.
Optionally, if it exists include multiple printing offsets of the first printing offset and the second printing offset, then need
The discrete type for the printing offset to obtain target printer according to multiple printing offsets is distributed dot chart, prints offset
Number is more, then the distribution of printing error is more steady, and the correction data obtained by multiple printing offsets is also more accurate.From
The printing offset data point dissipated in formula distribution dot chart can be fitted to error curve, and specifically, error curve refers to metering
Instrumental error and between being measured or the curve of functional relation between any other amount influential on ratio error, by this
The correction data of the target printer can be generated in error curve.The correction data can be stored in the target printer or with this
In the computer of target printer connection, in order to subsequent calls or verification.
Optionally, Fig. 5 (a) is that the process of the bearing calibration of another optional printer according to an embodiment of the present invention is shown
It is intended to, as shown in Fig. 5 (a), before executing step S102, i.e., before obtaining the first printing offset of target printer,
This method further include:
Step S502 obtains the attribute information of target printer, wherein including at least target printer in attribute information
Title;
Step S504 searches the history control information with the name-matches of target printer in default correction list,
In, the history correction data of target printer is included at least in history control information;
Step S506 carries out precorrection to target printer by history correction data.
Optionally, the attribute information can also include the model of printer, service life, print resolution, print speed,
Noise figure etc..If not finding the history control information with the name-matches of target printer in default correction list, say
The bright target printer does not carry out overcorrect before current time node.In addition, being beaten by history correction data target
Print machine carries out precorrection, printing error can be maximally reduced, to drop before this correction for carrying out current time
The workload of this low correction improves correction efficiency.
Optionally, Fig. 5 (b) is that the process of the bearing calibration of another optional printer according to an embodiment of the present invention is shown
It is intended to, as shown in Fig. 5 (b), this method be may include steps of:
Step S51, selection target printer start the calibration function of target printer.
Step S52 searches the history school with the name-matches according to the title of target printer from default correction list
Correction data.
Step S53 loads history correction data, and the history correction time of displaying target printer.
Step S54 inputs target print data into target printer.
Step S55 is printed according to target print data, and measures practical print data.
Step S56 calculates the printing offset of target printer according to target print data and practical print data.
Step S57 judges to print whether offset exceeds default bias amount range.
Optionally, after executing completion step S57, if the determination result is YES, S58 is thened follow the steps.
Step S58 generates correction data, and corrects target printer using the correction data.
Optionally, after executing completion step S58, successively execution step S54 can be returned and refer to step S57.
Optionally, execute complete step S57 after, if judging result be it is no, then follow the steps S59.
Step S59 completes this correction of target printer.
It in embodiments of the present invention, should by judgement by the way of obtaining the first printing offset of target printer
Whether the first printing offset exceeds default bias amount range, has reached if it is determined that the first printing offset is beyond default bias amount
Range then obtains the first correction data of target printer according to the first printing offset, and is corrected according to the first correction data
The purpose of target printer, to realize elimination or reduce the printing error of printer, improve the reliability of printer and steady
Qualitative technical effect, so solve printer in the prior art exist cause its reliability lower because of printing error
Technical problem.
Embodiment 2
According to embodiments of the present invention, a kind of means for correcting of printer is additionally provided, as shown in fig. 6, the device can wrap
It includes: first acquisition unit 601, the first judging unit 603, first processing units 605.
Wherein, first acquisition unit 601, for obtaining the first printing offset of target printer;First judging unit
603, for judging whether the first printing offset exceeds default bias amount range;First processing units 605 are used for if it is determined that the
One printing offset exceeds default bias amount range, then obtains the first correction number of target printer according to the first printing offset
According to, and target printer is corrected according to the first correction data.
Optionally, as shown in fig. 7, first acquisition unit 601 includes: detection sub-unit 701, computation subunit 703.
Wherein, detection sub-unit 701, for detecting the target print data and practical print data of target printer,
In, generation when practical print data is printed by target printer according to target print data;Computation subunit 703, is used for
The difference for calculating target print data and practical print data, to obtain the first printing offset.
Optionally, as shown in figure 8, device further include: second acquisition unit 801, second judgment unit 803, second processing
Unit 805.
Wherein, second acquisition unit 801, for obtaining the second printing offset of target printer, wherein the second printing
Offset is generated by the target printer after the correction of the first correction data according to target print data;Second judgment unit
803, for judging whether the second printing offset exceeds default bias amount range;The second processing unit 805 is used for if it is determined that the
Two printing offsets exceed default bias amount range, then obtain target according to the first printing offset and the second printing offset and beat
Second correction data of print machine, and target printer is corrected according to the second correction data.
Optionally, as shown in figure 9, the second processing unit 805 may include: that the first acquisition subelement 901, second obtains son
Unit 903 generates subelement 905.
Wherein, first subelement 901 is obtained, for obtaining target according to the first printing offset and the second printing offset
The discrete type of the printing offset of printer is distributed dot chart;Second obtains subelement 903, for being distributed dot matrix according to discrete type
Figure obtains the error curve of the printing offset of target printer;Subelement 905 is generated, for generating target according to error curve
Second correction data of printer.
Optionally, as shown in Figure 10, device can also include: third acquiring unit 1001, searching unit 1003, at third
Manage unit 1005.
Wherein, third acquiring unit 1001, for obtaining the attribute information of target printer, wherein in attribute information extremely
It less include the title of target printer;Searching unit 1003, for searching the name with target printer in default correction list
Claim matched history control information, wherein the history correction data of target printer is included at least in history control information;Third
Processing unit 1005, for carrying out precorrection to target printer by history correction data.
It in embodiments of the present invention, should by judgement by the way of obtaining the first printing offset of target printer
Whether the first printing offset exceeds default bias amount range, has reached if it is determined that the first printing offset is beyond default bias amount
Range then obtains the first correction data of target printer according to the first printing offset, and is corrected according to the first correction data
The purpose of target printer, to realize elimination or reduce the printing error of printer, improve the reliability of printer and steady
Qualitative technical effect, so solve printer in the prior art exist cause its reliability lower because of printing error
Technical problem.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.