[go: up one dir, main page]

CN106022200B - A kind of coding and decoding methods of spectrum two-dimensional code - Google Patents

A kind of coding and decoding methods of spectrum two-dimensional code Download PDF

Info

Publication number
CN106022200B
CN106022200B CN201610299246.2A CN201610299246A CN106022200B CN 106022200 B CN106022200 B CN 106022200B CN 201610299246 A CN201610299246 A CN 201610299246A CN 106022200 B CN106022200 B CN 106022200B
Authority
CN
China
Prior art keywords
spectrum
coding
dimensional code
information
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.)
Active
Application number
CN201610299246.2A
Other languages
Chinese (zh)
Other versions
CN106022200A (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.)
Jiangsu Nanda Wuwei Electronic Technology Co Ltd
Original Assignee
Jiangsu Nanda Wuwei Electronic Technology 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 Jiangsu Nanda Wuwei Electronic Technology Co Ltd filed Critical Jiangsu Nanda Wuwei Electronic Technology Co Ltd
Priority to CN201610299246.2A priority Critical patent/CN106022200B/en
Publication of CN106022200A publication Critical patent/CN106022200A/en
Application granted granted Critical
Publication of CN106022200B publication Critical patent/CN106022200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Optical Communication System (AREA)

Abstract

The present invention merges optical spectrum encoded technology with planar bar code technology, discloses a kind of coding and decoding methods of spectrum two-dimensional code.In the method, the coding detailed process of spectrum two-dimensional code is as follows:(1) encoding of graphs information is written in the figure of Quick Response Code, optical spectrum encoded information is written in the graphic element of Quick Response Code, each graphic element is made of the one-dimensional spectral vector of 1 × N, includes N optical spectrum encoded information;(2) coding for being carried out spectral vector to each graphic element using spectrum two-dimensional code generator according to coding information, is then carried out encoding of graphs to the pattern of Quick Response Code, ultimately generates spectrum two-dimensional code.The present invention increases the information channel of spectral Dimensions using optical spectrum encoded technology, further improves the information storage of Quick Response Code, and amount of storage is the 2 of conventional two-dimensional code technologyN‑1Times, the information memory capacity to solve the problems, such as current Quick Response Code is low.

Description

A kind of coding and decoding methods of spectrum two-dimensional code
Technical field
The present invention merges optical spectrum encoded technology with planar bar code technology, be related to a kind of coding of novel spectrum two-dimensional code and Coding/decoding method.
Background technology
Quick Response Code is with the chequered with black and white distribution in plane (two-dimensional directional) according to certain rules of certain specific geometric figure Figure, for recording data symbol information;" 0 ", " 1 " bit for constituting calculating internal logic basis are utilized in code compilation The concept of stream indicates 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 to realize automatic processing of information.
The size of 2 D code information capacity depends on the resolution capability of the physical size and barcode scanning equipment of Quick Response Code, theoretically The information capacity of Quick Response Code can reach infinitely great, it is contemplated that practical application scene, the size of Quick Response Code is restricted, mesh The method of the increase 2 D code information capacity of preceding mainstream is:Reduce Quick Response Code Pixel Dimensions to increase Quick Response Code pixel number, change and compile Code mode improves code efficiency, the short network address of storage is directed toward the information etc. preserved beyond the clouds, however these methods can not be from basic The upper information capacity for promoting Quick Response Code.On the other hand, planar bar code technology is to use indifference barcode scanning technology, any object at present Barcode scanning can be carried out to Quick Response Code by other tools such as mobile phone and identify information therein.This kind of planar bar code technology is passed as information Broadcasting medium, there are some potential safety problemss, especially for the field for being related to user information safety, such as property safety, personal secret Information etc..In addition, although planar bar code technology itself traditional at present has certain security and antiforge purpose performance, used mode Only it is to utilize simple position exclusive or method, stringent safe-guarding and anti-counterfeiting technology can not be regarded as.
Invention content
For the defect that conventional two-dimensional code technology existence information capacity is low, safety coefficient is low, the purpose of the present invention is by light Spectral encoding technology is combined with planar bar code technology, provides a kind of novel coding and decoding methods.Do not have also in Quick Response Code field at present Favorably with the optical spectrum encoded mode for carrying out Quick Response Code coding.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
A kind of coding and decoding methods of spectrum two-dimensional code, the spectrum two-dimensional code include encoding of graphs and optical spectrum encoded, It is characterized in that, the coding detailed process of the spectrum two-dimensional code is as follows:
(1) encoding of graphs information is written in the figure of Quick Response Code, optical spectrum encoded information is written to the figure list of Quick Response Code In member, each graphic element by 1 × N one-dimensional spectral vectorIt constitutes, includes N optical spectrum encoded information, wherein vector The value of length N is:
In formula, λRFor the spectral region of spectrum two-dimensional code, Δ λ and FWHM are the spectrum for the spectrometer for reading spectrum two-dimensional code Resolution ratio and half-peak breadth;
(2) spectral vector is carried out to each graphic element using spectrum two-dimensional code generator according to coding informationVolume Then code carries out encoding of graphs to the pattern of Quick Response Code, ultimately generates spectrum two-dimensional code.
The spectral vectorCoding mode be binary-coding, the specific implementation process is as follows:N coding informations It is made of 0 and 1, i.e., the encoded radio of each effective wavelength is 0 or 1, and spectrum two-dimensional code generator is according to binary-coding information pair two The emission spectrum of the dimension each graphic element of code is configured, if wavelength XiThe binary-coding value at place is 1, then corresponding in this wave It is Amp (λ that section, which has central energy amplitude,i) spectral components generate;If wavelength XiThe binary-coding value at place be 0, then it is corresponding This wave band does not have spectral components generation, i.e. Amp (λi)=0, wherein i=1,2 ..., N;Since binary-coding is not by energy magnitude Influence, Amp (λi) setting need be only greater than least energy threshold value A mp_Th.
Further, the decoding process of the spectrum two-dimensional code is as follows:Spectrum is shot using spectrum two-dimensional code scanning machine Quick Response Code obtains the graphical information and spectral information of spectrum two-dimensional code;Obtain the encoding of graphs letter of Quick Response Code respectively by decoding Breath and optical spectrum encoded information, and the two information is merged, the final information for obtaining spectrum two-dimensional code;Wherein spectrum two-value is compiled The decoding step of code is as follows:To spectral energy amplitude Amp (λi) judged, if spectral energy amplitude Amp (λi) it is more than threshold value Amp_Th, then output is 1;If it is less than threshold value A mp_Th, then output is 0.
The spectral vectorCoding mode be amplitude coding, the specific implementation process is as follows:N coding informations by Function f (λi) generate, function f (λi) there are the differences in amplitude for output valve, wherein i=1,2 ..., N;Spectrum two-dimensional code generates Device is configured the emission spectrum of each graphic element of Quick Response Code according to amplitude coding information;The energy magnitude of emission spectrum Amp(λi) be:
Amp(λi)=H (f (λi))
Wherein H is transfer function, and the transfer function H that Quick Response Code different graphic unit uses can be identical or different.
Further, the decoding process of the spectrum two-dimensional code is as follows:Spectrum is shot using spectrum two-dimensional code scanning machine Quick Response Code obtains the graphical information and spectral information of spectrum two-dimensional code;Obtain the encoding of graphs letter of Quick Response Code respectively by decoding Breath and optical spectrum encoded information, and the two information is merged, the final information for obtaining spectrum two-dimensional code;Wherein spectrum amplitude is compiled The decoding step of code is as follows:To spectral energy amplitude Amp (λi) judged, if spectral energy amplitude Amp (λi) it is less than threshold value Amp_Th, then output is 0;If it is greater than threshold value A mp_Th, then the inverse function H of transfer function H is utilized-1To Amp (λi) at Reason, output solution code value.
The spectrum two-dimensional code generator is given birth to using semiconductor light emitting technology, Optical interference techniques or fluorescence radiation technology At spectrum two-dimensional code.
Further, in step (1), optical spectrum encoded information is encrypted.
Compared with prior art, the advantage of the invention is that:
(1) present invention increases the information channel of spectral Dimensions using optical spectrum encoded technology, further improves Quick Response Code Information storage, amount of storage be conventional two-dimensional code technology 2N-1Times, it is low to solve the information memory capacity of current Quick Response Code The problem of;
(2) spectrum two-dimensional code of the invention, only specific user can just access spectrum two using special spectrum camera The complete information for tieing up code, ensure that information security and privacy of user, then realize that planar bar code technology is directed to the reading of specific crowd And identification;
(3) present invention introduces one layer of encryption mechanism relative to traditional planar bar code technology, makes again in the optical spectrum encoded stage The safety and reliability for obtaining Quick Response Code is greatly improved.
Description of the drawings
Fig. 1 is spectrum two-dimensional code component schematic diagram of the present invention;
Fig. 2 is the product process figure of spectrum two-dimensional code of the present invention;
Fig. 3 is spectrum two-dimensional code spectrum two-value encoding and decoding schematic diagram;
Fig. 4 is spectrum two-dimensional code spectrum amplitude encoding and decoding schematic diagram;
Fig. 5 is the identification process figure of spectrum two-dimensional code of the present invention;
Fig. 6 is that InP quantum dots absorb in embodiment and excitation spectrum (quotes source with particle size relational graph:O.I.H.M.Cheong,H.Fu,et al.Size-Dependent Spectroscopy of InP Quantum Dots [J].Journal of Physical Chemistry B,1997,101(25));
Fig. 7 is QR two-dimension code structure distribution schematic diagrams;
Fig. 8 is the spectral schematic of spectrum two-dimensional code spectrum amplitude coding in embodiment;
Fig. 9 is plane reflection grating schematic diagram in embodiment;
Figure 10 is grating spectrum Quick Response Code schematic diagram in embodiment.
Specific implementation mode
Each graphic element of spectrum two-dimensional code of the present invention by 1 × N one-dimensional spectral vectorIt constitutes, including N Spectral information, as shown in Figure 1.Vector length N depends on the spectral region λ of spectrum two-dimensional codeR, read the spectrum of spectrum two-dimensional code Instrument spectral resolution Δ λ and half-peak breadth are FWHM, and theoretically the value of N is
The flow chart of Quick Response Code is generated as shown in Fig. 2, the information that spectrum two-dimensional code is written is needed to pass through respective coding staff Formula carries out encoding of graphs and optical spectrum encoded respectively, and encoding of graphs is write information into the figure of Quick Response Code, with conventional two-dimensional code Method is similar;Optical spectrum encoded write information into the spectrum of two-dimension code pattern unit.Encoding of graphs program and optical spectrum encoded journey Hardware driving is written in sequence jointly, and the spectrum two-dimensional code generation hardware for acting on profession utilizes different lifes according to the difference of hardware Spectrum two-dimensional code, including semiconductor light emitting technology, Optical interference techniques or fluorescence radiation technology etc. are generated at principle.
It is different according to spectral vector coding mode,There are two kinds of generating modes of binary-coding and amplitude coding.
The realization method of spectrum binary-coding is as shown in figure 3, N coding information f are made of 0 and 1, i.e., each significant wave Long encoded radio is 0 or 1, and spectrum two-dimensional code generator is configured the emission spectrum of Quick Response Code according to binary-coding information. If wavelength XiBinary-coding value at (i=1,2 ..., N) is 1, then corresponding to have central energy amplitude for Amp in this wave band (λi) spectral components generate;If wavelength XiBinary-coding value at (i=1,2 ..., N) is 0, then corresponding not have in this wave band There are spectral components generation, Amp (λi)=0.Since binary-coding is not influenced by energy magnitude, Amp (λi) setting only need greatly In least energy threshold value A mp_Th.
The realization method of spectrum amplitude coding as shown in figure 4, N coding informations by function f (λi) generate, function f is defeated Go out value there are the difference in amplitude, because of referred to herein as amplitude coding.Spectrum two-dimensional code generator is according to amplitude coding information to two dimension The emission spectrum of code is configured.Energy magnitude Amp (the λ of emission spectrumi) expression formula is such as shown in (3).H is transfer function, defeated Enter for amplitude coding information f (λi), export the energy magnitude Amp (λ for emission spectrumi).In order to improve coding rate, function H can It is 1 direct ratio function, i.e. Amp (λ to take coefficienti)=f (λi), the energy magnitude and volume at one and same coding band spectrum at this time The code value of information is equal.In order to improve the confidentiality of Quick Response Code, complicated transfer function H can be set, at this time spectral energy amplitude Amp(λi) it is no longer equal to coding function f (λi)。
Amp(λi)=H (f (λi)) (i=1,2 ... N) (3)
In addition, because Quick Response Code is made of multiple graphic elements, the transfer function H between different graphic unit can be mutual It is independent, to improve the confidentiality of Quick Response Code.Include the Quick Response Code of m × n graphic element, formula (3) can be write as formula (4).
Amp(x, y)i)=H(x, y)(f(x, y)i)) (i=1,2 ... N, x=1,2 ... m, y=1,2 ... are n) (4)
Spectrum two-dimensional code is optical spectrum encoded in addition to being carried out to each graphic element, and image volume can be also carried out to pattern in 2 D code Code, including m × n graphic element, and the spectrum two-dimensional code that spectral vector length is N, according to spectrum binary-coding and figure As the information content that the mode that coding combines may include is 2m×n×N;The mode combined according to spectrum amplitude coding and image coding The information content that may include is For the number of significant digit of spectrum amplitude coding
The flow chart of Quick Response Code is identified as shown in figure 5, utilizing the spectrum two-dimensional code scanning machine of profession, such as spectrum phase Machine shoots spectrum Quick Response Code, and the graphical information and spectral information for obtaining spectrum two-dimensional code are obtained respectively by decoding process The information in two-dimension code pattern and spectrum, the decoding of Quick Response Code spectrum is taken to obtain the spectrum solution code value of each graphic element, Quick Response Code Graphic decoder can orient data-encoding area and graphic decoder sequence, be replaced often with the spectrum solution code value of each graphic element The graphic decoder value of a graphic element forms new graphic decoder sequence, the final information for obtaining spectrum two-dimensional code.
Spectrum two-value decoded mode such as Fig. 3, to spectral energy amplitude Amp (λi) judged, if it is greater than threshold value Amp_Th, then output is 1;If it is less than threshold value A mp_Th, then output is 0.
The decoded mode of spectrum amplitude is as shown in figure 4, to spectral energy amplitude Amp (λi) judged, it is less than threshold value Amp_Th, then output is 0;If it is greater than threshold value A mp_Th, then function H is utilized-1To Amp processing, output solution code value f '.
F '=H-1(Amp) (6)
Confidentiality in addition to being improved spectrum two-dimensional code using transfer function H can also carry out coding information f secrecy and set Set, and using the decryption method of coding information f as information be written specific wavelength it is optical spectrum encoded in.
Embodiment 1:
Spectrum two-dimensional code encoding and decoding based on technology of quantum dots
Quantum dot is made of a limited number of atom, and three dimensions are in nanometer scale.Quantum dot can after being excited To emit fluorescence, and emission spectrum is narrow and symmetrical, Color tunable, can prepare spectrum two-dimensional code using its fluorescence radiation technology; Meanwhile quantum dot can also be shone by being electrically excited, and can also be used to generate spectrum two using the quantum dot diode of its preparation Tie up code.
Optical spectrum encoded vector is designed according to code requirement first
According to optical spectrum encoded vectorWavelength information, adjust quantum dot size and chemical substance composition, from And change the emission spectrum of quantum dot.By taking InP quantum dots as an example, emission spectrum and particle size are as shown in fig. 6, when changing its Grain size, when being adjusted to from 2.6nm to 6.0nm, launch wavelength can move on to 780nm, luminescence band λ from 595nmRFor 185nm, half Peak width FWHM is 30nm, spectral resolution 1nm, and according to formula (1), the length of optical spectrum encoded vector is up to 6, encodes wavelength For [595nm, 635nm, 680nm, 725nm, 750nm, 780nm], corresponding particle it is a diameter of [2.6nm, 3nm, 3.5nm, 4.2nm, 4.8nm, 6nm].
By taking binary-coding as an example, coding information f may be configured as [1,0,1,1,0,1], corresponding optical spectrum encoded vectorFor convenience of description, it is equal that each component value can be set, i.e.,According to optical spectrum encoded vectorChange quantum dot InP semiconductors Particle size and concentration can get corresponding emission spectrum.
After the individual element of spectrum two-dimensional code completes coding, next step is to the quantum dot of m n array all in accordance with same Mode carry out optical spectrum encoded, and utilize normal image two dimension code encoding method, encoded with QR CODE Quick Response Codes in the present embodiment Mode illustrates.Fig. 7 is the structure distribution figure of QR Quick Response Codes, and Quick Response Code element units are divided into two parts:Functional graphic region The data-encoding area and.Functional graphic region is arranged in the first step, which includes:Position sensing figure, position sensing figure Shape separator, positioning pattern and correction graph;Optical spectrum encoded, functional graphic region is carried out to the Quick Response Code element units in the region It is optical spectrum encoded do not include numerical information, it is only necessary to different shape can be distinguished, can be right in the present embodiment with reference to figure 7 Black region setting coding information f in functional graphic region is [1,0,0,0,0,0], and white area setting coding information f is [0,0,1,0,0,0];Data-encoding area is arranged in second step, and data include data and error correction code word, the difference with traditional QR codes It is, the data that each element units of traditional QR codes are included are binary one or " 0 ", each element in the present embodiment The data that unit is included are the binary number f of 6bit.
Spectrum two-dimensional code decoding stage, using the patent of Publication No. CN102279050A《A kind of multispectral calculating weight Structure method and system》In the optical spectrum reconstruction method mentioned extract optical spectrum encoded information.It is as follows:
Step 1, the two-way multispectral image of spectrum two-dimensional code is obtained;Step 2, according to QR CODE Quick Response Code decoding principles, Using image processing method, functional graphic region and the data-encoding area of Quick Response Code of Quick Response Code are identified;Step 3, to light The sampled point spectral information for composing the multispectral image of two-dimensional code data coding region individual element unit carries out principal component analysis, obtains To each element units principal component spectral vector base;Step 4, according to principal component spectral vector base, camera acquire RGB vector, The channel B integral curve of the channels the R integral curve of camera, the channels the G integral curve of camera and camera reconstructs unknown spectrum point On spectral information Amp(x, y);Step 5, the optical spectrum encoded information f ' of each element units of Quick Response Code is obtained using formula 5(x, y);Step Rapid 6, by the coding information f ' of each element units of data-encoding area(x, y)It is combined according to set sequence, finally obtains Obtain the total data information of Quick Response Code.
Embodiment 2:
Magnitude spectra encoding and decoding
By taking InP quantum dots as an example, optical spectrum encoded vector length N=6.
Coding stage
The first step, setting coding information simultaneously normalize coding information, coding information f be the coding with relative value size to Amount, such as f=[7,4,2,5,0,3];Since in decoding stage, the factors such as shooting distance and angle can influence decoding equipment and obtain Spectrum absolute value, therefore normalized coding information need to be set in coding stage, using third position as standard value in this embodiment, return One changes coding information
Second step, transfer function H use coefficient for 1 direct ratio function, i.e.,The emission spectrum of each wave band such as Fig. 8 In dotted line shown in;
Third walks, transfer function H calibrations, due to there is overlapping between adjacent band, actual transmission spectrumTo Amount and design value are there are deviation, as shown in solid in Fig. 8;Using software emulation (such as Matlab, Mathematica etc. number Word carries out numerical simulation) or practical measurement (such as spectrometer is utilized to carry out spectral measurement) available actual transmitting Spectral valueThe transfer function after being calibrated can be calculated using formula (7)
Decoding stage
The first step obtains spectral vector using the optical spectrum reconstruction method section in embodiment 1
Second step, to spectral vectorThreshold determination is carried out, the corresponding spectrum solution code value of spectral value of Amp_Th is less than F is 0;Spectrum solution code value f ' corresponding more than the spectral value of Amp_Th is using the transfer function after formula (6) and calibrationIt calculates It obtains;
Third walks, normalization solution code value, and operation is normalized to eliminate the influence, due to compiling on spectrum solution code value f ' It in the code stage, is normalized using the numerical value of third position, therefore in decoding stage, normalization solution code value
Embodiment 3:
Optical spectrum encoded information f encryptions
By taking InP quantum dots as an example, optical spectrum encoded vector length N=6.
Coding stage:
The first step establishes the lookup table of Encryption Algorithm E and code correspondence, such as 1 represents DES algorithms, and 2 represent DSA algorithms, 3 represent IDEA algorithms, and 4 represent only to fixed bit coding, etc.;
Second step selects Encryption Algorithm, and it is 4 that Encryption Algorithm is designed in this embodiment and corresponds to code, i.e. f (1)=4;
Third walks, and generates ciphertext C to plaintext P encryptions according to selected Encryption Algorithm E, is assigned to coding information f.According to Cryptographic Algorithm Requirements, encode the fixed bit (such as third position) of coding vector, i.e. f (3)=data, and the value of remaining is Random value, i.e. f (2/4/5)=randam, coding vector f=[4, randam, data, randam, randam, randam];
4th step generates spectrum two-dimensional code using the method in embodiment 2.
Decoding stage:
The first step obtains spectrum solution code value f ' using the method in embodiment 2;
Second step, extracts the primary values of f ', and f ' (1)=4 tables look-up and obtains spectrum Encryption Algorithm;
Third walks, and is decoded to f ' according to Encryption Algorithm, extraction cleartext information P=f (3)=data.
Embodiment 4:
Spectrum two-dimensional code encoding and decoding based on reflecting grating
Plane reflection grating is to be carved with a series of wide and equally spaced indentation in high precision plane to be formed by member Part, general grating are carved with tens to thousands of indentations in one millimeter, as shown in figure 9, working as a branch of parallel complex light It is incident in reflecting grating, it can by wavelength be spectrum in spatial decomposition by grating, scatter spectra wavelength and incident angle i, anti- Penetrating angle, θ and grating scoring length d has following relationship:
M λ=d (sin θ+sini) (8)
Wherein m is spectrum level, and in the present embodiment, spectrum level is fixed as 1.
Coding stage requires according to coding vector, designs indentation interval d to each Quick Response Code unit, as shown in Figure 10. Such as normalized coding vectorFor [1,1,0,1], the wavelength used is [400nm, 500nm, 600nm, 700nm], then Only need to the corresponding wavelength of 400nm, 500nm, 700nm carry out indentation, correspond to indentation interval d1, d2, d3 respectively, incidence angle with In the case of angle of reflection is fixed, there is d1:d2:D3=4:5:7.
Decoding stage irradiates Quick Response Code, in order to ensure the corresponding spectrum of each wavelength of decomposed spectrum using compound directional light Level is 1, and the wave band of compound directional light uses the complex light of 400~800nm, any incident angle degree illumination spectra Quick Response Code, profit Spectrum Quick Response Code is shot in arbitrary reflection angle with spectrum camera, the spectrum that Quick Response Code is obtained using the method in embodiment 1 is believed Breath.By taking the Quick Response Code unit of coding stage as an example, since incident angle and reflection angle are fixed, the ratio for obtaining spectrum peak closes System is formula (9).Reference encoder band ratio is 4: 5: 6: 7, can decode to obtain encoded radio to be 1101.
λ 1: λ 2: λ 3=d1: d2: d3=4: 5: 7 (9)
The foregoing is merely the preference embodiments of the present invention, are not intended to limit the scope of the present invention..Appoint What within the spirit and principles in the present invention made by all any modification, equivalent and improvement etc., should be included in the present invention's Within claims.

Claims (7)

1. a kind of coding method of spectrum two-dimensional code, which includes encoding of graphs and optical spectrum encoded, which is characterized in that The coding detailed process of the spectrum two-dimensional code is as follows:
(1) encoding of graphs information is written in the figure of Quick Response Code, optical spectrum encoded information is written in the graphic element of Quick Response Code, Each graphic element by 1 × N one-dimensional spectral vectorIt constitutes, includes N optical spectrum encoded information, wherein vector length N Value be:
In formula, λRFor the spectral region of spectrum two-dimensional code, Δ λ and FWHM are the spectrally resolved of the spectrometer of reading spectrum two-dimensional code Rate and half-peak breadth;
(2) according to encoding of graphs information and optical spectrum encoded information, each graphic element is carried out using spectrum two-dimensional code generator Spectral vectorCoding, then to the pattern of Quick Response Code carry out encoding of graphs, ultimately generate spectrum two-dimensional code.
2. a kind of coding method of spectrum two-dimensional code according to claim 1, which is characterized in that the spectral vector Coding mode be binary-coding, the specific implementation process is as follows:N coding informations are made of 0 and 1, i.e., each effective wavelength Encoded radio be 0 or 1, spectrum two-dimensional code generator is according to binary-coding information to the emission spectrum of each graphic element of Quick Response Code It is configured, if wavelength XiThe binary-coding value at place is 1, then corresponding to have central energy amplitude for Amp (λ in this wave bandi) Spectral components generate;If wavelength XiThe binary-coding value at place is 0, then corresponding not have spectral components generation in this wave band, i.e., Amp(λi)=0, wherein i=1,2 ..., N;Since binary-coding is not influenced by energy magnitude, Amp (λi) setting only need More than least energy threshold value A mp_Th.
3. a kind of coding method of spectrum two-dimensional code according to claim 2, which is characterized in that the spectrum two-dimensional code Decoding process is as follows:Using spectrum two-dimensional code scanning machine shoot spectrum Quick Response Code, obtain spectrum two-dimensional code graphical information and Spectral information;The encoding of graphs information of Quick Response Code and optical spectrum encoded information are obtained respectively by decoding, and the two information is carried out Fusion, the final information for obtaining spectrum two-dimensional code;The decoding step of wherein spectrum binary-coding is as follows:To spectral energy amplitude Amp(λi) judged, if spectral energy amplitude Amp (λi) being more than threshold value A mp_Th, then output is 1;If it is less than threshold value Amp_Th, then output is 0.
4. a kind of coding method of spectrum two-dimensional code according to claim 1, which is characterized in that the spectral vector Coding mode be amplitude coding, the specific implementation process is as follows:N coding informations are by function f (λi) generate, function f (λi) defeated Going out value, there are the differences in amplitude, wherein i=1,2 ..., N;Spectrum two-dimensional code generator is according to amplitude coding information to two dimension The emission spectrum of each graphic element of code is configured;Energy magnitude Amp (the λ of emission spectrumi) be:
Amp(λi)=H (f (λi))
Wherein H is transfer function, and the transfer function H that Quick Response Code different graphic unit uses can be identical or different.
5. a kind of coding method of spectrum two-dimensional code according to claim 4, which is characterized in that the spectrum two-dimensional code Decoding process is as follows:Using spectrum two-dimensional code scanning machine shoot spectrum Quick Response Code, obtain spectrum two-dimensional code graphical information and Spectral information;The encoding of graphs information of Quick Response Code and optical spectrum encoded information are obtained respectively by decoding, and the two information is carried out Fusion, the final information for obtaining spectrum two-dimensional code;The decoding step of wherein spectrum amplitude coding is as follows:To spectral energy amplitude Amp(λi) judged, if spectral energy amplitude Amp (λi) being less than threshold value A mp_Th, then output is 0;If it is greater than threshold value Amp_Th then utilizes the inverse function H of transfer function H-1To Amp (λi) handled, output solution code value.
6. a kind of coding method of spectrum two-dimensional code according to claim 1,2 or 3, which is characterized in that the spectrum two It ties up code generator and generates spectrum two-dimensional code using semiconductor light emitting technology, Optical interference techniques or fluorescence radiation technology.
7. a kind of coding method of spectrum two-dimensional code according to one of claim 1 to 5, which is characterized in that in step (1) In, optical spectrum encoded information is encrypted.
CN201610299246.2A 2016-05-06 2016-05-06 A kind of coding and decoding methods of spectrum two-dimensional code Active CN106022200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610299246.2A CN106022200B (en) 2016-05-06 2016-05-06 A kind of coding and decoding methods of spectrum two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610299246.2A CN106022200B (en) 2016-05-06 2016-05-06 A kind of coding and decoding methods of spectrum two-dimensional code

Publications (2)

Publication Number Publication Date
CN106022200A CN106022200A (en) 2016-10-12
CN106022200B true CN106022200B (en) 2018-10-02

Family

ID=57081853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610299246.2A Active CN106022200B (en) 2016-05-06 2016-05-06 A kind of coding and decoding methods of spectrum two-dimensional code

Country Status (1)

Country Link
CN (1) CN106022200B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107121072B (en) * 2017-05-22 2019-10-22 合肥工业大学 2D Absolute Displacement Encoder
CN107563479A (en) * 2017-08-28 2018-01-09 宁夏软件工程院有限公司 The preparation and recognition methods of a kind of invisible two-dimensional codes
CN107862366A (en) * 2017-12-11 2018-03-30 福州大学 A kind of Quick Response Code based on quantum dot light photoluminescence
WO2020082384A1 (en) * 2018-10-26 2020-04-30 合刃科技(深圳)有限公司 Spectral anti-counterfeiting identification system, and methods for preparing and decoding spectral anti-counterfeiting code
CN110503055B (en) * 2019-08-27 2022-04-05 广东小天才科技有限公司 Friend adding method, device and system and storage medium
CN111461279A (en) * 2020-04-01 2020-07-28 张晓鸿 Multifunctional carrier I-shaped code structure and using method thereof
CN113765585B (en) * 2020-06-04 2024-03-26 中国电子科技集团公司第十一研究所 Method and system for establishing communication link

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8511557B2 (en) * 2009-12-19 2013-08-20 Trutag Technologies, Inc. Labeling and authenticating using a microtag
CN105219166A (en) * 2015-10-13 2016-01-06 青岛爱慕熙吉电子有限公司 A kind of carbon element dimension code anti-counterfeit method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8511557B2 (en) * 2009-12-19 2013-08-20 Trutag Technologies, Inc. Labeling and authenticating using a microtag
CN105219166A (en) * 2015-10-13 2016-01-06 青岛爱慕熙吉电子有限公司 A kind of carbon element dimension code anti-counterfeit method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
隐形防伪技术及其应用;吴平;《印刷质量与标准化》;20150228(第2期);全文 *

Also Published As

Publication number Publication date
CN106022200A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106022200B (en) A kind of coding and decoding methods of spectrum two-dimensional code
Škorić et al. Robust key extraction from physical uncloneable functions
Hinojosa et al. Coded aperture design for compressive spectral subspace clustering
Ramalho et al. Super modules-based active QR codes for smart trackability and IoT: a responsive-banknotes case study
Folch‐Fortuny et al. Calibration transfer between NIR spectrometers: New proposals and a comparative study
US20080191035A1 (en) Bar Code Generation Method Using Color Code, Data Compression Method, And Internet Service Method Thereof
KR101726968B1 (en) Systems and methods for multi-flux color matching
US10699506B2 (en) Systems, methods, and computer programs for imaging an object and generating a measure of authenticity of the object
CA3023623C (en) Systems, methods, and computer programs for generating a measure of authenticity of an object
Pastilha et al. Describing natural colors with Munsell and NCS color systems
Qian et al. Vector quantization using spectral index-based multiple subcodebooks for hyperspectral data compression
CN111788462A (en) Generating Narrowband Spectral Images from Broadband Spectral Images
CN110494899A (en) Luminescent security features and method and apparatus for being detected to it
Bryan et al. Inexpensive photonic crystal spectrometer for colorimetric sensing applications
US8739954B2 (en) Characterizing items of currency
EP4046023A1 (en) Image processing and authentication of unclonable functions
CN105190292B (en) Use the system and method for the texture analysis for coated surfaces of hypergeometry structure
Chang et al. Accurate sensing of LED spectra via low-cost spectrum sensors
Brydegaard et al. Chemometric approach to chromatic spatial variance. Case study: patchiness of the Skyros wall lizard
Tominaga et al. Appearance synthesis of fluorescent objects with mutual illumination effects
Druy et al. Next-Generation Spectroscopic Technologies XI
Hua et al. A compact representation for fluorescent spectral data
Majumder et al. Spectral imaging using compressive sensing‐based single‐pixel modality
Xu et al. Reflective color reduction using genetic algorithm optimization
Good et al. Analysis of the Effects of Wavelength Band Selection and Data Fusion Techniques on Multiple-modality Homeland Security Airborne Scenes Via Deep Learning Models

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