The present application is applicable to the field of terminal artificial intelligence and the corresponding technical field of computer vision. Provided are a language recognition method and apparatus, a terminal device, and a computer-readable storage medium. The method comprises: acquiring an image of lines of text to be recognized, wherein the image of lines of text to be recognized comprises text to be recognized; inputting the image of lines of text to be recognized into a trained language recognition model to obtain the language of the text to be recognized, wherein the language recognition model is used for determining, according to the image of lines of text to be recognized, the language of the text to be recognized; and if the language is a language family which comprises various types of languages, according to a language rule of the text to be recognized, taking a language, corresponding to the language rule, of the language family as the language of the text to be recognized. A language is recognized on the basis of a language rule, thereby avoiding the problem of inaccurate recognition caused by the ambiguity of identical or similar characters, and improving the accuracy of language recognition.
LANGUAGE RECOGNITION METHOD AND APPARATUS, TERMINAL DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM