Patent ID: 6999209

Claim:
A method for electronically registering an input document, comprising: (a) generating an image data stream representing a captured image, the captured image including the input document, the image data stream being partition into a plurality of scan lines of image data; (b) detecting if the scan line of image data contains an edge of the input document and generating leading edge data and trailing edge data therefrom; (c) establishing, when a scan line of image data containing an edge of the input document is detected and no corner of the input document has been established, a first corner of the input document based on the generated leading edge data and trailing edge data corresponding to the scan line of image data containing an edge of the input document; (d) establishing a second corner of the input document from generated leading edge data, the establishing of the second corner of the input document including, (d1) determining, after the first corner of the input document has been established and a scan line of image data containing an edge of the input document is detected, if the generated leading edge data is less than a first threshold value, (d2) determining if the generated leading edge data represents a corner when it is determined that the generated leading edge data is less than the first threshold value, and (d3) establishing the second corner of the input document based on the generated leading edge data when it is determined that the generated leading edge data represents a corner; (e) establishing a third corner of the input document from generated trailing edge data, the establishing of the third corner of the input document including, (e1) determining, after the first corner of the input document has been established and a scan line of image data containing an edge of the input document is detected, if the generated trailing edge data is greater than a second threshold value, (e2) determining if the generated trailing edge data represents a corner when it is determined that the generated trailing edge data is greater than the second threshold value, and (e3) establishing the third corner of the input document based on the generated trailing edge data when it is determined that the generated trailing edge data represents a corner; and (f) establishing, when the generated trailing edge data is less than the second threshold value and the generated leading edge data is greater than the first threshold value, a fourth corner of the input document, after the first corner of the input document has been established and a scan line of image data containing an edge of the input document is detected, based upon current generated edge data.