CN108985420A - A kind of decoding method and decoding system of information code - Google Patents
A kind of decoding method and decoding system of information code Download PDFInfo
- Publication number
- CN108985420A CN108985420A CN201810864309.3A CN201810864309A CN108985420A CN 108985420 A CN108985420 A CN 108985420A CN 201810864309 A CN201810864309 A CN 201810864309A CN 108985420 A CN108985420 A CN 108985420A
- Authority
- CN
- China
- Prior art keywords
- information
- light source
- code
- target light
- color
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0008—General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种信息码的编解码方法及解码系统,该方法包括:信息码的编码方法包括:获取待编码信息,及获取目标光源的色彩与信息的编码关系,根据色彩与信息的编码关系,及上述待编码信息进行编码,得到包含同色异谱图块的信息码。相对于现有技术,通过基于色彩与信息的编码关系构造包含同色异谱图块的信息码,使得能够将信息码与图案关联起来,不同的待编码信息可以得到具有不同色彩图案的信息码,且由于信息码是基于目标光源的色彩与信息的编码关系生成的,因此,信息码的解码也必须在目标光源下进行解码才能获得正确的信息,因此,保密性能更强。
The invention discloses an information code encoding and decoding method and a decoding system. The method includes: the information code encoding method includes: obtaining the information to be encoded, and obtaining the encoding relationship between the color of the target light source and the information, and according to the encoding of the color and the information relationship, and the above information to be encoded are encoded to obtain an information code including a metamerism block. Compared with the prior art, by constructing information codes containing metamerism blocks based on the encoding relationship between color and information, it is possible to associate information codes with patterns, and different information to be encoded can obtain information codes with different color patterns, And because the information code is generated based on the coding relationship between the color of the target light source and the information, the decoding of the information code must also be performed under the target light source to obtain the correct information, so the security performance is stronger.
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种信息码的编解码方法及解码系统。The invention relates to the field of information technology, in particular to an information code encoding and decoding method and decoding system.
背景技术Background technique
随着物联网发展的盛行,识别技术成为重要的一环,比如二维码技术,作为连接和识别的一个技术,变得益发重要,二维码技术具有能够将图形、文字集成到信息码当中,也有部分彩码,或是背景嵌入图形,但是目前技术具有几个问题,一个是信息码显示的图案和信息码是无关的,二是不具有良好的保密功能。With the prevalence of the development of the Internet of Things, identification technology has become an important part. For example, two-dimensional code technology, as a technology for connection and identification, has become more and more important. Two-dimensional code technology has the ability to integrate graphics and text into information codes. There are also some color codes, or the background is embedded with graphics, but the current technology has several problems. One is that the pattern displayed by the information code is irrelevant to the information code, and the other is that it does not have a good security function.
发明内容Contents of the invention
本发明的主要目的在于提供一种信息码的编解码方法及系统,旨在解决现有技术中信息码显示的图案和信息码无关,且不具有良好的保密功能的技术问题。The main purpose of the present invention is to provide an information code encoding and decoding method and system, aiming to solve the technical problem in the prior art that the pattern displayed by the information code has nothing to do with the information code and does not have a good security function.
为实现上述目的,本发明第一方面提供一种信息码的编码方法,包括:In order to achieve the above object, the first aspect of the present invention provides an encoding method of an information code, including:
获取待编码信息,及获取目标光源的色彩与信息的编码关系;Obtain the information to be encoded, and obtain the encoding relationship between the color of the target light source and the information;
根据所述色彩与信息的编码关系及所述待编码信息进行编码,得到包含同色异谱图块的信息码。Encoding is performed according to the encoding relationship between the color and information and the information to be encoded to obtain an information code including a metamerism block.
为实现上述目的,本发明第二方面提供一种信息码的解码方法,包括:In order to achieve the above object, the second aspect of the present invention provides a decoding method of an information code, including:
接收器获取信息码在目标光源下的图案,并对所述图案进行解析,确定所述图案包含的各同色异谱图块的色彩;The receiver obtains the pattern of the information code under the target light source, and analyzes the pattern to determine the color of each metameric block included in the pattern;
利用所述目标光源的色彩与信息的编码关系,确定所述各同色异谱图块的色彩分别对应的信息段,将所述信息段组合得到所述信息码解码后的信息。Using the coding relationship between the color of the target light source and the information, the information segments corresponding to the colors of the metamerism blocks are determined, and the information segments are combined to obtain the decoded information of the information code.
为实现上述目的,本发明第三方面提供一种信息码的解码系统,包括:In order to achieve the above object, the third aspect of the present invention provides an information code decoding system, including:
所述目标光源用于提供区别于自然光源的光照条件,且光线照射至所述图形码;The target light source is used to provide lighting conditions different from natural light sources, and the light is irradiated to the graphic code;
所述图形码至少包含同色异谱图块;The graphic code at least includes a metamerism block;
所述接收器用于对所述图形码进行识别,获取所述图形码在所述目标光源下的图案,并进行解码。The receiver is used to identify the graphic code, acquire the pattern of the graphic code under the target light source, and decode it.
本发明提供一种信息码的编解码方法及系统,其中,信息码的编码方法包括:获取待编码信息,及获取目标光源的色彩与信息的编码关系,根据色彩与信息的编码关系,及上述待编码信息进行编码,得到包含同色异谱图块的信息码。相对于现有技术,通过基于色彩与信息的编码关系构造包含同色异谱图块的信息码,使得能够将信息码与图案关联起来,不同的待编码信息可以得到具有不同色彩图案的信息码,且由于信息码是基于目标光源的色彩与信息的编码关系生成的,因此,信息码的解码也必须在目标光源下进行解码才能获得正确的信息,因此,保密性能更强。The present invention provides an information code encoding and decoding method and system, wherein the information code encoding method includes: obtaining the information to be encoded, and obtaining the encoding relationship between the color of the target light source and the information, according to the encoding relationship between the color and the information, and the above The information to be encoded is encoded to obtain an information code including a metamerism block. Compared with the prior art, by constructing information codes containing metamerism blocks based on the encoding relationship between color and information, it is possible to associate information codes with patterns, and different information to be encoded can obtain information codes with different color patterns, And because the information code is generated based on the coding relationship between the color of the target light source and the information, the decoding of the information code must also be performed under the target light source to obtain the correct information, so the security performance is stronger.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without creative work.
图1为本发明实施例中信息码的解码系统的结构示意图;Fig. 1 is the structural representation of the decoding system of information code in the embodiment of the present invention;
图2a为本发明实施例中信息码在自然光下的呈现效果示意图;Fig. 2a is a schematic diagram of the rendering effect of the information code under natural light in the embodiment of the present invention;
图2b为本发明实施例中信息码在目标光源下的呈现效果示意图;Fig. 2b is a schematic diagram of the rendering effect of the information code under the target light source in the embodiment of the present invention;
图3为本发明实施例中信息码的编码方法的流程示意图;FIG. 3 is a schematic flowchart of an encoding method of an information code in an embodiment of the present invention;
图4为本发明实施例中信息码的解码方法的流程示意图;FIG. 4 is a schematic flow diagram of a decoding method of an information code in an embodiment of the present invention;
图5为本发明实施例中信息码的编码装置的结构示意图;FIG. 5 is a schematic structural diagram of an information code encoding device in an embodiment of the present invention;
图6为本发明实施例中信息码的解码装置的结构示意图。FIG. 6 is a schematic structural diagram of an information code decoding device in an embodiment of the present invention.
具体实施方式Detailed ways
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.
请参阅图1,为本发明实施例中信息码的解码系统的结构示意图,该解码系统包括:Please refer to Fig. 1, which is a schematic structural diagram of the decoding system of the information code in the embodiment of the present invention, and the decoding system includes:
目标光源、图形码及接收器;Target light source, graphic code and receiver;
其中,目标光源用于提供区别于自然光源的光照条件,且光线照射至图形码;Among them, the target light source is used to provide lighting conditions different from the natural light source, and the light is irradiated to the graphic code;
图形码至少包含同色异谱图块,该同色异谱图块是基于目标光源的色彩与信息的编码关系生成的。The graphic code at least includes a metamerism block, and the metamerism block is generated based on the coding relationship between the color of the target light source and the information.
上述接收器用于对图形码进行识别,获取图形码在目标光源下的图案,并进行解码。The above-mentioned receiver is used to identify the graphic code, acquire the pattern of the graphic code under the target light source, and decode it.
在本发明实施例红,图形码中至少包含同色异谱图块,且同色异谱图块是指在自然光下显示相同或相似,不同色温自然光下略有差异,但是在非自然光源下,显示差异较大,能够进行辨识,其中,同色异谱图块也可以称为像素块,不同颜色的像素块可以代表不同的信息。本申请中即是基于同色异谱图块在不同的非自然光源下显示的色彩是不同的原理,进行信息码的编码及解码,以使得信息码包含的信息与显示的图案的色彩有关,且必须在正确的光源下才能识别得到正确的信息,以增强信息码的保密性能。例如,若信息码是基于光源A的色彩与信息的编码关系进行编码得到的,那么信息码在进行解码时,也必须在光源A的光照条件下解码才能得到正确的信息,如果在光源B的光照条件下进行解码,则解码得到的信息是错误的。In the embodiment of the present invention, the graphic code at least includes a metamerism block, and the metamerism block means that it is the same or similar under natural light, and there is a slight difference under natural light with different color temperatures, but under unnatural light sources, the display The difference is large and can be identified. The metamerism block can also be called a pixel block, and pixel blocks of different colors can represent different information. In this application, the information code is encoded and decoded based on the principle that the colors displayed by the metamerism block under different unnatural light sources are different, so that the information contained in the information code is related to the color of the displayed pattern, and The correct information must be identified under the correct light source to enhance the confidentiality of the information code. For example, if the information code is encoded based on the coding relationship between the color of the light source A and the information, then when the information code is decoded, it must be decoded under the lighting conditions of the light source A to obtain the correct information. If decoding is performed under lighting conditions, the decoded information will be wrong.
其中,上述目标光源即为非自然光源,具体可以为任意一种类型的人工光源,或者是智能设备自带光源,该目标光源与自然光的色差大于可识别色差值,其中,该可识别色差值为接收器识别信息码时,目标光源与自然光源色差允许的最小值,以便色差的足够大到可以进行辨识。Wherein, the above-mentioned target light source is an unnatural light source, which can be any type of artificial light source, or a light source provided by a smart device, and the color difference between the target light source and natural light is greater than the identifiable color difference value, wherein the identifiable color The difference is the minimum value allowed for the color difference between the target light source and the natural light source when the receiver identifies the information code, so that the color difference is large enough to be identified.
对于非自然光源,可以设置色彩与信息的编码关系,且不同的非自然光源,色彩与信息的编码关系也是不一样的。该编码关系可以基于多次试验和/或非自然光源本身的特性进行设置,此处不做限定。For unnatural light sources, the encoding relationship between color and information can be set, and the encoding relationship between color and information is also different for different unnatural light sources. The encoding relationship may be set based on multiple experiments and/or characteristics of the unnatural light source itself, which is not limited here.
为了更好的理解本发明实施例中的技术方案,请参阅图2a,图2a为本发明实施例中的信息码在自然光下的呈现效果示意图,及请参阅图2b,图2b为本发明实施例中信息码在目标光源下的呈现效果示意图,从图2a和图2b中可以确定,自然光下,各图块的颜色是相同的,而在目标光源下,图块的颜色是存在差异的。In order to better understand the technical solution in the embodiment of the present invention, please refer to Figure 2a, which is a schematic diagram of the presentation effect of the information code in the embodiment of the present invention under natural light, and please refer to Figure 2b, which is the implementation of the present invention The schematic diagram of the rendering effect of the information code under the target light source in the example, from Figure 2a and Figure 2b, it can be determined that under natural light, the colors of each block are the same, but under the target light source, the colors of the blocks are different.
在本发明实施例中,为了验证解码时使用的光源是否是匹配的光源,还可以在信息码进行编码时,增加验证码至信息码内,得到优化后的信息码,其中,验证码是以特征码的形式输入接收器的。且验证码可以是在信息码的固定位置,例如,在信息码的最开始的位置,或者在信息码的结束位置。In the embodiment of the present invention, in order to verify whether the light source used in decoding is a matching light source, it is also possible to add a verification code to the information code when encoding the information code to obtain an optimized information code, wherein the verification code is Enter the receiver in the form of a signature. And the verification code may be at a fixed position of the information code, for example, at the beginning position of the information code, or at the end position of the information code.
需要说明的是,上述图形码可以应用于一维码、二维码、三维码等等信号传输技术中,且图形码中除了上述的同色异谱图块及验证码之外,还可以包含其他的色块,此处并不做限定。It should be noted that the above-mentioned graphic codes can be applied to signal transmission technologies such as one-dimensional codes, two-dimensional codes, and three-dimensional codes, and the graphic codes can include other The color blocks are not limited here.
进一步的,请参阅图3,为本发明实施例中信息码的编码方法的流程示意图,该编码方法是由编码装置实现的,该编码装置内设置有各种不同的非自然光源的色彩与信息的编码关系,包括:Further, please refer to FIG. 3 , which is a schematic flow chart of the encoding method of the information code in the embodiment of the present invention. The encoding method is realized by the encoding device, and the color and information of various unnatural light sources are set in the encoding device. Coding relationships, including:
步骤301、获取待编码信息,及获取目标光源的色彩与信息的编码关系;Step 301, obtaining the information to be coded, and obtaining the coding relationship between the color of the target light source and the information;
步骤302、根据所述色彩与信息的编码关系及所述待编码信息进行编码,得到包含同色异谱图块的信息码。Step 302: Perform encoding according to the encoding relationship between the color and information and the information to be encoded to obtain an information code including a metamerism block.
在本发明实施例中,编码装置将获取待编码信息,该待编码信息可以是文字信息,或者图案信息等等,并获取到目标光源的色彩与信息的编码关系,其中,该目标光源可以预先设置的用于编码的光源类型,也可以是操作人员选择的光源类型。In the embodiment of the present invention, the coding device will obtain the information to be coded, which can be text information, or pattern information, etc., and obtain the coding relationship between the color of the target light source and the information, wherein the target light source can be pre-coded The type of light source used for encoding can also be the type of light source selected by the operator.
上述步骤302具体包括:The above step 302 specifically includes:
步骤A、对所述待编码信息进行拆分,得到多个信息段;Step A, splitting the information to be encoded to obtain multiple information segments;
步骤B、查找所述色彩与信息的编码关系,分别确定所述多个信息段对应的色彩,按照所述多个信息段对应的色彩构造包含同色异谱图块的信息码。Step B: Find the coding relationship between the color and information, determine the colors corresponding to the multiple information segments, and construct the information codes including the metamerism block according to the colors corresponding to the multiple information segments.
在本发明实施例中,编码装置将待编码信息进行拆分,得到多个信息段,例如,如果是文字信息,则基于文字的拆分规则进行拆分,若为图案信息,则基于图案的拆分规则进行拆分。In the embodiment of the present invention, the encoding device splits the information to be encoded to obtain multiple information segments. For example, if it is text information, split it based on the text splitting rules; Split rules to split.
对于每一个信息段,都将查找目标光源的色彩与信息的编码关系,确定与该信息段对应的色彩,且按照多个信息段对应的色彩构造包含同色异谱图块的信息码。其中,色彩的排列顺序是基于信息段在待编码信息中的顺序确定的。For each information segment, the coding relationship between the color of the target light source and the information will be searched, the color corresponding to the information segment will be determined, and the information code including the metamerism block will be constructed according to the colors corresponding to the multiple information segments. Wherein, the arrangement order of the colors is determined based on the order of the information segments in the information to be encoded.
且进一步的,为了便于确定解码得到的信息是否正确,在编码时还可以包含以下步骤:And further, in order to facilitate the determination of whether the decoded information is correct, the following steps may also be included during encoding:
步骤C、在所述信息码上增加所述目标光源的验证码,得到优化后的信息码。Step C, adding the verification code of the target light source to the information code to obtain an optimized information code.
上述验证码与目标光源有关,每种不同类型的非自然光源都有其相应的验证码。The above verification codes are related to the target light source, and each different type of unnatural light source has its corresponding verification code.
可以理解的是,图3描述的是编码过程,下面将介绍解码过程,且该解码过程是使用到了图1所示实施例中的信息码的解码系统。请参阅图4,为本发明实施例中信息码的解码方法的流程示意图,包括:It can be understood that FIG. 3 describes the encoding process, and the decoding process will be introduced below, and the decoding process is a decoding system using the information code in the embodiment shown in FIG. 1 . Please refer to FIG. 4, which is a schematic flow chart of the decoding method of the information code in the embodiment of the present invention, including:
步骤401、接收器获取信息码在目标光源下的图案,并对所述图案进行解析,确定所述图案包含的各同色异谱图块的色彩;Step 401, the receiver obtains the pattern of the information code under the target light source, and analyzes the pattern to determine the color of each metameric block included in the pattern;
步骤402、利用所述目标光源的色彩与信息的编码关系,确定所述各同色异谱图块的色彩分别对应的信息段,将所述信息段组合得到所述信息码解码后的信息。Step 402: Using the coding relationship between the color of the target light source and the information, determine the information segments corresponding to the colors of the metamerism blocks, and combine the information segments to obtain the decoded information of the information code.
在本发明实施例中,信息码需要放置在目标光源下,以便目标光源的光线能够照射至信息码上,接收器则将获取信息码在目标光源下的图案,并对该图案进行解析,确定图案包含的各同色异谱图块的色彩。可以理解的是,对于不同的目标光源,同一个信息码所呈现的色彩是不同的。In the embodiment of the present invention, the information code needs to be placed under the target light source so that the light from the target light source can shine on the information code, and the receiver will obtain the pattern of the information code under the target light source, and analyze the pattern to determine The color of each metameric tile that the pattern contains. It can be understood that for different target light sources, the colors presented by the same information code are different.
且接收器将利用目标光源的色彩与信息的编码关系,确定各同色异谱图块的色彩分别对应的信息段,将信息段组合得到信息码解码后的信息。And the receiver will use the coding relationship between the color of the target light source and the information to determine the information segments corresponding to the colors of the metamerism blocks, and combine the information segments to obtain the decoded information of the information codes.
进一步的,为了确定解码后得到的信息是准确的,在解码之前,还需要进行验证,即在上述步骤402之前还包括:Further, in order to determine that the information obtained after decoding is accurate, verification needs to be carried out before decoding, that is, before the above step 402, it also includes:
步骤a、从所述图案中获取验证码;Step a, obtaining the verification code from the pattern;
步骤b、利用所述验证码验证所述目标光源是否为所述信息码编码时使用的光源;Step b. Using the verification code to verify whether the target light source is the light source used when encoding the information code;
步骤c、若是,则继续执行上述步骤402。Step c, if yes, continue to execute the above step 402.
在本发明实施例中,接收器在获取到图案之后,将从该图案中获取验证码,并利用该验证码验证目标光源是否为信息码编码时使用的光源,若是,则表明可以使用该上述目标光源对信息码进行解码,继续执行上述步骤402中的解码过程,若否,则表明上述目标光源对信息码解码将得到错误的信息。In the embodiment of the present invention, after the receiver obtains the pattern, it will obtain the verification code from the pattern, and use the verification code to verify whether the target light source is the light source used when encoding the information code. The target light source decodes the information code, and continues to execute the decoding process in step 402 above. If not, it indicates that the target light source decodes the information code to obtain wrong information.
在本发明实施例中,通过基于色彩与信息的编码关系构造包含同色异谱图块的信息码,使得能够将信息码与图案关联起来,不同的待编码信息可以得到具有不同色彩图案的信息码,且由于信息码是基于目标光源的色彩与信息的编码关系生成的,因此,信息码的解码也必须在目标光源下进行解码才能获得正确的信息,因此,保密性能更强。In the embodiment of the present invention, by constructing information codes containing metamerism blocks based on the encoding relationship between color and information, it is possible to associate information codes with patterns, and different information to be encoded can obtain information codes with different color patterns , and since the information code is generated based on the coding relationship between the color of the target light source and the information, the decoding of the information code must also be performed under the target light source to obtain the correct information. Therefore, the security performance is stronger.
请参阅图5,为本发明实施例中的信息码的编码装置的结构示意图,包括:Please refer to FIG. 5, which is a schematic structural diagram of an information code encoding device in an embodiment of the present invention, including:
获取模块501,用于获取待编码信息,及获取目标光源的色彩与信息的编码关系;An acquisition module 501, configured to acquire the information to be encoded, and acquire the encoding relationship between the color of the target light source and the information;
编码模块502,用于根据所述色彩与信息的编码关系及所述待编码信息进行编码,得到包含同色异谱图块的信息码。The coding module 502 is configured to perform coding according to the coding relationship between the color and the information and the information to be coded to obtain an information code including a metamerism block.
其中,编码模块502包括:Wherein, the encoding module 502 includes:
拆分模块5021,用于对所述待编码信息进行拆分,得到多个信息段;A splitting module 5021, configured to split the information to be encoded to obtain multiple information segments;
查找模块5022,用于查找所述色彩与信息的编码关系,分别确定所述多个信息段对应的色彩,按照所述多个信息段对应的色彩构造包含同色异谱图块的信息码。The search module 5022 is configured to search for the coding relationship between the color and the information, respectively determine the colors corresponding to the multiple information segments, and construct the information code including the metamerism block according to the colors corresponding to the multiple information segments.
进一步的,上述装置还包括:Further, the above-mentioned device also includes:
增加模块503,用于在信息码上增加目标光源的验证码,得到优化后的信息码。An adding module 503, configured to add the verification code of the target light source to the information code to obtain an optimized information code.
进一步的,请参阅图6,为本发明实施例中信息码的解码装置的结构示意图,该解码装置可以是接收器,包括:Further, please refer to FIG. 6, which is a schematic structural diagram of an information code decoding device in an embodiment of the present invention. The decoding device may be a receiver, including:
获取解析模块601,用于获取信息码在目标光源下的图案,并对所述图案进行解析,确定所述图案包含的各同色异谱图块的色彩;The acquisition and analysis module 601 is used to acquire the pattern of the information code under the target light source, and analyze the pattern to determine the color of each metamerism block included in the pattern;
组合模块602,用于利用所述目标光源的色彩与信息的编码关系,确定所述各同色异谱图块的色彩分别对应的信息段,将所述信息段组合得到所述信息码解码后的信息。The combination module 602 is configured to use the coding relationship between the color of the target light source and the information to determine the information segments corresponding to the colors of the metamerism blocks, and combine the information segments to obtain the decoded information code information.
其中,解码装置还包括:Wherein, the decoding device also includes:
验证码获取模块603,用于在组合模块602之前,从图案中获取验证码;A verification code acquisition module 603, used to obtain a verification code from the pattern before the combination module 602;
验证模块604,用于利用所述验证码验证所述目标光源是否为所述信息码编码时使用的光源;A verification module 604, configured to use the verification code to verify whether the target light source is the light source used when encoding the information code;
执行模块605,用于若是,则执行所述组合模块602。The execution module 605 is configured to execute the combination module 602 if yes.
在本发明实施例中,图5所示的编码装置及图6所示的解码装置,是通过基于色彩与信息的编码关系构造包含同色异谱图块的信息码,使得能够将信息码与图案关联起来,不同的待编码信息可以得到具有不同色彩图案的信息码,且由于信息码是基于目标光源的色彩与信息的编码关系生成的,因此,信息码的解码也必须在目标光源下进行解码才能获得正确的信息,因此,保密性能更强In the embodiment of the present invention, the encoding device shown in FIG. 5 and the decoding device shown in FIG. 6 are based on the encoding relationship between color and information to construct information codes containing metamerism blocks, so that information codes and patterns can be combined In association, different information to be encoded can obtain information codes with different color patterns, and since the information codes are generated based on the coding relationship between the color of the target light source and the information, the decoding of the information codes must also be decoded under the target light source In order to obtain the correct information, therefore, the confidentiality performance is stronger
在本发明实施例中,图3所示实施例中的编码方法是由编码装置实现的,该编码装置包括存储器、处理器及存储在存储器上且在处理器上运行的计算机程序,且处理器在执行该计算机程序时,可以实现如图3所示的信息码的编码方法中的各个步骤。图4所示实施例中的解码方法是由接收器实现的,该接收器包括存储器、处理器及存储在存储器上且在处理器上运行的计算机程序,且处理器在执行该计算机程序时,可以实现如图4所示的信息码的解码方法中的各个步骤。In the embodiment of the present invention, the encoding method in the embodiment shown in FIG. 3 is implemented by an encoding device, the encoding device includes a memory, a processor, and a computer program stored in the memory and run on the processor, and the processor When the computer program is executed, various steps in the encoding method of the information code as shown in FIG. 3 can be realized. The decoding method in the embodiment shown in FIG. 4 is realized by a receiver, the receiver includes a memory, a processor, and a computer program stored on the memory and run on the processor, and when the processor executes the computer program, Each step in the decoding method of the information code as shown in FIG. 4 can be realized.
此外,本发明还提供一种可读存储介质,其上存储有计算器程序,计算机程序被处理器执行时,若该计算机程序与编码相关,则可实现如图3所示信息码的编码方法中的各个步骤,若该计算机程序与解码相关,则可实现如图4所示信息码的解码方法中的各个步骤。In addition, the present invention also provides a readable storage medium on which a computer program is stored. When the computer program is executed by the processor, if the computer program is related to encoding, the encoding method of the information code as shown in FIG. 3 can be realized. For each step in the method, if the computer program is related to decoding, each step in the decoding method of the information code as shown in FIG. 4 can be realized.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
以上为对本发明所提供的一种信息码的编解码方法及解码系统的描述,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of an information code encoding and decoding method and decoding system provided by the present invention. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810864309.3A CN108985420B (en) | 2018-08-01 | 2018-08-01 | Coding and decoding method and decoding system of information code |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810864309.3A CN108985420B (en) | 2018-08-01 | 2018-08-01 | Coding and decoding method and decoding system of information code |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108985420A true CN108985420A (en) | 2018-12-11 |
| CN108985420B CN108985420B (en) | 2021-06-01 |
Family
ID=64552080
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810864309.3A Expired - Fee Related CN108985420B (en) | 2018-08-01 | 2018-08-01 | Coding and decoding method and decoding system of information code |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108985420B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109726788A (en) * | 2018-12-21 | 2019-05-07 | 北京印刷学院 | Metamerism Hidden Light and Dark Double Code QR Code |
| CN109740712A (en) * | 2018-12-21 | 2019-05-10 | 北京印刷学院 | QR code to hide anti-counterfeiting logo image |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1776722A (en) * | 2005-12-12 | 2006-05-24 | 湘潭大学 | An Invisible Color Barcode |
| US20110127331A1 (en) * | 2009-11-30 | 2011-06-02 | Xerox Corporation | Phase locked ir encoding for peened 2d barcodes |
| CN102243712A (en) * | 2010-05-14 | 2011-11-16 | 上海彩码信息科技有限公司 | Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code |
| JP2012141729A (en) * | 2010-12-28 | 2012-07-26 | Jvc Kenwood Corp | Authenticity determination method, authenticity determination device, authenticity determination system, and color two-dimentional code |
| CN102855511A (en) * | 2011-06-29 | 2013-01-02 | 电装波动株式会社 | Information code and information code reader |
| CN105574572A (en) * | 2015-12-24 | 2016-05-11 | 上海师范大学 | Color quick response code and generation method thereof |
| CN105930889A (en) * | 2015-02-26 | 2016-09-07 | 杨东华 | color coding and decoding method and system |
| CN107871151A (en) * | 2017-10-23 | 2018-04-03 | 广东数相智能科技有限公司 | A kind of color bar code and its production method and device |
| CN108133164A (en) * | 2018-02-09 | 2018-06-08 | 上海川光信息科技有限公司 | A kind of multidimensional spectrum bar code recognition instrument |
-
2018
- 2018-08-01 CN CN201810864309.3A patent/CN108985420B/en not_active Expired - Fee Related
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1776722A (en) * | 2005-12-12 | 2006-05-24 | 湘潭大学 | An Invisible Color Barcode |
| US20110127331A1 (en) * | 2009-11-30 | 2011-06-02 | Xerox Corporation | Phase locked ir encoding for peened 2d barcodes |
| CN102243712A (en) * | 2010-05-14 | 2011-11-16 | 上海彩码信息科技有限公司 | Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code |
| JP2012141729A (en) * | 2010-12-28 | 2012-07-26 | Jvc Kenwood Corp | Authenticity determination method, authenticity determination device, authenticity determination system, and color two-dimentional code |
| CN102855511A (en) * | 2011-06-29 | 2013-01-02 | 电装波动株式会社 | Information code and information code reader |
| CN105930889A (en) * | 2015-02-26 | 2016-09-07 | 杨东华 | color coding and decoding method and system |
| CN105574572A (en) * | 2015-12-24 | 2016-05-11 | 上海师范大学 | Color quick response code and generation method thereof |
| CN107871151A (en) * | 2017-10-23 | 2018-04-03 | 广东数相智能科技有限公司 | A kind of color bar code and its production method and device |
| CN108133164A (en) * | 2018-02-09 | 2018-06-08 | 上海川光信息科技有限公司 | A kind of multidimensional spectrum bar code recognition instrument |
Non-Patent Citations (2)
| Title |
|---|
| WALLIS THOMAS S A: "Testing models of peripheral encoding using metamerism in an oddity paradigm.", 《JOURNAL OF VISION》 * |
| 林其水: "同色异谱在包装和防伪印刷中的应用", 《中国品牌与防伪》 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109726788A (en) * | 2018-12-21 | 2019-05-07 | 北京印刷学院 | Metamerism Hidden Light and Dark Double Code QR Code |
| CN109740712A (en) * | 2018-12-21 | 2019-05-10 | 北京印刷学院 | QR code to hide anti-counterfeiting logo image |
| CN109726788B (en) * | 2018-12-21 | 2022-03-04 | 北京印刷学院 | Metamerism Hidden Light and Dark Double Code QR Code |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108985420B (en) | 2021-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108846753B (en) | Method and apparatus for processing data | |
| CN111835808B (en) | Data storage method and device, data reading method and device, and storage medium | |
| US10216727B2 (en) | Visually differentiating strings for testing | |
| US10394763B2 (en) | Method and device for generating pileup file from compressed genomic data | |
| CN111435367B (en) | Knowledge graph construction method, system, equipment and storage medium | |
| JP2020515931A5 (en) | ||
| CN110825363B (en) | Intelligent contract acquisition method and device, electronic equipment and storage medium | |
| KR102231406B1 (en) | Information generation method and device, information acquisition method and device, information processing method and device, and payment method and client | |
| WO2015165412A1 (en) | Method for modifying webpage and apparatus for modifying webpage | |
| WO2021179809A1 (en) | Intelligent contract caching and executing method and apparatus | |
| CN113657395B (en) | Text recognition method, visual feature extraction model training method and device | |
| CN112818301A (en) | Method and device for embedding and extracting hidden information of OFD format electronic document | |
| CN114357329A (en) | Method and device for two-dimensional code jump WeChat applet to designate target page | |
| CN109068150A (en) | A kind of excellent picture extracting method, terminal and the computer-readable medium of video | |
| CN110662080B (en) | Machine-Oriented Universal Coding Methods | |
| CN111930610A (en) | Software homology detection method, device, equipment and storage medium | |
| CN108985420A (en) | A kind of decoding method and decoding system of information code | |
| CN115276889A (en) | Decoding processing method, decoding processing device, computer equipment and storage medium | |
| US20230015096A1 (en) | Picture processing method and apparatus, electronic device and storage medium | |
| CN103986981B (en) | The recognition methods of the plot fragment of multimedia file and device | |
| US11914596B2 (en) | Parallelized parsing of data in cloud storage | |
| US20130334313A1 (en) | System and method for encoding and extending data limit of barcode symbologies | |
| CN111026371A (en) | Game development method and device, electronic equipment and storage medium | |
| CN110765318A (en) | Method and device for inquiring block chain data | |
| CN115718696B (en) | Source code cryptography misuse detection method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210601 |