CN106339741A - Dynamic two-dimensional code generation method, device, identification method and device - Google Patents

Dynamic two-dimensional code generation method, device, identification method and device Download PDF

Info

Publication number
CN106339741A
CN106339741A CN201610794101.XA CN201610794101A CN106339741A CN 106339741 A CN106339741 A CN 106339741A CN 201610794101 A CN201610794101 A CN 201610794101A CN 106339741 A CN106339741 A CN 106339741A
Authority
CN
China
Prior art keywords
quick response
code
response code
dynamic
coding
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
Application number
CN201610794101.XA
Other languages
Chinese (zh)
Inventor
陈凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201610794101.XA priority Critical patent/CN106339741A/en
Publication of CN106339741A publication Critical patent/CN106339741A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06112Constructional details the marking being simulated using a light source, e.g. a barcode shown on a display or a laser beam with time-varying intensity profile
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Optics & Photonics (AREA)
  • General Engineering & Computer Science (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The invention discloses a dynamic two-dimensional code generation method. The dynamic two-dimensional code generation method comprises steps that unique codes of multiple identities are generated; for the unique code of each identity, according to preset transformation rules, a dynamic two-dimensional code is generated on the basis of the code and a static two-dimensional code. The invention further brings forward a dynamic two-dimensional code identification method, the method comprises steps that the dynamic two-dimensional code is acquired, and the dynamic two-dimensional code is generated from the unique identity code and the static two-dimensional code; according to the preset transformation rules, the unique identity code is extracted from the dynamic two-dimensional code. The method is advantaged in that sellers are facilitated to effectively manage two-dimensional codes, and unnecessary loss of the sellers caused by two-dimensional code abuse can be prevented.

Description

Dynamically two-dimentional code generation method and device, recognition methods and device
Technical field
The application is related to message area, more particularly, to one kind dynamically two-dimentional code generation method, identification of dynamic Quick Response Code Method, dynamic Quick Response Code generation device and dynamic two-dimension code recognition device.
Background technology
Quick Response Code is the chequered with black and white figure being distributed in the two-dimensional direction according to certain rules with certain specific geometric figure Shape record data symbolic information, dexterously using " 0 ", " 1 " bit constituting computer-internal logical foundations on coding The concept of stream, represents word numerical information using several geometrical bodies corresponding with binary system, is set by image input Standby or photoelectric scanning device automatically identifying and reading is automatically processed with realizing information.
Contain much information because Quick Response Code has, coding range is wide, decoding reliability is high and the low distinguishing feature of use cost, It has been widely used in every field.But, the technology of Quick Response Code low cost, coding and decoding is open, makes personation two dimension The threshold of code is also very low.One identical Quick Response Code can unrestrictedly be replicated and transmit, can be for some business operators Using Quick Response Code carry on the work activity when can cause large effect, such as businessman preferential in limited time, such as in limited time between, limit Quantity is preferential, or, the activity such as ballot, integration, prize drawing, businessman is difficult to judge whether Quick Response Code is abused it is impossible to Quick Response Code Realize effectively managing, businessman may be caused with unnecessary loss.
Content of the invention
The application provides one kind dynamically two-dimentional code generation method, dynamic two-dimensional code identification method, dynamic Quick Response Code Generation device and dynamic two-dimension code recognition device, can easily replicate solving present Quick Response Code and unrestrictedly transmit Cause businessman using Quick Response Code carry on the work activity when cannot effectively manage Quick Response Code lead to Quick Response Code to be abused and The problem that the business activities of businessman are impacted.
According to the application's in a first aspect, the application provides one kind dynamically two-dimentional code generation method, if comprising: generating A dry identity uniquely encodes;Each identity is uniquely encoded, according to default transformation rule, by this coding and static state Quick Response Code generate dynamic Quick Response Code.
Preferably, default transformation rule includes: each code element in coding corresponds to Quick Response Code in dynamic Quick Response Code respectively Different dispaly states;Wherein, different dispaly states includes: in dynamic Quick Response Code Quick Response Code display every time different when One of length, different colours and different pattern or their any combination, wherein adjacent display ought be only with difference twice Duration is also spaced the period of one section of not two-dimensional code display when distinguishing.
Preferably, coding include initial code, extra-code and check code, according to default transformation rule, will encode with quiet When the Quick Response Code of state generates dynamic Quick Response Code, comprising: whether the initial code in detection coding and check code meet regulation and want Ask;If it is, according to default transformation rule, coding is generated dynamic Quick Response Code with static Quick Response Code.
According to the second aspect of the application, the application provides a kind of dynamic two-dimensional code identification method, comprising: obtaining dynamic The Quick Response Code of state, wherein dynamic Quick Response Code is generated by the unique coding of identity and static Quick Response Code;According to default contravariant Change rule, the identity extracted in dynamic Quick Response Code uniquely encodes.
Preferably, default inverse transformation rule includes: the different dispaly state difference of Quick Response Code in dynamic Quick Response Code Each code element in corresponding coding;Wherein, different dispaly states includes: the difference that in dynamic Quick Response Code, Quick Response Code shows every time One of duration, different colours and different pattern or their any combination, wherein adjacent display ought be only with not twice Also it is spaced the period of one section of not two-dimensional code display with duration when distinguishing.
Preferably, coding includes initial code, extra-code and check code, according to default inverse transformation rule, extracts dynamic Quick Response Code in identity when uniquely encoding, also include: according to the check code in the coding extracting, judge that whether this coding is Error code.
According to the third aspect of the application, the application provides a kind of dynamic Quick Response Code generation device, comprising: coding life Become module, uniquely encode in order to generate several identity;Dynamic two-dimension code generation module, in order to unique for each identity Coding, according to default transformation rule, this coding and static Quick Response Code are generated dynamic Quick Response Code.
Preferably, also include transformation rule setup module, for arranging transformation rule, wherein default transformation rule bag Include: each code element in coding corresponds to the different dispaly state of Quick Response Code in dynamic Quick Response Code respectively;Wherein, different display State includes: Quick Response Code one of the different durations of display, different colours and different pattern every time in dynamic Quick Response Code Or their any combination, wherein adjacent show twice be also spaced one section of not two-dimensional code display with different durations when only distinguishing Period.
Preferably, coding includes initial code, extra-code and check code, and dynamic two-dimension code generation module includes: detection is single Unit, in order to detect whether the initial code in coding and end code meet regulation and require;Signal generating unit, in order to when detector unit When result is to be, then according to default transformation rule, coding is generated dynamic Quick Response Code with static Quick Response Code.
According to the fourth aspect of the application, the application provides a kind of dynamic two-dimension code recognition device, comprising: Quick Response Code Acquisition module, in order to obtain dynamic Quick Response Code, wherein dynamic Quick Response Code is by the unique coding of identity and static Quick Response Code Generate;Coding acquisition module, in order to according to default inverse transformation rule, the identity extracted in dynamic Quick Response Code is uniquely compiled Code.
Preferably, also include inverse transformation rule setting module, for arranging inverse transformation rule, wherein inverse transformation rule bag Include: in dynamic Quick Response Code, the different dispaly state of Quick Response Code corresponds to each code element in coding respectively;Wherein, different display State includes: Quick Response Code one of the different durations of display, different colours and different pattern every time in dynamic Quick Response Code Or their any combination, wherein adjacent show twice be also spaced one section of not two-dimensional code display with different durations when only distinguishing Period.
Preferably, coding includes initial code, extra-code and check code, coding acquisition module also in order to: according to extraction Check code in coding, judges whether this coding is error code.
The application has the beneficial effects that: is uniquely encoded by arranging identity, then utilizes the different displays of Quick Response Code This coding of state representation, so that user also obtains this coding while obtaining dynamic Quick Response Code, this makes it possible to so that two Dimension code is efficiently managed, and prevents businessman's Quick Response Code used in business activities to be abused, it is to avoid because Quick Response Code is indiscriminate With causing the unnecessary loss of businessman, also ensure that user participates in the enthusiasm of businessman's activity.
Brief description
Fig. 1 is the application scenario diagram that a kind of enforcement of the application exemplifies;
Fig. 2 is the flow chart of the dynamically two-dimentional code generation method that a kind of enforcement of the application exemplifies;
Fig. 3 is the flow chart of another kind of dynamically two-dimentional code generation method implementing to exemplify of the application;
Fig. 4 is the schematic diagram of the coded system of the application Quick Response Code;
Fig. 5 is the schematic diagram that the different duration of the application Quick Response Code display represents code element 1 or 0;
Fig. 6 is that the application Quick Response Code shows that different colours represent the schematic diagram of code element 1 or 0;
Fig. 7 is that the application Quick Response Code shows that different pattern represents the schematic diagram of code element 1 or 0;
Fig. 8 is that the combination of the different durations of the application Quick Response Code display and pattern represents the schematic diagram of code element 1 or 0;
Fig. 9 is that the combination of the different durations of the application Quick Response Code display and color represents the schematic diagram of code element 1 or 0;
Figure 10 is that the Quick Response Code of the transformation rule of the application shows the flow chart that different durations represent 1 or 0;
Figure 11 is that the Quick Response Code of the transformation rule of the application shows the flow chart that different colours represent 1 or 0;
Figure 12 is that the Quick Response Code of the transformation rule of the application shows the flow chart that different pattern represents 1 or 0;
Figure 13 is the flow process that the Quick Response Code display different pattern of the transformation rule of the application and the combination of color represent 1 or 0 Figure;
Figure 14 is the flow process that the different duration of Quick Response Code display of the transformation rule of the application and the combination of color represent 1 or 0 Figure;
Figure 15 is the flow chart of the dynamic two-dimensional code identification method that a kind of enforcement of the application exemplifies;
Figure 16 is the flow chart of the dynamic two-dimensional code identification method implementing to exemplify according to another exemplary;
Figure 17 is the block diagram of the dynamic Quick Response Code generating means according to an exemplary embodiment;
Figure 18 is the block diagram of the dynamic two-dimension code recognition device according to an exemplary embodiment.
Specific embodiment
Combine accompanying drawing below by specific embodiment the application is described in further detail.
First some terms are described.Uuid, full name is universally unique identifier, Chinese For general unique identifier, the purpose of uuid, it is to allow all elements in distributed system, can have unique identification information, Recognize specifying of information without to do through central control terminal.Consequently, it is possible to everyone could set up not with other people The uuid of conflict.
Insight of the invention is that and uniquely encoded by arranging identity, then utilize Quick Response Code in dynamic Quick Response Code Different dispaly states represents the code element of this coding so that user also obtains while businessman obtains dynamic Quick Response Code there This coding, and when user forwards this Quick Response Code, recipient is because only that the Quick Response Code of static state and do not have corresponding identity Unique coding, and cannot be using this Quick Response Code so that Quick Response Code is not abused.
Embodiment one:
Refer to Fig. 1, this scene includes mobile terminal and server, mobile terminal can be smart mobile phone or put down Plate apparatus such as computer, mobile terminal is connected with server communication.Wherein, server generates global identity and uniquely encodes, and root Generate dynamic Quick Response Code according to this coding.After mobile terminal connection server, this dynamic Quick Response Code can be obtained from server, Mobile terminal can also obtain this coding according to this transformation rule while obtaining dynamic Quick Response Code.
Embodiment two:
Refer to Fig. 2, the flow chart of the dynamically two-dimentional code generation method of Fig. 2 the application, the product of this dynamic Quick Response Code Generation method, comprises the following steps:
Step s101: generate several identity and uniquely encode.The unique coding of identity can be generated by server Uuid is realizing it is also possible to be realized by any one or combinations thereof of self-defined numeral, letter and character.
Such as, the code element of coding is letter, is made up of two letters of ab, then can arrange rule change is that Quick Response Code is each Alphabetical a is represented, Quick Response Code represents alphabetical b when showing yellow 3 seconds every time, and the rest may be inferred during red 3 seconds of display.
Step s102: each identity is uniquely encoded, according to default transformation rule, by this coding and static state Quick Response Code generates dynamic Quick Response Code.Because same static Quick Response Code and a unique coding generate one dynamic two Dimension code, therefore this dynamic Quick Response Code is also unique, thus can by by same static Quick Response Code respectively with many The unique coding of individual identity generates multiple dynamic Quick Response Codes to correspond to, and realizes having of the quantity to same static two dimensional code etc. Effect management.
In the present embodiment, coding is made up of code element, and each code element in coding corresponds to two dimension in dynamic Quick Response Code respectively The different dispaly state of code;Wherein, different dispaly states includes: the difference that in dynamic Quick Response Code, Quick Response Code shows every time Any one in duration, different colours and different pattern or their any combination, wherein adjacent display ought be only twice Also it is spaced the period of one section of not two-dimensional code display with different durations when distinguishing.
In the present embodiment, the code element of coding can be any one in letter, numeral and character, do not limit here System, can be configured according to specific circumstances.It should be noted that Quick Response Code display different pattern here refers in two dimension In the middle of code, the position of display pattern adds different patterns, and such as, in the middle of Quick Response Code, the position of display pattern adds numeral 1 The one of code element of pattern representation.
Embodiment three:
Refer to Fig. 3, Fig. 3 is to illustrate a kind of flow process of dynamic two dimension code generation method according to an exemplary embodiment Figure, the production method of this dynamic Quick Response Code, comprise the following steps:
Step s201: generate several identity and uniquely encode.The unique coding of identity can be generated by server Uuid is realizing it is also possible to be realized by any one or combinations thereof of self-defined numeral, letter and character.By Generate a dynamic Quick Response Code, therefore this dynamic Quick Response Code in same static Quick Response Code and a unique coding It is unique, thus can be by by same static Quick Response Code, coding unique with multiple identity carrys out corresponding generation respectively Multiple dynamic Quick Response Codes, realize effective management of the quantity to same static two dimensional code etc..
Refer to Fig. 4, in the present embodiment, coding is made up of 0 and/or 1, the mode of coding may is that coding includes initiateing Code, extra-code and check code.Such as it is assumed that initial code is 101, check code is 010, and extra-code is the numeral in 00 to 11, The scope then encoding is between 10100010 to 10111010.
Refer to Fig. 5 to Fig. 9 below to illustrate that in dynamic Quick Response Code, Quick Response Code display different conditions represent code element 1 or 0.
Refer to Fig. 5, code element 1 or 0 is represented with the duration that Quick Response Code display in dynamic Quick Response Code sets.Such as, screen Light, after Quick Response Code shows 0.5 second, screen extinguishes, now two-dimentional representation code element 1, or, screen lights, and Quick Response Code shows 0.3 second, screen extinguished, now two-dimentional representation code element 0.Here keep the shinny time not to be restricted screen, be also right The time that Quick Response Code shows is not restricted, and can be configured as the case may be.
Refer to Fig. 6, represent 1 or 0 with the color that Quick Response Code display in dynamic Quick Response Code sets.Wherein, red to show Color Quick Response Code represents 1 in 0.5 second, represents code element 0 within 0.3 second with two-dimensional code display.Likewise, the time here Quick Response Code being shown is not It is restricted, can be configured as the case may be.
Refer to Fig. 7, the pattern representation 1 or 0 setting with Quick Response Code display in dynamic Quick Response Code.Wherein, as illustrated, Screen lights, and Quick Response Code showed the first pattern after 0.5 second, and screen extinguishes, now two-dimentional representation code element 1;Screen lights, two dimension After 0.3 second, screen extinguishes code display the second pattern, now two-dimentional representation code element 0.
Refer to Fig. 8, the pattern setting and color represent 1 or 0 with Quick Response Code display in dynamic Quick Response Code.Set with first The Quick Response Code determining color shows the pattern representation code element 1 of the first setting, shows the second setting with the Quick Response Code of the second setpoint color Pattern representation code element 0.Wherein, the Quick Response Code of setpoint color and setting pattern is not restricted here, can be entered according to actual conditions Row setting.Such as, the first pattern representation 1 is shown with red Quick Response Code, the second pattern representation code element 0 is shown with yellow Quick Response Code.
Refer to Fig. 9, the duration setting with Quick Response Code display in dynamic Quick Response Code and color combination represent code element 1 or 0. Such as, screen lights, and red Quick Response Code shows 0.5 second, then screen extinguishing, and Quick Response Code does not show, now two-dimentional representation code Unit 1;Screen lights, and yellow Quick Response Code shows 0.5 second, then screen extinguishing, and Quick Response Code does not show, now two-dimentional representation code element 0.
Step s202: whether the initial code in the coding that detection service device generates and end code meet regulation and require, such as Fruit is then to carry out step s203, otherwise, carries out step s204.Such as, can arrange initial code is 101, and check code is 010, also It is that the form being encoded to 101+ extra-code+010 presents to be only and meets coding requirement.Accordingly, it would be desirable to first three of test code Position to judge with latter three whether this coding is correct coding.
Step s203: according to described default transformation rule, coding is generated dynamic Quick Response Code with static Quick Response Code.
In the present embodiment: the code element of coding is 0 or 1, transformation rule is two dimension in the corresponding dynamic Quick Response Code of setting 0 or 1 The different dispaly states of code.Wherein, different states includes: in dynamic Quick Response Code Quick Response Code every time the different durations of display, One of different colours and different pattern or their any combination, wherein adjacent display ought be only with different durations twice Also it is spaced the period of one section of not two-dimensional code display during differentiation.Here the dispaly state of Quick Response Code is not limited, can basis Particular situation is configured.
The several embodiments of transformation rule are presented herein below.
Refer to Fig. 5 and Figure 10, the first is: represent 0 or 1 with the different durations that Quick Response Code shows every time.Specifically, when Screen lights, and show Quick Response Code while start timing, set for first when calculating time of screen display Quick Response Code When fixing time, according to transformation rule, generate the 0 or 1 of composition coding, now, screen extinguishes, timer reclocking, Zhi Dao Two setting time backed off after randoms, again wait until that screen lights and repeat above-mentioned process.Such as, it is encoded to 10, show 2 with Quick Response Code Second represents 1, is shown 1 second with Quick Response Code and represents 0, then, when screen is light, screen display Quick Response Code represents 1, so in 2 seconds Afterwards, screen extinguishes, and or not after 1 second, screen is not again light for two-dimensional code display, continues two-dimensional code display and represents 0 in 1 second, now, just real Show and carried out presentation code with the different durations of Quick Response Code.
Refer to Fig. 6 and Figure 11, second is: represent 0 or 1 with the different colours that Quick Response Code shows every time.Specifically, shield Start timing while the Quick Response Code of curtain display setpoint color, show that the time of setpoint color sets for first when calculating Quick Response Code When fixing time, according to transformation rule, generate the 0 or 1 of composition coding, now, stopping two-dimensional code display, timer reclocking, Until the second setting time backed off after random, repeat above-mentioned process.Such as, it is encoded to 10, continue 1 second with Quick Response Code display redness Time represents 1, continues to represent 0 in 1 second with Quick Response Code display yellow, then represent 1 when Quick Response Code display redness continues 1 second, Then, screen extinguishes, and or not after 1 second, screen is not again light for two-dimensional code display, continues two-dimensional code display 1 second to represent 0, now, It is achieved that and carry out presentation code with the different durations of Quick Response Code.In other embodiments, the restriction of display time can be not provided with, As long as Quick Response Code display setpoint color then represents 0 or 1.
Refer to Fig. 7 and Figure 12, the third is: represent 0 or 1 with the different pattern that Quick Response Code shows every time.Specifically, shield Curtain display starts timing while setting the Quick Response Code of pattern, shows that the time setting pattern sets as first when calculating Quick Response Code When fixing time, according to transformation rule, generate the 0 or 1 of composition coding, now, stopping two-dimensional code display, timer reclocking, Until the second setting time backed off after random, repeat above-mentioned process.Example is similar to above-mentioned, may be referred to above description, It is not repeated herein.
Refer to Fig. 8 and Figure 13, the 4th kind is: the different pattern of display and the combination of color represent 0 every time with Quick Response Code Or 1.Specifically, screen display starts timing while setting the Quick Response Code of image and setpoint color, when calculating screen display Set image and setpoint color Quick Response Code time as the first setting time when, according to transformation rule, generate the 0 of composition coding Or 1, now, stop two-dimensional code display, timer reclocking, until the second setting time backed off after random, repeat above-mentioned mistake Journey.
Refer to Fig. 9 and Figure 14, the 5th kind is: the different durations of display and the combination of color to represent every time with Quick Response Code 0 or 1.Specifically, when screen lights, start timing while the Quick Response Code of display setpoint color, set to screen display when calculating When to determine time of the Quick Response Code of color be the first setting time, according to transformation rule, generate the 0 or 1 of composition coding, now, screen Curtain extinguishes, and timer reclocking, until the second setting time backed off after random, again waits until that screen lights and repeats above-mentioned mistake Journey.
It should be noted that the first setting time here and the second setting time can be set according to actual demand Put, be not restricted here.
Step s204: terminate to generate dynamic Quick Response Code.After a dynamic Quick Response Code generates, continue according to server The Quick Response Code repeat the above steps s202 to s204 of the coding, transformation rule and static state that generate is other new dynamic to generate Quick Response Code.
Example IV:
Refer to Figure 15, Figure 15 is the flow chart of the dynamic two-dimensional code identification method of the application, dynamic Quick Response Code identification Method comprises the following steps:
Step s301: obtain dynamic Quick Response Code.Wherein, dynamic Quick Response Code is by the unique coding of identity and static two Dimension code generates.The unique coding of identity can by system generate uuid realize it is also possible to by self-defined numeral, letter with And any one or combinations thereof of character is realizing.Due to same static Quick Response Code and a unique coding life Become a dynamic Quick Response Code, therefore this dynamic Quick Response Code is also unique, thus can pass through same static state Coding unique with multiple identity carrys out the multiple dynamic Quick Response Codes of corresponding generation to Quick Response Code respectively, realizes to same static two dimensional Effective management of the quantity of code etc..In the present embodiment, can be scanned by mobile phone app and be obtained by way of dynamic Quick Response Code, Or, the picture comprising dynamic Quick Response Code is opened on mobile phone app, automatic identification obtains the Quick Response Code on picture.
Step s302: according to default inverse transformation rule, the identity extracted in dynamic Quick Response Code uniquely encodes.Default Anti-change rule with embodiment three describe identical, specifically refer to embodiment two, be not repeated herein.Extract process with The process of the dynamic Quick Response Code of above-mentioned generation is contrary, and such as, inverse transformation rule shows redness 3 every time for dynamic Quick Response Code Second when represent alphabetical a, Quick Response Code represents alphabetical b when showing yellow 3 seconds every time, then during red 3 seconds of dynamic Quick Response Code display, then The code element extracted is alphabetical a, and during dynamic Quick Response Code display yellow 3 seconds, then the code element extracted is alphabetical b.
Embodiment five:
Figure 16 is the flow chart exemplifying dynamic two-dimensional code identification method according to another exemplary enforcement, dynamically two dimension Code recognition methods comprises the following steps:
Step s401: obtain dynamic Quick Response Code.Wherein, dynamic Quick Response Code is by the unique coding of identity and static two Dimension code generates.The unique coding of identity can by system generate uuid realize it is also possible to by self-defined numeral, letter with And any one or combinations thereof of character is realizing.Due to same static Quick Response Code and a unique coding life Become a dynamic Quick Response Code, therefore this dynamic Quick Response Code is also unique, thus can pass through same static state Coding unique with multiple identity carrys out the multiple dynamic Quick Response Codes of corresponding generation to Quick Response Code respectively, realizes to same static two dimensional Effective management of the quantity of code etc..In the present embodiment, part by way of Quick Response Code can be scanned by mobile phone app and obtain, or, in hand The picture comprising Quick Response Code is opened on machine app, automatic identification obtains the Quick Response Code on picture.
Step s402: according to default inverse transformation rule, the identity extracted in dynamic Quick Response Code uniquely encodes.Default Inverse transformation rule with embodiment three describe identical, specifically refer to embodiment three, be not repeated herein.
Step s403: according to the check code in the described coding extracting, judge whether this coding is error code, if it is weighs Newly jump to step s405, otherwise jump to step s404.If this check code is not default check code then it is assumed that this is encoded to by mistake Code.Such as, the check code of pre-arranged code is 101, if the code element extracting the check code position of coding obtaining is 110, no It is default check code, this is encoded to error code, this dynamic Quick Response Code is not construed as correct Quick Response Code.
Step s404: prompting user obtains and encodes unsuccessfully.
Step s405: prompting user obtains and encodes successfully.
Embodiment six:
Figure 17 is the schematic diagram illustrating dynamic Quick Response Code generation device according to an exemplary embodiment, and Quick Response Code produces dress Put including: coding generation module 501, uniquely encode in order to generate several identity;Dynamic two-dimension code generation module 502, uses Uniquely to encode for each identity, according to default transformation rule, this coding and static Quick Response Code are generated dynamic Quick Response Code.
This dynamic Quick Response Code generation device also includes transformation rule setup module 503, for arranging transformation rule, presets Transformation rule include: each code element in coding corresponds to the different dispaly state of Quick Response Code in dynamic Quick Response Code respectively.Its In, different dispaly states includes: the Quick Response Code different durations of display, different colours and difference every time in dynamic Quick Response Code One of pattern or their any combination, wherein adjacent show twice be also spaced one section when only distinguishing with different durations The not period of two-dimensional code display.
In the present embodiment, coding includes initial code, extra-code and check code.Dynamic two-dimension code generation module 501 includes: Detector unit 5011, in order to detect whether the initial code in coding and end code meet regulation and require;Signal generating unit 5012, uses If with when detector unit result for be when, according to default transformation rule, will coding and static Quick Response Code generate dynamic The Quick Response Code of state.
Embodiment six:
Figure 18 is the block diagram illustrating dynamic two-dimension code recognition device according to an exemplary embodiment, and dynamic Quick Response Code is known Other device includes: two-dimensional code acquisition module 601, and in order to obtain dynamic Quick Response Code, wherein dynamic Quick Response Code is unique by identity Coding and static Quick Response Code generate;Coding acquisition module 602, in order to according to default inverse transformation rule, to extract dynamic Identity in Quick Response Code uniquely encodes.
This dynamic Quick Response Code generation device also includes inverse transformation rule setting module, for arranging inverse transformation rule, in advance If transformation rule include: the different dispaly state of the Quick Response Code each code element in corresponding coding respectively in dynamic Quick Response Code; Wherein, different dispaly states includes: the Quick Response Code different durations of display, different colours and not every time in dynamic Quick Response Code With one of pattern or their any combination, wherein adjacent show twice be also spaced one when only distinguishing with different durations The period of section not two-dimensional code display.
Coding includes initial code, extra-code and check code, coding acquisition module also in order to: in the coding according to extraction Check code, judges whether this coding is error code.
With reference to Fig. 1 to Figure 18, embodiments of the invention to be described.
First, businessman is arranged with the reward voucher of static two-dimentional representation, and limits the quantity of reward voucher as four.Service Device generates four global identity and uniquely encodes, and sets the transformation rule of the corresponding Quick Response Code of coding.This coding has included Beginning code, extra-code and check code.In the present embodiment, initial code is 10, and check code is 01, and extra-code then from 00 to 11, is then compiled Code is 100001,100101,101001,101101.And transformation rule is each Show Color of Quick Response Code in dynamic Quick Response Code It is yellow and duration to be to represent 1 when 0.5 second, each Show Color of Quick Response Code is red and the duration is 0.5 second When represent 0.
The mode that user obtains Quick Response Code may is that businessman plays video or the user showing this Quick Response Code by screen Record the video of this Quick Response Code by terminal.This Quick Response Code is such display: screen lights, the Quick Response Code of display yellow 0.5 second, screen extinguished;Screen lights again, the red Quick Response Code of display 0.5 second, and screen extinguishes;Screen lights, display yellow Quick Response Code 0.5 second, screen extinguishes;Screen lights, the Quick Response Code of display yellow 0.5 second, and screen extinguishes;Screen lights again, shows Show red Quick Response Code 0.5 second, screen extinguishes;Screen lights, the Quick Response Code of display yellow 0.5 second, and screen extinguishes.
User scans this Quick Response Code by mobile phone app, or, after client opens the link of businessman automatic identification this two Dimension code, meanwhile, mobile phone app, can obtain to server request inverse transformation rule then according to the regular and dynamic Quick Response Code of inverse transformation Obtain is encoded to 101101.Now, mobile phone just obtains identity and uniquely encodes, and server end is known and is successfully transmitted out two Dimension code, such server end is known that place and the quantity of Quick Response Code transmission, just Quick Response Code can be carried out and effectively manage.
By playing the Quick Response Code of this Dynamic Announce to businessman, Quick Response Code that user can represent that oneself obtains is source In businessman and globally unique.If the Quick Response Code that user obtains is to forward, dynamic Quick Response Code cannot be play, also just no Method participates in the activity that businessman formulates according to Quick Response Code.
Compared with prior art, the dynamically two-dimentional code generation method of the present invention, dynamic two-dimensional code identification method, dynamic Quick Response Code generation device and dynamic two-dimension code recognition device, uniquely encoded by arranging identity, then utilize dynamic Quick Response Code different dispaly states represent this coding so that user obtain Quick Response Code while also obtain this coding, this Sample allows for Quick Response Code and is efficiently managed, prevent businessman's Quick Response Code in business activities to be abused, it is to avoid unnecessary Loss, also ensure that user participate in businessman activity enthusiasm.
It will be understood by those skilled in the art that all or part of step of various methods can be passed through in above-mentioned embodiment Program completes instructing related hardware, and this program can be stored in a computer-readable recording medium, and storage medium can wrap Include: read-only storage, random access memory, disk or CD etc..
Above content is further description the application made with reference to specific embodiment it is impossible to assert this Shen Being embodied as please is confined to these explanations.For the application person of an ordinary skill in the technical field, do not taking off On the premise of the present application design, some simple deduction or replace can also be made.

Claims (10)

1. one kind dynamically two-dimentional code generation method it is characterised in that comprising:
Generate several identity uniquely to encode;
Each identity is uniquely encoded, according to default transformation rule, this coding and static Quick Response Code is generated dynamic The Quick Response Code of state.
2. as claimed in claim 1 dynamically two-dimentional code generation method it is characterised in that described default transformation rule bag Include:
Each code element in described coding corresponds to the different dispaly state of Quick Response Code in described dynamic Quick Response Code respectively;
Wherein, described different dispaly state includes:
In described dynamic Quick Response Code Quick Response Code every time one of the different durations of display, different colours and different pattern or Their any combination of person, wherein adjacent shows that being also spaced one section when only distinguishing with different durations does not show described two dimension twice The period of code.
3. as claimed in claim 2 dynamically two-dimentional code generation method it is characterised in that described coding includes initial code, attached Raise the price and check code, according to described default transformation rule, described coding and static Quick Response Code are generated dynamically two dimension During code, comprising:
Whether the initial code in the described coding of detection and check code meet regulation and require;
If it is, according to described default transformation rule, described coding and static Quick Response Code are generated dynamic Quick Response Code.
4. a kind of dynamic two-dimensional code identification method it is characterised in that comprising:
Obtain dynamic Quick Response Code, wherein said dynamic Quick Response Code is generated by the unique coding of identity and static Quick Response Code;
According to default inverse transformation rule, the identity extracted in described dynamic Quick Response Code uniquely encodes.
5. as claimed in claim 4 dynamic two-dimensional code identification method it is characterised in that described default inverse transformation rule bag Include:
In described dynamic Quick Response Code, the different dispaly state of Quick Response Code corresponds to each code element in described coding respectively;Wherein, Described different dispaly state includes: the Quick Response Code different durations of display, different colours and not every time in dynamic Quick Response Code With one of pattern or their any combination, wherein adjacent show twice be also spaced one when only distinguishing with different durations The period of section not two-dimensional code display.
6. a kind of dynamic Quick Response Code generation device it is characterised in that comprising:
Coding generation module, uniquely encodes in order to generate several identity;
Dynamic two-dimension code generation module, in order to uniquely to encode for each identity, according to default transformation rule, this is compiled Code generates dynamic Quick Response Code with static Quick Response Code.
7. the dynamic Quick Response Code generation device stated as claim 6 it is characterised in that also including transformation rule setup module, For arranging described transformation rule, wherein said default transformation rule includes:
Each code element in described coding corresponds to the different dispaly state of Quick Response Code in described dynamic Quick Response Code respectively;
Wherein, described different dispaly state includes:
In dynamic Quick Response Code Quick Response Code every time one of the different durations of display, different colours and different pattern or it Any combination, wherein adjacent show when being also spaced one section of not two-dimensional code display when only distinguishing with different durations twice Section.
8. as claimed in claim 7 dynamic Quick Response Code generation device it is characterised in that described coding includes initial code, attached Raise the price and check code, described dynamic two-dimension code generation module includes:
Detector unit, in order to detect whether the initial code in coding and end code meet regulation and require;
Signal generating unit, in order to when the result of described detector unit is to be, then according to default transformation rule, will encode and static state Quick Response Code generate dynamic Quick Response Code.
9. a kind of dynamic two-dimension code recognition device it is characterised in that comprising:
Two-dimensional code acquisition module, in order to obtain dynamic Quick Response Code, wherein said dynamic Quick Response Code is uniquely encoded by identity Generate with static Quick Response Code;
Coding acquisition module, in order to according to default inverse transformation rule, the identity extracted in described dynamic Quick Response Code is unique Coding.
10. as claimed in claim 9 dynamic two-dimension code recognition device it is characterised in that also including inverse transformation rule setting Module, for arranging described inverse transformation rule, wherein said inverse transformation rule includes:
In described dynamic Quick Response Code, the different dispaly state of Quick Response Code corresponds to each code element in described coding respectively;Wherein, Described different dispaly state includes: the Quick Response Code different durations of display, different colours and not every time in dynamic Quick Response Code With one of pattern or their any combination, wherein adjacent show twice be also spaced one when only distinguishing with different durations The period of section not two-dimensional code display.
CN201610794101.XA 2016-08-31 2016-08-31 Dynamic two-dimensional code generation method, device, identification method and device Pending CN106339741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610794101.XA CN106339741A (en) 2016-08-31 2016-08-31 Dynamic two-dimensional code generation method, device, identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610794101.XA CN106339741A (en) 2016-08-31 2016-08-31 Dynamic two-dimensional code generation method, device, identification method and device

Publications (1)

Publication Number Publication Date
CN106339741A true CN106339741A (en) 2017-01-18

Family

ID=57823667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610794101.XA Pending CN106339741A (en) 2016-08-31 2016-08-31 Dynamic two-dimensional code generation method, device, identification method and device

Country Status (1)

Country Link
CN (1) CN106339741A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169540A (en) * 2017-05-11 2017-09-15 北京京东尚科信息技术有限公司 The information transmission system, method and apparatus
CN107451643A (en) * 2017-08-15 2017-12-08 北京航空航天大学 Generation, recognition methods and the device of dynamic two-dimension code
CN108305060A (en) * 2018-01-22 2018-07-20 成都国盛天丰网络科技有限公司 A kind of method of payment in limited time based on dynamic two-dimension code
CN110751247A (en) * 2019-10-28 2020-02-04 深圳市深华方科技有限公司 Method, device and system for generating two-dimensional code on validity period reminding device
TWI685642B (en) * 2018-10-26 2020-02-21 明基電通股份有限公司 Coding method
CN111626390A (en) * 2019-02-27 2020-09-04 北京京东尚科信息技术有限公司 Method and device for dynamically displaying two-dimensional code
CN113298209A (en) * 2020-02-24 2021-08-24 中国电信股份有限公司 Dynamic two-dimensional code generation method and system and server
CN114070551A (en) * 2021-10-27 2022-02-18 中国建设银行股份有限公司 Dynamic password generation method, authorization method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763803A (en) * 2005-11-09 2006-04-26 胡进功 Dynamic commodity false proof mark
JP2008269550A (en) * 2007-03-27 2008-11-06 Masayuki Taguchi Recognition system for dynamically displayed two-dimensional code
CN101593279A (en) * 2008-05-28 2009-12-02 中华电信股份有限公司 Dynamic bar codes shows and authentication method
US20110000958A1 (en) * 2009-07-02 2011-01-06 John Herzig Systems and Methods for Animating Barcodes
CN102496044A (en) * 2011-11-11 2012-06-13 无锡市徐达印刷有限公司 Method for manufacturing dynamic colorful commodity anti-fake label
CN103632180A (en) * 2012-08-27 2014-03-12 上海博路信息技术有限公司 Dynamic electronic bar code
US20140209679A1 (en) * 2011-08-15 2014-07-31 Scantags Ab System and method for mobile tags with dynamic content
CN104424497A (en) * 2013-09-10 2015-03-18 王越 Method and device for generating dynamic two-dimensional codes
CN105373823A (en) * 2015-12-08 2016-03-02 北京意锐新创科技有限公司 Method and device for generating and reading dynamic two-dimensional codes

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763803A (en) * 2005-11-09 2006-04-26 胡进功 Dynamic commodity false proof mark
JP2008269550A (en) * 2007-03-27 2008-11-06 Masayuki Taguchi Recognition system for dynamically displayed two-dimensional code
CN101593279A (en) * 2008-05-28 2009-12-02 中华电信股份有限公司 Dynamic bar codes shows and authentication method
US20110000958A1 (en) * 2009-07-02 2011-01-06 John Herzig Systems and Methods for Animating Barcodes
US20140209679A1 (en) * 2011-08-15 2014-07-31 Scantags Ab System and method for mobile tags with dynamic content
CN102496044A (en) * 2011-11-11 2012-06-13 无锡市徐达印刷有限公司 Method for manufacturing dynamic colorful commodity anti-fake label
CN103632180A (en) * 2012-08-27 2014-03-12 上海博路信息技术有限公司 Dynamic electronic bar code
CN104424497A (en) * 2013-09-10 2015-03-18 王越 Method and device for generating dynamic two-dimensional codes
CN105373823A (en) * 2015-12-08 2016-03-02 北京意锐新创科技有限公司 Method and device for generating and reading dynamic two-dimensional codes

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169540A (en) * 2017-05-11 2017-09-15 北京京东尚科信息技术有限公司 The information transmission system, method and apparatus
CN107169540B (en) * 2017-05-11 2020-11-24 北京京东尚科信息技术有限公司 Information transmission system, method and device
CN107451643A (en) * 2017-08-15 2017-12-08 北京航空航天大学 Generation, recognition methods and the device of dynamic two-dimension code
CN107451643B (en) * 2017-08-15 2019-08-20 北京航空航天大学 Generation, recognition methods and the device of dynamic two-dimension code
CN108305060A (en) * 2018-01-22 2018-07-20 成都国盛天丰网络科技有限公司 A kind of method of payment in limited time based on dynamic two-dimension code
TWI685642B (en) * 2018-10-26 2020-02-21 明基電通股份有限公司 Coding method
CN111626390A (en) * 2019-02-27 2020-09-04 北京京东尚科信息技术有限公司 Method and device for dynamically displaying two-dimensional code
CN110751247A (en) * 2019-10-28 2020-02-04 深圳市深华方科技有限公司 Method, device and system for generating two-dimensional code on validity period reminding device
CN110751247B (en) * 2019-10-28 2023-06-02 深圳市深华方科技有限公司 Method, device and system for generating two-dimension code on validity period reminding device
CN113298209A (en) * 2020-02-24 2021-08-24 中国电信股份有限公司 Dynamic two-dimensional code generation method and system and server
CN114070551A (en) * 2021-10-27 2022-02-18 中国建设银行股份有限公司 Dynamic password generation method, authorization method, device, equipment and storage medium
CN114070551B (en) * 2021-10-27 2024-04-09 中国建设银行股份有限公司 Dynamic password generation method, authorization method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106339741A (en) Dynamic two-dimensional code generation method, device, identification method and device
CN101946267B (en) Matched communicating devices
US7726570B2 (en) Method for producing indicators and processing apparatus and system utilizing the indicators
US9785876B2 (en) Data transmission using optical codes
CN102640514B (en) For the method for interactive digital cinema system
CN111083096B (en) Method and system for securely distributing content in an examination
KR101638614B1 (en) System for internet of things
CN106686412A (en) Advertisement screen control method and apparatus based on mobile terminal
US7874496B2 (en) Optically readable tag
CN106027368A (en) Service data processing method and device
CN103931176A (en) Electronic tool and methods for meetings
KR20180136473A (en) Program, information processing apparatus, information processing method, and information processing system
CN101409827A (en) Information processing apparatus, and remote indication system
CN107409230A (en) social interaction system based on video
CN105897716B (en) A kind of generation method of website log identifying code
KR101234249B1 (en) Method for operating database for CAPTCHA test on image basis, method, system for CAPTCHA using the same and program recording medium for the same
CN113259140B (en) Cloud conference box rapid conference entering method and system
JP6793835B2 (en) Identity verification methods and equipment
JP7090938B2 (en) Dynamic 2D code evaluation method, dynamic 2D code evaluation system, and dynamic 2D code evaluation program
CN106650864A (en) System and method automatically generating two-dimensional code on basis of image
JP6977133B2 (en) Methods and systems for securely conducting digital tests
CN115802345A (en) Method, device and storage medium for accessing equipment to wireless network
CN109064579A (en) A kind of check class attendance based on WIFI and mobile phone use limits device and method
CN107071026A (en) A kind of rack electronic labelling system and method for inspecting based on electric ink display screen
KR20220088112A (en) System of generating contents inserted copyright information and method distinguishing contents copyright

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200414