Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is the part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of Quick Response Code control method, during terminal scanning target Quick Response Code, determine that terminal exists
Scan the attitude information during target Quick Response Code;Wherein, the target Quick Response Code is stored with the option letter of at least two options
Breath;According to scanning posture and the mapping relations of at least two option, targets option corresponding to the attitude information is determined;It is defeated
Go out content corresponding to the option information of the targets option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code,
Terminal exports its corresponding object content according to scanning posture, therefore, can strengthen the operability in Quick Response Code operating process.
A kind of Quick Response Code control method provided in an embodiment of the present invention and terminal are carried out in detail respectively below in conjunction with accompanying drawing 1- accompanying drawings 7
Introduce.
In the embodiment of the present invention, it is mentioned to terminal can include mobile phone, tablet personal computer, two-dimensional code scanning terminal, sweep
Imaging apparatus etc., specifically, the embodiment of the present invention is not restricted, as long as can scan the device of Quick Response Code can be used as this hair
Terminal in bright embodiment;The inventive method can be integrated in the scanning imaging system of Quick Response Code.For convenience of description, following examples
In terminal be loaded with two-dimensional code scanning program by taking mobile phone as an example, in mobile phone, but what deserves to be explained is, the present invention is not limited to hand
Machine, it is every device, equipment or the terminal of the present invention to be applied to belong to the protection domain of the present invention.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of Quick Response Code control method provided in an embodiment of the present invention, at this
In inventive embodiments, this method may comprise steps of.
S101:Target Quick Response Code is scanned, the target Quick Response Code is stored with the option information of at least two options.
With the continuous development of planar bar code technology, the data capacity that Quick Response Code can store is increasing, however, existing
Quick Response Code does not give full play to this advantage;It is existing based on the scan method of Quick Response Code when scanning Quick Response Code, not tube terminal
It is to be scanned with which type of posture, the information exhibition method after its scanning Quick Response Code is single.If for example, stored in Quick Response Code
There is bulk information, user is difficult that the data content for it is expected to access quickly is searched out from the bulk information.
In the embodiment of the present invention, the option information of at least two options, terminal scanning can be prestored in Quick Response Code
During the Quick Response Code, different options is entered according to scanning posture, so as to the scan mode of abundant Quick Response Code.For example, option information
Network address, text information etc. can be included, wherein, text information can be the parameter information of associated person information, merchandise news, commodity
Etc..Specifically, need to be set according to the usage scenario of reality, the embodiment of the present invention is not restricted.In the specific implementation, terminal is swept
Target Quick Response Code is retouched, the target Quick Response Code is stored with the option information of at least two options.
For convenience of understanding, by taking shopping website as an example, option information can be accessed corresponding to any information in the website
The mark of network address and/or any information, for example, access network address corresponding during the homepage of the website and mark " homepage ",
Corresponding network address and mark " electrical type " when accessing the electrical type merchandise news in the website, access cosmetic in the website
Corresponding network address and mark " cosmetics " etc. during product information.For another example by taking the usage scenario of business card as an example, generally, name
Piece includes the information such as name, phone, mailbox, academic title, then can be using these information as described in the embodiment of the present invention
Option information.For another example by taking address list as an example, can be by the information integration of the part or all of contact person in address list in two dimension
In code, then option information can be the information such as the name of each contact person, phone.For another example by taking ecommerce as an example, can be by certain
The parameter information of electronic product is integrated in Quick Response Code, and for convenience of description, by taking television set as an example, then these parameter informations can wrap
The information such as color, size, resolution ratio, screen proportion, brand are included, these parameter informations can be as the choosing in the embodiment of the present invention
Item information.For another example by taking commercial promotions usage scenario as an example, the more than one piece merchandise news for promotion can be integrated in Quick Response Code
In, option information can include the information of every commodity, such as trade name, original cost lattice, promotional price, promotion date etc..Again
For example, by taking prize usage scenario as an example, it is assumed that including 3 awards, then option information can be including awards mark and each awards
Specifically rewarded corresponding to mark, as awards are identified as " first prize ", " second prize ", " third prize ", specific reward is encouraged to be corresponding
The name of an article claims.Itself need to be set in the specific implementation, option information can combine, the embodiment of the present invention will not enumerate.
S102:Determine attitude information of the terminal when scanning the target Quick Response Code.
In the specific implementation, the attitude information can be the scanning posture of terminal in itself, generally, can be sensed by posture
The sensing data that device is got obtains;Wherein, the attitude transducer can be gravity sensor, gyroscope, earth magnetism sensing
Device, acceleration transducer, angular-rate sensor or obliquity sensor etc., specifically, the embodiment of the present invention is not restricted.When
So, the attitude information can also be the angle of inclination between the terminal and the target Quick Response Code.Specifically, the present invention is real
Example is applied not to be restricted.
As one of which example, the attitude information includes the inclination angle between the terminal and the target Quick Response Code
Degree.In the specific implementation, the method for obtaining the angle of inclination can as shown in Figure 1a, Fig. 1 a are that the one of which that Fig. 1 is provided determines
The schematic flow sheet of the method at angle of inclination, may comprise steps of S102a~S102c.
S102a:Determine scan-line direction during target Quick Response Code described in the terminal scanning.
Generally, in user, the scan-line direction is parallel and level side from left to right with terminal upper end border
To.For convenience of understanding, Fig. 1 b are referred to, Fig. 1 b are the schematic diagrames for the one of which scanning posture that Fig. 1 a are provided;Understand, in this kind
Scan in posture, " scan-line direction " of scan-line direction as shown in Figure 1 b described in terminal scanning during target Quick Response Code.Again
For example, referring to Fig. 1 c, Fig. 1 c are the schematic diagrames for another scanning posture that Fig. 1 a are provided;Understand, in this kind scans posture,
" scan-line direction " of scan-line direction as shown in figure 1 c described in terminal scanning during target Quick Response Code.
S102b:According to the position sensing figure of the target Quick Response Code and positioning figure, the target Quick Response Code is determined
Horizontal line direction corresponding to current putting position.
Quick Response Code (Quick Response Code, QR code), with certain specific geometric figure according to certain rules in plane
The chequered with black and white figure of (on two-dimensional directional) distribution carrys out record data symbolic information;Composition is dexterously utilized on coding
" 0 ", the concept of " 1 " bit stream of computer-internal logical foundations, come using several geometrical bodies corresponding with binary system
Word numerical information is represented, by image input device or photoelectric scanning device automatically identifying and reading to realize that information automatically processes.For
It is convenient to understand, Fig. 1 d are referred to, Fig. 1 d are the structural representations of one of which Quick Response Code provided in an embodiment of the present invention;Wherein:
Position sensing figure, position sensing figure separator, positioning figure:For the positioning to Quick Response Code, for each QR codes, position
Put all be it is fixed existing for, simply size specification can difference;Correction graph:Specification determination, the quantity of correction graph and position
Put and also determine that;Format information:The level of error correction of the Quick Response Code is represented, is divided into L, M, Q, H;Version information:That is Quick Response Code
Specification, QR code signs share the matrix (generally black and white) of 40 kinds of specifications, from 21x21 (version 1), to 177x177 (versions
40), each version symbol increases by 4 modules per side than previous version.Data and error correction code word:The Quick Response Code letter actually preserved
Breath, and error correction code word (being used to correct the mistake that Quick Response Code damage is brought).
In the specific implementation, target two dimension can be determined according to the position sensing figure in target Quick Response Code and positioning figure
Horizontal line direction corresponding to the current putting position of code.In user, the horizontal line direction of target Quick Response Code is usually and two
Tie up that code upper end border is parallel and horizontal direction from left to right.For example, refer to Fig. 1 b, it is known that, in the scanning appearance shown in Fig. 1 b
In state, " the horizontal line direction " of the horizontal line direction of target Quick Response Code as shown in Figure 1 b.For another example refer to Fig. 1 c, it is known that,
In the scanning posture shown in Fig. 1 c, " the horizontal line direction " of the horizontal line direction of target Quick Response Code as shown in figure 1 c.
S102c:According to the horizontal line direction and the scan-line direction, the terminal and the target Quick Response Code are determined
Between angle of inclination.
Work as forward swing by what above-mentioned steps determined scan-line direction during terminal scanning target Quick Response Code and target Quick Response Code
After putting the horizontal line direction of position correspondence, you can according to the scan-line direction and horizontal line direction determined, determine terminal
With the angle of inclination between target Quick Response Code.For convenience of understanding, for example, in the scanning posture shown in Fig. 1 b, it may be determined that go out end
Angle of inclination between end and target Quick Response Code is 45 °;For another example in the scanning posture shown in Fig. 1 c, it may be determined that go out terminal
Angle of inclination between target Quick Response Code is 90 °.
What deserves to be explained is know otherwise between terminal and target Quick Response Code in the specific implementation, can also be
Angle of inclination, specifically, the embodiment of the present invention is not restricted.
S103:According to scanning posture and the mapping relations of at least two option, determine corresponding to the attitude information
Targets option.
In the specific implementation, after terminal scanning target Quick Response Code, at least two choosings stored in target Quick Response Code can be obtained
The option information of item, so as to it is determined that specific option number;According to preset rules, scanning posture and described at least two is established
The mapping relations of option, to determine targets option corresponding to obtained attitude information.
For convenience of understanding, attitude information is by taking above-mentioned described angle of inclination as an example, it is assumed that obtains what is stored in Quick Response Code
The option number of option information is 4, is individually identified as A, B, C, D;Then one of which scanning posture and the mapping of this 4 options
Relation can be as shown in table 1, and table 1 is the signal of the one of which scanning posture that Fig. 1 is provided and the mapping relations of option.
Table 1
Angle of inclination |
Option |
0° |
A |
90° |
B |
180° |
C |
270° |
D |
It can know from table 1, if terminal and the angle of inclination of target Quick Response Code are 0 °, current scanning can be determined
Targets option corresponding to posture is A;If terminal and the angle of inclination of target Quick Response Code are 90 °, current sweep can be determined
It is B to retouch targets option corresponding to posture;If terminal and the angle of inclination of target Quick Response Code are 180 °, can determine current
Targets option corresponding to scanning posture is C;If terminal and the angle of inclination of target Quick Response Code are 270 °, can determine current
Scanning posture corresponding to targets option be D.What deserves to be explained is table 1 is only a kind of example, can be according to reality in specific implementation
Need to set the mapping relations, the embodiment of the present invention is not restricted this.
S104:Export content corresponding to the option information of the targets option.
Terminal is determined under Current Scan posture after corresponding targets option by above-mentioned steps, according to the targets option
Option information, export content corresponding to the option information.So as to which user can access different options by different scanning postures
Content, the scan mode and information exhibition method of Quick Response Code can be enriched;Meanwhile user can combine itself needs and quickly have access to
It is expected the content accessed, scan the efficiency high of Quick Response Code, the operability in Quick Response Code operating process can be strengthened.For example, with
Exemplified by Quick Response Code storage website information, option information can include Option and network address, then selected according to target in option information
Network address corresponding to, export webpage corresponding to targets option.For another example by taking Quick Response Code storing contact information as an example, option letter
Breath can include Option and associated person information, then the associated person information according to corresponding to targets option in option information, output
Associated person information corresponding to targets option.For another example by taking Quick Response Code store commodity information as an example, option information can include option
Mark and merchandise news, then the merchandise news according to corresponding to targets option in option information, exports commodity corresponding to targets option
Information.In the specific implementation, the content exported is related to the usage scenario of reality, the embodiment of the present invention is not restricted.
In the Quick Response Code control method of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal exists
Scan the attitude information during target Quick Response Code;Wherein, the target Quick Response Code is stored with the option letter of at least two options
Breath;According to scanning posture and the mapping relations of at least two option, targets option corresponding to the attitude information is determined;It is defeated
Go out content corresponding to the option information of the targets option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code,
Terminal exports its corresponding object content according to scanning posture, can strengthen the operability in Quick Response Code operating process.
Fig. 2 is referred to, Fig. 2 is a kind of another schematic flow sheet of Quick Response Code control method provided in an embodiment of the present invention,
In embodiments of the present invention, this method may comprise steps of.
S201:Target Quick Response Code is scanned, the target Quick Response Code is stored with the option information of at least two options.
In view of the diversity of information category, in the embodiment of the present invention, target Quick Response Code is stored with least two options
Option information;Wherein, the entrance of data is accessed after what option referred to pre-set be available for scanning input Quick Response Code;Specific implementation
In, default separator can be added between the option information of each option, to distinguish the option information of different options.For convenience
Understand, by taking shopping website as an example, in the specific implementation, one of option can be the homepage of the shopping website, the choosing of the option
Item information can be the website information of the homepage;Other options can be the product category under the homepage, such as mother and baby, electronics, kitchen
Tool, cosmetics etc., the option information of these options can be website information corresponding to the category;Wherein, specific option can
Set according to being actually needed, for example, it may be several classifications that visit capacity is forward, specifically, the embodiment of the present invention is not made
Limitation.
For convenience of understanding, by taking the usage scenario of storing contact in Quick Response Code as an example, then option information can be each contact
The information such as phone corresponding to the name of people and the name.For another example exemplified by the usage scenario of card information is stored in Quick Response Code,
Option information can be the information such as name, phone, academic title.To store the usage scenario of the parameter information of particular commodity in Quick Response Code
Exemplified by, option information can be the information such as the brand, size, specification of commodity.To store the merchandise news of each commodity in Quick Response Code
Usage scenario exemplified by, option information can be each commodity trade name and the commodity corresponding to the information such as parameter.Specifically
In realization, it can combine and be actually needed setting options information, will not enumerate herein.
S202:Determine attitude information of the terminal when scanning the target Quick Response Code.
In the specific implementation, the attitude information can be the scanning posture of terminal in itself, generally, can be sensed by posture
The sensing data that device is got obtains;Wherein, the attitude transducer can be gravity sensor (Gravity-sensor,
Abbreviation G-sensor), gyroscope, geomagnetic sensor, acceleration transducer, angular-rate sensor or obliquity sensor etc., tool
Body, the embodiment of the present invention is not restricted.For example, during the horizontal positioned scanning of mobile phone, G-sensor data (x, y, z)=(0,0,
10);When mobile phone is perpendicular to ground based scanning, G-sensor data (x, y, z)=(0,10,0);During mobile phone traverse scanning to the right, G-
Sensor data (x, y, z)=(- 10,0,0);During mobile phone traverse scanning to the left;G-sensor data be (x, y, z)=(10,0,
0)。
Certainly, in the specific implementation, the attitude information can also be inclining between the terminal and the target Quick Response Code
Rake angle, detail refer to the step S102 in above-described embodiment.
S203:According to scanning posture and the mapping relations of at least two option, determine corresponding to the attitude information
Targets option.
For convenience of understanding, by taking the attitude information that gravity sensor obtains terminal as an example, after terminal scanning target Quick Response Code, obtain
Take the option information stored in target Quick Response Code;Assuming that target Quick Response Code is stored with the option information of 3 options, respectively A,
B、C;Scanning posture and the mapping relations of this 3 options are established according to preset rules.For convenience of understanding, it is assumed that G-sensor data
To correspond to option A when (0,0,10) or (0,10,0), as shown in Figure 2 a, Fig. 2 a are the one of which scanning postures that Fig. 2 is provided
Schematic diagram;G-sensor data correspond to option B when being (- 10,0,0), and as shown in Figure 2 b, Fig. 2 b are the one of which that Fig. 2 is provided
Scan the schematic diagram of posture;G-sensor data correspond to option C when being (10,0,0), and as shown in Figure 2 c, Fig. 2 c are that Fig. 2 is provided
One of which scans the schematic diagram of posture;If it is (- 10,0,0) then to get the attitude information after terminal scanning target Quick Response Code,
It is option B that targets option, which can be determined, as shown in Figure 2 b.What deserves to be explained is it these are only a kind of signal.
S204:According to the option information of at least two option, at least two option, and prominent sign institute are shown
State targets option.
After terminal scanning target Quick Response Code, the option information stored in target Quick Response Code is obtained, is determined by above-mentioned steps
After targets option corresponding to Current Scan posture, according to the option information of at least two options in target Quick Response Code, display
At least two option, and the prominent sign targets option;So as to which user can know clearly that Current Scan posture institute is right
The option answered.For example, it is assumed that it is (- 10,0,0) to get attitude information, then it is option B that can determine targets option, such as Fig. 2 b
It is shown.
In the specific implementation, terminal is during target Quick Response Code is scanned, if rotation terminal changes the scanning posture of terminal,
The targets option of prominent sign is then needed according to the attitude information real-time update of terminal.
S205:When receiving the confirmation instruction for the targets option, or, do not receive and be directed in preset duration
During the confirmation instruction of any option, content corresponding to the option information of the targets option is exported.
After at least two option displayed on the terminals, user can click on wherein any one option, so as to end
End sends the confirmation instruction for accessing the option.If receiving the confirmation instruction for targets option, the targets option is exported
Content corresponding to option information.Certainly, if can also be in specific implementation, terminal is not received for any in preset duration
The confirmation instruction of option, exports content corresponding to the option information of the targets option.For example, it is assumed that the scanning appearance that terminal is current
State corresponds to option B, preset duration 10ms, then terminal know targets option be option B after, if not connect in ensuing 10ms
The confirmation instruction of user's input is received, then accesses content corresponding to the targets option automatically.
What deserves to be explained is in the specific implementation, after determining the targets option corresponding to Current Scan posture, can also
It is according to the option information of the targets option, shows the targets option;And receive the confirmation for the targets option
During instruction, or, when not receiving the confirmation instruction for the targets option in preset duration, export the targets option
Option information corresponding to content.Specifically, the embodiment of the present invention is not restricted.
For convenience of understanding, by taking the information that Quick Response Code stores multiple contact persons as an example, it is assumed that be stored with target Quick Response Code "
Three ", " Li Si " " information of this three people of king five ", then in the specific implementation, the information of Quick Response Code storage includes 3 options, respectively selects
The option information of item is the information (such as name, phone, mailbox information) of each contact person.Then terminal scanning target Quick Response Code
Afterwards, the option information of entrained multiple options is parsed from target Quick Response Code first, and on a terminal screen described in display
Multiple options, wherein, targets option corresponding to current scanning posture is highlighted sign, and as shown in Figure 2 d, Fig. 2 d are Fig. 2 offers
One of which scanning interface schematic diagram;In the specific implementation, the key message for distinguishing different options can be shown, such as
The name of each contact person (so as to which the data that user can be accessed needs from current interface are very clear);It is directed to when receiving
The confirmation instruction of targets option, or, it is further defeated when not receiving the confirmation instruction for any option in preset duration
Go out the option information of targets option, such as name, phone, mailbox information.
In the Quick Response Code control method of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal exists
Scan the attitude information during target Quick Response Code;Wherein, the target Quick Response Code is stored with the option letter of at least two options
Breath;According to scanning posture and the mapping relations of at least two option, targets option corresponding to the attitude information is determined;It is defeated
Go out content corresponding to the option information of the targets option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code,
Terminal exports its corresponding object content according to scanning posture, can strengthen the operability in Quick Response Code operating process.
Fig. 3 is referred to, Fig. 3 is a kind of another schematic flow sheet of Quick Response Code control method provided in an embodiment of the present invention,
In embodiments of the present invention, this method may comprise steps of.
S301:Target Quick Response Code is scanned, the target Quick Response Code is stored with the option information of at least two options.
The embodiment of the present invention is by taking the usage scenario of Quick Response Code storage info web as an example, in the specific implementation, option information can
With including Option and network address;Wherein, mark can be the information such as network address classification.With making for Quick Response Code storing contact information
Exemplified by scene, option information can include Option and associated person information, wherein, mark can be name of contact person or
It is that (for example, in case of Quick Response Code stores multiple associated person informations, mark can be name of contact person to other information;With
In case of storing an associated person information, mark can be name, phone, academic title of the contact person etc.).Deposited with Quick Response Code
Exemplified by the usage scenario for storing up merchandise news, option information can include Option and merchandise news, wherein, mark can be business
The name of an article claims either that (for example, in case of Quick Response Code stores multiple merchandise newss, mark can be trade name to other information
Claim;In case of storing a merchandise news, mark can be title, size, model of the commodity etc.);Specifically, this
Inventive embodiments are not restricted.
For convenience of description, by taking shopping website as an example, it is assumed that target Quick Response Code is stored with the option information of 5 options, respectively
For homepage, mother and baby, electronics, kitchen tools, household electrical appliances;Generally, the subclass such as mother and baby, electronics, kitchen tools, household electrical appliances has accordingly in homepage
Access entrance, but because the information content shown by homepage is larger, user is difficult to find out oneself from homepage rapidly it is expected what is accessed
Classification.In the embodiment of the present invention, the info web frequently accessed is loaded onto in target Quick Response Code, user can be by scanning target
Quick Response Code rapidly enters the page for it is expected to access.In the specific implementation, it can be added between the option information of different options default
Separator, for convenience of description, separator is preset by " && " exemplified by, then the information stored in target Quick Response Code can following institute
Show:
Homepage http://www.taobao.com&& mother and baby http://s.taobao.com/searchQ=%C4%
B8%D3%A4&js=1&stats_click=search_radio_all%253A1&initiat ive_id=
Staobaoz_20141107&& electronics http://s.taobao.com/searchQ=%B5%E7%D7%D3&js=1&
Stats_click=se arch_radio_all%253A1&initiative_id=staobaoz_20141107&& kitchen tools
Http://s.taobao.co m/searchQ=%B3%F8%BE%DF&js=1&stats_click=search_
Radio_all%253A1&initia tive_id=staobaoz_20141107&& household electrical appliances http://s.taobao.com/
searchQ=%BC%D2%B5%E7&commend=all&ssid=s5-e&search_type=item&so urceId
=tb.index&spm=1.7274553.1997520841.1&initiative_id=tbinde xz_20141107
So as to, after terminal scans the Quick Response Code by camera, the option information of 5 options can be therefrom parsed, its
In, the network address for being identified as " homepage " is " http://www.taobao.com”;The network address for being identified as " mother and baby " is " http://
s.taobao.com/searchQ=%C4%B8%D3%A4&js=1&stats_click=sea rch_radio_
All%253A1&initiative_id=staobaoz_20141107 ";The network address for being identified as " electronics " is http://
s.taobao.com/searchQ=%B5%E7%D7%D3&js=1&stats_click=search_radio_all%
253A1&initiative_id=staobaoz_20141107;The network address for being identified as " kitchen tools " is http://
s.taobao.com/searchQ=%B3%F8%BE%DF&js=1&stats_click=search_radio_all%
253A1&initiative_id=staobaoz_20141107;The network address for being identified as " household electrical appliances " is " http://
s.taobao.com/searchQ=%BC%D2%B5%E7&commend=all&ssid=s5-e&search_type=
Item&s ourceId=tb.index&spm=1.7274553.1997520841.1&initiative_i d=tbindexz_
20141107”。
S302:Identify whether the option information of at least two option is complete.
Generally, when the Quick Response Code of scanning is imperfect or image is fuzzy, terminal can not get complete Quick Response Code letter
Breath.In the embodiment of the present invention, terminal scanning target Quick Response Code, the 2 D code information stored in the Quick Response Code is got, and identify
Whether accessed 2 D code information is complete;When the 2 D code information is complete, step S304 is performed, determines the appearance of terminal
State information;When the 2 D code information is imperfect, step S303 is performed, sends the prompting message of scanning failure;Prompting message
It can be shown, can also be come out by speaker announcement by display screen.In the specific implementation, send the prompting of scanning failure
After information, target Quick Response Code can also be rescaned by camera, obtains 2 D code information again.
S303:The prompting message of output scanning failure.
If identifying, accessed 2 D code information is imperfect, the prompting message of output scanning failure, to prompt user
Terminal is realigned into target Quick Response Code to be scanned again.
S304:Determine attitude information of the terminal when scanning the target Quick Response Code.
If identifying, accessed 2 D code information is complete, it is determined that appearance of the terminal when scanning the target Quick Response Code
State information;Wherein, the detail for obtaining attitude information refer to above-described embodiment, and here is omitted, but for convenience of description,
Exemplified by angle of inclination of attitude information when terminal scanning target Quick Response Code in the embodiment of the present invention.
S305:According to scanning posture and the mapping relations of at least two option, determine corresponding to the attitude information
Targets option.
In the specific implementation, scanning posture and the mapping relations of option can be stored in Quick Response Code, terminal scanning target two
After tieing up code, the mapping relations are therefrom parsed;Certainly, the mapping relations can also be according to pre- after terminal scanning target Quick Response Code
What if rule was set up, specifically, the embodiment of the present invention is not restricted, but the latter is a kind of preferred embodiment.
As a kind of example, after terminal gets the option information stored in target Quick Response Code by camera, foundation is swept
The mapping relations for retouching posture and option can as shown in Figure 3 a, and Fig. 3 a are that one of which provided in an embodiment of the present invention establishes mapping
The schematic flow sheet of the method for relation, step S305a~S305c can be included.
S305a:According to the option information of at least two option, the option number of at least two option is determined.
In the specific implementation, terminal can according to the default separator between the option information of at least two option, it is determined that
Go out the option information of each option, so as to determine the option number of at least two options stored in target Quick Response Code.
S305b:By 0-360 ° be divided into the option number identical several pieces, and determine corresponding to every part of border
Angle.
According to preset rules by 0-360 ° be divided into the option number identical several pieces, in the specific implementation, can be with
It is that to be evenly dividing can also be divided by different proportion, the embodiment of the present invention is not restricted;Obtain identical with the option number
Several pieces after, determine angle corresponding to every part of border.
For convenience of understanding, it is assumed that the option number obtained is 4, and preset rules are to be evenly dividing, then by 0-360 ° point
The boundary angles obtained after into 4 equal portions are respectively 0 °, 90 °, 180 °, 270 °.It is 2 to assume obtained option number, is preset
Rule is to be evenly dividing, then it is respectively 0 °, 180 ° to be divided into 0-360 ° the boundary angles obtained after 2 equal portions.In the specific implementation, angle
Degree can also be indicated using -180 °~180 °.
S305c:According to the option information of at least two option, establish each angle and the mapping of each option is closed
System.
After acquisition and option number identical predetermined angle, according at least two options in the target Quick Response Code obtained
Option information, establish the mapping relations of each angle and each option.For example, the option information according at least two option
Sequencing, establish the mapping relations of each angle and each option successively.In the specific implementation, the mapping of option and angle is closed
System, which can combine, itself to be needed be set, after determining each angle and the mapping relations of option, can be in scanning process it is aobvious
Show and the mapping relations are embodied on interface, the variation of targets option when such as changing scanning posture.
What deserves to be explained is in the specific implementation, can also be reflecting for the corresponding option of 2 angles or more angles
Penetrate relation.It is for example, identical for the option corresponding to two angles of complementation, it assumes that to get option number as 2, respectively
Option A, B are identified as, then after being divided into 4 equal portions by -180 °~180 °, mapping relations can be:0 ° of option A corresponding with 180 °,
90 ° of option Bs corresponding with -90 °.
As another example, after terminal gets the option information stored in target Quick Response Code by camera, establish
The mapping relations for scanning posture and option can as shown in Figure 3 b, and Fig. 3 b are that another establish provided in an embodiment of the present invention maps
The schematic flow sheet of the method for relation, step S3051~S3054 can be included.
S3051:According to the option information of at least two option, the option number of at least two option is determined.
In the specific implementation, some angles can be pre-set for some classics scanning postures in the terminal, for example, these
Angle can be 0 °, 45 °, 90 °, 135 °, 180 ° etc..
S3052:Obtain at least two predetermined angles pre-set.
S3053:If the angle number of at least two predetermined angle is more than or equal to the option number, from it is described to
The option number predetermined angle is filtered out in few two predetermined angles.
If the angle number of at least two predetermined angles is more than or equal to option number, from least two predetermined angles
Filter out option number predetermined angle.For example, it is assumed that predetermined angle has 5, option number is 4, then can be from default 5
4 angles are arbitrarily chosen in angle.
S3054:According to the option information of at least two option, establish in filtered out option number predetermined angle
Each predetermined angle and each option mapping relations.
For example, according to the sequencing of the option information of at least two option, each option is established successively with being screened
Mapping relations between the angle gone out.Itself need to be set in the specific implementation, the mapping relations of option and angle can combine,
After determining each angle and the mapping relations of option, the mapping relations can be embodied on the display interface in scanning process, such as
The variation of targets option when changing scanning posture.So as to which after scanning target Quick Response Code, the mapping for obtaining scanning posture and option is closed
System, the targets option scanned is can determine that according to the attitude information of terminal Current Scan target Quick Response Code.
S306:According to the option information of at least two option, the mark of at least two option is shown, and is protruded
Indicate the mark of the targets option.
In the specific implementation, terminal can be according to pre- between the option informations of at least two options stored in target Quick Response Code
If separator, it is determined that the option information of each option;Wherein, option information includes Option and network address, mark and network address one
One correspondence;The incidence relation established between the mark and network address of each option;The mark of at least two option is shown, and
The prominent mark for indicating the targets option.
For example, if option information is Option and associated person information, terminal can be according to storing in target Quick Response Code
Default separator between the option information of at least two options, it is determined that the option information of each option;Wherein, option information includes
Option and associated person information, mark correspond with associated person information;Establish mark and the contact person of each option
Incidence relation between information;Show the mark of at least two option, and the prominent mark for indicating the targets option.
For another example if option information is Option and merchandise news, terminal can be according to storing in target Quick Response Code
Default separator between the option information of at least two options, it is determined that the option information of each option;Wherein, option information includes
Option and merchandise news, mark correspond with merchandise news;Establish between the mark and merchandise news of each option
Incidence relation;Show the mark of at least two option, and the prominent mark for indicating the targets option.
For convenience of understanding, illustrated with the example in step S301, it is known that, 5 choosings are stored with target Quick Response Code
The option information of item, the mark of option are respectively:" homepage ", " mother and baby ", " electronics ", " kitchen tools ", " household electrical appliances ", then retouch according to above-mentioned
Stating established mapping relations can be as shown in table 2, and table 2 is the signal for the one of which mapping relations that Fig. 3 is provided.
Table 2
Angle of inclination |
Option |
0° |
Homepage |
45° |
Mother and baby |
90° |
Electronics |
180° |
Kitchen tools |
270° |
Household electrical appliances |
For convenience of description, it is assumed that as shown in Figure 3 c, Fig. 3 c are that Fig. 3 is provided wherein to the posture of terminal scanning target Quick Response Code
A kind of schematic diagram for scanning posture, it is known that, corresponding attitude information is 0 ° under Current Scan posture, can be determined according to table 2
Targets option is " homepage ", and therefore, as shown in Figure 3 c, in figure 3 c, targets option " homepage " is prominent to be marked the display result of option
Show, the option that the scanning posture for prompting user current is scanned is " homepage ".In the specific implementation, terminal is on target Quick Response Code
During Fang Yidong, accordingly, the attitude information between terminal and target Quick Response Code also changes, and hence it is also possible to according to being obtained
The attitude information real-time update targets option got.For example, in scanning posture as shown in Figure 3 c, by mobile phone to right rotation,
As shown in the dotted line in Fig. 3 c, then it can get targets option and be transformed to " mother and baby " from " homepage ", therefore, in square frame is shown
Mark change procedure in real time, increase are interesting.
S307:According to the option information of the targets option, webpage corresponding to the network address in the option information is shown.
For example, when receiving the confirmation instruction for targets option, or, do not received for any in preset duration
During the confirmation instruction of option, according to the network address in the option information of targets option, webpage corresponding to the network address is shown.For another example
If option information includes Option and associated person information, associated person information corresponding to display target option;If option information
Including Option and merchandise news, then merchandise news corresponding to display target option.
In the Quick Response Code control method of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal exists
Scan the attitude information during target Quick Response Code;Wherein, the target Quick Response Code is stored with the option letter of at least two options
Breath;According to scanning posture and the mapping relations of at least two option, targets option corresponding to the attitude information is determined;It is defeated
Go out content corresponding to the option information of the targets option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code,
Terminal exports its corresponding object content according to scanning posture, can strengthen the operability in Quick Response Code operating process.
It is apparatus of the present invention embodiment below, apparatus of the present invention embodiment belongs to same structure with the inventive method embodiment
Think, for performing the method described in the inventive method embodiment.For convenience of description, apparatus of the present invention embodiment only show with
The related part of apparatus of the present invention embodiment, particular technique details do not disclose, refer to the description of the inventive method embodiment,
No longer repeat one by one herein.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention, in the embodiment of the present invention
In, the terminal can include:Scanning element 101, the first determining unit 102, the second determining unit 103 and output unit 104.
Scanning element 101, for scanning target Quick Response Code, the target Quick Response Code is stored with the option of at least two options
Information.
With the continuous development of planar bar code technology, the data capacity that Quick Response Code can store is increasing, however, existing
Quick Response Code does not give full play to this advantage;And it is existing based on the scan method of Quick Response Code when scanning Quick Response Code, no matter eventually
End is scanned with which type of posture, and the information exhibition method after its scanning Quick Response Code is single, causes existing Quick Response Code
Scan mode is single.
In the embodiment of the present invention, the option information of at least two options, terminal scanning can be prestored in Quick Response Code
During the Quick Response Code, different options is entered according to scanning posture, so as to the information exhibition method of abundant terminal scanning Quick Response Code.
For example, option information can be network address and/or network address theme;Word etc., specifically, the embodiment of the present invention is not restricted.Tool
During body is realized, terminal scanning target Quick Response Code, the target Quick Response Code is stored with the option information of at least two options.
For convenience of understanding, by taking shopping website as an example, option information can be accessed corresponding to any information in the website
The mark of network address and/or any information, for example, access network address corresponding during the homepage of the website and mark " homepage ",
Corresponding network address and mark " electrical type " when accessing the electrical type merchandise news in the website, access cosmetic in the website
Corresponding network address and mark " cosmetics " etc. during product information.For another example by taking the usage scenario of business card as an example, generally, name
Piece includes the information such as name, phone, mailbox, academic title, then can be using these information as described in the embodiment of the present invention
Option information.For another example by taking address list as an example, can be by the information integration of the part or all of contact person in address list in two dimension
In code, then option information can be the information such as the name of each contact person, phone.For another example by taking ecommerce as an example, can be by certain
The parameter information of electronic product is integrated in Quick Response Code, and for convenience of description, by taking television set as an example, then these parameter informations can wrap
The information such as color, size, resolution ratio, screen proportion, brand are included, these parameter informations can be as the choosing in the embodiment of the present invention
Item information.Itself need to be set in the specific implementation, option information can combine, the embodiment of the present invention will not enumerate.
First determining unit 102, for determining attitude information of the terminal when scanning the target Quick Response Code.
In the specific implementation, the attitude information can be the scanning posture of terminal in itself, generally, can be sensed by posture
The sensing data that device is got obtains;Wherein, the attitude transducer can be gravity sensor, gyroscope, earth magnetism sensing
Device, acceleration transducer, angular-rate sensor or obliquity sensor etc., specifically, the embodiment of the present invention is not restricted.When
So, the attitude information can also be the angle of inclination between the terminal and the target Quick Response Code.Specifically, the present invention is real
Example is applied not to be restricted.
In the specific implementation, the attitude information can be the scanning posture of terminal in itself, generally, can be sensed by posture
The sensing data that device is got obtains;Wherein, the attitude transducer can be gravity sensor (Gravity-sensor,
Abbreviation G-sensor), gyroscope, geomagnetic sensor, acceleration transducer, angular-rate sensor or obliquity sensor etc., tool
Body, the embodiment of the present invention is not restricted.For example, during the horizontal positioned scanning of mobile phone, G-sensor data (x, y, z)=(0,0,
10);When mobile phone is perpendicular to ground based scanning, G-sensor data (x, y, z)=(0,10,0);During mobile phone traverse scanning to the right, G-
Sensor data (x, y, z)=(- 10,0,0);During mobile phone traverse scanning to the left;G-sensor data be (x, y, z)=(10,0,
0)。
Second determining unit 103, for the mapping relations according to scanning posture and at least two option, it is determined that described
Targets option corresponding to attitude information.
In the specific implementation, after terminal scanning target Quick Response Code, at least two choosings stored in target Quick Response Code can be obtained
The option information of item, so as to it is determined that specific option number;According to preset rules, scanning posture and described at least two is established
The mapping relations of option, to determine targets option corresponding to obtained attitude information.
For convenience of understanding, attitude information is by taking above-mentioned described angle of inclination as an example, it is assumed that obtains what is stored in Quick Response Code
The option number of option information is 4, is individually identified as A, B, C, D;Then one of which scanning posture and the mapping of this 4 options
Relation can be as described above shown in listed table 1.As known from Table 1, can be with if the angle of inclination of terminal and target Quick Response Code is 0 °
Determine that targets option corresponding to current scanning posture is A;, can if the angle of inclination of terminal and target Quick Response Code is 90 °
To determine that targets option corresponding to current scanning posture is B;If the angle of inclination of terminal and target Quick Response Code is 180 °,
It can determine that targets option corresponding to current scanning posture is C;If the angle of inclination of terminal and target Quick Response Code is 270 °,
It can then determine that targets option corresponding to current scanning posture is D.What deserves to be explained is table 1 is only a kind of example, specifically
The mapping relations can be set according to being actually needed in realization, the embodiment of the present invention is not restricted to this.
For convenience of understanding, by taking the attitude information that gravity sensor obtains terminal as an example, after terminal scanning target Quick Response Code, obtain
Take the option information stored in target Quick Response Code;Assuming that target Quick Response Code is stored with the option information of 3 options, respectively A,
B、C;Scanning posture and the mapping relations of this 3 options are established according to preset rules.For convenience of understanding, it is assumed that G-sensor data
To correspond to option A when (0,0,10) or (0,10,0), as shown in Figure 2 a;G-sensor data correspond to option when being (- 10,0,0)
B, as shown in Figure 2 b;G-sensor data correspond to option C when being (10,0,0), as shown in Figure 2 c;If then get terminal scanning
Attitude information after target Quick Response Code is (- 10,0,0), it may be determined that targets option is option B, as shown in Figure 2 b.It is worth explanation
, these are only a kind of signal.
Output unit 104, for exporting content corresponding to the option information of the targets option.
Terminal is determined under Current Scan posture after corresponding targets option by said units, according to the targets option
Option information, export content corresponding to the option information.So as to which user can access different options by different scanning postures
Content, the scan mode and information exhibition method of Quick Response Code can be enriched;Meanwhile user can combine itself needs and quickly have access to
It is expected the content accessed, scan the efficiency high of Quick Response Code, the operability in Quick Response Code operating process can be strengthened.For example, with
Exemplified by Quick Response Code storage website information, option information can include Option and network address, then selected according to target in option information
Network address corresponding to, export webpage corresponding to targets option.For another example by taking Quick Response Code storing contact information as an example, option letter
Breath can include Option and associated person information, then the associated person information according to corresponding to targets option in option information, output
Associated person information corresponding to targets option.For another example by taking Quick Response Code store commodity information as an example, option information can include option
Mark and merchandise news, then the merchandise news according to corresponding to targets option in option information, exports commodity corresponding to targets option
Information.In the specific implementation, the content exported is related to the usage scenario of reality, the embodiment of the present invention is not restricted.
In the terminal of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal is scanning the mesh
Mark attitude information during Quick Response Code;Wherein, the target Quick Response Code is stored with the option information of at least two options;According to scanning
Posture and the mapping relations of at least two option, determine targets option corresponding to the attitude information;Export the target
Content corresponding to the option information of option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code, terminal is according to sweeping
Retouch posture and export its corresponding object content, the operability in Quick Response Code operating process can be strengthened.
Fig. 5 is referred to, Fig. 5 is a kind of another structural representation of terminal provided in an embodiment of the present invention, of the invention real
Apply in example, the terminal removes scanning element 101, the first determining unit 102, the second determining unit 103 included in above-described embodiment
Outside output unit 104, it can also include:First display unit 201, first establish the determining unit 203 of unit 202 and the 3rd.
First display unit 201, for the option information according at least two option, display at least two choosing
, and the prominent sign targets option.
After terminal scanning target Quick Response Code, the option information stored in target Quick Response Code is obtained, is determined by above-mentioned steps
After targets option corresponding to Current Scan posture, according to the option information of at least two options in target Quick Response Code, display
At least two option, and the prominent sign targets option;So as to which user can know clearly that Current Scan posture institute is right
The option answered.For example, it is assumed that it is (- 10,0,0) to get attitude information, then it is option B that can determine targets option, such as Fig. 2 b
It is shown.
In the specific implementation, terminal is during target Quick Response Code is scanned, if rotation terminal changes the scanning posture of terminal,
The targets option of prominent sign is then needed according to the attitude information real-time update of terminal.
In wherein a kind of implementation, output unit 104 is specifically used for, and receives the confirmation for the targets option
During instruction, or, when not receiving the confirmation instruction for any option in preset duration, export the choosing of the targets option
Content corresponding to item information.
After at least two option displayed on the terminals, user can click on wherein any one option, so as to end
End sends the confirmation instruction for accessing the option.If receiving the confirmation instruction for targets option, the targets option is exported
Content corresponding to option information.Certainly, if can also be in specific implementation, terminal is not received for any in preset duration
The confirmation instruction of option, exports content corresponding to the option information of the targets option.For example, it is assumed that the scanning appearance that terminal is current
State corresponds to option B, preset duration 10ms, then terminal know targets option be option B after, if not connect in ensuing 10ms
The confirmation instruction of user's input is received, then accesses content corresponding to the targets option automatically.
In wherein a kind of implementation, the attitude information includes inclining between the terminal and the target Quick Response Code
Rake angle.3rd determining unit 203 is used for:According to the option information of at least two option, at least two choosing is determined
The option number of item;By 0-360 ° be divided into the option number identical several pieces, and determine corresponding to every part of border
Angle.First establishes unit 202, for the option information according at least two option, establishes each angle and each choosing
The mapping relations of item.
In the specific implementation, terminal can according to the default separator between the option information of at least two option, it is determined that
Go out the option information of each option, so as to determine the option number of at least two options stored in target Quick Response Code.According to
Preset rules by 0-360 ° be divided into the option number identical several pieces, in the specific implementation, can be evenly dividing
Can be divided by different proportion, the embodiment of the present invention is not restricted;After acquisition and the option number identical several pieces, really
Angle corresponding to fixed every part border.For convenience of understanding, it is assumed that the option number obtained is 4, and preset rules are uniformly to draw
Point, then it is respectively 0 °, 90 °, 180 °, 270 ° to be divided into 0-360 ° the boundary angles obtained after 4 equal portions.Assume obtained option
Number is 2, and preset rules are to be evenly dividing, then 0-360 ° is divided into the boundary angles obtained after 2 equal portions be respectively 0 °,
180°.In the specific implementation, angle can also be indicated using -180 °~180 °.
After acquisition and option number identical predetermined angle, according at least two options in the target Quick Response Code obtained
Option information, establish the mapping relations of each angle and each option.For example, the option information according at least two option
Sequencing, establish the mapping relations of each angle and each option successively.In the specific implementation, the mapping of option and angle is closed
System, which can combine, itself to be needed be set, after determining each angle and the mapping relations of option, can be in scanning process it is aobvious
Show and the mapping relations are embodied on interface, the variation of targets option when such as changing scanning posture.
What deserves to be explained is in the specific implementation, can also be reflecting for the corresponding option of 2 angles or more angles
Penetrate relation.It is for example, identical for the option corresponding to two angles of complementation, it assumes that to get option number as 2, respectively
Option A, B are identified as, then after being divided into 4 equal portions by -180 °~180 °, mapping relations can be:0 ° of option A corresponding with 180 °,
90 ° of option Bs corresponding with -90 °.
In wherein a kind of implementation, the first determining unit 102 is specifically used for:Determine target described in the terminal scanning
Scan-line direction during Quick Response Code;According to the position sensing figure of the target Quick Response Code and positioning figure, the target is determined
Horizontal line direction corresponding to the current putting position of Quick Response Code;According to the horizontal line direction and the scan-line direction, it is determined that
Angle of inclination between the terminal and the target Quick Response Code.
Generally, in user, the scan-line direction is parallel and level side from left to right with terminal upper end border
To;The horizontal line direction of target Quick Response Code is usually horizontal direction parallel with Quick Response Code upper end border and from left to right.For side
Just understand, refer to Fig. 1 b, it is known that, in this kind scans posture, the scan-line direction described in terminal scanning during target Quick Response Code
" scan-line direction " as shown in Figure 1 b;" the horizontal line direction " of the horizontal line direction of target Quick Response Code as shown in Figure 1 b.
For another example refer to Fig. 1 c, it is known that, in this kind scans posture, the scan-line direction described in terminal scanning during target Quick Response Code
" scan-line direction " as shown in figure 1 c;" the horizontal line direction " of the horizontal line direction of target Quick Response Code as shown in figure 1 c.
Scan-line direction when determining terminal scanning target Quick Response Code and horizontal line corresponding to the current putting position of target Quick Response Code
Behind direction, you can according to the scan-line direction and horizontal line direction determined, determine between terminal and target Quick Response Code
Angle of inclination.For convenience of understanding, for example, in the scanning posture shown in Fig. 1 b, it may be determined that go out between terminal and target Quick Response Code
Angle of inclination be 45 °;For another example in the scanning posture shown in Fig. 1 c, it may be determined that go out between terminal and target Quick Response Code
Angle of inclination is 90 °.
What deserves to be explained is know otherwise between terminal and target Quick Response Code in the specific implementation, can also be
Angle of inclination, specifically, the embodiment of the present invention is not restricted.
In wherein a kind of implementation, the first determining unit 102 be specifically used for by gravity sensor, gyroscope or
Geomagnetic sensor obtains attitude information of the terminal when scanning the target Quick Response Code.
In wherein a kind of implementation, the option information includes Option and network address;First display unit 201 is used
In the option information according at least two option, the mark of at least two option is shown, and protrudes and indicates the mesh
Mark the mark of option;Output unit 104 is used for the option information according to the targets option, shows the network address in the option information
Corresponding webpage.
In wherein a kind of implementation, the option information includes Option and associated person information;First display is single
Member 201 is used for the option information according at least two option, shows the mark of at least two option, and prominent sign
The mark of the targets option;Output unit 104 is used for the option information according to the targets option, shows the targets option
Corresponding associated person information.
In wherein a kind of implementation, the option information includes Option and merchandise news;First display unit
201 are used for the option information according at least two option, show the mark of at least two option, and prominent sign institute
State the mark of targets option;Output unit 104 is used for the option information according to the targets option, shows the targets option pair
The merchandise news answered.
In wherein a kind of implementation, the first display unit 201 can include:Option information determining unit 2011, close
Receipts or other documents in duplicate member 2012 and mark display unit 2013, as shown in Figure 5 a, Fig. 5 a are the display units of one of which first that Fig. 5 is provided
Structural representation.
Option information determining unit 2011 is used for, according to the default separation between the option information of at least two option
Symbol, it is determined that the option information of each option;Associative cell 2012 is used for, the pass established between the mark and network address of each option
Connection relation;Mark display unit 2013 is used for, and shows the mark of at least two option, and the prominent sign targets option
Mark.
For convenience of understanding, by taking the information that Quick Response Code stores multiple contact persons as an example, it is assumed that be stored with target Quick Response Code "
Three ", " Li Si " " information of this three people of king five ", then in the specific implementation, the information of Quick Response Code storage includes 3 options, respectively selects
The option information of item is the information (such as name, phone, mailbox information) of each contact person.Then terminal scanning target Quick Response Code
Afterwards, the option information of entrained multiple options is parsed from target Quick Response Code first, and on a terminal screen described in display
Multiple options, wherein, targets option corresponding to current scanning posture is highlighted sign, and as shown in Figure 2 d, Fig. 2 d are Fig. 2 offers
One of which scanning interface schematic diagram;In the specific implementation, the key message for distinguishing different options can be shown, such as
The name of each contact person (so as to which the data that user can be accessed needs from current interface are very clear);It is directed to when receiving
The confirmation instruction of targets option, or, it is further defeated when not receiving the confirmation instruction for any option in preset duration
Go out the option information of targets option, such as name, phone, mailbox information.
In the terminal of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal is scanning the mesh
Mark attitude information during Quick Response Code;Wherein, the target Quick Response Code is stored with the option information of at least two options;According to scanning
Posture and the mapping relations of at least two option, determine targets option corresponding to the attitude information;Export the target
Content corresponding to the option information of option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code, terminal is according to sweeping
Retouch posture and export its corresponding object content, the operability in Quick Response Code operating process can be strengthened.
Fig. 6 is referred to, Fig. 6 is a kind of another structural representation of terminal provided in an embodiment of the present invention, of the invention real
Apply in example, the terminal removes scanning element 101, the first determining unit 102, the second determining unit 103 included in above-described embodiment
Outside output unit 104, it can also include:Second display unit 301, the 4th determining unit 302, acquiring unit 303, screening are single
Member 304, second establishes unit 305 and recognition unit 306.
Second display unit 301, for the option information according to the targets option, show the targets option.
In wherein a kind of implementation, output unit 104 is specifically used for, and receives the confirmation for the targets option
During instruction, or, when not receiving the confirmation instruction for the targets option in preset duration, export the targets option
Option information corresponding to content.
4th determining unit 302 is used for, and according to the option information of at least two option, determines at least two choosing
The option number of item;Acquiring unit 303 is used for, and obtains at least two predetermined angles pre-set;Screening unit 304 is used for,
If the angle number of at least two predetermined angle is more than or equal to the option number, from least two predetermined angle
In filter out the option number predetermined angle;Second, which establishes unit 305, is used for, and is believed according to the option of at least two option
Breath, each predetermined angle established in filtered out option number predetermined angle and the mapping relations of each option.For example, root
According to the sequencing of the option information of at least two option, reflecting between each option and the angle filtered out is established successively
Penetrate relation.Itself need to be set in the specific implementation, the mapping relations of option and angle can combine, determine each angle and choosing
After the mapping relations of item, the mapping relations can be embodied on the display interface in scanning process, mesh when such as changing scanning posture
Mark the variation of option.
In the specific implementation, some angles can be pre-set for some classics scanning postures in the terminal, for example, these
Angle can be 0 °, 45 °, 90 °, 135 °, 180 ° etc..If the angle number of at least two predetermined angles is more than or equal to option
Number, then option number predetermined angle is filtered out from least two predetermined angles.For example, it is assumed that predetermined angle has 5, option
Number is 4, then arbitrarily can choose 4 angles from default 5 angles.Believed according to the option of at least two option
The sequencing of breath, each predetermined angle established in filtered out option number predetermined angle and the mapping of each option are closed
System, so that after scanning target Quick Response Code, scanning posture and the mapping relations of option are obtained, according to terminal Current Scan target two
The attitude information of dimension code is that can determine that the targets option scanned.
In wherein a kind of implementation, the first determining unit 102 can include scan-line direction determining unit 1021, water
Horizontal line direction-determining unit 1022 and angle of inclination determining unit 1023, as shown in Figure 6 a, Fig. 6 a are the one of which that Fig. 6 is provided
The structural representation of first determining unit.
Scan-line direction determining unit 1021 is used for, and determines scan line side during target Quick Response Code described in the terminal scanning
To;Horizontal line direction-determining unit 1022 is used for, according to the position sensing figure of the target Quick Response Code and positioning figure, it is determined that
Horizontal line direction corresponding to the current putting position of the target Quick Response Code;Angle of inclination determining unit 1023 is used for, according to institute
Horizontal line direction and the scan-line direction are stated, determines the angle of inclination between the terminal and the target Quick Response Code.
In wherein a kind of implementation, the first determining unit 102 be specifically used for by gravity sensor, gyroscope or
Geomagnetic sensor obtains attitude information of the terminal when scanning the target Quick Response Code.
In wherein a kind of implementation, recognition unit 303 is used to identify that the option information of at least two option to be
It is no complete;First determining unit 102 is specifically used for, if the option information of at least two option is complete, determines that terminal is being swept
Retouch the attitude information during target Quick Response Code;Output unit 104 is specifically used for, if the option information of at least two option
It is imperfect, the prompting message of output scanning failure.
Generally, when the Quick Response Code of scanning is imperfect or image is fuzzy, terminal can not get complete Quick Response Code letter
Breath.In the embodiment of the present invention, terminal scanning target Quick Response Code, the 2 D code information stored in the Quick Response Code is got, and identify
Whether accessed 2 D code information is complete;When the 2 D code information is complete, the attitude information of terminal is further determined that;
When the 2 D code information is imperfect, the prompting message of scanning failure is sent;Prompting message can be shown by display screen
Come, can also be come out by speaker announcement.In the specific implementation, after sending the prompting message of scanning failure, can also pass through
Camera rescans target Quick Response Code, obtains 2 D code information again.
In the terminal of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal is scanning the mesh
Mark attitude information during Quick Response Code;Wherein, the target Quick Response Code is stored with the option information of at least two options;According to scanning
Posture and the mapping relations of at least two option, determine targets option corresponding to the attitude information;Export the target
Content corresponding to the option information of option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code, terminal is according to sweeping
Retouch posture and export its corresponding object content, the operability in Quick Response Code operating process can be strengthened.
Referring to Fig. 7, Fig. 7 is a kind of another structural representation of terminal provided in an embodiment of the present invention.Institute in the present embodiment
The terminal of description can include:At least one input equipment 100;At least one output equipment 200;At least one processor 300,
Such as CPU;With memory 400, above-mentioned input equipment 100, output equipment 200, processor 300 and memory 400 pass through bus
500 connections.
Wherein, input equipment 100 can include contact panel and camera;Contact panel can be touch-screen and touch-control
Screen, the operational order on detection terminal contact panel (as the confirmation for targets option instructs);Camera is used to scan
Quick Response Code, the image information of target Quick Response Code is obtained by camera.
Output equipment 200 is specifically as follows display screen, for exporting, showing that the data for needing to show after scanning Quick Response Code are believed
Breath (as stored in target Quick Response Code option, content corresponding to targets option etc.).
Memory 400 can be high-speed RAM memory, or non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned memory 400 is used to store batch processing code, above-mentioned input equipment 100, output
Equipment 200 and processor 300 are used to call the program code stored in memory 400, perform following operation:
Input equipment 100, for scanning target Quick Response Code, the target Quick Response Code is stored with the option of at least two options
Information.
Processor 300, for determining attitude information of the terminal when scanning the target Quick Response Code.
Processor 300, for according to scanning posture and the mapping relations of at least two option, determining the posture letter
Targets option corresponding to breath
Output equipment 200, for exporting content corresponding to the option information of the targets option.
In some feasible embodiments, output equipment 200 is being exported corresponding to the option information of the targets option
Before content, it is additionally operable to:
According to the option information of at least two option, at least two option, and the prominent sign mesh are shown
Mark option;
When processor 300 receives the confirmation instruction for the targets option, or, do not received in preset duration
For any option confirmation instruct when, content corresponding to the option information of the targets option is exported by output equipment 200.
In some feasible embodiments, output equipment 200 is being exported corresponding to the option information of the targets option
Before content, it is additionally operable to:
According to the option information of the targets option, the targets option is shown;
When processor 300 receives the confirmation instruction for the targets option, or, do not received in preset duration
For the targets option confirmation instruct when, exported by output equipment 200 corresponding to the option information of the targets option
Content.
In some feasible embodiments, the attitude information is included between the terminal and the target Quick Response Code
Angle of inclination;Input equipment 100 scan target Quick Response Code after, processor 300 also particularly useful for:
According to the option information of at least two option, the option number of at least two option is determined;
By 0-360 ° be divided into the option number identical several pieces, and determine angle corresponding to every part of border;
According to the option information of at least two option, the mapping relations of each angle and each option are established.
In some feasible embodiments, the attitude information is included between the terminal and the target Quick Response Code
Angle of inclination;Input equipment 100 scan target Quick Response Code after, processor 300 also particularly useful for:
According to the option information of at least two option, the option number of at least two option is determined;
Obtain at least two predetermined angles pre-set;
If the angle number of at least two predetermined angle is more than or equal to the option number, from described at least two
The option number predetermined angle is filtered out in predetermined angle;
According to the option information of at least two option, establish each in filtered out option number predetermined angle
Predetermined angle and the mapping relations of each option.
In some feasible embodiments, processor 300 determines posture of the terminal when scanning the target Quick Response Code
Information, specifically include:
Determine scan-line direction during target Quick Response Code described in the terminal scanning;
According to the position sensing figure of the target Quick Response Code and positioning figure, determine the target Quick Response Code works as forward swing
Put the horizontal line direction of position correspondence;
According to the horizontal line direction and the scan-line direction, determine between the terminal and the target Quick Response Code
Angle of inclination.
In some feasible embodiments, terminal can also include gravity sensor, gyroscope or geomagnetic sensor
Deng attitude transducer (not shown), processor 300 determines attitude information of the terminal when scanning the target Quick Response Code, bag
Include and posture letter of the terminal when scanning the target Quick Response Code is obtained by gravity sensor, gyroscope or geomagnetic sensor
Breath.
In some feasible embodiments, the option information includes Option and network address;The basis of output equipment 200
The option information of at least two option, show at least two option, and the prominent sign targets option, specific bag
Include:
According to the option information of at least two option, the mark of at least two option is shown, and protrudes sign
The mark of the targets option;
Output equipment 200 export the option information of the targets option corresponding to content, specifically include:
According to the option information of the targets option, webpage corresponding to the network address in the option information is shown.
In some feasible embodiments, the option information includes Option and associated person information;Output equipment
200 according to the option information of at least two option, shows at least two option, and prominent indicates the target choosing
, specifically include:
According to the option information of at least two option, the mark of at least two option is shown, and protrudes sign
The mark of the targets option;
Output equipment 200 export the option information of the targets option corresponding to content, specifically include:
According to the option information of the targets option, associated person information corresponding to the targets option is shown.
In some feasible embodiments, the option information includes Option and merchandise news;Output equipment 200
According to the option information of at least two option, at least two option, and the prominent sign targets option, tool are shown
Body includes:
According to the option information of at least two option, the mark of at least two option is shown, and protrudes sign
The mark of the targets option;
Output equipment 200 export the option information of the targets option corresponding to content, specifically include:
According to the option information of the targets option, merchandise news corresponding to the targets option is shown.
In some feasible embodiments, output equipment 200 is according to the option information of at least two option, display
The mark of at least two option, including:
Processor 300 is according to the default separator between the option information of at least two option, it is determined that each option
Option information;
The incidence relation that processor 300 is established between the mark and network address of each option;
Output equipment 200 shows the mark of at least two option.
In some feasible embodiments, processor 300 determines posture of the terminal when scanning the target Quick Response Code
Before information, processor 300 is additionally operable to
Identify whether the option information of at least two option is complete;
If the option information of at least two option is complete, processor 300 determines that terminal is scanning the target two dimension
Attitude information during code;
If the option information of at least two option is imperfect, the prompting message of the output scanning failure of output unit 200.
In the specific implementation, the input equipment 100, output equipment 200 and processor 300 described in the embodiment of the present invention can
For performing the implementation described in above-described embodiment, here is omitted.
In the terminal of description of the embodiment of the present invention, during terminal scanning target Quick Response Code, determine that terminal is scanning the mesh
Mark attitude information during Quick Response Code;Wherein, the target Quick Response Code is stored with the option information of at least two options;According to scanning
Posture and the mapping relations of at least two option, determine targets option corresponding to the attitude information;Export the target
Content corresponding to the option information of option.Using the embodiment of the present invention, when user is by terminal scanning Quick Response Code, terminal is according to sweeping
Retouch posture and export its corresponding object content, the operability in Quick Response Code operating process can be strengthened.
Unit in all embodiments of the invention, universal integrated circuit, such as CPU (Central can be passed through
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.