CN116192983A - Information transmission method, system and storage medium based on two-dimension code - Google Patents

Information transmission method, system and storage medium based on two-dimension code Download PDF

Info

Publication number
CN116192983A
CN116192983A CN202111425174.9A CN202111425174A CN116192983A CN 116192983 A CN116192983 A CN 116192983A CN 202111425174 A CN202111425174 A CN 202111425174A CN 116192983 A CN116192983 A CN 116192983A
Authority
CN
China
Prior art keywords
data
information
dimensional code
received
transmitted
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
CN202111425174.9A
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.)
Xiamen Galaxy Longxin Technology Co ltd
Original Assignee
Xiamen Galaxy Longxin 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 Xiamen Galaxy Longxin Technology Co ltd filed Critical Xiamen Galaxy Longxin Technology Co ltd
Priority to CN202111425174.9A priority Critical patent/CN116192983A/en
Publication of CN116192983A publication Critical patent/CN116192983A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to an information transmission method, a system and a storage medium based on two-dimension codes, wherein the method comprises the following steps: acquiring or identifying a plurality of information to be transmitted; adding corresponding description to each piece of information to be transmitted respectively, and packaging all pieces of information to be transmitted and all descriptions into data to be transmitted; dividing the data to be transmitted into a plurality of sub-data to be transmitted; generating a corresponding two-dimensional code image according to the two-dimensional code coding rule by each sub-data to be transmitted; displaying all two-dimensional code images through a screen of the first terminal; acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image; all the sub-data to be received are spliced to obtain complete data to be received; unpacking the data to be received to obtain the information to be received and the description, and recording the information to be received according to the description.

Description

Information transmission method, system and storage medium based on two-dimension code
Technical Field
The invention relates to the field of data transmission, in particular to an information transmission method, system and storage medium based on two-dimension codes.
Background
Data is a generic term for all symbols that can be entered into a computer and processed by a computer program, and is a generic term for numbers, letters, symbols, analog quantities, etc. that are used to enter a computer for processing.
In some application scenarios where information confidentiality and information security are strictly required, such as government institutions, internal systems of banks, etc., computer devices or mobile devices are included, and devices are not connected in a wired or wireless transmission manner, including, but not limited to, physical layer connections such as ethernet, wireless network, bluetooth, can, serial communication line, etc., and modification of hardware devices and device groups added with physical layer connections are also prohibited for information security, etc. The devices in the device groups can not directly communicate data, and can not communicate with each other through the existing data link layer and application layer protocol stacks, so that the interactivity of the transferable data among the devices is greatly reduced.
The invention aims at solving the problems in the prior art and designs an information transmission method, system and storage medium based on two-dimension codes.
Disclosure of Invention
The invention aims to solve the problems in the prior art, and provides an information transmission method, an information transmission system and a storage medium based on two-dimension codes, which can effectively solve the problems in the prior art.
The technical scheme of the invention is as follows:
an information transmission method based on two-dimension codes comprises the following steps:
acquiring or identifying a plurality of pieces of information to be transmitted, wherein the information to be transmitted is derived from a first window of a first terminal;
adding corresponding description to each piece of information to be transmitted respectively, and packaging all pieces of information to be transmitted and all descriptions into data to be transmitted;
dividing the data to be transmitted into a plurality of sub-data to be transmitted;
generating a corresponding two-dimensional code image according to the two-dimensional code coding rule by each sub-data to be transmitted;
displaying all two-dimensional code images through a screen of the first terminal;
acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image;
all the sub-data to be received are spliced to obtain complete data to be received;
unpacking the data to be received to obtain the information to be received and the description, and recording the information to be received into a second window of a second terminal according to the description.
Further, the information to be sent comprises one or more of characters, images and files;
if the information to be sent only contains text, the obtaining or identifying a plurality of information to be sent includes: identifying the information to be sent through a character identification algorithm;
if the information to be sent contains an image or a file, the acquiring or identifying a plurality of information to be sent includes: and downloading the image or the file to obtain the information to be sent.
Further, adding a corresponding description to each piece of information to be sent includes:
the location and/or name of the information is obtained,
respectively adding the position and/or the name to each piece of information to be transmitted as a description;
the entering of the information to be received into the second window of the second terminal according to the description comprises:
and according to the position and/or the name, inputting the information to be received into a frame body of the corresponding position and/or name in a second window of the second terminal.
Further, the dividing the data to be sent into a plurality of sub-data to be sent includes:
acquiring a preset data block capacity, wherein the size of the data block capacity is smaller than or equal to the size of information quantity which can be carried by a single two-dimensional code image;
and dividing the data to be transmitted into a plurality of sub-data to be transmitted according to the size of the database capacity.
Further, all the two-dimensional code images are displayed through the screen of the first terminal to include:
acquiring a refresh rate of a screen of the first terminal;
and displaying all the two-dimensional code images in a circulating way through the screen of the first terminal at a rate smaller than or equal to the refresh rate.
Further, after the data to be sent is divided into a plurality of sub-data to be sent, the method comprises the following steps:
and adding a data head to each piece of sub-data to be sent, wherein the data head at least comprises one or more of the number, the total number and the magic word of the sub-data to be sent.
Further, the splicing all the sub-data to be received, and obtaining complete data to be received includes:
analyzing the sub-file to be received according to the data head of the sub-data to be received;
it is determined whether all subfiles to be received have been received,
if not, continuing to acquire and identify all the two-dimensional code images through a camera connected to the second terminal;
if yes, all the subfiles to be received are spliced according to the data head, and complete data to be received are obtained.
Further, after the data to be sent is obtained by the first terminal, the method includes:
encrypting the data to be sent;
after the complete data to be received is obtained, the method comprises the following steps:
decrypting the data to be received.
The information transmission system based on the two-dimensional code further comprises the following modules:
the acquisition module is used for acquiring or identifying a plurality of pieces of information to be transmitted, wherein the information to be transmitted is sourced from a first window of a first terminal;
the packaging module is used for adding corresponding description to each piece of information respectively, and packaging all pieces of information and all pieces of description into data to be sent;
the segmentation module is used for segmenting the data to be transmitted into a plurality of sub-data to be transmitted;
the two-dimensional code generation module is used for generating a corresponding two-dimensional code image according to the two-dimensional code coding rule for each sub-data to be transmitted;
the display module is used for displaying all the two-dimensional code images through the screen of the first terminal;
the identification module is used for acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image;
the splicing module is used for splicing all the sub-data to be received to obtain complete data to be received;
the input module is used for unpacking the data to be received to obtain the information and the description, and inputting the information into a second window of a second terminal according to the description.
There is further provided a storage medium storing a computer program which, when executed by a processor, implements a two-dimensional code based information transmission method as described above.
Accordingly, the present invention provides the following effects and/or advantages:
according to the method and the device, the information to be sent of the first terminal is obtained, the description is added, the data file is divided and converted into the two-dimension code according to the characteristic that the two-dimension code can transmit the information, the two-dimension code is identified, the data is resolved again and combined into complete data, the complete data is provided for the second terminal, the second terminal fills the information to be sent into the corresponding position of the second terminal according to the description, and data transmission of the first terminal and the second terminal is achieved on the premise that a physical link is not needed, a hardware structure is not needed to be changed, and the like. Reliable data transmission in physically isolated devices is achieved.
The invention overcomes the defects that the transmission data of the single two-dimensional code is limited and the data continuity cannot be ensured by the designed additional data head. And data transmission is performed in a two-dimensional code mode, so that safety is guaranteed. Under the condition that a physical machine is invaded, only a single-frame picture file can be obtained, and an illegal molecule cannot splice the file on the premise of not knowing a transmission protocol (data head).
The method and the device realize reliable data transmission in physically isolated equipment in a two-dimension code and two-dimension code identification mode, ensure the reliability of single frame data through a two-dimension code redundancy algorithm, and make up the defects that the single two-dimension code transmission data is limited and the data continuity cannot be ensured.
According to the invention, through reasonably setting the display speed of the two-dimensional code, the resolution of the two-dimensional code and the like, the situations of errors, omission and the like in the two-dimensional code transmission process are reduced as much as possible.
It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
Drawings
FIG. 1 is a schematic diagram of a corresponding step of an embodiment.
Fig. 2 is a schematic diagram within a first window of a first terminal.
Fig. 3-4 are schematic diagrams of two-dimensional codes respectively generated by any two sub-data to be transmitted.
Fig. 5 is a schematic view of a second window of the second terminal.
Fig. 6 is a diagram showing the result of entering the information to be received into the second window of the second terminal according to the description.
Detailed Description
For the convenience of understanding by those skilled in the art, the structure of the present invention will now be described in further detail with reference to the accompanying drawings: it should be understood that, in this embodiment, the steps mentioned in this embodiment may be performed sequentially or sequentially, or may be performed simultaneously or partially, unless specifically stated otherwise.
In this embodiment, as used herein, the term "two-dimensional code" may be considered synonymous with and/or referred to as: the common two-dimensional Code is QR Code, which is a coding mode which is superpopular in recent years on mobile equipment, and can store more information and represent more data types than the traditional Bar Code Bar Code. The two-dimensional bar code/two-dimensional code (2-dimensional bar code) is a graph which is distributed on a plane (in a two-dimensional direction) according to a certain rule by using a certain specific geometric figure, is alternately black and white, and records data symbol information; the concept of 0 and 1 bit streams forming the internal logic foundation of a computer is skillfully utilized in code programming, a plurality of geometric shapes corresponding to binary are used for representing literal numerical information, and the literal numerical information is automatically read through an image input device or an optoelectronic scanning device to realize automatic information processing: it has some commonalities in barcode technology: each code has its specific character set; each character occupies a certain width; has a certain checking function and the like. Meanwhile, the system also has the function of automatically identifying information of different rows and processes the rotation change points of the graphics.
In this embodiment, the first terminal and the second terminal may be one or more of a computer, a handheld smart device, a smart phone, etc., which may implement the method described in this embodiment, and are not limited herein.
Referring to fig. 1, a two-dimensional code-based information transmission method includes the steps of:
s1, acquiring or identifying a plurality of pieces of information to be transmitted, wherein the information to be transmitted is sourced from a first window of a first terminal.
In this step, the information to be sent may be text, picture, file, etc., if text, means such as copying text by frame selection and text recognition may be adopted, and if picture, file, etc., may be obtained by downloading or saving. Referring to fig. 2, the information to be sent is derived from the first window of the first terminal, in this embodiment, the first window includes a table in a fixed format of the applicant, the cardholder, the contact phone, etc., information to be filled in by the user, such as leaf three, 2123, 13966666666, etc., and corresponding picture information, such as an identification card copy, etc. The method for downloading or saving the pictures and the files is implemented by adopting a method for clicking by simulating a mouse. This is because the location of the information within the first window is fixed and it is only necessary to simulate a mouse click at the first terminal. The information filled in by the user, such as leaf three, 2123, 13966666666, and the corresponding picture information 2 (8) such as an identification card copy, png is information to be transmitted, which needs to be acquired or identified in the application.
S2, adding corresponding description to each piece of information to be transmitted, and packaging all pieces of information to be transmitted and all descriptions into data to be transmitted;
in the step, corresponding descriptions are added to the information to be transmitted respectively, for example, description "applicant" is added to "leaf three", and description "identity card copy" is added to "2 (8) & png" file. And respectively obtaining all groups of data corresponding to the to-be-transmitted and the description one by one, and then packaging all the to-be-transmitted information and all the descriptions into to-be-transmitted data.
S3, dividing the data to be transmitted into a plurality of sub-data to be transmitted.
In this step, the data to be transmitted is divided into a plurality of small data segments as subfiles to be transmitted. For example, a 100k file is divided into 1000 parts, resulting in 1000 data segments of 0.1 k.
And S4, generating a corresponding two-dimensional code image according to the two-dimensional code coding rule by each sub-data to be transmitted.
The two-dimensional code coding rule belongs to the prior art, and for example, under the condition that the error correction level is H, the two-dimensional code coding rule codes: 01234567 then:
1. the numbers are divided into three groups 012345 67.
2. Converting them into binary 012 to 0000001100;345 to 0101011001; 67. turned into 1000011.
3. These three bins are concatenated 0000001100 0101011001 1000011.
4. The number of digits is converted into binary (version 1-H is 10 bits) and the binary of 8 digits is 0000001000.
5. The digitally encoded flag 0001 and the encoding of step 4 are added to the previous step 0001 0000001000 0000001100 0101011001 1000011.
6. And (3) taking 0 as a white point and 1 as a black point in the code, and filling the corresponding black point or white point into the two-dimensional code image.
According to the two-dimensional code encoding rule, a plurality of small data segments can be converted into one-to-one corresponding two-dimensional code images. After the file is segmented in the step S3, the size of the data segment is small, so that the data quantity borne by the two-dimensional code can be met. For example, 177x177, the maximum data size that can be carried by the two-dimensional code corresponding to the matrix is 2953 bytes. Through the segmentation of the step S3, the size of the single data segment is adjusted to be within the bearing capacity of the single two-dimensional code, so that the subsequent two-dimensional code coding rule is met. In this embodiment, according to the text or file in fig. 2, two of the two-dimensional code images are shown in fig. 3-4 according to the two-dimensional code image aggregate obtained by the above steps.
And S5, displaying all the two-dimensional code images through a screen of the first terminal.
In this embodiment, all the two-dimensional code images are provided for subsequent steps to be read in a manner of displaying all the two-dimensional code images. The two-dimensional code image display modes are numerous, such as cyclic display, sequential display, and also can display a plurality of two-dimensional code images at a time through a screen, so that subsequent steps can be sequentially read. The two-dimensional code image may be displayed in other manners, which is not limited herein.
And S6, acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image.
In the step, the two-dimensional code images are identified through the cameras connected with the second terminal, and information carried by all the two-dimensional code images is further identified. Referring to fig. 5, the image window in fig. 5 is an image of the first window obtained by the camera. The two-dimensional code shown in the detail_page in fig. 5 is a two-dimensional code image recognized in the first window.
And S7, splicing all the sub-data to be received to obtain complete data to be received.
In this step, after all the sub-data to be received are obtained, the sub-data are spliced, and there are many modes of splicing the sub-data, for example, the sub-data are spliced sequentially in sequence through the front-to-back sequence displayed by the two-dimensional code image, or the sub-data are sequenced and spliced in modes of numbering and the like, which are not limited herein. The aim of the step is to splice all the sub-data to be received and obtain complete data to be received, wherein the data to be received and the data to be sent are identical.
S8, unpacking the data to be received to obtain the information to be received and the description, and recording the information to be received into a second window of a second terminal according to the description.
Through S7, the complete data to be received is obtained, the data to be received is unpacked to obtain the information to be received and the description, the system knows the information contained in the data to be received and the position corresponding to the information, and the information to be received is input into a second window of a second terminal according to the description. Referring to fig. 6, for example, the description of "leaf three" is "applicant", then "leaf three" is input according to the dialog box corresponding to "applicant" in the second window; the description of the "2 (8) & png" file is "identity card copy", and then the "2 (8) & png" file is selected according to the dialog box corresponding to the "identity card copy" in the second window. In the step, information is input in a mode of simulating mouse clicking.
Some preferred methods by which the present invention may be implemented are described below.
Further, the information to be sent comprises one or more of characters, images and files;
if the information to be sent only contains text, the obtaining or identifying a plurality of information to be sent includes: identifying the information to be sent through a character identification algorithm;
if the information to be sent contains an image or a file, the acquiring or identifying a plurality of information to be sent includes: and downloading the image or the file to obtain the information to be sent.
In this step, since the information to be sent generally includes one or more of text, image and file, for text, the step can be identified by using a text recognition algorithm, that is, an algorithm for converting image into text, because on some terminals, text cannot be selected in a frame or copied, and meanwhile, the position to be sent is generally fixed in the first window, so that text can be identified by using the text recognition algorithm.
Further, adding a corresponding description to each piece of information to be sent includes:
the location and/or name of the information is obtained,
respectively adding the position and/or the name to each piece of information to be transmitted as a description;
the entering of the information to be received into the second window of the second terminal according to the description comprises:
and according to the position and/or the name, inputting the information to be received into a frame body of the corresponding position and/or name in a second window of the second terminal.
In this step, the method of adding the name has been described in detail in the above step S1.
The step may also describe the information to be transmitted by location, where the location may be determined, for example, by coordinates (x, y) on a screen, and then, in the recording process, the information of coordinates (x, y) on the screen of the first terminal is associated with coordinates (a, b) on the screen of the second terminal according to a preset location association, so that the information of coordinates (x, y) on the screen of the first terminal is filled into the frame of coordinates (a, b) on the screen of the second terminal.
Further, before dividing the data to be sent into a plurality of sub-data to be sent, the method includes the following steps:
and S3.1, compressing the data to be sent. The purpose of this is to compress the data to be transmitted, reducing the useless data or compressing redundant data, thereby reducing the size of the data to be transmitted. The method is characterized in that the information quantity carried by the two-dimensional code is small, the number of required divisions can be correspondingly reduced after the data to be transmitted is compressed, the probability of omission and errors in the subsequent reading and splicing can be reduced, and the probability of obtaining complete data to be received is greatly improved.
Further, the dividing the data to be sent into a plurality of sub-data to be sent includes:
s3.2, acquiring a preset data block capacity, wherein the size of the data block capacity is smaller than or equal to the size of information quantity which can be carried by a single two-dimensional code image; the preset data block capacity, that is, the maximum data amount that each two-dimensional code can bear, the size of the matrix of the two-dimensional code is various, the minimum Version 1 (that is, the size 1) is a matrix of 21x21 (composed of 21 rows and 21 columns of black and white pixels), and the maximum Version 40 (that is, the size 40) is a matrix of 177x 177. (consisting of 127 rows and 127 columns of black and white pixels). Therefore, the size, the data capacity and the like of the two-dimensional code matrix provided by the step in the subsequent step are informed by presetting the data block capacity so as to be convenient for the subsequent step to carry out.
And S3.3, dividing the data to be transmitted into a plurality of sub-data to be transmitted according to the size of the database capacity. The function of this step is to divide the sub-data to be transmitted according to the size of the database obtained in step S1.2, for example, the data to be transmitted having a size of 100k, and the data block size of 1k, and divide the data to be transmitted into 100 parts, each 1k.
Further, all the two-dimensional code images are displayed through the screen of the first terminal to include:
s5.1, acquiring a refresh rate of a screen of the first terminal; typical screen refresh rates are 60Hz, 120Hz, 144Hz, etc. This step obtains the refresh rate of the screen of the first terminal.
S5.2, displaying all the two-dimensional code images through the screen circulation of the first terminal at a rate smaller than or equal to the refresh rate. The aim of the step is that the two-dimensional code images are circularly displayed at the same position of the screen, the refresh rate of the two-dimensional code images needs to be set, and the refresh rate is smaller than that of the screen, so that the two-dimensional code images cannot be omitted. For example, the refresh rate of the screen is 60Hz, that is, 60 times per second of screen refresh, 60 pictures are displayed, and if the refresh rate of the two-dimensional code is set to be about 60Hz, 30Hz or the like, the full display in the screen can be realized. For example, if the refresh rate of the screen is 60Hz and the refresh rate of the two-dimensional code is 120Hz, the screen will not display 60 two-dimensional code images therein.
In this embodiment, all the two-dimensional code images can be displayed on the screen of the first terminal in a continuous circulation manner, for example, the 1 st two-dimensional code image, the 2 nd two-dimensional code image, the 3 rd two-dimensional code image … ith two-dimensional code image are sequentially displayed, and then the 1 st two-dimensional code image, the 2 nd two-dimensional code image, the 3 rd two-dimensional code image … ith two-dimensional code image are displayed again. And the method is continuously circulated so as to facilitate the subsequent reading, and simultaneously, all the two-dimensional code images are circularly displayed, namely all the two-dimensional codes are continuously displayed on the screen, so that in the step of subsequent reading, if the step is not read, is less read, is mispread and the like, the method can be returned to the step again for re-reading, and the data is prevented from being damaged and missing.
Further, all the two-dimensional code images are displayed through the screen of the first terminal to include:
s5.3, acquiring the resolution of a screen of the first terminal;
s5.4, displaying all the two-dimensional code images in a circulating way through the screen of the first terminal with definition which is larger than or equal to the resolution.
The principle of this step is similar to that of S5.1-S5.2, and the resolution of the screen is varied, for example 1080p,2k, 4k, etc. If the definition of the two-dimensional code image is smaller than the resolution of the screen, the partial lattice of the two-dimensional code is possibly lost.
Further, after the data to be sent is divided into a plurality of sub-data to be sent, the method comprises the following steps:
and S3.4, adding a data head to each sub-data to be transmitted, wherein the data head at least comprises one or more of the number, the total number and the magic word of the sub-data to be transmitted. The header may be considered as a special reserved field of defined bit length appended to the front of the data packet for the carrying and transmission of control information. When a packet reaches its destination, this field will be separated and discarded because the packet is processed and unpacked in the corresponding reverse order of each protocol layer. In this step, a data header is added to each sub-data to be sent, so that the second terminal is informed of how many data the total amount of data is and what data the current data is when receiving and analyzing the data, and the file is convenient to check and splice subsequently.
Further, the splicing all the sub-data to be received, and obtaining complete data to be received includes:
analyzing the sub-file to be received according to the data head of the sub-data to be received;
it is determined whether all subfiles to be received have been received,
if not, continuing to acquire and identify all the two-dimensional code images through a camera connected to the second terminal;
if yes, all the subfiles to be received are spliced according to the data head, and complete data to be received are obtained.
The step is used for judging whether the information represented by all the two-dimensional code images is received or not. For example, the total number of data transmitted at this time is 100 and the numbers are 001, 002, 003 and … respectively in the header, but when only 99 data are collected after one reception and data with number 050 are omitted, the process returns to the previous step to receive data again.
Further, the error correction level of the two-dimensional code image is set to be M. The error correction level of the two-dimensional code comprises L, M, Q, H four stages, wherein 7% of the codes at the L level can be corrected, 15% of the codes at the M level can be corrected, 25% of the codes at the Q level can be corrected, and 30% of the codes at the H level can be corrected. In this embodiment, the error correction level is set to M. The two-dimensional code has an "error correction function". The data can be automatically restored even if the code becomes dirty or corrupted. This "error correction capability" has multiple levels, and the user can select the corresponding level according to the use environment. The error correction capability is also improved by increasing the level, but the encoding size is also increased due to the increased data size. The error correction level is set to M, which can well balance data transmission and error correction.
After the data to be sent is obtained through the first terminal, the method comprises the following steps:
encrypting the data to be sent; in the step, the data to be sent is converted into a text encoded by Base64 after being encrypted, and then the file corresponding to the text is subjected to subsequent operation.
After the complete data to be received is obtained, the method comprises the following steps:
decrypting the data to be received. In this step, the data to be received is the same as the data to be transmitted, that is, the text encoded by the Base64, and the text encoded by the Base64 is decrypted by this step, so that the required original data is restored.
Through the encryption-decryption steps, the data transmission is effectively protected, and other illegal molecules are prevented from acquiring the original data.
Example two
An information transmission system based on two-dimension codes comprises the following modules:
the segmentation module is used for acquiring data to be transmitted through the first terminal and segmenting the data to be transmitted into a plurality of sub-data to be transmitted;
the two-dimensional code generation module is used for generating a corresponding two-dimensional code image according to the two-dimensional code coding rule for each sub-data to be transmitted;
the display module is used for displaying all the two-dimensional code images through the screen of the first terminal;
the identification module is used for acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image;
and the splicing module is used for splicing all the sub-data to be received to obtain complete data to be received.
The working principle of the present embodiment is the same as that of the first embodiment, and will not be described here again.
Example III
A storage medium storing a computer program which when executed by a processor implements a two-dimensional code-based information transmission method according to the first embodiment.
The working principle of the present embodiment is the same as that of the first embodiment, and will not be described here again.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms should not be understood as necessarily being directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.

Claims (10)

1. An information transmission method based on two-dimension codes is characterized by comprising the following steps: the method comprises the following steps:
acquiring or identifying a plurality of pieces of information to be transmitted, wherein the information to be transmitted is derived from a first window of a first terminal;
adding corresponding description to each piece of information to be transmitted respectively, and packaging all pieces of information to be transmitted and all descriptions into data to be transmitted;
dividing the data to be transmitted into a plurality of sub-data to be transmitted;
generating a corresponding two-dimensional code image according to the two-dimensional code coding rule by each sub-data to be transmitted;
displaying all two-dimensional code images through a screen of the first terminal;
acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image;
all the sub-data to be received are spliced to obtain complete data to be received;
unpacking the data to be received to obtain the information to be received and the description, and recording the information to be received into a second window of a second terminal according to the description.
2. The two-dimensional code-based information transmission method as set forth in claim 1, wherein: the information to be sent comprises one or more of characters, images and files;
if the information to be sent only contains text, the obtaining or identifying a plurality of information to be sent includes: identifying the information to be sent through a character identification algorithm;
if the information to be sent contains an image or a file, the acquiring or identifying a plurality of information to be sent includes: and downloading the image or the file to obtain the information to be sent.
3. The two-dimensional code-based information transmission method as set forth in claim 2, wherein: the step of adding the corresponding description to each piece of information to be sent comprises the following steps:
the location and/or name of the information is obtained,
respectively adding the position and/or the name to each piece of information to be transmitted as a description;
the entering of the information to be received into the second window of the second terminal according to the description comprises:
and according to the position and/or the name, inputting the information to be received into a frame body of the corresponding position and/or name in a second window of the second terminal.
4. The two-dimensional code-based information transmission method as set forth in claim 1, wherein:
the dividing the data to be sent into a plurality of sub-data to be sent includes:
acquiring a preset data block capacity, wherein the size of the data block capacity is smaller than or equal to the size of information quantity which can be carried by a single two-dimensional code image;
and dividing the data to be transmitted into a plurality of sub-data to be transmitted according to the size of the database capacity.
5. The two-dimensional code-based information transmission method as set forth in claim 1, wherein: and displaying all the two-dimensional code images through a screen of the first terminal, wherein the two-dimensional code images comprise:
acquiring a refresh rate of a screen of the first terminal;
and displaying all the two-dimensional code images in a circulating way through the screen of the first terminal at a rate smaller than or equal to the refresh rate.
6. The two-dimensional code-based information transmission method as set forth in claim 1, wherein: after the data to be sent is divided into a plurality of sub-data to be sent, the method comprises the following steps:
and adding a data head to each piece of sub-data to be sent, wherein the data head at least comprises one or more of the number, the total number and the magic word of the sub-data to be sent.
7. The two-dimensional code-based information transmission method as set forth in claim 6, wherein: and the step of splicing all the sub-data to be received, wherein the step of obtaining complete data to be received comprises the following steps:
analyzing the sub-file to be received according to the data head of the sub-data to be received;
it is determined whether all subfiles to be received have been received,
if not, continuing to acquire and identify all the two-dimensional code images through a camera connected to the second terminal;
if yes, all the subfiles to be received are spliced according to the data head, and complete data to be received are obtained.
8. The two-dimensional code-based information transmission method as set forth in claim 1, wherein: after the data to be sent is obtained through the first terminal, the method comprises the following steps:
encrypting the data to be sent;
after the complete data to be received is obtained, the method comprises the following steps:
decrypting the data to be received.
9. An information transmission system based on two-dimensional code, its characterized in that: comprises the following modules:
the acquisition module is used for acquiring or identifying a plurality of pieces of information to be transmitted, wherein the information to be transmitted is sourced from a first window of a first terminal;
the packaging module is used for adding corresponding description to each piece of information respectively, and packaging all pieces of information and all pieces of description into data to be sent;
the segmentation module is used for segmenting the data to be transmitted into a plurality of sub-data to be transmitted;
the two-dimensional code generation module is used for generating a corresponding two-dimensional code image according to the two-dimensional code coding rule for each sub-data to be transmitted;
the display module is used for displaying all the two-dimensional code images through the screen of the first terminal;
the identification module is used for acquiring and identifying all the two-dimensional code images through a camera connected to the second terminal, and analyzing to obtain sub-data to be received corresponding to each two-dimensional code image;
the splicing module is used for splicing all the sub-data to be received to obtain complete data to be received;
the input module is used for unpacking the data to be received to obtain the information and the description, and inputting the information into a second window of a second terminal according to the description.
10. A storage medium storing a computer program, wherein the computer program when executed by a processor implements a two-dimensional code based information transmission method according to any one of claims 1 to 8.
CN202111425174.9A 2021-11-26 2021-11-26 Information transmission method, system and storage medium based on two-dimension code Pending CN116192983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111425174.9A CN116192983A (en) 2021-11-26 2021-11-26 Information transmission method, system and storage medium based on two-dimension code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111425174.9A CN116192983A (en) 2021-11-26 2021-11-26 Information transmission method, system and storage medium based on two-dimension code

Publications (1)

Publication Number Publication Date
CN116192983A true CN116192983A (en) 2023-05-30

Family

ID=86436983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111425174.9A Pending CN116192983A (en) 2021-11-26 2021-11-26 Information transmission method, system and storage medium based on two-dimension code

Country Status (1)

Country Link
CN (1) CN116192983A (en)

Similar Documents

Publication Publication Date Title
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
US9406010B2 (en) Producing, capturing and using visual identification tags for moving objects
US8746568B2 (en) Data transfer using barcodes
CN203057193U (en) Data processing apparatus
CN113065169B (en) File storage method, device and equipment
CN104463296B (en) A kind of generation, acquisition and the processing method and system of two-dimension code structure information
US11727524B2 (en) System and method for encoding and authenticating a digital image
CN103632182A (en) Three-dimensional (3D) image code generating and analyzing methods and device thereof
CN103957340A (en) Data transmission system based on color dynamic image
CN107392270B (en) Two-dimensional code generation method
CN110011993A (en) A kind of two dimensional code big data safe transmission device based on dynamic multi-level encryption and decryption
CN108259908A (en) For coding and decoding the method and apparatus of pixel list
CN103997406A (en) Two-dimensional code-based identity authentication method and apparatus
CN109454997B (en) Two-dimensional code printing generation system with electronic texture
CN111404904A (en) Data security exchange method and device for physical isolation of internal network and external network
CN109492657A (en) Handwriting samples digitizing solution, device, computer equipment and storage medium
CN112134687B (en) Information encryption and decryption method based on two-dimensional code
CN109214488B (en) Method and system for information transmission based on graphic coded data
CN115248924A (en) Two-dimensional code processing method and device, electronic equipment and storage medium
CN111083119B (en) Two-dimensional code-based large-capacity information transmission method
CN104573781A (en) Encoding and decoding method of two-dimensional code
CN116192983A (en) Information transmission method, system and storage medium based on two-dimension code
CN110730277B (en) Information coding and method and device for acquiring coded information
CN116192948A (en) Data transmission method, system and storage medium based on two-dimension code
US11742877B2 (en) File compression system

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