Color image coding and decoding system and method for cross-network data transmission
Through the color image encoding and decoding system and SVM model recognition technology, the problem of low efficiency of QR code transmission is solved, and efficient information transmission in cross-network data transmission is achieved.
Patent Information
- Application Number
- CN202511021128.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-24
- Publication Date
- 2025-10-03
AI Technical Summary
Existing QR codes are inefficient when transmitting large amounts of information and are unable to effectively increase the amount of data carried by a single code element, resulting in slow information transmission speeds.
A color image encoding and decoding system is adopted, and color code graphic encoding and SVM graphic recognition model are used to increase the amount of information carried by each code element graphic and to transmit cross-network data through color images.
It increases the amount of information carried by a single code element by 4 times, enhances decoding speed and accuracy, and realizes fast and efficient cross-network data transmission.
Smart Images

Figure CN120751149A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information transmission technology, and in particular to a color image encoding and decoding system and method for cross-network data transmission. Background Art
[0002] With the rapid development of computer technology, information networks have become a critical infrastructure for social development. The Internet is an open, unregulated network, and hackers frequently infiltrate computer systems to steal or destroy important data. To prevent information leaks, many key departments have their own firewalls and security measures. However, these measures cannot guarantee absolute security against even the most sophisticated hackers. Therefore, in scenarios involving sensitive information, particularly state secrets, physical isolation of the network is employed to ensure data security.
[0003] In order to ensure data transmission between physically isolated networks, QR codes and cameras are commonly used to exchange data.
[0004] Data exchange using QR codes and cameras typically involves two isolated networks, each with a machine. The sender generates and displays the QR code, while the receiver scans and identifies the content. However, there are 40 existing QR code sizes, with the smallest being 21×21 and the largest being 177×177. The largest QR code, at the lowest error correction level, can only represent 7089 pure digits, 4276 letters, or 2953 bytes (equivalent to 2.9 kilobytes). Therefore, when a QR code transmits large amounts of information, the limited amount of information that can be stored in a single QR code results in a relatively slow overall transmission speed. This limitation, coupled with the information capacity of a single QR code, results in extremely low overall information transmission efficiency.
[0005] Therefore, how to effectively increase the amount of data carried by a single code element during the encoding process so that the QR code carries more information is an urgent problem that needs to be solved for effective and rapid information transmission between intranets and intranets, and between intranets and extranets that are not physically connected. Summary of the Invention
[0006] In response to the problems existing in the above-mentioned prior art, the present invention provides a color image encoding and decoding system and method for cross-network data transmission, which aims to effectively increase the amount of data carried by a single code element in the encoding process, so that the data-encoded image carries more information, and effectively and quickly transmit information between intranets and intranets, and between intranets and extranets that are not physically connected.
[0007] In a first aspect disclosed herein, a color image encoding and decoding system for cross-network data transmission is provided, comprising: The pattern coding module is located at the transmitting end of the inter-network data transmission terminal and is used to encode the data to be transmitted according to a preset coding method to generate a color code image; The pattern decoding module is located at the receiving end of the cross-network data transmission terminal and is used to decode the acquired color code information and restore the transmitted data based on the decoded data.
[0008] The pattern coding module includes a pattern setting module and a pattern generating module: The pattern setting module is located in the data acquisition part of the sending end of the cross-network data transmission terminal. It is used to preset the size of the generated color code image to a×b before sending data. Each color code image contains n code element patterns. The code element patterns are predetermined to have 16 patterns, each corresponding to a hexadecimal number. Each pattern is displayed in an m×m square area, corresponding to the value of 4 bits. The entire color code image includes a message header and a data area. The pattern generation module is located in the data generation part of the sending end of the cross-network data transmission terminal; it is used to read the data to be transmitted, split the data to be transmitted into slices according to the size of the data to be transmitted and the maximum amount of data encoded in a single color code image, encode the bytes in each slice, and add a message header to each encoded slice. The n code element patterns are combined to form an a×b color code image, and the same number of color code images as the number of slices are generated; The encoding of the bytes in each fragment specifically includes: The data in each slice is read as bytes, and further read as a bit stream. The hexadecimal numbers corresponding to the four bits are converted into a corresponding code element pattern, and all the code element patterns are combined in order.
[0009] The pattern decoding module includes a pattern acquisition module and a pattern processing module: The pattern acquisition module is located in the data acquisition part of the receiving end of the inter-network data transmission terminal, and is used to receive the image sent by the sending end of the inter-network data transmission terminal and extract the complete color code image from the image; The pattern processing module is located in the data processing section of the receiving end of the cross-network data transmission terminal; it is used to decode the color code image into the original transmission data. The specific steps of decoding are: based on the color code image, image segmentation is performed to obtain all code element graphics in the color code image; using the trained SVM pattern recognition model, based on the color and shape of the code element graphics, the values of the four bits corresponding to all code element graphics are identified and arranged into a bit stream; the bit stream is organized into specific bytes, and the message header and data area are obtained through parsing to obtain the original transmission data.
[0010] The specific working steps of the above-mentioned color image encoding and decoding system for cross-network data transmission are as follows: Step S1: construct an SVM graphic recognition model and perform model training for the recognition of code element graphics.
[0011] Specifically, a color code map consisting of 16 code element graphics is constructed, and the color code map is collected in combination with a real cross-network transmission scenario. The code element graphics in each color code map are annotated, and these annotated color code maps are divided into training data and test data in an 8:2 ratio, and the training data and test data are preprocessed; then, feature extraction is performed on the preprocessed training data and test data, and the extracted features are converted into feature vectors, which are then standardized and normalized; finally, the training data is used to train the SVM graphic recognition model for multi-classification model, and the model is tested in combination with the test data to form a usable SVM graphic recognition model.
[0012] Step S2: The pattern setting module predefines the color code image size, the code element image size, and the hexadecimal number corresponding to each code element image.
[0013] Specifically, based on the specific cross-network transmission service and the display area size of the cross-network transmission sending end, the display size a×b of the color code image is defined. According to actual needs, the size of each code element graphic is set to m×m. The maximum number of code elements that can be displayed in a single color code image is n INT(a / m)×INT(b / m); each code element graphic has 16 shapes, each code element graphic corresponds to a hexadecimal, and can represent four bits.
[0014] Step S3: The pattern generating module generates a color code image according to the data to be transmitted.
[0015] Specifically, the data to be transmitted is read, and the data to be transmitted is split into individual fragments according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image. The data in each fragment is read as bytes, and further read as a bit stream. The hexadecimal numbers corresponding to the 4 bits in turn are converted into a corresponding code element pattern. All the code element patterns are combined in order, and a message header is added to each encoded fragment. The n code element patterns are combined to form an a×b color code image, and the same number of color code images as the number of fragments are generated.
[0016] Step S4: The pattern acquisition module needs to obtain a color code image from the original image obtained in the cross-network data transmission.
[0017] Specifically, the original image collected by the receiving end of the cross-network data transmission terminal is subjected to noise removal to reduce the influence of noise and irregular lighting in the image, ensuring that the structural information of the color code image is clearly retained; image enhancement technology is used to adjust the contrast and enhance the color difference between the color code image and the background to make the color code structure more obvious; geometric correction is used to rotate, scale and translate the color code image to ensure that the various parts of the color code image are evenly distributed; size normalization is used to adjust the size of the color code image to a suitable recognition standard size.
[0018] Step S5: The pattern processing module needs to decode the color code image into a single slice of the transmission data, and finally obtain the transmission data.
[0019] Specifically, the color code image collected in step S4 is segmented to obtain the code element graphics in the color code image; each code element graphic in the color code image is traversed, and the specific graphics of each code element graphic are obtained for feature extraction, and converted into feature vectors, and the feature vectors are standardized or normalized to ensure the scale consistency of different features; the feature vector corresponding to each code element graphic is classified using the SVM graphic recognition model obtained in step S1, and the values of the 4 bits corresponding to each code element graphic are obtained, and arranged into a bit stream, and the bit stream is composed of specific bytes to generate a single slice of the transmission data; each time a color code image is decoded, a CRC check is performed. If there is no abnormality, the single slice of the transmission data is spliced to finally obtain the complete transmission data.
[0020] A second aspect disclosed in the present application provides a color image encoding and decoding method for cross-network data transmission, the method being applied to the above-mentioned color image encoding and decoding system for cross-network data transmission, the method comprising: At the sending end of the inter-network data transmission terminal, the data to be transmitted is encoded according to a preset encoding method to generate a color code image; At the receiving end of the cross-network data transmission terminal, the obtained color code image information is decoded and the transmitted data is restored based on the decoded data.
[0021] The step of encoding the data to be transmitted according to a preset encoding method to generate a color code image specifically includes: Predefine the color code image size, code element image size and the hexadecimal number corresponding to each code element image; Read the data to be transmitted, split the data to be transmitted into slices according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image, encode the bytes in each slice, add a message header for each encoded slice, and generate a color code image with the same number of slices, wherein the encoding of the bytes in each slice specifically includes: reading the data in each slice as bytes, and further reading it as a bit stream, sequentially converting the hexadecimal numbers corresponding to the 4 bits therein into a corresponding code element pattern, and combining all the code element patterns in order.
[0022] The color code image information obtained by decoding is restored to the transmission data according to the decoded data, specifically including: Receive an image sent by a transmitting terminal of an inter-network data transmission terminal and extract a complete color code image from the image; The color code image is decoded into the original transmission data. The specific steps of decoding are as follows: according to the color code image, image segmentation is performed to obtain all code element graphics in the color code image; using the trained SVM graphic recognition model, according to the color and shape of the code element graphics, the values of the 4 bits corresponding to all code element graphics are identified and arranged into a bit stream; the bit stream is organized into specific bytes, and the message header and data area are obtained through parsing to obtain the original transmission data.
[0023] The third aspect disclosed in the present application provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission when executing the computer program.
[0024] The fourth aspect disclosed in the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission.
[0025] The fifth aspect disclosed in the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission.
[0026] The beneficial effects of the present invention are: (1) It can effectively increase the amount of data transmitted in a single transmission in an image-based cross-network data transmission scenario. Compared with the data transmission scheme based on QR codes, the amount of information carried by a single code element is increased from 1 bit of the traditional QR code to 4 bits, and the amount of information carried is increased by 4 times, which greatly improves the single transmission volume and transmission speed.
[0027] (2) The recognition of code element graphics based on the SVM model greatly increases the decoding speed and accuracy of color code images, ensuring effective and fast information transmission between intranets and intranets, and between intranets and extranets without physical connections. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The following are example diagrams of code element graphics corresponding to various hexadecimal numbers; Figure 2 This is an example of a color code image; Figure 3 The figure is an overall flow chart of a color image encoding and decoding system for cross-network data transmission. DETAILED DESCRIPTION
[0029] The following is a clear and complete description of the technical solutions implemented in the present invention in conjunction with the accompanying drawings. The embodiments described 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 making creative efforts are within the scope of protection of the present invention.
[0030] Example 1: like Figure 1 、 Figure 2 and Figure 3 As shown, the present invention provides a color image encoding and decoding system for cross-network data transmission, comprising: The pattern coding module is used to encode the data to be transmitted according to a preset coding method to generate a color code image; The pattern decoding module is used to decode the acquired color code information and restore the transmitted data based on the decoded data.
[0031] The pattern coding module is located at the sending end of the inter-network data transmission terminal, and includes a pattern setting module and a pattern generating module.
[0032] The pattern setting module is located in the data acquisition part of the sending end of the cross-network data transmission terminal. It is used to preset the size of the generated color code image to a×b before sending data. Each color code image contains n code element patterns. The code element patterns are preset to 16 types. Each code element pattern corresponds to a hexadecimal number, such as Figure 1 As shown; each symbol graphic is displayed in an m×m square area. Since one hexadecimal number can represent the value of four bits, one symbol graphic corresponds to the value of four bits. The entire color code image includes the message header and data area. The pattern generation module is located in the data generation part of the sending end of the cross-network data transmission terminal, and is used to read the data to be transmitted, split the data to be transmitted into multiple fragments according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image, and encode the bytes in each fragment in sequence, and add a message header to each encoded fragment to generate the same number of color code images as the number of fragments; wherein, encoding the bytes in each fragment specifically includes: reading the data in each fragment as bytes, and further reading it as a bit stream, and converting the hexadecimal numbers corresponding to the 4 bits in sequence into a corresponding code element graphic. The combination of n code element graphics forms an a×b color code image, and the generated color code image is as follows: Figure 2 shown.
[0033] The pattern decoding module is located at the receiving end of the cross-network data transmission terminal, and includes a pattern acquisition module and a pattern processing module.
[0034] The pattern acquisition module is located in the data acquisition part of the receiving end of the cross-network data transmission terminal, and is used to receive the image sent by the sending end of the cross-network data transmission terminal and extract the complete color code image from the image; The pattern processing module is located in the data processing part of the receiving end of the cross-network data transmission terminal. It is used to decode the color code image into the original transmission data. Specifically, it includes: performing image segmentation based on the color code image to obtain the code element graphics among n color code images; using the SVM graphic recognition model trained in advance to identify the 4-bit values corresponding to each m×m code element graphic based on the color and shape of the code element graphic, and arrange them into a bit stream; organizing the bit stream into specific bytes, obtaining the message header and data area through parsing, and finally obtaining the transmission data.
[0035] For example: Taking into account the data transmission volume and transmission rate, the data encoding method in the color code image is independently designed. The preset color code image size is 1280 (px) × 800 (px), and 2 is predefined. 4 =16 code element graphics, such as Figure 1 As shown, each symbol graphic represents a hexadecimal number, corresponding to the value of 4 bits; each symbol graphic is displayed in a 3×3 square area with a size of 9 (px) × 9 (px), and each square area represents a symbol graphic; in a single color code image, each row can accommodate INT (1280 / 9) = 142 symbol graphics, and each column can accommodate INT (800 / 9) = 88 symbol graphics. Therefore, the entire single color code image can accommodate 142 × 88 = 12496 symbol graphics, corresponding to 12496 × 4 = 49984 bits, and 49984 / 8 = 6248 bytes. That is, the amount of information that can be stored in a single color code image is 6248 bytes.
[0036] In actual production scenarios, the encoding format of a single color code image is shown in the following table:
[0037] As can be seen from the above table, in addition to carrying the data to be transmitted, the entire color code diagram also has a message header area and a data area. The message header contains the message type, message header length, data length, message header CRC, data area CRC, and a reserved field. The data area contains the specific data to be transmitted.
[0038] Considering that errors may occur during cross-network data transmission due to interference from various factors, in order to determine whether the data is correct, it is necessary to perform error detection and processing mechanisms through CRC check.
[0039] (1) Set a cyclic redundancy check (CRC), that is, the message header and data area in the color code image have corresponding message header CRC and data area CRC. CRC check is performed every time a part is decoded. If an error occurs, the decoding is stopped.
[0040] (2) When the CRC check of a single slice of the transmitted data is wrong, the calibration procedure will be triggered and the color code image will be re-decoded.
[0041] like Figure 3 As shown, the specific execution steps of a color image encoding and decoding system for cross-network data transmission are as follows: Step S1: construct an SVM graphic recognition model and perform model training for the recognition of code element graphics.
[0042] Step S1 specifically includes: Step S1-1, agree on 16 code element patterns, such as Figure 1 As shown, each represents a hexadecimal number; Step S1-2: Collect several sample data files, read the bit stream of each file, and convert every 4 bits read into a corresponding symbol pattern to generate multiple symbol patterns; Step S1-3: Use multi-hot vectors to sequentially label the generated multiple symbol graphs, and divide them into a training data set and a test data set in a ratio of 8:2; Step S1-4: pre-process the symbol graphics in the training data set and the test data set, i.e., unify the image size, remove noise, and enhance the image to ensure the quality and consistency of the symbol graphics; Step S1-5: extract features from the pre-processed symbol graph, convert the extracted features into feature vectors to facilitate classification using the SVM pattern recognition model, and standardize and normalize the feature vectors to ensure the scale consistency of different features; Step S1-6: Use SVM to classify the processed feature vectors, use the training data set to train an SVM graphic recognition model, combine the test data for testing, evaluate and tune the model, and continue to repeat this step until a usable SVM graphic recognition model is formed.
[0043] Step S2: The pattern setting module predefines the color code image size, the code element image size, and the hexadecimal number corresponding to each code element image.
[0044] The step S2 specifically includes: Step S2-1: Based on the specific cross-network transmission service and the display area size of the cross-network transmission transmitting end, define the display size of the color code image as a×b, and define the size of each symbol image as m×m. The maximum number of symbols that can be displayed in a single color code image, n, is INT(a / m)×INT(b / m); Step S2-2: each symbol pattern is matched with a specific hexadecimal number, and the sending end and the receiving end are uniformly set to prepare for the future generation and analysis of the color code diagram.
[0045] Step S3: The pattern generating module generates a color code image according to the data to be transmitted.
[0046] The step S3 specifically includes: Step S3-1, reading the data to be transmitted, and splitting the data to be transmitted into individual fragments according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image; Step S3-2: Read the data in each slice as bytes, and further read it as a bit stream, and convert the hexadecimal numbers corresponding to the four bits in the bit stream into a corresponding symbol pattern; Step S3-3: combine all the symbol graphics in order and add a message header to each encoded slice. The n symbol graphics are combined to form an a×b color code diagram, and the same number of color code diagrams as the number of slices are generated.
[0047] Step S4: The pattern acquisition module needs to obtain a color code image from the original image obtained in the cross-network data transmission.
[0048] The step S4 specifically includes: Step S4-1: De-noise the original image collected by the receiving end of the cross-network data transmission terminal to reduce the influence of noise and irregular lighting in the image, ensuring that the structural information of the color code image is clearly retained; Step S4-2: Using image enhancement technology to adjust the contrast, enhance the color difference between the color code image and the background, and make the color code structure more obvious; Step S4-3: Use geometric correction to rotate, scale, and translate the color code image to ensure that all parts of the color code image are evenly distributed; Step S4-4: Use size normalization to adjust the size of the color code image to a suitable recognition standard size to ensure that subsequent recognition of the color code image can be more stable and efficient.
[0049] Step S5: The pattern processing module needs to decode the color code image into a single slice of the transmission data, and finally obtain the transmission data.
[0050] Step S5-1, performing image segmentation on the color code image collected in step S4 to obtain code element graphics in the color code image; Step S5-2: traverse each symbol graphic in the color code image, obtain the specific graphic of each symbol graphic for feature extraction, convert it into a feature vector, and standardize or normalize the feature vector to ensure the scale consistency of different features; Step S5-3: Classify the feature vector corresponding to each symbol pattern using the SVM pattern recognition model obtained in step S1 to obtain the value of the four bits corresponding to each symbol pattern, arrange them into a bit stream, and organize the bit stream into specific bytes to generate a single slice of the transmitted data; Step S5-4: After each color code image is decoded, a CRC check is performed. If there is no abnormality, the individual slices of the transmitted data are spliced together to obtain the complete transmitted data.
[0051] In summary, this application has the following technical effects: (1) It can effectively increase the amount of data transmitted in a single transmission in an image-based cross-network data transmission scenario. Compared with the data transmission scheme based on QR codes, the amount of information carried by a single code element is increased from 1 bit of the traditional QR code to 4 bits, and the amount of information carried is increased by 4 times, which greatly improves the single transmission volume and transmission speed.
[0052] (2) The recognition of code element graphics based on the SVM model greatly increases the decoding speed and accuracy of color code images, ensuring effective and fast information transmission between intranets and intranets, and between intranets and extranets without physical connections.
[0053] Example 2: A color image encoding and decoding method for cross-network data transmission is provided, which is applied to the above-mentioned color image encoding and decoding system for cross-network data transmission. The method includes: At the sending end of the inter-network data transmission terminal, the data to be transmitted is encoded according to a preset encoding method to generate a color code image; At the receiving end of the cross-network data transmission terminal, the obtained color code image information is decoded and the transmitted data is restored based on the decoded data.
[0054] The method of encoding the data to be transmitted according to a preset encoding method to generate a color code image specifically includes the following steps: Predefine the color code image size, code element image size and the hexadecimal number corresponding to each code element image; Read the data to be transmitted, split the data to be transmitted into slices according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image, encode the bytes in each slice, add a message header for each encoded slice, and generate a color code image with the same number of slices, wherein the encoding of the bytes in each slice specifically includes: reading the data in each slice as bytes, and further reading it as a bit stream, sequentially converting the hexadecimal numbers corresponding to the 4 bits therein into a corresponding code element pattern, and combining all the code element patterns in order.
[0055] The color code image information obtained by decoding is restored to the transmitted data according to the decoded data, specifically including the following steps: Receive an image sent by a transmitting terminal of an inter-network data transmission terminal and extract a complete color code image from the image; The color code image is decoded into the original transmission data. The specific steps of decoding are as follows: according to the color code image, image segmentation is performed to obtain all code element graphics in the color code image; using the trained SVM graphic recognition model, according to the color and shape of the code element graphics, the values of the 4 bits corresponding to all code element graphics are identified and arranged into a bit stream; the bit stream is organized into specific bytes, and the message header and data area are obtained through parsing to obtain the original transmission data.
[0056] Example 3: In the third embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission when executing the computer program.
[0057] Example 4: In a fourth embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission are implemented.
[0058] Embodiment 5: In the fifth embodiment, a computer program product is provided, including a computer program or instructions. When the computer program or instructions are executed by a processor, the steps of the above-mentioned color image encoding and decoding system for cross-network data transmission are implemented.
[0059] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit and essential features of the present invention. In addition, it should be understood that although this specification is described in terms of implementation methods, not each implementation method contains only one independent technical solution. This description is for clarity only, and those skilled in the art should read the specification as a whole. The technical solutions in the various embodiments can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
Claims
1. A color image encoding and decoding system for cross-network data transmission, characterized in that: include: The pattern coding module is located at the transmitting end of the inter-network data transmission terminal and is used to encode the data to be transmitted according to a preset coding method to generate a color code image; The pattern decoding module is located at the receiving end of the cross-network data transmission terminal and is used to decode the acquired color code information and restore the transmitted data based on the decoded data.
2. A color image encoding and decoding system for cross-network data transmission according to claim 1, characterized in that: The pattern coding module includes: Pattern setting module, used to predefine the color code image size, code element image size and the hexadecimal number corresponding to each code element image; The pattern generation module is used to read the data to be transmitted, split the data to be transmitted into slices according to the size of the data to be transmitted and the maximum amount of encoded data in a single color code image, encode the bytes in each slice, add a message header to each encoded slice, and generate a color code image with the same number of slices, wherein the encoding of the bytes in each slice specifically includes: reading the data in each slice as bytes, and further reading it as a bit stream, sequentially converting the hexadecimal numbers corresponding to the four bits therein into a corresponding code element pattern, and combining all the code element patterns in order.
3. The color image encoding and decoding system for cross-network data transmission according to claim 1, characterized in that: The pattern decoding module includes: The pattern acquisition module is used to receive an image sent by a transmitting end of the cross-network data transmission terminal and extract a complete color code image from the image; The pattern processing module is used to decode the color code image into the original transmission data. The specific steps of decoding are as follows: based on the color code image, image segmentation is performed to obtain all code element graphics in the color code image; using the trained SVM pattern recognition model, based on the color and shape of the code element graphics, the values of the 4 bits corresponding to all code element graphics are identified and arranged into a bit stream; the bit stream is organized into specific bytes, and the message header and data area are obtained through parsing to obtain the original transmission data.
4. A color image encoding and decoding method for cross-network data transmission, characterized in that: include: At the sending end of the inter-network data transmission terminal, the data to be transmitted is encoded according to a preset encoding method to generate a color code image; At the receiving end of the cross-network data transmission terminal, the obtained color code image information is decoded and the transmitted data is restored based on the decoded data.
5. The color image encoding and decoding method for cross-network data transmission according to claim 4, characterized in that: The step of encoding the data to be transmitted according to a preset encoding method to generate a color code image specifically includes: Predefine the color code image size, code element image size and the hexadecimal number corresponding to each code element image; Read the data to be transmitted, split the data to be transmitted into slices according to the size of the data to be transmitted and the maximum amount of encoded data of a single color code image, encode the bytes in each slice, add a message header for each encoded slice, and generate a color code image with the same number of slices, wherein the encoding of the bytes in each slice specifically includes: reading the data in each slice as bytes, and further reading it as a bit stream, sequentially converting the hexadecimal numbers corresponding to the 4 bits therein into a corresponding code element pattern, and combining all the code element patterns in order.
6. The color image encoding and decoding method for cross-network data transmission according to claim 4, characterized in that: The color code image information obtained by decoding is restored to the transmission data according to the decoded data, specifically including: Receive an image sent by a transmitting terminal of an inter-network data transmission terminal and extract a complete color code image from the image; The color code image is decoded into the original transmission data. The specific steps of decoding are as follows: according to the color code image, image segmentation is performed to obtain all code element graphics in the color code image; using the trained SVM graphic recognition model, according to the color and shape of the code element graphics, the values of the 4 bits corresponding to all code element graphics are identified and arranged into a bit stream; the bit stream is organized into specific bytes, and the message header and data area are obtained through parsing to obtain the original transmission data.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of a color image encoding and decoding system for cross-network data transmission according to any one of claims 1 to 3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a color image encoding and decoding system for cross-network data transmission according to any one of claims 1 to 3 are implemented.
9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of a color image encoding and decoding system for cross-network data transmission according to any one of claims 1 to 3 are implemented.