CN105279466B - Graphic code recognition methods and device, figure code generating method and device - Google Patents

Graphic code recognition methods and device, figure code generating method and device Download PDF

Info

Publication number
CN105279466B
CN105279466B CN201410339126.1A CN201410339126A CN105279466B CN 105279466 B CN105279466 B CN 105279466B CN 201410339126 A CN201410339126 A CN 201410339126A CN 105279466 B CN105279466 B CN 105279466B
Authority
CN
China
Prior art keywords
character string
graphic code
software
code
graphic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410339126.1A
Other languages
Chinese (zh)
Other versions
CN105279466A (en
Inventor
贺啸
宁静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410339126.1A priority Critical patent/CN105279466B/en
Publication of CN105279466A publication Critical patent/CN105279466A/en
Application granted granted Critical
Publication of CN105279466B publication Critical patent/CN105279466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of graphic code recognition methods and device, figure code generating method and device, first reception scan instruction scanning figure shape code, parsing is carried out to graphic code and obtains the first character string, and checks the validity of the first character string;It is handled if inspection effectively, is decoded the first character string and is sent to server;If it is invalid to check, http request is sent to server according to the first character string, and receive the webpage that server is returned according to http request, it is provided with software in webpage and pulls control, control is pulled by software receives software and pulls instruction and call and open corresponding second graph code scanning software and be decoded.The present invention automatically correctly identifies graphic code, reduces the cost of manpower, time etc., accelerates recognition efficiency;Original contents are carried out to generate graphic code on the string-concatenation to default URL after data processing, the information for recording user according to URL information quick obtaining graphic code has good application value.

Description

Graphic code recognition methods and device, figure code generating method and device
Technical field
The present invention relates to mobile communication technology fields, more particularly to a kind of graphic code recognition methods and device, graphic code Generation method and device.
Background technique
With social progress, economy is continued to develop, and graphic code is applied to various aspects in life, below in graphic code Two dimensional code for be introduced.Two dimensional code (Two-dimensional code), also known as two-dimensional bar code, are in bar code On the basis of expand another dimension there is readable bar code, it is (two-dimentional in plane according to certain rules with specific geometric figure Direction) on the chequered with black and white figure that is distributed, compare bar code, two-dimensional bar code can record more more complicated data, be One key of all information datas.In modern business activities, it can be achieved that using very extensive, such as: product false proof/trace back Source, advertisement pushing, web site url, data downloading, commodity transaction, positioning/navigation, electronic certificate, vehicle management, information transmitting, Business card exchange, wifi are shared etc..Nowadays smart phone sweeps the application for sweeping (referred to as 313) function so that two dimensional code is more universal.
Following problem exists in the prior art in inventor: when carrying out two dimensional code identification, first manufacturer provides A type two Tie up code, it is necessary to could be identified with A type two-dimensional code scanning software, user identifies A using the Type B two-dimensional code scanning software of other manufacturers When type two dimensional code, often it is prompted that mistake occurs, user needs to find A type two-dimensional code scanning software manually to identify A type two dimension Code, two dimensional code recognition speed is slow, low efficiency.
Summary of the invention
Based on the above situation, the invention proposes a kind of graphic code recognition methods and figure code generating methods, automatically to life At graphic code correctly identified, save the plenty of time, accelerate recognition efficiency;Original contents are subjected to the word after data processing Symbol string, which is spliced on default URL, generates graphic code, according to URL information quick obtaining graphic code information, has very high using valence Value.
To achieve the goals above, the embodiment of technical solution of the present invention are as follows:
A kind of graphic code recognition methods, comprising the following steps:
Scan instruction is received, according to the scan instruction scanning figure shape code, parsing acquisition and institute are carried out to the graphic code Corresponding first character string of graphic code is stated, and checks the validity of first character string, the graphic code passes through will be original interior Hold and obtains first character string on the second string-concatenation to default URL for carrying out obtaining after data processing and according to described First character string converts to obtain;
If first character string is effective, first character string is decoded, and send decoded information to Server is handled;
If first character string is invalid, http request is sent to the server according to first character string;
The webpage that the server is returned according to the http request is received, software is provided in the webpage and pulls control Part;
Control is pulled by the software receiving software and pull instruction, instruction calling is pulled according to the software and is opened pair The second graph code scanning software answered is decoded first character string or the graphic code.
A kind of figure code generating method, comprising the following steps:
Obtain original contents;
Data processing is carried out to the original contents and is converted into the second character string;
The first character string will be obtained on second string-concatenation to default URL;
According to the first text string generation graphic code.
For prior art problem, the invention also provides a kind of figure code recognition device and graphic code generating means, change Be apt to it is existing need to find corresponding graphic code scanning software manually to identify two dimensional code, the status taken considerable time;By figure Code original contents carry out generating graphic code on the string-concatenation to default URL after data processing, according to default URL quick obtaining Graphic code information is suitble to application.
The embodiment of technical solution of the present invention are as follows:
A kind of figure code recognition device, comprising:
Command reception module, for receiving scan instruction;
Graphic code scan module, for carrying out parsing to the graphic code and obtaining according to the scan instruction scanning figure shape code Obtain the first character string corresponding with the graphic code;
Availability deciding module is used for and checks the validity of first character string, and the graphic code passes through will be original Content carries out obtaining first character string on the second string-concatenation to default URL obtained after data processing and according to institute The first character string is stated to convert to obtain;
Decoder module, for being decoded to first character string when first character string is effective, and will decoding Information afterwards is sent to server and is handled;
Processing module, for being sent out to the server according to first character string when first character string is invalid Http request is sent, and receives the webpage that the server is returned according to the http request, software drawing is provided in the webpage Control is taken, control is pulled by the software receives software and pull instruction, instruction calling is pulled according to the software and is opened pair The second graph code scanning software answered is decoded first character string or the graphic code.
A kind of graphic code generating means, comprising:
Module is obtained, for obtaining original contents;
Data processing module is converted into the second character string for carrying out data processing to the original contents;
Splicing module, for the first character string will to be obtained on second string-concatenation to default URL;
Generation module, for according to the first text string generation graphic code.
Compared with prior art, the invention has the benefit that graphic code recognition methods of the present invention and device, graphic code are raw Show that an intermediate page, the intermediate page are set when using Type B graphic code scanning software identification A type graphic code at method and device It is equipped with software and pulls control, control pull-up A type graphic code scanning software identification A type graphic code can be pulled according to the software, from It is dynamic that graphic code is correctly identified, the cost of manpower, time etc. is reduced, recognition efficiency is accelerated;Original contents are carried out Graphic code is generated on string-concatenation to default URL after data processing, is identified when using Type B graphic code scanning software according to upper When stating the A type graphic code of method generation, shows network address intermediate page related with default URL, correctly obtained according to the intermediate page The information for taking A type graphic code to record has good application value.
Detailed description of the invention
Fig. 1 is graphic code recognition methods flow chart in one embodiment;
Fig. 2 is figure code generating method flow chart in one embodiment;
Fig. 3 is based on graphic code recognition methods flow chart in method one shown in Fig. 1 specific example;
Fig. 4 is graphic code recognition methods timing diagram in one embodiment;
Fig. 5 is figure code recognition device structural schematic diagram in one embodiment;
Fig. 6 is graphic code generating means structural schematic diagram in one embodiment;
Fig. 7 is the part-structure block diagram of the terminal device provided based on the present invention program.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In the explanation of following embodiments, be related to two character strings, one be graphic code is carried out parsing acquisition with The corresponding character string of graphic code, the other is character string corresponding with original contents, for the ease of distinguishing, in following each embodiments Explanation in, by graphic code carry out parsing acquisition character string corresponding with graphic code be known as the first character string, will with it is original The corresponding character string of content is known as the second character string.
Graphic code recognition methods in one embodiment, as shown in Figure 1, comprising the following steps:
Step S101: it receives scan instruction and the graphic code is parsed according to the scan instruction scanning figure shape code The first character string corresponding with the graphic code is obtained, and checks the validity of first character string, the graphic code passes through Original contents are carried out to obtaining on obtained the second string-concatenation to default URL after data processing first character string, simultaneously It converts to obtain according to first character string;
Step S102: if first character string is effective, being decoded first character string, and by decoded letter Breath is sent to server and is handled;
Step S103: if first character string is invalid, http is sent to the server according to first character string Request;
The webpage that the server is returned according to the http request is received, software is provided in the webpage and pulls control Part;
Control is pulled by the software receiving software and pull instruction, instruction calling is pulled according to the software and is opened pair The second graph code scanning software answered is decoded first character string or the graphic code.
It is evidenced from the above discussion that graphic code recognition methods of the present invention, is identifying A type figure using Type B graphic code scanning software When shape code, shows that an intermediate page, the intermediate page are provided with software and pull control, control pull-up A can be pulled according to the software Type graphic code scanning software identifies A type graphic code, is correctly identified to graphic code automatically, raising recognition speed, reduction manpower, The cost of time etc. is suitble to practical application.
As one embodiment, it is additionally provided with downloading control in the webpage, is received under software by the downloading control Instruction is carried, is instructed according to the software download and is downloaded and open corresponding second graph code scanning software to first character string Or the graphic code is decoded, and is quickly identified graphic code using different controls according to different situations, is met a variety of make With demand, it is suitble to application.
As one embodiment, the step of checking the validity of first character string, includes:
The validity that first character string is checked according to the URL information in first character string, quickly determines word Whether symbol string is effective, accelerates graphic code recognition efficiency, meets reality.
As one embodiment, the graphic code is two dimensional code, and two dimensional code utilizes chequered with black and white graphic recording data symbols Number information, application is very extensive, and value is high.
Figure code generating method in one embodiment, as shown in Figure 2, comprising the following steps:
Step S201: original contents are obtained;
Step S202: data processing is carried out to the original contents and is converted into the second character string;
Step S203: the first character string will be obtained on second string-concatenation to default URL;
Step S204: according to the first text string generation graphic code.
It is evidenced from the above discussion that original contents are carried out the character string after data processing by figure code generating method of the present invention It is spliced on default URL and generates graphic code, when the A type figure generated according to the method described above using the identification of Type B graphic code scanning software When shape code, network address intermediate page related with default URL is shown, A type graphic code record is correctly obtained according to the intermediate page Information has good application value.
As one embodiment, carrying out the step of data processing is converted into the second character string to the original contents includes:
Data processing is carried out to the original contents using URL coding mode and is converted into the second character string, it is assumed that in original Appearance is the first and second the third, %E7%94%B2%E4%B9%99%E4%B8%99 is encoded to using URL, the content % after coding In E7%94%B2%E4%B9%99%E4%B8%99 direct splicing to default URL, shortens substrate processing time, have very high Application value;
Or
Data processing is carried out to the original contents using character string maps mode and is converted into the second character string, it is assumed that is original Content is the first and second the third, represents the first and second the third with A using character string maps mode, the content A after mapping is spliced on default URL, Simply, processing quickly, saves the time, is suitble to application.
This method in order to better understand, the application example of a graphic code recognition methods of the present invention detailed below.
As shown in figure 3, the application example is directed to good friend's WeChat ID two-dimensional code identification method, it may include following step It is rapid:
Step S301: receiving scan instruction, scans good friend's WeChat ID two dimensional code according to scan instruction, carries out to the two dimensional code Parsing obtains the first character string corresponding with the two dimensional code, and checks the validity of first character string;Above-mentioned good friend's WeChat ID Two dimensional code carries out data processing to good friend's WeChat ID by using character string maps method and obtains the second character string A, and A is spliced to The first character string (http://www.y.com/s is obtained on default URL (http://www.y.com/s)? p=A), according to first Character string converts to obtain;
Step S302: if using wechat two-dimensional code scanning software, check above-mentioned first character string with http: // Www.y.com/s? p=beginning, one's own valid data format are decoded above-mentioned first character string, obtain effectively Data A, and server is sent by valid data A, A is mapped as good friend's WeChat ID by server, carries out subsequent processing;
Step S303: if using QQ two-dimensional code scanning software, check above-mentioned first character string with http: // Www.y.com/s? p=beginning, is not belonging to the valid data format of oneself, sends http to server according to the first character string and asks It asks, does is which (http://www.y.com/s? p=A);Does is it http://www.y.com/s that server, which returns to network address,? p The webpage of=A is provided with software in the webpage and pulls control;The software that control receives user is pulled by the software in the webpage Pull instruction;It pulls instruction calling according to the software and opens wechat two-dimensional code scanning software and above-mentioned first character string is solved Code, obtains valid data A, and send server for valid data A, A is mapped as good friend's WeChat ID by server, after progress Continuous processing.
Whole process automatically correctly identifies the two dimensional code of generation, reduces the cost of manpower, time etc., accelerates Recognition efficiency, practical value are high.
For the graphic code recognition methods timing diagram in Fig. 4, one for the treatment of process can be discussed further below:
Step S401: the scanning software one of terminal receives scan instruction, according to scan instruction scanning figure shape code, to graphic code Carry out parsing and obtain corresponding with the graphic code the first character string, check first character string result be it is effective, to this first Character string is decoded, and is sent server for decoded information and handled;
Step S402: server obtains the corresponding content of graphic code, carries out subsequent processing;Above-mentioned graphic code passes through will be original Content carries out obtaining above-mentioned first character string on the second string-concatenation to default URL obtained after data processing and according to upper The first character string is stated to convert to obtain;
Step S403: the scanning software two of terminal receives scan instruction, according to scan instruction scanning figure shape code, to graphic code Carry out parsing and obtain corresponding with the graphic code the first character string, check first character string result be it is invalid, according to this One character string sends http request to server;
Step S404: server returns to webpage according to above-mentioned http request;
Step S405: terminal receives the webpage that server is returned according to above-mentioned http request, is provided with software in the webpage Pull control;
By the software pull control receive software pull instruction, according to the software pull instruction call and open scan it is soft Part one;
Step S406: scanning software above-mentioned first character string of a pair or above-mentioned graphic code are decoded, and will be decoded Information is sent to server and is handled;
Step S407: server obtains the corresponding content of graphic code, carries out subsequent processing.
It is evidenced from the above discussion that graphic code recognition methods of the present invention, automatically correctly identifies graphic code, identification is improved Speed reduces the cost of manpower, time etc., is suitble to practical application.
Figure code recognition device in one embodiment, as shown in Figure 5, comprising:
Command reception module, for receiving scan instruction;
Graphic code scan module, for carrying out parsing to the graphic code and obtaining according to the scan instruction scanning figure shape code Obtain the first character string corresponding with the graphic code;
Availability deciding module is used for and checks the validity of first character string, and the graphic code passes through will be original Content carries out obtaining first character string on the second string-concatenation to default URL obtained after data processing and according to institute The first character string is stated to convert to obtain;
Decoder module, for being decoded to first character string when first character string is effective, and will decoding Information afterwards is sent to server and is handled;
Processing module, for being sent out to the server according to first character string when first character string is invalid Http request is sent, and receives the webpage that the server is returned according to the http request, software drawing is provided in the webpage Control is taken, control is pulled by the software receives software and pull instruction, instruction calling is pulled according to the software and is opened pair The second graph code scanning software answered is decoded first character string or the graphic code.
As shown in figure 5, a preferred embodiment of each module connection relationship of the present apparatus are as follows: command reception module, figure Code scan module and availability deciding module are successively linked in sequence, and the output end of availability deciding module is separately connected decoder module With the input terminal of processing module.
Command reception module receives scan instruction first;Then graphic code scan module is according to scan instruction scanning patter Code carries out parsing to graphic code and obtains the first character string corresponding with graphic code;The first character string of availability deciding module check Validity;Decoder module is decoded the first character string when availability deciding module determines that the first character string is effective, and Server is sent by decoded information to handle;Processing module determines that the first character string is invalid in availability deciding module When, http request is sent to server according to the first character string, and receive the webpage that server is returned according to http request, webpage In be provided with software and pull control, control pulled by software receive software and pull instruction, instruction calling is pulled simultaneously according to software Corresponding second graph code scanning software is opened to be decoded the first character string or graphic code.
It is evidenced from the above discussion that figure code recognition device of the present invention, without finding corresponding graphic code scanning software manually It identifies graphic code, automatically graphic code is correctly identified, the costs such as use manpower and material resources sparingly, and is suitble to application.
As one embodiment, it is also provided with downloading control in the webpage, is received by the downloading control soft Part download instruction instructs according to the software download and downloads and open corresponding second graph code scanning software to first word Symbol string or the graphic code are decoded, and are quickly identified two dimensional code using different controls according to different situations, are met more Kind use demand, is suitble to application.
As one embodiment, the availability deciding module checks institute according to the URL information in first character string The validity of the first character string is stated, quickly determines whether character string is effective, and quickening two dimensional code recognition efficiency meets reality.
As one embodiment, the graphic code is two dimensional code, and two dimensional code utilizes chequered with black and white graphic recording data symbols Number information, application is very extensive, and value is high.
Graphic code generating means in one embodiment, as shown in Figure 6, comprising:
Module is obtained, for obtaining original contents;
Data processing module is converted into the second character string for carrying out data processing to the original contents;
Splicing module, for the first character string will to be obtained on second string-concatenation to default URL;
Generation module, for according to the first text string generation graphic code.
It is evidenced from the above discussion that original contents are carried out the character string after data processing by graphic code generating means of the present invention It is spliced on default URL and generates graphic code, when the A type figure generated using the identification of Type B graphic code scanning software according to above-mentioned apparatus When shape code, network address intermediate page related with default URL can be shown, A type graphic code note is correctly obtained according to the intermediate page The information of record is suitble to practical application.
As one embodiment, the data processing module may include:
URL coding unit carries out data processing to the original contents using URL coding mode and is converted into the second character String, it is assumed that original contents are the first and second the third, are encoded to %E7%94%B2%E4%B9%99%E4%B8%99 using URL, In content %E7%94%B2%E4%B9%99%E4%B8%99 direct splicing to default URL after coding, shorten subsequent The time is handled, there is very high application value;
Or
Character string maps unit carries out data processing to the original contents using character string maps mode and is converted into second Character string, it is assumed that original contents are the first and second the third, represent the first and second the third with A using character string maps mode, the content A after mapping is spelled It is connected on default URL, simple, processing quickly, saves the time, is suitble to application.
The description of specific distinct unless the context otherwise, the present invention in element and component, the shape that quantity both can be single Formula exists, and form that can also be multiple exists, and the present invention is defined not to this.Although step in the present invention with label into It has gone arrangement, but is not used to limit the precedence of step, unless expressly stated the order of step or holding for certain step Based on row needs other steps, otherwise the relative rank of step is adjustable.It is appreciated that used herein Term "and/or" one of is related to and covers associated listed item or one or more of any and all possible groups It closes.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The embodiment of the invention also provides a kind of part-structure block diagram of terminal device based on the present invention program, such as Fig. 7 Shown, for ease of description, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, please join According to present invention method part.The terminal can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, Taking the terminal as an example:
Fig. 7 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 7, mobile phone includes: the components such as memory 710, input unit 720, display unit 730, processor 740 and power supply 750.Ability Field technique personnel are appreciated that handset structure shown in Fig. 7 does not constitute the restriction to mobile phone, may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 7 to mobile phone:
Memory 710 can be used for storing software program and module, and processor 740 is stored in memory 710 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 710 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 710 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part, processor 740 is stored in the software program and module of memory 710 by operation in embodiments of the present invention, thus right Graphic code is identified.Memory 710 can mainly include storing program area and storage data area, and storing program area can store phase The program answered, storage data area can store graphic code and graphic code recognition result to be identified.
Input unit 720 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 720 may include that touch panel 721 and other inputs are set Standby 722.Touch panel 721, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 721 or near touch panel 721), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 721 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 740, and can receive order that processor 740 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 721.In addition to touch panel 721, input Unit 720 can also include other input equipments 722.Specifically, other input equipments 722 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 730 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 730 may include display panel 731, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 731.Further, touch panel 721 can cover display panel 731, when touch panel 721 detect it is on it or attached After close touch operation, processor 740 is sent to determine the type of touch event, is followed by subsequent processing device 740 according to touch event Type corresponding visual output is provided on display panel 731.Although in Fig. 7, touch panel 721 and display panel 731 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 721 and display panel 731 are integrated and that realizes mobile phone output and input function.
Processor 740 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 710, and call and be stored in memory 710 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 740 can wrap Include one or more processing units;Preferably, processor 740 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 740, handle in embodiments of the present invention Device 740 can use the various pieces of various interfaces and connection whole mobile phone, be stored in memory by running or executing Software program and/or module in 710, and the data being stored in memory 710 are called, graphic code is identified, from And integral monitoring is carried out to mobile phone.
Mobile phone further includes the power supply 750 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 740 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (14)

1. a kind of graphic code recognition methods, which comprises the following steps:
Scan instruction is received, according to the scan instruction scanning figure shape code,
Parsing is carried out to the graphic code and obtains the first character string corresponding with the graphic code, and according to first character string In URL information check the validity of first character string, the graphic code is by will be after original contents carry out data processing First character string is obtained on obtained the second string-concatenation to default URL and is converted according to first character string It arrives;The URL information according in first character string checks that the validity of first character string includes: according to described URL information in one character string checks whether first character string belongs to the first graphic code of graphic code described in Current Scan and sweep Retouch the valid data format of software;
If first character string is effective, first character string is decoded, and send service for decoded information Device is handled;
If first character string is invalid, http request, the http are sent to the server according to first character string Request carries first character string;
Receive it is that the server is returned according to the http request, using first character string as the webpage of address, the net Software, which is provided with, in page pulls control;
Control reception software is pulled by the software and pulls instruction, and instruction calling is pulled according to the software and is opened corresponding Second graph code scanning software is decoded first character string or the graphic code.
2. graphic code recognition methods according to claim 1, which is characterized in that be additionally provided with downloading control in the webpage Part receives software download instruction by the downloading control, is instructed according to the software download and download and open corresponding second Graphic code scanning software is decoded first character string or the graphic code.
3. graphic code recognition methods according to claim 1, which is characterized in that according to the URL in first character string Information checks whether first character string belongs to the significant figure of the first graphic code scanning software of graphic code described in Current Scan According to format, comprising:
When the URL information in first character string is corresponding with the first graphic code scanning software of graphic code described in Current Scan When default URL information is consistent, determine first character string belong to graphic code described in Current Scan the scanning of the first graphic code it is soft The valid data format of part;
When the URL information in first character string is corresponding with the first graphic code scanning software of graphic code described in Current Scan When default URL information is inconsistent, determine that first character string is not belonging to the first graphic code of graphic code described in Current Scan and sweeps Retouch the valid data format of software.
4. graphic code recognition methods according to claim 1 or 2, which is characterized in that the graphic code is two dimensional code.
5. a kind of figure code generating method, which comprises the following steps:
Obtain original contents;
Data processing is carried out to the original contents and is converted into the second character string;
The first character string will be obtained on second string-concatenation to default URL;
According to the first text string generation graphic code;First character string is used to scan institute when the first graphic code scanning software Graphic code is stated, when carrying out parsing acquisition first character string corresponding with the graphic code to the graphic code, according to described URL information in first character string checks whether first character string belongs to first figure of graphic code described in Current Scan The valid data format of shape code scanning software;When first character string is not belonging to the effective of the first graphic code scanning software When data format, first character string is sent to server by the first graphic code scanning software by http request, with Obtain the server according to the http request return using first character string as address, be provided with software and pull control The webpage of part, the software pull control for receive software pull instruction, according to the software pull instruction calling and open Corresponding second graph code scanning software is decoded first character string or the graphic code.
6. figure code generating method according to claim 5, which is characterized in that carry out data processing to the original contents The step of being converted into the second character string include:
Data processing is carried out to the original contents using URL coding mode and is converted into the second character string;
Or
Data processing is carried out to the original contents using character string maps mode and is converted into the second character string.
7. a kind of figure code recognition device characterized by comprising
Command reception module, for receiving scan instruction;
Graphic code scan module, for according to the scan instruction scanning figure shape code, to the graphic code carry out parsing obtain with Corresponding first character string of the graphic code;
Availability deciding module, for checking the effective of first character string according to the URL information in first character string Property, the graphic code is by obtain on the second string-concatenation to default URL obtained after data processing by original contents First character string simultaneously converts to obtain according to first character string;The URL information according in first character string The validity for checking first character string includes: to check first character according to the URL information in first character string Whether string belongs to the valid data format of the first graphic code scanning software of graphic code described in Current Scan;
Decoder module, for being decoded to first character string, and will be decoded when first character string is effective Information is sent to server and is handled;
Processing module, for being sent to the server according to first character string when first character string is invalid Http request, the http request carry first character string;And it receives the server and is returned according to the http request Return, using first character string as the webpage of address, be provided with software in the webpage and pull control, drawn by the software It takes control to receive software and pulls instruction, instruction calling is pulled according to the software and open corresponding second graph code scanning software First character string or the graphic code are decoded.
8. figure code recognition device according to claim 7, which is characterized in that be additionally provided with downloading control in the webpage Part receives software download instruction by the downloading control, is instructed according to the software download and download and open corresponding second Graphic code scanning software is decoded first character string or the graphic code.
9. figure code recognition device according to claim 7, which is characterized in that the availability deciding module is also used to:
When the URL information in first character string is corresponding with the first graphic code scanning software of graphic code described in Current Scan When default URL information is consistent, determine first character string belong to graphic code described in Current Scan the scanning of the first graphic code it is soft The valid data format of part;
When the URL information in first character string is corresponding with the first graphic code scanning software of graphic code described in Current Scan When default URL information is inconsistent, determine that first character string is not belonging to the first graphic code of graphic code described in Current Scan and sweeps Retouch the valid data format of software.
10. figure code recognition device according to claim 7 or 8, which is characterized in that the graphic code is two dimensional code.
11. a kind of graphic code generating means characterized by comprising
Module is obtained, for obtaining original contents;
Data processing module is converted into the second character string for carrying out data processing to the original contents;
Splicing module, for the first character string will to be obtained on second string-concatenation to default URL;
Generation module, for according to the first text string generation graphic code;First character string is used for when the first graphic code Scanning software scans the graphic code, carries out parsing to the graphic code and obtains first character corresponding with the graphic code When string, check whether first character string belongs to figure described in Current Scan according to the URL information in first character string The valid data format of the first graphic code scanning software of code;When first character string is not belonging to first graphic code When the valid data format of scanning software, first character string is sent out by http request by the first graphic code scanning software Send to server, using obtain the server according to the http request return using first character string as address, set It is equipped with the webpage that software pulls control, the software pulls control and pulls instruction for receiving software, pulls according to the software Instruction calls and opens corresponding second graph code scanning software and is decoded to first character string or the graphic code.
12. graphic code generating means according to claim 11, which is characterized in that the data processing module includes:
URL coding unit carries out data processing to the original contents using URL coding mode and is converted into the second character string;
Or
Character string maps unit carries out data processing to the original contents using character string maps mode and is converted into the second character String.
13. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201410339126.1A 2014-07-16 2014-07-16 Graphic code recognition methods and device, figure code generating method and device Active CN105279466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410339126.1A CN105279466B (en) 2014-07-16 2014-07-16 Graphic code recognition methods and device, figure code generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410339126.1A CN105279466B (en) 2014-07-16 2014-07-16 Graphic code recognition methods and device, figure code generating method and device

Publications (2)

Publication Number Publication Date
CN105279466A CN105279466A (en) 2016-01-27
CN105279466B true CN105279466B (en) 2019-08-23

Family

ID=55148453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410339126.1A Active CN105279466B (en) 2014-07-16 2014-07-16 Graphic code recognition methods and device, figure code generating method and device

Country Status (1)

Country Link
CN (1) CN105279466B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345597A (en) * 2017-01-22 2018-07-31 阿里巴巴集团控股有限公司 Generate graphic code, page info access processing method and device
CN109214480B (en) * 2018-08-31 2022-11-08 拉卡拉支付股份有限公司 Information processing method, information processing device, electronic equipment and computer readable storage medium
CN112488270A (en) * 2020-12-15 2021-03-12 青岛海尔科技有限公司 Two-dimensional code generation method and device
CN112800803B (en) * 2021-04-09 2021-07-30 腾讯科技(深圳)有限公司 Graphic code identification method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556618A (en) * 2009-05-07 2009-10-14 中兴通讯股份有限公司 Streaming media playing method and terminal thereof
CN101702177A (en) * 2009-11-13 2010-05-05 浪潮通信信息系统有限公司 Method for searching peripheral shops selling particular commodity based on two-dimension code
CN201946008U (en) * 2010-06-01 2011-08-24 福建新大陆电脑股份有限公司 Matrix two-dimensional bar code decoding chip
CN103119593A (en) * 2010-08-09 2013-05-22 Sk普兰尼特有限公司 Integrated image search system and a service method therewith
CN103488528A (en) * 2013-09-05 2014-01-01 优视科技有限公司 QR code processing method and device based on mobile terminals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7601121B2 (en) * 2004-07-12 2009-10-13 Siemens Medical Solutions Usa, Inc. Volume rendering quality adaptations for ultrasound imaging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556618A (en) * 2009-05-07 2009-10-14 中兴通讯股份有限公司 Streaming media playing method and terminal thereof
CN101702177A (en) * 2009-11-13 2010-05-05 浪潮通信信息系统有限公司 Method for searching peripheral shops selling particular commodity based on two-dimension code
CN201946008U (en) * 2010-06-01 2011-08-24 福建新大陆电脑股份有限公司 Matrix two-dimensional bar code decoding chip
CN103119593A (en) * 2010-08-09 2013-05-22 Sk普兰尼特有限公司 Integrated image search system and a service method therewith
CN103488528A (en) * 2013-09-05 2014-01-01 优视科技有限公司 QR code processing method and device based on mobile terminals

Also Published As

Publication number Publication date
CN105279466A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN103702297B (en) Short message enhancement, apparatus and system
KR101770529B1 (en) Two-dimensional code recognition method and apparatus
CN106126015B (en) A kind of application program launching control method and terminal
CN104899672B (en) Item transfer device, system and method
KR102178892B1 (en) Method for providing an information on the electronic device and electronic device thereof
CN104852885B (en) Method, device and system for verifying verification code
CN110852332B (en) Training sample generation method and device, storage medium and electronic equipment
CN109445894A (en) A kind of screenshot method and electronic equipment
CN103189864A (en) Methods and apparatuses for determining shared friends in images or videos
CN103282869A (en) Finger identification on a touchscreen
CN103488528A (en) QR code processing method and device based on mobile terminals
CN101960485A (en) Multi-context graphics processing
CN105279466B (en) Graphic code recognition methods and device, figure code generating method and device
CN108833661B (en) Information display method and mobile terminal
CN104616143B (en) Virtual tickets transfer method and device in social networking application
US20160085424A1 (en) Method and apparatus for inputting object in electronic device
WO2022143336A1 (en) Graphic code recognition method and apparatus, and electronic device
CN104301199A (en) Information processing method, device and system
CN108958576A (en) content identification method, device and mobile terminal
CN110378107A (en) A kind of method and relevant apparatus of installation kit detection
CN109951889A (en) A kind of Internet of Things matches network method and mobile terminal
CN107948278A (en) A kind of information transferring method, terminal device and system
US9396211B2 (en) Method and device for providing information using barcode
CN104966192B (en) Data processing method and device
CN104952026B (en) The method and device of image procossing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant