CN105160378A - Color invisible image code generating method - Google Patents

Color invisible image code generating method Download PDF

Info

Publication number
CN105160378A
CN105160378A CN201510504634.5A CN201510504634A CN105160378A CN 105160378 A CN105160378 A CN 105160378A CN 201510504634 A CN201510504634 A CN 201510504634A CN 105160378 A CN105160378 A CN 105160378A
Authority
CN
China
Prior art keywords
color
code
image code
information
image
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.)
Granted
Application number
CN201510504634.5A
Other languages
Chinese (zh)
Other versions
CN105160378B (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 Photoelectric (xiamen) 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 Photoelectric (xiamen) Co Ltd filed Critical Silicon Photoelectric (xiamen) Co Ltd
Priority to CN201510504634.5A priority Critical patent/CN105160378B/en
Publication of CN105160378A publication Critical patent/CN105160378A/en
Priority to US15/177,674 priority patent/US10863202B2/en
Application granted granted Critical
Publication of CN105160378B publication Critical patent/CN105160378B/en
Priority to US17/178,169 priority patent/US20210203994A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a color invisible image code generating method, comprising the following steps of: acquiring image data and information data; according to a preset encoding rule, determining original color distribution of the image data; and according to the original color distribution, encoding the information data and generating an image code with the original color distribution. According to the color invisible image code generating method provided by the present invention, by adopting the scheme, the image code with the original color distribution is generated according to the original color distribution of the image data, so that a two-dimensional code not only can be used as an image for display, but also can bear more information and has the advantages of high information storage capacity, capability of being used as a character or image carrier and naked eye identifiability of the total image, an expression form of the two-dimensional code, rather than various existing sub-boxes or mosaic, further accords with the practice, and ornamental value is higher.

Description

A kind of color invisible image code generating method
Technical field
The present invention relates to planar bar code technology to improve, in particular, a kind of color invisible image code generating method.
Background technology
Two-dimensional bar code/Quick Response Code (2-dimensionalbarcode) is the chequered with black and white graphic recording data symbol information distributed in plane (on two-dimensional directional) according to certain rules with certain specific geometric figure; Coding utilizes the concept of " 0 ", " 1 " bit stream forming computer-internal logical foundations dexterously, the geometrical body using several corresponding with scale-of-two, to represent word numerical information, is processed to realize information by image input device or photoelectric scanning device automatically identifying and reading: it has some general character of barcode technology automatically: often kind of code system has its specific character set; Each character occupies certain width; There is certain verifying function etc.Also there is the information automatic identification function to different rows and processing graphics rotation change point simultaneously.
Started to the research of planar bar code technology abroad late 1980s, in the research of two-dimensional code symbol presentation technology, developed multiple code system, common are PDF417, QRCode, Code49, Code16K, CodeOne etc.The information density of these Quick Response Codes is all greatly improved than traditional one-dimension code, and the information density as PDF417 is more than 20 times of one-dimension code CodeC39.In Quick Response Code Standardization Research, the symbol standard that the world identifies AEM (AIM) automatically, American Standards Association (ANSI) completes the code systems such as PDF417, QRCode, Code49, Code16K, CodeOne.The international standard technical council and International Electrotechnical Commission have also set up the bar code automatic identification technology council (ISO/IEC/JTC1/SC31), formulate the international standard (ISO/IEC18004:2000 " Automatic Identification & Data Collection-bar code symbol technical manual-QR code ") of QRCode, draft the ISO/IEC draft standard of the Quick Response Codes such as PDF417, Code16K, DataMatrix, MaxiCode.In the development of Quick Response Code equipment development, production, recognizing apparatus, the symbol of equipment manufacturers' production of the state such as the U.S., Japan generate equipment, have been widely used in all kinds of Quick Response Code application system.Quick Response Code stores as a kind of brand-new information, transmit and recognition technology, from being born, just obtain the concern of many countries in the world.Virtue Japan and other countries, the departments such as public security, diplomacy, military affairs that have not only been applied to by planar bar code technology are to the management of all kinds of certificate, and Quick Response Code is applied to the management of the department such as customs, the tax to all kinds of form and bill, the department such as business, communications and transportation to the management of commodity and freight transportation, postal service to the management of parcel post, field of industrial production to the automatic management of industrial production line.
The research of China to planar bar code technology starts from 1993.The technical manual of Article Numbering Center of China to several conventional Quick Response Code PDF417, QRCode, DataMatrix, MaxiCode, Code49, Code16K, CodeOne has carried out translation and follow-up study.Along with constantly improving of China market economy and developing rapidly of infotech, the domestic demand to this new technology of Quick Response Code grows with each passing day.Article Numbering Center of China, under the support energetically of former China State Bureau of Quality and Technical Supervision and national departments concerned, deepens 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/T11349-2006) and Quick Response Code close matrix code (SJ/T11350-2006), thus greatly facilitate the research and development that China has the Quick Response Code of technology with proprietary intellectual property rights.
Provide some Back ground Informations of Quick Response Code relevant criterion below again.Correction graph (AlignmentPattern) be for of establishing matrix notation position fixing with reference to figure, decoding software can by it when image has moderate damage, then the coordinate reflection of synchronous images module.Character count designator (CharacterCountIndicator) is the bit sequence of the serial data length defined under a certain pattern.ECI designator (ECIdesignator) is generally 6 bit digital, for identifying concrete ECI task.Coding region (encodingregion) is not taken by functional graphic in symbol, the region can encoded to data or error correction code word.Expand and explain that (ExtendedChannelInterpretation (ECI)) is in some code system, output stream is allowed to the agreement of the explanation different from default character set.Format information (FormatInformation) is a kind of functional graphic, and it comprises the information of the error-correction level of symbol use and the mask graph of use, to carry out decoding to the remainder of coding region.For the special pattern of symbol location and feature identification in functional graphic (functionpattern) is-symbol.Mask graph is three mask graph identifiers for symbol with reference to (MaskPatternReference).Mask (masking) is in coding region, carries out xor operation with mask graph to bitmap, its objective is and to make in symbol balanced proportion that is dark and light module number, and reduces effect diagram and occur as the figure of fast processing.Pattern (mode) is the method specific character set being expressed as bit string.Mode indicators (ModeIndicator) is generally 4 bit identifiers, the coding mode that instruction data sequence is subsequently used.Position sensing figure (PositionDetectionPattern) is one of figure that three of composition view finding figure are identical.Section (segment) is the data sequence with same ECI or coding mode coding.Separator (Separator) is the functional graphic be all made up of light module, and width is a module, for being separated by the remainder of position sensing figure with symbol.Full stop (Terminator) is the bitmap showing data bit stream for sign-off table.The normally dark figure staggered with light module of positioning pattern (TimingPattern), is convenient to the coordinate determining module in symbol.
Along with the development of technology, Quick Response Code is used widely.But Quick Response Code can only hold more than 1,000 byte usually, such as, about 500 Chinese characters, there is the deficiency that information storage is little, and due to its rule restriction, cause the max cap. of dilatation can be no more than the square number of existing capacity.And along with the development of the barcode scanning hardware such as mobile phone, camera technique can obtain meticulous image.Further, the display of Quick Response Code is difficult to display attractive in appearance.Therefore, prior art existing defects, needs to improve.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of new color invisible image code generating method.
Technical scheme of the present invention is as follows: a kind of color invisible image code generating method, and it comprises the following steps: obtain view data and information data; The original color distribution of described view data is determined according to the coding rule preset; Distribute according to described original color, described information data is encoded, generate the image code with the distribution of described original color.
Preferably, the described image code coloured image that comprises at least one positioning unit and be made up of two or more coded data.
Preferably, described information data comprises word, network address, image, audio frequency and/or video information.
Preferably, before encoding, also comprising step: judge whether described information data is greater than predetermined threshold value to described information data, is then according to described information data and described predetermined threshold value, generates multiple image code with the distribution of described original color.
Preferably, described predetermined threshold value is arranged according to the size of described view data.
Preferably, described image code comprises positioning unit.
Preferably, there is in described positioning unit the described original color distribution of part.
Preferably, described positioning unit blank is arranged.
Preferably, according to the original size of described view data, generate the image code with the distribution of described original color.
Preferably, when generating the image code with the distribution of described original color, according to described coding rule, the size of described image code is determined.
Adopt such scheme, the present invention is by distributing according to the original color of view data, generate the image code with the distribution of described original color, Quick Response Code can not only be shown as image, can also more information be carried, there is information storage large, can use as word or image carrier, overall image has the advantage of naked eyes identifiability, and the form of expression of Quick Response Code is more fitted reality, but not existing various sub-box or mosaic, sight is better.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of one embodiment of the present of invention.
Embodiment
For the ease of understanding the present invention, below in conjunction with the drawings and specific embodiments, the present invention will be described in more detail.But the present invention can adopt many different forms to realize, and is not limited to the embodiment described by this instructions.It should be noted that, when element is called as " being fixed on " another element, directly can there is element placed in the middle in it on another element or also.When an element is considered to " connection " another element, it can be directly connected to another element or may there is centering elements simultaneously.
Unless otherwise defined, all technology of using of this instructions and scientific terminology are identical with belonging to the implication that those skilled in the art of the present invention understand usually.The object of term used in the description of the invention in this instructions just in order to describe specific embodiment is not for limiting the present invention.The term "and/or" that this instructions uses comprises arbitrary and all combinations of one or more relevant Listed Items.
As shown in Figure 1, one embodiment of the present of invention are, a kind of color invisible image code generating method, and it comprises the following steps: obtain view data and information data; The original color distribution of described view data is determined according to the coding rule preset; Distribute according to described original color, described information data is encoded, generate the image code with the distribution of described original color.Wherein.Described color invisible image code, i.e. colored multistage latent image code.Such as, described generation method comprises the following steps: obtain view data and information data; The original color distribution of described view data is determined according to the coding rule preset; Original color according to described view data distributes, and encodes to described information data, generates the image code with the distribution of described original color.And for example, a kind of color invisible image code generating method, it comprises the following steps: pre-arranged code rule; Obtain view data and information data; The original color distribution of described view data is determined according to the described coding rule preset; Distribute according to described original color, described information data is encoded, generate the image code with the distribution of described original color.Such as, transmitted or shooting style by data, obtain described view data.And for example, adopt wireless transmission method, obtain described view data.And for example, by data transfer mode, obtain described information data.Wherein, described information data comprises word, network address, image, audio or video information.Preferably, described information data comprises word, network address, image, audio frequency and/or video information.That is, information data to be encoded can be passage, one section of novel, and also can be a bent music or a film, such design, have greatly expanded the storage space of Quick Response Code, use value and the scope of application.Stealth wherein, the color lump entirety referring to Quick Response Code be shown as view data all, part or similar image.
Such as, suppose that Quick Response Code has M module, the color value of each module is discrete, has N kind, then its capacity is M*log 2n, its unit is bit (bit).
That is, X*Y module N GTG 2 D code information capacity: X*Y*log 2nbit.
Such as, 40*40 module 2 rank black and white 2 D code information capacity: 40*40*log 22=1600bit.
Such as, code quantity of information is tieed up on (X*Y) bar 3 look (red, blue, green, black) n rank 2: X*Y*log 2(3* (n-1)+1) bit quantity of information.
Such as, code quantity of information is tieed up on 40x40 module 3 look (red, blue, green, black) 2 rank 2:
40*40*log 24=2*1600=3200bit。
Be more than ideal situation, if consider embedding rate a, (density, as in order to the reason such as attractive in appearance, be averaging each module can only carry less than 1bit) and error correcting code r, then result of calculation should be multiplied by coefficient above, obtains, a (1-r) X*Y*log 2nbits.
Common bar code can be regarded as one-dimension code, black and white (black=0; In vain=1; Color range is 2 rank) the 1 dimension code quantity of information that may represent: log 2(n) bit.
X bar n rank grey 1 ties up the quantity of information that code may represent: X*log 2(n) bit.
A.1 code quantity of information is tieed up on bar 4 rank 1: log 24=2bit
B.2 code quantity of information is tieed up on bar 4 rank 1: 2*log 24=4bit
C.3 code quantity of information is tieed up on bar 4 rank 1: 3*log 24=6bit
Such as one 10 1 dimension code quantity of information:
Article 1.20, black and white 1 ties up code quantity of information: 20*log 22=20*1=20bit.
Article 2.20,4 rank grey 1 tie up code quantity of information: 20*log 24=20*2=40bit.
Article 3.20,8 rank grey 1 tie up code quantity of information: 20*log 28=20*3=60bit.
Article 4.20, n rank grey 1 ties up code quantity of information: 20*log 2(n) bit.
3 looks (red, blue, green) 2 rank=4 exponents (red, blue, green, black).
The quantity of information that code may represent is tieed up on X bar 3 look (red, blue, green) n rank 1: X*log 2(3* (n-1)+1) bit.
A.1 code quantity of information is tieed up on bar 3 look (red, blue, green, black) 2 rank 1: log 24=2bit
B.2 code quantity of information is tieed up on bar 3 look (red, blue, green, black) 2 rank 1: 2*log 24=4bit
C.3 code quantity of information is tieed up on bar 3 look (red, blue, green, black) 2 rank 1: 3*log 24=6bit
Such as, code quantity of information is tieed up on 10 3 looks (red, blue, green, black) n rank 1: 10*log 2(3* (n-1)+1) bit.
Article 1.10, code quantity of information is tieed up on 3 looks (red, blue, green, black) 2 rank 1: 10*log 24=20bit.
Article 2.10, code quantity of information is tieed up on 3 looks (red, blue, green, black) 4 rank 1: 10*log 2(3* (n-1)+1)=10*log 210=33.2bit.
Article 3.10, code quantity of information is tieed up on 3 looks (red, blue, green, black) 8 rank 1: 10*log 2(3* (n-1)+1)=10*log 222=44.6bit.
Article 4.10, code quantity of information is tieed up on 3 looks (red, blue, green, black) n rank 1: 10*log 2(3* (n-1)+1) bit.
2 dimension code quantity of information: length=X; Wide=Y (or being interpreted as wide=X, height=Y); After tested, selection is preferably usually, 20<X=Y<178.
Such as, code quantity of information is tieed up on (X*Y) bar 3 look (red, blue, green, black) n rank 2: X*Y*log 2(3* (n-1)+1) bit.
Such as, code quantity of information is tieed up on 20x20 bar 3 look (red, blue, green, black) n rank 2: 200*log 2(3* (n-1)+1) bit.
Code quantity of information is tieed up on 1.20x20 bar 3 look (red, blue, green, black) 2 rank 2: 200*log 24=400bit.
Code quantity of information is tieed up on 2.20x20 bar 3 look (red, blue, green, black) 4 rank 2: 200*log 210=664.4bit.
Code quantity of information is tieed up on 3.20x20 bar 3 look (red, blue, green, black) 8 rank 2: 200*log 222=891.9bit.
Code quantity of information is tieed up on 4.20x20 bar 3 look (red, blue, green, black) n rank 2: 200*log 2(3* (n-1)+1) bit.
Therefore, " code is tieed up on grey N rank 2 " adds log than conventional " black and white 2 ties up code " information capacity 2n doubly.
2 rank (only having black-and-white two color); Increase by 1.00 times;
3 rank; Increase by 1.58 times;
4 rank; Increase by 2.00 times;
5 rank; Increase by 2.32 times;
6 rank; Increase by 2.59 times;
7 rank; Increase by 2.81 times;
8 rank; Increase by 3.00 times;
9 rank; Increase by 3.17 times;
10 rank; Increase by 3.32 times;
Further, " code is tieed up on colored (3 looks, such as red, blue, green, and the black originally had) n rank 2 " adds log than routine " black and white 2 ties up code " information capacity 2(3* (n-1)+1) times.
1.3 looks (red, blue, green, black) 2 rank 2 are tieed up code information capacity and are added about log 2(3* (2-1)+1)=2 times.
2.3 looks (red, blue, green, black) 3 rank 2 are tieed up code information capacity and are added about log 2(3* (3-1)+1)=2.81 times.
3.3 looks (red, blue, green, black) 4 rank 2 are tieed up code information capacity and are added about log 2(3* (4-1)+1)=3.32 times.
4.3 looks (red, blue, green, black) 5 rank 2 are tieed up code information capacity and are added about log 2(3* (5-1)+1)=3.70 times.
5.3 looks (red, blue, green, black) 6 rank 2 are tieed up code information capacity and are added about log 2(3* (6-1)+1)=4.00 times.
6.3 looks (red, blue, green, black) 7 rank 2 are tieed up code information capacity and are added about log 2(3* (7-1)+1)=4.25 times.
7.3 looks (red, blue, green, black) 8 rank 2 are tieed up code information capacity and are added about log 2(3* (8-1)+1)=4.46 times.
8.3 looks (red, blue, green, black) 9 rank 2 are tieed up code information capacity and are added about log 2(3* (9-1)+1)=4.64 times.
9.3 looks (red, blue, green, black) 10 rank 2 are tieed up code information capacity and are added about log 2(3* (10-1)+1)=4.81 times.
The situation of calculation 16 look, 128 looks, 256 looks, 512 looks and even more multicolour quantity and 8 rank, 16 rank, 64 rank and even more polychrome exponent number amount can also be continued.So large information storage, its application is well imagined.Such as, existing 2 dimension code information storage amounts only reach station address." colored multistage 2 dimension codes " information storage amount can be large enough to storage one whole book, a photo album, one section of video recording, or a film.Therefore, color invisible image code realization and to apply be valuable.
Such as, also step is comprised: pre-arranged code rule.Wherein, described coding rule, or be called default coding rule; According to described coding rule, and distribute according to the original color of described view data, described information data is encoded.Such as, coding rule comprises the original size keeping view data, and namely image code is the original size of view data; Such as, or coding rule comprises a certain default specification of employing as the size of image code, intercepts a part for described view data as described image code, such as, intercept the specific part of described view data or select part as described image code; And/or coding rule comprises the resolution and color lump size etc. of image code.Wherein, described image code is identical with described view data or similar, or described image code is all or part of of described view data.Like this, by arranging coding rule flexibly, the technique effect of efficient coding, recognition image code can be reached, the image code that memory capacity is different can also be realized, be applicable to the system of different hardware configurations.Such as, in pre-arranged code rule, also comprise default described resolution, described number of colours and/or described color range quantity.Preferably, cloud stores described coding rule, downloads described coding rule before each coding from Cloud Server, and like this, what be conducive to keeping described image code to generate with identification is synchronous, guarantees the identifiability of described image code.Preferably, also preset described coding rule according to the recognition performance of target identification equipment, namely described coding rule comprises the recognition performance of target identification equipment, such as, in an application, the terminal of scheduled target user has the camera of 1,000 ten thousand pixels, now, for the terminal of this targeted customer, adjust described resolution, described number of colours and/or described color range quantity.Like this, the image code of high power capacity or low capacity can be set in response to different target user flexibility, apply very convenient.
Wherein, described color range, i.e. GTG, be by the brightest and the darkest between brightness change, divide into some parts.So that carry out signal to input corresponding screen intensity management and control.Often open digitized video all combined by many points, these points are also called pixel (pixels), and each pixel can present many different colors usually, and it is made up of red, green, blue (RGB) three sub-pixels.Each sub-pixel, the light source of its behind can show different gray scales.And GTG represents by the most secretly to the stratum level of different brightness the brightest.This intermediate level is more, and the picture effect that can present is also finer and smoother.For 8bitpanel, 8 powers of 2 can be showed, equal 256 luminance levels, be then referred to as 256 GTGs.Each pixel in lcd screen, the red, green, blue by different luminance level combines, the color point that final formation is different.That is, the color change of each point on screen is all brought by the gray scale variation of three the RGB sub-pixels forming this point in fact.Such as, the identified region pre-seting colored multistage latent image code is matrix two-dimensional barcode, and for example, adopt the code systems such as PDF417, Datamatrix, QRCode, Code49, Code16K, Codeone that the identified region of colored multistage latent image code and the relevant encoding and decoding rule on basis are set, but with various embodiments of the present invention, additionally arranging of positioning area, block of information and information code element etc. is not conflicted mutually, with the difference of existing code system, be as the criterion with the explanation of various embodiments of the present invention.Main for QRCode code, various embodiments of the present invention are described below, but are understandable that, various embodiments of the present invention are equally applicable to the multistage latent image code of colour of other code system.Such as, adopt QRCode code, pre-set the identified region of colored multistage latent image code.For the ease of adapting to various environment for use, and for example, the number of colours of colored multistage latent image code is pre-seted according to target recognition capability, it comprises color range quantity, i.e. GTG quantity, such as, 8 grades of color ranges, 16 grades of color ranges, 64 grades of color ranges, 128 grades of color ranges, 256 grades of color ranges, 512 grades of color ranges, 1024 grades of color ranges or 2048 grades of color ranges and even 65536 grades of color ranges etc. are set.
Such as, chromatic number amount based on described number of colours, wherein, the color in described number of colours, comprises some basic looks; Such as, described number of colours is 3, corresponding, described color comprises 3 kinds of basic looks; And for example, described color range quantity is 16, namely comprises 16 grades of color ranges, and like this, the identified region of colored multistage latent image code always has 48 kinds of colors.And for example, described number of colours is 8, and described color range quantity is 64, and namely described color comprises 8 kinds of basic looks, and often kind of basic look has 64 grades of color ranges, totally 512 kinds of colors.And for example, pre-set the number of colors scale of colored multistage latent image code, each number of colours in table is to should the some basic look of quantity, and such as, number of colours is 3,3 kinds of basic look RGB that correspondence pre-sets, and for example, number of colours is 7,7 kinds of basic looks that correspondence pre-sets, the yellowish green ultramarine of such as blood orange is purple, by that analogy.
Preferably, described color range quantity is identical with described number of colours.Such as, described number of colours is 256, and described color range quantity is also 256, then always have 65536 kinds of colors, and namely each basic look includes the color of 256 kinds of different GTGs, and each GTG is to the color that should have 256 kinds of basic looks of difference.Such as, also step is comprised: revise or adjust described number of colours and/or described color range quantity.Wherein, described basic look is the color on some bases, such as RGB three basic looks, and and for example, every look coordinates 12 GTGs, then always have 36 kinds of colors.Such as, basic look and different GTG coordinate the GTG colour system forming relevant rudimentary color.And for example, also step is comprised: the mapping table pre-seting number of colours and basic look; In follow-up coding or decoding, adopt described mapping table, obtain corresponding basic look information according to number of colours, such as, basic chromatic number amount is 3, and corresponding basic look is RGB; And for example, basic chromatic number amount is 4, and corresponding basic look is red, yellow, green and blue; And for example, basic chromatic number amount is 8, and corresponding basic look is the purple indigo of the yellowish green ultramarine of blood orange; And for example, basic chromatic number amount is 64 or 128, and corresponding basic look is the relevant colour system set by each image processing software, by that analogy.Under normal circumstances, adopt number of colours as when storing the factor of information, if number of colours is higher, then in follow-up identifying, higher to the requirement of hardware device, and there is the large advantage of information capacity; Also can only adopt color range quantity as the factor of the information of storage, now color is just as the form of expression of colored multistage latent image code, the storage information of its essence is grey Quick Response Code, carries out gray processing process during identification to image, without the need to considering color factors.
Preferably, described image code comprises positioning unit, and such as, described positioning unit comprises a square frame and/or a colour code, and such as described colour code is the combination of some color block of a line or some 1*1 pixels.Preferably, there is in described positioning unit the described original color distribution of part; Such as, and/or described positioning unit blank is arranged, and, described positioning unit is a white box.Preferably, the described image code coloured image that comprises at least one positioning unit and be made up of two or more coded data.Such as, described image code comprises one, two or more positioning unit, and coloured image; This coloured image is made up of several coded datas.Preferably, in described image code, described positioning unit is covered in described coloured image, and such as, a coloured image arranges a black box, and black lines wherein covers a part for coloured image.Like this, under the prerequisite substantially not affecting recognition effect, effectively realize location, and entirety is shown as an image, better visual.
Preferably, described when described information data is encoded, also comprise step: reverse reduction, for guaranteeing that error correction is to obtain unique correct result, such as, carry out examination decoding in encoded, determine to be reduced into described information data, output encoder result again, i.e. described image code; Such as, when reverse reduction, for described coding result performs obfuscation or the Weakening treatment of predetermined extent, such as fuzzy 1%, or color desalination 2% etc.; Increase the fog-level of described coding result, judge whether to become described information data by examination decoded back, judge by reverse reduction, generate and export the image code with the distribution of described original color, like this, can the accuracy of image code and the reliability of application system described in significant increase.Such as, when described information data is encoded, carry out reverse reduction; And/or, when generating the image code with the distribution of described original color, carry out reverse reduction, for guaranteeing that error correction is to obtain unique correct result, namely can be reduced to described information data, or be called original information data.Such as, original information data comprises word, image and/or video.Preferably, before described reverse reduction, also input recognition performance index, for indicating the recognition performance of target identification equipment, such as the shooting of 2,000,000 pixels is first-class, during described reverse reduction, also processes described coding result according to described recognition performance index.
Such as, before described information data is encoded, also step is comprised: the original color distribution determining described view data according to the coding rule preset; When encoding to described information data, according to described original color distribution and described coding rule, described information data is encoded, preferably, described acquisition view data, comprises the coding rule according to described coding, generates the original color distribution of described view data.Such as, according to the resolution of the coding rule of described coding, generate the original color distribution of described view data.That is, according to the resolution of the image code of target, generate the original color distribution of described view data.Or, according to the resolution of described view data, generate the original color distribution of described view data.Be presented above two kinds of implementations, can use flexibly according to actual conditions.
Preferably, described acquisition view data, comprises the described original color distribution obtained in view data.Such as, described original color distribution comprises the some color lumps obtained by resolution, and such as, described color lump is rectangle, and the pixel of 2*1 or 1*2 is described color lump; Preferably, described color lump is square, and such as, 1*1 pixel is described color lump.1*1 pixel, i.e. 1 pixel * 1 pixel.Such as resolution is 30*30,30*60,60*60,60*90,90*150,100*100,100*200,320*240,400*400,1024*768,1440*900 or 1600*1200 etc.; Such as resolution is 60*60,1*1 pixel is described color lump, is divided into 3600 color lumps by described view data; And for example, resolution is 100*200,1*2 pixel is described color lump, is divided into 10000 color lumps by described view data; By that analogy.And for example, described original color distribution also comprises number of colours, such as, and 16 looks, 64 looks, 128 looks, 256 looks or more.And for example, the distribution of described original color also comprises color range quantity, color range and GTG, and such as color range quantity is 16,24,32,64,128 or 256 etc.Such as, described color range quantity and described number of colours are inversely proportional to, and that is, number of colours is larger, and color range quantity is less; Such as, described number of colours is 256, and described color range quantity is 8; And for example, described number of colours is 128, and described color range quantity is 16; And for example, described number of colours is 64, and described color range quantity is 32; By that analogy.Like this, be applicable to the equipment that analytic ability is constant, such as the mobile phone in a certain period.And for example, described color range quantity is directly proportional to described number of colours, and that is, number of colours is larger, and color range quantity is larger; Such as, described number of colours is 8, and described color range quantity is 8; And for example, described number of colours is 16, and described color range quantity is 16; And for example, described number of colours is 32, and described color range quantity is 32; By that analogy.Like this, the multistage latent image code of colour of various capacity is applicable to generate.Preferably, the square root round numbers that described color range quantity is described number of colours is set.Such as, described number of colours is 64, and described color range quantity is the square root of 64, namely 8; And for example, described number of colours is 255, and described color range quantity is the square root round numbers of 255, and such as 4 houses 5 enter to round, namely 16; And for example round downwards, namely 15; By that analogy.Like this, only need determine that described number of colours can determine described color range quantity.And for example, arrange described color range quantity be described number of colours square; Such as, described number of colours is 8, described color range quantity be 8 square, namely 64; And for example, described number of colours is 10, described color range quantity be 10 square, namely 100; By that analogy.Like this, also only need determine that described number of colours can determine described color range quantity, simple to operate easy-to-use.Preferably, color range quantity is arranged respectively to each color of described number of colours; Preferably, identical color range quantity is preset to each color acquiescence of described number of colours.
Preferably, described original color distribution comprises the some color lumps, number of colours and the color range quantity that obtain by resolution.Like this, the significant increase memory capacity of described image code, especially adapt to present terminal camera lens to take pictures the applied environment of lifting of ability, three of high resolving power, high color range quantity and high number of colours high shape Large Copacity image code become can realize, discernible technology.Such as, generate and have the purple black eight kinds of colors of the yellowish green ultramarine of blood orange and each color has color lump or the image code of 32 grades of color ranges, it is total 32*8=256 seed color always.Or, can be regarded as, according to described number of colours and described color range quantity, generate there is some basic looks and each basic look in conjunction with some grades of GTGs, thus be combined to form some colors or be called sub-color or be called the segmentation color lump of color or image code.
Preferably, described coding realizes according to described resolution, described number of colours and described color range quantity.Such as, by described coding rule, realize according to described view data or the resolution of described image code, described number of colours and described color range quantity.Such as, the resolution that described coding rule comprises described image code is 100*100, described number of colours be 128 and described color range quantity be 16, and the size giving tacit consent to described color lump is 1*1 pixel; Preferably, described coding realizes according to the size of described resolution, described color lump, described number of colours and described color range quantity.Such as, the size of described color lump is 1*1 pixel, 1*2 pixel, 1*3 pixel, 2*2 pixel, 2*1 pixel, 2*3 pixel, 3*1 pixel, 3*2 pixel or 3*3 pixel etc.
Preferably, before encoding, also comprising step: judge whether described information data is greater than predetermined threshold value to described information data, is then according to described information data and described predetermined threshold value, generates multiple image code with the distribution of described original color.Such as, for a video, several image code can be adopted to realize; Preferably, when judging that described information data is greater than predetermined threshold value, according to the quantitative relation of described information data and described predetermined threshold value, correspondingly obtain the view data of some quantity; Such as, described predetermined threshold value is 0.5G byte, and described information data is 2.1G byte, then adopt 5 image code to realize, such as, to be described information data to round up number divided by the quotient that described predetermined threshold value obtains for the quantity of view data, and namely when quotient is integer, the quantity of view data is this quotient, when quotient is not integer, as long as have decimal below, integer above just adds 1, and now the quantity of view data is the integer+1 of this quotient.Preferably, when judging that described information data is greater than predetermined threshold value, when described information data is encoded, automatic generation has multiple image code of described original color distribution, wherein each image code is the described view data with the distribution of described original color, and each image code arranges mark according to its order at its positioning area, belong to continuous print image code series for indicating it, and for example, when judging that described information data is greater than predetermined threshold value, continue to judge whether described information data comprises video information, that first image code is the described view data with the distribution of described original color, remaining image code generates automatically according to described video information, such as, choose the start frame in described video information fragment corresponding to each image code, as the described view data with the distribution of described original color of this image code, namely using the start frame in described video information fragment as described view data when encoding to this image code, now the external image of this image code is the start frame in described video information fragment, namely it is the image of the original color distribution with described start frame.Preferably, described predetermined threshold value is arranged according to the size of described view data; Such as, described predetermined threshold value is directly proportional to the size of described view data, and when described view data is larger, described predetermined threshold value is larger; And for example, the size linear proportional of described predetermined threshold value and described view data.Preferably, described predetermined threshold value is directly proportional until described predetermined threshold value reaches its ultimate value for it to the size of described view data.Such as, described ultimate value is 1G byte.
Preferably, before encoding to described information data, also comprising step: judge whether described information data is greater than predetermined threshold value, is then according to described information data and described predetermined threshold value, adjust described coding rule, such as, adjust described resolution, described number of colours and described color range quantity.Such as one section of short essay, 8 grades, 16 grades or 32 grades of GTGs can be adopted, and/or, the number of colours of 3 grades, 8 grades or 16 grades realizes colored multistage latent image code, the and for example paper of a medium length, can adopt 32 grades, 64 grades GTGs or 128 grades of GTGs, and/or, the number of colours of 8 grades, 16 grades or 32 grades realizes colored multistage latent image code, by that analogy.Like this, be convenient for users to operate, be conducive to promoting Consumer's Experience.
Preferably, according to the original size of described view data, generate the image code with the distribution of described original color; Namely the size of described image code equals the original size of described view data, such as, the original size of described view data is 2 inches (wide) * 2.5 inches (height), above 2 inches is width, below 2.5 inches is height, related content in various embodiments of the present invention, all marks by front wide rear high mode; Now, the size of described image code is also 2 inches (wide) * 2.5 inches (height).Or, when generating the image code with the distribution of described original color, according to described coding rule, determine the size of described image code.Such as, described coding rule comprises the size of described image code is 2 centimetres * 4 centimetres, 3 centimetres * 3 centimetres, 5 centimetres * 8 centimetres or other specifications etc.; And for example, before described information data is encoded, also step is comprised: select described coding rule.Such as, in described pre-arranged code rule, step is comprised: select at least one described coding rule.And for example, in described pre-arranged code rule, step is comprised: select described coding rule from main separation or acquiescence.
Such as, a kind of color invisible image code generating method, comprises the following steps: obtain the view data be made up of elementary area, and by word, network address, image, audio frequency, the information data that video is formed; According to the color distribution of view data, information data is changed and coded treatment, form the color invisible image code similar in appearance to original digital image data.Wherein, the described image code coloured image that comprises at least one positioning unit and be made up of two or more coded data.Preferably, wherein to change information data and code processing method guarantees reverse reduction, error correction obtains unique correct result.Such as, the present invention and each embodiment thereof, by multistage for colour 2 dimension code or information datas, again to be compiled according to certain coding rule to one group of specific view data and are permutated and combined as very similar to original image one group and include the new images that colored multistage 2 tie up code or information data.According to described coding rule and rule of decoding accordingly, this new images can decode multistage 2 dimension code or the information data information of original colour again.
Further, embodiments of the invention also comprise, each technical characteristic of the various embodiments described above, the color invisible image code generating method be mutually combined to form, and the multistage latent image code of the colour obtained like this, has high memory property and using value; Such as, it has the following advantages:
Identifiability-directly perceived, looks over so as to check unforgettable, does not affect global design;
Aesthetic property-fashion is generous, has image display, magnificent mansion visual effect;
Security-anti-false sign; Eradicate virus; Image encryption;
Letter breath amount – 10 times or higher multiple super large information memory capacities make more application become possibility, and such as, logon server still directly can not show bulk information; Be exactly one section of article after one name cards scanning; Be exactly a book after one name cards scanning; Be exactly a first song etc. after one name cards scanning.
And for example, adopt above-mentioned arbitrary generation method, another embodiment of the present invention is, a kind of generating apparatus of color invisible image code, and it is for realizing above-mentioned arbitrary generation method; Or, a kind of generating apparatus of color invisible image code, it adopts above-mentioned arbitrary generation method to realize; Such as, described generating apparatus comprises functional module for realizing above-mentioned arbitrary generation method and/or functional unit.
It should be noted that, above-mentioned each technical characteristic continues combination mutually, is formed not in above-named various embodiment, is all considered as the scope that instructions of the present invention is recorded; Further, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. a color invisible image code generating method, is characterized in that, comprises the following steps:
Obtain view data and information data;
The original color distribution of described view data is determined according to the coding rule preset;
Distribute according to described original color, described information data is encoded, generate the image code with the distribution of described original color.
2. color invisible image code generating method according to claim 1, is characterized in that, the coloured image that described image code comprises at least one positioning unit and is made up of two or more coded data.
3. color invisible image code generating method according to claim 1, it is characterized in that, described information data comprises word, network address, image, audio frequency and/or video information.
4. color invisible image code generating method according to claim 3, it is characterized in that, before described information data is encoded, also comprise step: judge whether described information data is greater than predetermined threshold value, be then according to described information data and described predetermined threshold value, generate multiple image code with the distribution of described original color.
5. color invisible image code generating method according to claim 4, it is characterized in that, described predetermined threshold value is arranged according to the size of described view data.
6. color invisible image code generating method according to claim 1, it is characterized in that, described image code comprises positioning unit.
7. color invisible image code generating method according to claim 6, is characterized in that, has the described original color distribution of part in described positioning unit.
8. color invisible image code generating method according to claim 6, is characterized in that, described positioning unit blank is arranged.
9. color invisible image code generating method according to claim 1, is characterized in that, according to the original size of described view data, generates the image code with the distribution of described original color.
10. color invisible image code generating method according to claim 1, is characterized in that, when generating the image code with the distribution of described original color, according to described coding rule, determines the size of described image code.
CN201510504634.5A 2015-06-12 2015-08-18 A kind of color invisible image code generating method Active CN105160378B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201510504634.5A CN105160378B (en) 2015-08-18 2015-08-18 A kind of color invisible image code generating method
US15/177,674 US10863202B2 (en) 2015-06-12 2016-06-09 Encoding data in a source image with watermark image codes
US17/178,169 US20210203994A1 (en) 2015-06-12 2021-02-17 Encoding data in a source image with watermark image codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510504634.5A CN105160378B (en) 2015-08-18 2015-08-18 A kind of color invisible image code generating method

Publications (2)

Publication Number Publication Date
CN105160378A true CN105160378A (en) 2015-12-16
CN105160378B CN105160378B (en) 2018-10-30

Family

ID=54801230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510504634.5A Active CN105160378B (en) 2015-06-12 2015-08-18 A kind of color invisible image code generating method

Country Status (1)

Country Link
CN (1) CN105160378B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933625A (en) * 2016-04-14 2016-09-07 苏州万硅电子有限公司 Dynamic image code generating method and device
CN106991462A (en) * 2017-03-13 2017-07-28 三维码(厦门)网络科技有限公司 Three-dimensional code generating method
CN109214490A (en) * 2018-09-21 2019-01-15 苏州玖典智能科技有限公司 A kind of color 2 D code
CN113326907A (en) * 2021-05-29 2021-08-31 海盐前方印刷有限公司 Method for producing color variable bar code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal
CN202916856U (en) * 2012-10-11 2013-05-01 深圳市创世互动科技有限公司 Two-dimension code generating device
WO2013124837A1 (en) * 2012-02-21 2013-08-29 Eyeconit Ltd Readable matrix code
WO2013183041A1 (en) * 2012-06-06 2013-12-12 Eyeconit Ltd. System and method for superimposing an optical readable data matrix code on an image
WO2014002086A2 (en) * 2012-06-26 2014-01-03 Eyeconit Ltd. Image mask providing a machine-readable data matrix code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal
WO2013124837A1 (en) * 2012-02-21 2013-08-29 Eyeconit Ltd Readable matrix code
WO2013183041A1 (en) * 2012-06-06 2013-12-12 Eyeconit Ltd. System and method for superimposing an optical readable data matrix code on an image
WO2014002086A2 (en) * 2012-06-26 2014-01-03 Eyeconit Ltd. Image mask providing a machine-readable data matrix code
CN202916856U (en) * 2012-10-11 2013-05-01 深圳市创世互动科技有限公司 Two-dimension code generating device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933625A (en) * 2016-04-14 2016-09-07 苏州万硅电子有限公司 Dynamic image code generating method and device
CN105933625B (en) * 2016-04-14 2019-06-04 苏州万硅电子有限公司 The generation method and device of dynamic image code
CN106991462A (en) * 2017-03-13 2017-07-28 三维码(厦门)网络科技有限公司 Three-dimensional code generating method
CN106991462B (en) * 2017-03-13 2018-04-17 三维码(厦门)网络科技有限公司 Three-dimensional code generating method
CN109214490A (en) * 2018-09-21 2019-01-15 苏州玖典智能科技有限公司 A kind of color 2 D code
CN113326907A (en) * 2021-05-29 2021-08-31 海盐前方印刷有限公司 Method for producing color variable bar code

Also Published As

Publication number Publication date
CN105160378B (en) 2018-10-30

Similar Documents

Publication Publication Date Title
CN104134085B (en) Particular bar and forming method thereof
CN104794518B (en) The generation method of color 2 D code
CN102184380B (en) Color-superposition two-dimension code system and application method thereof
JP6483221B2 (en) 3D code generation method
CN104778440B (en) The recognition methods of color 2 D code and identification device
CN104657698B (en) A kind of color 2 D code decoding method for carrying several black and white Quick Response Codes
CN105447546A (en) Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN104966115A (en) Method for filling two-dimensional code through image
JP2006134336A (en) Mixed code, method and apparatus for generating mixed code, and recording medium
CN105160378A (en) Color invisible image code generating method
CN106022431A (en) Method and device for generating and reading color two-dimensional diagram code of color identification type
CN104715275A (en) Generating method and generating device for grey two-dimensional code
CN104715222A (en) Method and device for identifying gray two-dimension code
CN104933386B (en) The recognition methods of many GTG invisible two-dimensional codes
CN105095938A (en) Method for generating color multi-order invisible image code
CN104951828B (en) The generation method of colored high-order latent image code
CN109948766A (en) The composite coloured anti-fake two-dimension code of multi-code and its generation and reading method
CN104850817B (en) The identification device of colored high-order latent image code
CN104850882B (en) The generating means of more GTG invisible two-dimensional codes
CN104866886B (en) The generating means of colored high-order latent image code
CN101137999A (en) Color code symbol and color code symbol generating method and storage medium for generating color code symbol
CN108629391A (en) Color code decoding method, system and equipment
CN104866801B (en) The identification device of more GTG invisible two-dimensional codes
CN104866802B (en) The recognition methods of colored high-order latent image code
CN112070195A (en) Two-dimensional code identification and generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20170717

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: Silicon photoelectric (Xiamen) Co., Ltd.

GR01 Patent grant
GR01 Patent grant