A high-reliability information embedding method and system for improving image usability
By performing bit-plane compression and encoding on the image, and selecting the bit-plane with the highest compression ratio for encoding, the problems of low embedding capacity and poor carrier image quality in the existing technology are solved, realizing lossless or near-lossless information embedding, and improving the usability and security of the image.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAN INSTITUE OF SPACE RADIO TECH
- Filing Date
- 2023-09-11
- Publication Date
- 2026-07-03
AI Technical Summary
Existing image processing or embedding methods suffer from low embedding capacity and poor quality of recovered carrier images, failing to meet the usability requirements of high-resolution images.
By analyzing the characteristics of each plane of the image, and combining lossless image compression with different data embedding methods and encoding methods, the plane with the highest compression ratio is selected for encoding. Four encoding methods are used to identify the data, thereby achieving lossless or near-lossless information embedding.
Without increasing channel resources, it improves image transmission capacity and carrier image quality, meets various image availability requirements, and enhances data transmission security and the reliability of recovering carrier images.
Smart Images

Figure CN117412057B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a data transmission method, and more particularly to a highly reliable information embedding method for improving image usability, belonging to the field of communication (such as data communication technology). Background Technology
[0002] With the development of technology, people's demand for high-resolution images is increasing, and the amount of data is growing, making data compression imperative. Without feature analysis and differentiation of this data, data processing becomes difficult and inefficient, making it hard to guarantee the high reliability requirements of the images.
[0003] Current conventional image processing or embedding methods suffer from problems such as low embedding capacity and poor image quality of the recovered carrier, resulting in low image usability and failing to meet the needs of satellite engineering applications. Summary of the Invention
[0004] The technical problem solved by this invention is to overcome the shortcomings of the prior art and propose a highly reliable information embedding method to improve image usability. By analyzing the characteristics of each plane of the image and combining lossless image compression, different data embedding methods and encoding methods are adopted to achieve lossless or near-lossless information embedding of the image.
[0005] The technical solution adopted in this invention is:
[0006] A highly reliable information embedding method for improving image usability includes the following steps:
[0007] (1) Convert an octet grayscale image of length N×N bytes into eight sets of bit plane data, namely bit plane 0 to 7, where each bit plane is N×N in length;
[0008] (2) Perform lossless compression on the seven sets of high-level bit surface data, i.e., bit surface 1 to 7, and select the set of bit surface data with the highest compression ratio as the compression bit surface, with a compression ratio of R;
[0009] (3) Based on the image availability requirements, data encoding is performed on bit plane 0 and the compressed bit plane;
[0010] (4) Embed information into the encoded data;
[0011] (5) Transmitting data containing secret information;
[0012] (6) Extract embedded information according to different encoding methods;
[0013] (7) Decode the data of bit plane 0 and compressed bit plane according to different encoding methods to restore the original carrier image.
[0014] Furthermore, in conjunction with image availability requirements, data encoding is performed on bit plane 0 and the compressed bit plane, specifically using four methods. Each encoding method uses 2 bits to identify the data, which is placed in the lower two bits of bit plane 0. The specific meanings are as follows:
[0015] 00: Encoding method 1, indicating lossless information embedding, with an information embedding rate of
[0016] 01: Encoding method 2 indicates lossless information embedding, with an information embedding rate of
[0017] 10: Encoding method 3 indicates near-lossless embedding, with an information embedding rate of
[0018] 11: Encoding method 4 represents near-lossless embedding, with an information embedding rate of...
[0019] Furthermore, the encoding method 1 specifically includes:
[0020] (1) Set the two lowest two bits of bit 0, namely the 0th and 1st bits, to “00”;
[0021] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0022] (3) Except for bits 0 to 4, the other bits of bit plane 0 retain the original data of bit plane 0;
[0023] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0024] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0025] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0026] (7) Bits 23-(22+N / R) of the compressed bit plane are used to store the compressed bit plane data;
[0027] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0028] Furthermore, the encoding method 2 is specifically as follows:
[0029] (1) Set the two lowest bits of bit 0, i.e. the 0th and 1st bits, to “01”;
[0030] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0031] (3) Except for bits 0 to 4, the other bits of bit plane 0 keep the original data of bit plane 0 unchanged; under this encoding method, a segment of the original data of bit plane 0 is consistent with the compressed data of bit plane, and the other bits of bit plane 0 contain N / R bits of compressed data.
[0032] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0033] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0034] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0035] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0036] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0037] Furthermore, the encoding method 3 is specifically as follows:
[0038] (1) Set the two lowest two bits of bit 0, namely the 0th and 1st bits, to “10”;
[0039] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0040] (3) Except for bits 0 to 4, select the segment of bit plane 0 that is most similar to the compressed data of bit plane and turn it into compressed data; keep the original data of bit plane 0 for the other bits.
[0041] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0042] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0043] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0044] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0045] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0046] Furthermore, the encoding method 4 is specifically as follows:
[0047] (1) Set the two lowest two bits of bit plane 0, namely the 0th and 1st bits, to “11”;
[0048] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0049] (3) Except for bits 0 to 4, select the segment that is most similar to the compressed data of bit plane 0 and turn it into compressed data; the other bits are used for information embedding.
[0050] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0051] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0052] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0053] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0054] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0055] Furthermore, the information embedding process for the encoded data specifically includes:
[0056] According to the encoding method, the secret information is embedded bit by bit into the corresponding positions in bit plane 0 and the compressed bit plane:
[0057] In encoding method 1, the secret information is only embedded in the remaining bits of the compressed bit plane, and the original carrier data can be recovered without loss.
[0058] In encoding method 2, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data is recovered without loss.
[0059] In encoding method 3, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data can be recovered almost without loss.
[0060] In encoding method 4, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the remaining bits of bit plane 0 are also embedded with secret information, so that the original carrier data can be recovered almost without loss.
[0061] On the other hand, the present invention also proposes a highly reliable information embedding system for improving image usability, comprising:
[0062] Bit-plane data conversion module: Converts an 8-bit grayscale image of length N×N bytes into eight sets of bit-plane data, namely bit-plane 0 to 7, where each bit-plane is N×N in length;
[0063] Compression plane determination module: Perform lossless compression on the seven sets of high-level plane data, namely planes 1 to 7, and select the set of plane data with the highest compression ratio as the compression plane, with a compression ratio of R;
[0064] Data encoding module: Based on image usability requirements, it performs data encoding on bit plane 0 and the compressed bit plane;
[0065] Information embedding module: embeds information into the encoded data and transmits data containing secret information;
[0066] Information extraction module: Extracts embedded information according to different encoding methods, decodes data of bit plane 0 and compressed bit plane according to different encoding methods, and restores the original carrier image.
[0067] The advantages of this invention compared to the prior art are:
[0068] (1) Since the high-level plane of an image has strong correlation, this invention achieves lossless or near-lossless information embedding of the image by performing bit-plane compression and encoding on the image. This can improve the transmission capacity of the system without increasing channel resources, meet various different image availability requirements, and is applicable to various types of data transmission systems.
[0069] (2) When embedding information, the present invention can adopt different encoding methods according to the image availability requirements to meet various different needs such as embedding capacity and carrier image quality.
[0070] (3) This invention employs a high-level compression coding method, which improves the embedding capacity of the image and the quality of the carrier image. Two of the coding methods can losslessly recover the carrier image, achieving an embedding rate of up to [percentage missing]. The other two encoding methods are near-lossless embedding, with embedding rates reaching [percentage missing]. The quality of the recovered carrier images is higher than that of the traditional LSB method.
[0071] (4) The present invention can embed hidden information into images to avoid attracting the attention of malicious attackers on the Internet and enhance the security of data transmission. Attached Figure Description
[0072] Figure 1 This is a flowchart of the method of the present invention;
[0073] Figure 2 This is a schematic diagram of encoding method 1-bit plane 0 encoding;
[0074] Figure 3 This is a schematic diagram of encoding method 2-bit plane 0 encoding;
[0075] Figure 4 This is a schematic diagram of encoding method 3-bit plane 0 encoding;
[0076] Figure 5 This is a schematic diagram of encoding method 4-bit plane 0 encoding;
[0077] Figure 6 This is a schematic diagram of encoding method 1 - compressed bit-plane encoding;
[0078] Figure 7 This is a schematic diagram of encoding methods 2, 3, and 4 - compressed bit-plane encoding. Detailed Implementation
[0079] The following detailed description is provided in conjunction with the accompanying drawings and specific embodiments.
[0080] For image data, the feature distribution of each plane is different. Compared with lower planes, higher plane data have strong correlations and are easier to compress. Based on this idea, this invention analyzes the characteristics of each plane data, performs lossless compression on each plane data, and selects the plane with the best compression performance for encoding processing. Combining different requirements of image data, different encoding methods are adopted to ultimately achieve lossless embedding of information. At the same time, the carrier image can be recovered losslessly or near-losslessly, improving the overall usability of the image.
[0081] like Figure 1 As shown, this invention proposes a highly reliable information embedding method to improve image usability, comprising the following steps:
[0082] (1) Convert an octet grayscale image of length N×N bytes into eight sets of bit plane data, namely bit plane 0 to 7, where each bit plane is N×N in length;
[0083] (2) Perform lossless compression on the seven sets of high-level bit surface data, i.e., bit surface 1 to 7, and select the set of bit surface data with the highest compression ratio as the compression bit surface, with a compression ratio of R;
[0084] (3) Based on the image availability requirements, data encoding is performed on bit plane 0 and the compressed bit plane;
[0085] Specifically, four methods are adopted. The encoding method uses 2 bits to identify the data, which is placed in the lower two bits of bit plane 0. The specific meanings are as follows:
[0086] 00: Encoding method 1, indicating lossless information embedding, with an information embedding rate of
[0087] 01: Encoding method 2 indicates lossless information embedding, with an information embedding rate of
[0088] 10: Encoding method 3 indicates near-lossless embedding, with an information embedding rate of
[0089] 11: Encoding method 4 represents near-lossless embedding, with an information embedding rate of...
[0090] (4) Information embedding is performed on the encoded data, specifically: according to the encoding method, the secret information is embedded bit by bit into the corresponding positions of bit plane 0 and compressed bit plane.
[0091] In encoding method 1, the secret information is only embedded in the remaining bits of the compressed bit plane, and the original carrier data can be recovered without loss, such as... Figure 6 As shown;
[0092] In encoding method 2, secret information is embedded bit-by-bit starting from the 37th bit of the compressed bit plane, and the original carrier data is recovered without loss, such as... Figure 7 As shown;
[0093] In encoding method 3, secret information is embedded bit-by-bit starting from the 37th bit of the compressed bit plane, allowing for near-lossless recovery of the original carrier data, such as... Figure 7 As shown;
[0094] In encoding method 4, secret information is embedded bit-by-bit starting from the 37th bit of the compressed bit plane, and the remaining bits of bit plane 0 are also embedded with secret information. The original carrier data can be recovered almost without loss, such as... Figure 7 As shown.
[0095] (5) Transmitting data containing secret information;
[0096] (6) Extract embedded information according to different encoding methods;
[0097] (7) Decode the data of bit plane 0 and compressed bit plane according to different encoding methods to restore the original carrier image.
[0098] Specifically, such as Figure 2 , Figure 6 As shown, the encoding method 1 described in this invention is specifically as follows:
[0099] (1) Set the two lowest two bits of bit 0, namely the 0th and 1st bits, to “00”;
[0100] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0101] (3) Except for bits 0 to 4, the other bits of bit plane 0 retain the original data of bit plane 0;
[0102] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0103] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0104] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0105] (7) Bits 23-(22+N / R) of the compressed bit plane are used to store the compressed bit plane data;
[0106] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0107] Furthermore, such as Figure 3 , Figure 7 As shown, the encoding method 2 is specifically as follows:
[0108] (1) Set the two lowest bits of bit 0, i.e. the 0th and 1st bits, to “01”;
[0109] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0110] (3) Except for bits 0 to 4, the other bits of bit plane 0 keep the original data of bit plane 0 unchanged; under this encoding method, a segment of the original data of bit plane 0 is consistent with the compressed data of bit plane, and the other bits of bit plane 0 contain N / R bits of compressed data.
[0111] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0112] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0113] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0114] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0115] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0116] Furthermore, such as Figure 4 , Figure 7 As shown, the encoding method 3 is specifically as follows:
[0117] (1) Set the two lowest two bits of bit 0, namely the 0th and 1st bits, to “10”;
[0118] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0119] (3) Except for bits 0 to 4, select the segment of bit plane 0 that is most similar to the compressed data of bit plane and turn it into compressed data; keep the original data of bit plane 0 for the other bits.
[0120] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0121] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0122] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0123] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0124] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0125] Furthermore, such as Figure 5 , Figure 7 As shown, encoding method 4 is specifically as follows:
[0126] (1) Set the two lowest two bits of bit plane 0, namely the 0th and 1st bits, to “11”;
[0127] (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1.
[0128] (3) Except for bits 0 to 4, select the segment that is most similar to the compressed data of bit plane 0 and turn it into compressed data; the other bits are used for information embedding.
[0129] (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0;
[0130] (5) The 5th to 8th bits of the compression plane are used to indicate the compression method of the plane;
[0131] (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which is used to extract the compressed data;
[0132] (7) Bits 23-36 of the compressed bit plane are used to identify the starting bit of the data in bit plane 0 that is consistent with the compressed data of bit plane;
[0133] (8) The remaining bits of the compressed bit plane are used for information embedding.
[0134] On the other hand, the present invention also proposes a highly reliable information embedding system for improving image usability, comprising:
[0135] Bit-plane data conversion module: Converts an 8-bit grayscale image of length N×N bytes into eight sets of bit-plane data, namely bit-plane 0 to 7, where each bit-plane is N×N in length;
[0136] Compression plane determination module: Perform lossless compression on the seven sets of high-level plane data, namely planes 1 to 7, and select the set of plane data with the highest compression ratio as the compression plane, with a compression ratio of R;
[0137] Data encoding module: Based on image usability requirements, it performs data encoding on bit plane 0 and the compressed bit plane;
[0138] Information embedding module: embeds information into the encoded data and transmits data containing secret information;
[0139] Information extraction module: Extracts embedded information according to different encoding methods, decodes data of bit plane 0 and compressed bit plane according to different encoding methods, and restores the original carrier image.
[0140] Example:
[0141] For an 8-bit image of size N×N, the highly reliable information embedding method to improve image usability mainly consists of the following steps:
[0142] Step 1: Divide the N×N image into eight groups of data according to their planes, and label them as plane 0, plane 1, plane 2, plane 3, plane 4, plane 5, plane 6, and plane 7 respectively; each plane has a length of N×N.
[0143] Step 2: Perform lossless compression on plane 1 and plane 7 respectively, and select the plane with the highest compression ratio, with the compression ratio being R:
[0144] Step 3: Encode information according to image availability requirements.
[0145] If the image usability requirement dictates that the carrier image is lossless, first calculate the data segment starting from the 6th bit of bit plane 0, which is identical to the compressed data. If it exists, encoding method 2 is used; otherwise, encoding method 1 is used.
[0146] The encoding method 1 is as follows: (1) Set the lower two bits (bit 0 and bit 1) of bit plane 0 to “00”; (2) Set the 2nd to 4th bits of bit plane 0 to the selected compressed bit plane; (3) Except for the 0th to 4th bits of bit plane 0, the other bits of bit plane 0 remain unchanged; (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) The 5th to 8th bits of the compressed bit plane are used to indicate the compression method of the bit plane; (6) The 9th to 22nd bits of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which can be used to extract the compressed data; (7) The 23rd to (22+N / R)th bits of the compressed bit plane are used to store the compressed data of the bit plane; (8) The remaining bits of the compressed bit plane are used for information embedding.
[0147] The encoding method 2 is used as follows: (1) The lower two bits (bit 0 and bit 1) of bit plane 0 are set to "01"; (2) Bits 2-4 of bit plane 0 are set to the selected compressed bit plane; (3) Except for bits 0 to 4, the other bits of bit plane 0 keep the original data of bit plane 0 unchanged; Under this encoding method, a segment of data in the original data of bit plane 0 is consistent with the compressed data of bit plane, so the other bits of bit plane 0 contain N / R bits of compressed data; (4) Bits 0-4 of the compressed bit plane store bits 0-4 of the original bit plane 0; (5) Bits 5-8 of the compressed bit plane are used to indicate the compression method of the bit plane; (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which can be used to extract the compressed data; (7) Bits 23-36 of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane; (8) The remaining bits of the compressed bit plane are used for information embedding.
[0148] If the image availability requirement is that the carrier image is near lossless, encoding method 3 or encoding method 4 is selected according to the embedding capacity and image quality requirements. Encoding method 3 does not embed data in bit plane 0, while encoding method 4 embeds data in bit plane 0.
[0149] The encoding method 3 is used as follows: (1) Set the lower two bits (bit 0 and bit 1) of bit plane 0 to "10"; (2) Set the 2nd to 4th bits of bit plane 0 to the selected compressed bit plane; (3) Except for the 0th to 4th bits of bit plane 0, select the segment that is most similar to the compressed data of bit plane 0 and turn it into compressed data, while the other bits keep the original data of bit plane 0; (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) The 5th to 8th bits of the compressed bit plane are used to indicate the compression method of the bit plane; (6) The 9th to 22nd bits of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which can be used to extract the compressed data; (7) The 23rd to 36th bits of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane 0; (8) The remaining bits of the compressed bit plane are used for information embedding.
[0150] The encoding method 4 is used as follows: (1) Set the lower two bits (bit 0 and bit 1) of bit plane 0 to "11"; (2) Set the 2nd to 4th bits of bit plane 0 to the selected compressed bit plane; (3) Except for the 0th to 4th bits of bit plane 0, select the segment that is most similar to the compressed data of bit plane and turn it into compressed data, and use the other bits for information embedding; (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) The 5th to 8th bits of the compressed bit plane are used to indicate the compression method of the bit plane; (6) The 9th to 22nd bits of the compressed bit plane are used to identify the length value of the compressed data of the bit plane, which can be used to extract the compressed data; (7) The 23rd to 36th bits of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane; (8) The remaining bits of the compressed bit plane are used for information embedding.
[0151] Compared to the traditional LSB method, encoding method 3 has a lower embedding capacity but a higher quality recovered carrier image; encoding method 4 has a higher embedding capacity but a lower quality recovered carrier image. However, the quality of the recovered carrier image is higher under both encoding methods than under the traditional LSB method.
[0152] Step 4: Embed information into the encoded data:
[0153] If the image size is N×N, and the selected bit-plane data lossless compression ratio is R, then N can be embedded without loss. 2 Bit information; can be embedded in a near-lossless manner. Bit information.
[0154] This completes the information embedding process for improving image usability.
[0155] The parts of this invention not described in detail are common knowledge to those skilled in the art.
Claims
1. A high-reliability information embedding method for improving image usability, characterized by include: An 8-bit grayscale image of length N×N bytes is converted into eight groups of bit plane data, namely bit plane 0~7, where each bit plane is N×N in length; Lossless compression was performed on the seven sets of bit plane data, i.e., bit planes 1 to 7. The set of bit plane data with the highest compression ratio was selected as the compressed bit plane, and the compression ratio was R. Based on image availability requirements, data encoding is performed on bit plane 0 and the compressed bit plane; Embed information into the encoded data; Transmitting data containing secret information; Extract embedded information based on different encoding methods; Data decoding is performed on bit plane 0 and compressed bit plane according to different encoding methods to restore the original carrier image; Based on the image availability requirements, data encoding is performed on bit plane 0 and the compressed bit plane using four methods. Each encoding method uses 2 bits to identify the data, which are placed in the lower two bits of bit plane 0. The specific meanings are as follows: 00: encoding mode 1, indicating lossless information embedding, information embedding rate is ; 01: Encoding method 2 indicates lossless information embedding, with an information embedding rate of ; 10: Encoding method 3 indicates near-lossless embedding, with an information embedding rate of ; 11: Encoding method 4 represents near-lossless embedding, with an information embedding rate of... ; The encoding method 1 is specifically as follows: (1) Set the two lowest bits of bit 0, i.e. the 0th and 1st bits, to "00"; (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1. (3) Except for bits 0 to 4, all other bits in bit plane 0 retain the original data of bit plane 0. (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) Bits 5-8 of the compression plane are used to indicate the compression method of the plane; (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of this bit plane, which is used to extract the compressed data; (7) Bits 23-(22+N / R) of the compressed bit plane are used to store the compressed bit plane data; (8) The remaining bits of this compressed bit plane are used for information embedding; The encoding method 2 is specifically as follows: (1) Set the two lowest bits of bit 0, i.e. the 0th and 1st bits, to "01"; (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1. (3) Except for bits 0 to 4, the other bits of bit plane 0 keep the original data of bit plane 0 unchanged; under this encoding method, a segment of the original data of bit plane 0 is consistent with the compressed data of bit plane, and the other bits of bit plane 0 contain N / R bits of compressed data; (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) Bits 5-8 of the compression plane are used to indicate the compression method of the plane; (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of this bit plane, which is used to extract the compressed data; (7) Bits 23-36 of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane; (8) The remaining bits of this compressed bit plane are used for information embedding; The encoding method 3 is specifically as follows: (1) Set the two lowest two bits of bit 0, i.e. the 0th and 1st bits, to "10"; (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1. (3) Except for bits 0 to 4, select the segment of bit plane 0 that is most similar to the compressed data of bit plane and turn it into compressed data; keep the original data of bit plane 0 for the other bits. (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) Bits 5-8 of the compression plane are used to indicate the compression method of the plane; (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of this bit plane, which is used to extract the compressed data; (7) Bits 23-36 of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane; (8) The remaining bits of this compressed bit plane are used for information embedding; The encoding method 4 is specifically as follows: (1) Set the two lowest two bits of bit 0, i.e. the 0th and 1st bits, to "11"; (2) Set bits 2-4 of bit plane 0 to the selected compressed bit plane. "111" indicates that the selected compressed bit plane is bit plane 7, "110" indicates that the selected compressed bit plane is bit plane 6, "101" indicates that the selected compressed bit plane is bit plane 5, "100" indicates that the selected compressed bit plane is bit plane 4, "011" indicates that the selected compressed bit plane is bit plane 3, "010" indicates that the selected compressed bit plane is bit plane 2, and "001" indicates that the selected compressed bit plane is bit plane 1. (3) Except for bits 0 to 4, select the segment of bit plane 0 that is most similar to the compressed data of bit plane and turn it into compressed data; the other bits are used for information embedding. (4) The 0th to 4th bits of the compressed bit plane store the 0th to 4th bits of the original bit plane 0; (5) Bits 5-8 of the compression plane are used to indicate the compression method of the plane; (6) Bits 9-22 of the compressed bit plane are used to identify the length value of the compressed data of this bit plane, which is used to extract the compressed data; (7) Bits 23-36 of the compressed bit plane are used to identify the start bit of the data in bit plane 0 that is consistent with the compressed data of bit plane; (8) The remaining bits of the compressed bit plane are used for information embedding.
2. The highly reliable information embedding method for improving image usability according to claim 1, characterized in that: The process of embedding information into the encoded data specifically involves: According to the encoding method, the secret information is embedded bit by bit into the corresponding positions in bit plane 0 and the compressed bit plane: In encoding method 1, the secret information is only embedded in the remaining bits of the compressed bit plane, and the original carrier data can be recovered without loss. In encoding method 2, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data is recovered without loss. In encoding method 3, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data can be recovered almost without loss. In encoding method 4, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the remaining bits of bit plane 0 are also embedded with secret information, so that the original carrier data can be recovered almost without loss.
3. A highly reliable information embedding system based on the highly reliable information embedding method for improving image usability as described in claim 1, characterized in that... include: Bit-plane data conversion module: Converts an 8-bit grayscale image of length N×N bytes into eight sets of bit-plane data, namely bit-plane 0~7, where each bit-plane is N×N in length; Compression plane determination module: Perform lossless compression on the seven sets of high-level plane data, namely planes 1 to 7, and select the set of plane data with the highest compression ratio as the compression plane, with a compression ratio of R; Data encoding module: Based on image usability requirements, it performs data encoding on bit plane 0 and the compressed bit plane; Information embedding module: embeds information into the encoded data and transmits data containing secret information; Information extraction module: Extracts embedded information according to different encoding methods, decodes data of bit plane 0 and compressed bit plane according to different encoding methods, and restores the original carrier image.
4. The highly reliable information embedding system according to claim 3, characterized in that: The process of embedding information into the encoded data specifically involves: According to the encoding method, the secret information is embedded bit by bit into the corresponding positions in bit plane 0 and the compressed bit plane: In encoding method 1, the secret information is only embedded in the remaining bits of the compressed bit plane, and the original carrier data can be recovered without loss. In encoding method 2, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data is recovered without loss. In encoding method 3, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the original carrier data can be recovered almost without loss. In encoding method 4, secret information is embedded bit by bit starting from the 37th bit of the compressed bit plane, and the remaining bits of bit plane 0 are also embedded with secret information, so that the original carrier data can be recovered almost without loss.