Background technology
Scanning means, for example scanner, multifunctional paper feeding machine or the like in order to ensure each scanning quality, can design before each scanning motion mostly, carry out so-called correct operation (calibration).For example proofread and correct simulation front-end processing chip (Analog Front End, AFE) gain (gaiu) and side-play amount (offset), and to Charged Coupled Device (charge coupledevice, CCD) photon heterogeneity response (photo response non-uniformity, PRNU) and dark signal heterogeneity phenomenon (dark signal non-uniformity, DSNU) compensation of effect or the like.
Yet the correction program that the above-mentioned practice is introduced only can be adjusted the factor that image quality impacted for the deviation of the part of the electronic building brick in the scanning system.Partly pass through the long variation that causes in the transmission of operating for mechanism, correction program is not proposed, and the transmission variation of this mechanism part can influence the accuracy of the image magnification of document leading edge (leading edge), scanning direction and color color correction (color registration) etc.
Generally speaking, scanning means is to move with respect to being scanned figure by its ray machine (chassis), captures the image that is scanned figure.And moving by the motor of scanning means of ray machine controlled, for example stepper motor.And how to learn the displacement of ray machine, be to be decided by the step umber of pulse that produces when stepper motor moves ray machine.Can learn the corresponding relation of umber of pulse and ray machine travel distance by following Fig. 5 A, 5B and 5C.Shown in Fig. 5 A, Fig. 5 A is in the ideal case, the graph of a relation of ray machine travel distance and step pulse.Resolution is the scanning means of 600dpi, supposes that ray machine is then advanced 1/600 inch in the ideal case when producing 1 step pulse (step pulse).If the error in the no transmission, then as can be seen after 8 step pulses of generation, ray machine is correctly advanced 8/600 inch.
And produce in the mechanism when making a variation, in the time of then may making motor produce 1 step pulse, the ray machine travel distance is not equal to 1/600 inch.Shown in Fig. 5 B, Fig. 5 B is when the ray machine travel distance reduces, the graph of a relation of ray machine travel distance and step pulse.Can find out that by Fig. 5 B ray machine is not correctly advanced 8/600 inch after producing 8 step pulses, only about 5.3/600 inch of its distance of advancing, but scanning means thinks that still the distance that ray machine is advanced is 8/600 inch.Shown in Fig. 5 C, Fig. 5 C is when the ray machine travel distance strengthens, the graph of a relation of ray machine travel distance and step pulse.Can find out that by 5C figure ray machine is not correctly advanced 8/600 inch after pulse signal P produces 8 step pulses, about 10.7/600 inch of its distance of advancing, but scanning means thinks that still the distance that ray machine is advanced is 8/600 inch.
Learn that by above-mentioned the situation of Fig. 5 B and Fig. 5 C can make scanning means judge by accident for the ray machine travel distance.Make the situation of Fig. 5 B can cause the image of scanning gained to amplify at the longitudinal axis, the situation of Fig. 5 C can cause the image of scanning gained to dwindle at the longitudinal axis.And aforesaid situation can cause the image magnification and the isoparametric error of color color correction of document leading edge, scanning direction, and the image quality that scanning is obtained descends, and differs greatly with the former figure of being scanned.
Embodiment
What Fig. 1 showed is the schematic diagram of the scanning means of preferred embodiment of the present invention.Scanning means 100 comprises ray machine (chassis) 110, motor 120 and processor 150.Ray machine 110 for example comprises that (charge coupled device CCD) waits optics and electrical assembly, is scanned the image of figure in order to acquisition for light source, reflecting optics, lens and Charged Coupled Device.
Motor 120 is a d.c. motor for example, is used for making ray machine 110 and is scanned figure producing displacement.Motor 120 has encoder (encoder) 140 and code wheel (code wheel) 130.Produce when relatively moving with being scanned figure when motor 120 makes ray machine 110, can drive code wheel 130 and rotate.Encoder 140 is learnt the rotary state of motor 120 according to the rotary state of code wheel 130.Encoder 140 produces pulse signal P according to the running of motor 120.
Processor 150 is according to pulse signal P and predetermined pulse frequency (default pulse per dpi), learn that ray machine 110 is for being scanned the distance that figure advances, decide the image parameter that is scanned figure, as the image magnification of document leading edge (leading edge), scanning direction and color color correction (color registration) or the like.Pulse signal P is that encoder 140 is at ray machine 110 and be scanned the umber of pulse that generation is sent when relatively moving between the figure (number of encoder pulses), this predetermined pulse frequency (default pulse per dpi) then is a default value, definition encoder (encoder) 140 ray machine 110 be scanned generation between the figure relatively move between each bar scan line (scan line) apart from the time umber of pulse (number of encoderpulses) sent.
When carrying out the image parameter correction program, ray machine 110 scanning standard figure produce the corresponding image signal, and motor 120 makes ray machine 110 and the standard drawing actual range that relatively moves.Encoder 140 produces pulse signal P according to the running of motor 120 with respect to actual range.Processor 150 calculates actual range according to the signal of video signal of the standard drawing that ray machine 110 is captured, and compares the gauged distance of actual range and respective pulses signal P, to proofread and correct the predetermined pulse frequency.When actual range during less than gauged distance, processor 150 increases the predetermined pulse frequencies.When the actual range overgauge apart from the time, processor 150 reduces the predetermined pulse frequencies.
Standard drawing has many straight lines or lubber-line, and actual range is learnt according to the spacing of these straight lines or lubber-line.It reaches method two, and standard drawing is a file to be scanned, or standard drawing is fixed in the scanning means 100.As shown in Figure 3, Fig. 3 is that standard drawing is the schematic diagram of file to be scanned.Standard drawing 300 is a file to be scanned, has many straight lines on it, and as straight line L1 and L2, actual range is learnt by square between straight line L1 and L2.As shown in Figure 4, Fig. 4 is that standard drawing is fixed on the schematic diagram in the scanning means.In the 4th figure, standard drawing directly scans and gets promptly in scanning means 100 under the situation of no-raster file.Scanning means 100 is then according to lubber-line P1 and P2, or learns actual range according to the spacing of lubber-line P3 and P4.
As shown in Figure 2, Fig. 2 is the flow chart of method of the correcting image parameters of preferred embodiment of the present invention.At first, make ray machine 110 scanning standard figure, and standard drawing one actual range that relatively moves, shown in step 21.Then, encoder 140 produces the pulse signal P of corresponding actual range, shown in step 22.Afterwards, processor 150 is obtained the gauged distance of respective pulses signal P, shown in step 23.At last, processor 150 is actual range and gauged distance relatively, and proofreaies and correct the predetermined pulse frequency, shown in step 24.
In step 23, gauged distance is learnt according to predetermined pulse frequency and pulse signal P calculating, or this scanning means 100 more can comprise record cell 160, and processor 150 can be obtained gauged distance from record cell 160.In step 24, when actual range during less than gauged distance, processor 150 increases the predetermined pulse frequencies.When the actual range overgauge apart from the time, processor 150 reduces the predetermined pulse frequencies.
The scanning means that with the optical resolution is 600dpi is an example, and when supposing 128 pulses of the every generation of pulse signal P, the gauged distance of respective pulses signal P is 1/600 inch, and the predetermined pulse frequency is 128 pulses.Because uncertain variance factor in the mechanism, in the time of may making pulse signal P produce 128 pulses, relatively move 1/600 inch of the actual range less than of standard drawing of ray machine, or above 1/600 inch.Then,, promptly reduce the predetermined pulse frequency if actual range greater than 1/600 inch, is then turned 128 unit pulses down as described in the step 24.If it is big that actual range less than 1/600 inch, is then transferred 128 unit pulses, promptly increase the predetermined pulse frequency.
Below will be at scanning back gained image, its state in longitudinal axis distortion is done following narration.Resolution for scanning means 100 is 600dpi, if being every dpi, the predetermined pulse frequency produces 128 pulses (pulses per dpi), when encoder 140 generations have the pulse signal P of 128 pulses, the pixel distance of then representing ray machine 110 to advance is 1/600 inch, and processor 150 calculates ray machine forward travel distance and coherent video parameter with pulse signal P.As shown in Figure 6A, Fig. 6 A is the schematic diagram of the resulting image in standard drawing 300 backs in the scintigram 3.The image 610 cathetus L7 line correspondence L1 of standard drawing, straight line L8 line correspondence L2.It is 1 inch between straight line L1 and the straight line L2.If in the ideal case, the transmission of gear train is without any error, and the spacing of straight line L7 and straight line L8 is pixel (pixel) P1~P600, and each pixel P1 to P600 represents 1/600 inch in the standard drawing 300.
Shown in Fig. 6 B, Fig. 6 B is at the schematic diagram of the actual travel distance of ray machine greater than travel distance under the perfect condition.If the driving error of gear, the distance that ray machine 110 is advanced becomes big, and for example the advance distance of 300 pixels of ray machine 110 can be truncated to straight line L7 and straight line L8, promptly per 128 pulses, and ray machine 110 actual distances of advancing are 1/300 inch.Therefore we can observe from 6B figure and should be 600 pixels between straight line L7 and straight line L8, only remaining 300 pixels, i.e. pixel P1 '~P300 '.Can have more one section image of other many acquisitions simultaneously on the image, i.e. the shown image of pixel P301 '~P600 '.When producing 128 pulses because of encoder 140, not only 1/600 inch of the distance of advancing.Therefore, must " dwindle " the predetermined pulse frequency (Default Pulse per DPI, DPD), obtain the correction pulse frequency (Corrected Pulse per DPI, CPD):
CPD=(300/600)*128=64;(1)
Shown in Fig. 6 C, Fig. 6 C is at the schematic diagram of the actual distance of advancing of ray machine less than the distance of advancing under the perfect condition.If the unit distance of ray machine 110 actual pixels of advancing diminishes, for example the distance of ray machine 110 former 600 pixels of advancing can be truncated to the image of straight line L1 and straight line L2, now the advance distance of 1200 pixels of ray machine 110 just can be truncated to straight line L1 and straight line L2, be per 128 pulses, the distance that ray machine 110 is advanced is 1/1200 inch.Between straight line L7 and straight line L8, should be 600 pixels, and in Fig. 6 C, pixel P1 "~P600 " can't see straight line L8, because pixel P1 "~P600 " can only see between former straight line L1 and the straight line L2 half image.Therefore, essential " amplification " predetermined pulse frequency (DPD):
CPD=(1200/600)*128=256;(2)
By (1) and (2) formula, we can get:
CPD=(P/T)*DPD;(3)
Wherein, T is presetted pixel number (Theoretical number of pixels per unit distance), is that 600 pixels are represented 1 inch in the present embodiment.P is gauged distance actual pixels number (Practical number of pixels per unitdistance).For example in Fig. 6 B, P is 300, and in Fig. 6 C, P is 1200.
For system design is simplified, then make DPD and CPD value be integer, avoid the appearance of decimal.In other words, the value before and after promptly revising, the difference of DPD and CPD | Δ P| minimum is necessary for " 1 ", so through type (3) can calculate the accuracy compensation limit of this adjustment rule, i.e. difference | and Δ P|, its computational process is as follows:
|CPD-DPD|≥1;
With formula before CPD=(P/T) the * DPD substitution:
|(P/T)*DPD-DPD|≥1;
Absolute value is removed;
(P/T) * DPD-DPD 〉=1-(4) or
(P/T)*DPD-DPD≤-1-(5);
By (4) as can be known:
P*DPD-T*DPD≥T;
P≥(DPD+1)*T/DPD;(6)
By (5) as can be known:
P*DPD-T*DPD≤-T;
P≤(DPD-1)*T/DPD;(7)
By (6) and (7) as can be known:
|ΔP|≥{[(DPD+1)/DPD]*T-T}/T*100%;
|ΔP|≥(100/DPD)*100%;(8)
Obtain difference by (8) | the meaning of Δ P| representative is, as long as when ray machine moves or paper advances, as long as the site error that is caused in the gear train transmission is greater than difference | and the scope of Δ P|, all can utilize formula (3) to be revised.
The mode of the image parameter correction program of execution scanning means 100 is as follows.One, scanning means 100 can comprise user's interface (not being shown among the figure), the user can see through this user's interface and start the image parameter correction program, for example use the correction of scanning means 100 to start button (not being shown among the figure), or see through the main frame startup that electrically connects with scanning means 100.Two, record cell 160 also is used for the user mode of writing scan device 100, and processor 150 starts this image parameter correction program automatically according to the user mode of scanning means 100.
The method of the disclosed correcting image parameters of the above embodiment of the present invention and scanning means, ignored in the bearing calibration of recoverable tradition because of the descend error of the mechanism parameter that causes of transmission accuracy.The more further relevant parameter of operational analysis, and adjustment compensation relevant parameter.Make relevant parameter no longer be subjected to the change of transmission accuracy and influence to some extent, and then guarantee image quality.The present invention is online except can be used for producing, as before the shipment for the trickle adjustment of scanning means.And aspect the user, when scanning means has arrived a certain usage degree, can carry out correction voluntarily by the user, or by scanning means from dynamic(al) correction, can after long-time the use, still keep due accuracy with the magnification ratio of guaranteeing to scan.
In sum; though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; any personnel that have the knack of this technology; without departing from the spirit and scope of the present invention; can do various changes and retouching, so protection scope of the present invention is worked as with being as the criterion that accompanying claims were defined.