Patent ID: 9367781
Filing Date: 2016-06-14
CPC Classification: G06F,G06K,H04M,H04W

Claim Text:
1. A method for decoding a mobile phone based two-dimensional code, comprising: obtaining a two-dimensional code image and placing the two-dimensional code image into preset layers after the obtained two-dimensional code image has been adjusted depending on a resolution of each layer; performing binarization processing on the two-dimensional code image which has been placed into the layers to generate a black-and-white image; quantizing the black-and-white dots containing in the black-and-white image into binary data information; identifying the version and the error correction level of the two-dimensional code contained in the two-dimensional code image according to the binary data information; parsing the binary data information into text information by using a preset decoding algorithm; wherein the step of parsing the binary data information into text information by using a preset decoding algorithm further comprises: determining whether there is a application information contained in valid fields at the starting position of the parsed text information: if it is determined that the text information contains application information, the corresponding application is performed, otherwise, it is determined that the text information is a plain text information; wherein the specific determining steps for determining whether there is application information contained in the to information comprises; determining whether “http://” or “https://” is contained in the valid fields at a starting position of the text information; if there is “http://” or “https://” contained in the valid fields at the starting position of the text information, it is determined that there is information relating to a web application in the text information, and the associated web pages are opened in accordance with the content included in the text information; otherwise determining whether “TEL:” is contained in the valid fields at the starting position of the text information: if there is “TEL:” contained in the valid fields at the starting position of the text information, determining that there is information relating to a phone call application in the text information and the associated phone call function is activated in accordance with the content included in the text information; otherwise determining whether “SMSTO” is contained in the valid fields at the starting position of the text information: if there is “SMSTO” contained in the valid fields at the starting position of the text information, determining that there is information relating to a short message application in the text information and the associated short message function is activated in accordance with the content included in the text information; otherwise determining whether “mecard” is contained in the valid fields at the starting position of the text information: if there is “mecard” contained in the valid fields at the starting position of the information, determining that there is information relating to an address book application in the text information and the associated address book function is activated in accordance with the content included in the text information; and otherwise determining that the text information is a plain text information.