CN111105340B - Picture information hiding method and device - Google Patents

Picture information hiding method and device Download PDF

Info

Publication number
CN111105340B
CN111105340B CN201911341814.0A CN201911341814A CN111105340B CN 111105340 B CN111105340 B CN 111105340B CN 201911341814 A CN201911341814 A CN 201911341814A CN 111105340 B CN111105340 B CN 111105340B
Authority
CN
China
Prior art keywords
picture
jth column
ith row
pixel point
channel value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911341814.0A
Other languages
Chinese (zh)
Other versions
CN111105340A (en
Inventor
任志敏
刘子明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Vocational Institute of Textile and Garment
Original Assignee
Changzhou Vocational Institute of Textile and Garment
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 Changzhou Vocational Institute of Textile and Garment filed Critical Changzhou Vocational Institute of Textile and Garment
Priority to CN201911341814.0A priority Critical patent/CN111105340B/en
Publication of CN111105340A publication Critical patent/CN111105340A/en
Application granted granted Critical
Publication of CN111105340B publication Critical patent/CN111105340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0085Time domain based watermarking, e.g. watermarks spread over several images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0062Embedding of the watermark in text images, e.g. watermarking text documents using letter skew, letter distance or row distance

Abstract

The invention discloses a picture information hiding method and device, and belongs to the technical field of information security. The method comprises the following steps: acquiring n original pictures; generating a first intermediate picture by using picture data of n original pictures by adopting a first rule; processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture; generating a corresponding noise picture by using the data of the original picture and the second intermediate picture for each original picture; for each original picture, generating a corresponding hidden picture by utilizing the original picture and the data of the noise picture corresponding to the original picture; the problems that the time consumption for selecting the picture to be processed from a plurality of pictures is more, the process for calling the picture processing function is complex, the process requiring manual operation of a user is too many, and the user experience is not high when picture information is hidden are solved; the effect of higher use experience when the user conceals the picture information is achieved.

Description

Picture information hiding method and device
Technical Field
The present invention relates to the field of information security technologies, and in particular, to a method and an apparatus for hiding picture information.
Background
With the continuous development and perfection of communication technology, more and more users share their daily life with other people through a network, for example, transmit their pictures to a social network, so that friends can enjoy and know their life status. However, with the enhancement of the privacy awareness of users, some pictures related to the privacy of the user are not suitable to be directly transmitted to the network.
In general, there are two ways in which a user processes a picture in order to hide picture information related to his privacy: firstly, cutting out a region related to privacy of a picture; second, the region of the picture that is related to its privacy is subjected to a "mosaic" process, which corresponds to sampling of the image signal at a lower frequency than the original data, which, according to the nyquist sampling theorem, necessarily results in irreversible data loss if this sampling frequency is lower than 2 times the frequency of the original data.
For the two processing modes, when a user processes the picture information related to privacy, the user needs to download an application program with a picture processing function, select a picture to be processed from pictures of the mobile communication terminal after entering the application program, import the picture into the application program, process the picture after importing, and if the number of pictures stored in the mobile communication terminal is large, the user needs to consume a large amount of time to select the picture to be processed from a plurality of pictures, in addition, the process of calling the picture processing function is complex, the process of requiring manual operation of the user is too many, and the user experience is not high when the picture information is hidden.
Disclosure of Invention
In order to solve the problems that in the prior art, a user spends more time selecting a picture to be processed from a plurality of pictures, the process of calling a picture processing function is complex, and the manual operation process of the user is required to be too much, so that the user experience is not high when picture information hiding is performed, the embodiment of the invention provides a picture information hiding method and device. The technical scheme is as follows:
in a first aspect, a method for hiding picture information is provided, and n original pictures are obtained;
generating a first intermediate picture by using picture data of n original pictures by adopting a first rule;
processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture;
generating a corresponding noise picture by using the data of the original picture and the second intermediate picture for each original picture;
and generating a corresponding hidden picture by using the data of the noise picture for each original picture.
Optionally, the generating the first intermediate picture by using the picture data of the n original pictures according to the first rule includes: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in n original pictures, and an exclusive or result is obtained and is determined to be the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture;
exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n original pictures, and an exclusive or result is obtained and is determined to be the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture;
and carrying out exclusive OR on the blue channel values of the pixel points of the ith row and the jth column in the n original pictures, and determining an exclusive OR result as the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture.
Optionally, the processing the first intermediate picture to obtain a second intermediate picture by adopting a second rule includes: turning over the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the second intermediate picture;
turning over the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the second intermediate picture;
and turning over the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture.
Optionally, for each original picture, generating a corresponding noise picture by using the data of the original picture and the second intermediate picture includes: for each original picture, carrying out exclusive or on the red channel value of each pixel point in the ith row and the jth column in the original picture and the red channel value of each pixel point in the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the red channel value of each pixel point in the ith row and the jth column in the noise picture;
for each original picture, performing exclusive or on the green channel value of each pixel point in the ith row and the jth column in the original picture and the green channel value of each pixel point in the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the green channel value of each pixel point in the ith row and the jth column in the noise picture;
and for each original picture, carrying out exclusive or on the blue channel value of the pixel point of the ith row and the jth column in the original picture and the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the noise picture.
Optionally, for each original picture, generating a corresponding hidden picture by using the data of the noise picture includes:
sorting the n original pictures;
if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the hidden picture is the exclusive or result of any color channel of the pixel points of the ith row and the jth column in the nth noise picture and n-2 and n-1;
the original pictures ordered in 1 st or 2 nd are determined to be their corresponding noise pictures as their corresponding hidden pictures.
Optionally, the picture information hiding method further includes: acquiring n hidden pictures;
for each hidden picture, generating a corresponding noise picture by utilizing the hidden picture and the data of the corresponding hidden picture;
generating a third intermediate picture by using picture data of n noise pictures by adopting a third rule;
processing the third intermediate picture by adopting a fourth rule to obtain a fourth intermediate picture;
and generating a corresponding original picture by using the data of the noise picture and the fourth intermediate picture for each hidden picture.
Optionally, for each hidden picture, generating a corresponding noise picture by using the hidden picture and the data of the hidden picture corresponding to the hidden picture includes:
sorting the n hidden pictures;
if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the noise picture is the exclusive or result of any color channel of the pixel points of all the ith row and the jth column in the noise picture of the nth-2 and the nth-1;
and determining the hidden pictures which are ordered in the 1 st or 2 nd as the corresponding noise pictures.
Optionally, the generating a third intermediate picture by using the picture data of the n noise pictures according to the third rule includes: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in n noise pictures, and an exclusive or result is obtained and is determined to be the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture;
exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n noise pictures, and an exclusive or result is determined to be the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture;
and carrying out exclusive OR on the blue channel values of the pixel points of the ith row and the jth column in the n noise pictures, and determining an exclusive OR result as the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture.
Optionally, the processing the third intermediate picture to obtain a fourth intermediate picture by adopting a fourth rule includes: turning over the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture;
turning over the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture;
and turning over the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture.
Optionally, for each hidden picture, generating a corresponding original picture by using the data of the noise picture and the fourth intermediate picture includes: for each noise picture, performing exclusive or on the red channel value of the pixel point of the ith row and the jth column in the hidden picture and the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the red channel value of the pixel point of the ith row and the jth column in the original picture;
for each hidden picture, performing exclusive or on the green channel value of the pixel point of the ith row and the jth column in the noise picture and the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the green channel value of the pixel point of the ith row and the jth column in the original picture;
and for each hidden picture, performing exclusive or on the blue channel value of the pixel point of the ith row and the jth column in the noise picture and the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the original picture.
In a second aspect, a mobile communication terminal readable storage medium is provided, where one or more instructions are stored in the mobile communication terminal readable storage medium, where the one or more instructions implement the method for hiding picture information as described in any one of the above when executed by a processor of the mobile communication terminal.
In a third aspect, there is provided a control device of a mobile communication terminal, the control device comprising:
a memory and a processor;
at least one program instruction is stored in the memory;
the processor is configured to implement the picture information hiding method according to any one of the above by loading and executing the at least one program instruction.
The technical scheme provided by the embodiment of the invention adopts a first rule, and generates a first intermediate picture by using picture data of n original pictures; processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture; for each original picture, generating a corresponding noise picture by using the data of the original picture and the second intermediate picture; and generating a corresponding hidden picture by using the data of the noise picture for each original picture. The technical scheme provided by the embodiment of the invention has the beneficial effects that: the second intermediate picture is obtained by processing the first intermediate picture, so that the randomness of the hidden picture is enhanced, the difficulty of cracking is increased, and the effect that a user hides the picture information is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a method flowchart of a picture information hiding method provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a picture information hiding algorithm of the picture information hiding method shown in FIG. 1;
FIG. 3 is a method flow diagram of a picture information restoration method provided in one embodiment of the present invention;
fig. 4 is a schematic diagram of a picture information restoration algorithm of the picture information restoration method shown in fig. 3.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1 and fig. 2, a method flowchart of a picture information hiding method according to an embodiment of the present invention is shown. As shown in fig. 1, the picture information hiding method may include:
step 110, obtaining n original pictures;
step 120, generating a first intermediate picture by using picture data of n original pictures by adopting a first rule;
step 130, processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture;
step 140, for each original picture, generating a corresponding noise picture by using the data of the original picture and the second intermediate picture;
and step 150, for each original picture, generating a corresponding hidden picture by using the data of the noise picture.
The carrier for realizing information hiding can be a data file such as an image or a picture. In this embodiment, a BMP (BITMAP) format picture serving as a carrier is mainly hidden by an algorithm, so that after a plurality of pictures are processed by the algorithm, a plurality of pictures to be transmitted are generated. Specifically, according to the file arrangement rule of BMP pictures, the first 14 bytes are the file header of BMP pictures, and the next 40 bytes are the file information header of BMP pictures. For a BMP picture of 256 colors, the next is to store 1024 bytes of color table, and finally store the actual picture data. For a 24-bit true color BMP picture, the 54-byte file header is followed by the actual RGB picture data, 8 bits per color component, with one pixel represented by 24 bits. And hiding the BMP picture, and mainly processing each pixel data of the BMP picture.
The first rule is adopted, and the first intermediate picture is generated by using picture data of n original pictures, and the first intermediate picture comprises: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in the n pictures to be hidden, and an exclusive or result is determined to be the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture; exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n pictures to be hidden, and an exclusive or result is obtained and is determined to be the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture; and carrying out exclusive OR on the blue channel values of the pixel points of the ith row and the jth column in the n pictures to be hidden, and determining an exclusive OR result as the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture, wherein the ith row and the jth column can be any pixel point in the pictures.
For example, there are n original pictures to be hidden, if n is an even number, performing n exclusive OR operations on the pixels of each picture in turn, that is, P1≡P2≡P3 … ≡Pn; if n is an odd number, performing n-1 exclusive OR operations, namely P1P 2P 3 … Pn-1; and generating a random picture M1 after the exclusive OR operation, wherein M1 is the first intermediate picture.
The processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture includes: turning over the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the second intermediate picture; turning over the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the second intermediate picture; and turning over the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture.
For example, each pixel data of the first intermediate picture M1 is flipped, and the high-low value of M1, that is, m2= ((M1 &0x 01) < < 7) |((M1 &0x 02) < < 5) |((M1 &0x 04) < < 3) |((M1 &0x 08) < < 1) | ((M1 &0x 10) > > 1) > ((M1 &0x 20) > > 3) | ((M1 &0x 40) > > 5) | ((M1 &0x 80) > > 7), is flipped to generate a random picture M2, and M2 is the second intermediate picture. For example, the value of a pixel point in M1 is 0x12, that is, 00010010, the pixel point value of M2 generated after the inversion is 01001000, and the pixel data of picture M2 generated after the inversion is more random. The middle picture M2 is generated by turning high and low positions, so that the calculation time is greatly shortened, the color depth is increased, the randomness of the hidden picture is enhanced, and the cracking difficulty is increased.
For each original picture, generating a corresponding noise picture by using the data of the original picture and the second intermediate picture, wherein the noise picture comprises; and performing exclusive OR operation again through pixel point values corresponding to the second intermediate picture and the original picture, namely, yi=Pi++M2, (i is less than or equal to n). Specifically, for each original picture, performing exclusive or on the red channel value of the pixel point of the ith row and the jth column in the picture to be hidden and the red channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the red channel value of the pixel point of the ith row and the jth column in the noise picture; for each original picture, carrying out exclusive or on the green channel value of the pixel point of the ith row and the jth column in the picture to be hidden and the green channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the green channel value of the pixel point of the ith row and the jth column in the noise picture; and for each original picture, carrying out exclusive or on the blue channel value of the pixel point of the ith row and the jth column in the picture to be hidden and the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the noise picture.
For each original picture, generating a corresponding hidden picture by using the data of the noise picture, including: sorting the n noise pictures; if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the hidden picture is the exclusive or result of any color channel of the pixel points of the ith row and the jth column in the nth-numbered 2, the nth-1 and the nth-numbered noise picture; and determining the noise pictures ordered in the 1 st or 2 nd as corresponding hidden pictures. Specifically, H2=Y1, H2=Y2, H2=Y1≡Y2≡Y3, h4=y2≡y3≡y4, … …, hn=yn-2≡yn-1≡yn.
In summary, the technical solution provided by the embodiment of the present invention solves the problems in the prior art that the user spends much time selecting the picture to be processed from the plurality of pictures, the process of calling the picture processing function is complex, the process of requiring the manual operation of the user is too many, and the user experience is not high when the picture information is hidden. The technical scheme provided by the embodiment of the invention has the beneficial effects that: the second intermediate picture is obtained by processing the first intermediate picture, so that the randomness of the hidden picture is enhanced, the difficulty of cracking is increased, and the effect that a user hides the picture information is achieved.
Referring to fig. 3 and fig. 4, the present invention also provides a method for recovering a picture after hiding picture information, which is used for hiding a picture generated by the method for hiding picture information as described in any one of the above, and the method for recovering a picture includes: acquiring n hidden pictures;
for each hidden picture, generating a corresponding noise picture by utilizing the hidden picture and the data of the corresponding hidden picture;
generating a third intermediate picture by using picture data of n noise pictures by adopting a third rule;
processing the third intermediate picture by adopting a fourth rule to obtain a fourth intermediate picture;
and generating a corresponding original picture by utilizing the data of the hidden picture and the fourth intermediate picture for each hidden picture.
For each hidden picture, generating a corresponding noise picture by using the hidden picture and the data of the corresponding hidden picture, including: sorting the n hidden pictures; if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the noise picture is the exclusive or result of any color channel of the pixel points of all the ith row and the jth column in the noise picture of the nth-2 and the nth-1; and determining the hidden pictures which are ordered in the 1 st or 2 nd as the corresponding noise pictures. Specifically, y1=h1, y2=h2, y3=y1≡y2≡h3, y4=y2≡y3≡h4, … …, yn=yn-2≡yn-1≡hn.
The generating a third intermediate picture by using the picture data of the n noise pictures according to the third rule includes: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in n noise pictures, and an exclusive or result is obtained and is determined to be the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture; exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n noise pictures, and an exclusive or result is determined to be the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture; and carrying out exclusive OR on the blue channel values of the pixel points of the ith row and the jth column in the n noise pictures, and determining an exclusive OR result as the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture.
For example, there are n noise pictures, and n exclusive-or operations are sequentially performed on the pixel points of each picture to obtain the third intermediate picture, that is, the third intermediate picture r1=y1≡y2≡y3 … … ≡yn.
The fourth rule is adopted to process the third intermediate picture R1 to obtain a fourth intermediate picture R2, and the high-low level value of R1 is turned over, that is, r2= ((R1 &0x 01) < < 7) | ((R1 &0x 02) < < 5) | ((R1 &0x 04) < < 3) | ((R1 &0x 08) < < 1) | ((R1 &0x 10) > > 1) > ((R1 &0x 20) > > 3) | ((R1 &0x 40) > > 5) | ((R1 &0x 80) > > 7), including: turning over the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture R1, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture R2; turning over the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture R1, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture R2; and turning over the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture R1, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture R2.
Wherein for each hidden picture, generating a corresponding original picture using the data of the noise picture and the fourth intermediate picture includes: the original picture Pn is generated from the fourth intermediate picture R2 in such a way that pn=yn≡r2. For example, for each hidden picture, performing exclusive or on the red channel value of the pixel point of the ith row and the jth column in the noise picture and the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining the exclusive or result as the red channel value of the pixel point of the ith row and the jth column in the original picture; for each hidden picture, performing exclusive or on the green channel value of the pixel point of the ith row and the jth column in the noise picture and the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the green channel value of the pixel point of the ith row and the jth column in the original picture; and for each hidden picture, performing exclusive or on the blue channel value of the pixel point of the ith row and the jth column in the noise picture and the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the original picture.
An embodiment of the present invention further provides a mobile communication terminal readable storage medium, where one or more instructions are stored in the mobile communication terminal readable storage medium, where the one or more instructions implement the picture information hiding method according to any one of the above embodiments when executed by a processor in the mobile communication terminal.
An embodiment of the present invention also provides a control device for a mobile communication terminal, the control device including: a memory and a processor; at least one program instruction is stored in the memory; the processor is configured to implement the picture information hiding method according to any one of the above embodiments by loading and executing the at least one program instruction.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature of a "first" or "second" as defined may include one or more such feature, either explicitly or implicitly. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a storage medium readable by a mobile communication terminal, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (4)

1. A picture information hiding method is characterized in that n original pictures are obtained;
adopting a first rule, generating a first intermediate picture by using picture data of n original pictures, wherein the first intermediate picture comprises: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in n original pictures, and an exclusive or result is obtained and is determined to be the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture; exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n original pictures, and an exclusive or result is obtained and is determined to be the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture; exclusive or is carried out on the blue channel values of the pixel points of the ith row and the jth column in the n original pictures, and an exclusive or result is obtained and is determined to be the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture;
and processing the first intermediate picture by adopting a second rule to obtain a second intermediate picture, wherein the processing comprises the following steps: turning over the red channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the second intermediate picture; turning over the green channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the second intermediate picture; turning over the blue channel value of the pixel point of the ith row and the jth column in the first intermediate picture, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture;
for each original picture, generating a corresponding noise picture by using the data of the original picture and the second intermediate picture, including: for each original picture, carrying out exclusive or on the red channel value of the pixel point of the ith row and the jth column in each original picture and the red channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the red channel value of the pixel point of the ith row and the jth column in the noise picture corresponding to each hidden picture;
for each original picture, performing exclusive or on the green channel value of the pixel point of each ith row and jth column in the original picture and the green channel value of the pixel point of the ith row and jth column in the second intermediate picture, and determining an exclusive or result as the green channel value of the pixel point of the ith row and jth column in the noise picture corresponding to each hidden picture;
for each original picture, carrying out exclusive or on the blue channel value of the pixel point of the ith row and the jth column in each original picture and the blue channel value of the pixel point of the ith row and the jth column in the second intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the noise picture corresponding to each hidden picture;
for each original picture, generating a corresponding hidden picture by using the data of the noise picture, including:
sorting the n noise pictures;
if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the hidden picture is the exclusive or result of any color channel of the pixel points of the ith row and the jth column in the nth-numbered 2, the nth-1 and the nth-numbered noise picture;
and determining the noise pictures ordered in the 1 st or 2 nd as corresponding hidden pictures.
2. A picture information restoration method for a hidden picture generated by the picture information hiding method according to claim 1, the method comprising: acquiring n hidden pictures;
for each hidden picture, generating a corresponding noise picture by using the hidden picture and the data of the corresponding hidden picture, including:
sorting the n hidden pictures;
if n is greater than or equal to 3, the value of any color channel corresponding to the pixel point of the ith row and the jth column in the noise picture is the exclusive or result of any color channel of the pixel points of all the ith row and the jth column in the noise picture of the nth-2 and the nth-1;
the hidden pictures ordered in the 1 st or 2 nd are determined to be the corresponding noise pictures;
adopting a third rule, generating a third intermediate picture by using picture data of n noise pictures, wherein the third intermediate picture comprises: exclusive or is carried out on red channel values of pixel points of the ith row and the jth column in n noise pictures, and an exclusive or result is obtained and is determined to be the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture;
exclusive or is carried out on the green channel values of the pixel points of the ith row and the jth column in the n noise pictures, and an exclusive or result is determined to be the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture;
exclusive or is carried out on the blue channel values of the pixel points of the ith row and the jth column in the n noise pictures, and an exclusive or result is determined to be the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture;
and processing the third intermediate picture by adopting a fourth rule to obtain a fourth intermediate picture, wherein the processing comprises the following steps:
turning over the red channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture;
turning over the green channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture;
turning over the blue channel value of the pixel point of the ith row and the jth column in the third intermediate picture, and determining the obtained turning over result as the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture;
for each hidden picture, generating a corresponding original picture by using the data of the noise picture and the fourth intermediate picture, including:
for each noise picture, performing exclusive or on the red channel value of the pixel point of the ith row and the jth column in the noise picture and the red channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the red channel value of the pixel point of the ith row and the jth column in the original picture;
for each noise picture, performing exclusive or on the green channel value of the pixel point of the ith row and the jth column in the noise picture and the green channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the green channel value of the pixel point of the ith row and the jth column in the original picture;
and for each noise picture, performing exclusive or on the blue channel value of the pixel point of the ith row and the jth column in the noise picture and the blue channel value of the pixel point of the ith row and the jth column in the fourth intermediate picture, and determining an exclusive or result as the blue channel value of the pixel point of the ith row and the jth column in the original picture.
3. A mobile communication terminal readable storage medium, wherein one or more instructions are stored in the mobile communication terminal readable storage medium, and the one or more instructions implement the picture information hiding method described in claim 1 when executed by a processor of the mobile communication terminal.
4. A terminal device, characterized in that the terminal device comprises:
a memory and a processor;
at least one program instruction is stored in the memory;
the processor is configured to implement the picture information hiding method of claim 1 by loading and executing the at least one program instruction.
CN201911341814.0A 2019-12-24 2019-12-24 Picture information hiding method and device Active CN111105340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911341814.0A CN111105340B (en) 2019-12-24 2019-12-24 Picture information hiding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911341814.0A CN111105340B (en) 2019-12-24 2019-12-24 Picture information hiding method and device

Publications (2)

Publication Number Publication Date
CN111105340A CN111105340A (en) 2020-05-05
CN111105340B true CN111105340B (en) 2023-11-14

Family

ID=70423995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911341814.0A Active CN111105340B (en) 2019-12-24 2019-12-24 Picture information hiding method and device

Country Status (1)

Country Link
CN (1) CN111105340B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088098A (en) * 2003-12-05 2007-12-12 新泽西理工学院 System and method for robust lossless data hiding and recovering from the integer wavelet representation
CN108769520A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Electronic device, image processing method and computer readable storage medium
CN110417539A (en) * 2019-08-02 2019-11-05 齐齐哈尔大学 A kind of color image encrypting method of dynamic chaos and matrix convolution operation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679570A (en) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 Image loading display method, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088098A (en) * 2003-12-05 2007-12-12 新泽西理工学院 System and method for robust lossless data hiding and recovering from the integer wavelet representation
CN108769520A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Electronic device, image processing method and computer readable storage medium
CN110417539A (en) * 2019-08-02 2019-11-05 齐齐哈尔大学 A kind of color image encrypting method of dynamic chaos and matrix convolution operation

Also Published As

Publication number Publication date
CN111105340A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111340711B (en) Super-resolution reconstruction method, device, equipment and storage medium
US9418398B2 (en) Low power subpixel rendering on RGBW display
JP7100729B2 (en) Image enhancement model training methods, equipment and storage media
CN105723445B (en) Display device and its control method
Wu et al. A novel LSB data hiding scheme with the lowest distortion
CN103403759A (en) Local multiscale tone-mapping operator
CN111105375B (en) Image generation method, model training method and device thereof, and electronic equipment
CN111951149B (en) Image information steganography method based on neural network
CN102289786B (en) Edge anti-aliasing method and device for image scaling
CN112766189A (en) Depth forgery detection method, device, storage medium, and electronic apparatus
Wen et al. Image superresolution using densely connected residual networks
CN111338743B (en) Interface processing method and device and storage medium
CN112995534A (en) Video generation method, device, equipment and readable storage medium
CN111105340B (en) Picture information hiding method and device
US20180018762A1 (en) Method, device and medium for enhancing saturation
US11335057B2 (en) Video lighting using depth and virtual lights
WO2020221089A1 (en) Call interface display method, electronic device and computer readable medium
CN110611739B (en) Video color ring playing method, terminal and computer readable storage medium
CN113298723A (en) Video processing method and device, electronic equipment and computer storage medium
CN115953597B (en) Image processing method, device, equipment and medium
CN110766597A (en) Picture camouflaging method, picture camouflaging device, electronic equipment and storage medium
Ko et al. 3D Crosstalk reduction of the stereoscopic display by the bit-expandable dynamic capacitance compensation method
JP2016080950A (en) Image processing device, method for controlling the same, image display device, and computer program
CN108632138A (en) A kind of commodity network safety communicating method based on image latent writing art
Zhu et al. Generative adversarial network-based image super-resolution with a novel quality loss

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant