Dynamic image steganography method, device, equipment and storage medium

By extracting and modifying the index matrix and palette from the dynamic image, calculating the distortion cost matrix, and embedding information into the dynamic index image, the problem of dynamic index image steganography is solved and efficient and covert information hiding is achieved.

CN115115497BActive Publication Date: 2024-10-22CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110309029.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-10-22
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

Existing image steganography methods are mainly suitable for static images and fail to effectively solve the steganography problem of dynamic indexed images.

Method used

By obtaining the color index image of the multi-frame carrier image from the dynamic image, modifying the index matrix and palette, calculating the distortion cost matrix, embedding the information to be steganographically embedded in the index matrix, a dynamic steganographic image is generated.

Benefits of technology

It realizes the steganography of dynamic index images, improves the information embedding rate and security, is suitable for color images, and is more concealed and difficult to detect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115115497B_ABST
    Figure CN115115497B_ABST
Patent Text Reader

Abstract

The present invention provides a dynamic image steganography method, device, equipment and storage medium, the method comprising: obtaining a color index image including an index matrix and a color palette of each frame carrier image among multiple frame carrier images obtained from a dynamic image; modifying each value in the index matrix to obtain a modified index matrix; indexing the color palette according to the index matrix to obtain pixel values ​​of each channel of each frame carrier image; indexing the color palette according to the modified index matrix to obtain modified pixel values ​​of each channel of each frame carrier image; obtaining a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image; embedding information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain a steganographic index matrix of each frame carrier image; obtaining multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information security technology, and in particular to a dynamic image steganography method, device, equipment and readable storage medium. Background Art

[0002] Steganography is an important branch of information hiding technology. It can achieve the purpose of covert communication by embedding secret messages into images, audio, video, text and other files. Images have the characteristics of universality, easy accessibility and sufficient redundant data. Image steganography technology using images as information hiding carriers is one of the research focuses in this field. Image steganography methods in related technologies are proposed on static images and are only applicable to true color images. There is no steganography method based on dynamic index images.

[0003] As mentioned above, how to provide a steganographic method based on dynamic index images becomes an urgent problem to be solved.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0005] The purpose of the present disclosure is to provide a dynamic image steganography method, device, equipment and readable storage medium, which at least to a certain extent overcome the problem that the steganography method of static images in the related art is not suitable for dynamic index images.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a dynamic image steganography method is provided, comprising: obtaining a color index image of each frame carrier image in a plurality of frame carrier images, the plurality of frame carrier images being obtained from the dynamic image, the color index image comprising an index matrix and a color palette; modifying each value in the index matrix to obtain a modified index matrix; indexing the color palette according to the index matrix to obtain pixel values ​​of each channel of each frame carrier image; indexing the color palette according to the modified index matrix to obtain modified pixel values ​​of each channel of each frame carrier image; obtaining a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image; embedding information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain a steganographic index matrix of each frame carrier image; obtaining a plurality of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image.

[0008] According to an embodiment of the present disclosure, the method further includes: for each channel of each frame carrier image, using a high-pass filter to filter the pixels of each channel and then taking the absolute value of the filtering result; using a low-pass filter to smooth the absolute value of the filtering result to obtain the final residual and then taking the inverse to respectively obtain the distortion cost value of each channel of each frame carrier image; obtaining the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image includes: respectively obtaining the difference between the pixel value of each channel of each frame carrier image and the modified pixel value; obtaining the distortion cost matrix of each frame carrier image according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image.

[0009] According to an embodiment of the present disclosure, the method of obtaining a color index image of each frame of carrier images in a plurality of frames of carrier images includes: obtaining an initial index matrix and an initial color palette of each frame of carrier images; reordering the initial color palette of each frame of carrier images according to the sum of squares of values ​​of each channel to obtain the color palette of each frame of carrier images; obtaining an index matrix of each frame of carrier images according to the initial index matrix, initial color palette, and color palette of each frame of carrier images; the method of obtaining a distortion cost matrix of each frame of carrier images according to the difference between pixel values ​​of each channel of the frame of carrier images and modified pixel values ​​and the distortion cost values ​​of each channel of the frame of carrier images includes: obtaining the sum of squares of the difference between pixel values ​​of each channel of the frame of carrier images and modified pixel values; averaging the distortion cost values ​​of each channel of the frame of carrier images to obtain a total distortion cost value of each frame of carrier images; and multiplying the total distortion cost value of each frame of carrier images by the sum of squares of the difference between pixel values ​​of each channel and modified pixel values ​​to obtain a distortion cost matrix of each frame of carrier images.

[0010] According to an embodiment of the present disclosure, the method further includes: obtaining a color index image of a current frame carrier image, wherein the current frame carrier image is any frame after the first frame carrier image in the multiple frame carrier images; performing grayscale conversion on the color index image of the current frame carrier image to obtain a grayscale image of the current frame carrier image; obtaining a color index image of a previous frame carrier image of the current frame carrier image; performing grayscale conversion on the color index image of the previous frame steganographic image to obtain a grayscale image of the previous frame carrier image; and comparing the total distortion cost value of each frame carrier image with the pixel value of each channel and the modified pixel value. The distortion cost matrix of each frame carrier image is obtained by multiplying the square sum of the difference between the grayscale image of the current frame carrier image and the grayscale image of the previous frame carrier image, and then squaring the difference to obtain the brightness change of each pixel in the current frame carrier image; obtaining a brightness change threshold; when the brightness change of a pixel in the current frame carrier image is greater than the brightness change threshold, multiplying the total distortion cost value of the current frame carrier image by the square sum of the difference between the pixel value of each channel of the pixel and the modified pixel value to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0011] According to an embodiment of the present disclosure, the multiplication of the total distortion cost value of each frame carrier image with the sum of the squares of the differences between the pixel values ​​of each channel and the modified pixel values ​​to obtain the distortion cost matrix of each frame carrier image includes: obtaining a brightness change threshold; obtaining a distortion cost weight, wherein the distortion cost weight is a value greater than 1; when the brightness change of a pixel in the current frame carrier image is not greater than the brightness change threshold, multiplying the total distortion cost value of the current frame carrier image with the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value, and then multiplying the result by the distortion cost weight to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0012] According to an embodiment of the present disclosure, the method also includes: binarizing the color index images of the frame carrier images to obtain the binary images of the frame carrier images; extracting the boundary information of the binary images of the frame carrier images to obtain the boundary information value of each pixel of the frame carrier images; obtaining the true boundary value; the step of obtaining the distortion cost matrix of the frame carrier images according to the pixel values ​​of each channel of the frame carrier images and the modified pixel values ​​of each channel of the frame carrier images includes: for each pixel of the frame carrier images, when the boundary information value of the pixel is equal to the true boundary value, obtaining the distortion cost of the pixel according to the pixel values ​​of each channel of the pixel and the modified pixel value to obtain the distortion cost matrix of the frame carrier images.

[0013] According to one embodiment of the present disclosure, the method also includes: obtaining a preset distortion value; obtaining the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image also includes: for each pixel of each frame carrier image, when the boundary information value of the pixel is not equal to the true boundary value, obtaining the distortion cost of the pixel as the preset distortion value to obtain the distortion cost matrix of each frame carrier image.

[0014] According to another aspect of the present disclosure, a dynamic image steganography device is provided, comprising: an index image acquisition module, used to obtain a color index image of each frame carrier image in a plurality of frame carrier images, wherein the plurality of frame carrier images are obtained from the dynamic image, and the color index image comprises an index matrix and a color palette; an index value modification module, used to modify each value in the index matrix to obtain a modified index matrix; a first pixel value acquisition module, used to index the color palette according to the index matrix to obtain the pixel value of each channel of each frame carrier image; a second pixel value acquisition module, used to index the color palette according to the modified index matrix A color palette is used to obtain the modified pixel values ​​of each channel of each frame carrier image; a distortion cost acquisition module is used to obtain the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image; a steganalysis index matrix acquisition module is used to embed the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain the steganalysis index matrix of each frame carrier image; a steganalysis image acquisition module is used to obtain multiple frames of steganalysis images according to the steganalysis index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganalysis image.

[0015] According to one embodiment of the present disclosure, the device also includes: a high-pass filtering module, which is used to filter the pixels of each channel of each frame carrier image using a high-pass filter and then take the absolute value of the filtering result; a channel distortion cost calculation module, which is used to smooth the absolute value of the filtering result using a low-pass filter to obtain the final residual and then take the inverse to obtain the distortion cost value of each channel of each frame carrier image; the distortion cost acquisition module includes: a pixel difference module, which is used to obtain the difference between the pixel value of each channel of each frame carrier image and the modified pixel value; an image distortion cost calculation module, which is used to obtain the distortion cost matrix of each frame carrier image according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image.

[0016] According to an embodiment of the present disclosure, the index image acquisition module includes: an initial index image acquisition module, which is used to obtain the initial index matrix and initial palette of each frame carrier image; a palette update module, which is used to reorder the initial palette of each frame carrier image according to the square sum of each channel value to obtain the palette of each frame carrier image; an index matrix update module, which is used to obtain the index matrix of each frame carrier image according to the initial index matrix, initial palette, and palette of each frame carrier image; the distortion cost acquisition module includes: a pixel change calculation module, which is used to obtain the square sum of the difference between the pixel value of each channel of each frame carrier image and the modified pixel value; a distortion cost value calculation module, which is used to average the distortion cost value of each channel of each frame carrier image to obtain the total distortion cost value of each frame carrier image; a distortion cost matrix calculation module, which is used to multiply the total distortion cost value of each frame carrier image by the square sum of the difference between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image.

[0017] According to an embodiment of the present disclosure, the device further includes: a current carrier image acquisition module, which is used to acquire a color index image of a current frame carrier image, wherein the current frame carrier image is any frame after the first frame carrier image in the multiple frames of carrier images; a grayscale conversion module, which is used to perform grayscale conversion on the color index image of the current frame carrier image to obtain a grayscale image of the current frame carrier image; a previous frame carrier image acquisition module, which is used to acquire a color index image of a previous frame carrier image of the current frame carrier image; the grayscale conversion module is also used to perform grayscale conversion on the color index image of the previous frame steganographic image to obtain a grayscale image of the previous frame carrier image; the distortion generation module The cost matrix calculation module includes: a brightness change calculation module, which is used to square the difference between the grayscale image of the current frame carrier image and the grayscale image of the previous frame carrier image to obtain the brightness change of each pixel in the current frame carrier image; a brightness change threshold acquisition module, which is used to obtain the brightness change threshold; the distortion cost matrix calculation module is also used to multiply the total distortion cost value of the current frame carrier image with the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value when the brightness change of a pixel in the current frame carrier image is greater than the brightness change threshold, to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0018] According to one embodiment of the present disclosure, the distortion cost matrix calculation module includes: a brightness change threshold acquisition module, used to obtain a brightness change threshold; a distortion cost weight acquisition module, used to obtain a distortion cost weight, and the distortion cost weight is a value greater than 1; the distortion cost matrix calculation module is also used to multiply the total distortion cost value of the current frame carrier image with the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value, and then multiply it by the distortion cost weight to obtain the color change of the pixel when the brightness change of a pixel in the current frame carrier image is not greater than the brightness change threshold, so as to obtain the distortion cost matrix of each frame carrier image.

[0019] According to one embodiment of the present disclosure, the device also includes: a binarization processing module, which is used to binarize the color index image of each frame carrier image to obtain a binary image of each frame carrier image; a boundary extraction module, which is used to extract the boundary information of the binary image of each frame carrier image to obtain the boundary information value of each pixel of each frame carrier image; a true boundary value acquisition module, which is used to obtain the true boundary value; the distortion cost matrix calculation module is also used to: for each pixel of each frame carrier image, when the boundary information value of the pixel is equal to the true boundary value, obtain the distortion cost of the pixel according to the pixel value of each channel of the pixel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image.

[0020] According to one embodiment of the present disclosure, the distortion cost matrix calculation module also includes: a preset distortion value acquisition module, used to obtain a preset distortion value; the distortion cost matrix calculation module is also used to: for each pixel of each frame carrier image, when the boundary information value of the pixel is not equal to the true boundary value, obtain the distortion cost of the pixel as the preset distortion value, so as to obtain the distortion cost matrix of each frame carrier image.

[0021] According to another aspect of the present disclosure, a device is provided, comprising: a memory, a processor, and executable instructions stored in the memory and executable in the processor, wherein the processor implements any of the above methods when executing the executable instructions.

[0022] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, and when the executable instructions are executed by a processor, any of the above methods is implemented.

[0023] The dynamic image steganography method provided by the embodiment of the present disclosure obtains a color index image including an index matrix and a color palette of each frame carrier image in multiple frame carrier images from a dynamic image, modifies each value in the index matrix to obtain a modified index matrix, obtains a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette with the index matrix and the modified pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette with the modified index matrix, then embeds the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain a steganographic index matrix of each frame carrier image, finally obtains multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image, thereby realizing steganography based on the dynamic index image.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail example embodiments thereof with reference to the attached drawings.

[0026] Figure 1 A schematic diagram showing a system structure in an embodiment of the present disclosure.

[0027] Figure 2 A flow chart of a dynamic image steganography method in an embodiment of the present disclosure is shown.

[0028] Figure 3 Shows Figure 2 FIG. 5 is a schematic diagram of the processing process of step S202 in one embodiment.

[0029] Figure 4 The figure is a flow chart of a method for obtaining a distortion cost according to an exemplary embodiment.

[0030] Figure 5 The figure is a flowchart of an image boundary method according to an exemplary embodiment.

[0031] Figure 6 is based on Figures 2 to 5 A framework diagram of an animated expression steganography method is shown.

[0032] Figure 7 is based on Figures 2 to 6 A schematic diagram of the steganographic process of each frame image is shown.

[0033] Figure 8 is based on Figures 2 to 6 An example diagram showing the results of a steganography experiment.

[0034] Fig. 9 is based on Figures 2 to 6 A schematic diagram showing a comparison of distortion costs between the dynamic image steganography method and the prior art method is shown.

[0035] Fig.10 is based on Figures 2 to 6 A schematic diagram showing a comparison between the dynamic image steganography method and the prior art method.

[0036] Fig.11 is based on Figures 2 to 6 A schematic diagram showing a comparison of distortion costs between the dynamic image steganography method and the prior art method is shown.

[0037] Fig.12 A block diagram of a dynamic image steganography device in an embodiment of the present disclosure is shown.

[0038] Fig.13 A block diagram of another dynamic image steganography device in an embodiment of the present disclosure is shown.

[0039] Fig.14 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The accompanying drawings are only schematic illustrations of the disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0041] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, devices, steps, etc. may be adopted. In other cases, well-known structures, methods, devices, implementations or operations are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0042] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. The symbol " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0043] In this disclosure, unless otherwise clearly specified and limited, terms such as "connection" should be understood in a broad sense, for example, it can be an electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this disclosure can be understood according to specific circumstances.

[0044] As mentioned above, dynamic images, such as animated expressions, have characteristics different from natural images due to their special production methods. There are some significant differences from natural images. Currently, there is no steganographic method for dynamic images, and the method applicable to natural images is not very effective. Some related technologies use steganographic methods based on Syndrome-Trellis Codes (STC) for natural images, but they cannot be applied to dynamic images.

[0045] Therefore, the present disclosure provides a dynamic image steganography method, which obtains a color index image including an index matrix and a color palette of each frame carrier image in multiple frame carrier images from a dynamic image, modifies each value in the index matrix to obtain a modified index matrix, obtains a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette with the index matrix and the modified pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette with the modified index matrix, then embeds the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain a steganographic index matrix of each frame carrier image, and finally obtains multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image, thereby realizing steganography of dynamic images.

[0046] Figure 1 An exemplary system architecture 10 to which the dynamic image steganography method or dynamic image steganography device of the present disclosure can be applied is shown.

[0047] like Figure 1As shown, the system architecture 10 may include a terminal device 102, a network 104, and a server 106. The terminal device 102 may be a variety of electronic devices having a display screen and supporting input and output, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, wearable devices, virtual reality devices, smart homes, etc. The network 104 is used to provide a medium for a communication link between the terminal device 102 and the server 106. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The server 106 may be a server or server cluster that provides various services, etc.

[0048] The user can use the terminal device 102 to interact with the server 106 through the network 104 to receive or send data, etc. For example, the user uses the terminal device 102 to upload the information to be steganographic and the carrier dynamic image to the server 106 through the network 104, and then obtains the steganographic dynamic image transmitted by the server 106 through the network 104 through the terminal device 102. For another example, the user uses the terminal device 102 to input the steganographic parameters, and then uploads them to the server 106 through the network 104.

[0049] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0050] Figure 2 FIG. 1 is a flow chart of a dynamic image steganography method according to an exemplary embodiment. Figure 2 The dynamic image steganography method shown can be applied to the server side of the above system, for example, and can also be applied to the terminal device of the above system.

[0051] refer to Figure 2 , the method 20 provided in the embodiment of the present disclosure may include the following steps.

[0052] In step S202, a color index image of each carrier image in a plurality of carrier images is obtained. The plurality of carrier images are obtained from a dynamic image. The color index image includes an index matrix and a color palette. A dynamic image is an image that changes its form over time. It can be an image in a Graphics Interchange Format (GIF). The characteristic of a GIF image is that it can store multiple color images in one GIF file. When displayed, the multiple image data stored in one file are read out one by one and displayed on the screen, which is a GIF animation, such as animated expressions, animated images converted from short videos, etc.

[0053] In some embodiments, for example, the animated expression can be decomposed to obtain multiple frames of color index images. The animated expression can be read, the animated expression can be decomposed into multiple frames of color index images, and basic information of each frame obtained can be recorded, such as: index matrix, color palette, delay time, number of frames n, image height h, width w, etc.

[0054] In some embodiments, for example, after decomposing the animated expression to obtain the initial index matrix and initial palette of each frame carrier image, the initial palette is reordered to obtain a new palette, and a new index matrix corresponding to the new palette is generated. For a specific implementation, refer to Figure 3 .

[0055] In step S204, each value in the index matrix is ​​modified to obtain a modified index matrix. The index matrix is ​​a matrix that indexes the channel colors (pixel values) of each pixel in the palette. Modifying the index matrix is ​​equivalent to modifying the pixel values ​​of each channel. The modification method can be adding 1 or subtracting 1, etc.

[0056] In some embodiments, the index matrix of the color index map of the current frame (the kth frame, k is a positive integer greater than 1) may be recorded as IN k , the palette is MN k .

[0057] In step S206, the color palette is indexed according to the index matrix to obtain the pixel value of each channel of each frame carrier image.

[0058] In some embodiments, for example, the red (Red, R), green (Green, G), and blue (Blue, B) channel pixel value matrices corresponding to the image are respectively R1=(R1 ij ), G1=(G1 ij ), B1=(B1 ij )∈{0,...,255} h×w , where h is the image height, w is the image width, both in pixels, i is a positive integer greater than 0 and less than w, j is a positive integer greater than 0 and less than h, using the index matrix IN k The index value at position (i, j) corresponds to the palette MN k The pixel values ​​of the RGB channels are R1 ij 、G1 ij 、B1 ij .

[0059] In step S208, the palette is indexed according to the modified index matrix to obtain the modified pixel value of each channel of each frame carrier image.

[0060] In some embodiments, for example, the pixel value of the (i, j)th pixel after modification is R2 ij =R1ij ±1, G2 ij =G1 ij ±1, B2 ij =B1 ij ±1.

[0061] In step S210, the distortion cost matrix of each frame carrier image is obtained according to the pixel value of each channel of each frame carrier image and the modified pixel value of each channel of each frame carrier image. For each channel of each frame carrier image, a high-pass filter can be used to filter the pixels of each channel and then the absolute value of the filtering result can be taken. Then, a low-pass filter can be used to smooth the absolute value of the filtering result to obtain the final residual and then the inverse can be taken to obtain the distortion cost value of each channel of each frame carrier image. After obtaining the distortion cost value of each channel, the difference between the pixel value of each channel of each frame carrier image and the modified pixel value is obtained respectively, and then the distortion cost matrix of each frame carrier image is obtained according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image.

[0062] In some embodiments, for example, using Figure 3 When a color index image is obtained by the method, the square sum of the difference between the pixel value of each channel of each frame carrier image and the modified pixel value can be obtained, and then the distortion cost value of each channel of each frame carrier image is averaged to obtain the total distortion cost value of each frame carrier image, and then the total distortion cost value of each frame carrier image is multiplied by the square sum of the difference between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image. The distortion cost values ​​of RGB channels are ρR=(ρR ij ), ρG=(ρG ij ),ρB=(ρB ij ), the distortion cost value of the RGB channel and the total distortion cost value ρ can be obtained by the following formula:

[0063]

[0064]

[0065]

[0066] ρ=(ρR+ρG+ρB) / 3 (4)

[0067] In the above formula, “*” is a linear convolution operation. The convolution adopts a symmetrical filling form so that the size of the image after convolution remains unchanged; H is a high-pass filter, L 1 With L 2are different low-pass filters. The method of the present application is to send the index matrix into a steganographic algorithm such as an STC coding framework for steganography. After the index matrix is ​​subjected to a ±1 operation, the index value is changed by 1, and the palette is reordered according to the square of the pixel value. The image pixels are changed from R1(i, j), G1(i, j), B1(i, j) to R2(i, j), G2(i, j), B2(i, j), so the obtained ρ needs to be multiplied by the sum of the squares of the differences between the two to obtain the actual color change. For the current k-th frame, R1(i, j), G1(i, j), B1(i, j) is the index matrix IN of the current frame. k The palette MN corresponding to the index value at position (i, j) k The three-channel values ​​in, R2(i, j), G2(i, j), B2(i, j) are the three-channel values ​​corresponding to the new index after the index value ±1, then the final distortion cost value ρ of the pixel at the position (i, j) of the current frame can be obtained t (i, j) is:

[0068] ρ t (i,j)=ρ·((R1(i,j)-R2(i,j)) 2 +(G1(i, j)-G2(i, j)) 2 +(B1(i,j)-B2(i,j)) 2 )(5)

[0069] In some embodiments, using Figure 3 When a color index image is obtained by the method, after obtaining the square of the difference between the pixel value of each channel of each frame carrier image and the modified pixel value, the distortion cost value of each channel of each frame carrier image is multiplied by the square of the difference between the pixel value of each channel and the modified pixel value, and then the products of the three channels are summed to obtain the distortion cost matrix of each frame carrier image.

[0070] In some embodiments, when obtaining the final distortion cost value of each pixel point, the final distortion cost value calculated as in formula (5) can be corrected by judging whether the change of pixels between frames is suitable for hiding information. For a specific implementation method, refer to Figure 4 .

[0071] In step S212, the information to be steganographic is embedded into the index matrix based on the distortion cost matrix of each frame carrier image to obtain the steganographic index matrix of each frame carrier image. Binary steganographic coding can be used to embed secret information, such as STC coding. The distortion cost matrix composed of the distortion cost function of each pixel point calculated by formula (5) or formula (6), the index matrix and the secret information are sent to the STC coding framework to obtain the steganographic index matrix of each frame carrier image to generate a secret image. The specific implementation method of embedding information can be referred to. Figure 7 .

[0072] In step S214, multiple frames of steganographic images are obtained according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image. According to the delay time read in when obtaining the initial dynamic image, multiple frames of secret steganographic images are merged and output as a dynamic image, and a dynamic image that hides secret information can be obtained.

[0073] According to the dynamic image steganography method provided by the embodiment of the present disclosure, a color index image including an index matrix and a color palette of each frame carrier image in multiple frame carrier images is obtained from a dynamic image, and each value in the index matrix is ​​modified to obtain a modified index matrix. Then, the distortion cost matrix of each frame carrier image is obtained according to the pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette of the index matrix and the modified pixel values ​​of each channel of each frame carrier image obtained by indexing the color palette of the modified index matrix. Then, based on the distortion cost matrix of each frame carrier image, the information to be steganographic is embedded in the index matrix to obtain the steganographic index matrix of each frame carrier image. Finally, multiple frames of steganographic images are obtained according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image, so that steganography based on the dynamic index image can be realized, which is more suitable for color images and is more concealed and less detectable. The steganographic method based on STC coding can be made more suitable for hiding the information to be sent in a publicly available dynamic carrier image for transmission, realizing the transmission of the carrier at the transmitting and receiving ends, and improving the information embedding rate and security.

[0074] Figure 3 Shows Figure 2 The processing diagram of step S202 in one embodiment is shown in FIG. Figure 3 As shown, in the embodiment of the present disclosure, the above step S202 may further include the following steps.

[0075] Step S2022, obtaining the initial index matrix and initial palette of each frame carrier image.

[0076] Step S2024, reordering the initial color palette of each frame carrier image according to the square sum of each channel value to obtain the color palette of each frame carrier image.

[0077] Step S2026, the index matrix of each frame carrier image is obtained according to the initial index matrix, initial palette, and palette of each frame carrier image. For each frame carrier image, when it is used as the current frame image for hiding secret information, the read initial palette is reordered according to the square sum of each channel value to generate a new palette, and a new index matrix corresponding to the new palette is generated.

[0078] According to the palette reordering method provided by the embodiment of the present disclosure, the complexity of modifying the carrier image is increased by reordering the initial palette according to the sum of the squares of the channel values, thereby improving the concealment and anti-detection performance of the index image steganography.

[0079] Figure 4 FIG. 1 is a flow chart of a method for obtaining a distortion cost according to an exemplary embodiment. Figure 4 The method shown can be applied to the server side of the above system, for example, and can also be applied to the terminal device of the above system.

[0080] refer to Figure 4 , the method 40 provided in the embodiment of the present disclosure may include the following steps.

[0081] In step S402, a color index image of a current frame carrier image is obtained, where the current frame carrier image is any frame after the first frame carrier image in multiple frames of carrier images.

[0082] In step S404, grayscale conversion is performed on the color index image of the current frame carrier image to obtain a grayscale image of the current frame carrier image.

[0083] In step S406, a color index image of a carrier image frame previous to the current carrier image frame is obtained.

[0084] In step S408, the color index image of the previous frame of steganographic image is converted into grayscale to obtain a grayscale image of the previous frame of carrier image.

[0085] In some embodiments, the grayscale image converted from the current k-th frame color index image can be recorded as G k =(G ij ), the grayscale image corresponding to the steganographic image with secret information embedded in the previous frame is G k-1 =(B ij ).

[0086] In step S410, the grayscale image of the current frame carrier image is subtracted from the grayscale image of the previous frame carrier image and then squared to obtain the brightness change of each pixel in the current frame carrier image.

[0087] In step S412, a brightness change threshold is obtained.

[0088] In step S414, when the brightness change of a pixel in the current frame carrier image is greater than the brightness change threshold, the total distortion cost value of the current frame carrier image is multiplied by the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0089] In step S4162, when the brightness change of a pixel in the current frame carrier image is not greater than the brightness change threshold, a distortion cost weight is obtained, and the distortion cost weight is a value greater than 1.

[0090] In step S4164, the total distortion cost value of the current frame carrier image is multiplied by the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value, and then multiplied by the distortion cost weight to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0091] In some embodiments, the brightness change threshold may be ε, the distortion cost weight may be δ, δ>1, and equation (5) may be rewritten as:

[0092]

[0093] In the formula, ((G ij )-(B ij )) 2 Compared with the pre-set threshold ε, if it is greater than the threshold, it indicates that the area is a region with large changes and is suitable for hiding information; if it is smaller than the threshold, it indicates that the area is a region with flat changes and is not suitable for steganography. Therefore, the distortion cost value needs to be multiplied by a weight δ greater than 1.

[0094] In some embodiments, for example, when the carrier dynamic image is an animated expression, the character lines are the main components of the animated expression, and the pixel values ​​of each point on the lines are similar; at the same time, there are large colored areas in the image, and the pixel values ​​in the same area are consistent, so if the colored area is modified, it is easy to find abnormalities in the encrypted image. Considering the above characteristics, a constraint can be imposed on formula (6). The distortion cost value of the contour (boundary) area of ​​the image is calculated according to formula (6), while the distortion cost value of the non-contour area is set to a preset distortion value, and the preset distortion value is a large threshold, that is, this part does not embed information, which can effectively improve the quality of the encrypted image. The specific implementation method of the image boundary information extraction method can be referred to. Figure 5 .

[0095] According to the distortion cost obtaining method provided by the embodiment of the present disclosure, by considering whether the change in brightness of corresponding pixels between frames is suitable for hiding information when calculating the distortion cost of each pixel, the method can be made more suitable for steganography of dynamic images, thereby improving the security of the encrypted image.

[0096] Figure 5 FIG. 1 is a flow chart of an image boundary method according to an exemplary embodiment. Figure 5 The method shown can be applied to the server side of the above system, for example, and can also be applied to the terminal device of the above system.

[0097] refer to Figure 5, the method 50 provided in the embodiment of the present disclosure may include the following steps.

[0098] In step S502, the color index image of each frame carrier image is binarized to obtain a binary image of each frame carrier image.

[0099] In step S504, the boundary information of the binary image of each frame carrier image is extracted to obtain the boundary information value of each pixel of each frame carrier image.

[0100] In some embodiments, for example, C k =(C ij ) is the boundary information extracted from the current frame, then the pixel at the position (i, j) of the current frame is the boundary and is recorded as C ij =1, 1 is the true boundary value; when the pixel at the position (i, j) of the current frame is not a boundary, it can be recorded as C ij =0.

[0101] According to the method provided by the embodiment of the present disclosure, by taking boundary information into account when calculating the distortion cost of each pixel, steganography is performed at the image contour, thereby improving the visual effect of the secret animated expression and improving the security of the steganography.

[0102] Figure 6 is based on Figures 2 to 5 The framework diagram of an animated expression steganography method is shown in FIG. Figure 6 As shown, first decompose (S602) the animated expression 6002 into multiple frames of color index images 6004, embed secret information into each frame of the image according to the designed information embedding method (S604), obtain multiple images 6006 with hidden secret information, merge multiple frames (S606) and output them as an animated image to obtain an animated expression with hidden secret information.

[0103] Figure 7 is based on Figures 2 to 6 A schematic diagram of the steganographic process of each frame of image is shown in FIG. Figure 7 As shown, for the current frame image 7002 used to hide secret information, the read-in palette is first reordered according to the sum of the squares of the RGB three-channel values ​​to generate a new palette (S702), and a new index matrix corresponding to the new palette is generated (S704). Then the current color index Figure 2The binary image is generated by quantization (S706), and then the boundary information of the binary image is extracted (S708). The boundary information is used to define the distortion cost function. The color index image 7002 of the current frame and the color index image 7004 of the previous frame that has hidden secret information are then converted into grayscale images (S7102, S7104), which are also used to define the distortion cost function. Finally, based on the extracted boundary information, the grayscale images of the current frame and the previous frame, and the new palette and index matrix of the current frame, the distortion cost function is defined, and the distortion cost function value of each pixel is calculated (S712). The calculated distortion cost function value, the index matrix and the secret information 7006 are sent to the STC coding framework (S714), and the encrypted image 7008 can be obtained.

[0104] Figure 8 is based on Figures 2 to 6 The following is a set of experimental results of the dynamic image steganography method for STC encoding steganography of multiple animated expressions. Figure 8 As shown in (a)-(i), from the comparison between the original image and the corresponding steganographic image with 600 bits and 1100 bits of secret information respectively, it can be seen that the image with hidden secret information has good visual effect and the existence of information cannot be seen by the naked eye. There is no obvious visual difference between the steganographic images under different embedding rates, which shows that the experimental effect of this method is good.

[0105] Fig. 9 is based on Figures 2 to 6 The figure shows a comparison of the two-dimensional image of the distortion cost value of the image calculated by the dynamic image steganography method and the prior art method. In the prior art method, the pixel modification of each channel is not considered separately when calculating the distortion cost. Fig. 9 As shown, (a) is the original carrier image, (b) is the image boundary information, (c) is the distortion cost value of pixel +1 calculated by the method disclosed in the present invention, (d) is the distortion cost value of pixel -1 calculated by the method disclosed in the present invention, (e) is the distortion cost value of pixel +1 calculated by the prior art method, and (f) is the distortion cost value of pixel -1 calculated by the prior art method. Fig. 9 It can be seen that the distribution of the distortion cost values ​​calculated by the method disclosed in the present invention is obviously different from the distribution of the distortion cost values ​​calculated by the prior art method. The two-dimensional image of the distortion cost values ​​of the method disclosed in the present invention is similar to the contour boundary information extracted from the original image, while the distortion cost values ​​calculated according to the prior art method are smaller in the large colored area and larger in other areas. It can be seen that the prior art method will give priority to modifying the large colored area when embedding information. According to the characteristics of animated expressions: the color information of animated images is richer at the contours and the colors are similar, while other large colored areas are of a single color and are not suitable for modification. It can be seen that the distortion cost function proposed by the method disclosed in the present invention fits the characteristics of animated images well, and information is embedded preferentially in the contour area of ​​the expression image.

[0106] The following table shows the comparative experimental data of the method disclosed in the present invention and the prior art method, and the table shows the test errors of the two methods under 6 different embedding amounts. It can be seen that when the Subtractive Pixel Adjacency Matrix (SPAM) feature and the embedded information are 600 bits (bit), the PE value of the distortion cost function proposed by the formula (6) of the present invention is 14.97% higher than that of the prior art; the PE value is increased by 9.09% under the spatial domain model (SRMQ1) feature and 600 bits. When the SPAM feature and the embedded information are 1100 bits, the PE value of the distortion cost function proposed by the formula (6) of the present invention is 12.85% higher than that of the prior art method; the PE value of the present method is increased by 4.86% under the SRMQ1 feature and 1100 bits.

[0107]

[0108] Fig.10 and Fig.11 The data in the above table are plotted, and the test error comparisons of the disclosed method and the prior art under SPAM and SRMQ1 features are given. It can be seen intuitively that the test errors of the two methods decrease with the increase of the number of embedded bits; at the same time, no matter what the embedding rate is, the PE value of the method proposed in the present invention is much higher than that of the prior art.

[0109] It can be seen from the above experimental data that the performance of the disclosed method is significantly better than that of the prior art, indicating that the disclosed method has stronger anti-steganalysis capability.

[0110] Fig.12 FIG. 1 is a block diagram of a dynamic image steganography device according to an exemplary embodiment. Fig.12 The device shown can be applied to the server side of the above system, for example, and can also be applied to the terminal device of the above system.

[0111] refer to Fig.12 The dynamic image steganography device 120 provided in the embodiment of the present disclosure may include an index image acquisition module 1202, an index value modification module 1204, a first pixel value acquisition module 1206, a second pixel value acquisition module 1208, a distortion cost acquisition module 1210, a stego index matrix acquisition module 1212 and a stego image acquisition module 1214.

[0112] The index image acquisition module 1202 may be used to obtain a color index image of each frame of a carrier image in a plurality of frames of carrier images. The plurality of frames of carrier images are obtained from dynamic images. The color index image includes an index matrix and a color palette.

[0113] The index value modification module 1204 may be used to modify each value in the index matrix to obtain a modified index matrix.

[0114] The first pixel value obtaining module 1206 may be used to index the color palette according to the index matrix to obtain the pixel value of each channel of each frame carrier image.

[0115] The second pixel value obtaining module 1208 may be used to index the palette according to the modified index matrix to obtain the modified pixel value of each channel of each frame carrier image.

[0116] The distortion cost obtaining module 1210 may be used to obtain a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image.

[0117] The steganographic index matrix obtaining module 1212 may be used to embed the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image, so as to obtain the steganographic index matrix of each frame carrier image.

[0118] The steganographic image obtaining module 1214 can be used to obtain multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image.

[0119] Fig.13 FIG. 1 is a block diagram of a dynamic image steganography device according to an exemplary embodiment. Fig.13 The device shown can be applied to the server side of the above system, for example, and can also be applied to the terminal device of the above system.

[0120] refer to Fig.13The dynamic image steganography device 130 provided in the embodiment of the present disclosure may include an index image acquisition module 1302, a current carrier image acquisition module 13032, a previous frame carrier image acquisition module 13034 and a grayscale conversion module 13036, an index value modification module 1304, a binarization processing module 13052, a boundary extraction module 13054, a true boundary value acquisition module 13056, a preset distortion value acquisition module 13058, a first pixel value acquisition module 1306, a second pixel value acquisition module 1308, a high-pass filtering module 13092, a channel distortion cost calculation module 13094, a distortion cost acquisition module 1310, a steganalysis index A matrix acquisition module 1312 and a steganographic image acquisition module 1314, wherein the index image acquisition module 1302 may include an initial index image acquisition module 13022, a palette update module 13024 and an index matrix update module 13026, and the distortion cost acquisition module 1310 may include a pixel difference module 13102, an image distortion cost calculation module 13104, a pixel change calculation module 13106, a distortion cost value calculation module 13108, a distortion cost matrix calculation module 13110, a brightness change calculation module 13112, a brightness change threshold acquisition module 13114, and a distortion cost weight acquisition module 13116.

[0121] The index image acquisition module 1302 may be used to obtain a color index image of each frame of a carrier image in a plurality of frames of carrier images. The plurality of frames of carrier images are obtained from dynamic images. The color index image includes an index matrix and a color palette.

[0122] The initial index image acquisition module 13022 can be used to obtain the initial index matrix and initial color palette of each frame carrier image.

[0123] The current carrier image acquisition module 13032 may be used to acquire a color index image of a current frame carrier image, where the current frame carrier image is any frame after the first frame carrier image in multiple frames of carrier images.

[0124] The previous frame carrier image acquisition module 13034 can be used to obtain a color index image of a previous frame carrier image of a current frame carrier image.

[0125] The grayscale conversion module 13036 can be used to perform grayscale conversion on the color index image of the current frame carrier image to obtain the grayscale image of the current frame carrier image; perform grayscale conversion on the color index image of the previous frame steganographic image to obtain the grayscale image of the previous frame carrier image.

[0126] The palette update module 13024 may be used to reorder the initial palette of each frame carrier image according to the sum of the squares of each channel value to obtain the palette of each frame carrier image.

[0127] The index matrix update module 13026 can be used to obtain the index matrix of each frame carrier image based on the initial index matrix, initial palette, and palette of each frame carrier image.

[0128] The index value modification module 1304 may be used to modify each value in the index matrix to obtain a modified index matrix.

[0129] The binarization processing module 13052 may be used to perform binarization processing on the color index image of each frame carrier image to obtain a binary image of each frame carrier image.

[0130] The boundary extraction module 13054 can be used to extract the boundary information of the binary image of each frame carrier image, and obtain the boundary information value of each pixel of each frame carrier image.

[0131] The true boundary value acquisition module 13056 can be used to obtain the true boundary value.

[0132] The preset distortion value acquisition module 13058 can be used to obtain a preset distortion value.

[0133] The first pixel value obtaining module 1306 may be used to index the color palette according to the index matrix to obtain the pixel value of each channel of each frame carrier image.

[0134] The second pixel value obtaining module 1308 may be used to index the palette according to the modified index matrix to obtain the modified pixel value of each channel of each frame carrier image.

[0135] The high-pass filter module 13092 can be used to filter the pixels of each channel of each frame carrier image using a high-pass filter and then take the absolute value of the filtering result.

[0136] The channel distortion cost calculation module 13094 can be used to use a low-pass filter to smooth the absolute value of the filtering result to obtain the final residual and then take the inverse to obtain the distortion cost value of each channel of each frame carrier image.

[0137] The distortion cost obtaining module 1310 may be used to obtain a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image.

[0138] The pixel difference module 13102 may be used to obtain the difference between the pixel value of each channel of each frame carrier image and the modified pixel value.

[0139] The image distortion cost calculation module 13104 may be used to obtain the distortion cost matrix of each frame carrier image according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image.

[0140] The pixel change calculation module 13106 may be used to obtain the sum of squares of the differences between the pixel values ​​of each channel of each frame carrier image and the modified pixel values.

[0141] The distortion cost value calculation module 13108 may be used to average the distortion cost values ​​of each channel of each frame carrier image to obtain a total distortion cost value of each frame carrier image.

[0142] The distortion cost matrix calculation module 13110 can be used to multiply the total distortion cost value of each frame carrier image by the sum of the squares of the differences between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image.

[0143] The brightness change calculation module 13112 can be used to square the difference between the grayscale image of the current frame carrier image and the grayscale image of the previous frame carrier image to obtain the brightness change of each pixel in the current frame carrier image.

[0144] The brightness change threshold obtaining module 13114 may be used to obtain the brightness change threshold.

[0145] The distortion cost matrix calculation module 13110 can also be used to multiply the total distortion cost value of the current frame carrier image by the sum of the squares of the differences between the pixel value of each channel of the pixel and the modified pixel value when the brightness change of a pixel in the current frame carrier image is greater than the brightness change threshold, to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

[0146] The distortion cost weight obtaining module 13116 may be used to obtain the distortion cost weight, where the distortion cost weight is a value greater than 1.

[0147] The distortion cost matrix calculation module 13110 can also be used to multiply the total distortion cost value of the current frame carrier image by the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value, and then multiply it by the distortion cost weight to obtain the color change of the pixel when the brightness change of a pixel in the current frame carrier image is not greater than the brightness change threshold, so as to obtain the distortion cost matrix of each frame carrier image.

[0148] The distortion cost matrix calculation module 13110 can also be used to obtain the distortion cost of each pixel of each frame carrier image according to the pixel values ​​of each channel of the pixel and the modified pixel value when the boundary information value of the pixel is equal to the true boundary value, so as to obtain the distortion cost matrix of each frame carrier image.

[0149] The distortion cost matrix calculation module 13110 can also be used to obtain the distortion cost of each pixel of each frame carrier image as a preset distortion value when the boundary information value of the pixel is not equal to the true boundary value, so as to obtain the distortion cost matrix of each frame carrier image.

[0150] The steganographic index matrix obtaining module 1312 may be used to embed the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image, so as to obtain the steganographic index matrix of each frame carrier image.

[0151] The steganographic image obtaining module 1314 can be used to obtain multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image.

[0152] The specific implementation of each module in the device provided by the embodiment of the present disclosure can refer to the content of the above method, which will not be repeated here.

[0153] Fig.14 The following is a schematic diagram showing the structure of an electronic device in an embodiment of the present disclosure. It should be noted that: Fig.14 The device shown is only an example of a computer system, which should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0154] like Fig.14 As shown, the device 1400 includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage part 1408 into a random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the device 1400 are also stored. The CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

[0155] The following components are connected to the I / O interface 1405: an input section 1406 including a keyboard, a mouse, etc.; an output section 1407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1408 including a hard disk, etc.; and a communication section 1409 including a network interface card such as a LAN card, a modem, etc. The communication section 1409 performs communication processing via a network such as the Internet. A drive 1414 is also connected to the I / O interface 1405 as needed. A removable medium 1411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1414 as needed, so that a computer program read therefrom is installed into the storage section 1408 as needed.

[0156] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1409, and / or installed from a removable medium 1411. When the computer program is executed by a central processing unit (CPU) 1401, the above-mentioned functions defined in the system of the present disclosure are executed.

[0157] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0158] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The modules described may also be arranged in a processor, for example, may be described as: a processor including an index image acquisition module, an index value modification module, a first pixel value acquisition module, a second pixel value acquisition module, a distortion cost acquisition module, a steganographic index matrix acquisition module and a steganographic image acquisition module. The names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the index image acquisition module may also be described as a "module for acquiring color index images of multiple frames of carrier images from dynamic carrier images".

[0160] As another aspect, the present disclosure further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0161] Obtain a color index image of each carrier image in a plurality of carrier images, wherein the plurality of carrier images are obtained from a dynamic image, and the color index image includes an index matrix and a color palette; modify each value in the index matrix to obtain a modified index matrix; index the color palette according to the index matrix to obtain pixel values ​​of each channel of each carrier image; index the color palette according to the modified index matrix to obtain modified pixel values ​​of each channel of each carrier image; obtain a distortion cost matrix of each carrier image according to the pixel values ​​of each channel of each carrier image and the modified pixel values ​​of each channel of each carrier image; embed the information to be steganographic into the index matrix based on the distortion cost matrix of each carrier image to obtain a steganographic index matrix of each carrier image; obtain a plurality of steganographic images according to the steganographic index matrix of each carrier image and the color palette of each carrier image to synthesize a dynamic steganographic image.

[0162] The exemplary embodiments of the present disclosure are specifically shown and described above. It should be understood that the present disclosure is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present disclosure is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.

Claims

1. A dynamic image steganography method, characterized in that: include: Obtaining a color index image of each frame of a carrier image in a plurality of frames of carrier images, wherein the plurality of frames of carrier images are obtained from the dynamic image, and the color index image includes an index matrix and a color palette; Modify each value in the index matrix to obtain a modified index matrix; Indexing the palette according to the index matrix to obtain pixel values ​​of each channel of each frame carrier image; Indexing the palette according to the modified index matrix to obtain modified pixel values ​​of each channel of each frame carrier image; Obtaining a distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image; Embedding the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image to obtain the steganographic index matrix of each frame carrier image; Obtaining multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image; The method further comprises: For each channel of each frame carrier image, a high-pass filter is used to filter the pixels of each channel and then the absolute value of the filtering result is taken; A low-pass filter is used to smooth the absolute value of the filtering result to obtain a final residual, and then the reciprocal is taken to obtain the distortion cost value of each channel of each frame carrier image; The step of obtaining the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image comprises: Obtaining the difference between the pixel value of each channel of each frame carrier image and the modified pixel value respectively; The distortion cost matrix of each frame carrier image is obtained according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image.

2. The method according to claim 1, characterized in that The step of obtaining a color index image of each frame of a carrier image in a plurality of frames of carrier images comprises: Obtaining the initial index matrix and initial color palette of each frame carrier image; Rearranging the initial color palettes of the carrier images of each frame according to the square sum of each channel value to obtain the color palettes of the carrier images of each frame; Obtaining an index matrix of each frame carrier image according to an initial index matrix, an initial color palette, and a color palette of each frame carrier image; The step of obtaining the distortion cost matrix of each frame carrier image according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image comprises: Obtaining the sum of squares of differences between pixel values ​​of each channel of each frame carrier image and the modified pixel values; Averaging the distortion cost values ​​of each channel of each frame carrier image to obtain a total distortion cost value of each frame carrier image; The total distortion cost value of each frame carrier image is multiplied by the sum of the squares of the differences between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image.

3. The method according to claim 2, characterized in that Also includes: Acquire a color index image of a current frame carrier image, wherein the current frame carrier image is any frame after the first frame carrier image in the multiple frames carrier image; Performing grayscale conversion on the color index image of the current frame carrier image to obtain a grayscale image of the current frame carrier image; Acquire a color index image of a previous frame carrier image of the current frame carrier image; Perform grayscale conversion on the color index image of the previous frame of steganographic image to obtain the grayscale image of the previous frame of carrier image; The step of multiplying the total distortion cost value of each frame carrier image by the sum of squares of differences between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image comprises: Subtract the grayscale image of the current frame carrier image from the grayscale image of the previous frame carrier image and then square it to obtain the brightness change of each pixel in the current frame carrier image; Get brightness change threshold; When the brightness change of a pixel in the current frame carrier image is greater than the brightness change threshold, the total distortion cost value of the current frame carrier image is multiplied by the sum of the squares of the differences between the pixel value of each channel of the pixel and the modified pixel value to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

4. The method according to claim 2, characterized in that: The step of multiplying the total distortion cost value of each frame carrier image by the sum of squares of differences between the pixel value of each channel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image comprises: Get brightness change threshold; Obtaining a distortion cost weight, wherein the distortion cost weight is a value greater than 1; When the brightness change of a pixel in the current frame carrier image is not greater than the brightness change threshold, the total distortion cost value of the current frame carrier image is multiplied by the sum of the squares of the differences between the pixel values ​​of each channel of the pixel and the modified pixel value, and then multiplied by the distortion cost weight to obtain the color change of the pixel, so as to obtain the distortion cost matrix of each frame carrier image.

5. The method according to any one of claims 1 to 4, characterized in that: Also includes: Binarizing the color index images of the carrier images of each frame to obtain a binary image of each carrier image of each frame; Extracting the boundary information of the binary image of each frame carrier image to obtain the boundary information value of each pixel of each frame carrier image; Get the true boundary value; The step of obtaining the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image comprises: For each pixel of each frame carrier image, when the boundary information value of the pixel is equal to the true boundary value, the distortion cost of the pixel is obtained according to the pixel values ​​of each channel of the pixel and the modified pixel value to obtain the distortion cost matrix of each frame carrier image.

6. The method according to claim 5, characterized in that Also includes: Get the preset distortion value; The step of obtaining the distortion cost matrix of each frame carrier image according to the pixel values ​​of each channel of each frame carrier image and the modified pixel values ​​of each channel of each frame carrier image further includes: For each pixel of each frame carrier image, when the boundary information value of the pixel is not equal to the true boundary value, the distortion cost of the pixel is obtained as the preset distortion value to obtain the distortion cost matrix of each frame carrier image.

7. A dynamic image steganography device, characterized in that: include: An index image acquisition module, used to obtain a color index image of each frame of a carrier image in a plurality of frames of carrier images, wherein the plurality of frames of carrier images are obtained from the dynamic image, and the color index image includes an index matrix and a color palette; An index value modification module, used to modify each value in the index matrix to obtain a modified index matrix; A first pixel value obtaining module, used for indexing the palette according to the index matrix to obtain the pixel value of each channel of each frame carrier image; A second pixel value obtaining module is used to index the color palette according to the modified index matrix to obtain the modified pixel value of each channel of each frame carrier image; A high-pass filter module is used to filter the pixels of each channel of each frame carrier image using a high-pass filter and then take the absolute value of the filtering result; A channel distortion cost calculation module is used to use a low-pass filter to smooth the absolute value of the filtering result to obtain the final residual and then take the inverse to obtain the distortion cost value of each channel of each frame carrier image; A distortion cost obtaining module, used for obtaining a distortion cost matrix of each frame carrier image according to the pixel value of each channel of each frame carrier image and the modified pixel value of each channel of each frame carrier image; The distortion cost obtaining module includes: a pixel difference module, used to obtain the difference between the pixel value of each channel of each frame carrier image and the modified pixel value; an image distortion cost calculation module, used to obtain the distortion cost matrix of each frame carrier image according to the difference between the pixel value of each channel of each frame carrier image and the modified pixel value and the distortion cost value of each channel of each frame carrier image; A steganographic index matrix obtaining module, used for embedding the information to be steganographic into the index matrix based on the distortion cost matrix of each frame carrier image, and obtaining the steganographic index matrix of each frame carrier image; The steganographic image acquisition module is used to obtain multiple frames of steganographic images according to the steganographic index matrix of each frame carrier image and the color palette of each frame carrier image to synthesize a dynamic steganographic image.

8. A device comprising: A memory, a processor, and executable instructions stored in the memory and executable in the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the executable instructions.

9. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that: When the executable instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.