×

Image boundary detection for a scanned image

  • US 5,995,661 A
  • Filed: 10/08/1997
  • Issued: 11/30/1999
  • Est. Priority Date: 10/08/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for generating a bounding box for a scanned image comprising the following steps:

  • (a) detecting a vertical edge of the scanned image, including the following substep;

    (a.1) for each scan row, performing the following substeps for a subset of pixels in the scan row;

    (a.1.1) detecting when a first pixel in the substep of pixels has a grey value which differs from a grey value of a pixel immediately to the right of the first pixel by at least a first predetermined constant, and(a.1.2) when in substep (a.1.1), the first pixel in the substep of pixels has a grey value which differs from the grey value of the pixel immediately to the right of the first pixel by at least the first predetermined constant, performing the followings substeps;

    (a.1.2.1) detecting any edge from a previous row which is continued by the first pixel,(a.1.2.2) storing, for a longest edge in any row continued by the first pixel, a length of the longest edge,(a.1.2.3) storing an indication of a rightmost pixel of any edge continued by the first pixel, and(a.1.2.4) when the length of the longest edge continued by the first pixel exceeds a second predetermined constant, storing an x-coordinate of the rightmost pixel of any edge continued by the first pixel as a current rightmost edge;

    (b) detecting a horizontal edge of the scanned image;

    (c) using the vertical edge as a rightmost edge of the bounding box; and

    ,(d) using the horizontal edge as a bottom edge of the bounding box.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×