CN104794518A - Color two-dimension code generating method and device - Google Patents

Color two-dimension code generating method and device Download PDF

Info

Publication number
CN104794518A
CN104794518A CN201510225222.8A CN201510225222A CN104794518A CN 104794518 A CN104794518 A CN 104794518A CN 201510225222 A CN201510225222 A CN 201510225222A CN 104794518 A CN104794518 A CN 104794518A
Authority
CN
China
Prior art keywords
information
code
color
colours
gtg
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
CN201510225222.8A
Other languages
Chinese (zh)
Other versions
CN104794518B (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 CN201510225222.8A priority Critical patent/CN104794518B/en
Publication of CN104794518A publication Critical patent/CN104794518A/en
Application granted granted Critical
Publication of CN104794518B publication Critical patent/CN104794518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Image Communication Systems (AREA)

Abstract

The invention provides a color two-dimension code generating method and device. The generating method includes: presetting recognition areas of a color two-dimension code, wherein the recognition areas include a positioning area and an information area; presetting color number of the color two-dimension code; acquiring to-be-encoded data, wherein the encoding steps include: encoding the to-be-encoded data to generate information code elements provided with the color number and outputting the recognition areas of the to-be-encoded data. By the above mode, a new color two-dimension code is re-defined by adopting the color number, more code-loaded information can be borne, information storage capacity is large, accurate recognition is benefited, the two-dimension code can be used as a character or an image carrier, and high market application values are achieved.

Description

The generation method of color 2 D code and generating apparatus
Technical field
The present invention relates to color 2 D code, in particular, a kind of generation method of color 2 D code and generating apparatus.
Background technology
Two-dimensional bar code/Quick Response Code (2-dimensional bar code) 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, QR Code, Code 49, Code 16K, Code One 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) has completed the code systems such as PDF417, QR Code, Code 49, Code 16K, Code One.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 QR Code, draft the ISO/IEC draft standard of the Quick Response Codes such as PDF417, Code 16K, Data Matrix, Maxi Code.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, QR Code, Data Matrix, Maxi Code, Code49, Code 16K, Code One 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/T 11349-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.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 (Character Count Indicator) is the bit sequence of the serial data length defined under a certain pattern.ECI designator (ECI designator) is generally 6 bit digital, for identifying concrete ECI task.Coding region (encoding region) is not taken by functional graphic in symbol, the region can encoded to data or error correction code word.Expand and explain that (Extended Channel Interpretation (ECI)) is in some code system, output stream is allowed to the agreement of the explanation different from default character set.Format information (Format Information) 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 (function pattern) is-symbol.Mask graph is three mask graph identifiers for symbol with reference to (Mask Pattern Reference).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 (Mode Indicator) is generally 4 bit identifiers, the coding mode that instruction data sequence is subsequently used.Position sensing figure (Position Detection Pattern) 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 (Timing Pattern), 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.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 generation method and generating apparatus of new color 2 D code.
Technical scheme of the present invention is as follows: a kind of generation method of color 2 D code, and it comprises the following steps: the identified region pre-seting color 2 D code, and described identified region comprises positioning area and block of information; Pre-set the number of colours of color 2 D code; Obtain data to be encoded; Coding step: encode to described data to be encoded, generates the information code element with described number of colours, exports the identified region of described data to be encoded.
Such as, pre-set the identified region of color 2 D code, described identified region comprises positioning area and block of information; Such as, described positioning area comprises correction graph, such as its 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; Described block of information comprises coding region, such as, do not taken by functional graphic, the region can encoded to data or error correction code word.
Such as, the number of colours of color 2 D code is pre-seted; Wherein, described color comprises basic look and GTG; Such as, revise or adjust described number of colours.
Such as, data to be encoded are obtained; Such as, described data to be encoded are revised.
Such as, coding step: encode to described data to be encoded, generates the information code element with described number of colours, exports the identified region of described data to be encoded.Such as, described identified region only comprises described positioning area and described block of information.
Such as, described data to be encoded comprise chained address, display image and/or storage information; And for example, described data to be encoded comprise display image, and chained address or store information, wherein, described chained address be used to indicate obtain described storage information; And for example, described data to be encoded comprise display image, and chained address and storage information.
Preferably, described storage information comprises Word message, video information and/or audio-frequency information, and such as, described video information comprises static image information and/or dynamic video information.
And for example, described data to be encoded comprise display image and storage information; And for example, described coding step comprises: encode to described data to be encoded, the information code element with described number of colours is generated by described display image and described storage information, export the identified region of described data to be encoded, wherein, the block of information of described identified region has described display image format; Such as, described in there is described display image format, the content shown by described block of information is similar to described display image.
Such as, described storage information is generated to some information code elements with described number of colours; And for example, according to described number of colours, described storage information is generated in described block of information some information code elements with multiple color.Such as, the Word message of described storage information, video information and/or audio-frequency information are generated to some information code elements with described number of colours.And for example, according to described number of colours, described storage information is generated in described block of information some information code elements with described GTG quantity, then according to described display image and described basic chromatic number amount, for each information code element arranges color, the identified region of described data to be encoded is exported.
Such as, described generation method comprises the following steps: the identified region pre-seting color 2 D code, and described identified region comprises positioning area and block of information; Pre-set the number of colours of color 2 D code, described number of colours comprises basic chromatic number amount and GTG quantity; Obtain data to be encoded, described data to be encoded comprise display image and storage information; Coding step: described data to be encoded are encoded, according to described number of colours, described storage information is generated in described block of information the information code element with described number of colours, according to described display image and described basic chromatic number amount, for each information code element arranges color, export the identified region of described data to be encoded.
And for example, in described coding step, also perform the pre-sampling step being used for sampling to described display image; Such as, described pre-sampling step comprises: obtain described display image, samples, obtain sampled images according to described number of colours to described display image; Such as, according to the GTG quantity in described number of colours and basic chromatic number amount, described display image is sampled, obtains sampled images; Such as, described sampled images is as described display image format; And for example, described pre-sampling step comprises: obtain the described display image in described data to be encoded, sample, obtain sampled images according to described number of colours to described display image, described sampled images is as described display image format; And for example, sample to described display image according to described identified region and according to described number of colours, obtain sampled images, the size of described sampled images is the size of described identified region, and described sampled images is as described display image format; And for example, also according to described identified region, described display image reduced and/or reduced, then according to described number of colours, described display image being sampled, obtain described sampled images.
And for example, in described coding step, described data to be encoded are encoded, using described sampled images as color matching object, generate some information code elements with described number of colours, export the identified region of described data to be encoded.Such as, the form of each information code element is set, using the structure in its form and GTG as the storage content of described information code element, then using described sampled images as color matching object, by GTG colouring, such as, match colors after generation has some information code elements of described GTG quantity, generate some information code elements with described number of colours, export the identified region of described data to be encoded.And for example, the form of each information code element is set, using the structure in its form and color as the storage content of described information code element.
Preferably, described display image is coloured image.Such as, the form of each information code element is set, using the structure in its form, color and GTG as the storage content of described information code element, like this, larger memory capacity can be obtained; Then be combined to form by each information code element the described block of information showing described sampled images.
One of them technical scheme is, before described coding step, also pre-sets the size of described information code element according to described number of colours.
One of them technical scheme is, pre-sets the size of described information code element according to the GTG quantity in described number of colours.
One of them technical scheme is, before described coding step, also pre-sets the size of described information code element according to described identified region.
One of them technical scheme is, the quantity of the basic look in described number of colours is greater than 64.And for example, the quantity of described basic look is greater than 128.Preferably, the quantity of described basic look is greater than 256.
One of them technical scheme is, the quantity of the GTG in described number of colours is greater than 64.And for example, the quantity of described GTG is greater than 128.Preferably, the quantity of described GTG is greater than 256.
One of them technical scheme is, the quantity of described GTG is with the quantity of described basic look identical.
One of them technical scheme is, described block of information comprises some square code elements.
One of them technical scheme is, described block of information comprises some rectangle code elements.
The another technical scheme of the present invention is as follows: a kind of generating apparatus of color 2 D code, what it comprised identified region for pre-seting color 2 D code and number of colours arranges module, for obtaining the acquisition module of data to be encoded, for carrying out the coding module generating and there is the information code element of described number of colours of encoding to described data to be encoded, and for the output module of the identified region that exports described data to be encoded, wherein, described identified region comprises positioning area and block of information.
One of them technical scheme is, also comprises the judge module be connected with described coding module, for judging that the capacity that the content of described data to be encoded is greater than Quick Response Code then generates multiple Quick Response Code.
Adopt such scheme, the present invention's color 2 D code that to have adopted number of colours to redefine new, can carry more code information carrying breath, information storage is large, is beneficial to accurate identification, can use, have very high market using value as word or image carrier.
Other technologies scheme of the present invention, can also using show image as color 2 D code block of information shown by content, the form of expression of color 2 D code is more fitted reality, but not existing various sub-box or mosaic, such as can generate cognizable coloured image Quick Response Code; Also adopt structure in information code element and color as the storage content of described information code element, the significant increase information storage of Quick Response Code.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention generates an embodiment of method.
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.Term that this instructions uses " and/or " comprise 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 generation method of color 2 D code, and it comprises the following steps: the identified region pre-seting color 2 D code, and described identified region comprises positioning area and block of information; Pre-set the number of colours of color 2 D code; Obtain data to be encoded; Coding step: encode to described data to be encoded, generates the information code element with described number of colours, exports the identified region of described data to be encoded.Such as, described block of information comprises some square code elements.And for example, described block of information comprises some rectangle code elements.Preferably, also comprise step: adopt described identified region as color 2 D code and share, such as, passing through network sharing.
Such as, pre-set the identified region of color 2 D code, described identified region comprises positioning area and block of information; Such as, described positioning area comprises correction graph, such as its 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; Described block of information comprises coding region, such as, do not taken by functional graphic, the region can encoded to data or error correction code word.It should be noted that, the existing planar bar code technologies such as character count designator, ECI designator, separator, full stop, it is arranged at described identified region, does not repeat at this, and the present invention and each embodiment thereof are only described in detail for each inventive point, each embodiment and correlation technique feature thereof.
Such as, the number of colours of color 2 D code is pre-seted; Such as, described color comprises basic look and GTG, and described number of colours comprises basic chromatic number amount and GTG quantity; Such as, described number of colours comprises 3 kinds of basic looks and 16 grades of GTGs, totally 48 kinds of colors.And for example, described number of colours comprises basic look and GTG quantity thereof; Such as, described number of colours comprises 8 kinds of basic looks, and often kind of basic look has 64 grades of GTGs, totally 512 kinds of colors.And for example, pre-set the basic chromatic number scale of color 2 D code, each the basic chromatic number amount in table is to should the basic look of quantity, and such as, basic chromatic number amount is 8,8 kinds of basic looks that correspondence pre-sets, by that analogy.
Such as, described number of colours comprises 256 kinds of basic looks and 256 grades of GTGs, then always have 65536 kinds of colors, and namely each basic look includes the color of 256 kinds of different GTGs, and each GTG includes the color of 256 kinds of basic looks of difference.Such as, also step is comprised: revise or adjust described number of colours.Wherein, described basic look is the color on some bases, such as RGB three basic looks, and 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 basic chromatic number amount and basic look; In follow-up coding or decoding, adopt described mapping table, obtain corresponding basic look information according to basic chromatic number amount, such as, basic chromatic number amount is 3, and corresponding basic look is RGB; And for example, basic chromatic number amount is 3, and corresponding basic look is red, yellow, green and blue; And for example, basic chromatic number amount is 7, and corresponding basic look is that the yellowish green ultramarine of blood orange is purple; 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 basic chromatic number amount as when storing the factor of information, if basic chromatic number amount is higher, then in follow-up identifying, higher to the requirement of hardware device.Also can only adopt GTG quantity as the factor of the information of storage, now color is just as the form of expression of color 2 D code, and 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.
Wherein, described 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 8bit panel, 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 Quick Response Code is matrix two-dimensional barcode, and for example, adopts the code system such as PDF417, Datamatrix, QR Code, Code 49, Code 16K, Code one to arrange the identified region of Quick Response Code.Main for QR Code 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 Quick Response Code of other code system.Such as, adopt QR Code code, pre-set the identified region of Quick Response Code.For the ease of adapting to various environment for use, and for example, the number of colours of Quick Response Code is pre-seted according to target recognition capability, it comprises GTG quantity, such as, 8 grades of GTGs, 16 grades of GTGs, 64 grades of GTGs, 128 grades of GTGs, 256 grades of GTGs, 512 grades of GTGs, 1024 grades of GTGs or 2048 grades of GTGs and even 65536 grades of GTGs etc. are set.
Please refer to 1 dimension code information storage as follows:
X bar black and white 1 ties up code information storage: 2 x;
Such as, 1 black and white 1 ties up code information storage is 1bit (2 1=2), 2 black and white 1 tie up code information storage is 2bit (2 2=4), 3 black and white 1 tie up code information storage is 3bit (2 3=8).
X bar n GTG 1 ties up code information storage: n x;
Such as, 14 GTG 1 ties up code information storage is 1bit (4 1=4); Article 2,4 GTGs 1 tie up code information storage is 2bit (4 2=16); Article 3,4 GTGs 1 tie up code information storage is 3bit (4 3=64).
And for example, one 10 1 dimension code information storages are as follows:
Article 10, black and white 1 ties up code information storage: 2 10bit information storage.
Article 10, code information storage is tieed up on 4 rank 1: 48 10bit information storage.
Article 10, code information storage is tieed up on n rank 1: n 10bit information storage.Visual information storage increases considerably.
Expand to 2 dimension code information storages again:
X bar black and white 2 ties up code information storage: 2 (2X);
Code information storage is tieed up on X bar n rank 2: n (2X); Such as, described block of information comprises some square code elements; Such as, adopt square 2 dimension codes, then code information storage is tieed up on X bar n rank 2 is n (2X), and for example, described block of information comprises some rectangle code elements; Such as, adopt rectangle 2 to tie up code, then, in same identified region, the wide Y of long X+, the colored 2 dimension code information storages in X+Y bar n rank are n altogether anyhow (X+Y).
One 10 2 dimension code information storages are as follows for another example:
Article 10, black and white 2 ties up code information storage: 2 20information storage.
Article 10, code information storage is tieed up on 4 rank 2: 4 20information storage.
Article 10, code information storage is tieed up on 8 rank 2: 8 20information storage.
Article 10, code information storage is tieed up on n rank 2: n 20information storage.
And for example, adopt color as another kind of information recording medium, such as, have three kinds of basic looks, i.e. three primary colours, then to tie up code information storage as follows for X bar 2:
X bar 4 rank three primary colours 2 tie up code information storage: (3*4) (2X)information storage.
X bar 8 rank three primary colours 2 tie up code information storage: (3*8) (2X)information storage.
X bar n rank three primary colours 2 tie up code information storage: (3*n) (2X)information storage.
As can be seen here, color 2 D code information storage increases considerably, so large storage information, and its application is well imagined.Such as, existing 2 dimension code information storage amounts only reach store website address, cannot store its content; And the information storage amount of color 2 D code can be large enough to storage one whole book, a photo album or one section of video recording, or even a film.As can be seen here, color 2 D code memory space is large, adapts to wide.
One of them embodiment is, the quantity of the basic look in described number of colours is greater than 64.And for example, the quantity of described basic look is greater than 128.Preferably, described basic chromatic number amount is greater than 256.And/or the quantity of the GTG in described number of colours is greater than 64.And for example, the quantity of described GTG is greater than 128.Preferably, the quantity of described GTG is greater than 256.Such as, the quantity of described basic look is 256, and the quantity of described GTG is 256, and color adds up to 65536; Such as, in described number of colours, comprise the shades of colour that basic chromatic number amount, GTG quantity and both cooperations obtain; Preferably, the quantity of described GTG is with the quantity of described basic look identical.
For the ease of the number of colours of clear and definite color 2 D code, easy to use and identify, one of them embodiment is, at least one described positioning area arranges storage code element, for recording number of colours and/or the coding rule of Quick Response Code, whether such as described color-code rule comprises described basic chromatic number amount for coding, and/or whether described GTG quantity is for coding etc.; Such as, in described coding step, also according to GTG quantity at least one described positioning area coding formation base code element, it indicates described GTG quantity and/or described basic chromatic number amount, as described storage code element.And for example, in described coding step, also generate GTG code element according to GTG quantity at least one described positioning area coding, it indicates described GTG quantity, as described storage code element or wherein a part of.And for example, in described coding step, also first at least one described positioning area coding formation base colour coding according to basic chromatic number amount, it indicates described basic chromatic number amount, as described storage code element or wherein a part of.Such as, when employing 16 grades of GTGs drawn by a certain color 2 D yardage, generate GTG code element according to GTG quantity at one or more positioning area coding, owing to only needing to provide a shorter numerical information herein, such as, arrange at a positioning area and store code element.Such as, the basic Quick Response Code of black and white two look is set at a positioning area, the i.e. Quick Response Code coded system of prior art, record the GTG quantity of this color 2 D code, under normal circumstances, can mark by four basic code elements, each basic code element is black or the white blockage of existing planar bar code technology standard or is called basic module, can record the GTG type of the 4 power quantity of 2 like this, each GTG type represents a kind of GTG quantity.And for example, adopt 9 basic code elements to mark, like this, the GTG type of the 9 power quantity of 2 can be recorded.Preferably, in described coding step, also according to GTG quantity and/or basic chromatic number amount a positioning area coding formation base code element, it records described GTG quantity and/or basic chromatic number amount, as described storage code element.Such as, at positioning area coding employing two group echo, first group marks with 9 basic code elements, direct record GTG quantity, such as 256 grades are then recorded numeral 256, second group and also mark with 9 basic code elements, the basic chromatic number amount of direct record, such as 256 grades.Other quantity by that analogy.
For the ease of avoiding malice Quick Response Code infringement user benefit, one of them embodiment is, at least one described positioning area arranges verification code element, for recording the linking status of described storage information; Such as, verification code element has two kinds of linking status, comprises right and wrong; And for example, in described coding step, also generate link code element according to linking status at least one described positioning area coding.Like this, when user opens color 2 D code, a lot of content can be shown under normal circumstances, if need to be linked to outside, owing to verifying the existence of code element, clearly define the terminal of user, such as mobile phone, is directly linked to outside, avoids being caused swindling successfully by luring installation procedure.Such as, when user opens color 2 D code, if need to be linked to outside, then owing to verifying the existence of code element, inform user, whether this is an external linkage, please select to open, thus give the right to know of user's abundance.Preferably, link code element is generated according to linking status at a positioning area coding.Such as, adopt QR Code code to arrange three positioning areas, one of them arranges link code element, and another arranges storage code element, does not do to change for the 3rd.And for example, adopt QR Code code to arrange three positioning areas, wherein two arrange storage code element, and the 3rd arranges link code element.And for example, in described coding step, also according to linking status at least one described positioning area coding formation base code element, it indicates described linking status, as described link code element.And for example, described linking status only comprises right and wrong two states, like this, can simply indicate, and is easy to identify.And for example, described linking status also arranges to pay and reminds, and receives outside expense state may occur for record chain, such as financial institution comprises bank, lender, Alipay etc., there is the content of financial institution's address link, when generating color 2 D code, marking in link code element.Like this, can timely call user's attention when identifying.Such as, in the encoding step, also generate at least one described positioning area coding the link code element comprising and pay and remind according to linking status.And for example, arrange multiple positioning area, it is first that one of them positioning area comprises link code element and GTG code element and/or basic colour coding in the lump; And for example, it is first that other each positioning area does not comprise link code element or GTG code element or basic colour coding, that is, links code element and GTG code element and/or basic colour coding unit and be only arranged in a positioning area.And for example, described link code element is set by whether there is external linkage, such as, if there is not external linkage, described link code element is not set.
State and two-dimensional code product for the ease of controlling GTG finally present, one of them embodiment is, in described coding step, described storage information is generated in described block of information some information code elements with multiple GTG and/or multiple basic look according to described GTG quantity and/or basic chromatic number amount.Such as, during information generated code element, its GTG is set according to described GTG quantity, such as 8 grades, 16 grades or 256 grades of GTGs etc.And for example, according to described GTG quantity, a GTG redundancy value is set, such as 10%, 20% or 30% etc., described storage information is generated in described block of information some information code elements with multiple GTG.Such as, to be the corresponding redundancy value of 30%, 64 grades of GTGs be the corresponding redundancy value of 16 grades of GTGs 20% etc., by that analogy.Like this, certain error correcting capability can be realized, make the mistake of code word data or data symbols can have certain tolerance.And for example, during information generated code element, come for its color matching according to described basic chromatic number amount, and for example, also a basic look redundancy value is set according to described basic chromatic number amount, such as 10%, 20% or 30% etc., described storage information is generated in described block of information some information code elements with multiple basic look.Such as, to be 30%, 64 grades of basic look corresponding redundancy value be 20% etc. for 16 grades of basic look corresponding redundancy value, by that analogy.
Such as, data to be encoded are obtained; Such as, described data to be encoded are revised.Such as, described data to be encoded comprise chained address, display image and/or storage information; And for example, described data to be encoded comprise display image, and chained address or store information, wherein, described chained address be used to indicate obtain described storage information; And for example, described data to be encoded comprise display image, and chained address and storage information.Such as, described display image is the head portrait or a map etc. of a photos, a people; And for example, described display image is the image of various conventional meaning.Preferably, described display image be there is displaying contents can recognisable image, the patent certificate etc. of office is known by the photo of a such as inventor, a state.Preferably, described storage information comprises Word message, video information and/or audio-frequency information, and such as, described video information comprises static image information and/or dynamic video information.
Such as, coding step: encode to described data to be encoded, generates the information code element with described number of colours, exports the identified region of described data to be encoded.Such as, described identified region only comprises described positioning area and described block of information, and that is, described identified region does not comprise other regions, such as, do not comprise other display graphics regions not having described data to be encoded.
One of them embodiment is, before described coding step, also pre-sets the size of described information code element according to described number of colours.Such as, according to the recognition capability of market mainstream hardware, pre-set the size of described information code element.And for example, according to the recognition capability of market mainstream hardware, adjust or select the size of described information code element.Like this, when generation Quick Response Code, can the size of configuration information code element flexibly, thus the capacity of adjustment color 2 D code, such as, storage one whole high-definition movie etc.Such as, the size of described information code element is pre-seted according to the GTG quantity in described number of colours.And for example, before described coding step, also pre-set the size of described information code element according to described identified region.
For the ease of adjusting capacity flexibly, one of them embodiment also comprises step: select GTG quantity and basic chromatic number amount as described number of colours during coding.Such as, select GTG quantity to be 16 grades, 32 grades, 64 grades, 128 grades, 256 grades, 512 grades or 1024 grades etc. when encoding; And for example, basic chromatic number amount is selected to be 16 grades, 32 grades, 64 grades or 256 grades etc. when encoding.Preferably, acquiescence GTG quantity and/or basic chromatic number amount being set during coding, if do not selected, automatically choosing GTG quantity and/or basic chromatic number amount by default value; And for example, how many according to the content of the information of storage during coding, automatically select GTG quantity and/or basic chromatic number amount, or automatically recommend the GTG quantity of default value and/or basic chromatic number amount.Such as one section of short essay, 8 grades, 16 grades or 32 grades of GTGs can be adopted, and/or, the basic chromatic number amount of 3 grades, 8 grades or 16 grades realizes color 2 D 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 basic chromatic number amount of 8 grades, 16 grades or 32 grades realizes color 2 D code, by that analogy.Like this, be convenient for users to operate, be conducive to promoting Consumer's Experience.
For the ease of adjusting capacity flexibly further, one of them embodiment is, also pre-sets GTG quantity and/or each information code element corresponding to basic chromatic number amount.Such as, 8 grades of corresponding some information code elements of GTG, 16 grades of corresponding some information code elements of GTG, 32 grades of corresponding some information code elements of GTG, and for example, 8 grades of basic look corresponding some information code elements, 16 grades of basic look corresponding some information code elements, 32 grades of basic look corresponding some information code elements, are arranged according to actual needs.And for example, in use, to select or adjustment GTG quantity and/or each information code element corresponding to basic chromatic number amount.
For the ease of adapting to various long monumental work, one of them embodiment is, before described coding step, also comprises step: judge whether the content of described storage information is greater than the max cap. of color 2 D code, is, generates multiple Quick Response Code.Like this, can with two, three or more color 2 D codes hold a treatise or overlength section word, such as Tolstoy complete or collected works, complete works of Shakespeare, Chinese four great classical masterpieces etc.For the ease of identifying continuous print Quick Response Code, such as, in described coding step, at least one described positioning area arranges undertaking code element, undertaking state is belonged to for recording this Quick Response Code, its have associated before and/or Quick Response Code afterwards, such as, pre-set four kinds of undertaking states: no context, have above, have hereafter, have context.Preferably, described undertaking code element is also arranged accepts instruction, for recording Quick Response Code before it and/or afterwards, guide user understand this Quick Response Code before and/or also have other Quick Response Code be associated afterwards, can serial be realized like this; And for example, described undertaking code element is set at one or more positioning area.Preferably, described undertaking code element also records remote linkage, for guiding user to obtain Quick Response Code associated with it, so that user directly obtains related content, strengthens Consumer's Experience.
Provide a good application example below again, such as, described data to be encoded comprise display image and storage information; And for example, described coding step comprises: encode to described data to be encoded, the information code element with described number of colours is generated by described display image and described storage information, export the identified region of described data to be encoded, wherein, the block of information of described identified region has described display image format; Such as, described in there is described display image format, the content shown by described block of information is similar to described display image.
Such as, described storage information is generated to some information code elements with described number of colours; And for example, according to described number of colours, described storage information is generated in described block of information some information code elements with multiple color.Such as, the Word message of described storage information, video information and/or audio-frequency information are generated to some information code elements with described number of colours.And for example, according to described number of colours, described storage information is generated in described block of information some information code elements with described GTG quantity, then according to described display image and described basic chromatic number amount, for each information code element arranges color, namely the basic look corresponding to described basic chromatic number amount, with reference to described display image, for each information code element is matched colors, then export the identified region of described data to be encoded.Wherein, described color matching can with reference to the color matching mode of common image processing software, focus on some information code element carry data information with described GTG quantity, such as described storage information, and then these information code elements are matched colors, making it shown is not rambling blockage or mosaic, but the similar image of described display image or described display image, this similar image in appearance with described display image similarity, be such as display object that special format cutting and/or the sampling of described display image obtain.
Such as, a kind of generation method of color 2 D code, it comprises the following steps: the identified region pre-seting color 2 D code, and described identified region comprises positioning area and block of information; Pre-set the number of colours of color 2 D code, described number of colours comprises basic chromatic number amount and GTG quantity; Obtain data to be encoded, described data to be encoded comprise display image and storage information; Coding step: described data to be encoded are encoded, according to described number of colours, described storage information is generated in described block of information the information code element with described number of colours, according to described display image and described basic chromatic number amount, for each information code element arranges color, export the identified region of described data to be encoded.
And for example, in described coding step, also perform the pre-sampling step being used for sampling to described display image; Such as, described pre-sampling step comprises: obtain described display image, samples, obtain sampled images according to described number of colours to described display image; Such as, according to the GTG quantity in described number of colours and basic chromatic number amount, described display image is sampled, obtains sampled images; Such as, described sampled images is as described display image format; And for example, described pre-sampling step comprises: obtain the described display image in described data to be encoded, sample, obtain sampled images according to described number of colours to described display image, described sampled images is as described display image format; And for example, sample to described display image according to described identified region and according to described number of colours, obtain sampled images, the size of described sampled images is the size of described identified region, and described sampled images is as described display image format; And for example, also according to described identified region, described display image carried out cutting and/or reduced, then according to described number of colours, described display image being sampled, obtain described sampled images.Like this, the color 2 D code being similar to photochrome can be obtained, more information can be carried on the one hand, unordered Quick Response Code can be shown as the discernible significant image of naked eyes on the other hand, traditional Quick Response Code is made to there occurs great change, not only exist as a label, can also use as image.
And for example, in described coding step, described data to be encoded are encoded, using described sampled images as color matching object, generate some information code elements with described number of colours, export the identified region of described data to be encoded.Such as, the form of each information code element is set, using the structure in its form and GTG as the storage content of described information code element, then using described sampled images as color matching object, by GTG colouring, such as, match colors after generation has some information code elements of described GTG quantity, generate some information code elements with described number of colours, export the identified region of described data to be encoded.And for example, the form of each information code element is set, using the structure in its form and color as the storage content of described information code element.
Preferably, described display image is coloured image; And for example, it is that clour mixing is as photo.Such as, the form of each information code element is set, using the structure in its form, color and GTG as the storage content of described information code element, like this, larger memory capacity can be obtained; Then be combined to form by each information code element the described block of information showing described sampled images.
And for example, adopt above-mentioned arbitrary generation method, another embodiment of the present invention is, a kind of generating apparatus of color 2 D code, and it is for realizing above-mentioned arbitrary generation method; Such as, described generating apparatus comprises the functional module for realizing above-mentioned arbitrary generation method.
Such as, a kind of generating apparatus of color 2 D code, what it comprised identified region for pre-seting color 2 D code and number of colours arranges module, for obtaining the acquisition module of data to be encoded, for carrying out the coding module generating and there is the information code element of described number of colours of encoding to described data to be encoded, and for the output module of the identified region that exports described data to be encoded, wherein, described identified region comprises positioning area and block of information.Such as, described generating apparatus comprises and arranges module, acquisition module, coding module and output module; Wherein, the described module that arranges is for pre-seting identified region and the number of colours of color 2 D code, described acquisition module is for obtaining data to be encoded, described coding module is used for carrying out to described data to be encoded the information code element generating and have described number of colours of encoding, and described output module is for exporting the identified region of described data to be encoded.And for example, described coding module is used for encoding to described data to be encoded, the information code element with described number of colours is generated by described display image and described storage information, export the identified region of described data to be encoded, wherein, the block of information of described identified region has described display image format; And for example, described coding module is used for encoding to described data to be encoded, according to described number of colours, described storage information is generated in described block of information some information code elements with described GTG quantity, then according to described display image and described basic chromatic number amount, for each information code element arranges color, export the identified region of described data to be encoded.
Such as, the described module that arranges comprises for arranging the basic look setting unit of basic look and the GTG setting unit for arranging GTG; And for example, the described module that arranges also comprises for selecting basic look and/or GTG, or for selecting the Colour selection unit of basic chromatic number amount and/or GTG quantity.And for example, the described module that arranges also comprises default unit, and it is for pre-seting each information code element corresponding to described GTG quantity.
And for example, described acquisition module comprises the data modification unit for revising described data to be encoded; And/or, also comprise the image acquisition unit for obtaining described display image.
Such as, described coding module arranges square coding unit and/or rectangle coding unit; Square coding unit is used for storage information being carried out coding generation and has multiple square code element with described number of colours, and rectangle coding unit is used for storage information being carried out encoding generating to have multiple rectangle code element with described number of colours.And for example, described coding module arranges structural unit, and it is for pre-seting the size of described information code element, such as, realizes the minimum widith of the square code element of the information code element of color 2 D code according to predetermined resolution, or the minimum widith of rectangle code element and minimum length.And for example, described coding module arranges pre-sampling unit, for obtaining described display image, sampling, obtain sampled images according to described number of colours to described display image.And for example, described pre-sampling unit is for obtaining coloured image, according to described number of colours, described display image is sampled, obtain colored sampled images, describedly module is set also for arranging the form of each information code element, using the structure in its form, color and GTG as the storage content of described information code element; Described coding module is used for encoding to described data to be encoded, using described sampled images as color matching object, generate some information code elements with described number of colours, such as using described sampled images as color matching object, by GTG colouring, such as, match colors after generation has some information code elements of described GTG quantity, generate some information code elements with described number of colours, export the identified region of described data to be encoded.And for example, described coding module arranges adjustment unit, for adjusting described display image, such as, to according to described identified region, described display image being carried out to cutting and/or reducing.
And for example, also comprise the judge module be connected with described coding module, for judging that the capacity that the content of described data to be encoded is greater than Quick Response Code then generates multiple color 2 D code.
And for example, described generating apparatus comprises memory module, for basic chromatic number amount and/or the GTG quantity of recording colour Quick Response Code, generate color code element according to basic chromatic number amount and/or GTG quantity at least one described positioning area coding, it comprises basic colour coding unit and/or GTG code element; And for example, described generating apparatus comprises correction verification module, for recording the linking status of described storage information, generates link code element according to linking status at least one described positioning area coding.And for example, described memory module setting data storage unit, for storing described data to be encoded, wherein, described data to be encoded comprise chained address, display image and/or storage information; And for example, described data to be encoded comprise display image, and chained address or store information.
All the other functional modules by that analogy, repeat no more.
Provide the embodiment of a practical application below again, using the individual photograph of a certain individual as described display image, above-mentioned generation method is adopted to obtain colored 2 dimension codes, it is very similar to this individual photograph, and there are more discernible storage information, such as, adopt mobile telephone scanning, according to the corresponding recognition rule of above-mentioned generation method, storage information can be again decoded, the information such as the patent that the individual brief introduction of such as this people, contact method, the article delivered, application obtain from this colour 2 dimension code.
Further, embodiments of the invention also comprise, each technical characteristic of the various embodiments described above, the generation method of the color 2 D code be mutually combined to form and generating apparatus.
And for example, a kind of recognition methods of color 2 D code, it comprises the following steps: obtain Quick Response Code; Denoising, obtains positioning area; Position according to positioning area; Read the information code element respectively with some number of colours from block of information, export by coded data after decoding.
Such as, according to the GTG quantity in described number of colours, decoded in block of information.The recognition methods of the present embodiment is similar to the recognition methods of existing Quick Response Code, but there is huge difference with it, in the present invention and each embodiment thereof, gray scale is the important element of information code element, not by the object ignored, and adopt gray processing to replace the binaryzation of existing Quick Response Code, acquisition be not the black white image of binaryzation but the gray level image of gray processing.Such as carry out denoising according to the pixel or sharpness that obtain Quick Response Code; And for example, mean value method or method of weighted mean is adopted to carry out gray processing; Such as, the three-component brightness in f (i, j)=(R (i, j)+G (i, j)+B (i, j))/3 pairs of coloured images is adopted to carry out gray processing; And for example, f (i, j)=0.30R (i, j)+0.59G (i, j)+0.11B (i, j) is adopted) gray processing is carried out to the three-component brightness in coloured image.Preferably, described in connected applications any embodiment, generating method, identifying generating the grey Quick Response Code obtained.And for example, for the ease of obtaining the information of a large amount of content, according to GTG quantity, being decoded in block of information, such as, after being decoded in block of information according to the GTG quantity of information code element, exporting storage information.And for example, according to 16 rank, 32 rank or 64 rank, storage information after being decoded in block of information, is exported.One of them embodiment is, also decodes to block of information according to the size of information code element, and such as, the size of information code element is 1mm*1mm, 1mm*1.5mm, 1mm*2mm or 1.6mm*1.6mm etc.One of them embodiment is, each information code element corresponding according to described GTG quantity, decodes to block of information.
Except GTG quantity, can also increase according to basic look and store content, and for example, export by coded data according to after the basic look in described number of colours and the decoding of GTG quantity.And for example, export by coded data according to after the basic chromatic number amount in described number of colours and the decoding of GTG quantity.Like this, the quantity of information that the Quick Response Code that can be multiplied stores.
And for example, described acquisition Quick Response Code, comprises and obtains color 2 D code; Preferably, described acquisition Quick Response Code, comprises and obtains coloured image Quick Response Code.Such as, obtain that have can the coloured image Quick Response Code of identification content.One of them embodiment is, is describedly comprised chained address by coded data.Preferably, also comprise step: according to described chained address obtain described by coded data the storage information of being correlated with.And/or, describedly comprised storage information by coded data.Such as, describedly chained address, display image and/or storage information is comprised by coded data; And for example, describedly comprised display image by coded data, and chained address or the information of storage, wherein, described chained address is used to indicate and obtains described storage information; And for example, describedly comprised display image by coded data, and chained address and storage information.Preferably, described storage information comprises Word message, video information and/or audio-frequency information, and such as, described video information comprises static image information and/or dynamic video information.And for example, image and storage information is shown described being comprised by coded data.Like this, can show with the form being similar to display image in color 2 D code, make color 2 D code be no longer eccentric, elusive mosaic figure, but naked eyes can identification and memory, substantial image, such as, the face of Yao Ming.Such as, the block of information of described identified region has described display image format; Such as, described in there is described display image format, the content shown by described block of information is similar to described display image.
One of them embodiment is, decodes to block of information according to described number of colours.One of them embodiment is, also decodes to block of information according to the size of information code element.
One of them embodiment is, when positioning according to positioning area, also obtains number of colours information from positioning area.Such as, when positioning according to positioning area, also obtain the quantity information of the GTG number of colours information from positioning area; And/or, when positioning according to positioning area, also obtain the quantity information of the basic look number of colours information from positioning area.Such as, when positioning according to positioning area, also obtain GTG quantity and/or basic look quantity information from positioning area.Such as, in generation method, generate GTG code element and/or basic colour coding unit according to GTG quantity and/or basic chromatic number amount at one or more positioning area coding; In recognition methods, when positioning according to positioning area, also from positioning area, obtain GTG quantity and/or basic look quantity information according to GTG code element and/or basic colour coding unit.Such as, the basic Quick Response Code of black and white two look is set, i.e. the Quick Response Code coded system of prior art at a positioning area, records the GTG quantity of this color 2 D code and/or basic chromatic number amount.Like this, GTG quantity information and/or basic chromatic number amount can be obtained accurately, fast, be conducive to accurately decoding to information code element.
One of them embodiment is, when positioning according to positioning area, also obtains related information from positioning area, judges whether to there is other association Quick Response Code.Such as, in generation method, at least one described positioning area arranges undertaking code element, belongs to undertaking state for recording this Quick Response Code, and it has the Quick Response Code before and/or afterwards of associated; In recognition methods, when positioning according to positioning area, also from positioning area, obtain related information according to undertaking code element, judge whether to there is other association Quick Response Code.Preferably, when judging to there is other association Quick Response Code, the association link of other association Quick Response Code is also obtained by described related information.Such as, when judging to there is other association Quick Response Code, also according to described undertaking code element and/or undertaking instruction, before understanding this Quick Response Code and/or afterwards, other Quick Response Code be associated is also had.And for example, the storage information of other association Quick Response Code is also obtained from described association link.Such as, adopt the remote linkage of described undertaking code element as described association link, obtain Quick Response Code associated with it, so that user directly obtains related content, strengthen Consumer's Experience.
Such as, for the ease of using and identifying, according to the storage code element at least one described positioning area, obtain the GTG quantity of Quick Response Code and/or basic chromatic number amount; And for example, according to the basic code element at least one described positioning area, obtain GTG type and/or basic look type, obtain the GTG quantity of Quick Response Code and/or basic chromatic number amount by GTG type and/or basic look type correspondence; And for example, according to the basic code element at least one described positioning area, obtain the GTG quantity of Quick Response Code and/or basic chromatic number amount.
For the ease of avoiding malice Quick Response Code infringement user benefit, such as, also comprise step: according to the verification code element at least one described positioning area, judge whether to there is external linkage.And for example, according to the link code element at least one described positioning area, judge whether to access external linkage, or wait for selection instruction, determine whether to access external linkage.And for example, according to the link code element at least one described positioning area, the paying obtained in linking status is reminded, and judges whether to access external linkage, or waits for selection instruction, determines whether to access external linkage.
For the ease of dilatation, such as, also step is comprised: the GTG quantity related to according to the size selective decompression of information code element and/or basic chromatic number amount.For the ease of adapting to various long monumental work, such as, also comprise step: identify continuous multiple Quick Response Code and splice its content.And for example, continuous multiple Quick Response Code is identified and according to its content of its sequential concatenation.Preferably, according to the continuous multiple Quick Response Code of undertaking state recognition; And for example, according to the undertaking code element in one or more positioning area, obtain undertaking instruction wherein, before guiding user understands this Quick Response Code and/or afterwards, also have other Quick Response Code be associated; And for example, according to the undertaking code element in one or more positioning area, obtain remote linkage wherein, obtain Quick Response Code associated with it, so that user directly obtains related content, strengthen Consumer's Experience.Preferably, after obtaining remote linkage wherein, wait for selection instruction, then obtain Quick Response Code associated with it; And for example, when obtaining Quick Response Code associated with it, judging whether to there is confirmation instruction, is directly obtain the content of the Quick Response Code be associated.
And for example, adopt above-mentioned arbitrary recognition methods, further embodiment of this invention is as follows: a kind of recognition device of color 2 D code, and it is for realizing above-mentioned arbitrary recognition methods; Or a kind of recognition device of color 2 D code, it adopts above-mentioned arbitrary recognition methods to realize.Such as, described recognition device comprises the functional module for realizing above-mentioned arbitrary recognition methods.
Such as, a kind of recognition device of color 2 D code, it comprises the acquisition module for obtaining Quick Response Code, for denoising, the processing module obtaining positioning area, for the locating module positioned according to positioning area, and for reading the information code element rear output by the decoder module of coded data of decoding respectively with some number of colours from block of information.Such as, described recognition device comprises acquisition module, processing module, locating module and decoder module, and described acquisition module for obtaining Quick Response Code, such as, obtains color 2 D code; Described processing module is used for denoising, obtains positioning area; Described locating module is used for positioning according to positioning area, such as, and the particular location in comformed information district; Described decoder module is used for reading after the information code element respectively with some number of colours is also decoded from block of information exporting by coded data.
Such as, described decoder module arranges basic look and Gray Cell, for decoding to block of information according to basic chromatic number amount and/or GTG quantity; Such as, basic look and Gray Cell export different decoding process for different basic chromatic number amount and/or different GTG quantity, are decoded according to basic chromatic number amount and/or GTG quantity by described decoder module to block of information.And for example, described decoder module allocation scale unit, decodes to block of information for the size according to information code element; Such as, scale unit exports different decoding process for the information code element of different size, is decoded to block of information by the size of described decoder module according to information code element.
And for example, described locating module arranges number of colours acquiring unit, during for positioning according to positioning area, also obtains number of colours information from positioning area.As mentioned above, by arranging GTG quantity information at positioning area, the GTG quantity of number of colours acquiring unit obtains subelement and obtains GTG quantity information from positioning area; And for example, by arranging basic look quantity information at positioning area, the basic chromatic number amount of number of colours acquiring unit obtains subelement and obtains basic look quantity information from positioning area.
And for example, also comprise for obtaining related information from positioning area and judging whether to there is the relating module that other associates Quick Response Code.Such as, described relating module arranges the related information acquiring unit be connected with described locating module, during for positioning according to positioning area, obtains related information from positioning area, judges whether to there is other association Quick Response Code.And for example, described relating module arranges association link acquiring unit, and it connects described related information acquiring unit, during for judging to there is other association Quick Response Code, is also obtained the association link of other association Quick Response Code by described related information.And for example, described acquisition module arranges associated data acquiring unit, and it connects described association link acquiring unit, for obtaining the storage information of other association Quick Response Code from described association link.
And for example, also comprise correction verification module, for according to the verification code element at least one described positioning area, judge whether to there is external linkage.And for example, also comprise judge module, for according to the link code element at least one described positioning area, judge whether to access external linkage, or wait for selection instruction, determine whether to access external linkage.And for example, also comprise paying prompting module, for according to the link code element at least one described positioning area, obtain the paying prompting in linking status, judge whether to access external linkage, or wait for selection instruction, determine whether to access external linkage.And for example, also comprise concatenation module, for identifying continuous multiple Quick Response Code and splicing its content etc.All the other functional modules by that analogy, repeat no more.
Further, embodiments of the invention also comprise, each technical characteristic of the various embodiments described above, the recognition methods of the color 2 D code be mutually combined to form and recognition device.
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 generation method for color 2 D code, is characterized in that, comprise the following steps:
Pre-set the identified region of color 2 D code, described identified region comprises positioning area and block of information;
Pre-set the number of colours of color 2 D code;
Obtain data to be encoded;
Coding step: encode to described data to be encoded, generates the information code element with described number of colours, exports the identified region of described data to be encoded.
2. generate method according to claim 1, it is characterized in that, before described coding step, also pre-set the size of described information code element according to described number of colours.
3. generate method according to claim 2, it is characterized in that, pre-set the size of described information code element according to the GTG quantity in described number of colours.
4. generate method according to claim 3, it is characterized in that, before described coding step, also pre-set the size of described information code element according to described identified region.
5. generate method according to claim 1, it is characterized in that, the quantity of the basic look in described number of colours is greater than 64.
6. generate method according to claim 5, it is characterized in that, the quantity of the GTG in described number of colours is greater than 64.
7. generate method according to claim 6, it is characterized in that, the quantity of described GTG is with the quantity of described basic look identical.
8. generate method according to claim 1, it is characterized in that, described block of information comprises some square code elements.
9. generate method according to claim 1, it is characterized in that, described block of information comprises some rectangle code elements.
10. the generating apparatus of a color 2 D code, it is characterized in that, what comprise identified region for pre-seting color 2 D code and number of colours arranges module, for obtaining the acquisition module of data to be encoded, for carrying out the coding module generating and there is the information code element of described number of colours of encoding to described data to be encoded, and for the output module of the identified region that exports described data to be encoded, wherein, described identified region comprises positioning area and block of information.
CN201510225222.8A 2015-05-06 2015-05-06 The generation method of color 2 D code Active CN104794518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510225222.8A CN104794518B (en) 2015-05-06 2015-05-06 The generation method of color 2 D code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510225222.8A CN104794518B (en) 2015-05-06 2015-05-06 The generation method of color 2 D code

Publications (2)

Publication Number Publication Date
CN104794518A true CN104794518A (en) 2015-07-22
CN104794518B CN104794518B (en) 2018-01-12

Family

ID=53559305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510225222.8A Active CN104794518B (en) 2015-05-06 2015-05-06 The generation method of color 2 D code

Country Status (1)

Country Link
CN (1) CN104794518B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117758A (en) * 2015-08-31 2015-12-02 武汉大学 Colored two-dimensional code based mobile platform security communication method
CN106022430A (en) * 2016-05-18 2016-10-12 北京鼎九信息工程研究院有限公司 Method and device for generating, recognizing and reading synthetic-type color two-dimensional diagram code
CN106203571A (en) * 2016-07-11 2016-12-07 搜油郎成都科技有限公司 Image production method based on Quick Response Code and recognition methods and realize system
WO2017012545A1 (en) * 2015-07-20 2017-01-26 彩付宝有限公司 Intelligent payment apparatus and method utilizing colour recognition and coding
CN107009559A (en) * 2017-03-17 2017-08-04 天津工业大学 A kind of preparation method of three-dimension code diaphragm
CN108351979A (en) * 2015-11-09 2018-07-31 三星电子株式会社 Electronic equipment and its operating method
CN109284802A (en) * 2018-08-16 2019-01-29 北京奇虎科技有限公司 A kind of processing method and processing device of encoding of graphs
CN110610219A (en) * 2019-08-12 2019-12-24 上海交通大学 Color annular two-dimensional code and generation and decoding method thereof
US10740666B2 (en) 2018-09-27 2020-08-11 Caleb J. Webster Two-dimensional cryptographic poly-chromatic poly-digital code
CN113743554A (en) * 2021-06-11 2021-12-03 北京大学 Information transfer system based on multivariate dynamic spectrum
CN115230359A (en) * 2022-09-22 2022-10-25 江苏铨通印数字印刷有限公司 Intelligent digital printing anti-counterfeiting mark generation and use method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835047A (en) * 2005-03-18 2006-09-20 深圳大学 Photoelectronic information encrypting coding method
US20090166418A1 (en) * 2005-07-22 2009-07-02 Content Idea Of Asia Co Ltd Layered two-dimensional code, creation method thereof, and read method
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal
CN102831163A (en) * 2012-07-20 2012-12-19 江苏缨思贝睿物联网科技有限公司 Data transfer method and data transfer system
CN102999773A (en) * 2012-12-04 2013-03-27 申可佳 Colorful lattice point code picture and three-dimensional bar code coding method thereof
US20130221105A1 (en) * 2004-11-05 2013-08-29 Colorzip Media, Inc. Mixed Code, and Method and Apparatus for Generating the Same
CN103530669A (en) * 2013-11-08 2014-01-22 成都博格科技有限公司 Data information two-dimensional code encoding method
CN104268611A (en) * 2014-09-18 2015-01-07 小米科技有限责任公司 Webpage synchronizing method and device
CN104463294A (en) * 2013-09-23 2015-03-25 北大方正集团有限公司 Generation method and system for Colormobi, analysis method and system for Colormobi and label

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130221105A1 (en) * 2004-11-05 2013-08-29 Colorzip Media, Inc. Mixed Code, and Method and Apparatus for Generating the Same
CN1835047A (en) * 2005-03-18 2006-09-20 深圳大学 Photoelectronic information encrypting coding method
US20090166418A1 (en) * 2005-07-22 2009-07-02 Content Idea Of Asia Co Ltd Layered two-dimensional code, creation method thereof, and read method
CN101639899A (en) * 2008-07-30 2010-02-03 华为技术有限公司 Methods and devices for encoding and decoding two-dimension code and terminal
CN102831163A (en) * 2012-07-20 2012-12-19 江苏缨思贝睿物联网科技有限公司 Data transfer method and data transfer system
CN102999773A (en) * 2012-12-04 2013-03-27 申可佳 Colorful lattice point code picture and three-dimensional bar code coding method thereof
CN104463294A (en) * 2013-09-23 2015-03-25 北大方正集团有限公司 Generation method and system for Colormobi, analysis method and system for Colormobi and label
CN103530669A (en) * 2013-11-08 2014-01-22 成都博格科技有限公司 Data information two-dimensional code encoding method
CN104268611A (en) * 2014-09-18 2015-01-07 小米科技有限责任公司 Webpage synchronizing method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017012545A1 (en) * 2015-07-20 2017-01-26 彩付宝有限公司 Intelligent payment apparatus and method utilizing colour recognition and coding
CN105117758A (en) * 2015-08-31 2015-12-02 武汉大学 Colored two-dimensional code based mobile platform security communication method
CN108351979B (en) * 2015-11-09 2021-06-18 三星电子株式会社 Electronic device and operation method thereof
CN108351979A (en) * 2015-11-09 2018-07-31 三星电子株式会社 Electronic equipment and its operating method
CN106022430A (en) * 2016-05-18 2016-10-12 北京鼎九信息工程研究院有限公司 Method and device for generating, recognizing and reading synthetic-type color two-dimensional diagram code
CN106022430B (en) * 2016-05-18 2022-01-07 北京鼎九信息工程研究院有限公司 Method and device for generating, recognizing and reading synthetic color two-dimensional graph code
CN106203571A (en) * 2016-07-11 2016-12-07 搜油郎成都科技有限公司 Image production method based on Quick Response Code and recognition methods and realize system
CN107009559A (en) * 2017-03-17 2017-08-04 天津工业大学 A kind of preparation method of three-dimension code diaphragm
CN109284802A (en) * 2018-08-16 2019-01-29 北京奇虎科技有限公司 A kind of processing method and processing device of encoding of graphs
US10740666B2 (en) 2018-09-27 2020-08-11 Caleb J. Webster Two-dimensional cryptographic poly-chromatic poly-digital code
US10997482B2 (en) 2018-09-27 2021-05-04 Caleb J. Webster Two-dimensional cryptographic poly-chromatic poly-digital code
CN110610219B (en) * 2019-08-12 2020-11-06 上海交通大学 Color annular two-dimensional code and generation and decoding method thereof
CN110610219A (en) * 2019-08-12 2019-12-24 上海交通大学 Color annular two-dimensional code and generation and decoding method thereof
CN113743554A (en) * 2021-06-11 2021-12-03 北京大学 Information transfer system based on multivariate dynamic spectrum
CN113743554B (en) * 2021-06-11 2023-08-22 北京大学 Information transfer system based on multiple dynamic spectrums
CN115230359A (en) * 2022-09-22 2022-10-25 江苏铨通印数字印刷有限公司 Intelligent digital printing anti-counterfeiting mark generation and use method

Also Published As

Publication number Publication date
CN104794518B (en) 2018-01-12

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
CN104134085B (en) Particular bar and forming method thereof
CN104715275B (en) A kind of generation method and generating means of grey Quick Response Code
JP4557866B2 (en) Mixed code, mixed code generation method and apparatus, and recording medium
JP3336311B2 (en) Machine-recognizable code and encoding / decoding method thereof
US10863202B2 (en) Encoding data in a source image with watermark image codes
CN103310252B (en) CCQR (Colorful Coded Quick Response) anti-counterfeiting mark
CN105740931B (en) Multidimensional security code label, its production method and recognition methods
CN104715222A (en) Method and device for identifying gray two-dimension code
CN104933386B (en) The recognition methods of many GTG invisible two-dimensional codes
CN104281830A (en) Two-dimension code identification method and device
CN105160378B (en) A kind of color invisible image code generating method
CN104951828B (en) The generation method of colored high-order latent image code
CN110276428A (en) A kind of four-dimension code encoding and decoding method
CN106203571A (en) Image production method based on Quick Response Code and recognition methods and realize system
CN104850817B (en) The identification device of colored high-order latent image code
CN111222611A (en) Stacking type three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium based on colors
CN105095938B (en) A kind of generation method of the multistage latent image code of colour
CN104850882B (en) The generating means of more GTG invisible two-dimensional codes
CN104866886B (en) The generating means of colored high-order latent image code
CN103177654A (en) Manufacturing method of optical anti-fake membrane, optical anti-fake membrane label, optical anti-fake label and optical anti-fake system
CN111428532B (en) Coding and decoding method capable of encrypting three-dimensional code
CN104573781A (en) Encoding and decoding method of two-dimensional code
CN104850883A (en) Method for generating multi-gray-scale invisible two-dimensional code

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

Effective date of registration: 20171204

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant