CN104850883B - The generation method of more grayscale invisible two-dimensional codes - Google Patents

The generation method of more grayscale invisible two-dimensional codes Download PDF

Info

Publication number
CN104850883B
CN104850883B CN201510323674.XA CN201510323674A CN104850883B CN 104850883 B CN104850883 B CN 104850883B CN 201510323674 A CN201510323674 A CN 201510323674A CN 104850883 B CN104850883 B CN 104850883B
Authority
CN
China
Prior art keywords
grayscale
information
code
symbol
colours
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
CN201510323674.XA
Other languages
Chinese (zh)
Other versions
CN104850883A (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.)
Silicon Graphics Xiamen Technology Co ltd
Original Assignee
Silicon Graphics (xiamen) 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 Silicon Graphics (xiamen) Technology Co Ltd filed Critical Silicon Graphics (xiamen) Technology Co Ltd
Priority to CN201510323674.XA priority Critical patent/CN104850883B/en
Publication of CN104850883A publication Critical patent/CN104850883A/en
Application granted granted Critical
Publication of CN104850883B publication Critical patent/CN104850883B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of generation methods of more grayscale invisible two-dimensional codes, include the following steps, setting steps:Identification region for more grayscale invisible two-dimensional codes sets grayscale quantity;Obtaining step:Obtain data to be encoded;Coding step:The data to be encoded are encoded, according to the multiple information code elements with several grades of grayscale of grayscale quantity generation, output includes the identification region of each described information symbol.Using the above scheme, the present invention is by using the information code element with several grades of grayscale, it need not be using the box positioning of three angles position of the prior art, Quick Response Code is enabled to carry more code information carrying breaths, it also is able to show as image, information storage is big, conducive to accurately identifying, word or image carrier can be used as to use, there is very high market application value.

Description

The generation method of more grayscale invisible two-dimensional codes
Technical field
The present invention relates to planar bar code technology improve more particularly to, a kind of generation method of more grayscale invisible two-dimensional codes.
Background technology
Two-dimensional bar code/Quick Response Code (2-dimensional bar code) is by a set pattern with certain specific geometric figure Restrain the chequered with black and white graphic recording data symbol information that is distributed in plane (on two-dimensional directional);On coding dexterously It is corresponding several with binary system using several using forming " 0 " of computer-internal logical foundations, the concept of " 1 " bit stream What body represents word numerical information, by image input device or photoelectric scanning device automatically identifying and reading to realize that information is automatic Processing:It has some general character of barcode technology:Each code system has its specific character set;Each character occupies certain width Degree;With certain verifying function etc..Also there is information automatic identification function and processing the figure rotation to not going together to become simultaneously Change point.
Foreign countries start from late 1980s to the research of planar bar code technology, in terms of two-dimensional code symbol presentation technology research It has been developed that a variety of code systems, common are PDF417, QR Code, Code 49, Code 16K, Code One etc..These two dimensions The information density of code is all greatly improved than traditional one-dimension code, if the information density of PDF417 is one-dimension code CodeC39 More than 20 times.In terms of Quick Response Code Standardization Research, international automatic identification Manufacturers Association (AIM), American Standards Association (ANSI) the symbol standard of the code systems such as PDF417, QR Code, Code 49, Code 16K, Code One has been completed.World mark Quasi- technical committee and International Electrotechnical Commission have also set up the bar code automatic identification technology committee (ISO/IEC/JTC1/ SC31), the international standard (ISO/IEC 18004 of QR Code has been formulated:2000《Automatic Identification & Data Collection-item Code sign technical specification-QR codes》), draft the Quick Response Codes such as PDF417, Code 16K, Data Matrix, Maxi Code ISO/IEC draft standards.In terms of the development of Quick Response Code equipment development, production, equipment manufacturers' production of the states such as the U.S., Japan Recognizing apparatus, symbol generation equipment, are widely used to all kinds of Quick Response Code application systems.Quick Response Code is as a kind of completely new information Storage, transmission and identification technology, have just obtained the concern of many countries in the world from being born certainly.Virtue Japan and other countries, Planar bar code technology is not only applied to the management of the departments to all kinds of certificates such as public security, diplomacy, military affairs, but also by Quick Response Code application In departments such as management of the departments such as customs, the tax to all kinds of reports and bill, business, communications and transportation to commodity and cargo transport Management, postal service are to the automatic management of the management, field of industrial production of parcel post to industrial production line.
China starts from the research of planar bar code technology 1993.Article Numbering Center of China is to several common Quick Response Codes The technical specification progress of PDF417, QR Code, Data Matrix, Maxi Code, Code 49, Code 16K, Code One Translation and follow-up study.With the rapid development of the constantly improve and information technology of China market economy, the country is to Quick Response Code The demand of this new technology is growing day by day.Article Numbering Center of China is in former China State Bureau of Quality and Technical Supervision and national departments concerned Support energetically under, deepen continuously to the research of planar bar code technology.On the basis of the external correlation technique data of digestion, formulate The national standard of two Quick Response Codes:Quick Response Code grid matrix code (SJ/T 11349-2006) and Quick Response Code close matrix code (SJ/T 11350-2006), so as to which the research and development of Quick Response Code of the China with technology with proprietary intellectual property rights be greatly facilitated.
Provide some basic informations of Quick Response Code relevant criterion again below.Correction graph (Alignment Pattern) is Fixed with reference to figure for establishing the one of matrix notation position, decoding software can have moderate damage by it in image In the case of bad, the coordinate image of image module is resynchronized.Character count indicator (Character Count Indicator) It is the bit sequence for defining the data string length under a certain pattern.ECI indicators (ECI designator) are usually 6 bit digitals, For identifying specific ECI tasks.Coding region (encoding region) is not occupied in symbol by functional graphic, The region that data or error correction code word can be encoded.Expand and explain (Extended Channel Interpretation (ECI)) it is in certain code systems, allows output stream the agreement for having the explanation different from default character set.Format information (Format Information) is a kind of functional graphic, it includes the symbol error-correction level used and the mask graph used Information, so as to the remainder of coding region into row decoding.Functional graphic (function pattern) is used in symbol In symbol location and the special pattern of feature recognition.Mask graph is for symbol with reference to (Mask Pattern Reference) Three bit mask graphical identifiers.Mask (masking) is in coding region, and xor operation is carried out to bitmap with mask graph, The purpose is to make the dark balanced proportion with light module number in symbol, and reduce the figure that influence image is quickly handled and go out It is existing.Pattern (mode) is the method that specific character set is expressed as to bit string.Mode indicators (Mode Indicator) are usual For 4 bit identifiers, the coding mode used in subsequent data sequence is indicated.Position sensing figure (Position Detection Pattern) it is one of three identical figures of composition view finding figure.Section (segment) is with same ECI or coding mode volume The data sequence of code.Separator (Separator) is the functional graphic being all made of light module, and width is a module, For position sensing figure and the rest part of symbol to be separated.Full stop (Terminator) is to show data bit for sign-off table The bitmap of stream.Positioning pattern (Timing Pattern) is typically the dark figure to interlock with light module, convenient for determining symbol The coordinate of middle module.
With the development of technology, Quick Response Code has been used widely.But Quick Response Code is typically only capable to accommodate more than 1,000 Byte, such as 500 Chinese characters or so, the small deficiency of existence information amount of storage, and due to its rule limitation, cause to expand The maximum capacity of appearance is no more than the square number of existing capacity.And with the development of the barcode scannings hardware such as mobile phone, photography technology can Enough obtain fine image.Therefore, the prior art is defective, needs to improve.
Invention content
The technical problems to be solved by the invention are to provide a kind of generation method of new more grayscale invisible two-dimensional codes.
Technical scheme is as follows:A kind of generation method of more grayscale invisible two-dimensional codes, includes the following steps, if Put step:Identification region for more grayscale invisible two-dimensional codes sets grayscale quantity;Obtaining step:Obtain data to be encoded;Coding Step:The data to be encoded are encoded, according to the multiple information codes with several grades of grayscale of grayscale quantity generation Member, output include the identification region of each described information symbol.
Preferably, before the setting steps, step is further included:Determine identification region.
Preferably, the determining identification region, positioning area and the information area including determining the identification region, alternatively, really The information area of the fixed identification region and positioning area therein or positioning mark.
Preferably, the positioning area is set by row.
Preferably, each described information symbol sets a positioning area.
Preferably, several described information symbols share a positioning area.
Preferably, whole described information symbols share a positioning area.
Preferably, in the setting steps, the shape of described information symbol is also set up.
Preferably, described information symbol is rectangle.
Using the above scheme, the present invention is by using the information code element with several grades of grayscale, without using the prior art Three angles position box positioning so that Quick Response Code can carry more code information carryings breath, additionally it is possible to be shown as image, information Amount of storage is big, conducive to accurately identifying, word or image carrier can be used as to use, have very high market application value.
The other technologies scheme of the present invention, additionally it is possible to show the content shown by image as the information area of Quick Response Code, So that the form of expression of Quick Response Code is more bonded reality rather than existing various sub-boxes or mosaic, ornamental value is more preferably.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of generation method of the present invention.
Specific embodiment
For the ease of understanding the present invention, in the following with reference to the drawings and specific embodiments, the present invention will be described in more detail. But many different forms may be used to realize in the present invention, however it is not limited to this specification described embodiment.It needs It is bright, when element is referred to as " being fixed on " another element, it can directly on another element or there may also be Element placed in the middle.When an element is considered as " connection " another element, it can be directly to another element or Person may be simultaneously present centering elements.
Unless otherwise defined, technical and scientific term all used in this specification is led with belonging to the technology of the present invention The normally understood meaning of technical staff in domain is identical.Used term is only in the description of the invention in this specification The purpose of description specific embodiment is not intended to the limitation present invention.Term used in this specification " and/or " including one The arbitrary and all combination of a or multiple relevant Listed Items.
As shown in Figure 1, one embodiment of the present of invention is, a kind of generation method of more grayscale invisible two-dimensional codes, including Following steps, setting steps:Identification region for more grayscale invisible two-dimensional codes sets grayscale quantity;Obtaining step:It obtains and waits to compile Code data;Coding step:The data to be encoded are encoded, there are several grades of ashes according to grayscale quantity generation is multiple The information code element of rank, output include the identification region of each described information symbol.Stealth therein refers to determining for existing Quick Response Code Bit flag, such as three small boxes, are hidden, and become stealthy invisible content.For example, the knowledge for more grayscale invisible two-dimensional codes Various basic color setting grayscale quantity in other region;For another example, in setting steps, the identification region of more grayscale invisible two-dimensional codes is only Setting information area, stores location information in the information area;Or positioning area is stored in the information area.For example, in setting steps, it is The identification region setting number of colours and grayscale quantity of more grayscale invisible two-dimensional codes;For another example, each institute is determined by the number of colours Basic color is stated, i.e., described basic color is related to the number of colours.For another example, it is the stealthy two dimension of more grayscale in the setting steps Identification region setting number of colours and the grayscale quantity of code.For another example, it is the knowledge of more grayscale invisible two-dimensional codes in the setting steps The grayscale quantity that the number of colours of other region setting and more grayscale invisible two-dimensional codes matches, for example, the grayscale quantity and institute It is equal to state number of colours.For another example, in the setting steps, more grayscale invisible two-dimensional codes are set also according to the grayscale quantity The identification region, in this way, the size of the identification region can be adjusted flexibly according to grayscale quantity.For example, the identification Region is directly proportional to the grayscale quantity, and in the present embodiment, the size of more grayscale invisible two-dimensional codes is not a rated value, but It is flexibly set according to grayscale quantity, the very big pictorial poster of a width can be made in practical application;Preferably, the pictorial poster is not bright The positioning grid aobvious, obstruction is ornamental, so as to be used as more grayscale invisible two-dimensional codes.
Preferably, before the setting steps, step is further included:Determine identification region.For example, a kind of more grayscale stealths two The generation method of code is tieed up, is included the following steps:Determine identification region;Identification region for more grayscale invisible two-dimensional codes sets ash Exponent number amount;Obtain data to be encoded;The data to be encoded are encoded, if having according to grayscale quantity generation is multiple The information code element of dry grade grayscale, output include the identification region of each described information symbol.For another example, the generation method includes following Step:Determine identification region;Identification region for more grayscale invisible two-dimensional codes sets grayscale quantity;It is set according to the grayscale quantity Put or adjust the identification region;Obtain data to be encoded;The data to be encoded are encoded, according to the grayscale quantity Multiple information code elements with several grades of grayscale are generated, output includes the identification region of each described information symbol.In this way, it can give birth to Into more grayscale invisible two-dimensional codes, carrying information amount is big, and display effect is good.
Preferably, the determining identification region, positioning area and the information area including determining the identification region, alternatively, really The information area of the fixed identification region and positioning area therein or positioning mark;Alternatively, determine the information code of the identification region Positioning area or positioning mark in member.Preferably, the positioning area is set by row, for example, one positioning area of often row setting.Again Such as, the determining identification region only includes determining the information area of the identification region;It is not significantly positioned in this way, can obtain More grayscale invisible two-dimensional codes in area, for example, the lattice at three angles of existing Quick Response Code.Preferably, described information area is set The positioning area;For another example, described information symbol sets the positioning area.Preferably, described in each described information symbol setting one Positioning area;Alternatively, several described information symbols share a positioning area, for example, there are 300 information code elements, it is divided into 3 groups, every group Information code element shares a positioning area, shares 3 positioning areas;Alternatively, whole described information symbols share a positioning area, For example, the positioning area is set in the upper left corner of the identification region, the lower left corner, the upper right corner or the lower right corner, whole letters Breath symbol shares the positioning area.In this way, the capacity of more grayscale invisible two-dimensional codes can be increased.
Preferably, in the setting steps, the shape of described information symbol is also set up.For example, described information symbol is square Shape.Preferably, described information symbol is rectangular.Preferably, the shape of described information symbol, example are set according to the grayscale quantity Such as, the grayscale quantity is bigger, and the edge of the shape of described information symbol is more;For another example, the grayscale quantity is bigger, the letter The shape for ceasing symbol is more complicated;For another example, the shape of described information symbol has several protrusions, and the grayscale quantity is bigger, described The protrusion of information code element is more;Preferably, the protrusion quantity of described information symbol is equal with the grayscale quantity;Preferably, often One described information symbol sets a positioning area, using the positioning area of the protrusion as described information symbol.For example, The protrusion is essentially pixel grid, and the pixel grid on both sides is colourless or light, and the protrusion is dark color.It is preferred that , according to the size of grayscale quantity setting described information symbol.For example, the size of described information symbol and the gray number Amount is inversely proportional, for example, the grayscale quantity is bigger, described information symbol is smaller.
For another example, a kind of generation method of more grayscale invisible two-dimensional codes, includes the following steps:Setting steps:For more grayscale Identification region setting number of colours and the grayscale quantity of invisible two-dimensional codes;Obtaining step:Obtain data to be encoded;Coding step: The data to be encoded are encoded, according to the number of colours and the grayscale quantity, generation is with several colors and every One color has the information code element of several grades of grayscale, and output includes the identification region of each described information symbol.For example, generation has Red and black double colour and each color have the information code element of 96 grades of grayscale, a total of 96*2=192 seed colors;Again Such as, generation is with the red-black information code element of two kinds of basic colors and each basic colors with 96 grades of grayscale, a total of 96* 2=192 kinds segment color.Alternatively, it is understood that according to the number of colours and the grayscale quantity, if generation has butt Plinth color and each basic color combines several grades of grayscale to form several colors or be sub-color or be subdivision face so as to combine The information code element of color.
Preferably, the grayscale quantity is set according to the number of colours.For example, grayscale quantity is 8 to 256.For example, institute It states grayscale quantity to be inversely proportional with the number of colours, that is to say, that number of colours is bigger, and grayscale quantity is smaller;For example, the color Color quantity is 256, and the grayscale quantity is 8;For another example, the number of colours is 128, and the grayscale quantity is 16;For another example, it is described Number of colours is 64, and the grayscale quantity is 32;And so on.In this way, suitable for the constant equipment of analytic ability, such as it is a certain The mobile phone in period.For another example, the grayscale quantity is directly proportional to the number of colours, that is to say, that number of colours is bigger, gray number Amount is bigger;For example, the number of colours is 8, the grayscale quantity is 8;For another example, the number of colours is 16, the gray number Measure is 16;For another example, the number of colours is 32, and the grayscale quantity is 32;And so on.In this way, suitable for generating various appearances More grayscale invisible two-dimensional codes of amount.
Preferably, the square root round numbers that the grayscale quantity is the number of colours is set.For example, the number of colours Be 64, the grayscale quantity be 64 square root, i.e., 8;For another example, the number of colours is 255, and the grayscale quantity is 255 Square root round numbers, such as 4 houses 5 enter rounding, i.e., 16;For another example downward rounding, i.e., 15;And so on.In this way, it need to only determine described Number of colours can determine the grayscale quantity.For another example, square that the grayscale quantity is the number of colours is set;For example, The number of colours be 8, the grayscale quantity be 8 square, i.e., 64;For another example, the number of colours is 10, the grayscale quantity For 10 square, i.e., 100;And so on.In this way, also need to only determine that the number of colours can determine the grayscale quantity, grasp Make easy to use.
Preferably, grayscale quantity is set respectively to each color of the number of colours;For example, the grayscale quantity that setting is red It is 16, blue grayscale quantity is 8, and green grayscale quantity is 24 etc..For another example, phase is set to each color of the number of colours Same grayscale quantity, for example, setting is red, blue, the grayscale quantity of green are 32.Preferably, to the number of colours Each default identical grayscale quantity of color acquiescence.Preferably, the default identical grayscale quantity is 8 to 256.For example, acquiescence The grayscale quantity of each color is 25.Then, the adjustment grayscale quantity of each color is set further according to input;It is such as defeated by user Enter the adjustment grayscale quantity of each color, using the grayscale quantity as each color.
Preferably, the size of described information symbol is pre-seted according to the identification region.For example, identification region is rectangular, It is classified as x2It is a rectangular;For example, the identification region be 3*3 square centimeter, be classified as 9 it is rectangular, it is each it is rectangular as The size of described information symbol, i.e., 1 square centimeter;For another example, 36 rectangular, each rectangular as described information symbols are classified as Size, i.e., 0.25 square centimeter.
Preferably, the size of described information symbol is pre-seted also according to the number of colours.For example, described information symbol Size is inversely proportional with the number of colours, and the number of colours is bigger, and described information symbol is smaller.Preferably, also according to described Grayscale quantity pre-sets the size of described information symbol.For example, the size of described information symbol is inversely proportional with the grayscale quantity, The grayscale quantity is bigger, and described information symbol is smaller.In this way, an information code element can accommodate the information content of bigger.
For another example, a kind of generation method of more grayscale invisible two-dimensional codes, includes the following steps:Pre-set more grayscale stealths two The identification region of code is tieed up, for example, determining the identification region of more grayscale invisible two-dimensional codes;Wherein, the identification region is used for Place the information code element of more grayscale invisible two-dimensional codes to be identified;For example, the identification region setting positioning area and the information area, In, the positioning area is non-specific to offend the eye setting, i.e., its expression-form with described information area is same or similar, is unlikely to hinder to see Reward, such as the positioning area and described information area are partial graphical or image, it is preferred that the positioning area has several pictures The positioning mark of element composition, to identify;Pre-set the number of colours of more grayscale invisible two-dimensional codes and grayscale quantity;It obtains and waits to compile Code data;Coding step:The data to be encoded are encoded, export identification region.For example, described information area is including several Rectangular symbol.For another example, described information area includes several rectangle symbols.Preferably, step is further included:Made using the identification region For more grayscale invisible two-dimensional codes and share, such as by network sharing, for another example, shared by mobile terminal.
For example, pre-seting the identification region of more grayscale invisible two-dimensional codes, the identification region includes positioning area and the information area; Preferably, the positioning area is set in described information area.For example, the positioning area includes correction graph, such as it is used for really One of vertical matrix notation position is fixed with reference to figure, and decoding software can have the feelings of moderate damage by it in image Under condition, the coordinate image of image module is resynchronized;Described information area includes coding region, such as is not occupied by functional graphic, The region that data or error correction code word can be encoded.It should be noted that character count indicator, ECI indicators, separation The existing planar bar code technology such as symbol, full stop, is set to the identification region, and this will not be repeated here, the present invention and its each implementation Example is described in detail only for each inventive point, each embodiment and its relevant technologies feature.
For example, pre-set the number of colours of more grayscale invisible two-dimensional codes;For example, the number of colours is basic chromatic number amount, Wherein, the color in the number of colours, including several basic colors;For example, the number of colours is 3, corresponding, the color Including 3 kinds of basic colors;For another example, the grayscale quantity is 16, i.e., including 16 grades of grayscale, in this way, the knowledge of more grayscale invisible two-dimensional codes The other a total of 48 kinds of colors in region.For another example, the number of colours is 8, and the grayscale quantity is 64, i.e., described color includes 8 kinds Basic color, each basic color have 64 grades of grayscale, totally 512 kinds of colors.For another example, the number of colors of more grayscale invisible two-dimensional codes is pre-seted Scale, each number of colours in table corresponds to several basic colors of the quantity, for example, number of colours is 3, it is corresponding pre-set 3 The basic color RGB of kind, for another example, number of colours 7, the corresponding basic colors of 7 kinds pre-seted, such as the yellowish green ultramarine purple of blood orange, with such It pushes away.
For example, the number of colours is 256, the grayscale quantity is also 256, then a total of 65536 kinds of colors, i.e., each Basic color includes the color of 256 kinds of different grayscale, and each grayscale is corresponding with the color of 256 kinds of different basic colors.For example, it also wraps Include step:Change or adjust the number of colours and/or the grayscale quantity.Wherein, the basic color is some bases Color, such as the basic color of RGB three, for another example, 12 grayscale are coordinated per color, then a total of 36 kinds of colors.For example, basic color The grayscale colour system of relevant rudimentary color is cooperatively formed from different grayscale.For another example, step is further included:Pre-set number of colours and basis The mapping table of color;Using the mapping table in subsequent encoding or decoding, obtained according to number of colours corresponding Basic color information, for example, basic chromatic number amount is 3, corresponding basis color is RGB;For another example, basic chromatic number amount is 4, corresponding Basic color be red, yellow, green and blue;For another example, basic chromatic number amount is 8, and corresponding basis color is the yellowish green ultramarine purple indigo of blood orange;For another example, base Plinth chromatic number amount is 64 or 128, and corresponding basis color is the related colour system set by each image processing software, and so on.It is logical Often in the case of, using number of colours as store information factor when, if number of colours is higher, in subsequent identification process In, the requirement to hardware device is higher.Can also only with grayscale quantity as storage information factor, at this time color be As the form of expression of more grayscale invisible two-dimensional codes, the storage information of essence is grey Quick Response Code, and when identification carries out image Gray processing processing, without considering color factors.
Wherein, the grayscale be by it is most bright with it is most dark between brightness change, divide into several pieces.In order to carry out signal Input corresponding screen intensity management and control.Every digitized video is all formed as combined by many points, these points are also known as picture Plain (pixels), each usual pixel can show many different colors, it is by three sub- pictures of red, green, blue (RGB) Element composition.Each sub-pixel, the light source of behind can show different gray scales.And grayscale is represented by most The dark stratum level to different brightness between most bright.This intermediate level is more, and the picture effect that can be presented is also finer and smoother. By taking 8bit panel as an example, 28 powers can be showed, equal to 256 luminance levels, then referred to as 256 grayscale.It is every in LCD screen A pixel is combined by the red, green, blue of different luminance levels, ultimately forms different color points.That is, screen The color change of each upper point is all by forming caused by the gray scale variation of three RGB sub-pixels of this point in fact.Example Such as, pre-set the identification region of Quick Response Code as matrix two-dimensional barcode, for another example, using PDF417, Datamatrix, QR Code, The code systems such as Code 49, Code 16K, Code one set the identification region of more grayscale invisible two-dimensional codes and the related of basis to compile solution Code rule, but do not conflict mutually for the additional setting of positioning area, the information area and information code element etc. with various embodiments of the present invention, it is and existing There is the difference of code system, be subject to the explanations of various embodiments of the present invention.Mainly illustrate the present invention by taking QR Code codes as an example below Each embodiment, but it is understood that, various embodiments of the present invention are equally applicable to the Quick Response Code of other code systems.For example, using QR Code codes pre-set the identification region of Quick Response Code.For the ease of adapting to various use environments, for another example, according to target identification ability The number of colours of Quick Response Code is pre-seted, including grayscale quantity, for example, 8 grades of grayscale of setting, 16 grades of grayscale, 64 grades of grayscale, 128 Grade grayscale, 256 grades of grayscale, 512 grades of grayscale, 1024 grades of grayscale or 2048 grades of grayscale or even 65536 grades of grayscale etc..
It is as follows to please refer to 1 dimension code information storage:
X black and white 1 ties up code information storage:2x
For example, it is 1bit (2 that 1 black and white 1, which ties up code information storage,1=2) it is 2bit that, 2 black and white 1, which tie up code information storage, (22=4) it is 3bit (2 that, 3 black and white 1, which tie up code information storage,3=8).
X n grayscale 1 ties up code information storage:nx
For example, 14 grayscale 1 dimension code information storage is 1bit (41=4);24 grayscale 1 tie up code information storages 2bit(42=16);34 grayscale 1 dimension code information storages are 3bit (43=64).
For another example, one 10 1 dimension code information storages are as follows:
10 black and white 1 tie up code information storage:210Bit information storages.
10 4 ranks 1 tie up code information storage:4810Bit information storages.
10 n ranks 1 tie up code information storage:n10Bit information storages.Visual information storage increases considerably.
2 dimension code information storages are expanded to again:
X black and white 2 ties up code information storage:2(2X)
X n rank 2 ties up code information storage:n(2X);For example, described information area includes several rectangular symbols;For example, using Rectangular 2 dimension code, then it is n that X n rank 2, which ties up code information storage,(2X), for another example, described information area includes several rectangle symbols;For example, Code is tieed up using rectangle 2, then in same identification region, long X+ wide Y, vertical and horizontal common X+Y n ranks colour 2 ties up code information storage For n(X+Y)
One 10 2 dimension code information storages are as follows for another example:
10 black and white 2 tie up code information storage:220Information storage.
10 4 ranks 2 tie up code information storage:420Information storage.
10 8 ranks 2 tie up code information storage:820Information storage.
10 n ranks 2 tie up code information storage:n20Information storage.
For another example, using color as another information recording medium, such as there are three types of basic color, i.e. three primary colours, then X items 2 It is as follows to tie up code information storage:
4 rank three primary colours 2 of X items tie up code information storage:(3*4)(2X)Information storage.
8 rank three primary colours 2 of X items tie up code information storage:(3*8)(2X)Information storage.
X n ranks three primary colours 2 tie up code information storage:(3*n)(2X)Information storage.
For another example, using color as another information recording medium, such as there are 64 kinds of basic colors, i.e. 64 primary colours, then X items 2 It is as follows to tie up code information storage:
4 rank of X items, 64 primary colours 2 tie up code information storage:(64*4)(2X)Information storage.
8 rank of X items, 64 primary colours 2 tie up code information storage:(64*8)(2X)Information storage.
X 64 primary colours 2 of n ranks tie up code information storage:(64*n)(2X)Information storage.
It can be seen that more grayscale invisible two-dimensional codes information storages increase considerably, so big storage information, application can Think and know.For example, existing 2 dimension code information storage capacity only enough stores station address, its content can not be stored;And more grayscale stealths two The information storage capacity of dimension code can be large enough to one whole book of storage, a photo album or one section of video recording, even a film.By , as it can be seen that more grayscale invisible two-dimensional codes amount of storage are big, adaptation is wide for this.
One of embodiment is that the quantity of the basic color in the number of colours is more than 64.For another example, the basic color Quantity be more than 128.Preferably, the number of colours is more than 256.And/or the grayscale quantity is more than 64.For another example, The grayscale quantity is more than 128.Preferably, the grayscale quantity is more than 256.For example, the quantity of the basis color is 256 Position, the grayscale quantity are 256, and combined colors sum is 65536;For example, pre-set the color in the identification region A variety of colors that color quantity, the grayscale quantity and the two coordinate;Preferably, the grayscale quantity and the number of colors It measures identical.
For the ease of the number of colours of clearly more grayscale invisible two-dimensional codes, it is easy to use and identifies, one of embodiment It is, at least a described information area, is used as the positioning area, setting storage symbol, for recording the number of colors of Quick Response Code Amount and/or coding rule, for example, the color coding rule include the number of colours whether for encoding and/or, the ash Whether exponent number amount is for coding etc.;For example, in the coding step, encoded also according to grayscale quantity at least one positioning area The basic symbol of generation, indicates the grayscale quantity and/or the number of colours, as the storage symbol.For another example, the volume In code step, grayscale symbol is generated in at least one positioning area coding also according to grayscale quantity, indicates the grayscale quantity, As the storage symbol or a portion.For another example, in the coding step, also according to basic chromatic number amount, i.e. number of colours, In at least one basic colour coding member of positioning area coding generation, indicate the number of colours, as the storage symbol or its A middle part.For example, when a certain more grayscale invisible two-dimensional codes plans use 16 grades of grayscale, according to grayscale quantity at one or more A positioning area coding generation grayscale symbol, due to needing only provide for a shorter digital information herein, such as in a positioning Area's setting storage symbol.For example, the two dimension of the basic Quick Response Code, the i.e. prior art in a positioning area setting black and white Code coding mode records the grayscale quantity of more grayscale invisible two-dimensional codes, it is generally the case that can be carried out with four basic symbols Label, black either white blockage or referred to as basic module of each basis symbol for existing planar bar code technology standard, this Sample can record the grayscale type of 24 power quantity, and each grayscale type represents a kind of grayscale quantity.For another example, using 9 bases Plinth symbol is marked, in this way, the grayscale type of 29 power quantity can be recorded.Preferably, in the coding step, root is gone back According to grayscale quantity and/or number of colours in a basic symbol of positioning area coding generation, the record grayscale quantity and/or color Color quantity, as the storage symbol.For example, in a positioning area coding using two group echos, first group with 9 basic symbols It is marked, directly records grayscale quantity, such as 256 grades then record number 256, second group also with 9 basic symbols into rower Note, directly records number of colours, such as 256 grades.Other quantity and so on.
For the ease of malice Quick Response Code is avoided to damage user benefit, one of embodiment is at least one positioning area Setting verification symbol, for recording the linking status of the storage information;For example, verification symbol has two kinds of linking status, packet Include right and wrong;For another example, in the coding step, also according to linking status in at least one positioning area coding generation concatenation code Member.In this way, when user opens more grayscale invisible two-dimensional codes, many contents can be shown under normal conditions, if necessary to link To outside, due to verifying the presence of symbol, clearly define the terminal of user, such as mobile phone, be directly linked to outside, avoid by It lures installation procedure and causes to swindle successfully.For example, when user opens more grayscale invisible two-dimensional codes, it is linked to if necessary outer User then due to the presence of verification symbol, informs in portion, this is an external linkage, please choose whether to open, be filled so as to give user The right to know of foot.Preferably, according to linking status in a positioning area coding generation link symbol.For example, using QR Code codes Three positioning areas are set, and one of setting link symbol, another sets storage symbol, and third does not change.For another example, it adopts With QR Code codes, three positioning areas, two of which setting storage symbol, third setting link symbol are set.For another example, the volume In code step, basic symbol is generated in at least one positioning area coding also according to linking status, indicates the linking status, As the link symbol.For another example, the linking status only includes right and wrong two states, in this way, can simply indicate, is easy to Identification.For another example, the linking status also sets up payment and reminds, and external possibility generation expense state, example are linked to for recording Such as financial institution includes bank, lender, Alipay, and there are the contents of financial institution's address link, and generating, more grayscale are hidden During shape Quick Response Code, it is marked in symbol is linked.It in this way, can timely call user's attention in identification.For example, encoding In step, include the link symbol of payment prompting in at least one positioning area coding generation also according to linking status.For another example, if Multiple positioning areas are put, one of positioning area includes link symbol and grayscale symbol and/or basic colour coding member together;For another example, Other each positioning areas do not include link symbol or grayscale symbol or basic colour coding member, that is to say, that link symbol and gray code method Member and/or basic colour coding member are provided only in a positioning area.For another example, the concatenation code is set by with the presence or absence of external linkage Member, for example, if there is no be not provided with the link symbol if external linkage.
For the ease of the state of grayscale and two-dimensional code product is controlled finally to present, one of embodiment is the coding In step, according to the grayscale quantity and/or the number of colours, the storage information is generated in described information area to be had Several information code elements of multiple grayscale and/or multiple basic color or combinations.For example, during generation information code element, according to the ash Exponent number amount sets its grayscale, such as 8 grades, 16 grades or 256 grades grayscale etc..For another example, according to the grayscale quantity, one is set Grayscale redundancy value, such as 10%, 20% or 30% etc., the storage information is generated in described information area with multiple ashes Several information code elements of rank.For example, it is 30% that 16 grades of grayscale, which correspond to redundancy value, it is 20% etc. that 64 grades of grayscale, which correspond to redundancy value, with This analogizes.In this manner it is achieved that certain error correcting capability so that the mistake of code word data or data symbols can have certain Tolerance.For another example, it when generating information code element, is matched colors according to the number of colours for it, for another example, also according to the number of colors The basic color redundancy value of amount setting one, such as 10%, 20% or 30% etc., the storage information is raw in described information area Into several information code elements with multiple basic colors.For example, it is 30% that 16 grades of basic colors, which correspond to redundancy value, 64 grades of basic colors correspond to Redundancy value is 20% etc., and so on.
For example, obtain data to be encoded;For example, change the data to be encoded.For example, the data to be encoded include chain It is grounded location, display image and/or storage information;For another example, the data to be encoded include display image and chained address or deposit Information is stored up, wherein, the chained address, which is used to indicate, obtains the storage information;For another example, the data to be encoded include display Image and chained address and storage information.For example, the display image is a photos, the head portrait of people or one Map etc.;For another example, the display image is the image of various conventional meanings.Preferably, the display image is in display Hold can recognisable image, such as the photo of an inventor, a state know patent certificate of office etc..Preferably, the storage letter Breath include text information, video information and/or audio-frequency information, for example, the video information include static state image information and/or Dynamic video information.
For example, coding step:The data to be encoded are encoded, if having according to grayscale quantity generation is multiple The information code element of dry grade grayscale, output include the identification region of each described information symbol.For example, the identification region only includes institute State positioning area and described information area, that is to say, that the identification region does not include other regions, such as does not include treating without described Other display graphics fields of coded data.
One of embodiment is, before the coding step, described information code is pre-seted also according to the number of colours The size of member.For example, according to the recognition capability of market mainstream hardware, the size of described information symbol is pre-seted.For another example, according to city The size of the recognition capability of field mainstream hardware, adjustment or selection described information symbol.In this way, when Quick Response Code is generated, Can flexible setting information symbol size, so as to adjust the capacity of more grayscale invisible two-dimensional codes, for example, one whole high definition of storage Film etc..For example, the grayscale quantity in the number of colours pre-sets the size of described information symbol.For another example, the volume Before code step, the size of described information symbol is pre-seted also according to the identification region.
For the ease of capacity is adjusted flexibly, one of embodiment is to further include step:The gray number is selected during coding Amount and the number of colours.For example, grayscale quantity is selected as 16 grades, 32 grades, 64 grades, 128 grades, 256 grades, 512 grades in coding Or 1024 grades etc.;For another example, number of colours is selected as 16 grades, 32 grades, 64 grades or 256 grades etc. in coding.Preferably, it encodes When setting acquiescence grayscale quantity and/or number of colours, as do not selected, choose grayscale quantity and/or number of colors automatically by default value Amount;For another example, during coding according to storage information content how much, automatically select grayscale quantity and/or number of colours or push away automatically Recommend the grayscale quantity and/or number of colours of default value.Such as a short essay, may be used 8 grades, 16 grades or 32 grades grayscale and/ Or, 3 grades, 8 grades or 16 grades of number of colours realizes more grayscale invisible two-dimensional codes, for another example paper of a medium length, it can be with Using 32 grades, either 128 grades of grayscale and/or the more grayscale stealths of 8 grades, 16 grades or 32 grades of number of colours realization of 64 grades of grayscale Quick Response Code, and so on.In this way, being convenient for users to operate, be conducive to promote user experience.
For the ease of capacity is further adjusted flexibly, one of embodiment is also to pre-set grayscale quantity and/or color Each information code element corresponding to quantity.For example, 8 grades of grayscale correspond to several information code elements, 16 grades of grayscale correspond to several information code elements, 32 grades of grayscale correspond to several information code elements, and for another example, 8 grades of basic colors correspond to several information code elements, and 16 grades of basic colors correspond to several letters Symbol is ceased, 32 grades of basic colors correspond to several information code elements, set according to actual needs.For another example, in use, selection or Adjust grayscale quantity and/or the corresponding each information code element of number of colours.
For the ease of adapting to various long monumental works, one of embodiment is, before the coding step, further includes step Suddenly:Judge whether the content of the storage information is more than the maximum capacity of more grayscale invisible two-dimensional codes, be to generate multiple two dimensions Code.In this way, a treatise or overlength piece word can be accommodated with two, three or more more grayscale invisible two-dimensional codes, Such as Tolstoy complete or collected works, complete works of Shakespeare, Chinese four great classical masterpieces etc..For the ease of identifying continuous Quick Response Code, for example, institute It states in coding step, symbol is accepted in at least one positioning area setting, belongs to undertaking state for recording the Quick Response Code, has Be associated before and/or Quick Response Code later, for example, pre-seting four kinds of undertaking states:No context, have above, have under Text has context.Preferably, the undertaking symbol also sets up undertaking instruction, for recording its two dimension before and/or later Code, guiding user understand the Quick Response Code and also have other associated Quick Response Codes before and/or later, can realize treatise even in this way It carries;For another example, the undertaking symbol is set in one or more positioning areas or specific information area, for example, with the last one information area As the specific information area, the undertaking symbol is set wherein;And/or using first information area as the specific letter Area is ceased, the undertaking symbol is set wherein.Preferably, the undertaking symbol also records remote linkage, for user to be guided to obtain Quick Response Code associated there is taken, in order to which user directly acquires related content, enhances user experience.
One is provided again below preferably using example, for example, the data to be encoded include display image and storage Information;For another example, the coding step includes:The data to be encoded are encoded, according to the grayscale quantity, by described aobvious Diagram picture and the multiple information code elements with several grades of grayscale of storage information generation, output include each described information symbol Identification region, wherein, the information area of the identification region has the display image format;For example, described have the display Image format is that the content shown by described information area is similar to the display image.In this way, Quick Response Code is hidden as display figure As existing, do not influence to watch, as described more grayscale invisible two-dimensional codes.
For example, to several information code elements of the storage information generation with the number of colours;For another example, according to the color The storage information is generated several information code elements with multiple colors by color quantity in described information area.For example, to described Store text information, several information code elements of video information and/or audio-frequency information generation with the number of colours of information.Again Such as, the storage information is generated by several information with the grayscale quantity in described information area according to the number of colours Symbol, i.e. several information code elements with several grades of grayscale are each letter then according to the display image and the number of colours Cease symbol setting color, i.e., basic color and corresponding several grades of grayscale according to corresponding to the number of colours, with reference to described in It shows image, matches colors for each information code element, then export the identification region of the data to be encoded.Wherein, the color matching It can refer to the color matching mode of common image processing software, it is preferred that emphasis is there is several information code elements carrying number of the grayscale quantity It is believed that then breath, such as the storage information again match colors to these information code elements, it is not rambling small to be allowed to shown Square either mosaic but it is described display image or it is described display image similar image, this similar to image in appearance Similar to the display image, the special format of for example, described display image cuts and/or samples obtained display object.
For example, a kind of generation method of more grayscale invisible two-dimensional codes, includes the following steps, setting steps:It pre-sets more The identification region of grayscale invisible two-dimensional codes sets the number of colours of more grayscale invisible two-dimensional codes and grayscale quantity;Obtaining step: Data to be encoded are obtained, the data to be encoded include display image and storage information;Coding step:To the number to be encoded According to being encoded, according to the multiple information code elements with several grades of grayscale of grayscale quantity generation, according to the display image And the number of colours, color is set for each information code element, output includes the data to be encoded of each described information symbol Identification region.Wherein, color is set for each information code element, including for the basic color of each pixel setting therein, at this point, basic color with Grayscale is combined, and forms the more grayscale invisible two-dimensional codes strong, that ornamental value is fabulous that become more meticulous.
For another example, in the coding step, the pre-sampling step for being sampled to the display image is also performed;Example Such as, the pre-sampling step includes:The display image is obtained, the display image is adopted according to the number of colours Sample obtains sampled images;For example, according to the number of colours and the grayscale quantity, the display image is sampled, is obtained To sampled images;For example, the sampled images are as the display image format;For another example, the pre-sampling step includes:It obtains The display image in the data to be encoded samples the display image according to the number of colours, is adopted Sampled images, the sampled images are as the display image format;For another example, according to the identification region and according to the number of colors Amount samples the display image, obtains sampled images, and the size of the sampled images is the size of the identification region, The sampled images are as the display image format;For another example, the display image is cut out also according to the identification region It cuts and/or reduces, then the display image is sampled according to the number of colours, obtains the sampled images.In this way, More grayscale invisible two-dimensional codes similar to photochrome can be obtained, more information on the one hand can be carried, on the other hand can Unordered Quick Response Code is shown as into the identifiable significant image of naked eyes so that great change has occurred in traditional Quick Response Code Change, exist not only as a label, additionally it is possible to be used as image.
For another example, in the coding step, the data to be encoded are encoded, using the sampled images as color matching pair As generation has several information code elements of the number of colours, exports the identification region of the data to be encoded.For example, setting The form of each information code element, using the structure in its form and grayscale as the storage content of described information symbol, then with institute Sampled images are stated as color matching object, are painted by grayscale, for example, after several information code elements with the grayscale quantity are generated It matches colors, generation has several information code elements of the number of colours, exports the identification region of the data to be encoded.Again Such as, the form of each information code element is set, using the structure in its form and color as the storage content of described information symbol.
Preferably, the display image is coloured image;For another example, it is colored head portrait photo.For example, each information is set The form of symbol, using structure, color and the grayscale in its form as the storage content of described information symbol, in this way, can obtain Obtain the memory capacity of bigger;Then it is combined by each information code element and forms the described information area for showing the sampled images.
For another example, using any of the above-described generation method, another embodiment of the invention is a kind of more grayscale invisible two-dimensional codes Generating means, be used to implement any of the above-described generation method;Alternatively, a kind of generating means of more grayscale invisible two-dimensional codes, It is realized using any of the above-described generation method;For example, the generating means include the function of being used to implement any of the above-described generation method Module and/or functional unit.
For example, a kind of generating means of more grayscale invisible two-dimensional codes, including for setting more grayscale invisible two-dimensional codes The setup module of identification region and its grayscale quantity, for obtaining the data acquisition module of data to be encoded, for being treated to described Coded data is encoded, the coding module according to the multiple information code elements with several grades of grayscale of grayscale quantity generation, And the output module for exporting the identification region for including each described information symbol.Preferably, it further includes and connects with output module The sharing module connect, for as more grayscale invisible two-dimensional codes and being shared using the identification region, such as by network sharing, For another example, shared by mobile terminal.
Preferably, the setup module includes the determination unit for determining identification region, and the determination unit is for true Determine identification region, for example, identification region is 2cm*3cm, for another example, identification region is a photos, and for another example, identification region is one Resolution ratio is display screen of 1024*768 etc., and so on.Preferably, the determination unit includes determining the cog region The positioning area determination subelement of domain positioning area and the information area determination subelement for being used to determine the identification region information area;It is preferred that , the positioning area determination subelement is wholely set with described information area determination subelement;Preferably, the positioning area determines son Unit is the part in described information area determination subelement.Preferably, the positioning area determination subelement includes being used for by row The row setting Sun Danyuan of the positioning area is set, for example, row setting Sun Danyuan is used to set a positioning area, example in every a line Such as, the row setting Sun Danyuan sets a positioning area for each row information symbol in identification region.It is and/or described fixed Position area determination subelement includes being used for setting the information code element positioning area setting of a positioning area for each described information symbol Sun Danyuan.And/or the positioning area determination subelement includes being used for setting the information of a shared positioning area for several information code elements Symbol positioning area selects Sun Danyuan.And/or the positioning area determination subelement includes being used to have altogether for the setting of all information symbol Sun Danyuan is shared with the information code element positioning area of positioning area.For example, described information symbol positioning area shares Sun Danyuan for the One or the last one information code element one shared positioning area of setting, are used in the positioning of all information symbol, for example, identifying the knowledge The content in other region is more grayscale invisible two-dimensional codes.Wherein, the positioning area including sharing positioning area, does not do special marking, no It is marked, but is hidden in identification region, such as be hidden in the information area with three blockages as the prior art, for another example naked eyes It is difficult to recognize that this is a Quick Response Code, and is thought as a colour pitcture.
Preferably, the setup module includes the shape setting unit for setting described information symbol shape.For example, shape Shape setting unit is polygon for setting described information symbol shape, it is preferred that the shape setting unit is used to set institute Information code element shape is stated as regular polygon.Preferably, the shape setting unit is used to set described information according to grayscale quantity Symbol shape, for example, the shape of described information symbol has several protrusions, the grayscale quantity is bigger, described information symbol Protrusion is more;Preferably, the protrusion quantity of described information symbol is equal with the grayscale quantity;For example, the shape setting is single For regular polygon, number of edges is directly proportional to the grayscale quantity for setting described information symbol shape for member.For example, the shape Setting unit includes rectangular information symbol and sets subelement, i.e. information code element is rectangle.Preferably, the shape setting unit packet Square information symbol setting subelement is included, i.e. information code element is rectangular.In this way, described information symbol flexible shapes are changeable, it is easy to Image of different shapes is adapted to, especially irregular figure, such as oil painting etc..
For another example, including for setting the identification region of more grayscale invisible two-dimensional codes and its number of colours and grayscale quantity Setup module, for obtaining the data acquisition module of data to be encoded, for being encoded to the data to be encoded, according to institute Number of colours and grayscale quantity generation are stated with the information code element of several colors and each color with several grades of grayscale Coding module and the output module for exporting the identification region for including each described information symbol.In this way, color can be passed through The design of quantity and grayscale quantity increases the capacity of more grayscale invisible two-dimensional codes.
Preferably, the setup module includes identification region setting unit.For example, the identification region setting unit is used for The identification region is set.And/or the setup module includes number of colours setting unit.For example, the number of colours setting Unit is used to set the number of colours.And/or the setup module includes grayscale number setting unit.For example, the grayscale Number setting unit is used to set the grayscale quantity.Preferably, the grayscale number setting unit is set with the number of colours Unit association setting is put, for example, the grayscale number setting unit is used to set the grayscale quantity as the number of colours Square root round numbers.For another example, the number of colours setting unit is synchronous to set the gray number when number of colours is set Amount;For example, the number of colours setting unit is when the number of colours is set, it is synchronous that the same amount of gray number is set Amount;For another example, the number of colours setting unit is when the number of colours is set, 2 times of same amount of gray numbers of setting Amount;And so on.For another example, the grayscale number setting unit is used to set gray number respectively to each color of the number of colours Amount.
Preferably, multiple grayscale number setting units are correspondingly arranged according to the number of colours.For example, the color Each color or each basic color in quantity, are correspondingly arranged multiple grayscale number setting units.Preferably, according to institute State the quantity that number of colours is correspondingly arranged the grayscale number setting unit.For example, according to the number of colours, each basis Color is correspondingly arranged a grayscale number setting unit.In this way, the number of colours can be associated with the grayscale quantity Setting.
Preferably, the setup module includes pre-seting the of described information symbol size according to the identification region One setting unit.And/or the setup module includes pre-seting described information symbol size according to the number of colours Second setting unit, for example, second setting unit is used for the size of described information symbol and the number of colours into anti- Than pre-seting described information symbol size, wherein the number of colours is bigger, described information symbol is smaller.And/or it described sets It puts module and includes the third setting unit for pre-seting described information symbol size according to the grayscale quantity.It is for example, described The size of information code element is inversely proportional with the grayscale quantity, for example, the grayscale quantity is bigger, described information symbol is smaller.This Described information symbol size can be adjusted flexibly according to identification region, number of colours, grayscale quantity in sample.Preferably, described information The size of symbol is directly proportional to one or more of identification region, number of colours, grayscale quantity;For example, identification region is bigger, Information code element is bigger;For another example, number of colours is bigger, and information code element is bigger;For another example, grayscale quantity is bigger, and information code element is bigger.
For example, a kind of generating means of more grayscale invisible two-dimensional codes, including for setting more grayscale invisible two-dimensional codes The setup module of identification region and its grayscale quantity, for obtaining the data acquisition module of data to be encoded, for being treated to described Coded data is encoded, the coding module according to the multiple information code elements with several grades of grayscale of grayscale quantity generation, And the output module for exporting the identification region for including each described information symbol, wherein, the identification region includes positioning Area and the information area;For another example, positioning area is set in the information area.For another example, the coding module be used for the data to be encoded into Row coding, display image and storage information and the grayscale quantity in the data to be encoded, has if generation is multiple The information code element of dry grade grayscale exports the identification region of the data to be encoded, wherein, the information area of the identification region has The display image format.
For example, the setup module is included for setting the basic color setting unit of basic color and for setting grayscale Grayscale setting unit;For another example, the setup module further includes for selecting basic color and/or grayscale or for selecting color The Colour selection unit of quantity and/or grayscale quantity.For another example, the setup module further includes default unit, is used to pre-set The corresponding each information code element of the grayscale quantity.For another example, the setup module includes the identification region for setting identification region Setting unit.For another example, the acquisition module includes the data modification unit for changing the data to be encoded;And/or it also wraps Include the image acquisition unit for obtaining the display image.For example, described image acquiring unit includes camera;For another example, institute It states image acquisition unit and includes mobile terminal.
For example, the coding module sets rectangular coding unit and/or rectangle coding unit;Rectangular coding unit is used for will Storage information carries out coding generation with multiple rectangular symbols with the number of colours, and rectangle coding unit is used to store Information carries out coding generation with multiple rectangle symbols with the number of colours.For another example, the coding module setting structure Unit is used to pre-set the size of described information symbol, for example, realizing more grayscale invisible two-dimensional codes according to predetermined resolution The minimum widith of the rectangular symbol of information code element or the minimum widith and minimum length of rectangle symbol.For another example, the coding mould Block sets pre-sampling unit, and for obtaining the display image, the display image is sampled according to the number of colours, Obtain sampled images.For another example, the pre-sampling unit schemes the display according to the number of colours for obtaining coloured image As being sampled, colored sampled images are obtained, the setup module is additionally operable to set the form of each information code element, with its lattice The storage content of structure, color and grayscale as described information symbol in formula;The coding module is used for described to be encoded Data are encoded, using the sampled images as color matching object, several information code elements of the generation with the number of colours, and example Sampled images are painted, for example, in several information of the generation with the grayscale quantity as color matching object by grayscale as described above It matches colors after symbol, generation has several information code elements of the number of colours, exports the cog region of the data to be encoded Domain.For another example, the coding module setting adjustment unit, for adjusting the display image, for example, to according to the identification region The display image is cut and/or reduced.
For another example, the judgment module being connect with the coding module is further included, for judging the content of the data to be encoded Capacity more than Quick Response Code then generates multiple more grayscale invisible two-dimensional codes.In this way, it is hidden to be conducive to generate multiple continuous more grayscale Shape Quick Response Code enhances its amount of storage.
For another example, the generating means include memory module, for record the number of colours of more grayscale invisible two-dimensional codes and/or Grayscale quantity generates color symbol, including base according to number of colours and/or grayscale quantity in at least one positioning area coding Plinth colour coding member and/or grayscale symbol;For another example, the generating means include correction verification module, for recording the chain of the storage information State is connect, according to linking status in at least one positioning area coding generation link symbol.For another example, the memory module setting number According to storage unit, for storing the data to be encoded, wherein, the data to be encoded include chained address, display image and/ Or storage information;For another example, the data to be encoded include display image and chained address or storage information.
Remaining function module and so on, it repeats no more.
Provide the embodiment of a practical application again below, using the personal photograph of a certain individual as the display image, Colour 2 is obtained using above-mentioned generation method and ties up code, it is very much like with individual's photograph, and with some identifiable storage letters Breath for example, being scanned using mobile phone, according to the corresponding recognition rule of above-mentioned generation method, is tieed up from the colour 2 and can be solved again in code Code goes out to store information, such as the information such as obtained patent of the personal brief introduction of this people, contact method, the article delivered, application, Ornamental value is high, and application is wide.
Further, the embodiment of the present invention further includes, and each technical characteristic of the various embodiments described above is combined with each other formation The generation method and generating means of more grayscale invisible two-dimensional codes.
It should be noted that above-mentioned each technical characteristic continues to be combined with each other, the various embodiments not being enumerated above are formed, It is accordingly to be regarded as the range of description of the invention record;Also, for those of ordinary skills, it can add according to the above description To improve or convert, and all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (10)

1. a kind of generation method of more grayscale invisible two-dimensional codes, which is characterized in that include the following steps,
Setting steps:Identification region for more grayscale invisible two-dimensional codes sets grayscale quantity, the identification region and the grayscale Quantity is directly proportional, the identification region only setting information area of more grayscale invisible two-dimensional codes, and positioning is stored in described information area Information;
Obtaining step:Obtain data to be encoded;The data to be encoded include display image and storage information;
Coding step:The data to be encoded are encoded, according to the grayscale quantity, by the display image and described are deposited The multiple information code elements with several grades of grayscale of information generation are stored up, output includes the identification region of each described information symbol, wherein, The identification region is a photos, and the information area of the identification region has the display image format.
2. generation method according to claim 1, which is characterized in that before the setting steps, further include step:It determines to know Other region.
3. generation method according to claim 2, which is characterized in that the determining identification region, including determining the identification The positioning area in region and the information area.
4. generation method according to claim 3, which is characterized in that the positioning area is set by row.
5. generation method according to claim 3, which is characterized in that each described information symbol sets a positioning area.
6. generation method according to claim 3, which is characterized in that several described information symbols share a positioning area.
7. generation method according to claim 3, which is characterized in that whole described information symbols share a positioning area.
8. according to any one of claim 1 to 7 generation method, which is characterized in that in the setting steps, also set up institute State the shape of information code element.
9. generation method according to claim 8, which is characterized in that described information symbol is rectangle.
10. generation method according to claim 9, which is characterized in that described information symbol is rectangular.
CN201510323674.XA 2015-06-12 2015-06-12 The generation method of more grayscale invisible two-dimensional codes Expired - Fee Related CN104850883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510323674.XA CN104850883B (en) 2015-06-12 2015-06-12 The generation method of more grayscale invisible two-dimensional codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510323674.XA CN104850883B (en) 2015-06-12 2015-06-12 The generation method of more grayscale invisible two-dimensional codes

Publications (2)

Publication Number Publication Date
CN104850883A CN104850883A (en) 2015-08-19
CN104850883B true CN104850883B (en) 2018-06-26

Family

ID=53850515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510323674.XA Expired - Fee Related CN104850883B (en) 2015-06-12 2015-06-12 The generation method of more grayscale invisible two-dimensional codes

Country Status (1)

Country Link
CN (1) CN104850883B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598198B (en) * 2020-05-18 2024-04-26 南京工程学院 Image two-dimensional code generation method and reading method based on LSB information hiding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299246A (en) * 2008-06-24 2008-11-05 深圳矽感科技有限公司 Two-dimension code with false proof function
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN103198345A (en) * 2013-04-01 2013-07-10 深圳市银之杰科技股份有限公司 Method of preventing copy of two-dimension code and two-dimension printer
CN104463294A (en) * 2013-09-23 2015-03-25 北大方正集团有限公司 Generation method and system for Colormobi, analysis method and system for Colormobi and label
CN104680218A (en) * 2015-02-12 2015-06-03 航天信息股份有限公司 Multi-space two-dimensional code, and generation method and decoding method of multi-space two-dimensional code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243704B (en) * 2011-07-21 2014-04-02 我查查信息技术(上海)有限公司 Positioning system for two-dimension bar code and two-dimension bar code identification method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299246A (en) * 2008-06-24 2008-11-05 深圳矽感科技有限公司 Two-dimension code with false proof function
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN103198345A (en) * 2013-04-01 2013-07-10 深圳市银之杰科技股份有限公司 Method of preventing copy of two-dimension code and two-dimension printer
CN104463294A (en) * 2013-09-23 2015-03-25 北大方正集团有限公司 Generation method and system for Colormobi, analysis method and system for Colormobi and label
CN104680218A (en) * 2015-02-12 2015-06-03 航天信息股份有限公司 Multi-space two-dimensional code, and generation method and decoding method of multi-space two-dimensional code

Also Published As

Publication number Publication date
CN104850883A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN104794518B (en) The generation method of color 2 D code
CN104778440B (en) The recognition methods of color 2 D code and identification device
CN103390183B (en) A kind of generation method of the anti-counterfeiting codes suitable for handset identity
CN104134085B (en) Particular bar and forming method thereof
CN103390146B (en) Method for generating dot matrix pattern capable of recording multiple-bit information
JP3336311B2 (en) Machine-recognizable code and encoding / decoding method thereof
CN105740931B (en) Multidimensional security code label, its production method and recognition methods
CN104933386B (en) The recognition methods of many GTG invisible two-dimensional codes
CN106384142A (en) Random color two-dimensional code based anti-counterfeiting method and device
CN105160378B (en) A kind of color invisible image code generating method
CN104715275A (en) Generating method and generating device for grey two-dimensional code
CN104951828B (en) The generation method of colored high-order latent image code
CN103386829B (en) A kind of endowed method that anti-counterfeiting codes are carried out using laser
CN204215442U (en) A kind of structure being suitable for mobile phone masses recognition anti-counterfeiting mark
CN104715222A (en) Method and device for identifying gray two-dimension code
CN103955730A (en) Manufacturing method of anti-counterfeiting photo-etched two-dimensional code labels
CN106203571A (en) Image production method based on Quick Response Code and recognition methods and realize system
CN104866886B (en) The generating means of colored high-order latent image code
CN101727606B (en) A kind of processing method of imbedding information in e-file
CN104850883B (en) The generation method of more grayscale invisible two-dimensional codes
CN104850817B (en) The identification device of colored high-order latent image code
CN104850882B (en) The generating means of more GTG invisible two-dimensional codes
CN103390184A (en) Image information embedding method suitable for anti-fake codes identified through mobile phone
CN105095938B (en) A kind of generation method of the multistage latent image code of colour
CN104866801B (en) The identification device of more GTG invisible two-dimensional codes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170725

Address after: 361005 C building, Innovation Zone, software park, torch hi tech Zone, Fujian, Xiamen province 4F-C1

Applicant after: Silicon Graphics (Xiamen) Technology Co.,Ltd.

Address before: Xiamen torch hi tech Zone Innovation Building Software Park A District Siming District of Xiamen city in Fujian province 361006 202-2 unit

Applicant before: XIZHAO PHOTOELECTRIC (XIAMEN) CO.,LTD.

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: 20180626