A word code generating method and recognizing method, devices, and they are falling within the field of machine visual recognition. The word code generating method comprises: inputting target words and a corresponding target file; splitting each word in the target words on the basis of strokes or connecting points, so as to obtain split sequences; and randomly selecting several split sequences to perform visual anomaly processing on attribute values so as to generate word codes, establishing correlations between the word codes and the target file corresponding to the word codes, and outputting the word codes. The method for recognizing word code includes: acquiring an image containing word codes, and recognizing target words therein; splitting the target words according to the same rule, and then recognizing all visual anomaly split sequences, and performing determination on the word codes, if the word codes are generated on the basis of a encoding mechanism designed by a system, directly reading same and performing invoking; otherwise, invoking a pre-inputted target file of the word codes according to target wording sequences numbers and visual anomaly sequences numbers corresponding to the word codes. The feature is that the same words can generate a massive number of word codes with different machine visual features, and the form of the word code is still a word, and thus machine recognition and human eye recognition are integrated into one.
PHRASE CODE GENERATION METHOD AND APPARATUS, PHRASE CODE RECOGNITION METHOD AND APPARATUS, AND STORAGE MEDIUM