Image data two-dimensional code hiding transmission method

By combining image compression and QR code technology, image data and QR codes are hidden in another image, solving the problems of anti-interference and anti-noise in image data transmission, and realizing robust image recovery and secure transmission.

CN116760997BActive Publication Date: 2026-05-22XIAN INSTITUE OF SPACE RADIO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAN INSTITUE OF SPACE RADIO TECH
Filing Date
2023-05-29
Publication Date
2026-05-22

Smart Images

  • Figure CN116760997B_ABST
    Figure CN116760997B_ABST
Patent Text Reader

Abstract

The application provides a two-dimensional code hidden transmission method for image data, which can hide and transmit information of image data without changing the image data. The method hides and fuses compressed data and two-dimensional code data in the image, and guarantees the fusion quality of the two images under the condition of noise interference. The method combines compression, information hiding and two-dimensional code, and plays respective roles, has the characteristics of information secret transmission and fault-tolerant transmission, and an outsider cannot know the information of the other image, so that the quality of the original image is recovered while the two images are fused, and the defect that the traditional fusion method cannot recover the high-quality image before fusion is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method for data transmission, and more particularly to a method for transmitting image data via hidden QR codes, belonging to the field of communication (such as data communication technology). Background Technology

[0002] With the development of technology, people have an increasing demand for high-resolution images and the volume of data is growing, making data compression imperative. The preprocessing of the source image used for hiding encrypted domain information has a significant impact on the system's hiding capacity and other performance characteristics.

[0003] Multi-source information fusion is a theory and method for the rational use and processing of multi-source information, enabling the comprehensive utilization of information. The key problem these theories and methods aim to solve is processing multi-source information with similar or different characteristic patterns to obtain timely, accurate, and integrated fused information. Traditional information fusion does not consider information hiding, and its fusion effect needs improvement.

[0004] There are many image data compression methods available, with JPEG2000 being a representative example. Many algorithms are dependent on the characteristics (or complexity) of the image itself and do not always yield good results. The same compression algorithm can have vastly different compression performances for different images. Data compression and information fusion can be used in combination.

[0005] There are many methods for data fusion, but our information-hiding-based fusion method is different from conventional methods.

[0006] QR code technology originated in Japan in the 1990s. In 1994, Nippon Denso, a major Japanese auto parts retailer, developed QR Code (two-dimensional barcode) and released it to the public shortly afterward. Although the company held the patent rights to the QR code, it explicitly stated that the patent was open for free use, thus greatly expanding the opportunities for the use of QR code technology.

[0007] QR codes are patterns, typically black and white, arranged in a specific pattern on a two-dimensional plane to record data. They cleverly utilize the concept of "0" and "1" bitstreams, the foundation of computer logic, combining multiple patterns corresponding to binary to express text, numerical values, and other information. This information is automatically processed by image input devices or related scanning equipment. A QR code can store nearly a thousand characters of data, while a barcode typically has a maximum storage capacity of only 30 characters. A QR code is a black and white alternating square pattern with three positioning points at the top left, bottom left, and top right corners. QR code technology has verification functions, automatic recognition of information in different rows, and can even effectively handle points where the graphic has rotated.

[0008] When scanning with decoding software, even if there is a positional deviation, as long as the positioning point is scanned accurately, precise positioning and correct reading of the QR code can be achieved. QR codes contain the most redundant code, providing fault tolerance, and the fault tolerance rate is directly proportional to the size of the QR code. All devices can recover the QR code and obtain its content. Because among different types of QR codes, only the QR code is perfectly compatible and matches the encoding of Chinese characters, its application in China is particularly widespread.

[0009] Main technical content: based on image processing, data compression, and information hiding technologies. Summary of the Invention

[0010] The technical problem solved by this invention is to overcome the shortcomings of the prior art, utilize the characteristics of data preprocessing and QR code information encoding to carry out hidden transmission, realize the confidential and robust fusion of one image A1 in another image A2, and have anti-interference and anti-noise capabilities, while also having a certain degree of resistance to geometric distortion.

[0011] The technical solution of the present invention is: a method for hidden transmission of image data via QR code, comprising:

[0012] For size M The image A1 of N is compressed to form data U1, where M and N are positive integers;

[0013] Generate a QR code V1 from data U1, with a size of m. n, and less than M N;

[0014] Compress image A2 to form data U2;

[0015] The QR code V1 is hidden and blended into a specified position in image A2; the data U2 is also hidden and blended into other positions in image A2, resulting in a blended image A.

[0016] Transmit or store the fused image A;

[0017] Unhide the fused image A to obtain data U2 and QR code V1;

[0018] Decompress the data U2 to obtain the restored image 1 of image A2. Use the fused image A as the restored image 2 of image A2. Select the image with higher visual quality between restored image 1 and restored image 2 as the restored image of A2.

[0019] The QR code V1 is reverse-processed to obtain U1, and then U1 is decompressed to obtain the restored image A1.

[0020] When compressing image A1, ensure that the amount of QR code data generated from the compressed data of image A1 is m. n, less than M N is an integer representing a compression ratio of 8 or higher.

[0021] When compressing image A2, ensure that the compressed data size of image A2 is less than M. N is an integer representing a compression ratio of 8 or higher.

[0022] The method for generating QR code V1 from data U1 is the standard QR method.

[0023] The process of embedding the QR code V1 into a specified location in image A2 includes: hiding the bits of QR code V1 into the location corresponding to the QR code in image A2 based on an information hiding method, specifically at a bit plane of image A2.

[0024] The location is on a bit plane of image A2, including the first bit plane, the second bit plane, or the third bit plane.

[0025] The step of hiding and fusing data U2 into other locations in image A2 includes: hiding the bits of data U2 in image A2 at a position in image A2 corresponding to the length of data U2, specifically on a bit plane of image A2, based on an information hiding method.

[0026] The location is on a bit plane of image A2, including the 4th bit plane, the 5th bit plane, or the 6th bit plane.

[0027] The advantages of this invention compared to the prior art are as follows:

[0028] Compared with the prior art, the present invention has the following substantial differences and advancements:

[0029] (1) This method compresses and QR code-processes one of the two images to be fused, A1, and then merges the data into the other image A2, thus taking into account both the compression and information hiding performance of the image. The strong error correction performance of the QR code ensures the recovery capability of image A1 under interference and noise environment.

[0030] (2) This method also hides and fuses the compressed data of image A2 in the higher bit plane of image A2. By taking advantage of the strong fault tolerance of the higher bits, it ensures that the fused image hidden in the higher bits is not easily lost under noise interference. In other words, even if it is lost, image A2 can be extracted and recovered, thus ensuring the recovery capability of image A2 under noise interference.

[0031] (3) This method combines compression, information hiding and QR code, giving full play to their respective roles, hiding one image in another, so that outsiders cannot know the information of the other image, thus playing the role of information encryption, and improving the adaptability of this method to different images.

[0032] (4) This method opens up a new technical path for the practical application of satellite data compression technology. By performing compression and QR code processing in advance, and based on information hiding, two images can be merged into one image for transmission and recovery, reducing the amount of data, enhancing confidentiality, and achieving unconventional results.

[0033] (5) This method uses QR codes, which makes the information hiding resistant to interference and noise, resistant to geometric distortion, and has certain translational and rotational invariance. Attached Figure Description

[0034] Figure 1 This is a flowchart of the method of the present invention.

[0035] Figure 2 To restore image 1 (left) and image 2 (right).

[0036] Figure 3 This is a schematic diagram of data U1.

[0037] Figure 4 This is the fused image A.

[0038] Figure 5 Restore the image for image 2.

[0039] Figure 6 Restore the image to image A1. Detailed Implementation

[0040] like Figure 1-6As shown, in order to verify the performance of the algorithm proposed in this paper, 8-bit grayscale images A1, A2, and A3 of size 512×512 were used in the simulation experiment. The method of this invention was used for information fusion, transmission, and recovery.

[0041] A method for secretly transmitting image data via QR code, comprising the following steps:

[0042] (1) For a size of M The image A1 of N is compressed to form data U1, where M and N are positive integers;

[0043] (2) Generate a QR code V1 from data U1, with a size of m. n, and less than M N;

[0044] (3) Compress image A2 to form data U2;

[0045] (4) Hide and blend QR code V1 into a specified position in image A2; also hide and blend data U2 into other positions in image A2 to obtain the blended image A.

[0046] (5) Transmit or store the fused image A;

[0047] (6) Unhide the fused image A to obtain data U2 and QR code V1;

[0048] (7) Decompress the data U2 to obtain the restored image 1 of image A2, take image A as the restored image 2 of image A2, and select the one with higher visual quality between the restored image 1 and the restored image 2 of image A2 as the restored image of A2.

[0049] (8) Reverse process QR code V1 to obtain U1, and then decompress U1 to obtain the restored image of image A1.

[0050] The compression process is as follows:

[0051] Use standard data compression methods or other data compression methods to ensure that the QR code data generated from the compressed data of image A1 is of size m. n, less than M N is an integer representing a compression ratio of 8 or higher, typically 64. This ensures that the compressed data size of image A2 is less than M. N is an integer representing a compression ratio of 8 or higher, with a typical value of 8.

[0052] The method for generating QR code V1 from data U1 is the standard QR method, with different error correction methods selected;

[0053] The hidden integration of QR code V1 into a specified position in image A2 refers to hiding the bits of QR code V1 into the position corresponding to the QR code in image A2 based on the information hiding method. It can be located on a bit plane of image A2, such as the 1st bit plane, the 2nd bit plane, the 3rd bit plane, or even a higher bit plane.

[0054] The phrase "data U2 is also hidden and integrated into other positions in image A2" refers to hiding the bits of data U2 in image A2 at positions corresponding to the length of data U2 based on information hiding methods. This can be located on a bit plane of image A2, which is different from the bit plane of the QR code. Generally, this bit plane is higher than the bit plane of the QR code, such as the 4th bit plane, the 5th bit plane, or even a higher bit plane.

[0055] This invention provides a method for transmitting image data using hidden QR codes. Through innovation, it solves the problems of fusion transmission of two images while maintaining robustness. It is easy to implement in both hardware and software, has practical value in satellite image fusion compression transmission systems, and can be applied in any other multi-source image fusion transmission scenario. Parts of this invention not described in detail are common knowledge to those skilled in the art.

Claims

1. A method for hidden transmission of image data via QR code, characterized in that, include: For size M The image A1 of N is compressed to form data U1, where M and N are positive integers; Generate a QR code V1 from data U1, with a size of m. n, and less than M N; Compress image A2 to form data U2; The QR code V1 is hidden and blended into a specified position in image A2; the data U2 is also hidden and blended into other positions in image A2, resulting in a blended image A. Transmit or store the fused image A; Unhide the fused image A to obtain data U2 and QR code V1; Decompress the data U2 to obtain the restored image 1 of image A2. Use the fused image A as the restored image 2 of image A2. Select the image with higher visual quality between restored image 1 and restored image 2 as the restored image of A2. The QR code V1 is reverse-processed to obtain U1, and then U1 is decompressed to obtain the restored image A1.

2. The method for hidden transmission of image data via QR code according to claim 1, characterized in that, When compressing image A1, ensure that the amount of QR code data generated from the compressed data of image A1 is m. n, less than M N is an integer with a compression ratio of 8 or higher.

3. The method for hidden transmission of image data via QR code according to claim 1, characterized in that: When compressing image A2, ensure that the compressed data size of image A2 is less than M. N is an integer with a compression ratio of 8 or higher.

4. The method for hidden transmission of image data via QR code according to claim 1, characterized in that: The method for generating QR code V1 from data U1 is the standard QR method.

5. The method for hidden transmission of image data via QR code according to claim 1, characterized in that: The process of embedding the QR code V1 into a specified location in image A2 includes: hiding the bits of QR code V1 into the location corresponding to the QR code in image A2 based on an information hiding method, specifically at a bit plane of image A2.

6. The method for hidden transmission of image data via QR code according to claim 5, characterized in that: The location is on a bit plane of image A2, including the first bit plane, the second bit plane, or the third bit plane.

7. The method for hidden transmission of image data via QR code according to claim 6, characterized in that: The step of hiding and fusing data U2 into other locations in image A2 includes: hiding the bits of data U2 in image A2 at a position in image A2 corresponding to the length of data U2, specifically on a bit plane of image A2, based on an information hiding method.

8. The method for hidden transmission of image data QR codes according to claim 7, characterized in that: The location is on a bit plane of image A2, including the 4th bit plane, the 5th bit plane, or the 6th bit plane.