17. A non-transitory computer-readable medium having instructions stored therein that, when executed by one or more processors, cause the one or more processors to: determine a language hypothesis for each text fragment in a plurality of text fragments identified from connected components in a document image; select a first subset of text fragments from the plurality of text fragments based on ratings for the language hypothesis of each text fragment in the plurality of text fragments; verify, by the one or more processors, the language hypothesis of one or more text fragments in the first subset of text fragments based on optical character recognition of the one or more text fragments; and determine that Chinese, Japanese, or Korean (CJK) characters are present in the document image based on the verification of the language hypothesis of the one or more text fragments.
17. A non-transitory computer-readable medium having instructions stored therein that, when executed by one or more processors, cause the one or more processors to: determine a language hypothesis for each text fragment in a plurality of text fragments identified from connected components in a document image; select a first subset of text fragments from the plurality of text fragments based on ratings for the language hypothesis of each text fragment in the plurality of text fragments; verify, by the one or more processors, the language hypothesis of one or more text fragments in the first subset of text fragments based on optical character recognition of the one or more text fragments; and determine that Chinese, Japanese, or Korean (CJK) characters are present in the document image based on the verification of the language hypothesis of the one or more text fragments. 18. The computer readable medium of claim 17 , wherein the instructions are further to cause the one or more processors to verify the language hypothesis of the one or more text fragments in the first subset of text fragments based on an analysis of others of the plurality of text fragments.