WO2018010118A1 - 一种数字视频内容安全认证的方法及其*** - Google Patents

一种数字视频内容安全认证的方法及其*** Download PDF

Info

Publication number
WO2018010118A1
WO2018010118A1 PCT/CN2016/089897 CN2016089897W WO2018010118A1 WO 2018010118 A1 WO2018010118 A1 WO 2018010118A1 CN 2016089897 W CN2016089897 W CN 2016089897W WO 2018010118 A1 WO2018010118 A1 WO 2018010118A1
Authority
WO
WIPO (PCT)
Prior art keywords
digital video
secret information
gray value
key
image
Prior art date
Application number
PCT/CN2016/089897
Other languages
English (en)
French (fr)
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
Application filed by 深圳大学 filed Critical 深圳大学
Priority to PCT/CN2016/089897 priority Critical patent/WO2018010118A1/zh
Priority to US15/571,857 priority patent/US10354353B2/en
Priority to JP2018513836A priority patent/JP6543764B2/ja
Publication of WO2018010118A1 publication Critical patent/WO2018010118A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0028Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0051Embedding of the watermark in the spatial domain
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0061Embedding of the watermark in each block of the image, e.g. segmented watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0065Extraction of an embedded watermark; Reliable detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark

Definitions

  • the present invention relates to the field of multimedia content security technologies, and in particular, to a method and system for secure authentication of digital video content.
  • an object of the present invention is to provide a method and system for secure authentication of digital video content, which aims to solve the problem that the security authentication for digital video content in the prior art affects the user experience and the authentication method is complex, concealed and vulnerable. Poor sex.
  • the invention provides a method for secure authentication of digital video content, characterized in that the method comprises:
  • Secret information embedding step selecting one pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information;
  • Secret information extraction and video authentication steps secret information extraction is performed from a digital video embedded with secret information according to a key to implement secure authentication of digital video content.
  • the secret information embedding step specifically includes:
  • Reading each frame image I(j) of the digital video V in sequence, wherein j 0, 1, . . . , t-1, t represents the total number of frames of the digital video V;
  • Acquire one frame of image in the read digital video V determine the size of the frame image and record it as m ⁇ n, where m represents the number of rows of the frame image, n represents the number of columns of the frame image, each pixel in the frame image has a coordinate, and the coordinates of the pixel position in the lower left corner are (0, 0), upper right The coordinates of the angular pixel position are (m-1, n-1);
  • the secret information embedding process After traversing all the frame images in the digital video V and embedding the secret bit information in sequence, the secret information embedding process is terminated, and the digital video V' containing the secret information is acquired.
  • the step of completing the embedding of the 1-bit secret information according to the value of the bit information w(ss) and the parity of the number of elements H(tt) specifically includes:
  • the secret information extraction and video authentication steps specifically include:
  • Selecting the gray value in the image block to be authenticated B'(tt) is not less than the mean value of the gray value mean'(tt)
  • the pixels are grouped into a set H'_set, and the number of elements H'(tt) in the set H'_set is calculated;
  • the extracted secret bit string w is subjected to bit string restoration and secret information restoration according to the key model, and then the content of the digital video is falsified according to the restored secret information to implement secure authentication of the digital video content.
  • the present invention also provides a system for secure authentication of digital video content, the system comprising:
  • a secret information embedding module configured to modify a pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information
  • the secret information extraction and video authentication module is configured to perform secret information extraction from the digital video embedded with the secret information according to the key to implement secure authentication of the digital video content.
  • the secret information embedding module is specifically configured to:
  • Reading each frame image I(j) of the digital video V in sequence, wherein j 0, 1, . . . , t-1, t represents the total number of frames of the digital video V;
  • the secret information embedding process After traversing all the frame images in the digital video V and embedding the secret bit information in sequence, the secret information embedding process is terminated, and the digital video V' containing the secret information is acquired.
  • the secret information extraction and video authentication module is specifically configured to:
  • the extracted secret bit string w is subjected to bit string restoration and secret information restoration according to the key model, and then the content of the digital video is falsified according to the restored secret information to implement secure authentication of the digital video content.
  • the technical solution provided by the present invention fully utilizes digital video as a carrier, and determines a secret image block to hide secret information for authentication in a frame image of a digital video according to a key and a hash function.
  • the method only needs to change the gray level of one pixel.
  • the value can complete the embedding of 1-bit secret information, which is difficult to be perceived, does not affect the user experience, and is extremely secure, and the distortion caused to the digital video is also as small as possible, and has better vulnerability. Secure authentication of the authenticity and integrity of digital video content.
  • FIG. 1 is a flowchart of a method for digital video content security authentication according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing the internal structure of a system 10 for digital video content security authentication according to an embodiment of the present invention.
  • a specific embodiment of the present invention provides a method for secure authentication of digital video content, wherein the method mainly includes the following steps:
  • S11 Secret information embedding step: selecting one pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information;
  • secret information extraction and video authentication step secret information is extracted from the digital video embedded with the secret information according to the key to implement secure authentication of the digital video content.
  • the method for secure authentication of digital video content fully utilizes digital video as a carrier, and determines a secret image block to hide secret information for authentication according to a key and a hash function in a frame image of the digital video. It is necessary to change the gray value of one pixel to complete the embedding of 1-bit secret information, which is difficult to be perceived, does not affect the user experience, and is extremely safe, and the distortion caused to the digital video is also as small as possible. Better vulnerability, which enables secure authentication of the authenticity and integrity of digital video content.
  • a method for secure authentication of digital video content provided by the present invention will be described in detail below.
  • FIG. 1 is a flowchart of a method for digital video content security authentication according to an embodiment of the present invention.
  • step S11 the secret information embedding step: selecting one pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information.
  • the secret information embedding step S11 specifically includes 12 sub-steps of S1101-S1112, as follows:
  • a frame image is arbitrarily acquired in the read digital video V, and the size of the frame image is determined and recorded as m ⁇ n, where m represents the number of rows of the frame image, and n represents the frame image.
  • the number of columns, each pixel in the frame image has a coordinate, the coordinates of the pixel position in the lower left corner are (0, 0), and the coordinates of the pixel position in the upper right corner are (m-1, n-1);
  • bit information w(ss) in the bit sequence is read
  • the selected image block B(tt) selected in the frame image I(tt) is read, and the coordinates of the lower left corner of the selected image block B(tt) are (x, y), the upper right corner.
  • the gradation value mean value (tt) of each pixel point in the selected image block B(tt) is calculated; in this embodiment, Where p(i,j) represents the gray value of the pixel at the position of (i,j) in the frame image, and if the selected image block B(tt) is a color image, the green value of the pixel at the position of the color image (ie, G) Value) is calculated as a gray value;
  • sub-step S1109 the pixel points in the selected image block B(tt) whose gray value is smaller than the mean value of the gray value mean(tt) are selected to form a set L_set, and the pixel with the largest gray value in the set L_set is calculated.
  • Corresponding position coordinates (Lx, Ly) and corresponding gray value L_v p (Lx, Ly);
  • the sub-step S1110 the embedding of the 1-bit secret information is completed according to the value of the bit information w(ss) and the parity of the number of elements H(tt).
  • the sub-step S1110 specifically includes:
  • sub-step S1112 after traversing all the frame images in the digital video V, the secret bit information is sequentially embedded, the secret information embedding process is terminated, and the digital video V' containing the secret information is acquired.
  • step S12 secret information extraction from the digital video embedded with the secret information according to the key to achieve secure authentication of the digital video content.
  • the secret information extraction and video authentication step S12 specifically includes 12 sub-steps of S1201-S1212, as follows:
  • one frame image is arbitrarily acquired in the read digital video V', and the size of the frame image is determined and recorded as m' ⁇ n', where m' represents the number of rows of the frame image, n 'Represents the number of columns of the frame image, and sequentially determines the position coordinates of each pixel in the frame image.
  • the coordinates of the pixel position in the lower left corner are (0, 0), and the coordinates of the pixel position in the upper right corner are (m'-1, n). '-1);
  • calculating a gray value mean value mean'(tt) of each pixel point in the image block B'(tt) to be authenticated in this embodiment, Where p(i,j) represents the gray value of the pixel at the position of (i,j) in the frame image, and if the selected image block B(tt) is a color image, the green value of the pixel at the position of the color image (ie, G) Value) is calculated as a gray value;
  • sub-step S1206 the pixel points of the to-be-authenticated image block B'(tt) whose gray value is not less than the gray value mean value mean'(tt) are selected to form a set H'_set, and the set H'_set is calculated. Number of elements H'(tt);
  • " indicates string concatenation, and if tt+1 ⁇ t', then tt tt +1, and jump to sub-step S1204;
  • sub-step S1211 traversing all the frame images in the digital video V' to be authenticated, extracting the secret bit string w;
  • sub-step S1212 the extracted secret bit string w is subjected to bit string restoration and secret information restoration according to the key model, and then the content of the digital video is falsified according to the restored secret information to realize digital video. Content security certification.
  • the method for secure authentication of digital video content fully utilizes digital video as a carrier, and determines a secret image block to hide secret information for authentication according to a key and a hash function in a frame image of the digital video. It is necessary to change the gray value of one pixel to complete the embedding of 1-bit secret information, which is difficult to be perceived, does not affect the user experience, and is extremely safe, and the distortion caused to the digital video is also as small as possible. Better vulnerability, which enables secure authentication of the authenticity and integrity of digital video content.
  • a specific embodiment of the present invention further provides a system 10 for digital video content security authentication, the main package include:
  • the secret information embedding module 11 is configured to: modulate one pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information;
  • the secret information extraction and video authentication module 12 is configured to perform secret information extraction from the digital video embedded with the secret information according to the key to implement secure authentication of the digital video content.
  • the system 10 for digital video content security authentication uses digital video as a carrier to determine a secret image block to hide secret information for authentication according to a key and a hash function in a frame image of a digital video. It only needs to change the gray value of one pixel to complete the embedding of 1-bit secret information, which is difficult to be perceived, does not affect the user experience, and is extremely safe, and the distortion caused to digital video is also as small as possible. It has better vulnerability, which enables secure authentication of the authenticity and integrity of digital video content.
  • FIG. 2 a schematic structural diagram of a system 10 for digital video content security authentication according to an embodiment of the present invention is shown.
  • the system 10 for digital video content security authentication mainly includes a secret information embedding module 11, a secret information extraction, and a video authentication module 12.
  • the secret information embedding module 11 is configured to modify one pixel gray value for each frame image in the digital video to complete embedding of 1-bit secret information.
  • the secret information embedding module 11 is specifically configured to:
  • Reading each frame image I(j) of the digital video V in sequence, wherein j 0, 1, . . . , t-1, t represents the total number of frames of the digital video V;
  • the secret information embedding process After traversing all the frame images in the digital video V and embedding the secret bit information in sequence, the secret information embedding process is terminated, and the digital video V' containing the secret information is acquired.
  • the specific processing flow of the secret information embedding module 11 is as shown in the foregoing step S11, and the description thereof will not be repeated here.
  • the secret information extraction and video authentication module 12 is configured to perform secret information extraction from the digital video embedded with the secret information according to the key to implement secure authentication of the digital video content.
  • the secret information extraction and video authentication module 12 is specifically configured to:
  • the extracted secret bit string w is subjected to bit string restoration and secret information restoration according to the key model, and then the content of the digital video is falsified according to the restored secret information to implement secure authentication of the digital video content.
  • the specific processing flow of the secret information extraction and video authentication module 12 is as shown in the foregoing step S12, and the description thereof will not be repeated here.
  • the system 10 for digital video content security authentication uses digital video as a carrier to determine a secret image block to hide secret information for authentication according to a key and a hash function in a frame image of a digital video. It only needs to change the gray value of one pixel to complete the embedding of 1-bit secret information, which is difficult to be perceived, does not affect the user experience, and is extremely safe, and the distortion caused to digital video is also as small as possible. It has better vulnerability, which enables secure authentication of the authenticity and integrity of digital video content.
  • each unit included is only mapped according to functional logic.
  • the divisions are not limited to the above-described divisions, as long as the corresponding functions can be implemented; in addition, the specific names of the respective functional units are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present invention.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本发明提供一种数字视频内容安全认证的方法,其中,所述方法包括:秘密信息嵌入步骤:对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;秘密信息提取和视频认证步骤:根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。本发明还提供一种数字视频内容安全认证的***。本发明提供的技术方案能在不影响用户体验的基础上提高认证的安全性。

Description

一种数字视频内容安全认证的方法及其*** 技术领域
本发明涉及多媒体内容安全技术领域,尤其涉及一种数字视频内容安全认证的方法及其***。
背景技术
随着互联网、移动互联网和多媒体技术的飞速发展,数字视频的采集、处理和传播变得越来越便利,但数字视频内容所反映客观场景的真实性和完整性越来越受到学者、社会和政府的重视,对这些数字视频进行内容的安全认证和鉴别的重要性已不仅仅局限于多媒体内容安全问题,而且还关系到社会的和谐稳定、社会公信力、司法公正等社会问题。
然而,目前对数字视频的内容认证的方法大多对数字视频本身有一定的破坏,影响用户对数字视频的欣赏,且方法较为复杂,隐蔽性和脆弱性较差。
发明内容
有鉴于此,本发明的目的在于提供一种数字视频内容安全认证的方法及其***,旨在解决现有技术中针对数字视频内容进行安全认证存在影响用户体验以及认证方法复杂且隐蔽性和脆弱性较差的问题。
本发明提出一种数字视频内容安全认证的方法,其特征在于,所述方法包括:
秘密信息嵌入步骤:对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
秘密信息提取和视频认证步骤:根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
优选的,所述秘密信息嵌入步骤具体包括:
依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为 m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和n1作为密钥key2;
设置tt=0,ss=0;
读取比特序列中的比特信息w(ss);
读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_keymod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);
选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);
选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值L_v=p(Lx,Ly);
根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;
计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
优选的,所述根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入的步骤具体包括:
如果元素个数H(tt)=half_m×half_n,则不对所述选取图像块做秘密信息嵌入操作;
否则,如果w(ss)=0且H(tt)为偶数时,或者w(ss)=1且H(tt)为奇数时,则不对所述选取图像块B(tt)做任何操作即完成1比特秘密信息的嵌入;
否则,如果w(ss)=0且H(tt)=1,则使得p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly);
否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly)。
优选的,所述秘密信息提取和视频认证步骤具体包括:
依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m'-1,n'-1);
设置tt=0,w=“”;
读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m',0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n'=Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);
选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt) 的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;
否则,如果H'(tt)为偶数,则w=w||"0",这里“||”表示字符串拼接;
否则,如果H'(tt)为奇数,则w=w||"1",这里“||”表示字符串拼接;
如果tt+1<t',则tt=tt+1;
遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
另一方面,本发明还提供一种数字视频内容安全认证的***,所述***包括:
秘密信息嵌入模块,用于对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
秘密信息提取和视频认证模块,用于根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
优选的,所述秘密信息嵌入模块具体用于:
依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和n1作为密钥key2;
设置tt=0,ss=0;
读取比特序列中的比特信息w(ss);
读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_key mod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);
选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);
选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值L_v=p(Lx,Ly);
根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;
计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
优选的,所述秘密信息提取和视频认证模块具体用于:
依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m'-1,n'-1);
设置tt=0,w=“”;
读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m', 0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n'=Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);
选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt)的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;
否则,如果H'(tt)为偶数,则w=w||"0",这里“||”表示字符串拼接;
否则,如果H'(tt)为奇数,则w=w||"1",这里“||”表示字符串拼接;
如果tt+1<t',则tt=tt+1;
遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
本发明提供的技术方案充分利用数字视频作为载体,根据密钥和哈希函数在数字视频的帧图像中确定一个秘密图像块隐藏用于认证的秘密信息,该方法仅需要改动一个像素的灰度值即可完成1比特秘密信息的嵌入,难以被感知,不会影响用户的体验,而且安全性极高,并且对数字视频造成的失真也尽可能的小,还具有较好的脆弱性,从而可实现对数字视频内容的真实性和完整性进行安全认证。
附图说明
图1为本发明一实施方式中数字视频内容安全认证的方法流程图;
图2为本发明一实施方式中数字视频内容安全认证的***10的内部结构示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用 以解释本发明,并不用于限定本发明。
本发明具体实施方式提供了一种数字视频内容安全认证的方法,其中,所述方法主要包括如下步骤:
S11、秘密信息嵌入步骤:对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
S12、秘密信息提取和视频认证步骤:根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
本发明提供的一种数字视频内容安全认证的方法充分利用数字视频作为载体,根据密钥和哈希函数在数字视频的帧图像中确定一个秘密图像块隐藏用于认证的秘密信息,该方法仅需要改动一个像素的灰度值即可完成1比特秘密信息的嵌入,难以被感知,不会影响用户的体验,而且安全性极高,并且对数字视频造成的失真也尽可能的小,还具有较好的脆弱性,从而可实现对数字视频内容的真实性和完整性进行安全认证。
以下将对本发明所提供的一种数字视频内容安全认证的方法进行详细说明。
请参阅图1,为本发明一实施方式中数字视频内容安全认证的方法流程图。
在步骤S11中,秘密信息嵌入步骤:对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入。
在本实施方式中,秘密信息嵌入步骤S11具体包括S1101-S1112这12个子步骤,如下所示:
在子步骤S1101中,依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
在子步骤S1102中,在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
在子步骤S1103中,将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和 n1作为密钥key2;
在子步骤S1104中,设置tt=0,ss=0;
在子步骤S1105中,读取比特序列中的比特信息w(ss);
在子步骤S1106中,读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_key mod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
在子步骤S1107中,计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);在本实施方式中,
Figure PCTCN2016089897-appb-000001
其中p(i,j)表示帧图像中(i,j)位置处的像素灰度值,若选取图像块B(tt)是彩色图像,则将彩色图像该位置像素点的绿色值(即G值)作为灰度值计算;
在子步骤S1108中,选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);在本实施方式中,如果不止一个像素点灰度值最小,则随机选取一个即可;
在子步骤S1109中,选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值L_v=p(Lx,Ly);
在子步骤S1110中,根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;在本实施方式中,子步骤S1110具体包括:
如果元素个数H(tt)=half_m×half_n,则不对所述选取图像块做秘密信息嵌入操作;
否则,如果w(ss)=0且H(tt)为偶数时,或者w(ss)=1且H(tt)为奇数时,则不对所述选取图像块B(tt)做任何操作即完成1比特秘密信息的嵌入;
否则,如果w(ss)=0且H(tt)=1,则使得p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly);
否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly)。
在子步骤S1111中,计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
在子步骤S1112中,遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
在步骤S12中,秘密信息提取和视频认证步骤:根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
在本实施方式中,秘密信息提取和视频认证步骤S12具体包括S1201-S1212这12个子步骤,如下所示:
在子步骤S1201中,依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
在子步骤S1202中,在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m'-1,n'-1);
在子步骤S1203中,设置tt=0,w=“”;
在子步骤S1204中,读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m',0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n'=Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;在本实施方式中,根据秘钥key1和哈希函数(如MD5)计算V_key=MD5(key) 的值;
在子步骤S1205中,计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);在本实施方式中,
Figure PCTCN2016089897-appb-000002
其中p(i,j)表示帧图像中(i,j)位置处的像素灰度值,若选取图像块B(tt)是彩色图像,则将彩色图像该位置像素点的绿色值(即G值)作为灰度值计算;
在子步骤S1206中,选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt)的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
在子步骤S1207中,如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;在本实施方式中,此时如果tt+1<t',则tt=tt+1,并跳转至子步骤S1204,否则,跳转至子步骤S1211;
在子步骤S1208中,否则,如果H'(tt)为偶数,则w=w||"0",,这里“||”表示字符串拼接,如果tt+1<t',则tt=tt+1,并跳转至子步骤S1204;
在子步骤S1209中,否则,如果H'(tt)为奇数,则w=w||"1",,这里“||”表示字符串拼接,如果tt+1<t',则tt=tt+1,并跳转至子步骤S1204;
在子步骤S1210中,如果tt+1<t',则tt=tt+1;
在子步骤S1211中,遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
在子步骤S1212中,根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
本发明提供的一种数字视频内容安全认证的方法充分利用数字视频作为载体,根据密钥和哈希函数在数字视频的帧图像中确定一个秘密图像块隐藏用于认证的秘密信息,该方法仅需要改动一个像素的灰度值即可完成1比特秘密信息的嵌入,难以被感知,不会影响用户的体验,而且安全性极高,并且对数字视频造成的失真也尽可能的小,还具有较好的脆弱性,从而可实现对数字视频内容的真实性和完整性进行安全认证。
本发明具体实施方式还提供一种数字视频内容安全认证的***10,主要包 括:
秘密信息嵌入模块11,用于对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
秘密信息提取和视频认证模块12,用于根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
本发明提供的一种数字视频内容安全认证的***10,利用数字视频作为载体,根据密钥和哈希函数在数字视频的帧图像中确定一个秘密图像块隐藏用于认证的秘密信息,该方法仅需要改动一个像素的灰度值即可完成1比特秘密信息的嵌入,难以被感知,不会影响用户的体验,而且安全性极高,并且对数字视频造成的失真也尽可能的小,还具有较好的脆弱性,从而可实现对数字视频内容的真实性和完整性进行安全认证。
请参阅图2,所示为本发明一实施方式中数字视频内容安全认证的***10的结构示意图。
在本实施方式中,数字视频内容安全认证的***10,主要包括秘密信息嵌入模块11、秘密信息提取和视频认证模块12。
秘密信息嵌入模块11,用于对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入。
在本实施方式中,所述秘密信息嵌入模块11具体用于:
依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和n1作为密钥key2;
设置tt=0,ss=0;
读取比特序列中的比特信息w(ss);
读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_key mod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);
选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);
选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值L_v=p(Lx,Ly);
根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;
计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
在本实施方式中,秘密信息嵌入模块11的具体处理流程如前述的步骤S11所示,在此就不做重复描述。
秘密信息提取和视频认证模块12,用于根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
在本实施方式中,所述秘密信息提取和视频认证模块12具体用于:
依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右 上角像素位置的坐标为(m'-1,n'-1);
设置tt=0,w=“”;
读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m',0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n'=Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);
选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt)的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;
否则,如果H'(tt)为偶数,则w=w||"0",这里“||”表示字符串拼接;
否则,如果H'(tt)为奇数,则w=w||"1",这里“||”表示字符串拼接;
如果tt+1<t',则tt=tt+1;
遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
在本实施方式中,秘密信息提取和视频认证模块12的具体处理流程如前述的步骤S12所示,在此就不做重复描述。
本发明提供的一种数字视频内容安全认证的***10,利用数字视频作为载体,根据密钥和哈希函数在数字视频的帧图像中确定一个秘密图像块隐藏用于认证的秘密信息,该方法仅需要改动一个像素的灰度值即可完成1比特秘密信息的嵌入,难以被感知,不会影响用户的体验,而且安全性极高,并且对数字视频造成的失真也尽可能的小,还具有较好的脆弱性,从而可实现对数字视频内容的真实性和完整性进行安全认证。
值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划 分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (7)

  1. 一种数字视频内容安全认证的方法,其特征在于,所述方法包括:
    秘密信息嵌入步骤:对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
    秘密信息提取和视频认证步骤:根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
  2. 如权利要求1所述的数字视频内容安全认证的方法,其特征在于,所述秘密信息嵌入步骤具体包括:
    依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
    在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
    将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和n1作为密钥key2;
    设置tt=0,ss=0;
    读取比特序列中的比特信息w(ss);
    读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_key mod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
    计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);
    选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);
    选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值 L_v=p(Lx,Ly);
    根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;
    计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
    遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
  3. 如权利要求2所述的数字视频内容安全认证的方法,其特征在于,所述根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入的步骤具体包括:
    如果元素个数H(tt)=half_m×half_n,则不对所述选取图像块做秘密信息嵌入操作;
    否则,如果w(ss)=0且H(tt)为偶数时,或者w(ss)=1且H(tt)为奇数时,则不对所述选取图像块B(tt)做任何操作即完成1比特秘密信息的嵌入;
    否则,如果w(ss)=0且H(tt)=1,则使得p(Lx,Ly)=p(Hx,Hy);
    否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly);
    否则,如果w(ss)=0,H(tt)为奇数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
    否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)>mean(tt)-L_v时,则p(Lx,Ly)=p(Hx,Hy);
    否则,如果w(ss)=1,H(tt)为偶数,且H_v-mean(tt)≤mean(tt)-L_v时,则p(Hx,Hy)=p(Lx,Ly)。
  4. 如权利要求1所述的数字视频内容安全认证的方法,其特征在于,所述秘密信息提取和视频认证步骤具体包括:
    依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
    在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m'-1,n'-1);
    设置tt=0,w=“”;
    读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m',0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n' =Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
    计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);
    选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt)的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
    如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;
    否则,如果H'(tt)为偶数,则w=w||"0",这里“||”表示字符串拼接;
    否则,如果H'(tt)为奇数,则w=w||"1",这里“||”表示字符串拼接;
    如果tt+1<t',则tt=tt+1;
    遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
    根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
  5. 一种数字视频内容安全认证的***,其特征在于,所述***包括:
    秘密信息嵌入模块,用于对数字视频中的每一幅帧图像选择修改一个像素灰度值以完成1比特秘密信息的嵌入;
    秘密信息提取和视频认证模块,用于根据密钥从嵌入了秘密信息的数字视频进行秘密信息提取以实现对数字视频内容安全的认证。
  6. 如权利要求5所述的数字视频内容安全认证的***,其特征在于,所述秘密信息嵌入模块具体用于:
    依次按帧读取数字视频V中的每一幅帧图像I(j),其中,j=0,1,…,t-1,t表示数字视频V的总帧数;
    在读取到的数字视频V中任意获取一帧图像,确定该帧图像的大小并记为m×n,其中,m表示该帧图像的行数,n表示该帧图像的列数,该帧图像中每一个像素都有一个坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m-1,n-1);
    将待嵌入的秘密信息转换为比特序列w(i),i=0,1,…,s-1,若所述秘密信息是一个字符串,则用m1表示字符串的长度,作为密钥key2,若所述秘密信息是一个二值图像,则对二值图像进行光栅扫描获得比特序列,比特序列大小s=m1×n1,其中m1和n1分别表示二值图像的行数和列数,此时m1和n1作为密钥key2;
    设置tt=0,ss=0;
    读取比特序列中的比特信息w(ss);
    读取帧图像I(tt)中所选取得到的选取图像块B(tt),该选取图像块B(tt)的左下角位置坐 标为(x,y),右上角位置坐标为(x-1+half_m,y-1+half_n),该选取图像块B(tt)的大小为half_m×half_n,其中,0≤x<half_m,0≤y<half_n,x=V_key mod half_m,y=V_key mod half_n,V_key=MD5(key1),half_m=Trunc(m/2),half_n=Trunc(n/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
    计算所述选取图像块B(tt)中各像素点的灰度值均值mean(tt);
    选取所述选取图像块B(tt)中灰度值不小于所述灰度值均值mean(tt)的像素点组成集合H_set,计算集合H_set中的元素个数H(tt),并计算出集合H_set中灰度值最小的像素点对应的位置坐标(Hx,Hy)和对应的灰度值H_v=p(Hx,Hy);
    选取所述选取图像块B(tt)中灰度值小于所述灰度值均值mean(tt)的像素点组成集合L_set,计算出集合L_set中灰度值最大的像素点对应的位置坐标(Lx,Ly)和对应的灰度值L_v=p(Lx,Ly);
    根据所述比特信息w(ss)的值以及元素个数H(tt)的奇偶性来完成1比特秘密信息的嵌入;
    计算ss=(ss+1)mod s,如果tt+1<t,则tt=tt+1;
    遍历数字视频V中的所有帧图像,依次嵌入秘密比特信息后,秘密信息嵌入过程终止,获取含秘密信息的数字视频V'。
  7. 如权利要求5所述的数字视频内容安全认证的***,其特征在于,所述秘密信息提取和视频认证模块具体用于:
    依次按帧读取待认证的数字视频V'中的每一幅帧图像I'(j),其中,j=0,1,…,t'-1,t'表示数字视频V'的总帧数;
    在读取到的数字视频V'中任意获取一帧图像,确定该帧图像的大小并记为m'×n',其中,m'表示该帧图像的行数,n'表示该帧图像的列数,并依次确定该帧图像中每一个像素的位置坐标,左下角像素位置的坐标为(0,0),右上角像素位置的坐标为(m'-1,n'-1);
    设置tt=0,w=“”;
    读取帧图像I'(tt)中所选取得到的待认证图像块B'(tt),该待认证图像块B'(tt)的左下角位置坐标为(x,y),右上角位置坐标为(x-1+half_m',y-1+half_n'),该待认证图像块B'(tt)的大小为half_m'×half_n',其中,0≤x<half_m',0≤y<half_n',x=V_key mod half_m',y=V_key mod half_n',其中,V_key=MD5(key1),half_m'=Trunc(m'/2),half_n'=Trunc(n'/2),key1为密钥,MD5为哈希函数,Trunc()为截尾取整函数,mod为取模函数;
    计算所述待认证图像块B'(tt)中各像素点的灰度值均值mean'(tt);
    选取所述待认证图像块B'(tt)中灰度值不小于所述灰度值均值mean'(tt)的像素点组成集合H'_set,计算集合H'_set中的元素个数H'(tt);
    如果H'(tt)=half_m'×half_n',则不对该待认证图像块B'(tt)做提取操作;
    否则,如果H'(tt)为偶数,则w=w||"0",这里“||”表示字符串拼接;
    否则,如果H'(tt)为奇数,则w=w||"1",这里“||”表示字符串拼接;
    如果tt+1<t',则tt=tt+1;
    遍历待认证的数字视频V'中所有的帧图像,提取出秘密比特字符串w;
    根据密钥key2将提取的秘密比特字符串w通过表决模型进行比特串还原和秘密信息还原,再根据还原的秘密信息判断该数字视频的内容是否被篡改从而实现对数字视频内容安全的认证。
PCT/CN2016/089897 2016-07-13 2016-07-13 一种数字视频内容安全认证的方法及其*** WO2018010118A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2016/089897 WO2018010118A1 (zh) 2016-07-13 2016-07-13 一种数字视频内容安全认证的方法及其***
US15/571,857 US10354353B2 (en) 2016-07-13 2016-07-13 Digital video content security authentication method and system
JP2018513836A JP6543764B2 (ja) 2016-07-13 2016-07-13 デジタルビデオコンテンツのセキュリティ認証方法及びそのシステム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/089897 WO2018010118A1 (zh) 2016-07-13 2016-07-13 一种数字视频内容安全认证的方法及其***

Publications (1)

Publication Number Publication Date
WO2018010118A1 true WO2018010118A1 (zh) 2018-01-18

Family

ID=60951640

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089897 WO2018010118A1 (zh) 2016-07-13 2016-07-13 一种数字视频内容安全认证的方法及其***

Country Status (3)

Country Link
US (1) US10354353B2 (zh)
JP (1) JP6543764B2 (zh)
WO (1) WO2018010118A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11770260B1 (en) 2019-03-28 2023-09-26 Amazon Technologies, Inc. Determining authenticity of digital content
US11449584B1 (en) * 2019-03-28 2022-09-20 Amazon Technologies, Inc. Generating authenticable digital content
CN110784742B (zh) * 2019-12-31 2020-04-28 南斗六星***集成有限公司 一种防止历史视频回放数据被篡改的方法和***
CN114117478B (zh) * 2021-11-16 2024-02-27 陕西师范大学 基于点集序列匹配的图像矢量化隐藏和恢复方法及***
CN116016931B (zh) * 2023-03-24 2023-06-06 深圳市聚力得电子股份有限公司 一种车载显示器的视频编解码方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179318A1 (en) * 2000-04-05 2006-08-10 Nec Corporation Apparatus and methods for inserting and detecting electronic watermark
CN103281178A (zh) * 2013-06-08 2013-09-04 深圳大学 一种隐匿通信方法及***
CN103426141A (zh) * 2013-08-09 2013-12-04 深圳大学 一种图像内容认证方法与***
CN103617589A (zh) * 2013-09-18 2014-03-05 西安交通大学 一种基于局部直方图的信息隐藏方法
CN105160694A (zh) * 2015-10-15 2015-12-16 深圳大学 一种数据隐藏方法及隐藏***
CN105592323A (zh) * 2016-03-18 2016-05-18 深圳大学 将秘密信息写入视频的方法和***、视频认证方法和***
CN106101746A (zh) * 2016-07-12 2016-11-09 深圳大学 一种数字视频内容安全认证的方法及其***

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7043050B2 (en) * 2001-05-02 2006-05-09 Microsoft Corporation Software anti-piracy systems and methods utilizing certificates with digital content
KR20030073369A (ko) * 2002-03-11 2003-09-19 한국전자통신연구원 양자화를 이용한 실시간 블라인드 워터마킹 방법
US20040125125A1 (en) * 2002-06-29 2004-07-01 Levy Kenneth L. Embedded data windows in audio sequences and video frames
JP3829770B2 (ja) * 2002-07-19 2006-10-04 日本ビクター株式会社 電子透かし情報埋め込み装置及び埋め込み方法
JP4772544B2 (ja) * 2005-04-27 2011-09-14 富士フイルム株式会社 撮像装置、撮像方法、及びプログラム
CN101651834B (zh) * 2009-08-28 2011-07-06 北京大学深圳研究生院 视频数字水印嵌入方法及其装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179318A1 (en) * 2000-04-05 2006-08-10 Nec Corporation Apparatus and methods for inserting and detecting electronic watermark
CN103281178A (zh) * 2013-06-08 2013-09-04 深圳大学 一种隐匿通信方法及***
CN103426141A (zh) * 2013-08-09 2013-12-04 深圳大学 一种图像内容认证方法与***
CN103617589A (zh) * 2013-09-18 2014-03-05 西安交通大学 一种基于局部直方图的信息隐藏方法
CN105160694A (zh) * 2015-10-15 2015-12-16 深圳大学 一种数据隐藏方法及隐藏***
CN105592323A (zh) * 2016-03-18 2016-05-18 深圳大学 将秘密信息写入视频的方法和***、视频认证方法和***
CN106101746A (zh) * 2016-07-12 2016-11-09 深圳大学 一种数字视频内容安全认证的方法及其***

Also Published As

Publication number Publication date
JP6543764B2 (ja) 2019-07-10
US10354353B2 (en) 2019-07-16
JP2018527847A (ja) 2018-09-20
US20180322604A1 (en) 2018-11-08

Similar Documents

Publication Publication Date Title
US20230360165A1 (en) Method and apparatus for protecting digital photos from alteration
US11023618B2 (en) Systems and methods for detecting modifications in a video clip
WO2018010118A1 (zh) 一种数字视频内容安全认证的方法及其***
Zhang et al. HF-TPE: High-fidelity thumbnail-preserving encryption
Rani et al. Data security through qr code encryption and steganography
CN112561766B (zh) 图像隐写及提取方法、装置及电子设备
Bhautmage et al. Advanced video steganography algorithm
Li et al. Data hiding in iris image for privacy protection
Neekhara et al. FaceSigns: semi-fragile neural watermarks for media authentication and countering deepfakes
Liu et al. Digital cardan grille: A modern approach for information hiding
CN103745479A (zh) 一种彩色图像数字隐写及其分析方法
Ye et al. Noise-free thumbnail-preserving image encryption based on MSB prediction
CN110634096B (zh) 一种自适应多模态的信息隐藏方法及装置
JP5248934B2 (ja) ビデオ処理権利を行使する方法及び装置
CN110086955B (zh) 一种大容量图像隐写方法
CN116437019A (zh) 一种全0行和全0列编码的密文域可逆信息隐藏方法
CN106101746B (zh) 一种数字视频内容安全认证的方法及其***
CN111723346B (zh) 基于“竹节虫”参考矩阵可认证的视觉机密共享方法
Khalaf et al. Segmenting and hiding data randomly based on index channel
CN113011254A (zh) 一种视频数据处理方法、计算机设备及可读存储介质
JP3922369B2 (ja) 埋め込み情報の記録装置及び再生装置並びに記録用プログラム及び再生用プログラム
Bandhyopadhyay et al. An indirect addressing image steganographic scheme using 9× 9 sudoku matrix
CN114979402B (zh) 基于矩阵编码嵌入的共享图像存储方法
Ahuja et al. Video data security: analysis, relevance and open challenges
Mandhula et al. Secured Messaging Using Image and Video Steganography

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15571857

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2018513836

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16908446

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.04.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16908446

Country of ref document: EP

Kind code of ref document: A1