Method for real-time auto-cropping a scanned image

Image analysis – Image sensing

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C382S318000, C382S319000, C358S487000, C358S505000

Reexamination Certificate

active

06453080

ABSTRACT:

BACKGROUND OF THE INVENTION
A. Field of the Invention
The present invention relates to a method for image processing, especially to a method for real-time auto-cropping a scanned image without performing the process of prescan.
B. Description of the Prior Art
The method of auto-cropping an image is a technology for selectively reading a scanned image from a background image which is usually black. According to current technology, the technology of auto-cropping an image must be performed after the process of prescan because the crop range of the scanned image cannot be determined beforehand. The function of image auto-crop can be provided by either a non-user interface scan (Non-UI Scan) or a user interface scan (UI Scan). The “UI Scan” here refers to a “TWAIN user interface” in the TWAIN module. And the “non-UI Scan” refers to a “User Interface not in the TWAIN module”. In either a non-UI scan or a UI scan, the prescan process must be performed first. Then, each pixel of the pre-scanned image is evaluated according to its R (Red) G (Green) B (Blue) values, thereby to determine the actual crop range for the scanned image. After determining the crop range, the scanner will be reset to read the image defined by the crop range and then discard the rest image. Or, the user may manually select the area of interest from the scanned image.
The disadvantages of the conventional technology is that the time and resources required for image auto-cropping is always the same regardless of the size of the desired image. It is because a prescan process is always required. If the area of interest is very small, most prescanned image transmitted from the scanner is useless while still consumes the same sources for processing. For instance, the time required for scanning an image of A3 size is the same as scanning a 3×5 photo because the scanner must perform a prescan of an A3 image in color mode first. For non-user interface scan, the process would be more complicated. First, the crop range of the 3×5 photo can only be obtained by computing its coordinates following a computation algorithm. Then, based on the crop range, the scanner will be reset to locate on the position of the 3×5 photo and then enabled to perform a second image reading to get the image of the area of interest.
SUMMARY OF THE INVENTION
Accordingly, it is an object of the present invention to provide a method for real-time image auto-cropping, which can determine the crop range in read-time while reading the desired image data, thereby to efficiently crop the desired image without the process of prescan.
It is another object of the present invention to provide a method for real-time image auto-cropping, which can directly read the image data of the area of interest without having to transfer useless image data from the scanner, thereby to reduce the scanning time and process time.
In accordance with the invention, the method of the invention involves in finding the width and length of a scanned image in real time and then write the length and width into the header of a bitmap file as soon as the bottom line is found for a non-UI access. On the other hand, the image buffer data may be returned to the upper level image application program for a UI access. At the same time, the image data within the crop range can be automatically written into the bitmap file while searching for the bottom line of the scanned image. The width of the meaningful image regions can be determined by computing the distance between the position of a leftmost start pixel and the position of a rightmost end pixel of a meaningful image region first appeared in a partial image block. The width computed is transferred back to the scanner so as to reset the width for reading the subsequent image data. The length of the scanned image cannot be determined until a bottom line is found.
To find the bottom line, for each meaningful image region, sample a plurality of line areas to determine if the meaningful image region contains the bottom line. For each meaningful image region examined, sum up the total number of image lines until the bottom line is reached. Eventually, for non-UI access, when the bottom line is found, the size of the scanned image is also determined. For TWAIN UI access, the parameter indicating the end of image data is transferred to the upper level image application program. The whole process is performed in real-time and without the process of prescan. The present invention can efficiently save the scan time because it only reads the desired image data after finding the width of the scanned image and can stop scanning right after a bottom line of the scanned image is found. Consequently, if the scanned image is a 3×5 photo, the scanner will stop right after finishing reading the image of the 3×5 photo.


REFERENCES:
patent: 4482924 (1984-11-01), Brownstein
patent: 5781665 (1998-07-01), Cullen et al.
patent: 5880858 (1999-03-01), Jin
patent: 6201619 (2001-03-01), Neale et al.
patent: 6310984 (2001-10-01), Sansom-Wai et al.
patent: 6360026 (2002-03-01), Kulkarni et al.
Huang et al., “Detection of Human Faces Using Decision Trees”, IEEE Proceedings of the Second International Conference on Automatic Face and Gesture Recognition, 1996, pp. 248-252.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method for real-time auto-cropping a scanned image does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method for real-time auto-cropping a scanned image, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method for real-time auto-cropping a scanned image will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2851653

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.