CN107169540B - Information transmission system, method and device - Google Patents
Information transmission system, method and device Download PDFInfo
- Publication number
- CN107169540B CN107169540B CN201710330246.9A CN201710330246A CN107169540B CN 107169540 B CN107169540 B CN 107169540B CN 201710330246 A CN201710330246 A CN 201710330246A CN 107169540 B CN107169540 B CN 107169540B
- Authority
- CN
- China
- Prior art keywords
- information
- color
- code
- color block
- synchronous
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses an information transmission system, method and device. One embodiment of the system comprises: the server is used for respectively encoding each character in the information to be transmitted, generating an information encoding set corresponding to the information to be transmitted and transmitting the information encoding set to the display terminal; the display terminal is used for generating a first color block matrix based on the number of the information codes in the information code set and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table; and the scanning terminal is used for scanning the first color block matrix, generating a first information coding set according to the relation table, and sending the first information coding set to the server, so that the server sends the information to be sent to the scanning terminal after determining that the first information coding set is matched with the information coding set. This embodiment improves the reliability of information transmission.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to an information transmission system, method, and apparatus.
Background
Currently, in some applications, when information needs to be transferred between a first terminal and a second terminal, the first terminal and the second terminal are usually required to perform close-range communication once, for example, a camera of the first terminal scans a screen of the second terminal. Therefore, the first terminal can obtain the information transmitted by the second terminal after scanning the screen of the second terminal. Therefore, an information transmission method is required to improve the reliability of information transmission.
Disclosure of Invention
It is an object of the present application to provide an improved information transmission system, method and apparatus to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides an information transmission system, where the system includes: the system comprises a server, a display terminal and a scanning terminal; the server is used for respectively encoding each character in the information to be transmitted, generating an information encoding set corresponding to the information to be transmitted and transmitting the information encoding set to the display terminal; the display terminal is used for generating a first color block matrix based on the number of the information codes in the information code set and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the number in the code and the color information corresponding to the number; and the scanning terminal is used for scanning the first color block matrix, generating a first information coding set according to the relation table, and sending the first information coding set to the server, so that the server sends the information to be sent to the scanning terminal after determining that the first information coding set is matched with the information coding set.
In some embodiments, for each information encoding in the set of information encodings, the colors indicated by the sequence of colors corresponding to that information encoding are displayed cyclically in the same color patch in the first color patch matrix.
In some embodiments, the display terminal is further configured to: acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set; generating a second color block matrix based on the information coding set and the synchronous codes, wherein in the second color block matrix, color blocks corresponding to the synchronous codes are synchronous color blocks, and color blocks corresponding to each information code in the information coding set are information color blocks; and according to the relation table, circularly displaying the colors indicated by the corresponding color sequences in the synchronous color blocks, and circularly displaying the colors indicated by the corresponding color sequences in each information color block, wherein the display period of the synchronous color blocks is used for representing the display period of the information color blocks.
In some embodiments, the scanning terminal is further configured to: acquiring a synchronous code; determining a synchronous color block in the second color block matrix according to the synchronous codes and the relation list; determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation list; and sending the second information coding set to a server so that the server sends the information to be sent to the scanning terminal after determining that the second information coding set is matched with the information coding set.
In some embodiments, when the number of information codes in the information code set is greater than a preset value, the second color block matrix has a preset number of synchronized color blocks, wherein a region formed by the preset number of synchronized color blocks is used for representing a region of the second color block matrix.
In some embodiments, determining sync patches in the second patch matrix based on the sync code and the relationship list comprises: determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation list; and determining the position and the shape of each information color block by an affine transformation method according to the positions and the shapes of the synchronous color blocks with preset number.
In some embodiments, encoding each character in the information to be transmitted separately includes: and respectively coding each character in the information to be transmitted according to the corresponding relation between the characters and the codes in the pre-stored coding file.
In some embodiments, the server is further configured to: and determining whether the number of times of use of the encoded file from the storage time to the current time is greater than a preset number of times of use, and updating the encoded file in response to determining that the number of times of use is greater than the preset number of times of use.
In some embodiments, the server is further configured to: and determining whether the storage time length of the coding file from the storage time to the current time is greater than the preset storage time length or not, and updating the coding file in response to the determination that the storage time length is greater than the preset storage time length.
In a second aspect, an embodiment of the present application provides an information transmission method, where the method includes: receiving an information coding set sent by a server, wherein the information coding set is generated by the server by coding each character in information to be sent respectively and corresponds to the information to be sent; generating a first color block matrix based on the number of information codes in the information code set; and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the digital code in the code and the color information corresponding to the digital code.
In some embodiments, for each information encoding in the set of information encodings, the colors indicated by the sequence of colors corresponding to that information encoding are displayed cyclically in the same color patch in the first color patch matrix.
In some embodiments, the above method further comprises: acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set; generating a second color block matrix based on the information coding set and the synchronous codes, wherein in the second color block matrix, color blocks corresponding to the synchronous codes are synchronous color blocks, and color blocks corresponding to each information code in the information coding set are information color blocks; and according to the relation table, circularly displaying the colors indicated by the corresponding color sequences in the synchronous color blocks, and circularly displaying the colors indicated by the corresponding color sequences in each information color block, wherein the display period of the synchronous color blocks is used for representing the display period of the information color blocks.
In some embodiments, when the number of information codes in the information code set is greater than a preset value, the second color block matrix has a preset number of synchronized color blocks, wherein a region formed by the preset number of synchronized color blocks is used for representing a region of the second color block matrix.
In a third aspect, an embodiment of the present application provides an information transmission apparatus, including: the receiving unit is configured to receive an information coding set sent by the server, wherein the information coding set is generated by the server by coding each character in the information to be sent respectively and corresponds to the information to be sent; the first generating unit is used for generating a first color block matrix based on the number of information codes in the information code set; and the first display unit is configured to display the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the number in the code and the color information corresponding to the number.
In some embodiments, the first display unit is further configured to: for each information code in the set of information codes, the colors indicated by the color sequence corresponding to the information code are cyclically displayed in the same color block in the first color block matrix.
In some embodiments, the above apparatus further comprises: the information encoding device comprises a first acquisition unit, a second acquisition unit and a synchronization unit, wherein the first acquisition unit is configured to acquire a synchronization code, and the synchronization code is different from each information code in an information code set; the second generating unit is configured to generate a second color block matrix based on the information coding set and the synchronous codes, wherein in the second color block matrix, color blocks corresponding to the synchronous codes are synchronous color blocks, and color blocks corresponding to each information code in the information coding set are information color blocks; and the second display unit is configured to display the colors indicated by the corresponding color sequences in the synchronized color blocks in a circulating manner according to the relation table, and display the colors indicated by the corresponding color sequences in each information color block in a circulating manner, wherein the display period of the synchronized color blocks is used for representing the display period of the information color blocks.
In some embodiments, the second generating unit is further configured to: and when the number of the information codes in the information code set is greater than a preset value, a preset number of synchronous color blocks exist in the second color block matrix, wherein the area formed by the preset number of synchronous color blocks is used for representing the area of the second color block matrix.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means for storing one or more programs; a display screen for displaying an image; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the second aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method as described in any implementation manner of the second aspect.
In a sixth aspect, an embodiment of the present application provides an information transmission method, where the method includes: scanning a first color block matrix displayed on a display terminal, wherein a color sequence displayed in the first color block matrix is used for representing an information code in an information code set, and the information code set is an information code set which is generated by respectively coding each character in information to be transmitted and corresponds to the information to be transmitted; generating a first information code set according to a pre-stored relation table, wherein the relation table stores the digital codes in the codes and color information corresponding to the digital codes; and acquiring the information to be transmitted based on the first information coding set.
In some embodiments, the above method further comprises: acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set; determining a synchronous color block in a second color block matrix displayed on the display terminal according to the synchronous codes and the relation list, wherein color blocks corresponding to the synchronous codes in the second color block matrix are synchronous color blocks, and color blocks corresponding to each information code in the information code set are information color blocks; determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation list; and acquiring the information to be transmitted based on the second information coding set.
In some embodiments, determining sync patches in a second matrix of color patches displayed on a display terminal based on the sync code and the relationship list comprises: determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation list; and determining the position and the shape of each information color block by an affine transformation method according to the positions and the shapes of the synchronous color blocks with preset number.
In a seventh aspect, an embodiment of the present application provides an information transmission apparatus, where the apparatus includes: the scanning unit is configured to scan a first color block matrix displayed on the display terminal, wherein a color sequence displayed in the first color block matrix is used for representing an information code in an information code set, and the information code set is an information code set corresponding to information to be transmitted, which is generated by respectively coding each character in the information to be transmitted; the third generating unit is configured to generate a first information code set according to a pre-stored relation table, wherein the relation table stores the digital codes in the codes and color information corresponding to the digital codes; and the second acquisition unit is configured to acquire the information to be transmitted based on the first information coding set.
In some embodiments, the above apparatus further comprises: a third obtaining unit, configured to obtain a synchronization code, where the synchronization code is different from each information code in the information code set; the determining unit is configured to determine a synchronous color block in a second color block matrix displayed on the display terminal according to the synchronous codes and the relationship list, wherein color blocks corresponding to the synchronous codes in the second color block matrix are synchronous color blocks, and color blocks corresponding to each information code in the information code set are information color blocks; the fourth generating unit is configured to determine a starting color and an ending color in colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generate a second information coding set according to the relation list; and the fourth acquisition unit is configured to acquire the information to be transmitted based on the second information coding set.
In some embodiments, the determining unit is further configured to: determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation list; and determining the position and the shape of each information color block by an affine transformation method according to the positions and the shapes of the synchronous color blocks with preset number.
According to the information transmission system, the method and the device, firstly, the server respectively encodes each character in the information to be transmitted to generate an information encoding set, and the information encoding set is transmitted to the display terminal; then the display terminal displays colors indicated by color sequences corresponding to all information codes in the information code set in a first color block matrix generated based on the information code set according to a pre-stored relation table; then, when scanning the first color block matrix, the scanning terminal generates a first information coding set according to the relation table and sends the first information coding set to the server; and finally, after determining that the first information coding set is matched with the information coding set, the server sends the information to be sent to the scanning terminal, so that the reliability of information transmission can be improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a timing diagram of one embodiment of an information transmission system according to the present application;
FIG. 3a is a display diagram of one embodiment of a first color patch matrix;
FIG. 3b is a schematic display diagram of another embodiment of the first color patch matrix;
FIG. 3c is a schematic display diagram of another embodiment of the first color patch matrix;
FIG. 4a is a schematic illustration of a display of one embodiment of a second color block matrix;
FIG. 4b (1) - (3) are schematic illustrations of three other embodiments of the second color patch matrix;
FIG. 5 is a schematic diagram of an application scenario of an information transfer system according to the present application;
FIG. 6 is a flow diagram of one embodiment of an information transfer method according to the present application;
FIG. 7 is a schematic block diagram of one embodiment of an information transfer device according to the present application;
FIG. 8 is a schematic block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present application;
FIG. 9 is a flow chart of yet another embodiment of an information transfer method according to the present application;
fig. 10 is a schematic structural diagram of still another embodiment of an information transmission apparatus according to the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the information transfer system, method, or apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a display terminal 101, a scanning terminal 102, a network 103, and a server 104. The network 103 is used to provide a medium for communication links between the display terminal 101, the scanning terminal 102, and the server 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the display terminal 101, the scanning terminal 102 to interact with the server 104 over the network 103 to send or receive messages, etc. Various client applications, such as a web browser application, a shopping application, a video playing application, an instant messaging tool, etc., may be installed on the display terminal 101 and the scanning terminal 102.
The display terminal 101 may be various electronic devices configured with a display screen to present a color patch matrix. The scanning terminal 102 may be a variety of electronic devices configured with a display screen and a camera to capture the color patch matrix. The display terminal 101 and the scanning terminal 102 may include, but are not limited to, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like.
The server 104 may also be a server that provides various services, such as a background application server that provides support for various applications on the display terminal 101 and the scanning terminal 102. The background application server may perform processing such as encoding on information to be sent between the display terminal 101 and the scanning terminal 102, and return a processing result (such as an information encoding set corresponding to the information to be sent) to the display terminal 101, so that the display terminal 101 and the scanning terminal 102 perform communication. And after the scanning terminal 102 returns the information matched with the processing result, the information to be sent is sent to the scanning terminal 102.
It should be noted that the information transmission method provided in the embodiment of the present application is generally executed by the display terminal 101, and accordingly, the information transmission apparatus is generally disposed in the display terminal 101.
It should be understood that the number of display terminals, scanning terminals, networks and servers in fig. 1 is merely illustrative. There may be any number of display terminals, scanning terminals, networks, and servers, as desired for implementation. For example, one display terminal may correspond to a plurality of scanning terminals. It should be noted that when the display terminal 101 has a function of encoding each character in the information to be transmitted, the server 104 may not be provided in the system 100. The display terminal and the scanning terminal in fig. 1 are also only schematic, and as long as the terminal has a display screen and/or a camera and a network communication function, the terminal can implement the functions of the display terminal and/or the scanning terminal, and has low dependency on terminal hardware.
With continued reference to FIG. 2, a timing diagram of one embodiment of an information transmission system according to the present application is shown.
The information transmission system in the embodiment may include a server, a display terminal, and a scanning terminal; the server is used for respectively encoding each character in the information to be transmitted, generating an information encoding set corresponding to the information to be transmitted and transmitting the information encoding set to the display terminal; the display terminal is used for generating a first color block matrix based on the number of the information codes in the information code set and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the number in the code and the color information corresponding to the number; and the scanning terminal is used for scanning the first color block matrix, generating a first information coding set according to the relation table, and sending the first information coding set to the server, so that the server sends the information to be sent to the scanning terminal after determining that the first information coding set is matched with the information coding set.
As shown in fig. 2, in step 201, the server encodes each character in the information to be transmitted, and generates an information encoding set corresponding to the information to be transmitted.
In this embodiment, a server (e.g., the server 104 shown in fig. 1) may encode each character in the information to be transmitted by various methods, so as to generate an information encoding set corresponding to the information to be transmitted. Here, the encoding is generally to encode characters, numbers or other objects into numbers by a predetermined method. I.e., the process of converting information from one form or format to another. For example, 10-19, 20-29, etc. may be encoded in sequence in the order of the characters in the information to be transmitted. The information to be sent may be various information, such as text information, picture information, or video information. Such information is typically made up of characters, which may include, but are not limited to, numbers, letters, words, symbols, and the like.
In addition, in order to increase the number of characters expressed by the codes, the information codes in the generated information code set can be binary codes or decimal codes commonly used in a digital system, and can also be other binary codes. And the number in the information encoding is not limited to 1 and 0. Meanwhile, the digit number of the digital code in each information code can be the same or different. And to further increase the reliability of information transmission, a check bit may be added at a predetermined position (e.g., the first bit or the last bit) of each information code. The checking method may be, but is not limited to, parity checking. For example, if the sum of the numbers in the information code is odd (or even), the number on the parity bit can be 1 (or 0).
In some optional implementation manners of this embodiment, the server may encode each character in the information to be sent according to a correspondence between characters and codes in a pre-stored encoding file. The encoding file may be various files storing characters and codes corresponding to the characters, such as an XML (Extensible Markup Language) file, a data table, and the like. Meanwhile, the coding file can be obtained by the server from other servers in advance and stored locally, or can be manually stored in the server in advance.
Optionally, in order to further improve the reliability and security of information transmission, the server may also periodically update the encoding file, so as to update the information encoding set corresponding to the information to be transmitted. For example, the server may determine whether the number of uses of the encoded file from the time of storage to the current time is greater than a preset number of uses, and may update the encoded file in response to determining that the number of uses is greater than the preset number of uses. For another example, the server may determine whether a storage duration of the encoded file from the storage time to the current time is greater than a preset storage duration, and may update the encoded file in response to determining that the storage duration is greater than the preset storage duration. The preset number of times of use and the preset storage duration may be set manually or may be defaulted by the server. For example, the preset number of times of use is one, and the preset storage time is one day (24 hours).
In step 202, the server sends the information encoding set to the display terminal.
In this embodiment, based on the information encoding set generated in step 201, the server may transmit the information encoding set to a display terminal (e.g., the display terminal 101 shown in fig. 1) through a wired connection or a wireless connection.
In step 203, the display terminal generates a first color block matrix based on the number of information codes in the information code set.
In this embodiment, the display terminal may generate the first color block matrix according to the number of information codes in the information code set. For example, if the information encoding set includes 3 information encodings, a first color block matrix of 1 row and 3 columns may be generated. It should be noted that, the display terminal may be pre-stored with a color patch matrix template, and a style may be selected from the color patch matrix template to generate a first color patch matrix of the style. The color block matrix template may include color blocks and color block matrixes of different types, such as circular color blocks or color block matrixes, quadrilateral color blocks or color block matrixes, and the like. In addition, the display terminal can also determine the number of rows and columns of the first color block matrix according to the size of the display screen and the size of a single color block. For example, the width of the display screen is 6cm, and the size of the individual color blocks is 6mm × 6 mm. Wherein cm is centimeter and mm is millimeter. At this time, if the information encoding set includes 11 information encodings, the first color block matrix should include at least 2 rows because a line of the display screen can display 10 color blocks at most. The color block matrix can be 2 rows and 10 columns, and can also be 3 rows and 4 columns.
It should be noted that the size of the color block displayed on the display terminal should be properly recognized by other terminals. If the size is too small, the recognition rate is easily lowered. If the size is too large, the color block matrix occupies the whole screen, the screen flicker feeling is too strong, and the user experience is not good. Therefore, the size of a single color block can be controlled to be about 5mm × 5 mm.
In step 204, the display terminal displays the colors indicated by the color sequences corresponding to the information codes in the information code set in the first color patch matrix according to a pre-stored relationship table.
In this embodiment, the display terminal may display, in the first color patch matrix, the color indicated by the color sequence corresponding to each information code in the information code set according to a pre-stored relationship table. Wherein, the relation table stores the digital code in the code and the color information corresponding to the digital code. Here, the relationship table may be obtained from the server or another server in advance and stored locally, or may be manually stored in advance therein. In order to increase the identifiability of the first color block matrix and improve the anti-interference performance of the identification system, a color with a larger distinction degree can be adopted as the color corresponding to each digital code. By way of example, the relationship table may be as follows:
TABLE 1
Colour(s) | Red wine | Yellow colour | Green | Green leaf of Chinese cabbage | Blue (B) | Purple pigment | White colour (Bai) | Black colour |
Digital code | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
At this time, if the information codes in the information code set are 03 and 12, respectively, the colors indicated by the color sequence corresponding to the information code 03 are red and cyan in turn, and the colors indicated by the color sequence corresponding to the information code 12 are yellow and green in turn. In this way, the display terminal can display the color indicated by the color sequence corresponding to each information code in the first color block matrix in the manner shown in fig. 3a or fig. 3 b.
In fig. 3a, one information code may correspond to one row (or one column) of color blocks, and each color block in the row corresponds to one code in the information code. That is, the color patches of the first row display red and cyan, respectively, and the color patches of the second row display yellow and green, respectively.
In order to increase the number of information codes that can be conveyed by the first color patch matrix, as shown in fig. 3b, one information code may correspond to one color patch, and all colors indicated by the color sequence corresponding to the information code are displayed in the color patch. At this time, in order to improve the identifiability of the first color block matrix, the color blocks corresponding to the information codes in the same row may be arranged at intervals. I.e. red and cyan are shown in the color blocks located in row 1, column 1. Yellow and green are shown in the color blocks located in row 1, column 3.
In some optional implementations of this embodiment, in order to further increase the number of information codes that can be conveyed by the first color block matrix, for each information code in the information code set, the color indicated by the color sequence corresponding to the information code may be displayed cyclically in the same color block in the first color block matrix. As shown in fig. 3c, one information code may correspond to one color patch, and the color indicated by the color sequence corresponding to the information code is displayed in a loop in the color patch. At this time, in order to determine the start number and the end number of the information code to improve the identifiability of the first color patch matrix, each color patch may not display any color or display colors not stored in the relational table after displaying all colors indicated by the color sequence once. That is, for the information code 03, the color blocks in the first row and the first column are displayed circularly according to the sequence of red, cyan and blank; for the information code 12, the color blocks in the first row and the second column are displayed circularly in the order of yellow, green and blank. In addition, compared with the static display mode in fig. 3a and 3b, the first color block matrix in fig. 3c adopts a dynamic display mode, so that the first color block matrix is not easily copied from the display terminal to other devices, and the reliability of information transmission can be improved. Even if the first color block matrix is copied to other equipment, after the server updates the encoding file, the information encoding set corresponding to the information to be transmitted stored in the server changes. At this time, the first color block matrix displaying the color indicated by the color sequence corresponding to the information code in the information code set is also changed, so that the copied first color block matrix is also invalid. This can further improve the reliability of information transmission.
It is understood that the time for displaying the colors in the same color block alternately can be set according to actual conditions. But if the time is too short, the screen refresh rate is not sufficient, resulting in errors. And if the time is too long, the communication rate is too slow and the user experience is degraded. The time can be set generally between 20-100 milliseconds. In addition, in order to facilitate the synchronous display of each color block, if the digits of the numbers in each information code are different, 0 can be supplemented after the information code with less digits, so that the digits of the numbers in each information code are the same.
In some optional implementation manners of the present embodiment, the display terminal may further display a color indicated by a color sequence corresponding to each information code in the information code set by the following steps.
1) And acquiring synchronous codes.
The sync code may be preset and stored in the display terminal. The display terminal can acquire the synchronous codes from the local. The synchronization code may be generated by the server when encoding information to be transmitted, and may be transmitted to the display terminal by the server. The synchronous codes may also be (but are not limited to) binary codes, and are used to determine the start numbers and the end numbers of each information code in the information code set, where the number of digits of the number may be the same as (or different from) the number of digits in the information code, but it is sufficient to ensure that the corresponding color information can be found in the relationship table by the digits in the synchronous codes. It will be appreciated that since the synchronization code may be used to determine the start and end codes of the information code, the synchronization code is different from each of the information codes in the information code set, i.e., the same information code as the synchronization code cannot be present in the information code set.
2) A second color block matrix is generated based on the information encoding set and the synchronization encoding.
The display terminal can generate the second color block matrix according to the number of the information codes in the information code set and the preset number of the synchronous codes. The preset number of sync codes may be any positive integer. For example, if the information code set includes 3 information codes and the preset number of synchronous codes is 1, a row and four columns of the second color block matrix can be generated. For a specific generation process, refer to step 203, which is not described herein again. In the second color block matrix, the color blocks corresponding to the synchronous codes are synchronous color blocks, and the color blocks corresponding to each information code in the information code set are information color blocks. It should be noted that the position of the sync block in the second color block matrix is not limited in this application. To increase the communication rate, the patch located at the first column of the first row (or the last column of the last row) may be set as a sync patch.
3) And according to the relation table, circularly displaying the colors indicated by the corresponding color sequences in the synchronous color blocks, and circularly displaying the colors indicated by the corresponding color sequences in each information color block.
The display terminal may also cyclically display (i.e., dynamically display) the colors indicated by the color sequence corresponding to the sync codes in each sync tile and cyclically display (i.e., dynamically display) the colors indicated by the color sequence corresponding to the information codes in each information tile according to the relationship table. At this time, since the start number and the end number of the information code can be determined by the sync code, the display period of the sync patch can be used to represent the display period of the information patch. That is, when the sync patches display the color corresponding to the start number (or the end number) in the sync code, the information patches also display the color corresponding to the start number (or the end number) in the information code. It is understood that, in order to simplify the display process, the number of digits in the synchronization code may be the same as the number of digits in the information code, and the synchronization color block and the information color block have the same update frequency (time for alternately displaying colors).
Optionally, when the number of information codes in the information code set is greater than a preset value, there may be a preset number of synchronized color blocks in the second color block matrix. And the area formed by the preset number of synchronous color blocks is used for representing the area of the second color block matrix. As an example, when a line of the display screen can display 5 color patches, if the number of information codes (i.e., the number of information color patches) n satisfies: n is more than or equal to 1 and less than or equal to 3 (namely the row number of the second color block matrix is 1), and the second color block matrix can have 2 synchronous color blocks. At this time, as shown in fig. 4a, sync patches (shaded patches in the figure) may be respectively located in the first row and the first column and the last column of the first row. If n satisfies: n is greater than or equal to 4 (i.e., the number of rows in the second color block matrix is greater than or equal to 2), and there may be at least 3 sync blocks in the second color block matrix. The specific positions of the sync patches (shaded patches in the figure) can be seen as (1), (2) and (3) in fig. 4 b. It should be noted that, when the number of rows of the second color block matrix is 2, as shown in fig. 4b (1), the sync blocks located in the first row and the first column are adjacent to each other, which is not favorable for detecting the sync blocks. Therefore, in order to improve the communication efficiency, the number of rows of the second color block matrix may be set to be different from 2 in advance.
In step 205, the scanning terminal scans the first color block matrix and generates a first information encoding set according to the relationship table.
In this embodiment, a scanning terminal (for example, the scanning terminal 102 shown in fig. 1) may scan the first color patch matrix displayed on the display terminal after receiving a prompt message sent by the server or detecting an instruction for instructing to capture an image (for example, detecting that a camera is turned on). The prompt information is used for prompting a user to hold the scanning terminal to do a specified action. For example, the prompt message may be "please scan a pattern on the screen of the display terminal". It is understood that, in order to avoid information omission, the scanning terminal should ensure that the entire first color block matrix is scanned when scanning the display screen of the display terminal.
In this embodiment, the relationship table may also be stored in the scanning terminal in advance. And the scanning terminal can determine the number corresponding to each displayed color according to the color information corresponding to the number in the relation table while scanning the first color block matrix. And determining the sequence of the corresponding digital codes according to the sequence displayed by each color to generate a first information code, and further generating a first information code set. The specific process may refer to step 204, which is opposite to the display process of the first color block matrix and is not described herein again.
In some optional implementation manners of this embodiment, the scanning terminal may further determine, through the following steps, an information encoding set corresponding to a color displayed in a color block matrix on the display terminal.
1) And acquiring synchronous codes.
The process of acquiring the synchronization code by the scanning terminal may refer to the description of the display terminal acquiring the synchronization code in step 204, which is not described herein again. The synchronization coding here is the same as the above-described synchronization coding.
2) The sync blocks in the second color block matrix are determined based on the sync code and the relationship list.
After the synchronous codes are obtained, the scanning terminal can determine the color information corresponding to the digital codes in the synchronous codes according to the relation table. And when the second color block matrix is scanned, the color blocks with the same colors and the same sequence as those indicated by the color sequence corresponding to the synchronous codes are the synchronous color blocks. In addition, in order to improve the reliability of the identification, the scanning terminal may determine the patch as a synchronous patch after continuously detecting a preset number of times (e.g., 2 times).
3) And determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation list.
After the synchronous color blocks are determined, the scanning terminal can determine the starting color and the ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks. And further, according to the relation table, the number and the sequence corresponding to the color indicated by the color sequence can be determined, and the second information code is generated, so that the second information code set is generated.
4) And sending the second information coding set to a server so that the server sends the information to be sent to the scanning terminal after determining that the second information coding set is matched with the information coding set.
The scanning terminal may transmit the generated second information code set to the server. In this way, the server may send the information to be sent to the scanning terminal when determining that each second information code in the second information code set is the same as each information code in the information code set.
It can be understood that, when the second color block matrix includes a predetermined number of synchronized color blocks, the scanning terminal can also determine the predetermined number of synchronized color blocks. That is, a preset number of synchronized color patches in the second color patch matrix is determined according to the synchronization code and the relationship list. At this time, since the region of the second color block matrix can be determined according to the regions formed by the preset number of synchronous color blocks, the scanning terminal can determine the position and the shape of each information color block by an affine transformation method according to the position and the shape of the preset number of synchronous color blocks. Therefore, the problem of information omission when the scanning terminal scans the second color block matrix can be prevented.
It should be noted that, during scanning, the scanning terminal often does not scan right against the display screen of the display terminal, so that the scanning terminal is generally inclined. This results in that the color blocks obtained by the scanning terminal are not necessarily the shapes displayed on the display terminal, so that the scanning terminal can restore the shapes of the color blocks according to the affine transformation method, thereby determining the accurate positions of the information color blocks. The affine transformation method is prior art and will not be described in detail here.
In step 206, the scanning terminal sends the first encoded set of information to the server.
In this embodiment, the scanning terminal may send the first information encoding set generated in step 205 to the server through a wired connection manner or a wireless connection manner.
In step 207, the server sends the information to be sent to the scanning terminal after determining that the first information encoding set matches the information encoding set.
In this embodiment, the server may compare the first information encoding set with the information encoding set after receiving the first information encoding set. If each first information code in the first information code set is the same as each information code in the information code set, it can be determined that the first information code set matches the information code set. At this time, the server may send information to be sent corresponding to the information coding set to the scanning terminal.
It should be noted that, if the preset number of times of use set on the server is 1, the server updates the encoded file after receiving the first information encoding set matching the currently stored information encoding set for the first time. At this time, the server generates an information code set according to the updated code file and sends the information code set to the display terminal. In this way, the server may determine whether the scanning terminal is a first encoded set of information generated by scanning a first color patch matrix on the display terminal.
The information transmission system provided by the embodiment of the application firstly encodes each character in the information to be transmitted respectively through the server to generate an information encoding set, and transmits the information encoding set to the display terminal; then the display terminal displays colors indicated by color sequences corresponding to all information codes in the information code set in a first color block matrix generated based on the information code set according to a pre-stored relation table; then, when scanning the first color block matrix, the scanning terminal generates a first information coding set according to the relation table and sends the first information coding set to the server; and finally, after determining that the first information coding set is matched with the information coding set, the server sends the information to be sent to the scanning terminal, so that the reliability of information transmission can be improved.
With further reference to fig. 5, a schematic diagram of an application scenario of the information transmission system provided in the present application is shown.
As shown in fig. 5, in the application scenario, an instant messenger is installed on both a display terminal 51 used by a user a and a scanning terminal 52 used by a user B, and the user a and the user B can become friends by adding accounts on the instant messenger. The account number of the user A is W. At this time, the server 53 may encode information to be transmitted (i.e., the account number W), generate an information encoding set (01, 12), and transmit it to the display terminal 51. The information code corresponding to the character W is 01, and the information code corresponding to the character is 12. The display terminal 51 generates a color block matrix from the information encoding set (01, 12) and the synchronization encoding (31). And displaying the colors indicated by the corresponding color sequences in the color lump matrixes according to the relation list. At this time, the user B may turn on the camera on the scanning terminal 52 and scan the color patch matrix on the display screen of the display terminal 51. The scanning terminal 52 may first find the positions of the synchronized color patches according to the relationship table and the synchronization code, thereby determining the positions of the color patch matrix. Then, according to the display rule of the synchronous codes, the starting color and the ending color in the information color blocks are determined, and a second information code set (01, 12) is generated according to the relation table. The scanning terminal 52 sends the second encoded set of information to the server 53. After determining that the second information code set (01, 12) matches the information code set (01, 12) generated before, the server 53 transmits the information to be transmitted (i.e., the account W of the user a) to the scanning terminal 52. Thus, user B may add user a as a buddy by scanning the information received by terminal 52.
With continued reference to fig. 6, a flow 600 of one embodiment of an information transfer method provided herein is shown. The process 600 of the information transmission method includes the following steps:
In this embodiment, the electronic device (for example, the display terminal 101 shown in fig. 1) on which the information transmission method operates may receive the information encoding set sent by the server (for example, the server 104 shown in fig. 1) through a wired connection manner or a wireless connection manner. The information coding set is generated by the server by coding each character in the information to be transmitted respectively and corresponds to the information to be transmitted. For a specific process, reference may be made to related descriptions in step 201 and step 202 shown in fig. 2, and details are not described here.
In this embodiment, based on the information encoding set received in step 601, the electronic device may generate a first color block matrix according to the number of information encodings in the information encoding set. Specifically, reference may be made to the related description in step 203 shown in fig. 2, and details are not described here.
In this embodiment, the electronic device may determine, according to the relationship table, a color indicated by a color sequence corresponding to each information code in the information code set, and display the color in the first color block matrix. Further, the scanning terminal (e.g., the scanning terminal 102 shown in fig. 1) may scan the first color patch matrix, generate a first information encoding set according to the relationship table, and transmit the first information encoding set to the server (e.g., the server 104 shown in fig. 1). And after determining that the first information coding set is matched with the information coding set, the server can send the information to be sent to the scanning terminal. Wherein, the relation table stores the digital code in the code and the color information corresponding to the digital code. Specifically, reference may be made to the related descriptions in step 204 to step 207 shown in fig. 2, which are not described herein again.
In some optional implementations of this embodiment, for each information encoding in the set of information encodings, the color indicated by the color sequence corresponding to that information encoding may be displayed cyclically in the same color patch in the first color patch matrix.
In some optional implementation manners of this embodiment, the method may further include: acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set; generating a second color block matrix based on the information coding set and the synchronous codes, wherein in the second color block matrix, color blocks corresponding to the synchronous codes are synchronous color blocks, and color blocks corresponding to each information code in the information coding set are information color blocks; and according to the relation table, circularly displaying the colors indicated by the corresponding color sequences in the synchronous color blocks, and circularly displaying the colors indicated by the corresponding color sequences in each information color block, wherein the display period of the synchronous color blocks is used for representing the display period of the information color blocks.
In some optional implementations of this embodiment, when the number of information codes in the information code set is greater than a preset value, there are a preset number of synchronized color blocks in the second color block matrix, where a region formed by the preset number of synchronized color blocks is used to represent a region where the second color block matrix is located.
In the information transmission method provided by the embodiment of the application, the information to be sent is converted into the information coding set corresponding to the information to be sent, and the color information corresponding to the digital code is found in the relation table according to the digital code in each information code in the information coding set, so that the color sequence corresponding to each information code is determined, and the color indicated by the color information in the color sequence is displayed in the generated first color block matrix. That is, the information to be transmitted is converted into the information code for transmission, so that the reliability of information transmission can be improved. Meanwhile, information coding is transmitted through the color block matrix, so that the risk of information leakage can be reduced, and the safety of information transmission is improved. In addition, the dynamic display of colors can be performed through the color block matrix, so that compared with the traditional static display mode of bar codes or two-dimensional codes, the content of the color block matrix is not easy to copy to other equipment. And the copied color block matrix is often invalid, so that the information to be sent can be obtained only after the scanning terminal scans the color block matrix displayed on the display terminal and sends the obtained information code to the server, and the reliability of information transmission can be further improved.
With further reference to fig. 7, the present application provides one embodiment of an information transfer device as an implementation of the method illustrated in fig. 6 above. The embodiment of the device corresponds to the embodiment of the method shown in fig. 6, and the device can be applied to various electronic devices.
As shown in fig. 7, the information transmission apparatus 700 of the present embodiment may include: the receiving unit 701 is configured to receive an information coding set sent by a server, where the information coding set is generated by the server by coding each character in information to be sent, and corresponds to the information to be sent; a first generating unit 702 configured to generate a first color block matrix based on the number of information codes in the information code set; the first display unit 703 is configured to display, according to a pre-stored relationship table, a color indicated by a color sequence corresponding to each information code in the information code set in the first color block matrix, so that the scanning terminal generates a first information code set according to the relationship table after scanning the first color block matrix, and sends the first information code set to the server, and the server sends the information to be sent to the scanning terminal after determining that the first information code set matches with the information code set, where the relationship table stores the number in the code and the color information corresponding to the number.
In this embodiment, specific implementation manners and advantageous effects of the receiving unit 701, the first generating unit 702 and the first displaying unit 703 may respectively refer to the relevant descriptions of step 601, step 602 and step 603 in the embodiment of fig. 6, and are not described herein again.
In some optional implementation manners of this embodiment, the first display unit 703 may be further configured to: for each information code in the set of information codes, the colors indicated by the color sequence corresponding to the information code are cyclically displayed in the same color block in the first color block matrix.
In some optional implementations of this embodiment, the apparatus 700 may further include: a first obtaining unit (not shown in the figure) configured to obtain a synchronization code, wherein the synchronization code is different from each information code in the information code set; a second generating unit (not shown in the figure) configured to generate a second color block matrix based on the information encoding set and the synchronous encoding, wherein in the second color block matrix, a color block corresponding to the synchronous encoding is a synchronous color block, and a color block corresponding to each information encoding in the information encoding set is an information color block; and a second display unit (not shown in the figure) configured to cyclically display the colors indicated by the corresponding color sequences in the synchronized color blocks according to the relationship table, and cyclically display the colors indicated by the corresponding color sequences in each information color block, wherein the display periods of the synchronized color blocks are used for representing the display periods of the information color blocks.
In some optional implementations of this embodiment, the second generating unit may be further configured to: and when the number of the information codes in the information code set is greater than a preset value, a preset number of synchronous color blocks exist in the second color block matrix, wherein the area formed by the preset number of synchronous color blocks is used for representing the area of the second color block matrix.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the system 800 are also stored. The CPU801, ROM802, and RAM803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input section 806 including a keyboard (physical keyboard, touch keyboard), a display screen, and the like; an output section 807 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 801. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a first generating unit, and a first display unit. The names of these units do not in some cases form a limitation on the units themselves, and for example, a receiving unit may also be described as "a unit that receives an encoded set of information sent by a server".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving an information coding set sent by a server, wherein the information coding set is generated by the server by coding each character in information to be sent respectively and corresponds to the information to be sent; generating a first color block matrix based on the number of information codes in the information code set; and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the digital code in the code and the color information corresponding to the digital code.
Referring further to fig. 9, a flow 900 of yet another embodiment of an information transmission method provided herein is shown. The process 900 of the information transmission method includes the following steps:
In this embodiment, an electronic device (for example, the scanning terminal 102 shown in fig. 1) on which the information transmission method operates may scan a first color patch matrix displayed on a display terminal (for example, the display terminal 101 shown in fig. 1) through a camera. The color sequence displayed in the first color block matrix is used for representing the information codes in the information code set. And the information coding set is an information coding set which is generated by respectively coding each character in the information to be transmitted and corresponds to the information to be transmitted. Here, the encoding process may be performed by the display terminal; the information may be transmitted to the display terminal after the server (e.g., the server 104 shown in fig. 1) is completed. For a specific process, reference may be made to the related descriptions in step 201 to step 204 shown in fig. 2, which are not described herein again.
In this embodiment, the electronic device may determine a number corresponding to each displayed color according to a pre-selected stored relationship table, thereby generating the first information encoding set. Wherein, the relation table stores the digital code in the code and the color information corresponding to the digital code. For a specific process, reference may be made to the related description in step 205 shown in fig. 2, and details are not described here.
In this embodiment, the electronic device may send the generated first information encoding set to a display terminal or a server. Therefore, after the display terminal or the server determines that the first information code set is matched with the stored information code set, the information to be sent can be sent to the electronic equipment. For a specific process, reference may be made to related descriptions in step 206 and step 207 shown in fig. 2, and details are not described here.
As an example, the electronic device may further store an encoding file thereon in advance. The encoding file is the same as the encoding files in the above embodiments, and is used for the corresponding relationship between characters and codes. At this time, the electronic device may determine, according to the encoded file and the first information encoding set, a character corresponding to each information encoding, thereby obtaining the information to be transmitted.
In some optional implementation manners of this embodiment, the method may further include: acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set; determining a synchronous color block in a second color block matrix displayed on the display terminal according to the synchronous codes and the relation list, wherein color blocks corresponding to the synchronous codes in the second color block matrix are synchronous color blocks, and color blocks corresponding to each information code in the information code set are information color blocks; determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation list; and acquiring the information to be transmitted based on the second information coding set.
Optionally, determining the sync color block in the second color block matrix displayed on the display terminal according to the sync code and the relationship list may include: determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation list; and determining the position and the shape of each information color block by an affine transformation method according to the positions and the shapes of the synchronous color blocks with preset number.
In the information transmission method in this embodiment, an information coding set may be generated by scanning a color block matrix on the display terminal according to the relationship table, and information to be sent is obtained according to the information coding set. That is, the information to be transmitted is converted into information codes for transmission, and the reliability of information transmission can be improved. Meanwhile, the information codes are transmitted through the color block matrix, so that the risk of information leakage can be reduced, and the reliability of information transmission can be further improved.
With continuing reference to fig. 10, the present application provides yet another embodiment of an information transfer device as an implementation of the method illustrated in fig. 9 and described above. The embodiment of the device corresponds to the embodiment of the method shown in fig. 9, and the device can be applied to various electronic devices.
As shown in fig. 10, the information transmission apparatus 1000 of the present embodiment may include: a scanning unit 1001 configured to scan a first color block matrix displayed on a display terminal, where a color sequence displayed in the first color block matrix is used to represent an information code in an information code set, and the information code set is an information code set corresponding to information to be transmitted, generated by respectively encoding each character in the information to be transmitted; a third generating unit 1002, configured to generate a first information encoding set according to a pre-stored relationship table, where the relationship table stores the digital codes in the encoding and color information corresponding to the digital codes; a second obtaining unit 1003 configured to obtain information to be transmitted based on the first information encoding set.
In this embodiment, specific implementation manners and beneficial effects of the scanning unit 1001, the third generating unit 1002 and the second obtaining unit 1003 may respectively refer to the relevant descriptions of step 901, step 902 and step 903 in the embodiment of fig. 9, and are not described herein again.
In some optional implementations of this embodiment, the apparatus 1000 may further include: a third obtaining unit (not shown in the figure) configured to obtain a synchronization code, where the synchronization code is different from each information code in the information code set; a determining unit (not shown in the figure), configured to determine, according to the sync codes and the relationship list, a sync color block in a second color block matrix displayed on the display terminal, where a color block in the second color block matrix corresponding to the sync codes is a sync color block, and a color block corresponding to each information code in the information code set is an information color block; a fourth generating unit (not shown in the figure) configured to determine a starting color and an ending color of colors indicated by the color sequence displayed in each information color block according to the display period of the sync color block, and generate a second information encoding set according to the relationship list; and a fourth obtaining unit (not shown in the figure) configured to obtain the information to be sent based on the second information encoding set.
Optionally, the determining unit may be further configured to: determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation list; and determining the position and the shape of each information color block by an affine transformation method according to the positions and the shapes of the synchronous color blocks with preset number.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (16)
1. An information transmission system, the system comprising: the system comprises a server, a display terminal and a scanning terminal;
the server is used for respectively encoding each character in the information to be transmitted, generating an information encoding set corresponding to the information to be transmitted and transmitting the information encoding set to the display terminal;
the display terminal is used for generating a first color block matrix based on the number of the information codes in the information code set, and displaying the color indicated by the color sequence corresponding to each information code in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the digital code in the code and the color information corresponding to the digital code;
the display terminal is further configured to acquire a synchronization code, where the synchronization code is different from each information code in the information code set, generate a second color block matrix based on the information code set and the synchronization code, where a color block corresponding to the synchronization code in the second color block matrix is a synchronization color block, and a color block corresponding to each information code in the information code set is an information color block, cyclically display a color indicated by a corresponding color sequence in the synchronization color block and cyclically display a color indicated by a corresponding color sequence in each information color block according to the relationship table, where a display period of the synchronization color block is used to represent a display period of the information color block;
the scanning terminal is configured to scan the first color block matrix, generate a first information coding set according to the relationship table, and send the first information coding set to the server, so that the server sends the information to be sent to the scanning terminal after determining that the first information coding set is matched with the information coding set.
2. The system of claim 1, wherein for each information code in the set of information codes, the color indicated by the color sequence corresponding to that information code is cyclically displayed in the same color patch in the first color patch matrix.
3. The system of claim 1, wherein the scanning terminal is further configured to:
acquiring the synchronous code;
determining a synchronous color block in the second color block matrix according to the synchronous code and the relation table;
determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation table;
and sending the second information coding set to the server so that the server sends the information to be sent to the scanning terminal after determining that the second information coding set is matched with the information coding set.
4. The system according to claim 3, wherein when the number of information codes in the information code set is greater than a preset value, the second color block matrix has a preset number of synchronized color blocks, and a region formed by the preset number of synchronized color blocks is used for representing a region of the second color block matrix.
5. The system of claim 4, wherein determining the sync patches in the second patch matrix based on the sync code and the relationship table comprises:
determining a preset number of synchronous color blocks in the second color block matrix according to the synchronous codes and the relation table;
and determining the position and the shape of each information color block by using an affine transformation method according to the positions and the shapes of the preset number of synchronous color blocks.
6. The system according to any of claims 1-5, wherein said encoding each character of the information to be transmitted comprises:
and respectively coding each character in the information to be transmitted according to the corresponding relation between the characters and the codes in the pre-stored coding file.
7. The system of claim 6, wherein the server is further configured to:
and determining whether the number of times of use of the encoded file from the storage time to the current time is greater than a preset number of times of use, and updating the encoded file in response to determining that the number of times of use is greater than the preset number of times of use.
8. The system of claim 6, wherein the server is further configured to:
and determining whether the storage time length of the coded file from the storage time to the current time is greater than a preset storage time length or not, and updating the coded file in response to the determination that the storage time length is greater than the preset storage time length.
9. An information transmission method, characterized in that the method comprises:
receiving an information coding set sent by a server, wherein the information coding set is generated by the server by coding each character in information to be sent respectively and corresponds to the information to be sent;
generating a first color block matrix based on the number of information codes in the information code set;
displaying colors indicated by color sequences corresponding to the information codes in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the digital codes in the codes and color information corresponding to the digital codes;
acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set;
generating a second color block matrix based on the information coding set and the synchronous codes, wherein in the second color block matrix, a color block corresponding to the synchronous codes is a synchronous color block, and a color block corresponding to each information code in the information coding set is an information color block;
and according to the relation table, circularly displaying the colors indicated by the corresponding color sequences in the synchronous color blocks, and circularly displaying the colors indicated by the corresponding color sequences in each information color block, wherein the display period of the synchronous color blocks is used for representing the display period of the information color blocks.
10. The method of claim 9, wherein for each information code in the set of information codes, the color indicated by the color sequence corresponding to the information code is cyclically displayed in the same color block in the first color block matrix.
11. An information transmission apparatus, characterized in that the apparatus comprises:
the receiving unit is configured to receive an information coding set sent by a server, wherein the information coding set is generated by the server by coding each character in information to be sent respectively and corresponds to the information to be sent;
a first generating unit, configured to generate a first color block matrix based on the number of information codes in the information code set;
the first display unit is configured to display colors indicated by color sequences corresponding to the information codes in the information code set in the first color block matrix according to a pre-stored relation table, wherein the relation table stores the numbers in the codes and color information corresponding to the numbers;
a first obtaining unit, configured to obtain a synchronization code, where the synchronization code is different from each information code in the information code set;
a second generating unit, configured to generate a second color block matrix based on the information encoding set and the synchronous encoding, where in the second color block matrix, a color block corresponding to the synchronous encoding is a synchronous color block, and a color block corresponding to each information encoding in the information encoding set is an information color block;
and the second display unit is configured to cyclically display the colors indicated by the corresponding color sequences in the synchronized color blocks according to the relation table, and cyclically display the colors indicated by the corresponding color sequences in each information color block, wherein the display period of the synchronized color blocks is used for representing the display period of the information color blocks.
12. The apparatus of claim 11, wherein the first display unit is further configured to:
for each information code in the set of information codes, the colors indicated by the color sequence corresponding to the information code are cyclically displayed in the same color block in the first color block matrix.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
a display screen for displaying an image;
when executed by the one or more processors, cause the one or more processors to implement a method as recited in any one of claims 9-10.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to one of claims 9 to 10.
15. An information transmission method, characterized in that the method comprises:
scanning a first color block matrix displayed on a display terminal, wherein a color sequence displayed in the first color block matrix is used for representing an information code in an information code set, and the information code set is an information code set corresponding to information to be sent and generated by respectively coding each character in the information to be sent;
generating a first information code set according to a pre-stored relation table, wherein the relation table stores the digital codes in the codes and color information corresponding to the digital codes;
acquiring the information to be sent based on the first information coding set;
acquiring a synchronous code, wherein the synchronous code is different from each information code in the information code set;
determining a synchronous color block in a second color block matrix displayed on the display terminal according to the synchronous codes and the relation table, wherein the color block corresponding to the synchronous codes in the second color block matrix is a synchronous color block, and the color block corresponding to each information code in the information code set is an information color block;
determining a starting color and an ending color in the colors indicated by the color sequences displayed in the information color blocks according to the display period of the synchronous color blocks, and generating a second information coding set according to the relation table;
and acquiring the information to be sent based on the second information coding set.
16. An information transmission apparatus, characterized in that the apparatus comprises:
the scanning unit is configured to scan a first color block matrix displayed on a display terminal, wherein a color sequence displayed in the first color block matrix is used for representing an information code in an information code set, and the information code set is an information code set corresponding to the information to be transmitted, which is generated by respectively coding each character in the information to be transmitted;
the third generating unit is configured to generate a first information code set according to a pre-stored relation table, wherein the relation table stores the digital codes in the codes and color information corresponding to the digital codes;
a second obtaining unit, configured to obtain the information to be sent based on the first information coding set;
a third obtaining unit, configured to obtain a synchronization code, where the synchronization code is different from each information code in the information code set;
a determining unit, configured to determine a synchronous color block in a second color block matrix displayed on the display terminal according to the synchronous codes and the relationship table, where a color block corresponding to the synchronous codes in the second color block matrix is a synchronous color block, and a color block corresponding to each information code in the information code set is an information color block;
the fourth generating unit is configured to determine a starting color and an ending color in colors indicated by the color sequences displayed in the information color blocks according to the display periods of the synchronous color blocks, and generate a second information coding set according to the relation table;
and the fourth acquisition unit is configured to acquire the information to be sent based on the second information coding set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330246.9A CN107169540B (en) | 2017-05-11 | 2017-05-11 | Information transmission system, method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330246.9A CN107169540B (en) | 2017-05-11 | 2017-05-11 | Information transmission system, method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107169540A CN107169540A (en) | 2017-09-15 |
CN107169540B true CN107169540B (en) | 2020-11-24 |
Family
ID=59815833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710330246.9A Active CN107169540B (en) | 2017-05-11 | 2017-05-11 | Information transmission system, method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107169540B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395830B (en) * | 2019-07-31 | 2025-01-21 | 腾讯科技(深圳)有限公司 | A table processing method based on Unicode and related device |
CN119272784A (en) * | 2024-09-10 | 2025-01-07 | 深圳市思行建筑科技有限公司 | Color QR code recognition method, generation method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268615A (en) * | 2014-10-24 | 2015-01-07 | 重庆思根科技有限公司 | Encoding method and decoding method for color two-dimensional code |
CN104618334A (en) * | 2014-12-29 | 2015-05-13 | 通邮(中国)科技有限公司 | Method and system for generating and verifying dynamic two-dimensional code |
CN104700141A (en) * | 2014-11-27 | 2015-06-10 | 郭琰 | Dynamic two-dimensional code display method and system and recognition program |
CN106056021A (en) * | 2016-06-13 | 2016-10-26 | 上海交通大学 | Hue-based volume-flexible color two-dimensional code stream data communication method and system |
CN106339741A (en) * | 2016-08-31 | 2017-01-18 | 陈凌云 | Dynamic two-dimensional code generation method, device, identification method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9843475B2 (en) * | 2012-12-09 | 2017-12-12 | Connectwise, Inc. | Systems and methods for configuring a managed device using an image |
-
2017
- 2017-05-11 CN CN201710330246.9A patent/CN107169540B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268615A (en) * | 2014-10-24 | 2015-01-07 | 重庆思根科技有限公司 | Encoding method and decoding method for color two-dimensional code |
CN104700141A (en) * | 2014-11-27 | 2015-06-10 | 郭琰 | Dynamic two-dimensional code display method and system and recognition program |
CN104618334A (en) * | 2014-12-29 | 2015-05-13 | 通邮(中国)科技有限公司 | Method and system for generating and verifying dynamic two-dimensional code |
CN106056021A (en) * | 2016-06-13 | 2016-10-26 | 上海交通大学 | Hue-based volume-flexible color two-dimensional code stream data communication method and system |
CN106339741A (en) * | 2016-08-31 | 2017-01-18 | 陈凌云 | Dynamic two-dimensional code generation method, device, identification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107169540A (en) | 2017-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10650492B2 (en) | Method and apparatus for generating image | |
KR100949690B1 (en) | System and method for using visual password method | |
CN105160033B (en) | The processing method and processing device of expression character string | |
CN107392583B (en) | Two-dimensional code graphic data generation method and device | |
US10789474B2 (en) | System, method and apparatus for displaying information | |
JP7261732B2 (en) | Method and apparatus for determining character color | |
CN115358911B (en) | Screen watermark generation method, device, equipment and computer readable storage medium | |
CN107169540B (en) | Information transmission system, method and device | |
US11588822B2 (en) | Right control method and apparatus for terminal device | |
CN113779422A (en) | Method and device for realizing relation chain label, electronic equipment and storage medium | |
JP5107241B2 (en) | Synchronous 1-bit interface protocol or data structure | |
CN101686568B (en) | Methods and terminals for transmitting and displaying text information | |
CN110751251B (en) | Method and device for generating and transforming two-dimensional code image matrix | |
KR100754796B1 (en) | Apparatus and method for displaying instant messages on a portable terminal | |
CN112395529B (en) | Page loading method, device, equipment and storage medium | |
CN112614049A (en) | Image processing method, image processing device, storage medium and terminal | |
CN108521394B (en) | Identification code generation method and device with storage function | |
CN106874979B (en) | Bar code processing, displaying and reading method and device | |
CN104917637A (en) | File sharing method and system | |
CN113822783B (en) | Watermark adding method and device | |
CN112580762A (en) | Dynamic two-dimensional code and identification method and identification device thereof | |
CN113570019B (en) | Data carrier, method and system for screening valid data carrier | |
US9979977B2 (en) | Methods and devices of generating and decoding image streams with respective verification data | |
CN113469683B (en) | Key storage method and device, electronic equipment and storage medium | |
CN110958076B (en) | Data transmission method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |