CN113362401A - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN113362401A
CN113362401A CN202110470879.6A CN202110470879A CN113362401A CN 113362401 A CN113362401 A CN 113362401A CN 202110470879 A CN202110470879 A CN 202110470879A CN 113362401 A CN113362401 A CN 113362401A
Authority
CN
China
Prior art keywords
data
file
image
subdata
specified format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110470879.6A
Other languages
Chinese (zh)
Inventor
吕亚亚
李云鹏
谢文龙
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202110470879.6A priority Critical patent/CN113362401A/en
Publication of CN113362401A publication Critical patent/CN113362401A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a data processing method, a data processing device and electronic equipment; wherein, the method comprises the following steps: generating an image group corresponding to data to be transmitted; wherein the group of pictures comprises at least one graphical coded picture; the data to be transmitted is contained in the image group; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format. The mode is simple and convenient to operate, data transmission can be rapidly achieved, and data transmission efficiency is improved.

Description

Data processing method and device and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, and an electronic device.
Background
Devices such as computers and servers in a secure environment are usually physically isolated from the external internet, and the devices in the secure environment are not allowed to be plugged into a data transmission device such as a USB (Universal Serial Bus). If data running in a confidential environment needs to be exported, the data is generally required to be photographed and exported in the form of a photo; when the data volume that needs to derive is very big, the form operation of taking the photo is comparatively loaded down with trivial details, needs to consume a large amount of time, leads to data transmission efficiency to be lower.
Disclosure of Invention
In view of this, the present invention provides a data processing method, an apparatus and an electronic device, so as to realize data transmission quickly and conveniently and improve data transmission efficiency.
In a first aspect, an embodiment of the present invention provides a data processing method, where the method is applied to a first device; the method comprises the following steps: generating an image group corresponding to data to be transmitted; wherein the group of pictures comprises at least one graphical coded picture; the data to be transmitted is contained in the image group; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format.
The step of generating the image group corresponding to the data to be transmitted includes: dividing data to be transmitted into at least one subdata; generating a graphic coding image containing the subdata for each subdata; determining the graph coding image corresponding to each subdata as an image group; the image quantity of the image coding image contained in the image group is matched with the subdata quantity of the at least one subdata.
The step of generating the graphic coded image including the sub-data includes: encrypting the sub-data based on a preset encryption mode; generating format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata; and coding the format data to obtain a graphic coding image containing the subdata.
After the step of converting the image group into the file with the specified format, the method further comprises: inserting a first identifier at the head of the file with the specified format, and inserting a second identifier at the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
In a second aspect, an embodiment of the present invention provides a data processing method, where the method is applied to a second device; the method comprises the following steps: extracting an image group from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted; decoding the graphics coding images in the image group to obtain data included in each piece of graphics coding data; obtaining data to be transmitted based on data included in each graphic coding image; the recording file is obtained through the following steps: generating an image group corresponding to data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format so as to record the file with the specified format to obtain a recorded file.
The data to be transmitted is divided into at least one subdata in advance; each graphic coded image comprises sub data; the graphics-encoded image further comprises: the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata; the step of obtaining data to be transmitted based on data included in each graphic encoded image includes: decrypting subdata included in each image coding image based on the subdata encryption mode to obtain at least one piece of decrypted subdata; sequencing each subdata based on the arrangement sequence of each subdata in at least one subdata to obtain intermediate data; and if the sub-data quantity contained in the intermediate data is matched with the sub-data quantity of at least one sub-data contained in the image coded image, determining the intermediate data as the data to be transmitted.
Before the step of extracting the image group from the recording file, the method further comprises: recording a file with a specified format to obtain a recorded file; or, acquiring a recording file from a third device; and recording the file by the third equipment to obtain the file with the specified format.
The recording file is recorded by a third device or a second device in the following way: when the preset first identification is identified, determining that the file with the specified format is started, and starting to record the file with the specified format; when the preset second identifier is identified, determining that the designated format file is played completely, and ending recording the designated format file to obtain a recorded file; the head of the file with the specified format comprises a first identifier, and the tail of the file with the specified format comprises a second identifier; the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
In a third aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus is disposed in a first device; the device comprises: the image group generating module is used for generating an image group corresponding to the data to be transmitted; wherein the group of pictures comprises at least one graphical coded picture; the data to be transmitted is contained in the image group; the conversion module is used for converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and the opening module is used for opening the file with the specified format.
In a fourth aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus is disposed in a second device; the device comprises: the extraction module is used for extracting the image group from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted; the decoding module is used for decoding the graphic coding images in the image group to obtain data included in each piece of graphic coding data; the data generation module is used for obtaining data to be transmitted based on the data included in each graphic coding image; the recording file is obtained through the following steps: generating an image group corresponding to data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format so as to record the file with the specified format to obtain a recorded file.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the data processing method.
In a sixth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions, which when called and executed by a processor, cause the processor to implement the above-mentioned data processing method.
The embodiment of the invention has the following beneficial effects:
in the data processing method, the data processing device and the electronic equipment, the image group containing at least one graphic coding image is converted into the specified format file, and the specified format file has the function of automatically switching and displaying the images in the image group when being opened, so that the graphic coding images in the image group can be automatically switched and displayed when the specified format file is opened, manual operation and switching by a user are not needed, a recording file can be obtained by recording the specified format file, and the transmission of the data to be transmitted from the first equipment to other equipment can be realized through the recording file. The mode is simple and convenient to operate, and when the data volume needing to be transmitted is large, data transmission can be rapidly realized, and the data transmission efficiency is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a hardware scenario provided in an embodiment of the present invention;
FIG. 3 is a diagram illustrating another hardware scenario provided by an embodiment of the present invention;
FIG. 4 is a flow chart of another data processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of another data processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart of another data processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of another data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic view of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In some scenarios, data analysis may be required for data running in a secure environment, at which point the data needs to be exported from the secure environment. In the related art, data is generally photographed, exported in the form of a photograph, or a network security officer performs a data transmission operation. However, these methods are cumbersome to operate, and require a lot of time, resulting in low data transmission efficiency.
Based on the foregoing, embodiments of the present invention provide a data processing method and apparatus, and an electronic device, where the technology may be applied to various scenarios requiring data export, data transmission, or data transceiving, and particularly may be applied to data transmission between networks or devices that are isolated from each other.
First, referring to a flowchart of a data processing method shown in fig. 1, the method is applied to a first device; the first device can be a server, a computer or various terminal devices; the method comprises the following steps:
step S102, generating an image group corresponding to data to be transmitted; wherein the group of pictures comprises at least one graphical coded picture; the data to be transmitted is contained in the image group;
the data to be transmitted may be predetermined. The purpose of the data processing method in this embodiment is to transmit data in the first device to the second device, but there is no communication connection in any form between the first device and the second device, and in this scenario, the data to be transmitted may be negotiated and determined in advance through other devices or other manners except the first device and the second device. For example, the data to be transmitted is determined by communicating with devices such as a mobile phone and a computer except the first device and the second device, or by direct communication between workers. After the data to be transmitted is determined, the person with the operation authority can search and select the data to be transmitted from the first device, and then the step S102 is executed.
The data to be transmitted here may be data in any format, for example, text, tables, images, audio, and the like. The graphics code image usually includes a specific shape or a specific color, and the data is stored through the transformation of the shape and the color. For example, the particular shape may be a bar, rectangle, square, circle, or the like; the specific color may be black, white, etc.
The data to be transmitted is usually completely contained in the image group; each graphical encoded image includes at least a portion of the data to be transmitted. When the size of the graphic code image is relatively fixed, the amount of data that can be stored per graphic code image is also relatively fixed. If the data volume of the data to be transmitted is smaller than or equal to the data volume which can be stored in one image coding image, the image group corresponding to the data to be transmitted usually comprises one image coding image, and the image coding image comprises all data of the data to be transmitted.
If the data volume of the data to be transmitted is larger than the data volume which can be stored by one image coding image, the image group corresponding to the data to be transmitted generally comprises a plurality of image coding images, each image coding image comprises a part of data of the data to be transmitted, and the data included by all the image coding images in the image group can form complete data to be transmitted.
Step S104, converting the image group into a file with a specified format; wherein the file with the specified format is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed;
the image group comprises at least one image coding image which is relatively separated, and each image coding image can be understood as a single file which can be a file in any image format. In the above steps, the image group is converted into a file with a specified format, and specifically, at least one image coding image included in the image group is integrally converted into one file. This step can also be expressed as generating a specified format file based on the image group.
The file format of the file with the specified format can be preset, and the file format of the file with the specified format needs to have a specific function, namely when the file with the specified format is opened, the images in the image group are automatically switched and displayed, so that after the file with the specified format is opened, the manual operation switching by a user is not needed; especially, when the data volume of the data to be transmitted is large and the generated graphic coding images are more, the function of automatically switching the display images can avoid the labor cost and the time cost caused by manual operation switching, meanwhile, the efficiency of data transmission can be greatly improved, and efficient and rapid large-data-volume data transmission is realized.
Based on the function of automatically switching and displaying images, the file with the specified format can be a video format file, or a dynamic image format file, or can be other files with the specified format or custom formats with the function.
The video format file can be understood as converting the images in the image group into video frames, and when the video format file is opened, the video frames are automatically played, so that the function of automatically switching and displaying the images in the image group is realized. The video format file may specifically be a format file such as mp4, mpeg, avi, mv, and the like. When a video format file is started, a video playing program is usually needed to realize the video format file; the video format file is generally suitable for the situation that the number of images in the image group is large, and each image coded image can be played frame by frame stably.
The above-mentioned moving picture format file may be understood as an image file in which a plurality of graphic coded images are stored together and displayed on a screen one by one, thereby forming a simple animation. When the dynamic image format file is opened, the images in the image group are displayed one by one, so that the function of automatically switching and displaying the images in the image group is realized. The moving image format file may be a gif format file. The dynamic image format file can be opened by using a browser or various application programs, is generally suitable for the situation that the number of images in an image group is small, and is more flexible and convenient to play.
And step S106, opening the file with the specified format.
And starting the file with the specified format, and recording the images in the image group through the second equipment or the third equipment in the process of automatically switching and displaying the images in the image group by the file with the specified format to obtain a recording file of the image group. The second device in this embodiment is a target device to which data to be transmitted needs to be transmitted, and the second device may record a file with a specified format in person to obtain a recorded file, and then process the recorded file to obtain the data to be transmitted. The third device may be understood as an intermediate device between the first device and the second device, where the third device records the file with the specified format to obtain a recorded file, then establishes a communication connection with the second device, sends the recorded file to the second device, and the second device processes the recorded file to obtain data to be transmitted.
In order to realize the transmission of the data to be transmitted, the embodiment is not realized by a mode of transmitting the file with the specified format, but the file with the specified format is opened on the first device, and because the file with the specified format has a function of automatically switching and displaying the images in the image group when the file with the specified format is opened, the images in the image group can be automatically switched and displayed on the screen after the file with the specified format is opened. At this time, the images in the image group displayed in the screen are recorded by the third device, and the recording file of the image group is obtained. The third device may be any device having a recording function, for example, a terminal device such as a video recorder, a mobile phone having a recording function, a tablet computer, or a computer equipped with a camera and having a recording function. The recording file may be a video format file, but may also be a file with other format.
It should be noted that the third device and the first device are independent devices, or the third device and the first device are not connected in the same network. And recording the displayed file with the specified format through third equipment to obtain each graph coding image in the file with the specified format, and extracting each part of data of the data to be transmitted from the graph coding images to obtain the data to be transmitted so as to realize the transmission of the data to be transmitted.
By way of example only, in one particular application scenario, the first device may be a device in a secure environment, the device being not connected to a network, or being connected only to a network within the secure environment; by the data processing method in the above embodiment, the data to be transmitted in the first device may be transmitted to an external device outside the secure environment.
In the data processing method, the image group containing at least one image coding image is converted into a file with a specified format, and the file with the specified format has the function of automatically switching and displaying the images in the image group when the file with the specified format is opened, so that the image coding images in the image group can be automatically switched and displayed without manual operation switching of a user when the file with the specified format is opened, a recording file can be obtained by recording the file with the specified format, and the transmission of data to be transmitted from the first equipment to other equipment can be realized through the recording file. The mode is simple and convenient to operate, and when the data volume needing to be transmitted is large, data transmission can be rapidly realized, and the data transmission efficiency is improved.
The following embodiment describes a specific implementation manner of generating an image group corresponding to data to be transmitted. When generating the image group, dividing data to be transmitted into at least one subdata; generating a graphic coding image containing the subdata for each subdata; determining the graph coding image corresponding to each subdata as an image group; the number of pictures of the graphic coded picture contained in the picture group is matched with the number of the sub-data of the at least one sub-data. Specifically, the number of the images of the image group of the image coded image is the same as the number of the subdata of the at least one subdata; for example, if the data to be transmitted is divided into three sub-data, three graphics-encoded images are generated.
When dividing the subdata, determining the data volume of the subdata according to the data capacity of the image coded by the graph; and dividing the data to be transmitted into at least one piece of sub data based on the data volume of the sub data. The data capacity of a graphics coded image may be understood as the amount of data that the graphics coded image can store; and then, starting from the first data of the data to be transmitted, dividing to obtain sub-data when the data volume of the sub-data is reached, and so on, wherein the data volume of the last residual data is possibly less than or equal to the data volume of the sub-data, and at the moment, the residual data volume is also used as the sub-data and is stored through a graphic coding image. And carrying out graphic coding on each subdata to obtain a graphic coding image of the subdata.
In practical implementation, a plurality of graphic coding modes can be adopted to code the sub-data, so as to obtain different graphic coding images. For example, the graphical encoded image may be a two-dimensional code image or a barcode image. And coding the sub-data by adopting a related two-dimensional code coding mode to obtain a two-dimensional code image, and coding the sub-data by adopting a related bar code coding mode to obtain a bar code image. In other embodiments, the specific graphics coding image type and the corresponding graphics coding method may be customized.
In order to improve the safety of data, when generating a graph coding image containing subdata, firstly encrypting the subdata based on a preset encryption mode; generating format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata; and coding the format data to obtain a graphic coding image containing the subdata.
The Encryption method may be preset, for example, MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm), DES (Data Encryption Standard) Algorithm, or the like. The encrypted subdata and the encryption mode of the subdata are stored in the format data of the subdata; therefore, when the subdata is decrypted on other equipment, the subdata can be decrypted in a decryption mode matched with the encryption mode. The associated key may be sent to the other device in other ways.
The format data of the sub-data may include, in addition to the encrypted sub-data and the encryption method of the sub-data, an arrangement order of the sub-data in the at least one sub-data, a number of the sub-data of the at least one sub-data, a data amount of the sub-data, and an end identifier of the sub-data. Wherein, the arrangement order of the sub-data in the at least one sub-data can be represented by the order identifier. The arrangement order of the sub-data in the at least one sub-data can be determined according to the position of the sub-data in the data to be transmitted. In a specific implementation, in the process of dividing the data to be transmitted into the sub-data, each sub-data is divided, and a sequential identifier is set for the sub-data. After obtaining the plurality of subdata on other equipment, the plurality of subdata can be arranged according to the sequence identifier to obtain correct data to be transmitted. The sub-data number of the at least one sub-data may be specifically understood as how many sub-data the data to be transmitted is divided into; when other equipment analyzes a plurality of subdata from the recording file, the actual number of the analyzed subdata is compared with the subdata number included in the format data, if the actual number of the analyzed subdata is the same as the subdata number included in the format data, all subdata of the data to be transmitted can be analyzed, and therefore the integrity of the final data to be transmitted is guaranteed.
The data size of the subdata can be the data size of the original subdata obtained after division; the data volume of the subdata can be used for comparing the data volume of the subdata obtained by decryption with the data volume of the original subdata after the subdata is obtained by decryption of other equipment, so that whether the subdata is lost or damaged is determined, and the integrity and the accuracy of the data to be transmitted are further ensured. The end identifier of the sub-data can be used for distinguishing each sub-data, and when the format data of a plurality of character data are sequentially arranged, graphic coding can be performed on the format data before the end identifier every time one end identifier is reached.
As an example, the format data of the sub data may be specifically divided into a data header, data, and a data trailer. The data header comprises the arrangement sequence of the sub-data in at least one sub-data, the encryption mode of the sub-data and the data volume of the sub-data. The sub-data may be stored in four bytes in the at least one sub-data, the sub-data may be stored in two bytes in an encryption manner, and both the number of the sub-data of the at least one sub-data and the data amount of the sub-data may be stored in two bytes. The data behind the data header is the encrypted sub-data. The data trailer includes an end identifier of the sub data, and may be stored using one byte.
In a specific implementation manner, when the image group is converted into a file with a specified format, a format parameter of the image group may be set first; wherein the format parameters include: the display duration of each image in the image group; the set of images is then converted to a file of a specified format based on the format parameter. The display time period here is used to control the image switching speed when switching the display of the graphics-coded image. The display time period may be set to 0.5 second, 1 second, or the like. When the specified format file is a video format file, the format parameter may be a display duration of each frame of the video frame. When the image group is converted into a file with a specified format, a graphics coded image can be converted into one frame of video frame, or a graphics coded image can be converted into a plurality of frames of video frames.
In the above embodiment, when the encoded graphic image is a two-dimensional code image, the specified format file may be understood as a large-capacity two-dimensional code format file, and the file includes a plurality of small-capacity two-dimensional code images. Under the confidential environment, the storage size of the two-dimensional code is effectively expanded in a mode of encoding the two-dimensional code image into a video, a large amount of data can be rapidly and indirectly exported, and labor time cost is saved. And the two-dimensional code content data is encrypted, so that the safety of the data is effectively guaranteed.
According to the embodiment, after the file with the specified format is opened on the first device, the file with the specified format needs to be recorded through other devices, and because the first device and the other devices are in different networks and have no communication connection relationship, after the file with the specified format is opened by the first device, the other devices are difficult to know that the file with the specified format is opened, and at this time, the file with the specified format cannot be recorded completely by the other devices.
In order to avoid the problems, after the step of converting the image group into the file with the specified format, inserting a first identifier at the head of the file with the specified format and inserting a second identifier at the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
The equipment for recording the file with the specified format needs to have the function of identifying the first identifier and the second identifier, and when the first identifier is identified, the recording function in the equipment can be triggered and started, so that the file with the specified format is recorded; and after the second identifier is identified, triggering to close the recording function in the equipment, thereby finishing recording the file with the specified format and obtaining the recorded file. The above-mentioned device for recording the file with the specified format is equivalent to the second device or the third device in the embodiment.
The first and second identifiers described above may be implemented in various forms. For example, in the form of an image, the first identifier may specifically be a first identifier image, and the second identifier may specifically be a second identifier image; the first identification image is inserted in front of a first graphic coding image in the file with the specified format, and when the file with the specified format is opened, the first identification image is displayed firstly, and then the first graphic coding image and subsequent graphic coding images are displayed; and the second identification image is inserted behind the last graphic coding image in the file with the specified format, and the second identification image is displayed after the last graphic coding image is displayed. In the mode, because the first identification is inserted in front of the first graphic coding image, the first graphic coding image is played after the first identification is played, a longer time can be reserved for starting the recording function of the equipment for recording the files with the specified format, the problem that the recording function is started after the graphic coding image is played is avoided, the mode is reliable, the recording effect is stable, and recording can be guaranteed to obtain complete files with the specified format under most conditions.
In another mode, the first identifier may be inserted into a first graphics coded image in the file with the specified format, but does not block a coded region in the graphics coded image; similarly, the second identifier may be inserted into the last graphics code image in the format-specified file, but does not obscure the code region in the graphics code image. The method usually needs the equipment for recording the file with the specified format to start the recording function immediately after identifying the first identifier, so that the first graphic coding image is prevented from being omitted, but the recorded file obtained by the method has short time length, small data volume and convenient transmission.
The above-described embodiments are applied to the first device. For ease of understanding, a hardware scenario of the present embodiment is described below. As shown in fig. 2, three devices are involved in the scene, where a first device is configured to generate an image group corresponding to data to be transmitted; converting the image group into a file with a specified format, and automatically switching and displaying images in the image group on a display screen of the first device; and the third equipment is used for recording the images in the automatic switching display image group to obtain a recording file. The third device has only a recording relationship with the first device, and there is usually no communication connection relationship. The third device has a communication connection relationship with the second device, such as wireless communication, wired communication or communication through a data transmission device. And after the third equipment obtains the recording file, transmitting the recording file to the second equipment.
When the first device belongs to a device in a secure environment, the third device is not typically in a communicative connection with any device outside the secure environment while recording the image. For example, when the third device is a mobile phone and the mobile phone records an image, the mobile phone needs to turn off communication signals such as a mobile signal and a wifi signal, and after the recording is completed, the mobile phone turns on the communication signals again to transmit the recorded file to the second device.
Fig. 3 provides another hardware scenario. In the scene, the second device directly records the file with the specified format, and after the second device records the recorded file, the recorded file is not required to be transmitted to other devices, and the recorded file can be processed on the device, and finally the data to be transmitted is obtained. After the data to be transmitted is obtained, if necessary, the data to be transmitted can be transmitted to other equipment, for example, equipment used by a data analyst.
The following embodiment will continue to describe an implementation manner in which the second device processes the recording file to obtain the data to be transmitted after obtaining the recording file. Referring to fig. 4, a flow chart of a data processing method applied to a second device is shown; the second device can be a server, a computer or various terminal devices; when a file of a specified format is recorded by a second device, the second device needs to have a camera and an associated recording function. The method comprises the following steps:
step S402, extracting image groups from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted;
the recording file is obtained through the following steps: generating an image group corresponding to data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format to record the file with the specified format to obtain a recorded file.
As can be seen from the foregoing embodiments, the recording file is a recording file recorded by the second device or the third device in the process of automatically switching and displaying images in the image group by the first device. Thus, all images in the image group are included in the recording file. Specifically, when the recorded file is a video file, the video file includes multiple video frames, and one or more consecutive video frames include a graphic encoded image. And carrying out format conversion on the video frames containing different graphic coding images, and converting the video frames into an image format to obtain an image group comprising at least one graphic coding image.
Step S404, decoding the graphics coding image in the image group to obtain the data included in each graphics coding data;
the graphics-encoded image may be decoded in a decoding manner that matches the graphics-encoded image. For example, if the graphics coded image is a two-dimensional code image, the graphics coded image may be decoded by using a two-dimensional code decoding method to obtain data included in the graphics coded image. If the graphic coded image is a barcode image, the graphic coded image can be decoded by adopting a barcode decoding mode to obtain data included in the graphic coded image.
Step S406, obtaining data to be transmitted based on the data included in each graphic coding image.
For example, the data included in each image may need to be decrypted, sorted, and the like, so as to obtain the final data to be transmitted.
In the data processing method, the image group is extracted from the recording file, and then the image coding image in the image is processed to obtain the data to be transmitted. In the method, an image group containing at least one graphic coding image is converted into a file with a specified format, and the file with the specified format has the function of automatically switching and displaying images in the image group when the file with the specified format is opened, so that the graphic coding images in the image group can be automatically switched and displayed without manual operation switching of a user when the file with the specified format is opened, a recording file can be obtained by recording the file with the specified format, and the transmission of data to be transmitted from first equipment to other equipment can be realized through the recording file. The mode is simple and convenient to operate, and when the data volume needing to be transmitted is large, data transmission can be rapidly realized, and the data transmission efficiency is improved.
The following describes the manner of acquiring the recording file. Specifically, recording a file with a specified format to obtain a recorded file; in this manner, the second device records the file with the specified format in person to obtain a recorded file, and then processes the recorded file according to the above embodiment to obtain the data to be transmitted. In another mode, a recording file is obtained from a third device; and recording the file by the third equipment to obtain the file with the specified format. The third device records the file with the specified format to obtain a recorded file, then establishes communication connection with the second device, for example, sends the recorded file to the second device through data transmission equipment, internet communication or wireless communication, and the second device processes the recorded file according to the above embodiment to obtain the data to be transmitted.
The recording file is recorded by a third device or a second device in the following way: when the preset first identification is identified, determining that the file with the specified format is started, and starting to record the file with the specified format; when the preset second identifier is identified, determining that the designated format file is played completely, and ending recording the designated format file to obtain a recorded file; the head of the file with the specified format comprises a first identifier, and the tail of the file with the specified format comprises a second identifier; the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format. The related description can refer to the foregoing embodiments, and is not repeated herein.
In a specific implementation manner, the recording file includes: a video format file; when the image group is extracted from the recording file, the image coding image contained in the video frame can be extracted aiming at each frame of video frame contained in the video format file to obtain an initial identification result; carrying out duplication removal processing on the image coding image in the initial identification result to obtain an image group; wherein, in the image group, each image coding image is different.
When the file with the specified format in the foregoing embodiment is played in the first device, if the playing is slow, one image coded image in the recorded file will be displayed in consecutive multi-frame video frames. Based on this, a graphics-coded image contained in each video frame may be first extracted from the video frame. The initial recognition result includes a graphics-encoded image extracted from each frame of video, and in the initial recognition result, a plurality of consecutive graphics-encoded images may be the same, and data stored in the same graphics-encoded image is the same. In order to avoid a large amount of redundancy in the finally obtained data, the image group is obtained by performing de-duplication processing on the image coded image in the initial recognition result.
In a specific implementation, the arrangement order of the graphics coded images in the initial recognition result is the same as the arrangement order of the video frames, and starting from the first graphics coded image in the initial recognition result, if the consecutive graphics coded images are all the same, only one graphics coded image is reserved for the same consecutive graphics coded images, so that the deduplication processing is realized. In the image group obtained by the deduplication processing, each image coded image is different.
As can be seen from the foregoing embodiments, the data stored in the graphics code image is encrypted, so that each graphics code image includes not only the encrypted data, but also: an encryption mode of data included in the graphic encoded image; therefore, when decoding the graphics-encoded image, the data also needs to be decrypted. Specifically, the graphics coded image is decoded for each graphics coded image in the image group to obtain encrypted data included in the graphics coded image and an encryption mode; determining a decryption mode based on an encryption mode included in the graphic coded image; and decrypting the encrypted data through the determined decryption mode to obtain decrypted data included in the graphic coding image.
When the graphics coded image is decoded, the decoding method may be determined according to the type of the graphics coded image, for example, if the graphics coded image is a two-dimensional code image, the graphics coded image is decoded by using the decoding method corresponding to the two-dimensional code image. After the graphics-encoded image is decoded, encrypted data and a corresponding encryption mode are obtained. Then, a decryption mode matched with the encryption mode is adopted for decryption, and a secret key used for decryption can be obtained in other modes. For example, if the encryption method of the encrypted data is MD5, the encrypted data is decrypted by the decryption method corresponding to MD 5.
In the foregoing embodiment, when an image group corresponding to data to be transmitted is generated, the data to be transmitted is pre-divided into at least one piece of sub-data; each graphic coded image comprises sub data; in order to avoid confusion of the arrangement order of the sub-data after decoding and errors of the data to be transmitted, in a specific implementation manner, the graphic coded image further includes: the arrangement sequence of the sub-data in the at least one sub-data, the sub-data number of the at least one sub-data, and the encryption mode of the sub-data. As can be seen from the foregoing embodiment, for each sub-data, after the sub-data is encrypted, format data of the sub-data is generated, where the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata; and then coding the format data to obtain a graphic coding image of the subdata. In other feasible implementation manners, the arrangement order of the sub-data in the at least one sub-data may be carried in the sub-data, the sub-data and the sub-data are encrypted together to obtain encrypted sub-data, and then the format data is generated, where the format data usually does not include the parameter of the arrangement order of the sub-data in the at least one sub-data.
Decrypting subdata included in each image coding image based on the subdata encryption mode to obtain at least one decrypted subdata; sequencing each subdata based on the arrangement sequence of each subdata in at least one subdata to obtain intermediate data; and if the sub-data quantity contained in the intermediate data is matched with the sub-data quantity of at least one sub-data contained in the image coded image, determining the intermediate data as the data to be transmitted. Specifically, if the sub-data amount contained in the intermediate data is the same as the sub-data amount of at least one sub-data contained in the graphic coded image, it may be determined that the sub-data obtained by the parsing is complete. Based on the arrangement sequence contained in the image coded by the graph, the plurality of subdata obtained by decoding can be reintegrated to obtain the data to be transmitted with correct sequence. The method can ensure that the finally obtained data to be transmitted has higher correctness and integrity.
In addition, if the data to be transmitted is in the default format, after the data to be transmitted is obtained, a default application program can be used for opening, and the default format can be in the csv format. However, if the data to be transmitted can be in a plurality of data formats, for example, a database format, a text format, an audio format, a video format, etc.; the above graphics code image further includes: a data format of data included in the graphic encoded image; after data to be transmitted are obtained based on the data included in each graphic coding image, determining an application program for starting the data to be transmitted according to a data format; and opening the data to be transmitted based on the application program. By the method, the application program of the data to be transmitted can be quickly determined to be started, and a user can conveniently check the data.
To further understand the above embodiments, a multi-party interaction embodiment is provided, which is implemented by a first device and a second device; as shown in fig. 5, this embodiment includes the following steps:
step S502, acquiring prearranged data to be transmitted in first equipment;
step S504, divide the data to be transmitted into at least one subdata;
step S506, aiming at each subdata, encrypting the subdata based on a preset encryption mode;
step S508, generating the format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata;
step S510, encoding the format data to obtain a graphic encoded image containing sub-data.
Step S512, determining the graph coding image corresponding to each subdata as an image group; the image quantity of the image coding image contained in the image group is matched with the subdata quantity of the at least one subdata.
Step S514, converting the image group into a file with a specified format; wherein the file with the specified format is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed;
step S516, inserting a first identifier into the head of the file with the specified format, and inserting a second identifier into the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
Step S518, the file with the specified format is opened.
Step S520, when the second device identifies the preset first identifier, the second device determines that the file with the specified format is opened, and starts to record the file with the specified format; when the preset second identifier is identified, determining that the designated format file is played completely, and ending recording the designated format file to obtain a recorded file;
step S522, extracting an image group from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted;
step 524, decoding the graphics coding image in the image group to obtain data included in each graphics coding data;
step 526, decrypting the subdata included in each image code image based on the encryption mode of the subdata included in each image code image to obtain at least one decrypted subdata; the data to be transmitted is divided into at least one subdata in advance; each graphic coded image comprises sub data; the graphics-encoded image further comprises: the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata;
step S528, based on the arrangement sequence of each subdata in at least one subdata, sequencing each subdata to obtain intermediate data;
in step S530, if the sub-data amount included in the intermediate data matches the sub-data amount of at least one sub-data included in the graphic encoded image, the intermediate data is determined as data to be transmitted.
Another multiparty interactive embodiment is provided herein, which is implemented by a first device, a second device, and a third device; as shown in fig. 6, this embodiment includes the following steps:
step S602, obtaining prearranged data to be transmitted in first equipment;
step S604, dividing the data to be transmitted into at least one subdata;
step S606, aiming at each subdata, encrypting the subdata based on a preset encryption mode;
step S608, generating format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata;
step S610, encoding the format data to obtain a graphic encoded image containing sub-data.
Step S612, determining the graph coding image corresponding to each subdata as an image group; the image quantity of the image coding image contained in the image group is matched with the subdata quantity of the at least one subdata.
Step S614, converting the image group into a file with a specified format; wherein the file with the specified format is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed;
step S616, inserting a first identifier into the head of the file with the specified format, and inserting a second identifier into the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
In step S618, the file with the specified format is opened.
Step S620, when the third device recognizes the preset first identifier, determining that the file with the specified format is opened, and starting to record the file with the specified format; when the preset second identifier is identified, determining that the designated format file is played completely, and ending recording the designated format file to obtain a recorded file;
step S622, sending the recording file to the second device;
step S624, the second device extracts an image group from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted;
step S626, decoding the graphics coding image in the image group to obtain the data included in each graphics coding data;
step S628, based on the encryption mode of the subdata included in each image coded image, decrypting the subdata included in each image coded image to obtain at least one decrypted subdata; the data to be transmitted is divided into at least one subdata in advance; each graphic coded image comprises sub data; the graphics-encoded image further comprises: the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata;
step S630, based on the arrangement sequence of each subdata in at least one subdata, sequencing each subdata to obtain intermediate data;
step S632, if the sub-data amount contained in the intermediate data matches the sub-data amount of at least one sub-data contained in the image, determining the intermediate data as the data to be transmitted.
Based on the above embodiments, a specific application example is provided here. In a confidential environment, the first device cannot transmit data through a network, so that an application program can be deployed, the data to be transmitted is selected from the devices in the confidential environment based on the application program, the data to be transmitted is cut into a plurality of parts to obtain a plurality of subdata, the subdata is respectively encoded into a plurality of encrypted two-dimensional code images, the two-dimensional code images are encoded into a video file, the video file is played, meanwhile, the video file is recorded through mobile phone shooting to obtain a recorded file, and the recorded file is analyzed on the devices outside the confidential environment through a corresponding analysis program to obtain the data to be transmitted.
The application program can be divided into a plurality of modules, namely a data source module, a data coding module, a video module, a two-dimensional code module and a data encryption module; the data source module is used for acquiring the data to be transmitted in the embodiment; the data coding model is used for dividing data to be transmitted into a plurality of subdata and processing each subdata into a data head format, a data tail format and a data tail format according to a preset protocol; meanwhile, the information such as the arrangement order and the encryption mode of the subdata is stored in the data head. The data encryption model is used for encrypting each piece of sub data obtained by division; the two-dimensional code model is used for coding the sub-data to obtain a graphic coding image in a two-dimensional code form. A plurality of graphic code images are stored in a designated folder, and the file names are serial numbers determined according to the file generation sequence and are sequentially increased. The video model is used for reading a plurality of graphics coded images from a designated folder and converting the plurality of graphics coded images into a video file in mp4 format.
And (4) generating a video file in the mp4 format, and opening the video file for playing through the interface. And the third equipment records the video through the recording program. And then, analyzing the recorded video through second equipment, firstly analyzing the video into a plurality of graphic coding images, sending the images to a scanning function in a two-dimensional code module for code scanning analysis, sequencing the analyzed data according to the sequence numbers, putting the data into a memory dictionary, decrypting the encrypted data in the dictionary, and writing the encrypted data into a file one by one to obtain the final data to be transmitted. The analyzed data can be directly written into a file without a memory.
Corresponding to the above method embodiment, refer to a schematic structural diagram of a data processing apparatus shown in fig. 7, the apparatus is disposed in a first device; the device includes:
the image group generating module 70 is configured to generate an image group corresponding to data to be transmitted; wherein the group of pictures comprises at least one graphical coded picture; the data to be transmitted is contained in the image group;
a conversion module 72, configured to convert the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed;
and the opening module 74 is used for opening the file with the specified format.
The image group generating module is further configured to: dividing data to be transmitted into at least one subdata; generating a graphic coding image containing the subdata for each subdata; determining the graph coding image corresponding to each subdata as an image group; the image quantity of the image coding image contained in the image group is matched with the subdata quantity of the at least one subdata.
The image group generating module is further configured to: encrypting the sub-data based on a preset encryption mode; generating format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in at least one subdata and the subdata quantity of the at least one subdata; and coding the format data to obtain a graphic coding image containing the subdata.
The above-mentioned device still includes: an identity insertion module to: inserting a first identifier at the head of the file with the specified format, and inserting a second identifier at the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
In the data processing device, the image group containing at least one image coding image is converted into a file with a specified format, and the file with the specified format has the function of automatically switching and displaying the images in the image group when the file with the specified format is opened, so that the image coding images in the image group can be automatically switched and displayed without manual operation switching of a user when the file with the specified format is opened, a recorded file can be obtained by recording the file with the specified format, and the transmission of data to be transmitted from the first device to other devices can be realized through the recorded file. The mode is simple and convenient to operate, and when the data volume needing to be transmitted is large, data transmission can be rapidly realized, and the data transmission efficiency is improved.
Referring to fig. 8, another data processing apparatus is shown, which is disposed on a second device; the device comprises:
an extracting module 80, configured to extract an image group from the recording file; wherein the group of pictures comprises at least one graphical coded picture; the image group comprises data to be transmitted;
a decoding module 82, configured to decode the graphics-encoded image in the image group to obtain data included in each piece of graphics-encoded data;
a data generation module 84, configured to obtain data to be transmitted based on data included in each image coded image;
the recording file is obtained through the following steps: generating an image group corresponding to data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, the images in the image group are automatically switched and displayed; and opening the file with the specified format so as to record the file with the specified format to obtain a recorded file.
The data to be transmitted is divided into at least one subdata in advance; each graphic coded image comprises sub data; the graphics-encoded image further comprises: encrypting the subdata; the arrangement sequence of the subdata in the at least one subdata and the subdata quantity of the at least one subdata; the data generating module is further configured to: decrypting subdata included in each image coding image based on the subdata encryption mode to obtain at least one piece of decrypted subdata; sequencing each subdata based on the arrangement sequence of each subdata in at least one subdata to obtain intermediate data; and if the sub-data quantity contained in the intermediate data is matched with the sub-data quantity of at least one sub-data contained in the image coded image, determining the intermediate data as the data to be transmitted.
The device further comprises: a file acquisition module to: recording a file with a specified format to obtain a recorded file; or, acquiring a recording file from a third device; and recording the file by the third equipment to obtain the file with the specified format.
The device further comprises: a recording module to: when the preset first identification is identified, determining that the file with the specified format is started, and starting to record the file with the specified format; when the preset second identifier is identified, determining that the designated format file is played completely, and ending recording the designated format file to obtain a recorded file; the head of the file with the specified format comprises a first identifier, and the tail of the file with the specified format comprises a second identifier; the first identifier is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identifier is for: and indicating the end of recording the file with the specified format.
The embodiment also provides an electronic device, which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the data processing method. The electronic device may be a server or a terminal device.
Referring to fig. 9, the electronic device includes a processor 100 and a memory 101, the memory 101 stores machine executable instructions capable of being executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the data processing method.
Further, the electronic device shown in fig. 9 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
Processor 100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 100. The Processor 100 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The present embodiments also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the data processing method described above.
The data processing method, the data processing apparatus, the electronic device, and the computer program product of the storage medium according to the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method, characterized in that the method is applied to a first device; the method comprises the following steps:
generating an image group corresponding to data to be transmitted; wherein the group of pictures comprises at least one graphics coding picture; the data to be transmitted is contained in the image group;
converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, images in the image group are automatically switched and displayed;
and opening the file with the specified format.
2. The method according to claim 1, wherein the step of generating the group of images corresponding to the data to be transmitted comprises:
dividing the data to be transmitted into at least one subdata;
generating a graphic coding image containing the subdata for each subdata;
determining the graph coding image corresponding to each subdata as an image group; the image quantity of the image coding image contained in the image group is matched with the subdata quantity of the at least one subdata.
3. The method of claim 2, wherein generating a graphics-encoded image containing the sub-data comprises:
encrypting the subdata based on a preset encryption mode;
generating format data of the subdata; wherein the format data includes: the encrypted subdata, the encryption mode of the subdata, the arrangement sequence of the subdata in the at least one subdata and the subdata quantity of the at least one subdata;
and coding the format data to obtain a graphic coding image containing the subdata.
4. The method of claim 1, wherein after the step of converting the set of images to a file of a specified format, the method further comprises:
inserting a first identifier at the head of the file with the specified format, and inserting a second identifier at the tail of the file with the specified format to obtain a final file with the specified format; wherein the first identifier is to: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identification is used for: and indicating the end of recording the file with the specified format.
5. A data processing method, characterized in that the method is applied to a second device; the method comprises the following steps:
extracting an image group from the recording file; wherein the group of pictures comprises at least one graphics coding picture; the image group comprises data to be transmitted;
decoding the graphics coding images in the image group to obtain data included in each graphics coding data;
obtaining the data to be transmitted based on the data included in each graphic coding image;
wherein the recording file is obtained by the following method: generating an image group corresponding to the data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, images in the image group are automatically switched and displayed; and opening the file with the specified format so as to record the file with the specified format to obtain the recorded file.
6. The method according to claim 5, wherein the data to be transmitted is divided into at least one sub-data in advance; each of the graphically encoded images includes one of the sub-data; the graphics-encoded image further comprises: the encryption mode of the subdata, the arrangement sequence of the subdata in the at least one subdata and the subdata quantity of the at least one subdata;
the step of obtaining the data to be transmitted based on the data included in each of the graphic coded images includes:
based on the encryption mode of the subdata, decrypting subdata contained in each image coded image to obtain the decrypted subdata;
sequencing each subdata based on the arrangement sequence of each subdata in the at least one subdata to obtain intermediate data;
and if the sub-data quantity contained in the intermediate data is matched with the sub-data quantity of the at least one sub-data contained in the image coded image, determining the intermediate data as the data to be transmitted.
7. The method of claim 5, wherein the recording file is recorded by a third device or the second device by:
when a preset first identifier is identified, determining that the file with the specified format is opened, and starting to record the file with the specified format;
when a preset second identifier is identified, determining that the specified format file is played completely, and ending recording the specified format file to obtain a recorded file;
wherein the head of the specified format file comprises the first identifier, and the tail of the specified format file comprises the second identifier; the first identification is used for: when the file with the specified format is opened, indicating to start recording the file with the specified format; the second identification is used for: and indicating the end of recording the file with the specified format.
8. A data processing apparatus, characterized in that the apparatus is provided to a first device; the device comprises:
the image group generating module is used for generating an image group corresponding to the data to be transmitted; wherein the group of pictures comprises at least one graphics coding picture; the data to be transmitted is contained in the image group;
the conversion module is used for converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, images in the image group are automatically switched and displayed;
and the opening module is used for opening the file with the specified format.
9. A data processing apparatus, characterized in that the apparatus is provided to a second device; the device comprises:
the extraction module is used for extracting the image group from the recording file; wherein the group of pictures comprises at least one graphics coding picture; the image group comprises data to be transmitted;
the decoding module is used for decoding the image coded images in the image group to obtain data included in each image coded data;
the data generation module is used for obtaining the data to be transmitted based on the data included in each graphic coding image;
wherein the recording file is obtained by the following method: generating an image group corresponding to the data to be transmitted; converting the image group into a file with a specified format; wherein the specified format file is used for: when the file with the specified format is opened, images in the image group are automatically switched and displayed; and opening the file with the specified format so as to record the file with the specified format to obtain the recorded file.
10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the data processing method of any one of claims 1 to 4 or the data processing method of any one of claims 5 to 7.
CN202110470879.6A 2021-04-28 2021-04-28 Data processing method and device and electronic equipment Pending CN113362401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110470879.6A CN113362401A (en) 2021-04-28 2021-04-28 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110470879.6A CN113362401A (en) 2021-04-28 2021-04-28 Data processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113362401A true CN113362401A (en) 2021-09-07

Family

ID=77525638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110470879.6A Pending CN113362401A (en) 2021-04-28 2021-04-28 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113362401A (en)

Similar Documents

Publication Publication Date Title
CN104680077B (en) Method for encrypting picture, method for viewing picture, system and terminal
US9024799B2 (en) Data transmission apparatus and method thereof and data reception apparatus and method thereof
US11418677B2 (en) Method for preventing image modification, image capturing device and image verification method
US9288302B2 (en) Apparatus and method for reproducing handwritten message by using handwriting data
EP1978524A2 (en) Image recording device, player device, imaging device, player system, method of recording image, and computer program
US20150035999A1 (en) Method for sharing digital photos securely
FR3061974A1 (en) METHOD AND DEVICE FOR VERIFYING THE VALIDITY OF AN ELECTRONIC DOCUMENT
JP2006014282A (en) System and method for embedding multimedia processing information into multimedia bitstream
CN102970307B (en) Cipher safety system and password safety method
CN104680078B (en) Method for shooting picture, method, system and terminal for viewing picture
KR100828479B1 (en) Apparatus and method for inserting addition data in image file on electronic device
EP3404895B1 (en) Multimedia data transmission method and device
CN111031032A (en) Cloud video transcoding method and device, decoding method and device, and electronic device
CN109840406B (en) Living body verification method and device and computer equipment
WO2023029389A1 (en) Video fingerprint generation method and apparatus, electronic device, storage medium, computer program, and computer program product
CN113343895B (en) Target detection method, target detection device, storage medium and electronic equipment
CN111046199A (en) Method for adding bystander to image and electronic equipment
CN112235600B (en) Method, device and system for processing video data and video service request
CN110636334A (en) Data transmission method and system
JP6354253B2 (en) Image processing apparatus, image processing system, image processing method, and image processing program
CN113362401A (en) Data processing method and device and electronic equipment
CN113099282A (en) Data processing method, device and equipment
US11599570B2 (en) Device and method to render multimedia data stream tamper-proof based on block chain recording
CN114205649A (en) Image data processing method, device, equipment and storage medium
CN110544199A (en) Image processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination