Patent ID: 7369713

Claim:
An image processing apparatus, comprising: a transform unit configured to wavelet-transform image data into a set of wavelet coefficients; and a determination unit configured to determine whether the image data is of a vertical writing or of a horizontal writing based on the set of wavelet coefficients, wherein the determination unit includes a vertical detection unit configured to detect vertical writing patterns by detecting edge components of a vertical component included in the wavelet coefficients; a vertical count unit configured to count the vertical writing patterns by counting the edge components of the vertical component detected by the vertical detection unit; a horizontal detection unit configured to detect horizontal writing patterns by detecting edge components of a horizontal component included in the wavelet coefficients; a horizontal count unit configured to count the horizontal writing patterns by counting the edge components of the horizontal component detected by the horizontal detection unit; and a vertical/horizontal determination unit configured to determine whether the image data is of the vertical writing or of the horizontal writing based on counts of the vertical count unit and the horizontal count unit.