Patent ID: 8903175

Claim:
A method for script and orientation detection of an image, comprising: extracting textual content in the image; obtaining a vertical component run (VCR) and a horizontal component run (HCR) by vectorizing each connected component in the extracted textual content in the image; computing a concatenated vertical document vector (VDV) and horizontal document vector (HDV) by averaging the obtained VCR and HCR for each connected component in the image; obtaining a substantially matching script and orientation by comparing the computed concatenated VDV and HDV of the image with each of a plurality of reference VDVs and HDVs, wherein each reference VDV and HDV is associated with a script and an orientation of a plurality of scripts and orientations; determining whether the computed concatenated VDV and HDV of the image substantially match with the reference VDV and HDV associated with the matching script and orientation; and if the computed concatenated VDV and HDV of the image substantially match with the reference VDV and HDV associated with the matching script and orientation, then declaring the matching script and orientation as the script and orientation of the image.