lines may be discovered since check sizes are standardized between 2 5 and 3 5 inches the line that relates closest to these standard sizes is chosen with a bias towards the larger check in such instances the upper boundary of the check image region is defined by the location of the horizontal raster line that is closest to a standard check size in a condition of uncertainty the line farthest from the lower boundary is selected the reasoning behind this is to preserve the check image in case the wrong line is chosen in the case where no lines are located the invention defaults to the larger check size turning to fig1 full page document image 10 is either generated electronically or scanned from a hardcopy using an optical scanner document image 10 includes check stub 20 check section 30 having a micr region 40 and perforation 50 to detach check section 30 from check stub 20 in one application of the present invention thousands of remittance checks such as those paid by distributors to a manufacturer are received and scanned in as a batch process however each distributor may use a different check style font and or layout the manufacturer wants to store images of only the check and not the check stub or ancillary data additionally the manufacturer may want to run ocr on the check only in a downstream process to monitor remittances for its billing system for all these reasons and more it is desirable to improve framing accentuate subject matter and or change aspect ratio of full page document image 10 in fig2 computer display.