Patent ID: 8744171

Claim:
A computer-implemented method for determining a script of text in an image, the method comprising: receiving, at a computer including one or more processors, an image containing text in an unknown script; identifying, at the computer, a first set of connected components in the image, a connected component comprising a connected portion of one or more characters of the text in the unknown script; providing, at the computer, the first set of connected components to a text recognition module, the text recognition module producing in response outputs indicating likely scripts of the connected components of the first set, the text recognition module trained using a set of word fragments generated using a second set of connected components and a known script, the second set of connected components comprising connected portions of one or more characters of a known text in the known script, each word fragment comprising: (i) a particular connected component of the set of connected components, and (ii) at least a portion of the one or more characters of the known text corresponding to the particular connected component; and determining, at the computer, a script of the text in the image responsive to the outputs of the text recognition module.