摘要 |
Disclosed is a method for detecting a document size when the width of a document to be scanned is smaller than an effective scan width of a scanner module. One block of a document support plate is scanned before a document to be scanned is fed and a data value of the scanned block is stored as a reference color data value. After pre-scanning a first block of the document, dividing the document block, widthwise, into a predetermined number of slice, determining whether the reference color data value and a color data value of an Nth slice of the document block are equal, where N is initially set to one, increasing N by one, when it is determined that the reference color data value and the color data value of the Nth slice of the document block are not equal and repeating the determining step, setting a value of the document size to be equal to N-1, when it is determined that the reference color data value and the color data value of the Nth slice of the document block are equal.
|