Method and system for correcting direction or orientation of document image
First Claim
Patent Images
1. A method of detecting the direction of a document image, comprising the steps of:
- inputting the document image in original multi-value data;
determining whether the document image has been reversed in brightness, said determining step further comprises the following steps of;
digitizing the multi-value data into digitized image data;
extracting a first set of minimal circumscribing rectangles containing continuous black pixels from the digitized image data;
counting a first number of black pixels in the first set of the extracted minimal circumscribing rectangles;
reversing brightness of the original multi-value data into brightness reversed image data;
digitizing the brightness reversed image data into digitized brightness reversed image data;
extracting a second set of minimal circumscribing rectangles containing continuous black pixels from the digitized brightness reversed image data;
counting a second number of black pixels in the second set of the extracted minimal circumscribing rectangles; and
determining the brightness reversal based upon the first number and the second number; and
in case that the document image has not been reversed in brightness, digitizing the multi-value data into digitized image data; and
detecting the direction of the document image based upon the digitized image data;
orin case that the document image has been reversed in brightness, reversing brightness of the original multi-value data into brightness reversed image data;
digitizing the brightness reversed image data into digitized brightness reversed image data; and
detecting the direction of the document image based upon the digitized brightness reversed image data.
1 Assignment
0 Petitions
Accused Products
Abstract
A document image is often accidentally placed at an undesirable angle during image scanning. In order to correct the orientation of the image document, an angle must be determined based upon the document image. In determining the angle, the document image is processed to reverse the brightness as necessary.
14 Citations
14 Claims
-
1. A method of detecting the direction of a document image, comprising the steps of:
-
inputting the document image in original multi-value data; determining whether the document image has been reversed in brightness, said determining step further comprises the following steps of; digitizing the multi-value data into digitized image data; extracting a first set of minimal circumscribing rectangles containing continuous black pixels from the digitized image data; counting a first number of black pixels in the first set of the extracted minimal circumscribing rectangles; reversing brightness of the original multi-value data into brightness reversed image data; digitizing the brightness reversed image data into digitized brightness reversed image data; extracting a second set of minimal circumscribing rectangles containing continuous black pixels from the digitized brightness reversed image data; counting a second number of black pixels in the second set of the extracted minimal circumscribing rectangles; and determining the brightness reversal based upon the first number and the second number; and in case that the document image has not been reversed in brightness, digitizing the multi-value data into digitized image data; and
detecting the direction of the document image based upon the digitized image data;
orin case that the document image has been reversed in brightness, reversing brightness of the original multi-value data into brightness reversed image data;
digitizing the brightness reversed image data into digitized brightness reversed image data; and
detecting the direction of the document image based upon the digitized brightness reversed image data. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for detecting the direction of a document image, comprising:
-
a document input unit for generating the document image in original multi-value data; a digitizing unit connected to said document input unit for digitizing the document image; a brightness reversing unit connected to said document input unit for reversing brightness of the document image; a direction detection unit connected to said document input unit for detecting direction of the document image; and a brightness reversal determination unit connected to said document input unit for determining whether the document image has been reversed in brightness, said brightness reversal determination unit determining the brightness reversal based upon a first number and a second number, said digitizing unit digitizing the multi-value data into digitized image data, said brightness reversal determination unit extracting a first set of minimal circumscribing rectangles containing continuous black pixels from the digitized image data, said brightness reversal determination unit counting the first number of black pixels in the first set of the extracted minimal circumscribing rectangles, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data, said brightness reversal determination unit extracting a second set of minimal circumscribing rectangles containing continuous black pixels from the digitized brightness reversed image data, and said brightness reversal determination unit counting the second number of black pixels in the second set of the extracted minimal circumscribing rectangles, in case that the document image has not been reversed in brightness, said digitizing unit digitizing the multi-value data into digitized image data, said direction detection unit detecting the direction of the document image based upon the digitized image data, or in case that the document image has been reversed in brightness, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data, and said direction detection unit detecting the direction of the document image based upon the digitized brightness reversed image data. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A system for detecting the direction of a document image,comprising;
-
a document input unit for generating the document image in original multi-value data; a digitizing unit connected to said document input unit for digitizing the document image; a brightness reversing unit connected to said document input unit for reversing brightness of the document image; a direction detection unit connected to said document input unit for detecting direction of the document image; and a brightness reversal determination unit connected to said document input unit for determining whether the document image has been reversed in brightness, wherein said brightness reversal determination unit determines the brightness reversal based upon a first division evaluation result and a second division evaluation result, said digitizing unit digitizing the multi-value data into digitized image data, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data; a first area division unit connected to said digitizing unit for dividing the digitized image data into first divided areas according to a first predetermined rule; a second area division unit connected to said digitizing unit for dividing the digitized brightness reversed image data into second divided areas according to a second predetermined rule; and an area evaluation unit connected to said first and second area division units for evaluating the first divided areas to obtain the first division evaluation result and evaluating the second divided areas to obtain the second division evaluation result; in case that the document image has been reversed in brightness, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data, and said direction detection unit detecting the direction of the document image based upon the digitized brightness reversed image data.
-
-
13. A system for detecting the direction of a document images, comprising;
-
a document input unit for generating the document image in original multi-value data; a digitizing unit connected to said document input unit for digitizing the document image; a brightness reversing unit connected to said document input unit for reversing brightness of the document image; a direction detection unit connected to said document input unit for detecting direction of the document image; and a brightness reversal determination unit connected to said document input unit for determining whether the document image has been reversed in brightness, said brightness reversal determination unit determining the brightness reversal based upon a ratio with respect to a first predetermined threshold value, said digitizing unit digitizing the multi-value data into digitized image data, said brightness reversal determination unit extracting minimal circumscribing rectangles containing only white pixels from the digitized image data, said brightness reversal determination unit sorting the extracted minimal circumscribing rectangles according to area, said brightness reversal determination unit adding the area of a predetermined number of the largest ones of the extracted minimal circumscribing rectangles to generate a total white pixel minimal circumscribing rectangle area, and said brightness reversal determination unit obtaining the ratio of the total white pixel minimal circumscribing rectangle area to a total area of the digitized image data; in case that the document image has been reversed in brightness, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data, and said direction detection unit detecting the direction of the document image based upon the digitized brightness reversed image data.
-
-
14. A system for detecting the direction of a document image, comprising:
-
a document input unit for generating the document image in original multi-value data; a digitizing unit connected to said document input unit for digitizing the document image; a brightness reversing unit connected to said document input unit for reversing brightness of the document image; a direction detection unit connected to said document input unit for detecting direction of the document image; and a brightness reversal determination unit connected to said document input unit for determining whether the document image has been reversed in brightness, said brightness reversal determination unit determining the brightness reversal based upon a ratio with respect to a first predetermined threshold value, said digitizing unit digitizing the multi-value data into digitized image data, said brightness reversal determination unit extracting minimal circumscribing rectangles containing only white pixels from the digitized image data, said brightness reversal determination unit sorting the extracted minimal circumscribing rectangles according to area, said brightness reversal determination unit adding the area of a predetermined number of the largest ones of the extracted minimal circumscribing rectangles to generate a total white pixel minimal circumscribing rectangle area, said brightness reversal determination unit determining a largest minimal circumscribing rectangular area containing all of the extracted minimal circumscribing rectangles, and said brightness reversal determination unit obtaining the ratio of the total white pixel minimal circumscribing rectangle area to the largest minimal circumscribing rectangular area; in case that the document image has been reversed in brightness, said brightness reversing unit reversing brightness of the original multi-value data into brightness reversed image data, said digitizing unit digitizing the brightness reversed image data into digitized brightness reversed image data, and said direction detection unit detecting the direction of the document image based upon the digitized brightness reversed image data.
-
Specification