Abstract:
A method and a system for encoding and decoding a mobile phone based two-dimensional code are provided, by means of obtaining the data information inputted by a user and transforming the data information into a two-dimensional code the encoding of the two-dimensional code is embodied. Furthermore, by means of performing binarization processing on the two-dimensional code image to obtain the binary data information, which is parsed into text information by using the preset decoding algorithm, to facilitate mobile phone users in information exchanging using a two-dimensional code.