13. An apparatus for processing a page in the form of an image, the apparatus comprising: a histogram generator module configured to generate a histogram of foreground pixel counts corresponding to a current line of text of said page being processed, said foreground pixel counts corresponding to different rows of pixels corresponding to said current line of text; a peak identification module configured to identify a first peak and a second peak in said histogram, said first peak corresponding to a row of pixels above said second peak; a page orientation determination module configured to determine if said page is inverted or non-inverted based on a difference between a first count of foreground pixels in a first portion of said current line of text and a second count of foreground pixels in a second portion of said current line of text, said first portion being located in said line of text above said first peak, said second portion being located in said line of text below said second peak.
13. An apparatus for processing a page in the form of an image, the apparatus comprising: a histogram generator module configured to generate a histogram of foreground pixel counts corresponding to a current line of text of said page being processed, said foreground pixel counts corresponding to different rows of pixels corresponding to said current line of text; a peak identification module configured to identify a first peak and a second peak in said histogram, said first peak corresponding to a row of pixels above said second peak; a page orientation determination module configured to determine if said page is inverted or non-inverted based on a difference between a first count of foreground pixels in a first portion of said current line of text and a second count of foreground pixels in a second portion of said current line of text, said first portion being located in said line of text above said first peak, said second portion being located in said line of text below said second peak. 14. The apparatus of claim 13 , wherein said page orientation determination module includes: a per text line difference value generation module configured to generate a per text line difference value, said per text line difference value being said difference between the first count of foreground pixels in the first portion of said current line of text and the second count of foreground pixels in the second portion of said current line of text.