Video-based file hidden transmission method and device

By splitting the file into sub-files and fusing it into video frames to transmit, the problem of insecure file transfer is solved, and the concealment and security are improved.

CN118984354APending Publication Date: 2024-11-19SICHUAN UNIVERSAL IDEAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410984936.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

In the prior art, files are not secure and concealed enough, and the QR code is visible and easily obtained and tampered by others.

Method used

Split the file to be transferred into multiple sub-files and generate the corresponding QR code picture, fuse it into the frame picture of the preset video, combine the frame picture and the frame picture into the video to be transferred by copying the frame picture, and pass the different pixel points at the receiving end Generate QR code pictures to get the file.

Benefits of technology

It realizes the concealment and security of file transfer and improves the security of file transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984354A_ABST
    Figure CN118984354A_ABST
Patent Text Reader

Abstract

The invention discloses a video-based file hidden transmission method and device, and the method comprises the steps: splitting a to-be-transmitted file into a plurality of sub-files, and generating a corresponding two-dimensional code picture according to each sub-file; then, the preset video is split into frame pictures according to the original frame rate, each frame picture is copied to obtain an initial copied frame picture, and each initial copied frame picture is located between the corresponding frame picture and the frame picture at the next moment; fusing the two-dimensional code picture into the initial duplicated frame picture to obtain a duplicated frame picture, and combining the frame picture and the duplicated frame picture into a video to be transmitted after fusion; and finally, the to-be-transmitted video is sent to the receiving end, and the to-be-transmitted file is obtained through the receiving end, so that the file can be transmitted in a more hidden manner, and the file transmission security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of file transmission, and in particular relates to a video-based hidden file transmission method and device. Background Art

[0002] With the rapid development and widespread application of information technology, the transmission of electronic files is becoming more and more frequent. Due to their importance, some electronic files have the risk of being exposed through conventional transmission methods. Once exposed, they may be obtained and cracked by others. In order to avoid this situation, a solution for transmitting files based on QR codes is proposed in the prior art. The QR code is a barcode that can store a large amount of information. The prior art converts the file into a QR code and then sends the QR code to the recipient so that the recipient can obtain the file by scanning the QR code. However, the QR code in this solution is visible and can be obtained and tampered with by others.

[0003] Therefore, how to make the file transmission more concealed and inaccessible, and improve the security of file transmission, is a technical problem to be solved by those skilled in the art. Summary of the invention

[0004] The purpose of the present invention is to solve the technical problem in the prior art that files are not safe and concealed enough during transmission.

[0005] To achieve the above technical objectives, on the one hand, the present invention provides a video-based file transmission method, the method comprising:

[0006] Split the file to be transferred into multiple sub-files, and generate a corresponding QR code image according to each sub-file;

[0007] Splitting the preset video into frame pictures according to the original frame rate, and copying each frame picture to obtain an initial copy frame picture, each of the initial copy frame pictures is located between the corresponding frame picture and the frame picture at the next moment;

[0008] The two-dimensional code image is merged into the initial copy frame image to obtain a copy frame image, and after the fusion, the frame image and the copy frame image are combined into a video to be transmitted;

[0009] The video to be transmitted is sent to a receiving end, and the file to be transmitted is obtained through the receiving end.

[0010] Furthermore, the step of fusing the two-dimensional code image into the copied frame image specifically includes:

[0011] Overlap the two-dimensional code image and the copy frame image, and determine the pixel point in the copy frame image that is the same as the black square position in the two-dimensional code image;

[0012] Modify the specified channel in the RGB channel of the pixel.

[0013] Furthermore, the step of obtaining the file to be transmitted through the receiving end specifically includes:

[0014] Split the received video into pictures;

[0015] Determine the frame picture and the copy frame picture according to the time sequence;

[0016] Determine difference pixels based on the frame image and the copied frame image;

[0017] Generate a second QR code image based on the difference pixels;

[0018] All sub-files are obtained according to all second QR code images, and all sub-files are combined into a file to be transmitted to complete the transmission.

[0019] Furthermore, splitting the file to be transmitted into a plurality of sub-files specifically involves reading the file to be transmitted as a character string and then splitting the sub-files.

[0020] Furthermore, before splitting the file to be transmitted into a plurality of sub-files, the method further includes encrypting the character string.

[0021] Furthermore, the sub-file specifically includes the total number of splits, the current sequence number and the current segment content.

[0022] On the other hand, the present invention also provides a video-based file transmission device, wherein the device comprises:

[0023] The first splitting module is used to split the file to be transmitted into multiple sub-files and generate a corresponding QR code image according to each sub-file;

[0024] A second splitting module is used to split the preset video into frame pictures according to the original frame rate, and copy each frame picture to obtain an initial copy frame picture, each of which is located between the corresponding frame picture and the frame picture at the next moment;

[0025] A fusion module, used for fusing the two-dimensional code image into the initial copy frame image to obtain a copy frame image, and combining the frame image and the copy frame image into a video to be transmitted after the fusion;

[0026] The transmission module is used to send the video to be transmitted to the receiving end, and obtain the file to be transmitted through the receiving end.

[0027] The present invention provides a video-based hidden file transmission method and device. Compared with the prior art, the method first splits the file to be transmitted into multiple sub-files, and generates a corresponding QR code image according to each sub-file; then splits the preset video into frame images according to the original frame rate, and copies each frame image to obtain an initial copy frame image, each of the initial copy frame images is located between the corresponding frame image and the frame image at the next moment; then the QR code image is merged into the initial copy frame image to obtain a copy frame image, and after the fusion, the frame image and the copy frame image are combined into a video to be transmitted; finally, the video to be transmitted is sent to a receiving end, and the file to be transmitted is obtained through the receiving end, so that the file can be transmitted more covertly and the security of file transmission is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 The figure is a flow chart of a video-based hidden file transmission method provided in an embodiment of the present specification;

[0030] Figure 2 Shown is a schematic diagram of the structure of a video-based hidden file transmission device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0032] like Figure 1The flowchart of the video-based hidden file transmission method provided by the embodiment of this specification is shown. Although this specification provides the method operation steps or device structures shown in the following embodiments or drawings, the method or device may include more or fewer operation steps or module units after partial merger based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure is applied in actual devices, servers or terminal products, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, in an environment of parallel processors or multi-threaded processing, or even in an implementation environment of distributed processing and server clusters).

[0033] The video-based hidden file transmission method provided in the embodiments of the present invention can be applied to terminal devices such as clients and servers. Figure 1 As shown, the method specifically comprises the following steps:

[0034] Step S101: split the file to be transmitted into multiple sub-files, and generate a corresponding QR code image according to each sub-file.

[0035] Specifically, the file to be transmitted is split into multiple sub-files, specifically, the file to be transmitted is read as a string and then split, and before the file to be transmitted is split into multiple sub-files, the string is encrypted. The sub-file specifically includes the total number of splits, the current sequence number and the current segment content.

[0036] That is to say, the file content of the file to be transmitted is first read as a string, and then the string is encrypted and split into several sub-files. The encryption algorithm is not limited, and a corresponding QR code image is generated for each sub-file. The QR code image contains the data information of the corresponding sub-file. Each sub-file includes the total number of splits, the current sequence number and the current segment content, so that the receiving end can combine the sub-files into the file to be transmitted after receiving them.

[0037] Step S102: split the preset video into frame pictures according to the original frame rate, and copy each frame picture to obtain an initial copy frame picture, each of the initial copy frame pictures is located between the corresponding frame picture and the frame picture at the next moment.

[0038] Specifically, prepare a video to be integrated with the QR code, that is, a preset video, and split it into frame images according to the original frame rate of the video. Copy one frame of each frame image to obtain the corresponding initial copied frame image. At this time, if the frame rate of the preset video is 30 frames, then the copied video becomes 60 frames. This is to more covertly integrate the QR code image into the video without affecting the viewing of the video.

[0039] Step S103: merge the QR code image into the initial copy frame image to obtain a copy frame image, and after the fusion, combine the frame image and the copy frame image into a video to be transmitted.

[0040] In the embodiment of the present application, the merging of the two-dimensional code image into the copied frame image specifically includes:

[0041] Overlap the two-dimensional code image and the copy frame image, and determine the pixel point in the copy frame image that is the same as the black square position in the two-dimensional code image;

[0042] Modify the specified channel in the RGB channel of the pixel.

[0043] Specifically, when the QR code image is merged into the copy frame image, the pixel point with the same position as the black square in the QR code image is essentially determined in the copy frame image, and then the color of the pixel point is modified. The modification process can be to subtract one from the color value of a specified channel in the RGB channel. For example, the RGB channel of the pixel point is represented as (255,255,255), and after modification it is (254,255,255). The specified channel can be the R channel, the G channel, or the B channel.

[0044] Step S104: sending the video to be transmitted to a receiving end, and obtaining the file to be transmitted through the receiving end.

[0045] In the embodiment of the present application, obtaining the file to be transmitted through the receiving end specifically includes:

[0046] Split the received video into pictures;

[0047] Determine the frame picture and the copy frame picture according to the time sequence;

[0048] Determine difference pixels based on the frame image and the copied frame image;

[0049] Generate a second QR code image based on the difference pixels;

[0050] All sub-files are obtained according to all second QR code images, and all sub-files are combined into a file to be transmitted to complete the transmission.

[0051] Specifically, after receiving the video, the receiving end splits the video into frames. Regardless of how the receiving end decodes or plays the video, the bit rate supported by the receiving end is not less than the bit rate of the video, so that the receiving end can obtain the frame containing the QR code information.

[0052] After the receiving end determines the frame image and the corresponding copy frame image according to the time sequence, the frame image and the copy frame image are overlapped and compared to determine the difference pixels, and these difference pixels are displayed, that is, a second QR code image is generated. The image also corresponds to a sub-file. All second QR code images are determined based on all frame images and the corresponding copy frame images, and then all sub-files are decrypted to obtain, and then all sub-files are combined to obtain a complete file.

[0053] Based on the above-mentioned video-based hidden file transmission method, one or more embodiments of this specification also provide a platform and terminal for video-based hidden file transmission. The platform or terminal may include a device, software, module, plug-in, server, client, etc. using the method described in the embodiments of this specification and combined with necessary implementation hardware. Based on the same innovative concept, the system in one or more embodiments provided in the embodiments of this specification is as described in the following embodiments. Since the implementation scheme and method for solving the problem of the system are similar, the implementation of the specific system in the embodiments of this specification can refer to the implementation of the aforementioned method, and the repetitions will not be repeated. The terms "unit" or "module" used below can implement a combination of software and / or hardware with predetermined functions. Although the system described in the following embodiments is preferably implemented in software, hardware and a combination of software and hardware are also possible and conceived.

[0054] Specifically, Figure 2 FIG. 1 is a schematic diagram of a module structure of an embodiment of a video-based hidden file transmission device provided in this specification. Figure 2 As shown, the video-based hidden file transmission device provided in this specification includes:

[0055] The first splitting module 201 is used to split the file to be transmitted into multiple sub-files, and generate a corresponding QR code image according to each sub-file;

[0056] The second splitting module 202 is used to split the preset video into frame pictures according to the original frame rate, and copy each frame picture to obtain an initial copy frame picture, each of which is located between the corresponding frame picture and the frame picture at the next moment;

[0057] A fusion module 203 is used to fuse the two-dimensional code image into the initial copy frame image to obtain a copy frame image, and combine the frame image and the copy frame image into a video to be transmitted after the fusion;

[0058] The transmission module 204 is used to send the video to be transmitted to the receiving end, and obtain the file to be transmitted through the receiving end.

[0059] It should be noted that the above-mentioned system may also include other implementation modes according to the description of the corresponding method embodiment. The specific implementation modes may refer to the description of the above-mentioned corresponding method embodiment, which will not be described one by one here.

[0060] The present application also provides an electronic device, including:

[0061] processor;

[0062] a memory for storing instructions executable by the processor;

[0063] The processor is configured to execute the method provided in the above embodiment.

[0064] The electronic device provided by the embodiment of the present application stores the executable instructions of the processor in a memory. When the processor executes the executable instructions, it can first split the file to be transmitted into multiple sub-files, and generate a corresponding QR code image according to each sub-file; then split the preset video into frame images according to the original frame rate, and copy each frame image to obtain an initial copy frame image, each of the initial copy frame images is located between the corresponding frame image and the frame image at the next moment; then the QR code image is merged into the initial copy frame image to obtain a copy frame image, and after the fusion, the frame image and the copy frame image are combined into a video to be transmitted; finally, the video to be transmitted is sent to the receiving end, and the file to be transmitted is obtained through the receiving end, so that the file can be transmitted more covertly, and the security of file transmission is improved.

[0065] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0066] The methods or devices described in the above embodiments provided in this specification can implement business logic through computer programs and record them on storage media, and the storage media can be read and executed by computers to achieve the effects of the solutions described in the embodiments of this specification, such as:

[0067] Split the file to be transferred into multiple sub-files, and generate a corresponding QR code image according to each sub-file;

[0068] Splitting the preset video into frame pictures according to the original frame rate, and copying each frame picture to obtain an initial copy frame picture, each of the initial copy frame pictures is located between the corresponding frame picture and the frame picture at the next moment;

[0069] The two-dimensional code image is merged into the initial copy frame image to obtain a copy frame image, and after the fusion, the frame image and the copy frame image are combined into a video to be transmitted;

[0070] The video to be transmitted is sent to a receiving end, and the file to be transmitted is obtained through the receiving end.

[0071] The storage medium may include a physical device for storing information, which is usually a medium that digitizes information and then stores it in an electrical, magnetic or optical manner. The storage medium may include: a device that stores information in an electrical energy manner, such as various memories, such as RAM, ROM, etc.; a device that stores information in a magnetic energy manner, such as a hard disk, a floppy disk, a magnetic tape, a magnetic core memory, a magnetic bubble memory, a USB flash drive; a device that stores information in an optical manner, such as a CD or a DVD. Of course, there are other readable storage media, such as quantum memory, graphene memory, etc.

[0072] The embodiments of this specification are not limited to complying with industry communication standards, standard computer resource data update and data storage rules, or the situations described in one or more embodiments of this specification. Certain industry standards or slightly modified implementation plans based on the implementation described in the custom method or embodiment can also achieve the same, equivalent or similar, or predictable implementation effects after deformation of the above-mentioned embodiments. The embodiments obtained by using these modified or deformed data acquisition, storage, judgment, processing methods, etc. can still fall within the scope of the optional implementation plans of the embodiments of this specification.

[0073] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a computer-readable medium such as a microprocessor or processor and a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, ATMEL AT91SAM, MICROCHIP PIC18F26K20, and SILICONE LABS C8051F320. The memory controller can also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0074] The device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. There may be other divisions in actual implementation, such as multiple units or plug-ins may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of the device or unit, which may be electrical, mechanical or other forms.

[0075] These computer program instructions may also be loaded onto a computer or other programmable resource data updating device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0076] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0077] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A video-based hidden file transmission method, characterized in that: The method comprises: Split the file to be transferred into multiple sub-files, and generate a corresponding QR code image according to each sub-file; Splitting the preset video into frame pictures according to the original frame rate, and copying each frame picture to obtain an initial copy frame picture, each of the initial copy frame pictures is located between the corresponding frame picture and the frame picture at the next moment; The two-dimensional code image is merged into the initial copy frame image to obtain a copy frame image, and after the fusion, the frame image and the copy frame image are combined into a video to be transmitted; The video to be transmitted is sent to a receiving end, and the file to be transmitted is obtained through the receiving end.

2. The video-based file transmission method according to claim 1, characterized in that: The step of fusing the two-dimensional code image into the copied frame image specifically includes: Overlap the two-dimensional code image and the copy frame image, and determine the pixel point in the copy frame image that is the same as the black square position in the two-dimensional code image; Modify the specified channel in the RGB channel of the pixel.

3. The video-based file transmission method according to claim 2, characterized in that: The step of obtaining the file to be transmitted through the receiving end specifically includes: Split the received video into pictures; Determine the frame picture and the copy frame picture according to the time sequence; Determine difference pixels based on the frame image and the copied frame image; Generate a second QR code image based on the difference pixels; All sub-files are obtained according to all second QR code images, and all sub-files are combined into a file to be transmitted to complete the transmission.

4. The video-based file transmission method according to claim 1, characterized in that: The splitting of the file to be transmitted into a plurality of sub-files is specifically to split the file to be transmitted after reading the file to be transmitted as a character string.

5. The video-based file transmission method according to claim 4, characterized in that: Before splitting the file to be transmitted into a plurality of sub-files, the method further includes encrypting the character string.

6. The video-based file transmission method according to claim 5, characterized in that: The sub-file specifically includes the total number of splits, the current sequence number and the current segment content.

7. A video-based file transmission device, characterized in that: The device comprises: The first splitting module is used to split the file to be transmitted into multiple sub-files and generate a corresponding QR code image according to each sub-file; A second splitting module is used to split the preset video into frame pictures according to the original frame rate, and copy each frame picture to obtain an initial copy frame picture, each of which is located between the corresponding frame picture and the frame picture at the next moment; A fusion module, used for fusing the two-dimensional code image into the initial copy frame image to obtain a copy frame image, and combining the frame image and the copy frame image into a video to be transmitted after the fusion; The transmission module is used to send the video to be transmitted to the receiving end, and obtain the file to be transmitted through the receiving end.