主权项 |
1. An image processing apparatus comprising:
a reading unit configured to read a document from an end portion of the document for each line in a predetermined direction and outputs image data; a detection unit configured to detect a size of the document in the predetermined direction; an obtainment unit configured to obtain a frequency distribution of pixel values by using output image data, for each reference region having a predetermined width in the predetermined direction, while reading the document by using the reading unit; a totalization unit configured to segment a frequency distribution obtained by the obtainment unit for each of the reference regions into a predetermined number of groups, and totalizes and stores the frequency distribution for each of the groups; a control unit configured to control totalization by the totalization unit, upon detection of a size of the document by the detection unit, so as to equalize the numbers of the reference regions sorted to the respective groups by using the size of the document, a width of the reference region, and the number of the groups; and an analysis unit configured to analyze the input image data by using a frequency distribution stored for each group which is totalized by control by the control unit.
|