CN101241543B - Processing method for embedding information at commodity packaging recognized by mobile phone - Google Patents

Processing method for embedding information at commodity packaging recognized by mobile phone Download PDF

Info

Publication number
CN101241543B
CN101241543B CN 200810052345 CN200810052345A CN101241543B CN 101241543 B CN101241543 B CN 101241543B CN 200810052345 CN200810052345 CN 200810052345 CN 200810052345 A CN200810052345 A CN 200810052345A CN 101241543 B CN101241543 B CN 101241543B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
image
information
block
embedded
blocks
Prior art date
Application number
CN 200810052345
Other languages
Chinese (zh)
Other versions
CN101241543A (en )
Inventor
张铮
顾泽苍
魏国宁
Original Assignee
天津市阿波罗信息技术有限公司
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
Grant date

Links

Abstract

The present invention provides a treating method of embedding identifying information by mobile phone on the commodity package, the method includes following steps: acquiring commodity packaging image, reading image data; analyzing image arranging information of patterns; dividing image into blocks, calculating average gray value of color of each block; setting two adjacent blocks being one group, reading the pre-embedded information and processing code according to the different gray definition ''1'' and ''1'' of two adjacent blocks; comparing the image data with the pre-embedded data; comparing two data, adjusting whole blocks to complete image data embedded according that the pre-embedded data adjusts yellow weight grayscale of the irrelevant image data blocks; printing and output the printing image of the pre-embedded information. The beneficial effect of the invention is that using the method has larger embedded information content, high identification accuracy and small destructibility of the original image, needless of other scanning input device, the embedded information is identified by mobile phone. The method can used for electronic ticketing identification such as mobile phone, automatic internet of mobile phone field.

Description

在商品包装上埋入可供手机识别信息的处理方法 On the packaging and processing method for embedding identification information of the mobile phone

技术领域 FIELD

[0001] 本发明属于信息处理技术,尤其是一种在商品包装上埋入可供手机识别信息的处理方法。 [0001] The present invention pertains to an information processing technology, in particular a mobile phone processing method for embedding identification information on the packaging.

[0002] 背景技术 [0002] BACKGROUND OF THE INVENTION

[0003] 市场上假冒伪劣产品随处可见,对消费者在身体与精神上的伤害有目共睹,一部分朋友更是深受其害。 [0003] on the market of fake and shoddy products everywhere, to consumers in the physical and mental harm for all to see, it is part of a friend suffer. 如果能够随时随地、方便及时地对自己想要购买的商品进行鉴别查询,是人们所期盼的事情。 If you can anytime, anywhere, convenient and timely manner on the goods they want to buy for identification queries, it is that people expect things. 而手机随身携带的便捷性如果与防伪鉴定技术结合,使得手机鉴别防伪这一便捷手段能够满足消费者的上述需求。 The phone carry convenience if combined with anti-counterfeit identification technology, making the phone easy to identify the anti-counterfeiting means to be able to satisfy the needs of consumers. 使消费者在不需要输入信息内容的情况下便可完成产品的真伪查询,查询一步到位的同时也确保了信息的准确性。 So that consumers can be completed for the authenticity of the product without the need to enter information content, query in one step while also ensuring the accuracy of the information.

[0004] 目前市场上使用手机防伪鉴别,主要是通过二维码技术来实现。 [0004] currently use mobile phones to identify the anti-counterfeiting market, mainly achieved by the two-dimensional code technology. 二维条码是在一维条码的基础上产生出来的,因此很难跳出一维条码的局限,首先所有的二维条码的提案仍然采用将黑色区域表示信息代码“ 1 ”,白色区域表示信息代码“0”,而没考虑利用图形变化来直接地表示一个完整的信息代码(如0〜9,A〜F),造成信息表示的冗长。 Two-dimensional bar code is generated on the basis of one-dimensional bar code on it, making it difficult out of the limitations of one-dimensional bar code, first of all proposals still using the two-dimensional bar black area information indicating the code "1", the white areas represent information codes "0", and did not consider the use of graphical changes to directly represent a complete information codes (such as 0~9, A~F), resulting in lengthy information represented. 其次,二维条码同一维条码一样必须单独出现,占用了空间,而且易于被复制,安全性差。 Secondly, the same two-dimensional bar-dimensional bar code must appear as a single, taking up space, and easy to be copied, poor security. 况且纸张污染对二维条码的正确解读也是致命的问题。 Moreover, the paper pollution on the correct interpretation of two-dimensional bar code is a fatal problem.

[0005] 因此,人们迫切希望获得一种既安全可靠,不改变商品包装原有的图形设计和整体美观,也不需要额外的空间加载防伪信息,同时又具有鉴别商品真伪功能的信息埋入方法。 [0005] Therefore, people are eager to obtain a safe, reliable, does not change the original packaging graphic design and overall appearance, does not require additional space for loading security information, but also has the function of information to identify the authenticity of goods buried method.

[0006] 发明内容 [0006] SUMMARY OF THE INVENTION

[0007] 为解决上述技术中存在的问题,本发明的目的是提供一种在商品包装上埋入可供手机识别信息的处理方法,本发明利用人眼的视觉特性与照相机扫描仪等图像读取装置在识别颜色灰度级和分析图像能力上的差异,人眼对颜色的亮度变化反应不同,图像读取装置比人眼能更好地识别图像的灰度变化。 [0007] In order to solve the above technique problems, an object of the present invention is to provide a processing method for embedding identification information of the mobile phone on the packaging, the present invention is the use of visual characteristics of the camera such as a scanner image read difference extracting means in the recognition color and grayscale image analysis capabilities, to the human eye response to the luminance change of the color image reading apparatus eye can recognize the gradation changes in the image better than the human. 本发明利用图像的灰度变化进行操作,从而达到埋入数据的目的。 Using the image gray-scale variation of the present invention operates to achieve the purpose of the embedded data.

[0008] 为实现上述目的,本发明采取的技术方案是提供一种在商品包装上埋入可供手机识别信息的处理方法,该方法包括有信息埋入和信息识别两部分,其中: [0008] To achieve the above object, the present invention takes technical solution is to provide a processing method for embedding identification information of the mobile phone on the packaging, the method comprising embedding information and information identifying the two parts, wherein:

[0009] 该信息埋入方法步骤如下: [0009] The information embedding method steps:

[0010] (1)读取包括商标、防伪标记、商品包装图像在内的任意一种可对商品进行真伪识别的CMYK四版颜色中的至少一种颜色构成的图像数据; [0010] (1) comprising a read any marks, security marking, packaging, including an image data of at least one color image of the authenticity identifying CMYK four colors constituting version of goods;

[0011] (2)将上述图像数据划分成若干块; [0011] (2) The above image data into a plurality of blocks;

[0012] (3)将上述图像数据中相邻的复数个块图像分为一组,针对每一组图像,求出复数个块图像中各个分块的图像像素的灰度值;按照所定埋入信息值“0”或“ 1”决定每一组相邻各块图像像素的灰度值的差;若原相邻各块图像像素的灰度值与埋入信息值的差结果一致,相邻各块的图像灰度值不变,否则按照所定埋入信息值,改变相应分块内的图像像素的至少一种以上颜色的灰度值的差值,从而达到信息埋入的目的; [0012] (3) adjacent to the image data of the image blocks divided into a plurality of groups, for each group of images, the plurality of blocks obtained gradation values ​​of image pixels in each image sub-blocks; according to a predetermined embedded information value "0" or "1" determines the difference between gradation values ​​of each block in each group of neighboring image pixels; if uniform gradation values ​​of each block adjacent to the original image pixel value difference result information embedded phase o image gray value of each block is constant, otherwise the information is embedded according to a predetermined value, changing the gradation value of a difference of at least more than one color of image pixels within the respective sub-blocks, so as to achieve the purpose of the embedded information;

[0013] (4)将埋入了信息的图像进行印刷,得到一个供手机识读的印刷图像;该信息识别方法步骤如下: [0013] (4) embedded in the image information is printed, the printed image to obtain a reading for the handset; information identifies the following method steps:

[0014] (1)图像读取设备读取包括商标,防伪标记,商品包装图像在内的任意的可对商品进行识别的印刷图像,得到CMYK四版颜色中的至少一种颜色构成的图像数据; [0014] (1) any of the image reading apparatus includes a reading mark, security marking, packaging, including the image may be printed on the product image recognition, the image data to obtain at least one version of four color CMYK colors composed of ;

[0015] (2)将上述埋入信息的图像划分成若干块; [0015] (2) The embedded information of the image into a plurality of blocks;

[0016] (3)将已分块图像中相邻的复数个块分为一组,计算每一分块的灰度值的,平均值,最大值或最小灰度值中的至少一种形式的灰度值,根据每一组相邻分块的灰度值的差值决定该分块为信息“ 0 ”或“ 1 ”,从而达到信息识别的目的。 [0016] (3) at least one adjacent image blocks form a plurality of blocks as a group, the average, maximum or minimum gray value of the gradation values ​​is calculated for each sub-block had been distributed gradation value, in accordance with the difference between each set of adjacent grayscale values ​​is determined that the block information block is "0" or "1", so as to achieve the purpose of identification information.

[0017] 该识别方法步骤(1)中所述读取图像的设备是手机、照相机、扫描仪、手持图像读取机及台式图像读取机在内的至少一种。 [0017] The image recognition method steps apparatus (1) is at least one of said read phone, camera, scanner, desktop and hand-held image reader including an image reader.

[0018] 本发明的效果是利用该方法在商品包装上埋入防伪信息,该方法具有埋入信息量大、识别精度高及对原图像破坏性小的特点,无需其它的扫描输入设备,埋入的信息利用手机即可识别。 [0018] The effect of the present invention is a method of using the embedded security information on the packaging, this method has a large amount of information is embedded, high recognition accuracy and the characteristics of the original image small destructive, no additional scanning input devices, Buried enter information using a mobile phone can be identified. 利用现在已经普及的手机作为识别商品真伪,例如烟酒等商品真伪的工具。 Now popular use of mobile phones as identification authenticity of goods, such as alcohol and tobacco and other goods authenticity of the tool. 通过手机拍照商品的包装,解读埋入的信息,就可以实现自动识别商品包装上面的防伪图案, 自动上网验证商品的真伪。 Mobile phone camera by wrapping goods, interpret the information buried, it can automatically identify package above commodity security patterns, automatic access to verify the authenticity of goods. 比之以往所使用的鉴别方法,完全利用商品现有的包装图案,做到了既不改变商品包装原有的图形设计和整体美观,也不需要额外的空间加载防伪信息, 同时又做到了防伪鉴别。 Than the authentication method used in the past, fully utilize existing commodity packaging design, packaging did not change the original graphic design and overall appearance, does not require additional space for loading security information, but also did security identification . 消费者只要利用安装了识别软件的手机,将手机拍摄的解读信息发送到该产品的防伪系统,经防伪系统判定后回复消费者。 Consumers can use mobile phones to install the recognition software to send mobile phones to take to interpret the information of the product security system, the security system determines the reply of consumers. 用手机拍照输入方式极大地简化了消费者的查询输入操作,在防伪效果上,能够做到准确,迅速,便捷;抗磨损性能强,即使图片有一定磨损,软件也可以进行识别。 Using a mobile phone camera input mode greatly simplifies the consumer's query input operation on the security effects, can be accurate, rapid and convenient; strong wear resistance, even if the picture has some wear and tear, the software can also be identified. 识别出的信息可用于判断商品真伪,进行网络的通信,同时还可以通过网络进行包括声音,图像或视频在内的至少一种多媒体传输,网络游戏,手机翻译在内的至少一种手机增值服务,具有良好的发展前景。 At least one mobile value-added information may be used to identify the authenticity of goods is determined, a communication network, but also can include sound, image or video transmissions, including at least one multimedia, online game, a mobile phone through a network, including translation service, with good prospects for development.

[0019] 附图说明 [0019] BRIEF DESCRIPTION OF DRAWINGS

[0020] 图1为本发明所提出的埋入可供手机识别信息的埋入方法示意图; Embedding method for embedding identification information of the mobile phone [0020] Figure 1 is a schematic view of the proposed invention;

[0021] 图2为本发明的识别商品包装所埋入信息的识别方法示意图; Identifying packaging [0021] FIG. 2 is a schematic view of the invention the embedding method of identification information;

[0022] 图3是本发明的图像分块的示意图; [0022] FIG. 3 is a schematic view of an image block of the present invention;

[0023] 图4为本发明的对已分块图像进行分组的示意图; [0023] FIG. 4 is a schematic diagram for grouping the invention has an image block;

[0024] 图5为本发明的另一种图像分组示意图; Another image [0024] FIG. 5 is a schematic view of the invention of the packet;

[0025] 图6为本发明的由四个像素块组成一组图像的分组示意图; Four pixel blocks of a group of image packets schematic [0025] FIG. 6 of the present invention;

[0026] 图7是本发明所提出的埋入方法的图像数据调整方法示意图; [0026] FIG. 7 is a schematic diagram of image data embedding method for adjusting the proposed method of the present invention;

[0027] 图8为埋入数据前的原图像; [0027] FIG. 8 is an original image before embedding the data;

[0028] 图9为本发明所提出的在商品包装图像中的埋入防伪信息的效果图; FIG effect embedded in the security information packaging image [0028] FIG. 9 is the proposed invention;

[0029] 图10为本发明所提出的另一种在商品包装图像中埋入防伪信息的埋入方法示意图。 Another method of embedding security information embedded in the image packaging [0029] FIG. 10 is a schematic view of the proposed invention.

[0030] 图11为本发明所提出的另一种在商品包装图像中埋入防伪信息埋入方法的埋入流程图。 [0030] FIG 11 a flow chart of another embedded security information embedding method of embedding the image in the packaging of the present invention proposed.

[0031] 图中: [0031] FIG:

[0032] 101,102为相邻两块数据 [0032] 101 and 102 for the two adjacent data

[0033] 201,202为相邻两块数据 [0033] 201 and 202 for the two adjacent data

[0034] 301,302,303,304为相邻的四块数据[0035] 401,402为相邻两块数据 [0034] 301, 302 of four adjacent data [0035] 401 and 402 for the two adjacent data

[0036] 401为将图像分块所得到的其中一块 [0036] The image block 401 is obtained wherein a

[0037] 402为将图像分块所得到的其中一块 [0037] The image block 402 is obtained wherein a

[0038] 501为埋有防伪信息为“1”的一组图像 [0038] 501 is embedded with security information of "1" is a group of images

[0039] 502为埋有防伪信息为的“0” 一组图像 [0039] 502 is embedded with security information of "0" a group of images

[0040] 601为由3*3个数据块组成的一组数据的中心块 [0040] The center block 601 by a set of data of 3 * 3 blocks of data

[0041] 602为将图像分块所得到的其中一块 [0041] The image block 602 is obtained wherein a

[0042] 603为将图像分块所得到的其中一块 [0042] The image block 603 is obtained wherein a

[0043] 604为将图像分块所得到的其中一块 [0043] The image block 604 is obtained wherein a

[0044] 605为将图像分块所得到的其中一块 [0044] The image block 605 is obtained wherein a

[0045] 606为将图像分块所得到的其中一块 [0045] The image block 606 is obtained wherein a

[0046] 607为将图像分块所得到的其中一块 [0046] The image block 607 is obtained wherein a

[0047] 608为将图像分块所得到的其中一块 [0047] The image block 608 is obtained wherein a

[0048] 609为将图像分块所得到的其中一块 [0048] The image block 609 is obtained wherein a

具体实施方式 detailed description

[0049] 以下结合附图及实施例对本发明的在商品包装上埋入可供手机识别信息的处理方法做进一步详述,但本发明所述的实施例是说明性的,而不是限定性的。 [0049] conjunction with the accompanying drawings and the following further detailed description of embodiments on the packaging processing method for embedding identification information of the mobile phone according to the present invention, embodiments of the present invention is illustrative and not restrictive .

[0050] 图1是本发明的在商品包装上埋入可供手机识别信息的处理方法的系统示意图, 具体埋入方法如下: [0050] FIG. 1 is a schematic of a system for processing method of embedding identification information of the mobile phone on the packaging of the present invention, the specific embedding method as follows:

[0051] (1)读取包括商标,防伪标记,商品包装图像在内的任意一种可对商品进行特定的图像数据; [0051] (1) comprising a read any marks, security marking, packaging, including an image of the image data for a particular commodity;

[0052] (2)将上述图像进行分块,根据所读取的图像的尺寸来确定划分每块图像的大小, 每块由数个像素构成对图像进行处理;每块的大小以8个及8个以上像素大小来定义,根据所读取的图像的分辨率的不同,可以进行适当调整。 [0052] (2) The above image is divided into blocks, to determine the size of each divided image in accordance with the size of the read image, each image is processed by a plurality of pixels; the size of each block to 8 and 8 or more defined pixel size, depending on the resolution of the read image can be appropriately adjusted.

[0053] (3)将已分块图像中相邻的两个块分为一组,先对两块图像的灰度值进行比较,根据相邻两块的不同灰度定义“0”和“1”,“1”的灰度大于“0”的灰度。 [0053] (3) The block has two adjacent image blocks as a group, gradation values ​​of two images to be compared, is defined according to two different adjacent gradation "0" and " 1 "," 1 "gradation larger than" 0 "gradation. 本实施方式所采用的定义方法为:如图4所示的图像分组方法中,如果101的灰度大于102的灰度表示“0”,101 的灰度值大于102的灰度值表示“1”。 The method defined according to the present embodiment is used: image grouping method shown in FIG. 4, if the gray gradation 101 is greater than 102 indicates "0", the gradation value 101 is greater than the grayscale value 102 indicates "1 . "

[0054] 图像由C、M、Y、K四版颜色中的至少一种颜色构成,读取要埋入的信息,并转换为计算机代码;将图像数据与要埋入的数据进行比较;根据要埋入信息“0”和“1”与一组图像中的两块数据的黄色分量灰度所表示的代码值“0”和“ 1,,进行比较;如果图像所表示的信息与要埋入的信息不相符,根据将要埋入的信息“0”或“ 1 ”,改变相应分块的黄色的Y版分量灰度值,从而达到信息埋入的目的。 [0054] consists of at least one color image of C, M, Y, K colors Fourth Edition, reads the information to be embedded, and converted to computer code; the image data is compared with the data to be embedded; according to embedded information "0" and "1" and the code value gray yellow component of a set of two image data represented by "0" and "1 ,, compared; if the image information to be represented embedded information does not match, in accordance with information to be embedded "0" or "1", changing the corresponding version of the yellow component Y gradation values ​​of the block, so as to achieve the purpose of the embedded information.

[0055] (4)将埋入了信息的图像进行印刷,得到一个供手机识读的印刷图像。 [0055] (4) embedded in the image information is printed, the printed image to obtain a reading for the handset.

[0056] 图2是本发明识别商品包装所埋入信息的识别方法示意图,具体识别方法如下: [0056] FIG. 2 is a schematic diagram of the identification information recognition method according to the present invention embedded in packaging, specifically identified as follows:

[0057] (1)手机、照相机、扫描仪、手持图像读取机或台式图像读取机在内的至少一种读取设备读取包括商标、防伪标记、商品包装图像在内的任意的可对商品进行特定的印刷图像,转变成图像数据;[0058] (2)将埋入信息的图像进行分块,根据所读取的图像的尺寸来确定划分每块的大小,每块由数个像素构成对图像进行处理每块图像,以8个或8个以上像素组成;每块图像的大小还可根据读取图像的分辨率做适当调整,如果图像的分辨率较高,每块可以由8个以下像素组成。 [0057] (1) cell phone, camera, scanner, desktop or hand-held image reader of the image reading unit including at least one arbitrary device may include a mark reading, security marking, packaging, including the image reading of commodities particular printed image, converted into image data; [0058] (2) embedded in the image information is divided into blocks, to determine the size of each block is divided according to the size of the image to be read by a plurality of blocks each of pixels constituting the image processing of each image to more than 8 or 8 pixels; size of each image may also make appropriate adjustments according to the resolution of the read image, if a high resolution image, each may be formed the following 8 pixels. 图像的分块方法与信息的埋入时所采用的分块方法一致。 Segmentation methods consistent when embedding block image information method employed.

[0059] (3)将已分块图像中相邻的复数个块分为一组,计算每一分块的平均灰度值,最大灰度值,最小灰度值中的至少一种形式的灰度值,根据相邻分块的灰度值的大小决定该分块为信息“ 0 ”或“ 1,,从而达到信息识别的目的; [0059] (3) the image block adjacent to a plurality of blocks as a group, calculates the average gray scale value for each block, the maximum tone value, at least one form, the minimum grayscale value has been min gradation value, determined according to the size of the gradation values ​​of the neighboring block is a block of the information "0" or "1 ,, so as to achieve the purpose of identification information;

[0060] 灰度值的范围在0-255之间,每一块图像包括多个像素,求得每块图像中数个像素的灰度的平均值,经比较后,得到每一块中数个像素的灰度的最大值及灰度的最小值。 Range [0060] The grayscale value between 0-255, each image comprising a plurality of pixels, each determined average gradation image having plural pixels, by the comparison, to obtain the number of pixels in each block maximum and minimum gray gradation.

[0061] 平均灰度值的计算公式为:每一块中各像素的灰度值之和/ 一块中包括的像素个数。 Formula [0061] is the average gray value: number of pixels in each block of each pixel grayscale values ​​and / or an included.

[0062] (4)识别出的信息可用于判断商品真伪,进行网络的通信,通过网络进行包括声音,图像或视频在内的至少一种多媒体传输,网络游戏,手机翻译在内的至少一种手机增值服务。 At least one of [0062] (4) the identification information can be used to judge the authenticity of goods, communication networks, including for voice, video or images, including at least one multimedia transmission, online games, mobile phone through the network, including translation kinds of mobile value-added services.

[0063] 图3是图像分块的示意图。 [0063] FIG. 3 is a schematic view of an image block. 根据要埋入信息的图像的大小,将图像分为若干块。 The size of the image information to be embedded, the image is divided into several blocks. 这个块的大小根据所读取的图像的尺寸来确定划分每块的大小,每块以8个或8个以上像素大小来定义。 The block size is determined according to the size of the image read by dividing the size of each block, each pixel size of 8 or more 8 defined. 因此,不会破坏图像的质量。 Therefore, it will not damage the quality of the image. 本实施方式所采用的块的大小为10*10像素。 The block size used in the present embodiment is 10 * 10 pixels. 块的大小可以根据实际情况作适当的调整。 The block size may be properly adjusted according to the actual situation. 每块的大小还可以根据所读取的图像的分辨率的不同,进行调整。 The size of each block may also be different in accordance with the resolution of the read image, adjusted. 如果图像的分辨率较高,每块可以由8个以下像素组成。 Higher resolution images, each may be composed of the following 8 pixels.

[0064] 图4为对已分块图像进行分组的示意图,101与102为相邻的两个像素块,根据相邻两块的不同灰度定义“0”和“1”,本实施方式所采用的定义方法为:如果101的灰度值大于102的灰度值表示“0”,101的灰度值大于102的灰度值表示“1”。 [0064] FIG. 4 is a schematic diagram for the patch image grouping, 101 and 102 for the two adjacent blocks of pixels, two adjacent gradation depending on the definition of "0" and "1", the present embodiment methods are defined as follows: If the gray scale value 101 is greater than the grayscale value 102 indicates "0", the gradation value 101 is greater than the grayscale value 102 indicates "1."

[0065] 图5为另一种图像分组示意图,将如201、202所示的相邻两块图像作为一组图像, 根据不同灰度定义“0”和“1”。 [0065] FIG. 5 is a schematic diagram of another image packet, such as the two adjacent images 201 and 202 shown as a set of images, depending on the definition of gradation "0" and "1."

[0066] 图6为由四个像素块组成一组图像的分组示意图,以301作为参照,其周围的三块图像302,303,304与301进行比较,根据不同灰度来定义“0”和“1”。 [0066] FIG. 6 by four pixel blocks schematic grouping a set of images, to 301 as a reference, three images 302, 303 and 301 surrounding compared to the definition of "0" and "1" depending on the gradation .

[0067] 图7是本发明所提出的一种埋入方法的图像数据调整方法示意图,图7为图像分版后黄色的Y版,即提取的黄色分量的灰度图像。 [0067] FIG. 7 is a diagram illustrating a method for adjusting the image data embedding method proposed by the present invention, FIG. 7 is a partial version of the image version of yellow Y, i.e., the extracted gray-scale image of the yellow component. 该图像已分为若干的小块,并按照如图4 所示的方法进行分组。 This image has been divided into several pieces, and grouped according to the method shown in FIG. 4. 图7中401与402为相邻两块数据。 401 and 402 in FIG. 7 of two adjacent data. 在数据埋入时,每两个相邻的数据块进行比较。 When data is embedded, every two adjacent blocks are compared. 原图像中401所示的数据块位置的黄色分量灰度平均值高于402的黄色分量灰度平均值,根据本发明所提出的定义方法,其表示的代码值为“0”,但该位置要埋入的信息为“1”,因此,需要调整401与402的黄色分量灰度值,使数据块401的黄色分量灰度平均值高于402的黄色分量灰度平均值。 Yellow component in the original image gradation data block position shown in yellow component 401 is higher than the average of the mean gray value 402, the method according to the definition proposed by the present invention, which represents the value of the code "0", but this position information to be embedded is "1", therefore, necessary to adjust the gradation value 401 and the yellow component 402 of the yellow component block 401 is higher than the average gray yellow component mean gray value of 402.

[0068] 图8是埋入数据前的原图像。 [0068] FIG. 8 is an original image before embedding the data.

[0069] 图9是埋有防伪信息的图像,埋入的信息为10110010100011110。 [0069] FIG. 9 is buried in the security information of the image, the embedded information is 10110010100011110. 根据要埋入的数 According to the number of buried

据,依次调整每相邻两块图像组成的一组数据的黄色分量灰度值。 According to sequentially adjust the yellow component of the gray value of a set of data images for each adjacent two thereof. 图中501表示埋有防伪信息的一组图像,该图像包含C、1、¥、1(四版的颜色,表示信息“1”。其中左边一块的图像黄色分量灰度值高于右边一块的黄色分量灰度值。502表示埋有防伪信息的一组图像,表示信息“0”。右边一块图像的黄色分量灰度值高于左边一块的黄色分量灰度值。[0070] 图10是本发明所提出的另一种埋入方法的示意图。上述在商品包装上埋入可供手机识别信息的埋入方法在进行数据分块时每两个相邻的数据块进行比较,这种方法需要大量的数据块,图片分块浪费严重。为解决这一问题,该埋入方法还可以采用3X3的共九个数据块来表示一个字节。如图10所示,在图10所示的九个分块组成的一组图像中,选取中间的一块601作为参照,其周围八个分块表示八个位的数据,这九个分块总共可以表示一个字节。即:以中心块601为基准,由其周围的 FIG buried 501 represents a set of security information image, the image comprising C, 1, ¥, 1 (four color version, information indicating "1." Yellow component image in which a gradation value higher than the right side of a left the yellow component gradation value .502 indicates a group of pictures embedded security information, information indicating "0". yellow component to the right of a grayscale value higher than the yellow component image gradation value of the left one. [0070] FIG. 10 another method is a schematic diagram of the proposed embedding present invention. when two adjacent sub-blocks each of the embedding identification information for a mobile phone on the packaging method of embedding data block during data comparison, such the method requires large blocks of data, image block wasted. to solve this problem, the method further embedding the 3X3 total of nine data block may be expressed in one byte. 10, 10 shown in FIG. a set of images composed of nine sub-block, the intermediate piece 601 selected as a reference block surrounding eight data represented by eight bits, a total of nine sub-block may represent a byte that is: in the center a reference block 601, around its 个块602-609的Y版灰度值分别与601 的Y版灰度值进行比较,块602-609中大于中心块601的Y版灰度值表示“ 1 ”,块602-609 的Y版灰度值小于中心块的Y版灰度值表示“0”。 Y blocks 602-609 Version gradation values ​​are respectively compared with the version Y gradation value 601, the block 602-609 is greater than the center block 601 represents gradation values ​​of Y plate "1", Y version of block 602-609 gradation value smaller than the center block version Y gradation value indicates "0."

[0071] 图11为本发明所提出的另一种埋入方法的埋入流程图。 [0071] FIG 11 a flow chart of another method for embedding embedding of the present invention proposed. 首先计算如图10所示的一组共九块图像601-609的灰度平均值,灰度值的范围为0-255,将中心参照块601与周围块602-609的最小黄色灰度差作为阈值,该阈值也可以为某一固定的常数。 Total nine grayscale mean a set of images 601-609 is first calculated as shown in FIG. 10, the range of tone values ​​is 0-255, the center of the reference block 601 and the surrounding block having the minimum gradation difference yellow 602-609 as the threshold value, the threshold may be a certain fixed constant. 本实施方式中所采用的阈值为20。 Threshold employed in the present embodiment is 20. 如果参照块的灰度值小于阈值或大于灰度最大值即255减去阈值,则应当调整参照块的灰度,使其符合条件,以便于对图像进行识别。 If the gray reference block is less than the threshold value or greater than the maximum gray scale threshold value is subtracted 255 i.e., the gradation reference block should be adjusted so that it meets the conditions, so that the image recognition. 将中间块的每个像素的黄色灰度都调整为该组共九块图像灰度的平均值。 The yellow gradation of each pixel are adjusted to the intermediate block group mean total nine grayscale images. 将要埋入的数据与图像灰度所表示的代码值“0”和“ 1,,进行比较,根据要埋入的数据调整不相符的图像块的灰度,使该块的平均灰度与参照块灰度的差的绝对值达到一定的阈值,本实施方案所采用的定义方法为:数据为0 时,灰度小于参照块灰度减去阈值;数据为1时,灰度大于参照块灰度加上阈值。图像四个角的小块作为标示符进行特殊处理,不对其进行埋入数据操作。 The value of the code to be embedded with the image data of the gradation represented by "0" and "1 ,, compared, according to the grayscale image block does not match the embedded data to be adjusted so that the mean gray block with reference to gradation block absolute value of difference reaches a certain threshold, the present embodiment defines a method is employed: when the data is 0, the gradation is less than the threshold value by subtracting the reference block gradation; data is 1, the gray block is greater than the reference gray plus the threshold level image identifier as the four corners of the tile special treatment, is not subjected to data embedding operation.

[0072] 为保证图像的质量不受影响,在改变灰度时,也可以只对小块的中间部分进行操作。 [0072] To ensure the quality of the image is not affected, at the time of changing the gradation, can be operated only in a middle portion small. 按照此种方案,信息量将增加至少一倍。 According to this scheme, the amount of information will at least double.

Claims (2)

  1. 1. 一种在商品包装上埋入可供手机识别信息的处理方法,该方法包括有信息埋入和信息识别两部分,其特征是:该信息埋入方法步骤如下:(1)读取包括商标、防伪标记、商品包装图像在内的任意一种可对商品进行真伪识别的CMYK四版颜色中的至少一种颜色构成的图像数据;(2)将上述图像数据划分成若干块;(3)将上述图像数据中相邻的复数个块图像分为一组,针对每一组图像,求出复数个块图像中各个分块的图像像素的灰度值;按照所定埋入信息值“0”或“1”决定每一组相邻各块图像像素的灰度值;若原相邻各块图像像素的灰度值与埋入信息值的差结果一致,相邻各块的图像灰度值不变,否则按照所定埋入信息值,改变相应分块内的图像像素的至少一种以上颜色的灰度值,从而达到信息埋入的目的;(4)将埋入了信息的图像进行印刷,得到一个供手机 An embedded on the packaging for the mobile phone identification information processing method, the method comprising embedding information and information identifying the two parts, characterized in that: the information embedding method steps are as follows: (1) reading comprises at least one color image data composed of four color CMYK version of any marks, security marking, packaging, including an image of the commodity of the authenticity identification; (2) the image data into a plurality of blocks; ( 3) adjacent to the image data of a plurality of image blocks into one group for each group of images, the image pixel gray value to obtain a plurality of image blocks in the respective sub-blocks; embedded information in accordance with a predetermined value "0" or "1" gray value determined for each group of adjacent pixels in each block image; if the same gradation value of each block adjacent to the original image pixel value difference information embedded result, each of the adjacent image blocks ash constant value, or embedding information in accordance with a predetermined value, changing the value of at least one or more gradation colors of pixels within the respective image block, so as to achieve the purpose of the embedded information; (4) the information embedded image printing, get a cell phone for 读的印刷图像;该信息识别方法步骤如下:(1)图像读取设备读取包括商标,防伪标记,商品包装图像在内的任意的可对商品进行识别的印刷图像,得到CMYK四版颜色中的至少一种颜色构成的图像数据;(2)将上述埋入信息的图像划分成若干块;(3)将已分块图像中相邻的复数个块分为一组,计算每一分块的灰度值的,平均值,最大值或最小灰度值中的至少一种形式的灰度值,根据每一组相邻分块的灰度值的差值决定该分块为信息“ 0 ”或“ 1 ”,从而达到信息识别的目的。 Reading the printed image; information identifies the following process steps: (1) any of the image reading apparatus includes a reading mark, security marking, packaging printing images including images of goods may be identified to obtain four colors CMYK Edition at least one color image data composed; (2) the embedding image information into a plurality of blocks; (3) the block has a plurality of adjacent image blocks as a group, calculated for each block the at least one form of average gray value, maximum or minimum gray scale value of the gradation values, according to each group of adjacent gray value difference is determined that the block information block is "0 "or" 1 ", so as to achieve the purpose of identification information.
  2. 2.根据权利要求1所述的在商品包装上埋入可供手机识别信息的处理方法,其特征是:该识别方法步骤(1)中所述读取图像的设备是手机、照相机、扫描仪、手持图像读取机及台式图像读取机在内的至少一种。 2 on the packaging processing method for embedding identification information of the mobile phone as claimed in claim 1, wherein: the identification step (1) in the image reading apparatus is a mobile phone, a camera, a scanner , hand-held image reader and an image reading desktop machine, including at least one.
CN 200810052345 2008-02-28 2008-02-28 Processing method for embedding information at commodity packaging recognized by mobile phone CN101241543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810052345 CN101241543B (en) 2008-02-28 2008-02-28 Processing method for embedding information at commodity packaging recognized by mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810052345 CN101241543B (en) 2008-02-28 2008-02-28 Processing method for embedding information at commodity packaging recognized by mobile phone

Publications (2)

Publication Number Publication Date
CN101241543A true CN101241543A (en) 2008-08-13
CN101241543B true CN101241543B (en) 2011-03-30

Family

ID=39933063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810052345 CN101241543B (en) 2008-02-28 2008-02-28 Processing method for embedding information at commodity packaging recognized by mobile phone

Country Status (1)

Country Link
CN (1) CN101241543B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727606B (en) * 2009-11-20 2016-05-25 顾泽苍 One kind of processing method embedding information in an electronic file
CN102407703A (en) * 2010-09-25 2012-04-11 天津市阿波罗信息技术有限公司 Another processing method for digitized anti-fake printing
CN102442096B (en) * 2010-10-09 2014-12-17 天津市阿波罗信息技术有限公司 Method for printing variable information by embedding information into word stock
CN103544455B (en) * 2012-09-10 2017-11-07 信实数码股份有限公司 Screen control system and method of security
CN103400102B (en) * 2013-08-16 2016-12-28 徐宁 A kind of an image carrier information dissemination system, a terminal device, server and method
CN105205777A (en) * 2015-08-28 2015-12-30 深圳市泰久信息系统股份有限公司 Encoding method of invisible image ciphers
CN106600812A (en) * 2016-12-14 2017-04-26 深圳怡化电脑股份有限公司 Paper currency recognition method and paper currency recognition device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567532B1 (en) 1999-12-02 2003-05-20 Eastman Kodak Company Method and computer program for extracting an embedded message from a digital image
CN1440196A (en) 2003-04-03 2003-09-03 上海交通大学 Digital watermark implanting and extracting method based on parth search
US6724913B1 (en) 2000-09-21 2004-04-20 Wen-Hsing Hsu Digital watermarking

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567532B1 (en) 1999-12-02 2003-05-20 Eastman Kodak Company Method and computer program for extracting an embedded message from a digital image
US6724913B1 (en) 2000-09-21 2004-04-20 Wen-Hsing Hsu Digital watermarking
CN1440196A (en) 2003-04-03 2003-09-03 上海交通大学 Digital watermark implanting and extracting method based on parth search

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Jessica Fridrich.Lossless Data Embedding -New Paradigm in digitalWatermarking.Journal on Applied Signal Processing2.2002,2185-196.

Also Published As

Publication number Publication date Type
CN101241543A (en) 2008-08-13 application

Similar Documents

Publication Publication Date Title
US6636615B1 (en) Methods and systems using multiple watermarks
US6591009B1 (en) Information embedding method, apparatus and recording medium
US6728390B2 (en) Methods and systems using multiple watermarks
US20070171288A1 (en) Image correction apparatus and method, image correction database creating method, information data provision apparatus, image processing apparatus, information terminal, and information database apparatus
US6804377B2 (en) Detecting information hidden out-of-phase in color channels
US6763123B2 (en) Detection of out-of-phase low visibility watermarks
US7702162B2 (en) Mixed code, and method and apparatus for generating the same
US6891959B2 (en) Hiding information out-of-phase in color channels
US7831062B2 (en) Arrangement of objects in images or graphics to convey a machine-readable signal
US20020136429A1 (en) Data hiding through arrangement of objects
US6912295B2 (en) Enhancing embedding of out-of-phase signals
US20130161395A1 (en) Four dimensional (4d) color barcode for high capacity data encoding and decoding
US20020031241A1 (en) Method and computer program product for hiding information in an indexed color image
US20150156369A1 (en) Data hiding for spot colors in product packaging
US20070138286A1 (en) System, method, and program for extracting invisible information
US7020327B2 (en) Machine readable code image and method of encoding and decoding the same
CN102184428A (en) Encrypting anti-counterfeiting printing technology for modulating shapes of amplitude modulation dots of printed work through binary-system encrypting signal
CN102402696A (en) Multi-dimensional encryption anti-counterfeiting printing technology based on binary signals
CN102225671A (en) Encrypted anti-counterfeit printing technology for modulating shape of printed matter amplitude-modulation screen dot by dual-encrypted signal
US20060008112A1 (en) Low visible digital watermarks
US20140119647A1 (en) Method and Apparatus for Decoding Mixed Code
Berezhnoy et al. Computer analysis of van Gogh’s complementary colours
US20150079357A1 (en) System and method for producing color shifting or gloss effect and recording medium with color shifting or gloss effect
US20060072778A1 (en) Encoding invisible electronic information in a printed document
Farid Creating and detecting doctored and virtual images: Implications to the child pornography prevention act

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted