CN106934440B - 一种编码信息中嵌入信息的方法和系统 - Google Patents

一种编码信息中嵌入信息的方法和系统 Download PDF

Info

Publication number
CN106934440B
CN106934440B CN201710148674.XA CN201710148674A CN106934440B CN 106934440 B CN106934440 B CN 106934440B CN 201710148674 A CN201710148674 A CN 201710148674A CN 106934440 B CN106934440 B CN 106934440B
Authority
CN
China
Prior art keywords
information
image
embedded
embedding
frequency domain
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.)
Active
Application number
CN201710148674.XA
Other languages
English (en)
Other versions
CN106934440A (zh
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.)
Zhuhai Tankard Image Technology Co Ltd
Original Assignee
Zhuhai Tankard Image Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Tankard Image Technology Co Ltd filed Critical Zhuhai Tankard Image Technology Co Ltd
Priority to CN201710148674.XA priority Critical patent/CN106934440B/zh
Publication of CN106934440A publication Critical patent/CN106934440A/zh
Priority to US15/723,213 priority patent/US10554851B2/en
Application granted granted Critical
Publication of CN106934440B publication Critical patent/CN106934440B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32154Transform domain methods
    • H04N1/32187Transform domain methods with selective or adaptive application of the additional information, e.g. in selected frequency coefficients
    • H04N1/32197Transform domain methods with selective or adaptive application of the additional information, e.g. in selected frequency coefficients according to the spatial domain characteristics of the transform domain components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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
    • G06K19/06037Record 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 multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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
    • G06K19/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1447Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32288Multiple embedding, e.g. cocktail embedding, or redundant embedding, e.g. repeating the additional information at a plurality of locations in the image
    • H04N1/32299Multiple embedding, e.g. cocktail embedding, or redundant embedding, e.g. repeating the additional information at a plurality of locations in the image using more than one embedding method
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32288Multiple embedding, e.g. cocktail embedding, or redundant embedding, e.g. repeating the additional information at a plurality of locations in the image
    • H04N1/32304Embedding different sets of additional information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N2201/3201Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N2201/3269Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title of machine readable codes or marks, e.g. bar codes or glyphs
    • H04N2201/327Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title of machine readable codes or marks, e.g. bar codes or glyphs which are undetectable to the naked eye, e.g. embedded codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本发明涉及一种编码信息中嵌入信息的方法和系统,该方法首先利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中,然后利用空域处理的方法将其叠加到要变码或固定码的印刷文件中。这样即可利用频域和空域变换将不被人眼觉察的信息嵌入至编码信息中,伪造难度极大、成本高,达到防伪防造目的,而且不增加印刷成本,有利于广泛推广、应用。

Description

一种编码信息中嵌入信息的方法和系统
技术领域
本发明属于编码信息技术领域,特别涉及一种编码信息中嵌入信息的方法和系统。
背景技术
编码信息诸如条形码、二维码等,一般印于商品包装上,一个商品赋予一个编码,可用于商家的商品价格管理/库存管理/串货管理等;若采取变码打印输出,实现一物一码,其应用面更可以扩大到:有奖销售、防伪、追溯、支付、互联网入口、手机客户端下载等等。
随着编码技术和网络技术、编码技术和印刷技术的融合,目前市场上已经可以见到彩码、三维码等,相信会有更多的应用被开发,并越来越成熟。但是现有的编码技术就是一种信息技术,无论其编码规则公开,还是封闭,传递的是信息和数据,可以是网页、价格、流水号等等;而现有的二维码,为了便于使用和读取信息,许多应用软件都有读取二维码的端口,比如QQ、微信和诸多的app。由于二维码所携带信息跳转页面的制作成本的低廉,使得造假成本极低,利用二维码传递病毒、虚假信息等,已经不再是新闻。
发明内容
为了解决现有技术中存在的上述技术问题,本发明提供了一种可利用频域和空域变换将不被人眼觉察的信息嵌入至编码信息中,伪造难度极大、成本高,且不增加印刷成本的方法,以及实现该编码信息中嵌入信息的方法的系统。
为解决上述技术问题,本发明采用如下技术方:
一种编码信息中嵌入信息的方法,首先利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中,然后利用空域处理的方法将其叠加到要变码或固定码的印刷文件中。
进一步地,所述“利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中”是指对虚拟图像依次进行灰度处理和频域处理;所述“利用空域处理的方法将其叠加到要变码或固定码的印刷文件中”是指将嵌入信息嵌入至经频域处理的虚拟图像中、进行频域反变换,进行空域处理嵌入到实际需嵌入的图像信息中。
进一步地,该编码信息中嵌入信息的方法,具体包括以下步骤:
a1.对RGB或CMY或CMKY虚拟图像A进行灰度变换,得到灰度变换后
的图像G;
a2.对灰度变换后的图像G进行频域变换,得到其振幅ampG;
a3.将嵌入信息按规则嵌入频域变换后的振幅ampG中;
a4.进行反变换得到嵌入信息的灰度图像G’,计算G’和G的差分
W’;
a5.生成二维码,该二维码为黑白二维码或彩色二维码,并将其转
换为所需分辨率的图像信息B;
a6.将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’,输出到数码打印机打印。
进一步地,所述“将嵌入信息按规则嵌入频域变换后的振幅ampG中”具体为,当嵌入信息为m比特的W,且第i位比特的信息W(i)为0或1,i=1,2,…,m时,按以下规则将每一位信息W(i)嵌入到灰度图像G的频域变换后的振幅ampG:
ampG(i)’=ampG(i)+X,当W(i)为1时;
ampG(i)’=ampG(i)–X,当W(i)为0时;
其中X为给定的正实数,i为嵌入信息的第i比特;
或者,
ampG(i)’=ampG(i)×(1+a),当W(i)为1时,
ampG(i)’=ampG(i)×(1-a),当W(i)为0时,
其中a为给定的小于1的正实数,i为第嵌入信息的第i比特。
进一步地,在利用空域处理的方法将加嵌入信息叠加到要变码或固定码的印刷文件中、打印出后,通过从采集的打印编码信息中抽取出嵌入信息,以确定编码信息表面信息是否可信。
进一步地,所述“从采集的打印编码信息中抽取出嵌入信息,以确定编码信息的表面信息是否可信”具体为:首先采集打印编码信息的图像信息,并对图像信息依次进行灰度变换和频域变换,然后按照一定规则从图像信息中抽取嵌入信息。
进一步地,所述“从采集的打印编码信息中抽取出嵌入信息,以确定编码信息的表面信息是否可信”具体包括以下步骤:
b1.采集打印编码信息的图像信息B2;
b2.对得到的RGB图像信息B2进行灰度变换,得到灰度变换后图像
信息GB2;
b3.对灰度变换后图像信息GB2进行频域变换,得到其振幅ampGB2;
b4.将振幅ampGB2与数据库中振幅ampG进行比对,得到共有m比特
的嵌入信息Wx,其中第i比特的信息为:
当ampGB2(i)>ampG(i)>=0,Wx(i)=1;
当ampGB2(i)>ampG(i)<0,Wx(i)=0;
b5.将嵌入信息Wx与数据库中嵌入信息W比对,以确定编码信息表面信息是否可信;
b6.对得到的RGB图像信息B2或灰度变换后图像信息GB2,进行二维
码读取,和数据库中的二维码信息做比对,以确定二维码信息是否
可信。
进一步地,在对得到的RGB图像信息B2进行灰度变换之前,还会对图像信息B2进行预处理,即根据图像信息B2的二维码定位点以确定校正参数,完成图像校正。
进一步地,所述嵌入信息W的m比特的0和1序列由信息直接转换组成,或者由加密或加校验码组成,或者和二维码信息结合而成。
一种编码信息中嵌入信息的系统,包括有处理器,
灰度变换模块,用于对RGB或CMY或CMKY虚拟图像A或RGB图像信息B2进行灰度变换,得到灰度变换后的图像G或图像信息GB2;
频域变换模块,用于对灰度变换后的图像G或图像信息GB2进行频域变换,得到其振幅部分:ampG或ampGB2;
信息嵌入模块,用于将嵌入信息按规则嵌入频域变换后的振幅ampG中;
二维码图像生成模块,用于生成一个给定信息的二维码,该二维码为黑白二维码或彩色二维码,并将其转换为所需分辨率的图像信息B;
空域变换模块,用于进行频域反变换得到嵌入信息的灰度图像G’,计算G’和G的差分W’,并将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’;
数据库,用于存储嵌入信息、二维码所对应的信息和灰度图像G的频域变换后的振幅ampG;
图像采集模块,用于采集打印编码信息的图像信息B2;
图像预处理模块,用对图像信息B2进行预处理、完成图像校正,得到校正后的图像B2’;
信息抽取及核对模块,用于对校正后的图像信息B2’进行信息的抽取和校对,并和数据库中的嵌入信息核对;
以及印刷设备;所述灰度变换模块、频域变换模块、信息嵌入模块、二维码图像生成模块、空域变换模块、数据库、图像采集模块、图像预处理模块、信息抽取及核对模块和印刷设备均与处理器导通连接。
本发明的有益效果是:
本发明通过采用上述技术方案,即可利用频域和空域变换将不被人眼觉察的信息嵌入至编码信息中,伪造难度极大、成本高,达到防伪防造目的,而且不增加印刷成本,有利于广泛推广、应用。
附图说明
下面结合附图与具体实施例对本发明作进一步说明:
图1是本发明所述编码信息中嵌入信息的方法实施例的流程示意图;
图2是本发明所述编码信息中嵌入信息的方法实施例中抽取嵌入信息的流程示意图;
图3是本发明所述编码信息中嵌入信息的系统实施例的结构原理示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。
如图1和图2中所示:
本发明实施例提供了一种编码信息中嵌入信息的方法,首先利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中,然后利用空域处理的方法将其叠加到要变码或固定码的印刷文件中。其中,所述“利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中”是指对虚拟图像依次进行灰度处理和频域处理;所述“利用空域处理的方法将其叠加到要变码或固定码的印刷文件中”是指将嵌入信息嵌入至经频域处理的虚拟图像中、进行反变换,进行空域处理嵌入到实际需嵌入的图像信息中。
本发明所述编码信息中嵌入信息的方法具体可以包括以下步骤:
步骤A1.对RGB或CMY或CMKY虚拟图像A进行灰度变换(如利用补色关系进行),得到灰度变换后的图像G,比如:图像G=0.299R+0.587G+0.114B;
步骤A2.对灰度变换后的图像G进行频域变换(如采用傅里叶变换、离散余弦变换等),得到其振幅ampG;
步骤A3.将嵌入信息按规则嵌入频域变换后的振幅ampG中;比如:当嵌入信息为m比特的W时,按以下规则将嵌入信息进行嵌入,即W(i)为第i位比特的信息,具体为0或1,而i=1,2,…,m时,按以下规则将每一位信息W(i)嵌入到灰度图像G的频域变换后的振幅ampG:
ampG(i)’=ampG(i)+X,当W(i)为1时;
ampG(i)’=ampG(i)–X,当W(i)为0时;
其中X为给定的正实数,i为第嵌入信息的第i比特;
或者,
ampG(i)’=ampG(i)×(1+a),当W(i)为1时,
ampG(i)’=ampG(i)×(1-a),当W(i)为0时,
其中a为给定的小于1的正实数,i为第嵌入信息的第i比特;
步骤A4.进行反变换得到嵌入信息的灰度图像G’,计算G’和G的差分W’;
步骤A5.生成二维码,该二维码为黑白二维码或彩色二维码(比如:生成QR码,其为黑白二维码,采用黑对已灰度50,白对应灰度200等。),并将其转换为所需分辨率的图像信息B;
步骤A6.将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’,输出到数码打印机打印。
而且,所述嵌入信息W的m比特的0和1序列由信息直接转换组成,或者由加密或加校验码组成,或者和二维码信息结合而成。比如:
所述嵌入信息W的m比特的0和1序列由信息直接转换组成:设嵌入信息为字符ABC,W信息可以对应010000010100001001000011;设嵌入信息为十进制65,W信息可以对应01000001;检测时,直接和数据库内的W比较即可。
所述嵌入信息W的m比特的0和1序列由加校验码组成:设嵌入信息为字符ABC,W信息可以对应010000010100001001000011xxxxxxxx;设嵌入信息为十进制65,W信息可以对应01000001yyyy,其中xxxxxxxx和yyyy为校验信息,每一位都是0或1的序列;检测时,与数据库内的W比较,且加以校验或解密,以确定是否有篡改。
所述嵌入信息W的m比特的0和1序列和二维码的哈希值结合:设嵌入信息为字符ABC,W信息可以对应010000010100001001000011xxxxxxxxhhhhhhhh;设嵌入信息为十进制65,W信息可以对应01000001yyyyhhhhhhhh其中xxxxxxxx和yyyy为校验信息,hhhhhhhh为二维码的哈希值,每一位都是0或1的序列;检测时,和数据库内的W比较,且加以校验,以确定是否篡改,再和读取到的二维码的哈希值比较,以确定是否有篡改,安全性提高。
其中,校验码x、y和哈希值h的比特长度,可以根据需要确定,比如8位、16位和32位等。
这样,通过本发明所述方法即可利用频域和空域变换将不被人眼觉察的信息嵌入至编码信息(二维码等变码或固定码)中,伪造难度极大、成本高,达到防伪防造目的,而且不增加印刷成本,有利于广泛推广、应用。
作为本发明一优选方案,在利用空域处理的方法将加嵌入信息叠加到要变码或固定码的印刷文件中、打印出后,通过从采集的打印编码信息中抽取出嵌入信息,以确定编码信息表面信息是否可信。其中,所述“从采集的打印编码信息中抽取出嵌入信息,以确定编码信息的表面信息是否可信”是指:首先采集打印编码信息的图像信息,并对图像信息依次进行灰度变换和频域变换,然后按照一定规则从图像信息中抽取嵌入信息;具体包括以下步骤(如图2):
步骤B1.采集打印编码信息的图像信息B2,比如:通过拍照、扫描等方式采集打印编码信息的图像信息;
步骤B2.对得到的RGB图像信息B2进行灰度变换,得到灰度变换后图像信息GB2,比如:图像信息GB2=0.299R+0.587G+0.114B;
步骤B3.对灰度变换后图像信息GB2进行频域变换,得到其振幅部分:ampGB2;
步骤B4.将振幅ampGB2与数据库中振幅ampG进行比对,得到共有m比特的嵌入信息Wx,其中第i比特即Wx(i)的信息为:
当ampGB2(i)>ampG(i)>=0,Wx(i)=1;
当ampGB2(i)>ampG(i)<0,Wx(i)=0;
步骤B5.将嵌入信息Wx与数据库中嵌入信息W比对,以确定编码信息表面信息是否可信;当嵌入信息Wx和数据库中嵌入信息W一致时,确定抽取得到了信息W,当读取不到嵌入信息Wx时,说明嵌入的信息受到损失,该打印编码信息的图像信息(二维码)不再可以完全信任;
步骤B6.对得到的RGB图像信息B2或灰度变换后图像信息GB2,进行二维码读取,和数据库中的二维码信息做比对,以确定二维码信息是否收到篡改或是否可信。
这样,即有效将不可信的打印编码信息排除掉,进一步确保产品编码信息的可信任性。
另外,在对得到的RGB图像信息B2进行灰度变换之前,还会对图像信息B2进行预处理,即根据图像信息B2的二维码定位点以确定校正参数(如旋转和倍率等参数),完成图像校正;提高打印编码信息的图像信息中嵌入信息的抽取准确度。
如图3所示,本发明还实施例提供了一种编码信息中嵌入信息的系统,包括有处理器1、灰度变换模块2、频域变换模块3、信息嵌入模块4、二维码图像生成模块5、空域变换模块6、数据库7、图像采集模块8、图像预处理模块9和印刷设备11。其中,所述灰度变换模块2主要用于对RGB或CMY或CMKY虚拟图像A或RGB图像信息B2进行灰度变换,得到灰度变换后的图像G或图像信息GB2;所述频域变换模块3主要用于对灰度变换后的图像G或图像信息GB2进行频域变换,得到其振幅ampG或ampGB2;所述信息嵌入模块4主要用于将嵌入信息按规则嵌入频域变换后的振幅ampG中;所述二维码图像生成模块5主要用于生成一个给定信息的二维码,该二维码为黑白二维码或彩色二维码,并将其转换为所需分辨率的图像信息B;所述空域变换模块6主要用于进行频域反变换得到嵌入信息的灰度图像G’,计算G’和G的差分W’,并将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’;所述数据库7主要用于存储嵌入信息、二维码所对应的信息和灰度图像G的频域变换后的振幅ampG;所述图像采集模块8主要用于采集打印编码信息的图像信息B2;所述图像预处理模块9主要用对图像信息B2进行预处理、完成图像校正,得到校正后的图像B2’;所述信息抽取及核对模块10主要用于对校正后的图像信息B2’进行信息的抽取和校对,并和数据库中的嵌入信息核对;而且灰度变换模块2、频域变换模块3、信息嵌入模块4、二维码图像生成模块5、空域变换模块6、数据库7、图像采集模块8、图像预处理模块9、信息抽取及核对模块10和印刷设备11均与处理器1导通连接。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (9)

1.一种编码信息中嵌入信息的方法,其特征在于:首先利用频域嵌入的方法将信息嵌入到一个可嵌入的灰度图像、RGB图像、CMY图像或者一个虚拟图像中,然后利用空域处理的方法将其叠加到要变码或固定码的印刷文件中;其中,所述“利用频域嵌入的方法将信息嵌入到一个可嵌入的图像或者一个虚拟图像中”是指对虚拟图像依次进行灰度处理和频域处理;所述“利用空域处理的方法将其叠加到要变码或固定码的印刷文件中”是指将嵌入信息嵌入至经频域处理的虚拟图像中、进行频域反变换,进行空域处理嵌入到实际需嵌入的图像信息中。
2.根据权利要求1所述编码信息中嵌入信息的方法,其特征在于:具体包括以下步骤:
a1.对RGB或CMY或CMKY虚拟图像A进行灰度变换,得到灰度变换后的图像G;
a2.对灰度变换后的图像G进行频域变换,得到其振幅ampG;
a3.将嵌入信息按规则嵌入频域变换后的振幅ampG中;
a4.进行频域反变换得到嵌入信息的灰度图像G’,计算G’和G的差分W’;
a5.生成一个给定信息的二维码,该二维码为黑白二维码或彩色二维码,并将其转换为所需分辨率的图像信息B;
a6.将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’,输出到数码打印机打印。
3.根据权利要求2所述编码信息中嵌入信息的方法,其特征在于:所述“将嵌入信息按规则嵌入频域变换后的振幅ampG中”具体为两个步骤:(1)对灰度变换后的图像G进行频域变换,得到其振幅信息ampG;(2)当嵌入信息为m比特的W,且第i位比特的信息W(i)为0或1,i=1,2,…,m时,按以下规则将每一位信息W(i)嵌入到灰度图像G的频域变换后的振幅ampG:
ampG(i)’=ampG(i)+X,当W(i)为1时;
ampG(i)’=ampG(i)–X,当W(i)为0时;
其中X为给定的正实数,i为第嵌入信息的第i比特;
或者,
ampG(i)’=ampG(i)×(1+a),当W(i)为1时,
ampG(i)’=ampG(i)×(1-a),当W(i)为0时,
其中a为给定的小于1的正实数,i为第嵌入信息的第i比特。
4.根据权利要求1或2或3所述编码信息中嵌入信息的方法,其特征在于:在利用空域处理的方法将加嵌入信息叠加到要变码或固定码的印刷文件中、打印出后,通过从采集的打印编码信息中抽取出嵌入信息,以确定编码信息表面信息是否可信。
5.根据权利要求4所述编码信息中嵌入信息的方法,其特征在于:所述“从采集的打印编码信息中抽取出嵌入信息,以确定编码信息的表面信息是否可信”具体为:首先采集打印编码信息的图像信息,并对图像信息依次进行灰度变换和频域变换,然后按照一定规则从图像信息中抽取嵌入信息。
6.根据权利要求5所述编码信息中嵌入信息的方法,其特征在于:所述“从采集的打印编码信息中抽取出嵌入信息,以确定编码信息的表面信息是否可信”具体包括以下步骤:
b1.采集打印编码信息的图像信息B2;
b2.对得到的RGB图像信息B2进行灰度变换,得到灰度变换后图像信息GB2;
b3.对灰度变换后图像信息GB2进行频域变换,得到其振幅ampGB2;
b4.将振幅ampGB2与数据库中振幅ampG进行比对,得到共有m比特的嵌入信息Wx,其中第i比特的信息为:
当ampGB2(i)>ampG(i)>=0,Wx(i)=1;
当ampGB2(i)>ampG(i)<0,Wx(i)=0;
b5.将m个比特的嵌入信息Wx与数据库中的m个比特的嵌入信息W比对,以确定编码信息表面信息是否可信;
b6.对得到的RGB图像信息B2或灰度变换后图像信息GB2,进行二维码读取,和数据库中的二维码信息做比对,以确定二维码信息是否可信。
7.根据权利要求6所述编码信息中嵌入信息的方法,其特征在于:在对得到的RGB图像信息B2进行灰度变换之前,还会对图像信息B2进行预处理,即根据图像信息B2的二维码定位点以确定校正参数,完成图像校正。
8.根据权利要求6所述编码信息中嵌入信息的方法,其特征在于:所述嵌入信息W的m比特的0和1序列由信息直接转换组成,或者由加密或加校验码组成,或者和二维码信息结合而成。
9.一种编码信息中嵌入信息的系统,其特征在于:包括有处理器(1),
灰度变换模块(2),用于对RGB或CMY或CMKY虚拟图像A或RGB图像信息B2进行灰度变换,得到灰度变换后的图像G或图像信息GB2;
频域变换模块(3),用于对灰度变换后的图像G或图像信息GB2进行频域变换,得到其振幅ampG或ampGB2;
信息嵌入模块(4),用于将嵌入信息按规则嵌入频域变换后的振幅ampG中;
二维码图像生成模块(5),用于生成一个给定信息的二维码,该二维码为黑白二维码或彩色二维码,并将其转换为所需分辨率的图像信息B;
空域变换模块(6),用于进行频域反变换得到嵌入信息的灰度图像G’,计算G’和G的差分W’,并将差分W’做空域处理嵌入到实际需嵌入的图像信息B中,得到嵌入信息的图像信息B’;
数据库(7),用于存储嵌入信息、二维码所对应的信息和灰度图像G的频域变换后的振幅ampG;
图像采集模块(8),用于采集打印编码信息的图像信息B2;
图像预处理模块(9),用对图像信息B2进行预处理、完成图像校正,得到校正后的图像B2’;
信息抽取及核对模块(10),用于对校正后的图像信息B2’进行信息的抽取和校对,并和数据库(7)中的嵌入信息核对;
以及印刷设备(11);所述灰度变换模块(2)、频域变换模块(3)、信息嵌入模块(4)、二维码图像生成模块(5)、空域变换模块(6)、数据库(7)、图像采集模块(8)、图像预处理模块(9)、信息抽取及核对模块(10)和印刷设备(11)均与处理器(1)导通连接。
CN201710148674.XA 2017-03-14 2017-03-14 一种编码信息中嵌入信息的方法和系统 Active CN106934440B (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710148674.XA CN106934440B (zh) 2017-03-14 2017-03-14 一种编码信息中嵌入信息的方法和系统
US15/723,213 US10554851B2 (en) 2017-03-14 2017-10-03 Method for determining whether printed encoding information is not falsified

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710148674.XA CN106934440B (zh) 2017-03-14 2017-03-14 一种编码信息中嵌入信息的方法和系统

Publications (2)

Publication Number Publication Date
CN106934440A CN106934440A (zh) 2017-07-07
CN106934440B true CN106934440B (zh) 2019-12-24

Family

ID=59433113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710148674.XA Active CN106934440B (zh) 2017-03-14 2017-03-14 一种编码信息中嵌入信息的方法和系统

Country Status (2)

Country Link
US (1) US10554851B2 (zh)
CN (1) CN106934440B (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900294B (zh) * 2018-06-11 2020-12-01 成都大象分形智能科技有限公司 涉及指定频段加密的神经网络模型加密保护系统及方法
CN109146370B (zh) * 2018-08-07 2021-08-10 景德镇陶瓷大学 一种利用定位拍摄对传送物品进行确认的方法
CN109840574B (zh) * 2019-01-16 2022-05-17 王诗会 一种二维码信息的隐藏方法、装置、电子设备及存储介质
CN113807861A (zh) * 2020-05-27 2021-12-17 阿里巴巴集团控股有限公司 票务数据处理方法、票务打印机、票务核验机及存储介质
CN112016655B (zh) * 2020-08-18 2022-10-28 杭州僖磊科技发展有限公司 一种可追溯扫描码印刷方法及系统

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123105A (zh) * 2013-04-25 2014-10-29 成都宇飞信息工程有限责任公司 印刷打印数字水印嵌入技术

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2269651A1 (en) * 1998-05-12 1999-11-12 Lucent Technologies, Inc. Transform domain image watermarking method and system
KR100378222B1 (ko) * 2001-04-21 2003-03-29 주식회사 마크애니 디지털 워터마크의 삽입 및 검출방법과 이를 이용한워터마크 삽입/검출 장치
US8509474B1 (en) * 2009-12-11 2013-08-13 Digimarc Corporation Digital watermarking methods, apparatus and systems
US9594983B2 (en) * 2013-08-02 2017-03-14 Digimarc Corporation Learning systems and methods

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123105A (zh) * 2013-04-25 2014-10-29 成都宇飞信息工程有限责任公司 印刷打印数字水印嵌入技术

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIPPS: Logistics Information Privacy Protection System Based on Encrypted QR Code;Xinwen Zhang;《2016 IEEE Trustcom/BigDataSE/ISPA》;20161231;第996-1000页 *
二维码与图像信息隐藏相结合的研究;殷颢玻;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170215(第02期);第3章第3.2.2节,第4章第4.4节 *

Also Published As

Publication number Publication date
US20180268271A1 (en) 2018-09-20
US10554851B2 (en) 2020-02-04
CN106934440A (zh) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106934440B (zh) 一种编码信息中嵌入信息的方法和系统
Tkachenko et al. Two-level QR code for private message sharing and document authentication
CN105471575B (zh) 一种信息加密、解密方法及装置
CN102037676B (zh) 基于不可克隆特征的安全物品识别以及认证系统和方法
CN111784556B (zh) 在图像中添加数字水印的方法、装置、终端及存储介质
US9800408B2 (en) Method of generating secure tokens and transmission based on (TRNG) generated tokens and split into shares and the system thereof
CN110766594B (zh) 信息隐藏方法及装置、检测方法、装置及防伪溯源方法
AU2020104204A4 (en) A method and a device for generating a digital watermark image based on graphic codes
Raj et al. A survey on fragile watermarking based image authentication schemes
CN105701757B (zh) 基于数字水印和图形码的产品防伪方法及装置
CN109816077A (zh) 一种二维码信息的隐藏方法、装置、电子设备及存储介质
Kim et al. Secure medical images based on data hiding using a hybrid scheme with the Hamming code, LSB, and OPAP
CN106934756B (zh) 一种单色或专色图中嵌入信息的方法和系统
Pal et al. Robust watermarking scheme for tamper detection and authentication exploiting CA
Thomas et al. Multilevel Authentication using QR code based watermarking with mobile OTP and Hadamard transformation
Sinhal et al. Multipurpose image watermarking: ownership check, tamper detection and self-recovery
Kang et al. An SVD-based fragile watermarking scheme with grouped blocks
Huang et al. Sudoku-based secret sharing approach with cheater prevention using QR code
CN114461988A (zh) 图像加密方法以及装置、图像解密方法以及装置
US10740666B2 (en) Two-dimensional cryptographic poly-chromatic poly-digital code
CN115526282A (zh) 水印加密方法、水印提取方法、装置及存储介质
CN109840574B (zh) 一种二维码信息的隐藏方法、装置、电子设备及存储介质
CN114330621A (zh) 一种基于标识信息的二维码防伪方法、装置、存储介质
Mantoro et al. Real-time printed document authentication using watermarked qr code
Erlangga et al. Increasing Secret Data Hiding Capacity in QR Code Using Subcells

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