Full-spread printing quantum dot image and encoding and decoding method thereof
The error detection and correction coding method that jointly calculates the adjacent data of full-cover printing quantum dots solves the problems of high cost, cumbersome process and lack of anti-copying performance of printing anti-counterfeiting technology in the existing technology, and realizes printing under high contamination conditions. High-reliability decoding and anti-fouling performance improvements provide a green, low-cost, simple process with extremely strong anti-copying and anti-counterfeiting technology.
Patent Information
- Application Number
- CN202410828669.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-29
AI Technical Summary
Existing printing anti-counterfeiting technology has high costs, cumbersome processes, and lacks anti-replication properties, making it impossible to decode incompletely printed quantum dots under high contamination conditions.
An error detection and correction coding method using joint calculation of adjacent data of full-cover printed quantum dots, including binary coding, stream encryption, digital signature, composite error detection and correction coding, pseudo-random mask modulation and lattice data space pseudo-random mapping, is generated Full-text printed quantum dot images with anti-copying and error-correction capabilities, and corresponding encoding and decoding methods are provided.
It achieves rapid decoding of incompletely printed quantum dots under high contamination conditions, improves the anti-contamination performance and reading speed of printed quantum dots, and provides a green, low-cost, simple process with extremely strong anti-copying and anti-counterfeiting technology.
Smart Images

Figure CN118862931A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printing anti-counterfeiting, and in particular to a full-coverage printing quantum dot image and an encoding and decoding method thereof. Background Art
[0002] Although digitalization is developing rapidly, we still need a lot of printed materials to convey information in our daily lives. The emergence of counterfeit and shoddy products has put forward anti-counterfeiting needs in the printing field. Existing anti-counterfeiting technologies, such as ink anti-counterfeiting, paper anti-counterfeiting, and printed crafts anti-counterfeiting, have problems such as high cost and complicated printing process. Compared with digital QR codes, they do not have anti-copying performance. Therefore, it is imperative to design a green, low-cost, simple process, and extremely anti-copying anti-counterfeiting technology.
[0003] CN112668677A discloses a printing quantum dot error detection and correction coding method and a decoding method, which proposes an anti-counterfeiting technology with strong anti-copying ability, and generates single-pixel dot matrix data for anti-counterfeiting through reliability error detection and correction coding and pseudo-random information modulation. Although it has the function of anti-copying, it does not have the function of decoding through incomplete printed quantum dots. Summary of the invention
[0004] In order to overcome the above shortcomings, the present invention provides a full-printed quantum dot image and its encoding and decoding method. Based on the full-printed quantum dot image encoded by the encoding method of the present invention, fast decoding of error correction by joint calculation of adjacent data of incomplete printed quantum dots can be achieved under high contamination conditions, solving the technical problem that existing printed quantum dots cannot be decoded by incomplete printed quantum dots under high contamination conditions.
[0005] The technical solution adopted by the present invention to solve the technical problem is:
[0006] The error detection and correction coding method for joint calculation of adjacent data of full-printed quantum dots includes:
[0007] S1 binary encoding
[0008] Perform standard binary encoding on the input plaintext information such as serial number, text, audio, image, etc. to generate plaintext binary data stream;
[0009] S2 information stream encryption
[0010] The plaintext binary data stream of step S1 is encrypted by stream encryption to obtain a ciphertext binary data stream;
[0011] S3 digital signature anti-tampering
[0012] For the ciphertext binary data stream of step S2, a digital signature algorithm is used to generate a digital authentication binary sequence of unique specific bits, and the digital authentication binary sequence is combined with the ciphertext binary data stream to generate a binary data stream to be encoded;
[0013] S4 compound error detection and correction coding
[0014] Performing composite error detection and correction coding on the binary data stream to be encoded in step S3 to generate an encoded binary data stream with error control capability;
[0015] S5 pseudo-random mask modulation
[0016] The encoded binary data stream of step S4 is combined with a plurality of synchronization information to generate an original two-dimensional data matrix, a pseudo-random mask matrix is generated according to the input synchronization information, and the pseudo-random mask matrix is used to scramble the original two-dimensional data matrix, thereby obtaining a pseudo-original two-dimensional data matrix with adjacent data joint solution capability;
[0017] S6 dot matrix data space pseudo-random mapping
[0018] The pseudo primitive two-dimensional data matrix of step S5 is spliced, and according to different input parameters, the spliced matrix is subjected to pseudo random spatial mapping to generate a full-coverage printed quantum dot image.
[0019] As an improvement of the above technical solution, the stream encryption method in step S2 includes the RC4 algorithm, the ZUC algorithm and the ChaCha20 algorithm.
[0020] As an improvement of the above technical solution, the digital signature algorithm described in step S3 includes CRC series algorithms, DSA series algorithms, RSA series algorithms, and ECDSA series algorithms.
[0021] As an improvement of the above technical solution, the composite error detection and correction coding in step S4 includes BCH coding, LDPC coding, convolution and interleaving joint coding, and Turbo coding.
[0022] As an improvement of the above technical solution, the pseudo-random mask modulation in step S5 is specifically:
[0023] With the coded binary data stream and multiple synchronization information of step S4 as input variables, the coded binary data stream is transformed from serial to parallel, and multiple synchronization information is inserted at the same coordinate position to generate multiple primitive two-dimensional data matrices, and the position information is saved in the synchronization information position table; one group of synchronization information corresponds to a mask matrix, and a pseudo-random mask matrix is generated according to the inserted synchronization information, and the corresponding mask matrix is XOR-ed with the primitive two-dimensional matrix to obtain a pseudo-random pseudo-primitive two-dimensional data matrix, and the corresponding relationship between the synchronization information and the mask matrix is saved in the synchronization mask correspondence table.
[0024] As an improvement of the above technical solution, the input parameters in step S6 include pixel spacing and arrangement.
[0025] The present invention adopts the following technical solutions to solve the technical problems:
[0026] A fully printed quantum dot image is generated by the error detection and correction coding method of jointly solving the adjacent data of the fully printed quantum dots.
[0027] The fully printed quantum dot image has the ability to jointly resolve data through adjacent data.
[0028] The present invention adopts the following technical solutions to solve the technical problems:
[0029] The error detection and correction decoding method for joint calculation of adjacent data of full-printed quantum dots includes:
[0030] S1 Image Acquisition
[0031] A group of printed quantum dot images are blindly collected for the full-coverage printed quantum dot image by image acquisition;
[0032] S2 Get segmented area
[0033] The pseudo-primitive two-dimensional data matrix is generated by anti-pseudo-random spatial mapping of the small-area printed quantum dot image collected in step S1, the pseudo-primitive two-dimensional data matrix is traversed, the area and coordinates of the synchronization information are detected according to the synchronization information position table, and the area segmentation coordinates are obtained by shifting by analyzing the detected area and coordinates of the synchronization information, and the pseudo-primitive two-dimensional data matrix is divided into four area fragments according to the coordinates;
[0034] S3 obtains authentication information
[0035] The area where the synchronization information detected in step S2 is located is shifted by a specific step length to obtain an authentication area, and the authentication information in the authentication area is extracted according to the synchronization information position table;
[0036] S4 segmentation region reconstruction
[0037] By calculating the Hamming distance between the synchronization information of step S2 and the authentication information of step S3, if the distance is within an acceptable range, a corresponding pseudo-random mask matrix is generated through the synchronization mask correspondence table, and a demasking XOR operation is performed on the four regional fragment data matrices of step S2, and the four regional fragments after demasking are reconstructed to generate the original two-dimensional data matrix;
[0038] S5 Data Decoding
[0039] The original two-dimensional data matrix obtained in step S4 is transformed into a parallel-serial matrix to generate a binary data stream to be decoded, and the data stream is decoded to obtain the original plaintext binary data stream.
[0040] As an improvement of the above technical solution, the decoding method also includes S6 binary data conversion
[0041] The original plaintext binary data stream obtained in step S5 is de-encoded according to the binary encoding rules to generate plaintext information such as serial number, text, audio, image, etc. before binary encoding.
[0042] As an improvement of the above technical solution, the reconstruction in step S4 refers to combining the four regional fragments according to the relative position relationship with the complete original two-dimensional data matrix.
[0043] As an improvement of the above technical solution, the decoding described in step S5 includes: performing error detection and correction decoding on the binary data stream to be decoded to obtain the binary data stream to be authenticated, performing digital authentication on the binary data stream to be authenticated to obtain the original ciphertext binary data stream, and decrypting the original ciphertext binary data stream to obtain the original plaintext binary data stream.
[0044] The beneficial effects brought by the present invention are:
[0045] The present invention discloses a full-coverage printed quantum dot image and an error detection and correction encoding and decoding method based on the joint solution of its adjacent data. The method generates pseudo-randomly arranged micron-level printed quantum dots through a coding algorithm for plain text information such as anti-counterfeiting labels, value-added services, and traceability services, thereby improving the information recording capacity per unit area. At the same time, the correlation reconstruction capability of adjacent data and the error detection and correction capability of the reconstructed data are utilized to ensure high-reliability joint solution under high-fouling conditions by collecting incomplete printed quantum dots, thereby greatly improving the anti-fouling performance and reading speed of the printed quantum dots. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0047] Attached Figure 1 is a flow chart of the encoding method described in Example 2;
[0048] Attached Figure 2 This is a flowchart of the decoding method described in Example 3. DETAILED DESCRIPTION
[0049] The following will be combined with the embodiments of the present invention and the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] Example 1
[0051] This embodiment will describe a fully printed quantum dot image that has the ability to jointly resolve data through adjacent data.
[0052] The fully printed quantum dot image is mapped by multiple pseudo-primitive two-dimensional data matrices. Specifically, different synchronization information is added to the original two-dimensional data matrix at the same position, and an XOR operation is performed with a pseudo-random mask matrix to generate multiple pseudo-primitive two-dimensional data matrices. The fully printed quantum dot image is generated through pseudo-random mapping of the dot matrix data space.
[0053] This full-coverage printed quantum dot image can utilize the correlation of information and, through joint data solving, enable incomplete printed quantum dots to be reconstructed into complete printed quantum dots, thereby performing rapid decoding of reliability.
[0054] Example 2
[0055] This embodiment describes a method for encoding a full-printed quantum dot image that can be solved by jointly solving adjacent data.
[0056] refer to Figure 1 , the method comprises the following steps:
[0057] S1 binary encoding
[0058] Perform standard binary encoding on the input serial number, text, audio, image, etc. to generate a plaintext binary data stream;
[0059] S2 information stream encryption
[0060] For the plaintext binary data stream generated in step S1, one of the RC4 algorithm, the ZUC algorithm, the ChaCha20 algorithm, etc. is selected as a stream encryption method to obtain a ciphertext binary data stream;
[0061] S3 digital signature anti-tampering
[0062] For the ciphertext binary data stream generated in step S2, select one of the CRC series algorithms, the DSA series algorithms, the RSA series algorithms, and the ECDSA series algorithms as a digital signature generation algorithm, generate a digital summary, that is, a digital authentication binary sequence of unique specific bits, and combine the digital authentication binary sequence with the ciphertext binary data stream to generate a binary data stream to be encoded;
[0063] S4 Error Detection and Correction Coding
[0064] For the binary data stream to be encoded generated in step S3, one of BCH encoding, LDPC encoding, convolution and interleaving joint encoding, Turbo encoding, etc. is selected as an error detection and correction encoding method to perform information encoding, so as to generate an encoded binary data stream with error controllability;
[0065] S5 pseudo-random mask modulation
[0066] Taking the coded binary data stream and multiple synchronization information generated in step S4 as input variables, the coded binary data stream is serial-parallel transformed, multiple synchronization information is inserted at the same coordinate position, multiple primitive two-dimensional data matrices are generated, and the position information is saved in the synchronization information position table; a pseudo-random mask matrix is generated according to the inserted synchronization information, and the mask matrix to be matched is XORed with the primitive two-dimensional matrix to obtain a pseudo-random pseudo-primitive two-dimensional data matrix, and the corresponding relationship between the synchronization information and the mask matrix is saved in the synchronization mask corresponding table;
[0067] S6 dot matrix data space pseudo-random mapping
[0068] The pseudo primitive two-dimensional data matrix generated in step S5 is spliced, and according to different input parameters such as pixel spacing and arrangement mode, pseudo random spatial mapping is performed on the spliced matrix to generate a full-coverage printed quantum dot image.
[0069] Example 3
[0070] A method for decoding a full-printed quantum dot image under high-fouling conditions.
[0071] Reference Figure 2 , the method comprises the following steps:
[0072] S1 Image Acquisition
[0073] A set of printed quantum dot images are blindly collected from the full-coverage printed quantum dot image by an image acquisition program;
[0074] S2 Get segmented area
[0075] The pseudo-primitive two-dimensional data matrix is generated by anti-pseudo-random spatial mapping of the small-area printed quantum dot image collected in step S1, the pseudo-primitive two-dimensional data matrix is traversed, the area and coordinates of the synchronization information are detected according to the synchronization information position table, and the area segmentation coordinates are obtained by shifting by analyzing the detected area and coordinates of the synchronization information, and the pseudo-primitive two-dimensional data matrix is divided into four area fragments according to the coordinates;
[0076] S3 obtains authentication information
[0077] The area where the synchronization information detected in step S2 is located is shifted by a specific step length to obtain an authentication area, and the authentication information in the authentication area is extracted according to the synchronization information position table;
[0078] S4 segmentation region reconstruction
[0079] By calculating the Hamming distance between the synchronization information of step S2 and the authentication information of step S3, if the distance is within an acceptable range, a corresponding pseudo-random mask matrix is generated through the synchronization mask correspondence table, and a demasking XOR operation is performed on the four regional fragment data matrices of step S2, and the four regional fragments after demasking are reconstructed to generate the original two-dimensional data matrix; the reconstruction refers to combining the four regional fragments according to the relative position relationship with the complete original two-dimensional data matrix;
[0080] S5 Data Decoding
[0081] The original two-dimensional data matrix obtained in step S4 is converted into a parallel-serial matrix to generate a binary data stream to be decoded, and the data stream is decoded to obtain an original plaintext binary data stream;
[0082] The decoding includes: performing error detection and correction decoding on the binary data stream to be decoded to obtain the binary data stream to be authenticated, performing digital authentication on the binary data stream to be authenticated to obtain the original ciphertext binary data stream, and decrypting the original ciphertext binary data stream to obtain the original plaintext binary data stream;
[0083] S6 Binary Data Conversion
[0084] The original plaintext binary data stream obtained in step S5 is de-encoded according to the binary encoding rules to generate plaintext information such as serial number, text, audio, image, etc. before binary encoding.
[0085] Example 4
[0086] A method for obtaining authentication information, the method comprising:
[0087] S1 synchronization information matching
[0088] For the pseudo primitive two-dimensional data matrix, traverse the pseudo primitive two-dimensional data matrix with half the matrix size, extract the current position information according to the synchronization information position table, match it with the multiple synchronization information in step S5 of embodiment 2, and record the position matrix if any one is matched;
[0089] S2 obtains authentication information
[0090] For the synchronization information position matrix recorded in step S1, shift it to an area not exceeding the size of the pseudo-original two-dimensional data matrix with a step size of half the matrix size to obtain the authentication matrix, extract the information of the authentication matrix according to the synchronization information position table, match it with the multiple synchronization information in step S5 of Example 2, and obtain the authentication information.
[0091] It should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An error detection and correction coding method for joint calculation of adjacent data of full-surface printed quantum dots, characterized by: include S1 binary encoding Performing standard binary encoding on the input plaintext information to generate a plaintext binary data stream; S2 information stream encryption The plaintext binary data stream of step S1 is encrypted by stream encryption to obtain a ciphertext binary data stream; S3 digital signature anti-tampering For the ciphertext binary data stream of step S2, a digital authentication binary sequence is generated, and the digital authentication binary sequence is combined with the ciphertext binary data stream to generate a binary data stream to be encoded; S4 compound error detection and correction coding Performing compound error detection and correction coding on the binary data stream to be encoded in step S3 to generate an encoded binary data stream; S5 pseudo-random mask modulation The encoded binary data stream of step S4 is combined with a plurality of synchronization information to generate an original two-dimensional data matrix, a pseudo-random mask matrix is generated according to the input synchronization information, and the pseudo-random mask matrix is used to scramble the original two-dimensional data matrix, thereby obtaining a pseudo-original two-dimensional data matrix with adjacent data joint solution capability; S6 dot matrix data space pseudo-random mapping The pseudo primitive two-dimensional data matrix of step S5 is spliced, and according to different input parameters, the spliced matrix is subjected to pseudo random spatial mapping to generate a full-coverage printed quantum dot image.
2. The error detection and correction coding method according to claim 1, characterized in that: The stream encryption methods described in step S2 include RC4 algorithm, ZUC algorithm and ChaCha20 algorithm.
3. The error detection and correction coding method according to claim 1, characterized in that: The digital signature algorithm described in step S3 includes CRC series algorithms, DSA series algorithms, RSA series algorithms, and ECDSA series algorithms.
4. The error detection and correction coding method according to claim 1, characterized in that: The composite error detection and correction coding in step S4 includes BCH coding, LDPC coding, convolution and interleaving joint coding, and Turbo coding.
5. The error detection and correction coding method according to claim 1, characterized in that: The pseudo-random mask modulation in step S5 is specifically as follows: Taking the coded binary data stream and the multiple synchronization information of step S4 as input variables, performing serial-to-parallel conversion on the coded binary data stream, inserting the multiple synchronization information at the same coordinate position, generating multiple original two-dimensional data matrices, and saving the position information into the synchronization information position table; A set of synchronization information corresponds to a mask matrix. A pseudo-random mask matrix is generated according to the inserted synchronization information. The corresponding mask matrix is XORed with the primitive two-dimensional matrix to obtain a pseudo-random pseudo-primitive two-dimensional data matrix. At the same time, the correspondence between the synchronization information and the mask matrix is saved in the synchronization mask correspondence table.
6. Full-print quantum dot image, characterized by: The fully printed quantum dot image is generated by the error detection and correction coding method of jointly solving the adjacent data of fully printed quantum dots as described in any one of claims 1 to 5.
7. Error detection and correction decoding method for joint calculation of adjacent data of full-printed quantum dots, characterized by: include S1 Image Acquisition A group of printed quantum dot images are blindly collected for the full-coverage printed quantum dot image by image acquisition; S2 Get segmented area The pseudo-primitive two-dimensional data matrix is generated by anti-pseudo-random spatial mapping of the small-area printed quantum dot image collected in step S1, the pseudo-primitive two-dimensional data matrix is traversed, the area and coordinates of the synchronization information are detected according to the synchronization information position table, and the area segmentation coordinates are obtained by shifting by analyzing the detected area and coordinates of the synchronization information, and the pseudo-primitive two-dimensional data matrix is divided into four area fragments according to the coordinates; S3 obtains authentication information The area where the synchronization information detected in step S2 is located is shifted by a specific step length to obtain an authentication area, and the authentication information in the authentication area is extracted according to the synchronization information position table; S4 segmentation region reconstruction By calculating the Hamming distance between the synchronization information of step S2 and the authentication information of step S3, if the distance is within an acceptable range, a corresponding pseudo-random mask matrix is generated through the synchronization mask correspondence table, and a demasking XOR operation is performed on the four regional fragment data matrices of step S2, and the four regional fragments after demasking are reconstructed to generate the original two-dimensional data matrix; S5 Data Decoding The original two-dimensional data matrix obtained in step S4 is transformed into a parallel-serial matrix to generate a binary data stream to be decoded, and the data stream is decoded to obtain the original plaintext binary data stream.
8. The error detection and correction decoding method according to claim 7, characterized in that: The decoding method also includes S6 binary data conversion The original plaintext binary data stream obtained in step S5 is de-encoded according to the binary encoding rules to generate plaintext information before binary encoding.
9. The error detection and correction decoding method according to claim 7, characterized in that: The reconstruction in step S4 refers to combining the four regional fragments according to their relative positional relationship with the complete original two-dimensional data matrix.
10. The error detection and correction decoding method according to claim 7, characterized in that: The decoding in step S5 includes: performing error detection and correction decoding on the binary data stream to be decoded to obtain the binary data stream to be authenticated, performing digital authentication on the binary data stream to be authenticated to obtain the original ciphertext binary data stream, and decrypting the original ciphertext binary data stream to obtain the original plaintext binary data stream.
