Method of auto-cropping images for scanners
First Claim
Patent Images
1. A method of auto-cropping images for scanners comprising the steps of:
- a. providing a prescanned image wherein the pixels of said image are processed by an image-division method to obtain at least a low threshold and a high threshold;
b. comparing the pixels in every horizontal row with said low threshold, wherein the number of the pixels that exceed said low threshold is recorded respectively to obtain a dot-intension number for every row, and the dot-intension number of every row is compared with a limit, whereby cropping the rows with a dot-intension number that exceeds said limit, and dividing the prescanned image into several divided image regions;
c. comparing the pixels in every vertical column of every said divided image region with said low threshold, and the number of the pixels that exceed said low threshold is recorded respectively to obtain a dot-intension number for every column, then the dot-intension number of every column is compared with said limit, and the columns with dot-intension numbers that exceed said limit are cropped, and every said divided image region is further divided into several cropped regions; and
d. iterating steps b and c to further divide the cropped regions horizontally and vertically, and stopping the iterating process when every horizontal and vertical division in the cropped regions can not form any new divided region.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of auto-cropping images appropriate for scanners is disclosed, that features use of the image-division method for carrying out auto-cropping. According to the method, the images of the objects after pre-scanning can be auto-cropped, and therefore do not require further manual operation. The interference due to the background color of the cover and other redundant images can also be reduced. Furthermore, the present invention is also appropriate for scanning positive and negative films, and films are disposed on frames can be scanned properly.
115 Citations
9 Claims
-
1. A method of auto-cropping images for scanners comprising the steps of:
-
a. providing a prescanned image wherein the pixels of said image are processed by an image-division method to obtain at least a low threshold and a high threshold; b. comparing the pixels in every horizontal row with said low threshold, wherein the number of the pixels that exceed said low threshold is recorded respectively to obtain a dot-intension number for every row, and the dot-intension number of every row is compared with a limit, whereby cropping the rows with a dot-intension number that exceeds said limit, and dividing the prescanned image into several divided image regions; c. comparing the pixels in every vertical column of every said divided image region with said low threshold, and the number of the pixels that exceed said low threshold is recorded respectively to obtain a dot-intension number for every column, then the dot-intension number of every column is compared with said limit, and the columns with dot-intension numbers that exceed said limit are cropped, and every said divided image region is further divided into several cropped regions; and d. iterating steps b and c to further divide the cropped regions horizontally and vertically, and stopping the iterating process when every horizontal and vertical division in the cropped regions can not form any new divided region. - View Dependent Claims (2, 3, 4)
-
-
5. A method of auto-cropping images for scanners appropriate for scanning films with or without frames comprising the steps of:
-
(I). confirming the type of the films first, and detecting frames, and if frames are detected, then step (II) is carried out; (II). preprocessing a prescanned image according to the film type, and carrying out the following steps; 2a. processing the pixels of said prescanned image by the image-division method to obtain at least a low threshold and a high threshold; 2b. comparing the pixels in every horizontal row with said low threshold, and recording respectively the number of the pixels that exceed said low threshold to obtain a dot-intension number for every row, then comparing the dot-intension number of every row with a limit, thereby cropping the rows with dot-intension numbers that exceed said limit, and dividing the prescanned image into several divided image regions; 2c. comparing the pixels in every vertical column of every said divided image region with said low threshold, then respectively recording the number of the pixels that exceed said low threshold to obtain a dot-intension number for every column, then comparing the dot-intension number of every column with said limit, thereby cropping the columns with dot-intension numbers that exceed said limit, and further dividing every said divided image region into several cropped regions; 2d. iterating steps 2b and 2c to further divide the cropped regions horizontally and vertically, and stopping the iterating process when every horizontal and vertical division of the cropped regions can not form any new divided region; and 2e. comparing the pixels in every cropped region with said high threshold, and recording the number of the pixels that exceed the high threshold to serve as a sum number, and if said sum number of every cropped region is greater than the total of pixel dots in a cropped region for a certain proportion, then no film is disposed at the cropped position, whereby every cropped region can be checked sequentially to locate the correct position of said film; wherein if in step I the frames are not detected, then the steps described steps 2a˜
2d in process II are carried out to crop the films regions properly. - View Dependent Claims (6, 7, 8, 9)
-
Specification