High-density graph and file mutual conversion method and system

Through high -density graphics and file mutual transfer methods, the file is encoded as a graphical pixel data sequence, and the video channel transmission is used to solve the problem of low file transmission speed under the conditions of non -network and non -storage medium connection conditions, and achieve efficient file transmission.

CN119382825APending Publication Date: 2025-01-28BEIJING SIFANG JIBAO ENG TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411242767.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The prior art cannot efficiently transfer files and the transmission speed is low when the network-free and storage media connection conditions or only the remote desktop access conditions are met.

Method used

Adopt a high -density graphics and file mutual transfer method. The file is converted to graphical pixel data sequence through high -density file transfer graphic encoding schemes, and transmission through video channels. The receiving end convers the graphic pixel data sequence conversion through a high -density graphic transition file decoding scheme. For the file data sequence, generate a copy of the file.

Benefits of technology

Under the conditions of non -network and non -storage medium connection conditions, make full use of the video transmission channel, converting the file into a bitmap containing a large amount of file information, which greatly improves the speed of one -way file transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119382825A_ABST
    Figure CN119382825A_ABST
Patent Text Reader

Abstract

The invention discloses a high-density graph and file mutual conversion method and system. The method comprises the following steps: loading an original file at a sending end, extracting the content of the original file, generating a file data sequence combination, converting the file data sequence into a group of graph pixel data sequence through a high-density file-to-graph coding scheme, and sending the graph pixel data sequence to a server; generating a group of graphic data containing file information based on the graphic pixel data sequence; and extracting the graph pixel data sequence from the group of graphs containing the file information at a receiving end, converting the graph pixel data sequence into the file data sequence through a high-density graph-to-file decoding scheme, and combining the file data sequence to generate a copy of the original file. According to the scheme of the invention, file transmission under the condition of no network and no storage medium connection is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data transmission, and in particular relates to a high-density graphics and file conversion method and system. Background Art

[0002] In organizations that require secure access control, devices in an isolated intranet state only support legitimate network interface access or authorized physical storage media connection. When internal files need to be transferred to the outside, they need to go through a complex transfer process and multiple links of review and control. This type of intranet isolation device generally supports display output or remote desktop access in some restricted way.

[0003] One existing technology uses a file-to-QR code conversion method to encode the file into a recognizable QR code, capture and identify the QR code through a camera, and parse the file data. The data transmission density of this method is limited by the QR code format. The maximum density of information transmitted by a single QR code is only 9.6%. When used in large file scenarios, the disadvantage of low transmission rate is fully revealed. At the same time, the capture and decoding process of the scanning device is time-consuming, which greatly reduces the transmission speed.

[0004] Another existing technology uses an image recognition-based method to convert files into graphics that can be recognized by image OCR. In order to ensure recognition accuracy, this method reduces the transmission density. At the same time, a specially trained image recognition algorithm is required in the decoding process, and the decoding speed is significantly reduced.

[0005] Another existing technology uses a bitmap-based coding method to convert files into graphics with a black and white pixel coding scheme. In this method, a single pixel can only transmit 1 bit of data, and the video channel only uses one-twenty-fourth of it, which is extremely unfriendly to large file transmission. Summary of the invention

[0006] In order to solve the deficiencies in the prior art, the present invention provides a high-density graphics and file conversion method and system to solve the problem of being unable to transfer files or having low transmission speed under conditions of no network and no storage medium connection, or when only remote desktop access conditions are available.

[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0008] The present invention first discloses a high-density method for converting graphics and files, which comprises the following steps:

[0009] Step 1, loading the original file at the sending end, extracting the content of the original file, and generating a file data sequence combination, converting the file data sequence into a group of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generating a group of graphic data containing file information based on the graphic pixel data sequence;

[0010] Step 2: extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequences to generate a copy of the original file.

[0011] The present invention further includes the following preferred embodiments:

[0012] The step of extracting the content of the original file and generating a file data sequence combination further comprises:

[0013] The original file content is read in the form of binary file data stream, and the file content is divided into multiple frames according to the single transmission size. The data header, length, current frame, and total number of frames are added to the frame header, and a check bit is added to the frame tail to form a file data sequence combination.

[0014] The step of converting the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme further comprises:

[0015] Taking every 3 bytes of the file data sequence as a unit, set the color depth of the three channels of red, green and blue respectively to generate the RGB color data of a pixel;

[0016] The color data generated by the file data sequence are combined to form a graphic pixel data sequence.

[0017] The step of generating a set of graphics containing file information based on the graphic pixel data sequence further comprises:

[0018] A 24-bit depth graphic of a specified length and width is generated according to the size of the graphic pixel data sequence, and the graphic pixel data sequence is filled into the specified pixel positions of the graphic in a vertical and horizontal order with the color of the pixel points to combine into a graphic.

[0019] The converting the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme further comprises:

[0020] The color of each pixel point of the graphic pixel data sequence is divided into three channels of red, green and blue, and the color depth of each channel is used as the file data byte; the file data bytes are combined to form a file data sequence.

[0021] Combining the file data sequences to generate a copy of the original file further comprises:

[0022] Parse the frame header, length, current frame, total number of frames, content data, and check digit from the file data sequence. Combine the content data in frame order to form a binary file data stream, generate a file copy, and write it to the storage medium.

[0023] The sending end and the receiving end perform graphic data transmission via a physical high-speed video channel in an intranet isolation environment.

[0024] The present invention also discloses a high-density graphics and file conversion system using the high-density graphics and file conversion method, comprising:

[0025] A file-graphics conversion module is used to load an original file at a sending end, extract the content of the original file, and generate a file data sequence combination, convert the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generate a set of graphic data containing file information based on the graphic pixel data sequence;

[0026] The graphic file conversion module is used to extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequence to generate a copy of the original file.

[0027] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;

[0028] The storage medium is used to store instructions;

[0029] The processor is used to operate according to the instructions to execute the steps of the high-density graphics and file conversion method.

[0030] Correspondingly, the present application also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned high-density graphics and file conversion method are implemented.

[0031] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a high-density graphic and file conversion method and system, which can maximize the use of the video transmission channel rate and fully utilize the video transmission channel to convert files into bitmaps containing a large amount of file information under conditions without a network and storage medium connection, or when only remote desktop access conditions are available, thereby greatly improving the one-way file transmission speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 and Figure 2 They are respectively the flow charts of high-density file-to-graphics conversion and graphics-to-file conversion in the present invention.

[0033] Figure 3 The diagram is a usage example of a system for completing file transmission by using a high-density graphics and file conversion method according to the present invention.

[0034] Figure 4 It is a data flow diagram of a system for completing file transmission by using a high-density graphics and file conversion method according to the present invention.

[0035] Figure 5 The invention relates to a file sending end transmission tool adopting a high-density graphics and file conversion method.

[0036] Figure 6 The invention relates to a file receiving end transmission tool adopting a high-density graphics and file conversion method. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0038] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.

[0039] In view of the shortcomings of the prior art, the present invention proposes a high-density graphics and file conversion method and system. Under the conditions of no network and no storage medium connection, or when only remote desktop access conditions are available, 24-bit depth encoding of bitmap pixels is used to fully utilize the video transmission channel to convert files into bitmaps containing a large amount of file information, thereby realizing one-way high-speed file transmission.

[0040] See also Figure 1 and 2 As shown, the high-density graphics and file conversion method disclosed in the present invention includes the following steps:

[0041] Step 1, load the original file at the sending end, extract the content of the original file, and generate a file data sequence combination, convert the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generate a set of graphic data containing file information based on the graphic pixel data sequence.

[0042] In a preferred embodiment, the step of extracting the content of the original file and generating a file data sequence combination further comprises:

[0043] The original file content is read in the form of binary file data stream, and the file content is divided into multiple frames according to the single transmission size. The data header, length, current frame, and total number of frames are added to the frame header, and a check bit is added to the frame tail to form a file data sequence combination.

[0044] In a preferred embodiment, converting the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme further comprises:

[0045] Taking every 3 bytes of the file data sequence as a unit, set the color depth of the three channels of red, green and blue respectively to generate the RGB color data of a pixel;

[0046] Taking 1920×1080 resolution video channel as the maximum size of a single transmission, the theoretical density of the maximum data information that can be transmitted for a single picture is 6.075MB. However, in actual application, considering the anti-interference performance, the picture encoding is based on the LT code construction principle. The encoding process can generate K code packets. The larger the number K, the stronger the anti-interference ability, and the information density is correspondingly reduced to 6.075MB / K. Each code packet is independently generated according to the same algorithm. The process is as follows:

[0047] 1) Divide the original data into K source packets. Verify each source packet and add the verification code to the end of each source packet to form a new source packet. Randomly select an integer d in the range of 1 to K according to a distribution function as the degree of the encoding packet;

[0048] 2) Uniformly and randomly select d different source packages from the source packages;

[0049] 3) XOR the d source packets to obtain 1 coded packet.

[0050] Add a CRC16 checksum to the end of the source packet.

[0051] The color data generated by the file data sequence are combined to form a graphic pixel data sequence.

[0052] In a preferred embodiment, the step of generating a set of graphics containing file information based on the graphic pixel data sequence further comprises:

[0053] A 24-bit depth graphic of a specified length and width is generated according to the size of the graphic pixel data sequence, and the graphic pixel data sequence is filled into the specified pixel positions of the graphic in a vertical and horizontal order with the color of the pixel points to combine into a graphic.

[0054] Step 2: extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequences to generate a copy of the original file.

[0055] In a preferred embodiment, the converting the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme further comprises:

[0056] The color of each pixel in the graphic pixel data sequence is divided into three channels: red, green and blue, and the color depth of each channel is used as the file data byte.

[0057] The file data sequence uses the BP decoding algorithm to decode the received coded packets. The decoding algorithm uses the incremental BP decoding error detection process. First, the BP decoding algorithm is used to decode the received coded packets, and the decoded source packets are verified. If the decoded source packet verification is wrong, the source packet and the last connected coded packet with a degree of 1 are discarded. The entire decoding process is as follows:

[0058] 1) Initialization: Assign T a value based on the received data.

[0059] 2) Generate the initial coded G based on T and perform the incremental BP decoding verification process.

[0060] (a) Setting the initial count value p = 0;

[0061] (b) Traverse G row by row and calculate the encoding package T m The degree d(T m ), if d(T m )=1 and G(m,j)=1, then let G(m,j)=0, S j =T m . Let variable G c =G(:,j) T ; If there is no coded packet with degree 1 in this round of traversal, the decoding fails and the program exits;

[0062] (c) According to the source package S j The check code is used to check it. If the check fails, the last connected T m If there is an error, discard S j and T m , execute step (d); otherwise, execute step (e);

[0063] (d) Receive a new coded packet T x , and update G at the same time. Based on the translated source packet, XOR subtract T x After that, if Tx If it is non - zero, jump to execute step (b); otherwise, restore G, continue to receive new encoded packets, and repeat the operation in step (d).

[0064] (e) Scan G from 1 to n c , if G c (i) = 1, then let T i = T i ⊕ S j ;

[0065] (f) Set each element of G(:, j) to 0;

[0066] (g) Let p = p + 1, if p < K, jump to step (b); otherwise, execute step 3.

[0067] 3) If the verification of all source packets passes, then complete correct decoding, output the source packets and exit.

[0068] Combine the file data bytes to form a file data sequence, and realize the mutual conversion between any type of file data and pixel color data.

[0069] In a preferred embodiment, combining the file data sequence to generate a copy of the original file further includes:

[0070] Parse out the frame header, length, current frame, total number of frames, content data, and check bits from the file data sequence. Combine the content data in frame order to form a binary file data stream, generate a file copy and write it to a storage medium such as a disk.

[0071] The method can be applied in an intranet isolation environment. In a network - free environment, it is transmitted to a decoding device through a physical high - speed video channel to achieve one - way high - speed file transmission. The file transmission speed is only related to the encoding and decoding speeds of the two - end devices and the video transmission channel speed.

[0072] As Figure 3 shown, connect to a video capture card through a video signal line on the original device. The video capture card transfers the graphic data of the graphic file played by the original device and transmits it to the receiving device through a data transmission line. Figure 4 is a data flow diagram of a system for completing file transmission by using a high - density graphic and file mutual conversion method according to an embodiment of the present invention.

[0073] As Figure 5As shown, the file sending end transmission tool pre-loads the selected file in an isolated state device, extracts the file content to generate a file data sequence combination, and uses a high-density graphics and file conversion method to convert the file data sequence into a set of graphic pixel data sequences. The tool pre-agreed with the receiving end on the start time, acquisition interval, and frame sequence mode, and plays the converted graphic sequence through the video channel after the start time is reached.

[0074] like Figure 6 As shown, the file receiving end transmission tool uses a video capture card on the receiving end computer to receive the screen of the intranet isolated device, and agrees with the sending end on the start time, acquisition interval, and frame sequence. After reaching the start time, the graphic signal is received through the video channel. After reaching the end time, the transmission ends and a set of graphic sequences are generated. The tool uses a high-density graphic and file conversion method to convert the pixel data sequence data into a file data sequence combination, and decodes it to generate a file copy. At this point, the file transmission ends.

[0075] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a high-density graphic and file conversion method and system, which can maximize the use of the video transmission channel rate and fully utilize the video transmission channel to convert files into bitmaps containing a large amount of file information under conditions without a network and storage medium connection, or when only remote desktop access conditions are available, thereby greatly improving the one-way file transmission speed.

[0076] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a high-density graphics and file conversion system based on the above-mentioned high-density graphics and file conversion method, comprising:

[0077] A file-graphics conversion module is used to load an original file at a sending end, extract the content of the original file, and generate a file data sequence combination, convert the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generate a set of graphic data containing file information based on the graphic pixel data sequence;

[0078] The graphic file conversion module is used to extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequence to generate a copy of the original file.

[0079] Based on the spirit of the present invention, those skilled in the art can easily think that a computer program product can be obtained based on the aforementioned high-density graphics and file conversion method. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned high-density graphics and file conversion method.

[0080] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.

[0081] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0082] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A high-density graphics and file conversion method, characterized in that: The following steps are involved: Step 1, loading the original file at the sending end, extracting the content of the original file, and generating a file data sequence combination, converting the file data sequence into a group of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generating a group of graphic data containing file information based on the graphic pixel data sequence; Step 2: extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequences to generate a copy of the original file.

2. The high-density graphics and file conversion method according to claim 1, characterized in that: The step of extracting the content of the original file and generating a file data sequence combination further comprises: The original file content is read in the form of binary file data stream, and the file content is divided into multiple frames according to the single transmission size. The data header, length, current frame, and total number of frames are added to the frame header, and a check bit is added to the frame tail to form a file data sequence combination.

3. The high-density graphics and file conversion method according to claim 2, characterized in that: The step of converting the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme further comprises: Taking every 3 bytes of the file data sequence as a unit, set the color depth of the three channels of red, green and blue respectively to generate the RGB color data of a pixel; The color data generated by the file data sequence are combined to form a graphic pixel data sequence.

4. The high-density graphics and file conversion method according to claim 3, characterized in that: The step of generating a set of graphics containing file information based on the graphic pixel data sequence further comprises: A 24-bit depth graphic of a specified length and width is generated according to the size of the graphic pixel data sequence, and the graphic pixel data sequence is filled into the specified pixel positions of the graphic in a vertical and horizontal order with the color of the pixel points to combine into a graphic.

5. The high-density graphics and file conversion method according to claim 4, characterized in that: The converting the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme further comprises: The color of each pixel point of the graphic pixel data sequence is divided into three channels of red, green and blue, and the color depth of each channel is used as the file data byte; the file data bytes are combined to form a file data sequence.

6. The high-density graphics and file conversion method according to claim 5, characterized in that: The step of combining the file data sequences to generate a copy of the original file further comprises: Parse the frame header, length, current frame, total number of frames, content data, and check bit from the file data sequence; combine the content data in frame order to form a binary file data stream, generate a file copy and write it to the storage medium.

7. The high-density graphics and file conversion method according to claim 6, characterized in that: The sending end and the receiving end perform graphic data transmission via a physical high-speed video channel in an intranet isolation environment.

8. A high-density graphics and file conversion system, characterized in that: include: A file-graphics conversion module is used to load an original file at a sending end, extract the content of the original file, and generate a file data sequence combination, convert the file data sequence into a set of graphic pixel data sequences through a high-density file-to-graphics encoding scheme, and generate a set of graphic data containing file information based on the graphic pixel data sequence; The graphic file conversion module is used to extract the graphic pixel data sequence from the group of graphics containing file information at the receiving end, convert the graphic pixel data sequence into the file data sequence through a high-density graphic to file decoding scheme, and combine the file data sequence to generate a copy of the original file.

9. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instruction to execute the steps of the high-density graphics and file conversion method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the high-density graphics and file conversion method described in any one of claims 1 to 7 are implemented.