A test image has a black bias on a white background. The black bias is a line set at about 45 degrees to the scan lines of a scanner. boundary points of the scanned bias are found. A regression line is calculated from the positions of the boundary points. Differences in the positions of adjacent boundary points, together with the slope reciprocal of the regression line, are used to determine error values. The error values are compared with a gate value to determine if there are any occurrences of scan line misalignment.

Patent
   RE41364
Priority
Feb 18 2000
Filed
May 11 2006
Issued
Jun 01 2010
Expiry
Dec 21 2020
Assg.orig
Entity
Large
0
10
all paid
0. 10. A method for identifying scan line misalignment in a scanner, comprising:
scanning a test image to obtain scanned image data corresponding to a plurality of scan lines of the scanner;
locating one or more boundary points of the scanned test image corresponding to at least a portion of the plurality of scan lines;
determining a regression line for at least a portion of the one or more boundary points;
determining a corresponding error value for at least a portion of the one or more boundary points, based at least in part on the regression line;
comparing one or more corresponding error values with a gate value; and
determining whether the scanner has a scan line misalignment based at least in part on the comparing.
0. 17. A scanner having a plurality of scan lines, the scanner comprising:
a housing;
a scanning platform positioned at least partially in the housing;
a scanning module positioned at least partially in the housing and configured to obtain a scanned image of the document; and
a driving module positioned at least partially in the housing and configured to drive the scanning module to scan a document positioned on the scanning platform, wherein the scanner is configured to—locate one or more boundary points of the scanned image;
determine a regression line for at least a portion of the one or more boundary points;
determine corresponding error values for the one or more boundary points, based at least in part on the regression line; and
compare one or more corresponding error values with a gate value.
1. A method for determining if an image from a scanner has an occurrence of scan line misalignment, the scanner comprising a housing, a scanning platform upon which is placed a document to be scanned, a scanning module to scan the document, and a driving module to drive the scanning module, the method comprising:
scanning a document having a test image and collecting corresponding scan line image information from a plurality of scan lines in order, each scan line image having a portion of the scanned image of the test image;
using a method of searching for a predetermined boundary point to find the position of a boundary point of the test image from the information in every scan line image;
calculating a regression line from the position of the boundary point;
calculating discrepancies of corresponding positions of boundary points and the slope reciprocal of the regression line from the image information of adjacent scan lines and determining corresponding error values from every discrepancy and slope reciprocal; and
comparing every error value with a predetermined gate value to determine if the scan line images from the scanner have any occurrences of scan line misalignment.
2. The method of claim 1 wherein the method uses all found positions of the boundary points to calculate the regression line.
3. The method of claim 1 wherein the method uses a portion of the found positions of the boundary points to calculate the regression line.
4. The method of claim 1 wherein the regression line y=mx+b is calculated by m = n i = 1 x i y i - ( n i = 1 x i ) ( n i = 1 y i ) n n i = 1 x i 2 - ( n i = 1 x i ) 2 , b = ( n i = 1 y i ) ( n i = 1 x i 2 ) - ( n i = 1 x i ) ( n i = 1 x i y i ) n n i = 1 x i 2 - ( n i = 1 x i ) 2
and wherein (xi, yi) are the positions of the boundary points chosen to calculate the regression line.
5. The method of claim 1 wherein the document has a white background, and the test pattern is a black bias from an upper-right position to a lower-left position, each scan line comprising gray-scale image information from a plurality of pixels, and the method of searching for a predetermined boundary point proceeds from up to down and from left to right to search for the boundary points of the bias from the gray-scale image information in each scan line.
6. The method of claim 5 wherein the method of searching for a predetermined boundary point has the following steps comprises:
averaging the gray-scale values of a plurality of pixels in a chosen white region of a scan line, half of the averaging result being a boundary reference level (VP1), and defining the gray-scale value of a pixel closest to the boundary referencing level as a first boundary reference point (P1);
moving forward a first predetermined number of pixels from the first boundary reference point to select a second predetermined number of pixels, the average of the gray-scale values of the second predetermined number of pixels being a white reference level (VW);
moving backward the first predetermined number of pixels from the first boundary reference point to select the second predetermined number of pixels, the average of the gray-scale values of the second predetermined number of pixels being a black reference level (VB);
averaging the white and the black reference levels to determine a boundary level (V0);
searching for two adjacent pixels (P2, P3) from the plurality of pixels of the scan lines where the boundary level between both gray-scale values of the two adjacent pixels satisfies (VP2≦V0≦VP2), and setting these two pixels as a second and a third boundary reference point (P2, P3); and
using the gray-scale values of the second and the third reference points (VP2, VP3) and the boundary level (V0) to calculate the boundary point (X) mathematically by x = P 2 + V p 2 - V 0 V p 2 - V p 3 .
7. The method of claim 6 wherein the first and the second predetermined numbers are both 15.
8. The method of claim 1 wherein the width of the black bias is 2 mm, and the black bias has an angle of about 45 degrees with respect to the scan lines.
9. The method of claim 1 wherein the predetermined gate value is 0.3.
0. 11. The method of claim 10, wherein locating one or more boundary points further comprises:
for a particular scan line, identifying a first boundary reference point VP;
determining a white reference level VW;
determining a black reference level VB;
averaging the white and the black reference levels to determine a boundary level V0;
selecting two pixels as a second and a third boundary reference point P2 and P3 that satisfy the relationship VP3≦V0≦VP2, wherein VP2 and VP3 comprise second and third boundary reference points; and
calculating a boundary point (x) mathematically by x = P 2 + V p 2 - V 0 V p 2 - V p 3 .
0. 12. The method of claim 10, wherein determining a corresponding error value includes:
determining a difference in position between a boundary point corresponding with a first scan line and a boundary point corresponding with a second scan line;
determining a reciprocal of the slope of the regression line at the first scan line; and
determining an error value corresponding with the first scan line based at least in part on the difference between the determined difference in position between the boundary point corresponding with the first scan line and the boundary point corresponding with the second scan line and the determined reciprocal of the slope of the regression line at the first scan line.
0. 13. The method of claim 12, wherein the first and second scan lines comprise adjacent scan lines.
0. 14. The method of claim 10, wherein the gate value comprises a predetermined value.
0. 15. The method of claim 10, wherein the gate value is determined based on properties of the scanner.
0. 16. The method of claim 10, wherein determining whether the scanner has a scan line misalignment includes identifying a misalignment if the error value is numerically greater than the gate value.
0. 18. The scanner of claim 17, wherein said driving module is further configured to identify a misalignment if the error value is numerically greater than the gate value.
0. 19. The scanner of claim 17, wherein said document comprises an image of a test pattern.
0. 20. The scanner of claim 19, wherein said image of a test pattern comprises a black bias that runs from the upper-right portion of the document to the lower-left portion of the document.
0. 21. The scanner of claim 17, wherein said scanner is further configured to:
identify a first boundary reference point VP for a particular scan line;
determine a white reference level VW;
determine a black reference level VB;
average the white and the black reference levels to determine a boundary level V0;
select two pixels as a second and a third boundary reference point P2, and P3 that satisfy the relationship VP3≦V0≦VP2, wherein VP2 and VP3 comprise second and third boundary reference points; and
calculate a boundary point (x) mathematically by x = P 2 + V p 2 - V 0 V p 2 - V p 3 .
0. 22. The scanner of claim 17, wherein said scanner is further configured to:
determine a difference in position between a boundary point corresponding with a first scan line and a boundary point corresponding with a second scan line;
determine a reciprocal of the slope of the regression line at the first scan line; and
determine an error value corresponding with the first scan line based at least in part on the difference between the determined difference in position between the boundary point corresponding with the first scan line and the boundary point corresponding with the second scan line and the determined reciprocal of the slope of the regression line at the first scan line.

1. Field of the Invention

The present invention provides a method for determining if an image from a scanner has occurrences of scan line misalignments. More particularly, a software method enabling a program to determine if an image from a scanner has occurrences of scan line misalignments is disclosed.

2. Description of the Prior Art

Scanners are popular computer peripherals that are used to digitize documents or pictures so that they may be stored on a computer. To ensure a high quality of these scanned images, manufacturers strive to increase the resolution of the images, and to make their colors more brilliant. But a key factor affecting the quality of scanned images is the stability of the scanning module. If the stability of the scanning module is insufficient, the images from a scanner may have misalignments or entire deletions of scan lines in the image.

Please refer to FIG. 1. FIG. 1 is a schematic diagram of a prior art method to determine if there are any occurrences of scan line deletions in an image 10. The test is performed after the scanner has been completely manufactured, and involves the scanning of the test image 10. Testing personnel then analyze the results. As shown in FIG. 1, if a missed scan line 12 is observed by the testing personnel, the scanner is returned to the factory for adjustments. This visual method to determine if a scanner misses scan lines is both time consuming and relatively inaccurate.

Please refer to FIG. 2. FIG. 2 is a schematic diagram of another prior art method that uses a scanned test image 20 to determine if a scanner misses scan lines. The test image 20 is produced by the scanner to be tested by scanning a test picture. Each grid element, such as 24 or 26 in FIG. 2, represents a gray-scale value of a scanned test image pixel from the scanner after scanning the test picture, which has an axis of symmetry at 45 degrees. The range of the gray-scale values are from 0 to 255. The smaller the gray-scale values are, the darker the corresponding image pixels are. The larger the gray-scale values are, the brighter the corresponding image pixels are. The region 28 represents an image region after scanning the test picture, and its pixel values are almost all less than 30.

In this prior art, a search is performed within the scanned test image 20 to find the positions of the boundary points of the test image 20, and then pixel values within the boundary points are tested against diagonally adjacent pixel values. For example, I(X, Y) represents the pixel value of the test image 20 at the Xth column and the Yth line. A simple program is used to compare the pixel value I(i) of a point (X, Y) and the pixel value I(i+1) of another point (X−1, Y+1). If the difference between I(i) and I(i+1) is too large, then it is assumed that a scan line 22 is missing between the lines (Y) and (Y+1).

Hence, the prior art compares two adjacent lines and determines if the scanned test image 20 conforms to the expected 45 degree symmetry of the test picture. The minimum unit required to determine if a scan line has been skipped is one pixel. This is not accurate enough to satisfy the requirements of a high-end scanner.

It is therefore an objective of the present invention to provide a method for determining scan line misalignments of a scanner.

Briefly, the present invention scans a test image that has a black bias on a white background. The black bias is a line set at about 45 degrees to the scan lines of the scanner. The method involves finding boundary points of the scanned bias, calculating a regression line from the positions of the boundary points, using differences in the position of adjacent boundary points together with the slope reciprocal of the regression line to determine error values, and comparing the error values with a gate value to determine if there are any occurrences of scan line misalignment.

It is an advantage that the present invention can detect scan line misalignments with sub-pixel accuracy, thus fulfilling the more rigid requirements for high-level scanners.

These and other objectives of the present invention will no doubt become obvious to these of ordinary skill in the art after reading the following detailed description of the preferred embodiment, which is illustrated in the various figures and drawings.

FIG. 1 is a schematic diagram of a first prior art method for determining if an image from a scanner has any occurrences of scan line misalignments.

FIG. 2 is a schematic diagram of a second prior art method for determining if an image from a scanner has any occurrences of scan line misalignments.

FIG. 3 is a schematic diagram of a scanner with the present invention method.

FIG. 4 is a schematic diagram of a document with a test pattern of the present invention method.

FIG. 5 is a relationship diagram between a plurality of pixels of a scanning line and their corresponding gray-scale image values used to illustrate the present invention method of searching for the boundary points from the image information in a scan line.

FIG. 6 is a schematic diagram for a method to calculate the boundary points depicted in FIG. 5.

FIG. 7 is a flow chart of the present invention method for determining if an image from a scanner has any occurrences of scan line misalignments.

FIG. 8 is a flow chart of the present invention method to search for boundary points from the image information in a scan line.

Please refer to FIG. 3 and FIG. 4. FIG. 3 is a schematic diagram of a scanner 30 with the present invention method, and FIG. 4 is a schematic diagram of a document 36 for performing the present invention method. The scanner 30 includes a housing 32, a scanning platform 34 onto which is placed the document 36, a scanning module 38 to scan the document 36, and a driving module 40 to drive the scanning module 38. For a preferred embodiment of the present invention, the document 36 has a white background with a test pattern that is a black bias 37. The width of the bias 37 is 2 mm, and it has an angle of 45 degrees with respect to the orientation of the scan lines. The black bias 37 runs from the upper-right portion of the document 46 to the lower-left portion of the document 36.

To determine if there are any occurrences of scan line misalignment, the scanning module 38 is used to scan the document 36. Scan line image information for a plurality of scan lines is collected, each scan line containing a portion of scanned image of the document 36, the scan line information being collected in order. The image information in each scan line includes a plurality of gray-scale pixels, a portion of which correspond to the bias 37.

A searching method is used to find a boundary point of the bias 37 from the gray-scale image information in each scan line. Because the bias 37 on the document 36 includes two boundary lines, the image information in each scan line will have two boundary points. For convenience, the positions of the boundary points of the left boundary line will be described. The positions of the boundary points on the right side of the bias 37 are found in the same manner. This method is actually quite well known in the field of image processing.

Please refer to FIG. 5. FIG. 5 is a relationship diagram between the plurality of pixels of a scan line and their corresponding gray-scale image values, and is used to illustrate the present invention method for searching the boundary points in the image information of a scan line. First, the gray-scale image values of a plurality of pixels in a chosen white region 42 of the scan line is averaged. Half of the value of this result is used to define a boundary reference level (VP1). The pixel whose gray-scale image value most closely matches this boundary reference level is selected as a first boundary reference point P1.

Moving forward from the first boundary reference point P1 by a first predetermined number (say, 15) of pixels, a second predetermined number of pixels (again, 15) are selected. Average of the gray-scale values of these chosen pixels are used to define a white reference level (VW). Similarly, by moving backwards from the first boundary reference point P1 by the first predetermined number of pixels (15), another group of the second predetermined number of pixels (15) are selected, and their average values are used as a black reference level (VB).

Because the first boundary reference point P1 is located in an interim region 46 between the white region 42 and the black region 44, moving forward or backward by a predetermined number of pixels from the first boundary point P1 is used to ensure that the chosen pixels are located in the interim region 46. This makes the calculation of the white and the black reference levels more accurate.

The average of the white reference level (VW) and the black reference level (VB) is used to define a boundary level (V0). Two adjacent pixels P2 and P3 are then chosen between where the boundary level V0 falls. That is, the gray-scale image value of the boundary level V0 lies between the gray-scale image values of the pixels P2 and P3, satisfying the inequality VP3≦V0≦VP2. These two pixels are used as a second and a third boundary reference points P2 and P3.

Please refer to FIG. 6. FIG. 6 is a schematic diagram for a method to calculate the boundary points of FIG. 5. The gray-scale image values VP2 and VP3 of the second and the third boundary reference points are used along with the boundary level V0 to calculate the position X of the boundary point of the scanning line. The following equation is used to calculate X: X = P 2 + V p 2 - V 0 V p 2 - V p 1 .

Because P2 and P3 are adjacent pixels, P3 is equal to P2+1. From the equation P 3 - X P 3 - P 2 = V 0 - V P 2 V P 2 - V P 3 ,
the position of the boundary point X is equal to ( P 2 + V p 2 - V 0 V p 2 - V p 3 ) .
In the same manner, a series of different positions of boundary points Xi can be calculated, where i is an integer ranging from 1 to n, n being the number of scan lines.

After determining the boundary position points of the left boundary line for every scan line, a regression line and its slope can be calculated. The calculation of the regression line can be done using all, or only some, of the previously found boundary points. Because the calculation and mathematical significance of the regression line is a well known prior art mathematical tool, the equations are only noted here, without undue explanation. With n parts of numbers (xi, yi), i from 1 to n and being a positive integer, chosen to calculate the regression line y=mx+b, the values of m and b can be determined from the following equations: m = n n i = 1 x i y i - ( n i = 1 x i ) ( n i = 1 y i ) n n i = 1 x i 2 - ( n i = 1 x i ) 2 b = ( n i = 1 y i ) ( n i = 1 x i 2 ) - ( n i = 1 x i ) ( n i = 1 x i y i ) n n i = 1 x i 2 - ( n i = 1 x i ) 2

After calculating the regression line, the difference in the position of every boundary point is calculated (Δxi=xi−xi+1). This, with the reciprocal of the slope of the regression line (1/m), is used to calculate corresponding error values as (ERRi=|Δxi−1/m|). And the error values can also be interpreted with the use of error ratios, which are equal to ERRi/(1/m).

Finally, each error value ERRi is compared against a predetermined gate value (TD) to determine if the image from the scanner has any occurrences of scan line misalignment. If a specific error value is larger than the gate value, then there must be a scan line misalignment at the corresponding scan line. If the specific error value is less than or equal to the gate value, then there is no occurrence of scan line misalignment at that scan line. Occurrences of scan line misalignment are therefore determined by the choice of the gate value, which must be set by experienced personnel. In the preferred embodiment of the present invention, the gate value is about 0.3.

Please refer to FIG. 7. FIG. 7 is a flow chart of the present invention method to determine if an image from a scanner has any occurrences of scan line misalignment. The method of the present invent includes the following steps:

Please refer to FIG. 8. FIG. 8 is a flow chart of the present invention method of searching for the boundary points in the image information of a scan line. This method includes the following steps:

In the first prior art method, a manual, visual inspection of a scanned test image is performed, which is both judgmental (as it depends on the individual experience of the testing staff) and time-consuming. In the second prior art, the comparison of gray-scale image values of two adjacent scan lines to determine if the slope of the scanned test image is equal to its original value lowers the factors of personal judgement, but the results are too rough to fulfill the requirements of high-level scanners. The present invention method, however, searches for the boundary points to determine a regression line, and can calculate the positions of the boundary points accurately within one pixel unit and the error values of all boundary points to the regression line. If the error value is larger than a predetermined gate value, a scan line misalignment is determined to have occurred. In light of the discussion above, this method fulfills the requirements of high-level scanners, and the gate value can be chosen by experienced personnel to account for different requirements.

Those skilled in the art will readily observe that numerous modifications and alternations of the device may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Chang, Te-Chih, Tsai, Yu-Fen

Patent Priority Assignee Title
Patent Priority Assignee Title
5563403, Dec 27 1993 Ricoh Co., Ltd. Method and apparatus for detection of a skew angle of a document image using a regression coefficient
5892854, Jan 21 1997 Xerox Corporation Automatic image registration using binary moments
5978102, Nov 24 1995 Minolta Co., Ltd. Image reading apparatus
6134028, Jul 04 1997 Samsung Electronics Co., Ltd. Method for scanning documents
6178015, Jun 05 1998 HANGER SOLUTIONS, LLC Apparatus and method for increasing the scan accuracy and quality of the flatbed scanner by using close loop control
6303921, Nov 23 1999 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Method and system for capturing large format documents using a portable hand-held scanner
6512585, Jan 20 1999 FUJI XEROX CO , LTD Laser scanning position detecting device
6534757, Jan 30 1998 Canon Kabushiki Kaisha Image sensor noise reduction
20020070331,
20030020821,
///
Executed onAssignorAssigneeConveyanceFrameReelDoc
Dec 18 2000TSAI, YU-FENMUSTEK SYSTEMS, INC ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0187490826 pdf
Dec 18 2000CHANG, TE-CHIHMUSTEK SYSTEMS, INC ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0187490826 pdf
Dec 02 2005MUSTEK SYSTEMS, INC Transpacific Optics LLCASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0187490835 pdf
Date Maintenance Fee Events
Sep 23 2011M1552: Payment of Maintenance Fee, 8th Year, Large Entity.
Oct 27 2015M1553: Payment of Maintenance Fee, 12th Year, Large Entity.


Date Maintenance Schedule
Jun 01 20134 years fee payment window open
Dec 01 20136 months grace period start (w surcharge)
Jun 01 2014patent expiry (for year 4)
Jun 01 20162 years to revive unintentionally abandoned end. (for year 4)
Jun 01 20178 years fee payment window open
Dec 01 20176 months grace period start (w surcharge)
Jun 01 2018patent expiry (for year 8)
Jun 01 20202 years to revive unintentionally abandoned end. (for year 8)
Jun 01 202112 years fee payment window open
Dec 01 20216 months grace period start (w surcharge)
Jun 01 2022patent expiry (for year 12)
Jun 01 20242 years to revive unintentionally abandoned end. (for year 12)