Method of automatically cropping and adjusting scanned images
First Claim
1. A computerized method for processing an image obtained by scanning, said image being a substantially rectangular shape having four corners and including at least a plurality of pixels, said pixels each having a value representative of an optical characteristic of a scanned object, said method comprising:
- identifying a plurality of pixels along at least one edge portion of the image as a function of the pixel values, said identifying the pixels along the edge portion of the image including processing the image as a function of pixel values to identify corners of the image, said processing the image to identify corners including;
defining a plurality of at least substantially diagonal processing lines relative to the target orientation, each processing line having a first position tangentially aligned to a different corner of the image;
repositioning each of the processing lines a predetermined distance towards a center of the target orientation until each of the processing lines intersects one of the pixels having a pixel value substantially different than previously processed pixels; and
recording a location of each of the intersected pixels;
defining one or more edges of the image from the identified pixels;
determining an orientation of the image relative to a target orientation as a function of the defined edges; and
adjusting the orientation of the image portion to correspond to the target orientation.
2 Assignments
0 Petitions
Accused Products
Abstract
A computerized method and computer readable medium for adjusting a digital image obtained from scanning a document. An application processes the digital image to discern a border portion from an image portion. The application processes the digital image to determine whether an image portion of the digital image corresponds to a target orientation. If the image portion does not correspond to a target orientation, the application adjusts the image portion to correspond to the target orientation. The application further crops the adjusted image to entirely eliminate the border portion of that image.
-
Citations
25 Claims
-
1. A computerized method for processing an image obtained by scanning, said image being a substantially rectangular shape having four corners and including at least a plurality of pixels, said pixels each having a value representative of an optical characteristic of a scanned object, said method comprising:
-
identifying a plurality of pixels along at least one edge portion of the image as a function of the pixel values, said identifying the pixels along the edge portion of the image including processing the image as a function of pixel values to identify corners of the image, said processing the image to identify corners including; defining a plurality of at least substantially diagonal processing lines relative to the target orientation, each processing line having a first position tangentially aligned to a different corner of the image; repositioning each of the processing lines a predetermined distance towards a center of the target orientation until each of the processing lines intersects one of the pixels having a pixel value substantially different than previously processed pixels; and recording a location of each of the intersected pixels; defining one or more edges of the image from the identified pixels; determining an orientation of the image relative to a target orientation as a function of the defined edges; and adjusting the orientation of the image portion to correspond to the target orientation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer-readable medium having computer-executable instructions for processing a digital image, said digital image including a border portion and an image portion, wherein the border portion and the image portion each include at least a plurality of pixels, said pixels each having a value representative of an optical characteristic of a scanned object, and wherein the image portion is a substantially rectangular shape having four corners, comprising:
-
identifying instructions for identifying a plurality of pixels along at least one edge portion of the image portion as a function of the pixel values, wherein said pixels in the border portion have substantially different pixel values than said pixels in the image portion of the image, wherein said pixels along the edge portion of the digital image distinguish the image portion of the digital image from the border portion adjacent the edge portion, wherein said identifying instructions for identifying the pixels along the edge portion of the image portion includes processing the digital image as a function of pixel values to identify corners of the image, and wherein processing the digital image to identify corners includes; defining a plurality of diagonal processing lines relative to the target orientation, each diagonal processing line having a first position tangentially aligned to a different corner of the image; repositioning each of the diagonal processing lines a predetermined distance toward a center of the target orientation until each of the processing lines intersects one of the pixels having a pixel value substantially different than previously processed pixels; and recording a location of each of the intersected pixels; defining instructions for defining one or more edges of the image portion from the identified pixels; determining instructions for determining an orientation of the image portion relative to a target orientation as a function of the defined edges; adjusting instructions for adjusting the orientation of the image portion to correspond to the target orientation; and cropping instructions for cropping the adjusted image portion to eliminate the border portion. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A system for processing an image, said image being a substantially rectangular shape having four corners and including at least a plurality of pixels, said pixels each having a value representative of an optical characteristic of a scanned object, said system storing computer-executable instructions to do the following:
-
identifying a plurality of pixels along at least one edge portion of the image as a function of the pixel values, said identifying the pixels along the edge portion of the image including processing the image as a function of pixel values to identify corners of the image said processing the image including; defining a plurality of at least substantially diagonal processing lines relative to the target orientation, each processing line having a first position tangentially aligned to a different corner of the image; repositioning each of the processing lines a predetermined distance towards a center of the target orientation until each of the processing lines intersects one of the pixels having a pixel value substantially different than previously processed pixels; and recording a location of ach of the intersected pixels; defining one or more edges of the image from the identified pixels; determining an orientation of the image relative to a target orientation as a function of the defined edges; adjusting the orientation of the image portion to correspond to the target orientation; and cropping the adjusted image to eliminate the border portion. - View Dependent Claims (20, 21, 22, 23, 24, 25)
-
Specification