This invention provides a scanner, which is capable of scanning document images based on a stepping control table and a method to generate such a table. This scanner includes a scanning module to scan a document and generates a responding image signal, a stepping motor to drive the scanning module or the document and a control device to control the operation of the scanning module and the stepping motor. This control device includes a stepping control table, which contains the stepping numbers for the stepping motor to drive the scanning module or the document. While scanning a document, this device will accurately control the stepping motor according to the stepping numbers relating to the locations of the lines to be scanned, and further move the scanning module or the document to a pre-defined position for a scanning task. A design like this will reduce errors in a scanning module's movement caused by the mechanical deviation.
|
1. A method for generating a stepping control table of an image scanner, the scanner comprising a line scanning module, a driving device, and a control device, the stepping control table comprising a plurality of stepping number wherein the control device uses the stepping control table to control the driving device, the method comprising the steps of:
providing a calibrating document having a calibrating pattern; driving an object selected from the group of the scanning module and the calibrating document along a scanning direction; scanning the calibrating document; generating a plurality of line image signals, each line image signal representing an image of the calibrating pattern; recording a step position of the scanning module when generating a line image signal; calculating an actual scanning position of the line image signal according to a variation between the image of the calibrating pattern of the line image signal and an image of the calibrating pattern of another line image signal; and generating the stepping control table according to the recorded step position and the actual scanning position of the line image signal.
8. An image scanner comprising:
a line scanning module for scanning a line image of a document to generate a line image signal; a driving device for driving an object selected from the scanning module and the document in a step-by-step fashion along a scanning direction to scan the document; and a control device for controlling operations of the scanning module and the driving device, the control device comprising a stepping control table having a plurality of stepping numbers, said stepping control table being generated by a) providing a calibrating document having a calibrating pattern, b) driving the object along a scanning direction, c) scanning the calibrating document, d) generating a plurality of line image signals, each line image signal representing an image of the calibrating pattern, e) recording a step position of the scanning module when generating a line image signal, and f) calculating an actual scanning position of the line image signal according to a variation between the image of the calibrating pattern of the line image signal and an image of the calibrating pattern of another line image signal; wherein the control device uses the stepping control table to control the driving device so that the line image of the document at a step positions of the stepping control table is scanned.
2. The method of
3. The method of
4. The method of
5. The method of
6. The method of
7. The method of
9. The method of
10. The method of
|
This invention provides an image scanner, which can accurately drive the scanning module or documents based on a stepping control table as well as the method to generate such a table.
Due to the fact that image scanners have been widely adopted in many fields, the resolutions of these scanners are rising continuously under the requirement to promote the quality. For a flatbed scanner, its scanning module is placed at carriage and driven by a driving device which comprising a stepping motor and some guiding mechanics. In order to raise the scanning resolution, the accuracy of the driving device must be raised in the meantime to meet such a high accuracy requirement. However, there are always some tolerance in driving device during manufacture and assembly. The accumulated tolerance will definitely produce some periodic deviations, which make the scanning module fail to be brought to the proper positions accordingly
Reference to FIG. 1. It is a curve to show the deviations generated by a scanning module of an image scanner during scanning. The horizontal axis (x-axis) represents the predefined positions of scanning line and the vertical axis (y-axis) represents the deviation distance for each predefined scanning line. The distances between each scanning line are depending on the resolution of a scanner, for example, {fraction (1/300)} inch for 300 DPI resolution, and is driven by stepping motor with fix steps, for example 8 steps. From the curve 34 in
This periodic error will cause some variations. For instance, it will make a straight line looks not smooth on image after scanning. Therefore, the main purpose of this invention is to provide a method to move the scanning module accurately based upon a stepping control table in order to solve the problems caused by the periodic deviation.
Reference to FIG. 2. It's the functional block for a scanner 10 with the features introduced by this invention. The scanner 10 can be a flatbed scanner or a film scanner. The scanner 10 comprises a scanning platform 12 for placing document, a scanning module 16 to scan document, a driving device 18 to drive the scanning module 16 moving along a certain direction, and a control device 20 to control the operations of the driving device 18 and the scanning module 16. Plus, each scanning line is perpendicular to the moving direction 26 of scanning module 16. The driving device 18 comprises a stepping motor.
This invention also provides a method to generate the stepping control table 22. The stepping control table 22 contains the stepping number S(n) for each scanning line. "n" represents the nth scanning line. The control device 20 will control the stepping motor in driving device 18 based upon the stepping numbers stored in the stepping control table 22 to move the scanning module 16 accurately.
The following sections will describe the procedures to generate the stepping control table 22 with this invention.
1. Scanning a Calibrating Document
Reference to FIG. 3.
2. Calculate the Actual Moving Distance of Each Scanning Line
The actual position of each scanning line can be obtained based upon the shift of the image of the oblique lines 28 from one scanning line image to another scanning line image. For example, the scanning module 16 scans the calibrating document 14 and generates the first image signals 30 at first scanning line and the nth image signals 32 at nth scanning line. Next, find the position X(l) and X(n) of the oblique lines 28 within both image signals 30, 32 respectively. Then calculate the shift value and the actual moving distance between these two scanning line.
3. Determine the Stepping Number for Each Scanning Line
The actual moving distance for each scanning line can be obtained with the procedures described above. Then, the proper stepping numbers for each scanning line can be calculated by comparing the actual moving distance and predefined moving distance and saved in the stepping control table 22. Therefore, the driving device 18 can move the scanning module 16 to nearly predefined position according to the stepping number stored in the location table.
Reference to FIG. 4.
Step 40: Start.
Step 42: Place the calibrating document on the scanning platform.
Step 44: Scan the whole calibrating document based upon the pre-defined stepping number A to generate each scanning line image.
Step 46: Calculate the slope of the oblique line and set the accumulated calibrating value T=0.
Step 48: Obtain the position Xi(1) of each oblique line for a first scanning line image. The position Xi of each oblique line can be the edge of the oblique line.
Step 50: Obtain the position Xi(n) of each oblique line for a nth scanning line image, where n is from 2 to last scanning line.
Step 52: Calculate the each deviation DXi(n) in the horizontal direction for each scanning line image and the mean value DX(n) from total DXi(n).
Step 54: Find the deviation between the actual position and the predefined position of each scanning line.
Step 58: Determine the stepping number S(n) and add the calibrating step into T.
Step 60: Store S(n) into the stepping control table 22.
Step 62: If it's the last line to scan? If so, move to Step 64, otherwise, jump to Step 50.
Step 64: Build the stepping control table with S(i), (i=1 . . . n).
Step 66: The End.
The description mentioned below explains how to find the position Xi of each oblique line for each scanning line image. Assume that the output of each sensor pixel 17 of scanning module has 8 bits with 256 gray level and a number between the maximum and the minimum values (0∼255) like 128 is selected as the reference number R. If a edge of the oblique line at one scanning line image is between S1 and S2 sensor pixel and the output of the S1 and S2 is V1 and V2 respectively, the position X(n) of sensing pixel for this edge can be determined by the following linear equation:
If a document contains a set of parallel oblique lines with same slope, we can find a plurality of edge positions, Xi(n), i=1, 2, 3, . . . , m. So, the shift value between two scanning line image is Xi(n)-Xi(1), and the deviation can be obtained with equation (2) below:
wherein
DXi(n): the deviation for the ith edge for the another scanning line
Xi(n): the position of the ith edge t for the another scanning line image
Xi(l): the position of the ith edge for the first scanning line image
A: pre-defined stepping number
T: accumulated calibrating stepping number
N: scanning line number from 2 to last one
So, the average deviation for all edge (i=1∼m) can be calculated from equation (3).
Also, according to the trigonometry, the deviation DY(n) can be calculated from equation (4).
Next, how to decide the stepping number S(n) for each scanning line with DY(n) cab be shown as below.
(1) If DY(n)>1/(2A), S(n)=A-1 & T=T-1; or
(2) If DY(n)<-1/(2A), S(n)=A+1 & T=T+1; or
(3) Otherwise S(n)=A & T remains unchanged.
When the stepping control table is created, the control device 20 will control the driving device 18 according to this table and the scanning module 16 can be moved to predefined position for each scanning line.
Reference FIG. 5. It is the deviation curve of an image scanner after calibration. The horizontal axis represents the scanning line number and the vertical axis represents the deviation. The deviation curve 36 after calibrating differs hugely with the curve 34 before calibrating. The deviations in curve 36 are much smaller than those in curve 34. Therefore, this method with the stepping control table can really reduce deviations and increase the accuracy for the transmission.
The scanner with this invention can also be a penetrating type including a transparent platform for setting a transparency. In another word, this invention can be suitably applied to both flatbed and film scanners.
While the exemplary preferred embodiments of the present invention are described herein with particularity, those having normal skill in the art will recognize various changes, modifications, and application other than those specifically mentioned herein without departing from the spirit of this invention.
Wang, Jin-Dar, Li, Liang-Yi, Chiu, Murphy, Hu, Andy
Patent | Priority | Assignee | Title |
6972876, | Dec 07 2000 | Brother Kogyo Kabushiki Kaisha | Image reading apparatus |
8659804, | Nov 26 2008 | CONTEX A S | Optical scanning |
Patent | Priority | Assignee | Title |
4779121, | Oct 31 1985 | Sharp Kabushiki Kaisha | Document scanning device |
5963006, | Nov 25 1993 | Canon Kabushiki Kaisha | Apparatus for controlling stepping motor |
6115149, | Mar 03 1998 | HANGER SOLUTIONS, LLC | Motor-speed control apparatus for scanners with a movable scan head |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Apr 20 1999 | WANG, JIN-DAR | MICROTEK INTERNATIONAL INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009933 | /0465 | |
Apr 20 1999 | LI, LIANG-YI | MICROTEK INTERNATIONAL INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009933 | /0465 | |
Apr 20 1999 | CHIU, MURPHY | MICROTEK INTERNATIONAL INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009933 | /0465 | |
Apr 20 1999 | HU, ANDY | MICROTEK INTERNATIONAL INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009933 | /0465 | |
Apr 30 1999 | Microtek International Inc. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 28 2006 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
May 10 2010 | REM: Maintenance Fee Reminder Mailed. |
Jun 30 2010 | M2552: Payment of Maintenance Fee, 8th Yr, Small Entity. |
Jun 30 2010 | M2555: 7.5 yr surcharge - late pmt w/in 6 mo, Small Entity. |
Jul 02 2010 | LTOS: Pat Holder Claims Small Entity Status. |
Feb 19 2014 | M2553: Payment of Maintenance Fee, 12th Yr, Small Entity. |
Date | Maintenance Schedule |
Oct 01 2005 | 4 years fee payment window open |
Apr 01 2006 | 6 months grace period start (w surcharge) |
Oct 01 2006 | patent expiry (for year 4) |
Oct 01 2008 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 01 2009 | 8 years fee payment window open |
Apr 01 2010 | 6 months grace period start (w surcharge) |
Oct 01 2010 | patent expiry (for year 8) |
Oct 01 2012 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 01 2013 | 12 years fee payment window open |
Apr 01 2014 | 6 months grace period start (w surcharge) |
Oct 01 2014 | patent expiry (for year 12) |
Oct 01 2016 | 2 years to revive unintentionally abandoned end. (for year 12) |