Patent ID: 7912295

Claim:
A method for auto-cropping scanned images, the method comprising: determining locations of one or more borderline pixels for a current scanned image, the one or more borderline pixels being background pixels that circumscribe an image within an Area of Interest (AOI) image; approximating average values for R, G, B channels for the one or more borderline pixels based, at least in part, on the scanned images, and setting the approximated R, G, B average values as R, G, B threshold values of the respective borderline pixels; determining an attribute of each pixel of the current scanned image based on the R, G, B threshold values; for each pixel of the current scanned image— determining that the individual pixel is a borderline pixel when the R, G, B levels of the individual pixel are smaller than the R, G, B threshold values; and recording the position of the individual pixel; and cropping the AOI image within a crop range defined by each of the borderline pixels of the current scanned image.