CN106156675A - A kind of method and device obtaining 2 D code information - Google Patents
A kind of method and device obtaining 2 D code information Download PDFInfo
- Publication number
- CN106156675A CN106156675A CN201510164220.2A CN201510164220A CN106156675A CN 106156675 A CN106156675 A CN 106156675A CN 201510164220 A CN201510164220 A CN 201510164220A CN 106156675 A CN106156675 A CN 106156675A
- Authority
- CN
- China
- Prior art keywords
- code
- quick response
- information
- response code
- display interface
- 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.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention is about a kind of method and device obtaining 2 D code information, including: when receiving the predetermined registration operation to described terminal, the display interface in described terminal generates the image acquisition frame of preset shape;Obtain the target image being positioned at described image acquisition frame;Quick Response Code is extracted from described target image;It is identified obtaining 2 D code information to described Quick Response Code.By the method for the present invention, terminal can obtain the 2 D code information of the Quick Response Code being positioned on the display interface of self.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and device obtaining 2 D code information.
Background technology
Along with developing rapidly of communication technology, Quick Response Code application in the field of communications is more and more extensive.Wherein, Quick Response Code
Being the chequered with black and white geometric figure utilizing specific rule to be distributed on two dimensional surface, it has the advantages that information storage is big.
At present, when terminal needs to obtain the 2 D code information in the Quick Response Code being in exterior of terminal, such as, need to obtain position
The 2 D code information in Quick Response Code on wall or be positioned at the 2 D code information in the Quick Response Code on propagating poster, such as Fig. 1
Shown in, need the photographic head carried by terminal to scan this Quick Response Code, then this Quick Response Code of scanning is identified, from
And the 2 D code information in this Quick Response Code can be obtained.
But, when terminal needs to obtain the 2 D code information in the Quick Response Code of display on the display interface of self, then terminal
Just cannot be photographed the display interface of self by the photographic head that carries, the most just cannot scan this Quick Response Code, and then just
The 2 D code information in this Quick Response Code cannot be obtained.
Summary of the invention
For overcoming problem present in correlation technique, the present invention provides a kind of method and device obtaining 2 D code information.
First aspect according to embodiments of the present invention, it is provided that a kind of method obtaining 2 D code information, is applied to terminal, institute
The method of stating includes:
When receiving the predetermined registration operation to described terminal, the display interface in described terminal generates the image of preset shape and adopts
Collection frame;Obtain the target image being positioned at described image acquisition frame;
Quick Response Code is extracted from described target image;
It is identified obtaining 2 D code information to described Quick Response Code.
Wherein, described predetermined registration operation includes: double click operation that the display interface in described terminal carries out double-clicking, at described end
End display interface on carry out lasting predetermined time period pressing operation or on the display interface of described terminal preset by
The trigger action of button.
Further, described method also includes:
Judge whether to receive the adjustment operation that the parameter information to described image acquisition frame is adjusted;Described parameter information
Size and described image acquisition frame position in described display interface including described image acquisition frame;
When receiving described adjustment operation, the parameter information of described image acquisition frame is adjusted;
When adjusting complete, perform the step that described acquisition is positioned at the target image of described image acquisition frame.
Wherein, described from described target image, extract Quick Response Code, including:
Obtain the gray value of each pixel in described target image;
Gray value according to each pixel, it is judged that whether include in described target image that at least three presets characteristic pattern;
When described target image includes that at least three presets characteristic pattern, determine by described in described target image
At least three presets the image-region that characteristic pattern surrounds;
Obtain and be positioned at the pixel of described image-region and form Quick Response Code.
Wherein, described it is identified obtaining 2 D code information to described Quick Response Code, including:
Described Quick Response Code is carried out parsing and obtains Quick Response Code coding;Described Quick Response Code coding includes multiple numeric data code;
In described Quick Response Code encodes, from the beginning of first numeric data code, successively every four figures is formed a numeric data code according to code
Group, obtains multiple data code groups;
Obtain the corresponding relation between preset data code character and sub-information;
The sub-information that each data code groups is corresponding is searched respectively in described corresponding relation;
According to each data code groups sequence of positions in described Quick Response Code encodes, by sub-information corresponding for each data code groups
It is combined, obtains the 2 D code information that described Quick Response Code coding is corresponding.
Further, described method also includes:
Judge whether described 2 D code information is web page interlinkage;
When described 2 D code information is web page interlinkage, obtain the content of pages that described web page interlinkage is corresponding;In described display
Described content of pages is shown on interface;
When described 2 D code information is not web page interlinkage, described display interface shows described 2 D code information.
Second aspect according to embodiments of the present invention, it is provided that a kind of device obtaining 2 D code information, described device includes:
Generation module, for when receiving the predetermined registration operation to described terminal, the display interface in described terminal generates pre-
If the image acquisition frame of shape;
First acquisition module, for obtaining the target image being positioned at described image acquisition frame;
Extraction module, for extracting Quick Response Code from described target image;
Identification module, for being identified obtaining 2 D code information to described Quick Response Code.
Wherein, described predetermined registration operation includes: double click operation that the display interface in described terminal carries out double-clicking, at described end
End display interface on carry out lasting predetermined time period pressing operation or on the display interface of described terminal preset by
The trigger action of button.
Further, described device also includes:
First judge module, for judging whether to receive the adjustment that the parameter information to described image acquisition frame is adjusted
Operation;Described parameter information includes that the size of described image acquisition frame and described image acquisition frame are in described display interface
Position;
Adjusting module, for when receiving described adjustment operation, being adjusted the parameter information of described image acquisition frame;
Described first acquisition module is additionally operable to, when adjusting complete, perform described acquisition and be positioned at the mesh of described image acquisition frame
The step of logo image.
Wherein, described extraction module includes:
First acquiring unit, for obtaining the gray value of each pixel in described target image;
Judging unit, for the gray value according to each pixel, it is judged that whether include at least three in described target image
Preset characteristic pattern;
Determine unit, for when described target image includes that at least three presets characteristic pattern, at described target image
In determine and preset, by described at least three, the image-region that characteristic pattern surrounds;
Second acquisition unit, is positioned at the pixel of described image-region for obtaining and forms Quick Response Code.
Wherein, described identification module includes:
Resolution unit, obtains Quick Response Code coding for described Quick Response Code carries out parsing;Described Quick Response Code coding includes multiple
Numeric data code;
Component units, in encoding at described Quick Response Code, from the beginning of first numeric data code, successively by every four figures according to code
Form a data code groups, obtain multiple data code groups;
3rd acquiring unit, for obtaining the corresponding relation between preset data code character and sub-information;
Search unit, for searching the sub-information that each data code groups is corresponding in described corresponding relation respectively;
Assembled unit, for according to each data code groups described Quick Response Code encode in sequence of positions, by each numeric data code
The sub-information of group correspondence is combined, and obtains the 2 D code information that described Quick Response Code coding is corresponding.
Further, described device also includes:
Second judge module, is used for judging whether described 2 D code information is web page interlinkage;
Second acquisition module, for when described 2 D code information is web page interlinkage, obtains the page that described web page interlinkage is corresponding
Face content;Described display interface shows described content of pages;
Display module, for when described 2 D code information is not web page interlinkage, shows described two on described display interface
Dimension code information.
The technical scheme that embodiments of the invention provide can include following beneficial effect: in the present invention, right when receiving
During the predetermined registration operation of described terminal, the display interface in described terminal generates the image acquisition frame of preset shape;Obtain described
Target image in image acquisition frame;Quick Response Code is extracted from described target image;Described Quick Response Code is identified
To 2 D code information.By the method for the embodiment of the present invention, terminal can obtain the two dimension being positioned on the display interface of self
The 2 D code information of code.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not
Limit the present invention.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the present invention
Example, and for explaining the principle of the present invention together with description.
Fig. 1 is according to a kind of scene schematic diagram shown in prior art.
Fig. 2 is the flow chart according to a kind of method obtaining 2 D code information shown in an exemplary embodiment.
Fig. 3 is according to a kind of scene schematic diagram shown in an exemplary embodiment.
Fig. 4 is according to a kind of scene schematic diagram shown in an exemplary embodiment.
Fig. 5 is according to a kind of Quick Response Code schematic diagram shown in an exemplary embodiment.
Fig. 6 is the flow chart according to a kind of method obtaining 2 D code information shown in an exemplary embodiment.
Fig. 7 is the block diagram according to a kind of device obtaining 2 D code information shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to attached
During figure, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary is implemented
Embodiment described in example does not represent all embodiments consistent with the present invention.On the contrary, they be only with such as
The example of the apparatus and method that some aspects that described in detail in appended claims, the present invention are consistent.
Fig. 2 is the flow chart according to a kind of method obtaining 2 D code information shown in an exemplary embodiment, such as Fig. 2 institute
Showing, the method, in terminal, comprises the following steps.
In step S101, when receiving the predetermined registration operation to terminal, the display interface in terminal generates preset shape
Image acquisition frame.
Wherein, predetermined registration operation includes: double click operation that the display interface in terminal carries out double-clicking, at the display interface of terminal
On carry out the pressing operation of lasting predetermined time period or the trigger action etc. to the pre-set button on the display interface of terminal,
Certainly predetermined registration operation can also operate for other, and this is not limited by the present invention.
Such as, when user utilizes the browser on mobile phone to browse webpage, if showing a Quick Response Code on webpage,
And user wants to obtain the 2 D code information in this Quick Response Code, then user can double-click on the display interface on mobile phone
Pre-set button in operation or triggering display interface, mobile phone will generate the image acquisition frame of preset shape at its display interface,
Then step S102 is performed.
Preset shape can be rectangle, circle or hexagon etc., and this is not limited by the present invention.
Wherein it is possible to generate the image acquisition frame 1 of a rectangle as shown in Figure 3 on the display interface of terminal.
Wherein, the position in display interface of image acquisition frame may be identical with Quick Response Code position in display interface,
It is likely to different from Quick Response Code position in display interface, when the position in display interface and the two dimension of image acquisition frame
During code position difference in display interface, user can gather frame and believe with the parameter to image acquisition frame by manual dragged image
Breath is adjusted, and Quick Response Code may be located in image acquisition frame.This parameter information include the shape of image acquisition frame and its
Position in display interface;
Therefore, in embodiments of the present invention, further, terminal also needs to perform to operate as follows, including:
11), judge whether to receive the adjustment operation that the parameter information to image acquisition frame is adjusted.
Wherein, timing can be started when generating image acquisition frame, and judge whether to receive the parameter to image acquisition frame
The adjustment operation that information is adjusted, when receiving adjustment operation before timing duration reaches predetermined time period threshold value,
Perform 12), if also do not receive adjustment operation when timing duration reaches predetermined time period threshold value, it is determined that Yong Huwu
The parameter information of image acquisition frame need to be adjusted, then perform step S102.
Wherein, user can utilize finger to grow by image acquisition frame on display interface, and dragged image gathers frame to Quick Response Code
Place, so that Quick Response Code is fully located in image acquisition frame.
Or, when image acquisition frame is rectangle frame, user can utilize arbitrary right angle that finger pins in rectangle frame and drag
This right angle dynamic, to change position in image acquisition frame, this right angle, meanwhile, the length of side on two limits being positioned on this right angle
And position changes along with the change in location at this right angle, the size of image acquisition frame so can be changed.
Such as, owing to the position in display interface of the rectangle frame in Fig. 3 is different from Quick Response Code position in display interface,
That is, Quick Response Code is not fully located in rectangle frame, and user can utilize finger to pin to be positioned at the upper left right angle of rectangle frame also
Drag this right angle to upper left side, to change the position at this right angle and to change the size of rectangle frame, thus obtain as shown in Figure 4
Rectangle frame 2, in the diagram, Quick Response Code is fully located in rectangle frame 2.
When receiving adjustment operation, 12), the parameter information of this image acquisition frame is adjusted.
The parameter information of image acquisition frame is adjusted by the operation according to user, and after user adjusts, user can be to
Terminal is submitted to be used for indicating and is adjusted complete predetermined registration operation, and predetermined registration operation can be that double-click image gathers frame etc., the present invention couple
Secondary it is not limited, when terminal receives the predetermined registration operation that the double-click image of user gathers frame, determines that user adjusts complete,
Perform step S102.
In step s 102, acquisition is positioned at the target image of this image acquisition frame.
Wherein, terminal knows each pixel that image acquisition frame includes two-dimensional coordinate on display interface, and display
The each pixel on interface two-dimensional coordinate on display interface, therefore, terminal according to image acquisition frame include each
Pixel two-dimensional coordinate on display interface and each pixel on the display interface two dimension seat on display interface
Mark, can directly obtain the pixel being positioned at this image acquisition frame, and form target image.
In step s 103, from this target image, Quick Response Code is extracted.
Specifically, this step can be realized by following flow process, including:
21), the gray value of each pixel in acquisition target image.
22), according to the gray value of each pixel, it is judged that whether target image including, at least three presets characteristic pattern.
Default characteristic pattern is the characteristic pattern of Quick Response Code, in a Quick Response Code, wherein has three corners in four corners
Including being similar to square pattern A of " returning " word, as it is shown in figure 5, square pattern A of this similar " returning " word is just
It it is the default characteristic pattern of Quick Response Code.Wherein, each default characteristic pattern is made up of multiple pixels.
Wherein, utilize image recognition technology just can identify in target image whether to include presetting characteristic pattern.
23), when target image includes that at least three presets characteristic pattern, determine in the target image by least three
The image-region that individual default characteristic pattern surrounds.
For the arbitrary default characteristic pattern in three default characteristic patterns, obtain apart from other in this default characteristic pattern
The farthest pixel of two default characteristic patterns is as target pixel points, for other two default characteristic patterns, all
Perform aforesaid operations, so can respectively obtain the target pixel points in other two default characteristic patterns;Finally give three
Individual target pixel points.
Obtain the two-dimensional coordinate in the target image of each target pixel points in three target pixel points, obtain six coordinates
Value, including three abscissa value and three ordinate values, has two abscissa value identical in three abscissa value,
There are two ordinate values identical in three ordinate values.
From three abscissa value, remove two identical abscissa value, remain an abscissa value, from three ordinate values
Two identical ordinate values of middle removal, remain an ordinate value, by remaining abscissa value and remaining ordinate value
Form a two-dimensional coordinate, obtain the target pixel points of the two-dimensional coordinate that coordinate is this composition in the target image, obtain by
The image-region that four target pixel points obtained surround, and preset, as by least three, the image district that characteristic pattern surrounds
Territory.
24), acquisition is positioned at the pixel of image-region and forms Quick Response Code.
Obtain the pixel being positioned at the image-region surrounded by these four target pixel points, the pixel composition that will get
Two dimensional image, and as Quick Response Code.
In step S104, it is identified obtaining 2 D code information to this Quick Response Code.
Wherein, 2 D code information includes the information such as webpage link information, Word message, pictorial information and digital information.
Further, when obtaining 2 D code information, it is judged that whether this 2 D code information is web page interlinkage;When this Quick Response Code
When information is web page interlinkage, obtain the content of pages that web page interlinkage is corresponding;Then on display interface, show this content of pages;
When 2 D code information is not web page interlinkage, on display interface, directly show this 2 D code information.
Wherein, the operation obtaining content of pages corresponding to web page interlinkage can be: terminal can send carries this web page interlinkage
Acquisition ask to web page server;Web page server receives this acquisition request, extracts this webpage from this acquisition is asked
Link, obtains the content of pages that this locally stored web page interlinkage is corresponding, and transmission is carried the acquisition of this content of pages and responded to
Terminal;Terminal receives the acquisition response that server sends, and extracts this content of pages from this acquisition responds.
Wherein, web page interlinkage can be the URL (Uniform Resource Locator, URL) of webpage
Deng.
In the embodiment shown in Fig. 2 of the present invention, when receiving the predetermined registration operation to described terminal, in described terminal
Display interface generates the image acquisition frame of preset shape;Obtain the target image in described image acquisition frame;From described target
Image extracts Quick Response Code;It is identified obtaining 2 D code information to described Quick Response Code.By the side of the embodiment of the present invention
Method, terminal can obtain the 2 D code information of the Quick Response Code being positioned on the display interface of self.
In an alternative embodiment of the invention, seeing Fig. 6, step S104 includes:
In step s 201, Quick Response Code is carried out parsing and obtains Quick Response Code coding.
Wherein, Quick Response Code coding includes multiple numeric data code.
This step is specifically as follows: the gray value of each pixel in acquisition Quick Response Code, by gray value more than or equal to 127
The grayvalue transition of pixel be 1, be 0 by the grayvalue transition of the gray value pixel less than 127, by Quick Response Code
Each pixel conversion after gray value as numeric data code, by all numeric data codes of obtaining according to picture corresponding to numeric data code
Vegetarian refreshments position in Quick Response Code is ranked up, and obtains Quick Response Code coding.
In step S202, in Quick Response Code encodes, from the beginning of first numeric data code, successively by every four figures according to code character
Become a data code groups, obtain multiple data code groups.
For example, it is assumed that the Quick Response Code obtained is encoded to: 0,100 0,100 0,100 1,001 1,011 1,011 1,011 1,001 1,111 1101
1100, then from the beginning of first numeric data code 0, every four figures is formed a data code groups according to code, i.e. by four figures evidence
Code 0,100 first data code groups of composition, forms second by the four figures after first data code groups according to code 0100
Data code groups, forms the 3rd data code groups by the four figures after second data code groups according to code 0100, will be the 3rd
Four figures after individual data code groups forms fourth data code character according to code 1001, by four after fourth data code character
Bit data code 1011 forms the 5th data code groups, is formed according to code 1011 by the four figures after the 5th data code groups
6th data code groups, forms the 7th data code groups by the four figures after the 6th data code groups according to code 1011, will
Four figures after the 7th data code groups forms the 8th data code groups according to code 1001, will the 8th data code groups it
After four figures form the 9th data code groups according to code 1111, by the four figures after the 9th data code groups according to code 1101
Form the tenth data code groups, the four figures after the tenth data code groups is formed the 11st numeric data code according to code 1100
Group.
In step S203, obtain the corresponding relation between preset data code character and sub-information.
Such as, wherein, technical staff in advance terminal local store data code groups as shown in table 1 below and sub-information it
Between corresponding relation.
Table 1
Data code groups | Sub-information |
1011 | a |
1111 | c |
1101 | o |
0100 | w |
…… | …… |
1100 | m |
1001 | . |
…… | …… |
In step S204, above-mentioned corresponding relation is searched sub-information that each data code groups is corresponding respectively.
In this step, corresponding relation as shown in table 1 can be obtained in this locality, successively in above-mentioned corresponding relation respectively
Search data code groups 0100,0100,0100,1001,1011,1011,1011,1001,1111,1101
With the sub-information of 1100 correspondences, obtain sub-information " w ", " w ", " w ", ". ", " a ", " a ", " a ", ". ", " c ",
" o " and " m ".
In step S205, according to each data code groups position in Quick Response Code encodes, each data code groups is corresponding
Sub-information be combined in order, obtain the 2 D code information that Quick Response Code coding is corresponding.
Such as, by sub-information " w ", " w ", " w ", ". ", " a ", " a ", " a ", ". ", " c ", " o " and " m "
It is combined according to the data code groups of its correspondence order of position in Quick Response Code encodes, obtains 2 D code information
“www.aaa.com”。
Further, owing to " www.aaa.com " is web page interlinkage, therefore send and carry web page interlinkage " www.aaa.com "
Acquisition ask to web page server;Receive web page server returns, web page interlinkage according to this acquisition request
The content of pages that " www.aaa.com " is corresponding, shows this content of pages on display interface.
Fig. 7 is according to a kind of device block diagram obtaining 2 D code information shown in an exemplary embodiment.With reference to Fig. 7, should
Device includes:
Generation module 11, for when receiving the predetermined registration operation to described terminal, the display interface in described terminal generates
The image acquisition frame of preset shape;
First acquisition module 12, for obtaining the target image being positioned at described image acquisition frame;
Extraction module 13, for extracting Quick Response Code from described target image;
Identification module 14, for being identified obtaining 2 D code information to described Quick Response Code.
In the embodiment shown in Fig. 7 of the present invention, when receiving the predetermined registration operation to described terminal, in described terminal
Display interface generates the image acquisition frame of preset shape;Obtain the target image in described image acquisition frame;From described target
Image extracts Quick Response Code;It is identified obtaining 2 D code information to described Quick Response Code.By the side of the embodiment of the present invention
Method, terminal can obtain the 2 D code information of the Quick Response Code being positioned on the display interface of self.
Wherein, described predetermined registration operation includes: double click operation that the display interface in described terminal carries out double-clicking, at described end
End display interface on carry out lasting predetermined time period pressing operation or on the display interface of described terminal preset by
The trigger action of button.
Further, described device also includes:
First judge module, for judging whether to receive the adjustment that the parameter information to described image acquisition frame is adjusted
Operation;Described parameter information includes that the size of described image acquisition frame and described image acquisition frame are in described display interface
Position;
Adjusting module, for when receiving described adjustment operation, being adjusted the parameter information of described image acquisition frame;
Described first acquisition module is additionally operable to, when adjusting complete, perform described acquisition and be positioned at the mesh of described image acquisition frame
The step of logo image.
Wherein, described extraction module 13 includes:
First acquiring unit, for obtaining the gray value of each pixel in described target image;
Judging unit, for the gray value according to each pixel, it is judged that whether include at least three in described target image
Preset characteristic pattern;
Determine unit, for when described target image includes that at least three presets characteristic pattern, at described target image
In determine and preset, by described at least three, the image-region that characteristic pattern surrounds;
Second acquisition unit, is positioned at the pixel of described image-region for obtaining and forms Quick Response Code.
Wherein, described identification module 14 includes:
Resolution unit, obtains Quick Response Code coding for described Quick Response Code carries out parsing;Described Quick Response Code coding includes multiple
Numeric data code;
Component units, in encoding at described Quick Response Code, from the beginning of first numeric data code, successively by every four figures according to code
Form a data code groups, obtain multiple data code groups;
3rd acquiring unit, for obtaining the corresponding relation between preset data code character and sub-information;
Search unit, for searching the sub-information that each data code groups is corresponding in described corresponding relation respectively;
Assembled unit, for according to each data code groups described Quick Response Code encode in sequence of positions, by each numeric data code
The sub-information of group correspondence is combined, and obtains the 2 D code information that described Quick Response Code coding is corresponding.
Further, described device also includes:
Second judge module, is used for judging whether described 2 D code information is web page interlinkage;
Second acquisition module, for when described 2 D code information is web page interlinkage, obtains the page that described web page interlinkage is corresponding
Face content;Described display interface shows described content of pages;
Display module, for when described 2 D code information is not web page interlinkage, shows described two on described display interface
Dimension code information.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment is described in detail, explanation will be not set forth in detail herein.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other of the present invention
Embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes
Or adaptations follow the present invention general principle and include the present invention undocumented in the art known often
Know or conventional techniques means.Description and embodiments is considered only as exemplary, true scope and spirit of the invention by under
The claim in face is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and
Various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (12)
1. the method obtaining 2 D code information, is applied to terminal, it is characterised in that described method includes:
When receiving the predetermined registration operation to described terminal, the display interface in described terminal generates the image of preset shape and adopts
Collection frame;
Obtain the target image being positioned at described image acquisition frame;
Quick Response Code is extracted from described target image;
It is identified obtaining 2 D code information to described Quick Response Code.
Method the most according to claim 1, it is characterised in that described predetermined registration operation includes: showing in described terminal
Show the double click operation that interface carries out double-clicking, the pressing behaviour carrying out lasting predetermined time period on the display interface of described terminal
Work or the trigger action to the pre-set button on the display interface of described terminal.
Method the most according to claim 2, it is characterised in that described method also includes:
Judge whether to receive the adjustment operation that the parameter information to described image acquisition frame is adjusted;Described parameter information
Size and described image acquisition frame position in described display interface including described image acquisition frame;
When receiving described adjustment operation, the parameter information of described image acquisition frame is adjusted;
When adjusting complete, perform the step that described acquisition is positioned at the target image of described image acquisition frame.
4. according to the method described in any one of claim 1-3, it is characterised in that described extraction from described target image
Go out Quick Response Code, including:
Obtain the gray value of each pixel in described target image;
Gray value according to each pixel, it is judged that whether include in described target image that at least three presets characteristic pattern;
When described target image includes that at least three presets characteristic pattern, determine by described in described target image
At least three presets the image-region that characteristic pattern surrounds;
Obtain and be positioned at the pixel of described image-region and form Quick Response Code.
Method the most according to claim 1, it is characterised in that described be identified obtaining two dimension to described Quick Response Code
Code information, including:
Described Quick Response Code is carried out parsing and obtains Quick Response Code coding;Described Quick Response Code coding includes multiple numeric data code;
In described Quick Response Code encodes, from the beginning of first numeric data code, successively every four figures is formed a numeric data code according to code
Group, obtains multiple data code groups;
Obtain the corresponding relation between preset data code character and sub-information;
The sub-information that each data code groups is corresponding is searched respectively in described corresponding relation;
According to each data code groups sequence of positions in described Quick Response Code encodes, by sub-information corresponding for each data code groups
It is combined, obtains the 2 D code information that described Quick Response Code coding is corresponding.
Method the most according to claim 1, it is characterised in that described method also includes:
Judge whether described 2 D code information is web page interlinkage;
When described 2 D code information is web page interlinkage, obtain the content of pages that described web page interlinkage is corresponding;In described display
Described content of pages is shown on interface;
When described 2 D code information is not web page interlinkage, described display interface shows described 2 D code information.
7. the device obtaining 2 D code information, it is characterised in that described device includes:
Generation module, for when receiving the predetermined registration operation to described terminal, the display interface in described terminal generates pre-
If the image acquisition frame of shape;
First acquisition module, for obtaining the target image being positioned at described image acquisition frame;
Extraction module, for extracting Quick Response Code from described target image;
Identification module, for being identified obtaining 2 D code information to described Quick Response Code.
Device the most according to claim 7, it is characterised in that described predetermined registration operation includes: showing in described terminal
Show the double click operation that interface carries out double-clicking, the pressing behaviour carrying out lasting predetermined time period on the display interface of described terminal
Work or the trigger action to the pre-set button on the display interface of described terminal.
Device the most according to claim 8, it is characterised in that described device also includes:
First judge module, for judging whether to receive the adjustment that the parameter information to described image acquisition frame is adjusted
Operation;Described parameter information includes that the size of described image acquisition frame and described image acquisition frame are in described display interface
Position;
Adjusting module, for when receiving described adjustment operation, being adjusted the parameter information of described image acquisition frame;
Described first acquisition module is additionally operable to, when adjusting complete, perform described acquisition and be positioned at the mesh of described image acquisition frame
The step of logo image.
10. according to the device described in any one of claim 7-9, it is characterised in that described extraction module includes:
First acquiring unit, for obtaining the gray value of each pixel in described target image;
Judging unit, for the gray value according to each pixel, it is judged that whether include at least three in described target image
Preset characteristic pattern;
Determine unit, for when described target image includes that at least three presets characteristic pattern, at described target image
In determine and preset, by described at least three, the image-region that characteristic pattern surrounds;
Second acquisition unit, is positioned at the pixel of described image-region for obtaining and forms Quick Response Code.
11. devices according to claim 7, it is characterised in that described identification module includes:
Resolution unit, obtains Quick Response Code coding for described Quick Response Code carries out parsing;Described Quick Response Code coding includes multiple
Numeric data code;
Component units, in encoding at described Quick Response Code, from the beginning of first numeric data code, successively by every four figures according to code
Form a data code groups, obtain multiple data code groups;
3rd acquiring unit, for obtaining the corresponding relation between preset data code character and sub-information;
Search unit, for searching the sub-information that each data code groups is corresponding in described corresponding relation respectively;
Assembled unit, for according to each data code groups described Quick Response Code encode in sequence of positions, by each numeric data code
The sub-information of group correspondence is combined, and obtains the 2 D code information that described Quick Response Code coding is corresponding.
12. devices according to claim 7, it is characterised in that described device also includes:
Second judge module, is used for judging whether described 2 D code information is web page interlinkage;
Second acquisition module, for when described 2 D code information is web page interlinkage, obtains the page that described web page interlinkage is corresponding
Face content;Described display interface shows described content of pages;
Display module, for when described 2 D code information is not web page interlinkage, shows described two on described display interface
Dimension code information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510164220.2A CN106156675A (en) | 2015-04-09 | 2015-04-09 | A kind of method and device obtaining 2 D code information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510164220.2A CN106156675A (en) | 2015-04-09 | 2015-04-09 | A kind of method and device obtaining 2 D code information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106156675A true CN106156675A (en) | 2016-11-23 |
Family
ID=57335545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510164220.2A Pending CN106156675A (en) | 2015-04-09 | 2015-04-09 | A kind of method and device obtaining 2 D code information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106156675A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446579A (en) * | 2018-03-15 | 2018-08-24 | 维沃移动通信有限公司 | A kind of graphic code knows method for distinguishing and terminal |
CN108846663A (en) * | 2018-06-21 | 2018-11-20 | 维沃移动通信有限公司 | A kind of two dimensional code method of adjustment, device and mobile terminal |
CN109062648A (en) * | 2018-07-23 | 2018-12-21 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and storage medium |
CN109902684A (en) * | 2019-03-07 | 2019-06-18 | 苏州达家迎信息技术有限公司 | Information acquisition method and device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102034127A (en) * | 2009-09-28 | 2011-04-27 | 上海易悠通信息科技有限公司 | Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof |
CN102609544A (en) * | 2012-03-12 | 2012-07-25 | 腾讯科技(深圳)有限公司 | Method and device for obtaining information as well as mobile terminal |
CN103839027A (en) * | 2012-11-22 | 2014-06-04 | 腾讯科技(深圳)有限公司 | Picture analysis method and picture analysis device |
CN104123520A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Two-dimensional code scanning method and device |
-
2015
- 2015-04-09 CN CN201510164220.2A patent/CN106156675A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102034127A (en) * | 2009-09-28 | 2011-04-27 | 上海易悠通信息科技有限公司 | Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof |
CN102609544A (en) * | 2012-03-12 | 2012-07-25 | 腾讯科技(深圳)有限公司 | Method and device for obtaining information as well as mobile terminal |
CN103839027A (en) * | 2012-11-22 | 2014-06-04 | 腾讯科技(深圳)有限公司 | Picture analysis method and picture analysis device |
CN104123520A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Two-dimensional code scanning method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446579A (en) * | 2018-03-15 | 2018-08-24 | 维沃移动通信有限公司 | A kind of graphic code knows method for distinguishing and terminal |
CN108846663A (en) * | 2018-06-21 | 2018-11-20 | 维沃移动通信有限公司 | A kind of two dimensional code method of adjustment, device and mobile terminal |
CN109062648A (en) * | 2018-07-23 | 2018-12-21 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and storage medium |
CN109902684A (en) * | 2019-03-07 | 2019-06-18 | 苏州达家迎信息技术有限公司 | Information acquisition method and device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101880004B1 (en) | Method and apparatus for identifying television channel information | |
CN109784181B (en) | Picture watermark identification method, device, equipment and computer readable storage medium | |
WO2018133692A1 (en) | Method for achieving augmented reality, computer device and storage medium | |
CN101000623A (en) | Method for image identification search by mobile phone photographing and device using the method | |
CN106156675A (en) | A kind of method and device obtaining 2 D code information | |
CN104778491A (en) | Image code applied to information processing, as well as device and method for generating and analyzing image code | |
CN105631486A (en) | Method and device for recognizing images and characters | |
CN107689997B (en) | A kind of reading progress synchronous method and system, application service end and client | |
KR20210030247A (en) | Translucent image watermark detection | |
CN108829250A (en) | A kind of object interaction display method based on augmented reality AR | |
CN109977337A (en) | A kind of webpage design control methods, device, equipment and readable storage medium storing program for executing | |
CN107808009B (en) | Stamp platform-based two-dimensional and three-dimensional map linkage method | |
CN104580300B (en) | The method and system of figure and outdoor scene identification based on cloud operation | |
CN1700646A (en) | Utilizing a scannable URL (universal resource locator) | |
CN110415293B (en) | Interactive processing method, device, system and computer equipment | |
JP2015197851A (en) | Image processor, program for image processing and information management system | |
CN102289479A (en) | Method, device and equipment for determining image showing mode and showing image | |
CN105323141A (en) | Information transmission method and system based on image recognition and mobile terminal | |
KR20120079918A (en) | Learning services providing method and system | |
CN108848161B (en) | Network information processing method, device, equipment and computer readable storage medium | |
CN112541954B (en) | Method for intelligently producing poster according to graphic features | |
CN110414062B (en) | Method and device for acquiring design drawing and computer readable storage medium | |
CN108427935A (en) | Streetscape compares the generation method and device of image | |
CN104507058A (en) | Information transmission method, information transmission system and mobile terminal based on two-dimension code | |
CN108153756A (en) | A kind of sharing method of image information, device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1230317 Country of ref document: HK |
|
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |
|
RJ01 | Rejection of invention patent application after publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1230317 Country of ref document: HK |