[go: up one dir, main page]

CN105933625B - The generation method and device of dynamic image code - Google Patents

The generation method and device of dynamic image code Download PDF

Info

Publication number
CN105933625B
CN105933625B CN201610230269.8A CN201610230269A CN105933625B CN 105933625 B CN105933625 B CN 105933625B CN 201610230269 A CN201610230269 A CN 201610230269A CN 105933625 B CN105933625 B CN 105933625B
Authority
CN
China
Prior art keywords
display
information
signal
display unit
image code
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.)
Expired - Fee Related
Application number
CN201610230269.8A
Other languages
Chinese (zh)
Other versions
CN105933625A (en
Inventor
宋叶未
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Million Silicon Electronics Co Ltd
Original Assignee
Suzhou Million Silicon Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Million Silicon Electronics Co Ltd filed Critical Suzhou Million Silicon Electronics Co Ltd
Priority to CN201610230269.8A priority Critical patent/CN105933625B/en
Publication of CN105933625A publication Critical patent/CN105933625A/en
Application granted granted Critical
Publication of CN105933625B publication Critical patent/CN105933625B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides the generation method and device of a kind of dynamic image code, dynamic image code is shown by the display unit set being made of at least one display unit, the generation method includes: that raw information is encoded to one or more continuous basic informations according to preset raw information coding rule, according to preset Basic Information Encoding rule encoding it is one or more continuous signals by each basic information, is switched over according to display pattern of the signal generated after coding to display unit set according to preset frequency.The present invention shows raw information by way of the continuous image code of dynamic.The image of dynamic image code is simple, it can be adjusted flexibly as needed, the size of occupancy is smaller, and the corner areas on display screen can be made full use of to be shown, requirement to display screen is very low, it might even be possible to is shown by the light emitting diode of low cost, agreement is simple, its information carried can be changed flexibly, and technology enforcement difficulty and cost are relatively low.

Description

The generation method and device of dynamic image code
Technical field
The invention belongs to image code fields, more particularly, to the generation method and device of a kind of continuous image code of dynamic.
Background technique
Image code is seen everywhere in life, such as bar code, two dimensional code, color three dimension code etc..The image of image code is got over Complexity, the information that can be carried are more.In order to describe conveniently, only it is described below by representative of two dimensional code.
Two dimensional code provides a kind of mode of terminal acquisition information, can read two by the two-dimensional code scanning function on mobile phone The information carried in dimension code.Two dimensional code can be by mode of printing displaying on paper, can also be in such a way that image is shown It shows on all kinds of display screens.
When showing two dimensional code on paper, the information carried is fixed and invariable, this will increase upgrading and maintenance Difficulty, while bringing security risk.
When showing two dimensional code on a display screen, in order to make image show apparent, needs to occupy on display screen and compare Big region, this will affect the display of other contents on display screen.Simultaneously when the display screen in equipment is too small or its image resolution When rate is too low, then it is difficult or may not show on a display screen two dimensional code, such as electronic watch.More particularly, when setting It is standby upper without any display screen, then it is not available planar bar code technology, such as some charger babies do not have display screen.
And image in 2 D code is an entirety, is shown after can not being divided into multiple portions in different regions, in this way It is unable to fully utilize the scrappy spaces such as the corner areas on display screen.
In addition, two dimensional code agreement is relative complex, exported on a display screen using common single-chip microcontroller comprising specify information It is relatively difficult to achieve when two dimensional code, and planar bar code technology is to the more demanding of display screen, therefore enforcement difficulty and cost are relatively high.
Summary of the invention
It is in the prior art to solve the purpose of the present invention is to provide the generation method and device of a kind of dynamic image code The following problems of image code: the information of carrying immobilizes, is not suitable in undersized or too low image resolution ratio display screen It is upper to show, multiple portions are divided into relatively high in different region displayings, technology enforcement difficulty and cost.
Purpose to realize the present invention, one aspect of the present invention provides a kind of generation method of dynamic image code, by by least The display unit set of one display unit composition shows the dynamic image code, and the display unit can be aobvious at least two To show and is switched between state, the display state of all display units collectively forms the display pattern of the display unit set, The generation method includes:
A) raw information is encoded to one or more continuous basic informations according to preset raw information coding rule, The raw information is static information and/or multidate information;
It b) is one or more continuous according to preset Basic Information Encoding rule encoding by each basic information Signal;The signal is related to the display pattern of the display unit set;
C) according to the signal generated after coding to the display pattern of the display unit set according to preset frequency It switches over.
Preferably, the display unit is light emitting diode or is the region being made of on display screen multiple pixels.
Preferably, the display unit is the region being made of on display screen multiple pixels, and is located at the display screen On corner areas.
Preferably, the display state be display color, display brightness, display shape, display position, in display size A kind of or combination.
Preferably, each basic information is data class basic information or assisted class basic information, wherein the data Class basic information is character, character string, numerical value or state, and the assisted class basic information is termination flag, repetition flag or divides Segment mark.
Preferably, the display pattern of the display unit set is switched once in each period, the display pattern is every Switching is primary then to indicate that a signal, the signal are determined by the display pattern of switching front and back.
Preferably, for any display pattern T, display mould is switched to from any display pattern in addition to display pattern T Formula T, the corresponding signal is identical.
Preferably, described if the step number that the display state of all display units switches is identical for arbitrarily switching twice It is identical to switch the corresponding signal twice.
Preferably, the raw information coding rule includes: addition data length information and/or error correction information.
Preferably, the step c is repeated at least twice.
Another aspect of the present invention additionally provides a kind of generating means of dynamic image code, and the generating means include that display is single First set, raw information coding unit, Basic Information Encoding unit and control unit.
The display unit set is made of at least one display unit, described aobvious for showing the dynamic image code Show that unit can switch between at least two display states, the display state of all display units collectively forms the display The display pattern of unit set.
The raw information coding unit, for raw information to be encoded to one according to preset raw information coding rule A or multiple continuous basic informations, the raw information are static information and/or multidate information.
The basic coding unit is used for each basic information according to preset Basic Information Encoding rule encoding For one or more continuous signals, the signal is related to the display pattern of the display unit set.
Described control unit, for the display pattern according to the signal generated after coding to the display unit set It is switched over according to preset frequency.
Preferably, the display unit is light emitting diode or is the region being made of on display screen multiple pixels.
Preferably, the display unit is the region being made of on display screen multiple pixels, and is located at the display screen On corner areas.
The present invention provides a kind of new information exhibition methods, i.e., raw information are passed through the side of the continuous image code of dynamic Formula is shown.The image of the dynamic image code is simple, can be adjusted flexibly as needed, and the size of occupancy is smaller, and can be with The corner areas on display screen is made full use of to be shown, the requirement to display screen is very low, it might even be possible to pass through low cost Light emitting diode is shown, and agreement is simple, and the information carried can be changed flexibly, technology enforcement difficulty and cost ratio It is lower.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 to 4 is the corresponding schematic diagram of embodiment one;
Fig. 5,6 are the corresponding schematic diagrames of embodiment two;
Fig. 7 is the corresponding schematic diagram of embodiment three;
Fig. 8 is dynamic image code generating method flow chart;
Fig. 9 is dynamic image code generating means structure chart.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
One aspect of the present invention discloses a kind of generation method of dynamic image code, by a display unit set to show State dynamic image code, as shown in figure 8, the generation method the following steps are included:
Raw information is encoded to one or more continuous basis letters according to preset raw information coding rule by S11 Breath.
Each basic information is one or more continuous according to preset Basic Information Encoding rule encoding by S12 Signal.
S13 is according to the signal generated after coding to the display pattern of the display unit set according to preset frequency It switches over.
In order to ensure information receiving end is properly received the raw information, same raw information can be repeated to send more It is secondary, such as step S13 can be repeated as many times.
Step S12, S13 can be executed again after the completion of step S11 is all executed, but in order to improve efficiency, it can also be After every coding generates a basic information in step S11, it is immediately performed step S12, S13, or every coding in step s 12 Step S13 is immediately performed after generating a signal.
Wherein, the display unit set is made of at least one display unit.
The display unit can be the light-emitting components such as single color LED, color light-emitting diode.
The display unit can also be the region being made of multiple pixels on display screen, can according to need to every The position of one display unit is adjusted flexibly, such as can place it in the corner areas on display screen, so that the dynamic Image code does not influence the displaying of other contents on display screen, as shown in Figure 6.
The display unit can switch between at least two display states, use S1、S2... it is shown to indicate different Show state.The display state of all display units collectively forms the display pattern of the display unit set, that is, when any When the display state of one or more display units changes, the display pattern of the display unit set, which is also ensued, to be changed Become.
The display state be display color, display brightness, display shape, display position, one of display size or Combination.Selected multiple display states should meet the characteristics of being easy to by information receiving end scanning recognition, and be easy to pass through control Device is switched fast.If such as the display unit is single color LED, and it is aobvious can to choose two kinds of " bright " and " going out " Show state.In another example " red ", " green ", three kinds of " blue " can be chosen if the display unit is color light-emitting diode Display state can also choose " red ", " green ", " blue ", " white " four kinds of display states.If for example described display is single again Member be display screen on the region being made of multiple pixels, then can choose " red triangle ", " red circle ", " green triangle ", " green circle " etc. show state.
The original shape of each display unit can be the various shapes such as rectangular, round, triangle, polygon, position, Size can according to need adjustment, as long as each display unit can be positioned easily by meeting information receiving end, and identify each The display state of display unit.Such as the Dynamic Graph can be made with the original shape of appropriate adjustment display unit, size and position As the global pattern approximation company LOGO of code.
The display pattern of the display unit set is switched once in each period, particularly, if switching front and back is aobvious Show that mode is identical, then referred to as cut-in without ball is changed, and is not specifically described such as, and " switching " described herein also includes " cut-in without ball is changed ", the display The switching frequency of mode must not be higher than the maximum frame rate of the image capture module of information receiving end, if such as information receiving end is hand Machine, it is assumed that the camera module maximum frame rate of the mobile phone be 30fps, then the switching frequency must not be higher than 30Hz, i.e., continuous two Time interval between secondary switching must not be lower thanSecond.Switching frequency is lower, then the anti-interference ability of the dynamic image code is got over By force, but its rate of information throughput also can be lower.
The every switching of display pattern is primary then to indicate a signal.The signal is determined by the display pattern of switching front and back It is fixed, use C1、C2... to indicate different signals.
Each signal can carry certain information.The number of display unit in the display unit set is more, and every Show that the kind number of state is more possessed by a display unit, then average each portable information content of signal is more, but same When also will increase the complexity of the dynamic image code.
Assuming that in the display unit set share n display unit, each display unit can M kind display state it Between switch over, then the display unit set share MnKind display pattern, average each portable maximum fault information of signal About n × log2M-bit.
If such as only one display unit in the display unit set, and the display unit only in two kinds of display states Between when switching over, then average each portable maximum fault information of signal is about 1 bit.
In another example if the display unit set is made of three display units, and each display unit can be shown at eight kinds When switching between state, then average each portable maximum fault information of signal is about 9 bits.
The raw information is the information that carries in dynamic image code, can be text, network address, mailbox, telephone number, The static informations such as business card can also be the multidate informations such as current time, environment temperature.
The basic information is as an intermediate link, convenient for raw information to be finally encoded to multiple continuous letters Number, i.e., the raw information is first encoded into one or more continuous basic informations, then by each Basic Information Encoding For one or more continuous signals.
Each basic information is data class basic information or assisted class basic information, wherein the data class basis is believed Breath is character, character string, numerical value or state, and the assisted class basic information can suitably be added with reference to existing communication technology Add, it is only several below introduction herein to be suitable for the invention assisted class basic information.
Termination flag: indicating that current information is all sent, and generallys use one or more continuous cut-in without balls and changes It indicates, i.e., maintains a certain display pattern constant within one or more continuous periods.
Repetition flag: primary transmitted basic information before repeating, addition repetition flag can simplify in some cases Coding rule improves transmitting efficiency.
Segmentation marker: when the data volume of the raw information is larger, can be segmented, and segmentation is added between section and section Mark.
It is whether correct in order to facilitate the received raw information of information receiving end verifying, raw information is being encoded to base During plinth information, data length information can be added, can also add error correction information, such as even-odd check, CRC circulation are superfluous Remaining verification.
For ease of description, " switching step number " concept is introduced, as described below:
Assuming that each display unit has M kind to show state, S is used1、S2……、SMDifferent display states is indicated, from aobvious Show state SaIt is switched to display state Sb, described using step number, value are as follows: (b+M-a) mod M.If such as M be equal to 3, from Display state S1It is switched to S2, step number is (2+3-1) mod 3, as a result 1;From display state S3It is switched to S2, step number is (2+ 3-3) 3 mod, as a result 2;From display state S2It is switched to S2, step number is (2+3-2) mod 3, as a result 0.
Correspondingly, from display state S1It is switched to S2, the switching of referred to as 1 step;From display state S3It is switched to S2, referred to as 2 steps cut It changes;From display state S2It is switched to S2, the switching of referred to as 0 step.
As it was noted above, the every switching of the display pattern of the display unit set is primary, then it represents that a signal, it is described Signal is determined by the display pattern of switching front and back, more specifically, the following two kinds signal definition rule or other similar can be taken Rule:
1) it is defined according to the step number that the display state of the display unit switches, i.e., for arbitrarily switching twice, if institute There is the step number of the display state switching of display unit identical, then described to switch the corresponding signal twice identical;
2) it is defined according to the display pattern after switching (except cut-in without ball is changed), i.e., for any display pattern T, from except display Any display pattern except mode T is switched to display pattern T, the corresponding signal is identical.
Another aspect of the present invention discloses a kind of generating means of dynamic image code, as shown in figure 9, described device includes aobvious Show unit set 101, raw information coding unit 102, Basic Information Encoding unit 103, control unit 104.
The display unit set is made of at least one display unit, described aobvious for showing the dynamic image code Show that unit can switch between at least two display states, the display state of all display units collectively forms the display The display pattern of unit set.
The raw information coding unit, for raw information to be encoded to one according to preset raw information coding rule A or multiple continuous basic informations, the raw information are static information and/or multidate information.
The basic coding unit is used for each basic information according to preset Basic Information Encoding rule encoding For one or more continuous signals, the signal is related to the display pattern of the display unit set.
Described control unit, for the display pattern according to the signal generated after coding to the display unit set It is switched over according to preset frequency.
The life of the concrete meaning and application method of described generating means each section and the dynamic image code being disclosed above It is identical at method, not repeated description herein.
The following are several specific embodiments of the invention:
Embodiment one:
As shown in Figure 1, by by display unit D1, display unit D2The display unit set of composition shows dynamic image Code, D1For light emitting diode 1, D2For light emitting diode 2, each light emitting diode can be in " bright " and " going out " two kinds of display states Between switch over, wherein white indicate light emitting diode " bright ", black indicate light emitting diode " going out ", use S1Indicate display shape State " bright ", uses S2It indicates display state " going out ".
From display state S1It is switched to S2, or from display state S2It is switched to S1Switch for 1 step, from display state S1It is switched to S1, or from display state S2It is switched to S2For the switching of 0 step.
For the display unit set, S is used respectively as shown in Figures 1 to 4 there are four types of display pattern altogether1S1, S2S1, S1S2, S2S2To indicate.
Within each period, the display pattern of the display unit set is once switched, according to switching front and back Display pattern, more specifically, defining following 4 kinds of signals according to the step number that the display state of each display unit switches:
C1: D1Display state carries out 0 step switching, D2Display state carries out 0 step switching;
C2: D1Display state carries out 1 step switching, D2Display state carries out 0 step switching;
C3: D1Display state carries out 0 step switching, D2Display state carries out 1 step switching;
C4: D1Display state carries out 1 step switching, D2Display state carries out 1 step switching;
Signal C1It is changed for cut-in without ball, i.e. the display pattern of switching front and back is identical.
Within some period, display pattern is from SaSbIt is switched to SxSy, write a Chinese character in simplified form are as follows: SaSb→SxSy
Signal C1Including following 4 kinds of situations:
S1S1→S1S1、S2S1→S2S1、S1S2→S1S2、S2S2→S2S2
Signal C2Including following 4 kinds of situations:
S1S1→S2S1、S2S1→S1S1、S1S2→S2S2、S2S2→S1S2
Signal C3Including following 4 kinds of situations:
S1S1→S1S2、S2S1→S2S2、S1S2→S1S1、S2S2→S2S1
Signal C4Including following 4 kinds of situations:
S1S1→S2S2、S2S1→S1S2、S1S2→S2S1、S2S2→S1S1
Such as signal C to be sent2When, if current display mode is S2S1, according to signal C2Definition, cut next time When changing, by display pattern from S2S1It is switched to S1S1Complete signal C2Transmission.
Choose a basic information set: termination flag, string of binary characters " 1 ", string of binary characters " 0 ", binary word Symbol string " 10 ", uses B respectivelyEND、B1、B0、B10To indicate.
The Basic Information Encoding rule is used for the Basic Information Encoding into one or more continuous letters Number, it is as shown in the table:
Indicate symbol Basic information The signal generated after coding
BEND Termination flag The continuous signal C of at least two1
B1 String of binary characters " 1 " One signal C2
B0 String of binary characters " 0 " One signal C3
B10 String of binary characters " 10 " One signal C4
Such as basic information B to be sent10When, according to the Basic Information Encoding rule, coding obtains signal C4, basis Definition sends signal C4Complete to basic information B10Transmission, it is assumed that current display mode S2S2, when switching next time, By display pattern from S2S2It is switched to S1S1?.
Assuming that the raw information is a text information " Hi ".
The raw information coding rule, for the raw information to be encoded into one or more continuous bases Information:
The raw information is converted into string of binary characters " 0100100001101001 ", the binary-coded character that will be obtained String is disassembled, so that each section after dismantling can indicate that the result after dismantling is as follows with a basic information:
" 0 ", " 10 ", " 0 ", " 10 ", " 0 ", " 0 ", " 0 ", " 1 ", " 10 ", " 10 ", " 0 ", " 1 ", finally add end mark.
The basic information generated after coding are as follows: B0、B10、B0、B10、B0、B0、B0、B1、B10、B10、B0、B1、BEND
It according to preset Basic Information Encoding rule encoding is one or more continuous letters by each basic information Number.
Such as basic information B0It is encoded as signal C3, basic information B10It is encoded as signal C4
The signal generated after number are as follows: C3、C4、C3、C4、C3、C3、C3、C2、C4、C4、C3、C2、C1、C1
According to the signal generated after coding to the display pattern of the display unit set according to preset frequency into Row switching, i.e., successively send each signal, until all signals are sent.
Assuming that initial display pattern is S2S2, first send signal C3,, will when switching next time according to signal definition rule Display pattern is switched to S2S1
Retransmit signal C4, according to signal definition rule, when switching next time, display pattern is switched to S1S2
The transfer sequence of final display pattern are as follows:
S2S2, S2S1, S1S2, S1S1, S2S2, S2S1, S2S2, S2S1, S1S1, S2S2, S1S1, S1S2, S2S2, S2S2, S2S2
In the present embodiment, display pattern is once switched every 0.1 second, then completes the primary transmission to raw information Need 1.4 seconds.
In order to ensure information receiving end is properly received the raw information, can repeat to send the raw information multiple.
It briefly describes and how the dynamic image code in the present embodiment to be scanned and recognized by mobile phone below:
Persistently the dynamic image code is scanned by mobile phone camera, record detects each signal, to inspection The signal measured is decoded to obtain corresponding basic information, when detecting basic information B twiceENDWhen, stop scanning.It will sweep The basic information retouched is decoded, it can obtains the raw information.
Such as after Multiple-Scan, the signal detected is successively: C3、C2、C4、C4、C3、C2、C1、C1、C3、C4、C3、C4、C3、 C3、C3、C2、C4、C4、C3、C2、C1、C1
The signal detected is decoded to obtain: B0、B1、B10、B10、B0、B1、BEND、B0、B10、B0、B10、B0、B0、B0、 B1、B10、B10、B0、B1、BEND, effective data category information is extracted, B is obtained0、B10、B0、B10、B0、B0、B0、B1、B10、B10、B0、 B1, obtained basic information is spliced into string of binary characters: " 0100100001101001 " finally decodes available original Information " Hi ".
When the original information data amount is larger, if joined data length information in an encoding process, can keep away Exempt from information receiving end and receive extra signal, to improve efficiency.
Embodiment two:
As shown in Fig. 5 or 6, by by display unit D1, display unit D2, display unit D3The display unit set of composition To show dynamic image code.
Each display unit is the region being made of on display screen multiple pixels, wherein display unit D1For region 4, D2 For region 5, D3For region 6.Each display unit can be in " red ", " green ", is cut between " blue " three kinds of display states It changes, uses S respectively1、S2、S3It indicates, for display unit set, shares 27 kinds of display pattern:
S1S1S1、S1S1S2、S1S1S3、S1S2S1、S1S2S2、S1S2S3、S1S3S1、S1S3S2、S1S3S3
S2S1S1、S2S1S2、S2S1S3、S2S2S1、S2S2S2、S2S2S3、S2S3S1、S2S3S2、S2S3S3
S3S1S1、S3S1S2、S3S1S3、S3S2S1、S3S2S2、S3S2S3、S3S3S1、S3S3S2、S3S3S3
Within each period, the display pattern of the display unit set is once switched.
According to the display pattern of switching front and back, more specifically.According to the display pattern after switching (except cut-in without ball is changed), definition 28 kinds of signals below:
C1: a cut-in without ball is changed, i.e., maintains display pattern constant in one cycle
C2: from except S1S1S1Except any display pattern be switched to S1S1S1
C3: from except S1S1S2Except any display pattern be switched to S1S1S2
C4: from except S1S1S3Except any display pattern be switched to S1S1S3
C5: from except S1S2S1Except any display pattern be switched to S1S2S1
C6: from except S1S2S2Except any display pattern be switched to S1S2S2
C7: from except S1S2S3Except any display pattern be switched to S1S2S3
C8: from except S1S3S1Except any display pattern be switched to S1S3S1
C9: from except S1S3S2Except any display pattern be switched to S1S3S2
C10: from except S1S3S3Except any display pattern be switched to S1S3S3
C11: from except S2S1S1Except any display pattern be switched to S2S1S1
C12: from except S2S1S2Except any display pattern be switched to S2S1S2
C13: from except S2S1S3Except any display pattern be switched to S2S1S3
C14: from except S2S2S1Except any display pattern be switched to S2S2S1
C15: from except S2S2S2Except any display pattern be switched to S2S2S2
C16: from except S2S2S3Except any display pattern be switched to S2S2S3
C17: from except S2S3S1Except any display pattern be switched to S2S3S1
C18: from except S2S3S2Except any display pattern be switched to S2S3S2
C19: from except S2S3S3Except any display pattern be switched to S2S3S3
C20: from except S3S1S1Except any display pattern be switched to S3S1S1
C21: from except S3S1S2Except any display pattern be switched to S3S1S2
C22: from except S3S1S3Except any display pattern be switched to S3S1S3
C23: from except S3S2S1Except any display pattern be switched to S3S2S1
C24: from except S3S2S2Except any display pattern be switched to S3S2S2
C25: from except S3S2S3Except any display pattern be switched to S3S2S3
C26: from except S3S3S1Except any display pattern be switched to S3S3S1
C27: from except S3S3S2Except any display pattern be switched to S3S3S2
C28: from except S3S3S3Except any display pattern be switched to S3S3S3
Such as from display pattern S1S1S3Or S1S2S3It is switched to display pattern S3S3S3All to induction signal C28
A basic information set is chosen, totally 28 kinds of basic informations.The Basic Information Encoding rule, is used for the basis Information coding is as shown in the table at one or more continuous signals:
Due to signal definition rule, two identical signal (signal C can not be continuously transmitted1Except).
Such as when sending 2 continuous basic information B01011When, two letters must be just continuously transmitted according to coding rule Number C28.It in this case, can be by second basic information B01011Use BREPEATIt replaces, then it may finally be by successively sending letter Number C28、C2To realize.
Assuming that the raw information is a text information " hello ".
The raw information coding rule, for the raw information to be encoded into one or more continuous bases Information:
The raw information is converted into string of binary characters " 01101000011001010110110001101100011 01111 ", obtained string of binary characters is disassembled so that dismantling after each section can with a basic information come Indicate, the result after dismantling is as follows: " 0110 ", " 1000 ", " 0110 ", " 01010 ", " 1101 ", " 1000 ", " 1101 ", " 1000 ", " 1101 ", " 1 ", " 1 ", " 1 ", repetition flag is introduced, 2 continuous and identical basic informations is avoided the occurrence of, finally adds Add end mark.
Result after coding is as follows: B0110、B1000、B0110、B01010、B1101、B1000、B1101、B1000、B1101、B1、BREPEAT、 B1、BEND
The basic information generated after coding is successively sent, until the basic information is all sent:
Assuming that initial display pattern is S1S1S1
First send first basic information B0110, to basic information B0110It is encoded to obtain signal C11, sent out according to definition The number of delivering letters C11, it is sent completely rear display pattern and becomes S2S1S1
Retransmit second basic information B1000, to basic information B1000It is encoded to obtain signal C13, sent out according to definition The number of delivering letters C13, it is sent completely rear display pattern and becomes S2S1S3
Remaining basic information is successively sent, until whole basic informations are sent.
The transfer sequence of corresponding display pattern is successively are as follows:
S1S1S1、S2S1S1、S2S1S3、S2S1S1、S3S3S2、S2S3S2、S2S1S3、S2S3S2、S2S1S3、S2S3S2、S1S1S3、 S1S1S1、S1S1S3、S1S1S3、S1S1S3
In order to ensure information receiving end is properly received the raw information, can repeat to send the raw information multiple.
Embodiment three:
As shown in fig. 7, the display unit set is by a display unit D1Composition, the display unit are a colorful light-emitting Diode 3, theoretically the color diodes can issue the light of countless color, it can possess countless display state, but Usually only can a selected part as needed be easy to by the display state of information receiving end scanning recognition, chosen in the present embodiment " red ", " green ", " indigo plant ", " going out " four kinds of display states use S respectively1、S2、S3、S4It indicating, these types of state is all readily identified, And convenient for being controlled using single-chip microcontroller.Then there are four types of display patterns altogether for the display unit set, in order to be different from display state, With { S1}、{S2}、{S3}、{S4Indicate.
Within each period, the display pattern of the display unit set is once switched, according to each display The step number of the display state switching of unit, defines following 4 kinds of signals:
C1、D1Display state carries out 0 step switching
C2、D1Display state carries out 1 step switching
C3、D1Display state carries out 2 step switchings
C4、D1Display state carries out 3 step switchings.
Such as from display state S1It is switched to display state S4, or from display state S4It is switched to display state S3It is 3 Step switching.
A basic information set is chosen, totally 4 kinds of basic informations.The Basic Information Encoding rule, is used for the basis Information coding is as shown in the table at one or more continuous signals:
Indicate symbol Basic information The signal generated after coding
BEND Termination flag The continuous signal C of at least two1
B0 String of binary characters " 0 " One signal C2
B1 String of binary characters " 1 " One signal C3
B00 String of binary characters " 00 " One signal C4
Assuming that the raw information is a text information " Hi ".
The raw information coding rule, for the raw information to be encoded into one or more continuous bases Information:
The raw information is converted into string of binary characters " 0100100001101001 ", adds 1 byte in tail portion Checksum check information, as a result are as follows: " 010010000110100110110001", the data length of a byte is added on head Result after information are as follows: "00000010010010000110100110110001"。
Obtained string of binary characters is disassembled so that dismantling after each section can with a basic information come It indicates, the result after dismantling is as follows:
"00"、"00"、"00"、"1"、"00"、"1"、"00"、"1"、"00"、"00"、"1"、"1"、"0"、"1"、"00"、" 1 ", " 1 ", " 0 ", " 1 ", " 1 ", " 00 ", " 0 ", " 1 ", finally add end mark.
Result after coding is as follows: B00、B00、B00、B1、B00、B1、B00、B1、B00、B00、B1、B1、B0、B1、B00、B1、B1、 B0、B1、B1、B00、B0、B1、BEND
The basic information generated after coding is successively sent, until the basic information is all sent:
Assuming that initial display pattern is { S4};
First send first basic information B00, to basic information B00It is encoded to obtain signal C4, letter is sent according to definition Number C4, it is sent completely rear display pattern and becomes { S3};
Retransmit second basic information B00, to basic information B00It is encoded to obtain signal C4, letter is sent according to definition Number C4, it is sent completely rear display pattern and becomes { S2};
Remaining basic information is successively sent, until whole basic informations are sent.
The transfer sequence of corresponding display pattern is successively are as follows:
{S4}、{S3}、{S2}、{S1}、{S3}、{S2}、{S4}、{S3}、{S1}、{S4}、{S3}、{S1}、{S3}、{S4}、 {S2}、{S1}、{S3}、{S1}、{S2}、{S4}、{S2}、{S1}、{S2}、{S4}、{S4}、{S4}。
In order to ensure information receiving end is properly received the raw information, can repeat to send the raw information multiple.
Coding rule is not limited to what embodiment herein was previously mentioned, such as can be made with appropriately designed coding rule The frequency that the high display pattern of power consumption occurs reduces, in another example if raw information is made of 26 small English characters, it can To choose 26 small English characters as basic information.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and Variation is without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application's Spirit.

Claims (10)

1. a kind of generation method of dynamic image code, is shown by the display unit set being made of at least one display unit The dynamic image code, the display unit can switch between at least two display states, and all display units are shown Show that state collectively forms the display pattern of the display unit set, which is characterized in that the generation method includes:
A) raw information is converted into string of binary characters, and by string of binary characters according to preset raw information coding rule It is encoded to one or more continuous basic informations, the raw information is static information and/or multidate information,
It b) is one or more continuous signals according to preset Basic Information Encoding rule encoding by each basic information, The signal is related to the display pattern of the display unit set, to the display mould of the display unit set in each period Once, the every switching of display pattern is primary then to indicate a signal, and the signal is by the display pattern before and after switching for formula switching It determines, the definition rule of the signal includes: for any display pattern T, from any display pattern in addition to display pattern T It is switched to display pattern T, the corresponding signal is identical;Alternatively, for arbitrarily switching twice, if all display units is aobvious Show that the step number of state switching is identical, then described to switch the corresponding signal twice identical;
C) it is carried out according to display pattern of the signal generated after coding to the display unit set according to preset frequency Switching;
The scanning recognition method of the dynamic image code is as follows: persistently the dynamic image code is scanned by camera, Record detects that each signal, the signal are to compile each basic information according to preset Basic Information Encoding rule Code obtains, and the converse decoding for carrying out Basic Information Encoding to the signal detected obtains corresponding basic information, then to the base Plinth information carries out the converse decoding of raw information coding, obtains the corresponding string of binary characters of the raw information, finally obtains Raw information.
2. the generation method of dynamic image code as described in claim 1, which is characterized in that the display unit is light-emitting diodes Pipe or the region to be made of on display screen multiple pixels.
3. the generation method of dynamic image code as described in claim 1, which is characterized in that the display unit is on display screen The region being made of multiple pixels, and the corner areas being located on the display screen.
4. the generation method of dynamic image code as described in claim 1, which is characterized in that the display state is display face One of color, display brightness, display shape, display position, display size or combination.
5. the generation method of dynamic image code according to any one of claims 1 to 4, which is characterized in that each base Plinth information is data class basic information or assisted class basic information, wherein the data class basic information is character, character string, number Value or state, the assisted class basic information are termination flag, repetition flag or segmentation marker.
6. the generation method of dynamic image code according to any one of claims 1 to 4, which is characterized in that the original letter Breath coding rule includes: addition data length information and/or error correction information.
7. the generation method of dynamic image code according to any one of claims 1 to 4, which is characterized in that by the step c It repeats at least twice.
8. a kind of generating means of dynamic image code, which is characterized in that including display unit set, raw information coding unit, Basic Information Encoding unit and control unit,
The display unit set is made of at least one display unit, and for showing the dynamic image code, the display is single Member can switch between at least two display states, and the display state of all display units collectively forms the display unit The display pattern of set,
The raw information coding unit for raw information to be converted to string of binary characters, and string of binary characters is pressed One or more continuous basic informations are encoded to according to preset raw information coding rule, the raw information is static information And/or multidate information,
The Basic Information Encoding unit, for compiling each basic information according to preset Basic Information Encoding rule Code is one or more continuous signals, and the signal is related to the display pattern of the display unit set, in each period Primary to the display pattern switching of the display unit set, the every switching of the display pattern is primary then to indicate a signal, The signal is determined that the definition rule of the signal includes: for any display pattern T, from removing by the display pattern of switching front and back Any display pattern except display pattern T is switched to display pattern T, and the corresponding signal is identical;Alternatively, for any Switch twice, it is described to switch the corresponding signal twice if the step number that the display state of all display units switches is identical It is identical;
Described control unit, for according to the signal generated after coding to the display pattern of the display unit set according to Preset frequency switches over;
Dynamic image code scanning recognition by the following method: persistently the dynamic image code is swept by camera It retouches, record detects that each signal, the signal are to advise each basic information according to preset Basic Information Encoding Then coding obtains, and the converse decoding for carrying out Basic Information Encoding to the signal detected obtains corresponding basic information, then to institute The converse decoding that basic information carries out raw information coding is stated, obtains the corresponding string of binary characters of the raw information, finally Obtain raw information.
9. the generating means of dynamic image code as claimed in claim 8, which is characterized in that the display unit is light-emitting diodes Pipe or the region to be made of on display screen multiple pixels.
10. the generating means of dynamic image code as claimed in claim 9, which is characterized in that the display unit is display screen On the region that is made of multiple pixels, and the corner areas being located on the display screen.
CN201610230269.8A 2016-04-14 2016-04-14 The generation method and device of dynamic image code Expired - Fee Related CN105933625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610230269.8A CN105933625B (en) 2016-04-14 2016-04-14 The generation method and device of dynamic image code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610230269.8A CN105933625B (en) 2016-04-14 2016-04-14 The generation method and device of dynamic image code

Publications (2)

Publication Number Publication Date
CN105933625A CN105933625A (en) 2016-09-07
CN105933625B true CN105933625B (en) 2019-06-04

Family

ID=56838122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610230269.8A Expired - Fee Related CN105933625B (en) 2016-04-14 2016-04-14 The generation method and device of dynamic image code

Country Status (1)

Country Link
CN (1) CN105933625B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334949A (en) * 1998-03-20 2002-02-06 弗西蒂技术有限公司 Systems and methods for concurrent display and data communication using light emitting diodes
CN101354741A (en) * 2008-04-16 2009-01-28 龚建良 Device for reading bar code with comparison function
CN102750564A (en) * 2012-05-14 2012-10-24 王安然 Dynamic two-dimension code and decoding method thereof
CN103151021A (en) * 2013-02-22 2013-06-12 广州视源电子科技股份有限公司 Data display method and test method of display equipment
US8821277B2 (en) * 2011-12-16 2014-09-02 Wesley John Boudville Colour barcodes and cellphone
CN104424498A (en) * 2013-09-10 2015-03-18 王越 Method and device for transforming two-dimensional codes at high speed
CN104700141A (en) * 2014-11-27 2015-06-10 郭琰 Dynamic two-dimensional code display method and system and recognition program
CN105160378A (en) * 2015-08-18 2015-12-16 矽照光电(厦门)有限公司 Color invisible image code generating method
CN105339950A (en) * 2013-08-06 2016-02-17 英特尔公司 Optical communication using differential images

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5805981A (en) * 1994-06-06 1998-09-08 Casio Computer Co., Ltd. Communication terminal and communication system with image display and image storage section
US20060081711A1 (en) * 2004-09-30 2006-04-20 Junxiang Zhao Color-identifying system for colored barcode and a method thereof
US8186572B2 (en) * 2009-07-02 2012-05-29 Barcode Graphics Inc. Systems and methods for animating barcodes
TW201541358A (en) * 2014-04-25 2015-11-01 Funcode Technology Co Ltd Combination QR code for dynamic displaying on electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1334949A (en) * 1998-03-20 2002-02-06 弗西蒂技术有限公司 Systems and methods for concurrent display and data communication using light emitting diodes
CN101354741A (en) * 2008-04-16 2009-01-28 龚建良 Device for reading bar code with comparison function
US8821277B2 (en) * 2011-12-16 2014-09-02 Wesley John Boudville Colour barcodes and cellphone
CN102750564A (en) * 2012-05-14 2012-10-24 王安然 Dynamic two-dimension code and decoding method thereof
CN103151021A (en) * 2013-02-22 2013-06-12 广州视源电子科技股份有限公司 Data display method and test method of display equipment
CN105339950A (en) * 2013-08-06 2016-02-17 英特尔公司 Optical communication using differential images
CN104424498A (en) * 2013-09-10 2015-03-18 王越 Method and device for transforming two-dimensional codes at high speed
CN104700141A (en) * 2014-11-27 2015-06-10 郭琰 Dynamic two-dimensional code display method and system and recognition program
CN105160378A (en) * 2015-08-18 2015-12-16 矽照光电(厦门)有限公司 Color invisible image code generating method

Also Published As

Publication number Publication date
CN105933625A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
CN203057193U (en) Data processing apparatus
CN105740931B (en) Multidimensional security code label, its production method and recognition methods
CN104143200B (en) The frame type coding and intelligent identification Method of a kind of additional information of images
CN106372556A (en) Optical label identification method
CN103067441B (en) Method, device and the equipment that a kind of picture is shared
WO2017084536A1 (en) Encoding system and method, and decoding system and method for intelligent graph recognition two-dimensional code
CN104268615A (en) Encoding method and decoding method for color two-dimensional code
CN102694595A (en) Mobile terminal and method and device for information transmission of mobile terminal
CN101296441A (en) Method and device for scanning two-dimension bar code and transmitting message
CN103259621A (en) Encoding method and device of colorized three-dimensional codes and application method and system of colorized three-dimensional codes
CN109889267B (en) Method for sending coded information based on optical communication, optical label and code scanning equipment
CN105160378B (en) A kind of color invisible image code generating method
CN105323141B (en) A kind of information transferring method, system and mobile terminal based on image recognition
CN105933625B (en) The generation method and device of dynamic image code
CN204537223U (en) Express Logistics based on Quick Response Code recognition technology sends to terminal device
CN103793740B (en) Encoding system and method and decoding system and method of micro-colored-drawing two-dimension code
CN104539953A (en) Method and system for transmitting files in image recognition mode
CN103679763A (en) Modulation code and method and application thereof
CN104036311A (en) Novel wechat membership card and production method thereof
CN106535098A (en) Short-distance communication method and device
CN202013593U (en) Electronic coupons system
CN110008781B (en) Two-dimensional multi-frame modulation and demodulation method
CN213634530U (en) Energy-saving on-site electronic two-dimensional code system
CN105095938B (en) A kind of generation method of the multistage latent image code of colour

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190604