Information transmission method and electronic equipment

By distributing particle points in the image, utilizing the distribution of positioning points and information points of the annular pattern, and combining it with a code table for decoding, the problem of insufficient dynamic pattern coding data is solved, achieving efficient information transmission and rich application scenarios.

CN120676097AActive Publication Date: 2025-09-19HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510276715.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-09-19
Estimated Expiration
2045-03-07

AI Technical Summary

Technical Problem

In the prior art, the amount of data in dynamic pattern coding is relatively small, which limits the application scenarios of information transmission.

Method used

By distributing particle points in the image, utilizing the distribution of positioning points and information points of the annular pattern, and combining it with a code table for decoding, efficient information transmission can be achieved.

Benefits of technology

It increases the amount of data transmitted, enriches application scenarios, such as account login and video conference joining functions, and enhances the technological sense and concealment of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676097A_ABST
    Figure CN120676097A_ABST
Patent Text Reader

Abstract

The invention provides an information transmission method and electronic equipment. The method comprises the steps that the electronic equipment obtains a first image, the first image comprises particle points used for indicating first coding information of target information, and the particle points comprise positioning points used for positioning a display area and information points used for indicating the first coding information; determining a target area containing particle points in the first image; extracting particle points from the first image according to the target area; determining first coding information of the target information according to the distribution condition of the particle points; and determining target information according to the first coding information. According to the technical scheme, the amount of data transmitted between the electronic devices can be increased, so that functions such as account login, video conference joining and device adding are realized, and application scenes of information transmission are enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and more particularly, to an information transmission method and electronic device. Background Art

[0002] In some scenarios where information needs to be transmitted between electronic devices, devices can be connected and paired by scanning dynamic patterns. For example, when a first electronic device and a second electronic device need to be connected, the second electronic device needs to scan the dynamic pattern displayed on the first electronic device for connection and pairing.

[0003] However, the amount of data encoded in the above dynamic pattern is relatively small, for example, only 6-bit digits can be transmitted, which limits its application scenarios. Summary of the Invention

[0004] The embodiments of the present application provide a method and electronic device for information transmission. This technical solution can increase the amount of data transmitted between electronic devices to implement functions such as account login, video conference joining, and adding devices, enriching the application scenarios of information transmission.

[0005] In a first aspect, a method for information transmission is provided, which is applied to a first electronic device, the method comprising: acquiring a first image, the first image comprising particle points of first coded information for indicating target information, the particle points comprising positioning points for positioning a display area and information points for indicating the first coded information, wherein the information points are distributed in the display area; extracting particle points from a target area of ​​the first image; determining the first coded information of the target information based on the distribution of the particle points; and determining the target information based on the first coded information.

[0006] Exemplarily, the first image may be an image displayed by the second electronic device and acquired by the first electronic device. For example, the first image may be an image in which the second electronic device encodes target information to be transmitted.

[0007] The particle points may be distributed in a ring shape or in other shapes, which is not limited in the present embodiment.

[0008] It should be understood that the first electronic device can acquire N frames of first images and perform decoding based on the N frames of first images to obtain target information, where N is greater than or equal to 3.

[0009] Exemplarily, the target area may be an annular area including a particle point distribution.

[0010] For example, the target information may be 160 bits in size. When each 8 bits is mapped to one character, the target information may include 20 characters. The first encoding information of the target information may be encoding the 20 characters using a first encoding method. For example, after encoding, 32 characters are obtained, including the original 20 characters and 12 check characters. The 32 characters may be encoded in the display area respectively.

[0011] Based on the embodiment of the present application, the first electronic device can scan the image displayed by the second electronic device to obtain a first image, and extract particle points from the target area of ​​the first image, and can determine the first coding information of the transmitted target information based on the distribution of the particle points, and can determine the target information based on the first coding information.

[0012] In this way, the first electronic device can easily obtain the target information transmitted by the second electronic device by scanning the pattern, thereby enhancing the sense of science and the concealment of the information transmission. In addition, the second electronic device encodes the target information to obtain the first coded information, and encodes the first coded information in different display areas to avoid redundant encoding, thereby increasing the data size of the transmitted information.

[0013] In some implementations, the first electronic device determines first coded information of the target information based on the distribution of particle points, including: determining multiple display areas based on the distribution of positioning points in the particle points; determining the coded information in each display area of ​​the multiple display areas based on the distribution of information points included in each display area of ​​the multiple display areas; taking the first target display area as the display area starting from which encoding is performed, and combining the coded information of each display area in the multiple display areas in a preset order to obtain first combined information, wherein the first target display area is any one of the multiple display areas; the method also includes: in the case where decoding is not successful according to the first combined information, taking the second target display area as the display area starting from which encoding is performed, and combining the coded information of each display area in the multiple display areas in a preset order until the obtained second combined information can be successfully decoded, wherein the second target display area is different from the first target display area; or, in the case where decoding is successful according to the first combined information, determining the first combined information to be the first coded information.

[0014] Exemplarily, the number of the plurality of display areas may be 16.

[0015] For example, the distribution of the positioning points can be understood as the geometric position distribution of the positioning points. For example, four positioning points can determine a display area, and two adjacent display areas can share two positioning points.

[0016] Based on the embodiments of the present application, the first electronic device can determine multiple display areas based on the distribution of positioning points, and determine the information encoded in the display areas based on the distribution of information points in the display areas, and can cyclically attempt to decode each display area as the first encoded display area until the correct first encoded information is obtained. This technical solution enables the first electronic device to determine the first encoded information encoded in the image.

[0017] In some implementations, the display area includes a first sub-display area and a second sub-display area, and information encoded in each of the multiple display areas is determined based on the distribution of information points included in each of the multiple display areas, including: determining the information respectively encoded in the first sub-display area and the second sub-display area in each of the multiple display areas based on the distribution of information points included in each of the multiple display areas.

[0018] For example, each display area may have 26 sub-areas, with the first sub-display area including 13 sub-areas and the second sub-display area including another 13 sub-areas. Information may be encoded in each sub-display area. For example, three information dots may be superimposed on the 13 sub-areas, and the information encoded by the three information dots may be determined by their positional distribution.

[0019] For example, the first electronic device may obtain different information corresponding to different position distributions of information points by querying a code table.

[0020] Based on the embodiment of the present application, the first electronic device can determine the information encoded in the sub-display areas of each display area, so that the first electronic device can obtain all the encoded information.

[0021] In some implementations, the particle point further includes an identification point, and the identification point is used to identify a target display area where encoding starts.

[0022] It should be understood that the target display area is the first display area to start encoding. By setting the identification point, the first electronic device can determine the target display area where encoding starts, which is conducive to improving the speed of subsequent successful decoding.

[0023] In some implementations, first coding information of target information is determined based on the distribution of particle points, including: determining multiple display areas based on the distribution of positioning points in the particle points; determining the information encoded in each display area of ​​the multiple display areas based on the distribution of information points included in each display area of ​​the multiple display areas; taking the target display area as the display area starting from which encoding is performed, and combining the information encoded in each display area of ​​the multiple display areas in a preset order to obtain the first coding information, wherein the target display area is the display area determined based on the distribution of identification points.

[0024] Based on the embodiment of the present application, the first electronic device can determine the target display area where the encoding starts according to the distribution of the identification points, and use the target display area as the first encoded display area for decoding, thereby improving the speed of correct decoding.

[0025] In some implementations, the identification points are located on a circle where the positioning points are located, and each identification point is located between two adjacent positioning points.

[0026] For example, each identification point may be located in the middle of two positioning points.

[0027] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0028] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0029] In some implementations, the positioning points include internal positioning points and external positioning points, and the internal positioning points are distributed on the inner circle, the external positioning points are distributed on the outer circle, the inner circle and the outer circle have the same center, and the information points are distributed between the inner circle and the outer circle.

[0030] Based on the embodiment of the present application, the use of this ring design can improve the convenience of encoding and decoding. In addition, the ring design can enhance the aesthetics of the particle points by integrating them with the background.

[0031] In some implementations, determining the target information based on the first coded information includes: obtaining the target information when the first coded information is successfully decoded.

[0032] Based on the embodiment of the present application, although the first electronic device determines the first coded information through the distribution of the particle points, the target information can only be obtained when the first coded information is successfully decoded.

[0033] In some implementations, determining the information encoded in each of the multiple display areas based on the distribution of information points included in each of the multiple display areas includes: querying from a preset first code table based on the distribution of information points in each display area to determine the information encoded in each display area.

[0034] Based on the embodiment of the present application, according to the distribution of information points, the information encoded in each display area can be obtained by querying the code table.

[0035] In some cases, the decoding of the first coded information may fail due to the influence of ambient light or loss of particle points. At this time, the first electronic device can also obtain another multiple frames of images and re-perform the decoding operation to obtain the transmitted target information.

[0036] In some implementations, the first image includes a first sub-image and a second sub-image, and the target information includes first information and second information, wherein the first sub-image includes a first particle point for indicating second coded information of the first information, and the second sub-image includes a second particle point for indicating third coded information of the second information, wherein determining the first coded information of the target information based on the distribution of the particle points includes: determining the second coded information of the first information based on the distribution of the first particle points, and determining the third coded information of the second information based on the distribution of the second particle points.

[0037] Exemplarily, there may be L frames of images between the first sub-image and the second sub-image, for example, L is 2 frames, and the L frames of images may be blank images.

[0038] It should be understood that when encoding the first image, the second electronic device may cyclically encode the first sub-image and the second sub-image.

[0039] The target information includes the first information and the second information. It can be understood that the target information is composed of the first information and the second information. For example, if the target information is 160 bits, the first information can be the first 80 bits, and the second information can be the last 80 bits. In other examples, the size of the first information and the size of the second information can also be different, and this embodiment of the application is not limited thereto.

[0040] Based on the embodiment of the present application, since the second electronic device divides the information to be transmitted into two parts, the first information and the second information, and encodes them in different images respectively, the first electronic device needs to decode them separately when decoding to obtain the encoded information.

[0041] In this way, when encoding, it is not necessary to encode all information in a single image, thereby reducing the density of particle points in the image. In addition, when decoding, the first electronic device can more easily obtain all particle points and is less likely to lose particle points, thereby increasing the possibility of successful decoding.

[0042] In some implementations, determining the target information based on the first coded information includes: determining the first information based on the second coded information, and determining the second information based on the third coded information; and splicing the first information and the second information based on a first identifier corresponding to the first information and a second identifier corresponding to the second information to obtain the target information.

[0043] It should be understood that to distinguish the first information from the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information when encoding. For example, if the first information is the first half, the first identifier may be 01, and if the second information is the second half, the first identifier may be 10.

[0044] In this way, when the first electronic device determines the target information according to the first coded information, it can splice the first information and the second information according to the first identifier of the first information and the second identifier of the second information, thereby obtaining the complete target information.

[0045] It should be understood that the spliced ​​target information does not include the above-mentioned logo.

[0046] In some implementations, determining the second coded information of the first information based on the distribution of the first particle points includes: determining multiple first display areas based on the distribution of positioning points in the first particle points; determining the information coded in each of the multiple first display areas based on the distribution of information points included in each of the multiple first display areas; using a third target display area as the first display area starting from encoding, and combining the information coded in each of the multiple first display areas in a preset order to obtain third combined information, wherein the target first display area is any one of the multiple first display areas; the method also includes: if decoding is not successful according to the third combined information, using a fourth target display area as the first display area starting from encoding, and combining the information coded in each of the multiple first display areas in a preset order until the obtained fourth combined information can be successfully decoded, wherein the third target display area is different from the fourth target display area; or, if decoding is successful according to the third combined information, determining the third combined information as the second coded information.

[0047] For example, the number of the plurality of first display areas may be 12. The number of information points in each first display area may be five.

[0048] For example, the distribution of the positioning points can be understood as the geometric position distribution of the positioning points. For example, four positioning points can determine a display area, and two adjacent display areas can share two positioning points.

[0049] Based on the embodiments of the present application, the first electronic device can determine multiple first display areas based on the distribution of positioning points in the first particle points, and determine the information encoded in the first display area based on the distribution of information points in the first display area, and can cyclically attempt to decode each first display area as the first encoded display area until the correct second encoded information is obtained. This technical solution enables the first electronic device to determine the second encoded information encoded in the image.

[0050] Similarly, the manner in which the first electronic device determines the third coded information may refer to the technical solution for determining the second coded information by the first electronic device.

[0051] In some implementations, the first particle point and the second particle point further include an identification point, and the identification point is used to identify the target first display area where the encoding starts.

[0052] For example, each identification point may be located in the middle of two positioning points.

[0053] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0054] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0055] In some implementations, second coded information of the first information is determined based on the distribution of first particle points, including: determining multiple first display areas based on the distribution of positioning points in the first particle points; determining the information encoded in each first display area of ​​the multiple first display areas based on the distribution of information points included in each first display area of ​​the multiple first display areas; taking the target first display area as the first display area starting from which encoding is performed, and combining the information encoded in each first display area of ​​the multiple first display areas in a preset order to obtain the second coded information, wherein the target first display area is the first display area determined based on the distribution of identification points.

[0056] Based on the embodiment of the present application, the first electronic device can determine the target first display area where the encoding starts according to the distribution of the identification points, and use the target first display area as the first encoded display area for decoding, thereby improving the speed of correct decoding.

[0057] Similarly, the manner in which the first electronic device determines the third coded information may refer to the technical solution for determining the second coded information by the first electronic device.

[0058] In some implementations, determining the information encoded in each of the multiple first display areas based on the distribution of information points included in each of the multiple first display areas includes: querying from a preset second code table based on the distribution of information points included in each first display area to determine the information encoded in each first display area.

[0059] Based on the embodiment of the present application, according to the distribution of information points, the information encoded in each first display area can be obtained by querying the second code table.

[0060] In a second aspect, a method for information transmission is provided, which is applied to a second electronic device, the method comprising: encoding target information to be transmitted into first coded information; encoding the first coded information in a first image according to a preset rule, the first image comprising particle points for indicating the first coded information, the particle points comprising positioning points for positioning a display area and information points for indicating the first coded information, wherein information points are distributed in the display area, and the information points are obtained by superposition based on the first coded information.

[0061] Exemplarily, the target information may be 160 bits. When each 8 bits is mapped to one character, the target information may include 20 characters. The first encoding information of the target information may be encoding the 20 characters using a first encoding method. For example, after encoding, 32 characters are obtained, including the original 20 characters and 12 check characters. The 32 characters may be encoded in the display area respectively.

[0062] For example, each display area may encode one character, or each display area may encode multiple characters.

[0063] Based on the embodiments of the present application, the second electronic device can first encode the target information to be transmitted into first coded information, and then encode the first coded information in the displayed image according to a preset rule. The first electronic device can then scan the image to complete the decoding and obtain the transmitted information, thereby enhancing the technological sense and concealment of the transmitted information. In addition, encoding the encoded first coded information in different display areas avoids redundant encoding, thereby increasing the size of the transmitted information.

[0064] In some implementations, encoding the first coded information in the first image according to a preset rule includes: encoding each piece of information in the first coded information in a corresponding display area in the first image according to the preset rule.

[0065] Exemplarily, each display area may encode one character of the first coding information, or may encode multiple characters (such as two characters).

[0066] For example, the second electronic device may query a code table to determine the coding information corresponding to the character, and superimpose an information dot at a corresponding position in the corresponding display area according to the coding information.

[0067] Based on the embodiment of the present application, the second electronic device encodes each information in the first coded information in a corresponding display area according to a rule, thereby achieving superposition of information points.

[0068] In some implementations, encoding each piece of information in the first coded information in a display area corresponding to the first image according to a preset rule includes: determining, according to a preset first code table, a distribution of information points that need to be superimposed in the display area corresponding to each piece of information in the first coded information; and superimposing the information points in the corresponding display area according to the distribution of the information points that need to be superimposed in the display area corresponding to each piece of information code.

[0069] According to the embodiment of the present application, when encoding, the second electronic device can determine the distribution of information points required to be superimposed in the corresponding display area for encoding each information based on the first code table, and superimpose the information points in the corresponding display area. In this way, the second electronic device can encode the first coded information in the corresponding image.

[0070] In some implementations, the particle point further includes an identification point, and the identification point is used to identify a target display area where encoding starts.

[0071] For example, each identification point may be located in the middle of two positioning points.

[0072] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0073] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0074] In some implementations, the target information includes first information and second information, the first information has a first identifier, and the second information has a second identifier, wherein the first identifier is different from the second identifier.

[0075] Exemplarily, the target information includes the first information and the second information. This can be understood as the target information being composed of the first information and the second information. For example, if the target information is 160 bits, the first information can be the first 80 bits, and the second information can be the last 80 bits. In other examples, the size of the first information and the size of the second information can also be different, and this is not limited in the present embodiment.

[0076] It should be understood that to distinguish the first information from the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information when encoding. For example, if the first information is the first half, the first identifier may be 01, and if the second information is the second half, the first identifier may be 10.

[0077] In some implementations, encoding target information to be transmitted into first coded information includes: encoding the first information into second coded information, and encoding the second information into third coded information, wherein the first coded information includes the second coded information and the third coded information.

[0078] Based on the embodiment of the present application, since the second electronic device divides the target information to be transmitted into the first information and the second information, the second electronic device needs to encode them separately.

[0079] In some implementations, the first image includes a first sub-image and a second sub-image, and encoding the first coding information in the first image according to a preset rule includes: encoding the second coding information in the first sub-image according to the preset rule, and encoding the third coding information in the second sub-image according to the preset rule; the method also includes: displaying the first sub-image and the second sub-image in a manner with an interval of L frames of images, where L is a positive integer.

[0080] Based on the embodiment of the present application, the second electronic device divides the information to be transmitted into two parts, namely the first information and the second information, and encodes them in different images respectively.

[0081] In this way, when encoding, it is not necessary to encode all information in a single image, thereby reducing the density of particle points in the image. In addition, when decoding, the first electronic device can more easily obtain all particle points and is less likely to lose particle points, thereby increasing the possibility of successful decoding.

[0082] In some implementations, encoding the second coded information in the first sub-image according to a preset rule, and encoding the third coded information in the second sub-image according to a preset rule, includes:

[0083] The second coding information is encoded in the first sub-image according to the preset second coding table, and the third coding information is encoded in the second sub-image according to the second coding table.

[0084] For example, the second code table can be used to determine the distribution of information points that need to be superimposed in the corresponding display area in the first sub-image for encoding each information in the second coded information, and the information points are superimposed in the corresponding display area according to the distribution.

[0085] In this way, the second electronic device can encode the second coded information in the corresponding first sub-image and encode the third coded information in the second sub-image.

[0086] In a third aspect, an apparatus for information transmission is provided, comprising a module for implementing the method for information transmission as described in the first aspect to the second aspect and any possible implementation thereof.

[0087] In a fourth aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more programs, which, when executed by one or more processors, enable the method for information transmission as described in the first aspect to the second aspect and any possible implementation thereof to be executed.

[0088] In a fifth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for information transmission as described in the first aspect to the second aspect and any possible implementation thereof is executed.

[0089] In a sixth aspect, a readable storage medium is provided, in which instructions are stored. When the instructions are run on an electronic device, the method for information transmission as described in the first aspect to the second aspect and any possible implementation thereof is executed.

[0090] In a seventh aspect, a program product is provided, comprising a program code. When the program code is run on an electronic device, the method for information transmission as described in the first aspect to the second aspect and any possible implementation thereof is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0092] Figure 2 This is a schematic diagram of an electronic device dividing a dynamic pattern into regions according to an embodiment of the present application.

[0093] Figure 3 This is a schematic diagram of dividing a display area into multiple sub-areas provided in an embodiment of the present application.

[0094] Figure 4 This is a schematic diagram of encoding information points in a display area provided by an embodiment of the present application.

[0095] Figure 5 This is a schematic flowchart of a method for encoding information to be transmitted provided in an embodiment of the present application.

[0096] Figure 6 This is a schematic flowchart of a decoding method provided in an embodiment of the present application.

[0097] Figure 7 This is a schematic diagram of an electronic device dividing a dynamic pattern into regions according to an embodiment of the present application.

[0098] Figure 8 This is a schematic flowchart of a method for encoding information to be transmitted provided in an embodiment of the present application.

[0099] Figure 9 This is a schematic diagram of encoding information in an image provided by an embodiment of the present application.

[0100] Figure 10 It is a schematic flowchart of a decoding method provided in an embodiment of this application.

[0101] Figure 11 It is a schematic flowchart of an information transmission method provided in an embodiment of the present application.

[0102] Figure 12 It is a schematic flowchart of an information transmission method provided in an embodiment of the present application.

[0103] Figure 13 This is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0104] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0105] The information transmission method in the embodiments of the present application can be applied to smartphones, wearable devices, smart TVs, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, vehicle-mounted devices, foldable devices, Internet of Things (IOT) devices, augmented reality devices, virtual reality devices, etc.

[0106] For example, Figure 1 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a camera 193, a display screen 194, a touch sensor 180K, an ambient light sensor 180L, and the like.

[0107] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0108] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0109] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0110] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0111] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0112] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0113] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0114] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 194 may be used to display a display interface for transmitting information.

[0115] The electronic device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor. In the embodiment of the present application, the electronic device 100 can capture the display interface of another electronic device to obtain the information encoded therein to implement functions such as account login, connection establishment, video conference joining, etc.

[0116] Before introducing the technical solutions of the embodiments of the present application, some professional terms that may be involved in the present application are first introduced as follows.

[0117] Region of Interest (ROI): In image processing, the area to be processed is outlined in the image being processed using a box, circle, ellipse, irregular polygon, etc. This is called the ROI. In the embodiment of the present application, the area where the ring pattern of encoded particle points is located is the ROI.

[0118] In some scenarios where information needs to be transmitted between electronic devices, devices can be connected and paired by scanning dynamic patterns. For example, when a first electronic device and a second electronic device need to connect, the second electronic device needs to scan the dynamic pattern displayed on the first electronic device to connect and pair. However, the amount of data encoded in the dynamic pattern is relatively small, which limits its application scenarios.

[0119] In view of this, embodiments of the present application provide a method and electronic device for information transmission. In this technical solution, a second electronic device can encode the information to be transmitted in an image, and a first electronic device can scan the image displayed by the second electronic device to obtain the encoded information, thereby realizing information transmission between the two. In addition, this technical solution can increase the amount of data transmitted between electronic devices to realize functions such as account login, video conference joining, and adding devices, enriching the application scenarios of information transmission.

[0120] The following will be combined Figures 2 to 6 The present invention introduces a technical solution in which an electronic device in an embodiment of the present application encodes information to be transmitted in a dynamic pattern.

[0121] For example, Figure 2 Schematic diagram of an electronic device dividing a dynamic pattern into regions provided by an embodiment of the present application. Figure 2 As shown, the dynamic pattern may be a ring pattern, and the ring pattern may be divided into 16 display areas, namely display area 1, display area 2, display area 3 to display area 16.

[0122] It should be understood that the embodiments of this application illustrate the dynamic pattern as a ring pattern divided into 16 display areas, but this should not be a limitation of this application. In some examples, the dynamic pattern can also be other shapes, such as regular patterns such as rectangles and stars, or other irregular patterns, which are not limited in this embodiment of the application. Alternatively, the ring pattern can be divided into another number of display areas.

[0123] Each display area in the annular pattern can be positioned using a positioning structure, which may include a plurality of positioning points.

[0124] For example, the positioning structure includes four positioning points. For display area 1, the positioning structure may include two external positioning points and two internal positioning points. The external positioning points are positioning points A1 and A2, and the internal positioning points are positioning points B1 and B2.

[0125] Understandably, see Figure 2 , the external positioning points of the positioning structures of all display areas are distributed on the same outer circle, the internal positioning points of the positioning structures of all display areas are distributed on the same inner circle, and the outer circle and the inner circle have the same center.

[0126] In some examples, adjacent display areas may share two of the four anchor points. For example, adjacent display areas 1 and 2 may share one outer anchor point A2 and one inner anchor point B2. In other examples, adjacent display areas may not share any anchor points.

[0127] In other examples, the positioning structure may further include two positioning points, which may be located at opposite corners of the display area. The two positioning points may include an external positioning point and an internal positioning point. For example, for display area 1, the positioning structure may include positioning point A1 and positioning point B2, or the positioning structure may include positioning point A2 and positioning point B1.

[0128] The positioning point may also include a marking point for marking the initial display area. The initial display area can be understood as the first area of ​​the coded information. Starting from the initial display area, the coding is carried out in clockwise or counterclockwise order. For example, see Figure 2 The initial display area may be display area 1, and the identification points may include identification point C1 and identification point C2.

[0129] In some examples, the identification point C1 is located on the outer circle of the external positioning points, and is located midway between the positioning points A1 and A2, or at a predetermined ratio. Similarly, the identification point C2 is located on the inner circle of the internal positioning points, and the indication point C2 is located midway between the positioning points B1 and B2, or at a predetermined ratio. Alternatively, the identification point C1 may be located at the midpoint of the line segment between the positioning points A1 and A2, and the identification point C2 may be located at the midpoint of the line segment between the positioning points B1 and B2.

[0130] In other examples, the identification points may also only include identification point C1 or identification point C2.

[0131] In some examples, the embodiments of the present application do not limit the number of the identification points. For example, multiple identification points can be evenly distributed between identification points A1 and A2, and / or multiple identification points can be evenly distributed between identification points B1 and B2.

[0132] In other examples, the embodiment of the present application does not limit the size of the 16 display areas. In some examples, the sizes of the 16 display areas can be the same, or the sizes of the 16 display areas can be different.

[0133] In the embodiment of the present application, the second electronic device can encode the information to be transmitted in the above display area. For example, the number and distribution of information points in the display area can be used to indicate different coded information. Figure 3-Figure 4 Introduce the technical solution.

[0134] For example, Figure 3 This is a schematic diagram of a display area divided into multiple sub-areas provided by an embodiment of the present application. Figure 3 As shown, the second electronic device is taken as an example to divide each display area into 26 sub-areas.

[0135] Take the example of dividing the display area 1 into 26 sub-areas. Figure 3 The 26 sub-areas can be divided into 6 rows, wherein the first row includes sub-area 1, sub-area 2 and sub-area 3, the second row includes sub-area 4 to sub-area 7, the third row includes sub-area 8 to sub-area 11, the fourth row includes sub-area 12 to sub-area 16, the fifth row includes sub-area 17 to sub-area 21, and the sixth row includes sub-area 22 to sub-area 26.

[0136] It can be understood that the above is only an example of a division method of the 26 sub-areas. In other examples, the 26 sub-areas can also have other division methods. For example, the first row to the second row each include 3 sub-areas, and the third row to the sixth row each include 5 sub-areas. This embodiment of the present application is not limited to this.

[0137] In some embodiments, the second electronic device may divide the 26 sub-areas into two equal parts, each part including 13 sub-areas. For example, sub-areas 1 to 13 are the first part, and sub-areas 14 to 26 are the second part. Each part is used to encode information.

[0138] It should be understood that the first and second parts can also be divided in other ways. For example, the first part includes sub-areas 1 to 5, sub-area 8, sub-area 9, sub-area 12, sub-area 13, sub-area 17, sub-area 18, sub-area 22, and sub-area 23, and the remaining sub-areas belong to the second part.

[0139] It is understood that the second electronic device can encode one character on the first portion and one character on the second portion, and the character corresponds to 8 bits of information. In this way, the second electronic device can encode 2 characters in each display area, and the entire annular area can encode 32 characters.

[0140] See also Figure 4 , Figure 4 Schematic diagram of encoding information points in a display area provided by an embodiment of the present application. Figure 4 As shown, each display area is divided into a first part and a second part, and the first part and the second part encode 3 information points respectively.

[0141] The first part encodes 3 information points, which can be understood as follows: 3 particle points are distributed in the 13 sub-areas included in the first part, and the remaining sub-areas are blank areas.

[0142] It should be understood that the embodiment of the present application is described by taking the particle point as a circle filled with color as an example. In some examples, the particle point can also be other shapes, which is not limited by the embodiment of the present application.

[0143] In the embodiment of the present application, the second electronic device may determine in which sub-areas the above-mentioned information points are distributed based on a code table. For example, Table 1 shows a portion of the code table used in the embodiment of the present application.

[0144] Table 1

[0145]

[0146] Referring to Table 1, the rows in Table 1 are numbered 0-255, and the combination of 0 and 1 in each row indicates whether an information point is encoded in the above 13 sub-regions. Each information point can have a value of 1 or 0, where a value of 1 indicates that there is an information point in the sub-region, and a value of 0 indicates that there is no information point in the sub-region.

[0147] It is understandable that the second electronic device can convert the information to be transmitted (such as multiple characters, one character can be encoded 8 bits) into a decimal number, and can obtain a value between 0-255. The corresponding encoding information can be obtained by querying Table 1.

[0148] For example, if one of the characters is converted into a decimal number and the result is 37, then by querying Table 1, it can be known that information points need to be distributed in the 6th sub-area, the 11th sub-area, and the 13th sub-area respectively, while there are no information points in other positions. Based on this, information points can be added to the display area.

[0149] For example, if the 37 needs to be coded in the first part of the display area, the sub-areas where information points need to be added can be determined according to the numbers from small to large. Figure 4 , the sixth sub-area may correspond to sub-area 6, the eleventh sub-area may correspond to sub-area 11, and the thirteenth sub-area may correspond to sub-area 13. If the 37 needs to be encoded in the second part of the display area, the sixth sub-area may correspond to sub-area 19, the eleventh sub-area may correspond to sub-area 24, and the thirteenth sub-area may correspond to sub-area 26.

[0150] Alternatively, it is also possible to determine which sub-areas need to add information points according to the numbers from large to small. For example, if 37 needs to be encoded in the second part of the display area, the 6th sub-area can correspond to sub-area 21, the 11th sub-area can correspond to sub-area 16, and the 13th sub-area can correspond to sub-area 14.

[0151] Similarly, during decoding, the first electronic device may obtain the distribution of information points in all display areas, query Table 1 to obtain corresponding numbers, and convert them into corresponding characters to decode and obtain the transmitted information.

[0152] The following will be combined Figure 5 The present invention introduces a technical solution for encoding information to be transmitted by an electronic device in an embodiment of the present application.

[0153] For example, Figure 5 This is a schematic flow chart of a method for encoding information to be transmitted provided by an embodiment of the present application. Figure 5 As shown, the method 300 may be applied to a second electronic device, and the method 300 may include steps 310 to 330 .

[0154] 310. The second electronic device encodes information A to be transmitted using encoding method A to obtain encoded information B.

[0155] For example, the size of the information A to be transmitted may be 160 bits. Since every 8 bits can be mapped to one character, the information A to be transmitted may contain a total of 20 characters. The second electronic device may encode the 20 characters using encoding method A to obtain encoded information B, which may include 32 characters. The 32 characters may include the 20 characters of information A and 12 check characters.

[0156] The coding method A may be a forward error correction channel coding, for example, the coding method A may be a Reed-Solomon (RS) code, an LDPC code, or the like.

[0157] 320 : The second electronic device determines to map the encoded information B to mapping information C in the display area.

[0158] It should be understood that the second electronic device may convert the above 32 characters into decimal numbers and determine mapping information C according to Table 1 above. The mapping information C is information for indicating which sub-areas in the display area need to encode information points.

[0159] The 32 characters may be converted into decimal numbers, and the mapping information C may include which sub-areas in the corresponding display area the 32 characters need to encode information points.

[0160] For example, the first part of the display area 1 encodes the first character, and the second part of the display area 1 encodes the second character. Through the mapping information C, it can be obtained which sub-areas in the display area 1 encode information points.

[0161] It should be understood that step 320 may be an optional step. In some examples, the second electronic device may also directly determine in which sub-regions to encode the information point according to Table 1 when encoding the information point.

[0162] 330 , the second electronic device superimposes particle points on the image. The particle points include positioning points and information points. The information points are determined according to the mapping information C.

[0163] For example, see Figure 2 The positioning points may include external positioning points and internal positioning points. The second electronic device may overlay information points in the sub-areas of each display area according to the mapping information C.

[0164] Based on the embodiment of the present application, the second electronic device can successfully encode the information to be transmitted in the displayed annular pattern. Subsequently, the first electronic device can scan the image displayed by the second electronic device and decode the transmitted information to achieve information transmission between the two.

[0165] In addition, the size of information that can be transmitted in this technical solution is relatively large, thereby enriching the application scenarios of information transmission.

[0166] In the embodiment of the present application, after encoding the information A to be transmitted using encoding method A, the originally transmitted characters and the check character can be obtained. These characters need to be encoded in the above 16 display areas in sequence, with each display area encoding 2 characters. Therefore, the second electronic device needs to determine the first coded display area. For example, display area 1 is the first coded display area, and the other display areas are encoded in a counterclockwise order. Therefore, the second electronic device can add an identification point to identify the display area of ​​the starting code.

[0167] In some examples, the particle point may also include an identification point. For example, see Figure 2-Figure 3 The identification points may include identification point C1 and identification point C2, so that through the identification points C1 and C2, the electronic device may determine that the display area of ​​the starting code is display area 1.

[0168] In some examples, in order to make the particle points superimposed in the image invisible to the naked eye of the user, the second electronic device may also superimpose different colors on the particle points in the same frame of image.

[0169] Exemplarily, when the second electronic device displays the above-mentioned particle points, in the same frame image, the 16 external positioning points A1, A2, A3, ..., A16 are displayed in sequence according to the first color, the second color, and the third color, and the 16 internal positioning points B1, B2, B3, ..., B16 are displayed in sequence according to the second color, the third color, and the first color, and the information points are displayed in sequence according to the third color, the first color, and the second color, and the first color, the second color, and the third color are different.

[0170] For example, the first color is yellow, the second color is blue, and the third color is gray. In the same frame, A1 is displayed in yellow, A2 is displayed in blue, A3 is displayed in gray, ..., A13 is displayed in yellow, A14 is displayed in blue, A15 is displayed in gray, and A16 is displayed in yellow. B1 is displayed in blue, B2 is displayed in gray, B3 is displayed in yellow, ..., B13 is displayed in blue, B14 is displayed in gray, B15 is displayed in yellow, and B13 is displayed in blue. All information points are displayed in a cycle of gray, yellow, and blue.

[0171] In other examples, in the same frame image, the positioning points can be displayed in the manner described above, but the information points in display areas 1 to 16 are displayed in a cycle of the third color, the first color, and the second color, and the first color, the second color, and the third color are different.

[0172] In other examples, the marker point can be displayed together with the positioning point in the above-mentioned display manner. It can also be understood that when displaying the color, the marker point can be regarded as the positioning point.

[0173] For example, the first color is yellow, the second color is blue, and the third color is gray. In this case, the information dots in display area 1 are displayed in gray, the information dots in display area 2 are displayed in yellow, the information dots in display area 3 are displayed in blue, etc. It should be understood that the first color, the second color, and the third color can also be other colors, and the embodiments of the present application are not limited thereto.

[0174] Alternatively, in the same frame image, since each display area is divided into two parts, the information points in each part can be displayed in a single color. For example, display area 1 includes part 1 and part 2, display area 2 includes part 3 and part 4, etc., then the information points in all parts can be displayed in a cycle of the third color, the first color, and the second color. For example, part 1 is displayed in the third color, part 2 is displayed in the first color, part 3 is displayed in the second color, part 4 is displayed in the third color, etc.

[0175] In this way, the particle points in the same frame image are displayed cyclically in a preset color sequence, which can make the superimposed particle points blend well with the background, realize the hiding of the particle points, and make the superimposed particle points imperceptible to the naked eye of the user.

[0176] Combination of the above Figure 2-5 The encoding process of the second electronic device is introduced. In the embodiment of the present application, after the second electronic device encodes the information to be transmitted, the first electronic device can use a camera to shoot or scan the display interface of the second electronic device where the information is encoded, and decode the acquired image to determine the information encoded therein. Figure 6 The decoding process of the first electronic device in the embodiment of the present application is introduced.

[0177] For example, Figure 6 This is a schematic flow chart of a decoding method provided in an embodiment of the present application. Figure 6 As shown, the method 400 may include steps 410 to 450 .

[0178] 410. The first electronic device obtains image A.

[0179] For example, the first electronic device may use a camera to capture the display interface of the information to be transmitted encoded by the second electronic device to obtain image A.

[0180] For example, when a connection needs to be established, the information that needs to be transmitted may be a connection pairing code. When scanning to log in is required, the information that needs to be transmitted may be account login information, etc. When screen projection is required, the information that needs to be transmitted may be information related to screen projection authentication. When video conference is required, the information that needs to be transmitted may be a conference link. When scanning a code to place an order, the information that needs to be transmitted may be order information. When controlling smart home devices, the information that needs to be transmitted may be control-related information, such as instructions for turning on, off, and pause.

[0181] 420 : The first electronic device extracts a region of interest (ROI) from image A.

[0182] It should be understood that the ROI is the area in image A that includes the above-mentioned positioning points and information points. Alternatively, the ROI can also be understood as the area that includes the above-mentioned annular pattern. In some embodiments, the ROI can also include the above-mentioned identification points.

[0183] In the embodiment of the present application, the first electronic device can extract the region of interest ROI from the image A, which is convenient for subsequent processing of the ROI to obtain the positioning points and information points encoded therein.

[0184] Exemplarily, the first electronic device may extract the ROI from the image A by using the following steps.

[0185] S421: The first electronic device crops image A to obtain image B including a circular area;

[0186] S422: The first electronic device downsamples image B to obtain image C.

[0187] S423: The first electronic device performs blur processing on image C to obtain image D.

[0188] S424: The first electronic device performs high-pass filtering on image C through image D to obtain image E.

[0189] S425: The first electronic device performs binarization processing on the image E to obtain a binary image F.

[0190] S426: The first electronic device performs a closing operation and an opening operation on the binary image F to obtain an image G.

[0191] S427: The first electronic device extracts a ROI from the image G.

[0192] The first electronic device may perform ellipse fitting processing on the connected domain in the image G to obtain a ROI including a ring-shaped area.

[0193] It should be understood that the embodiment of the present application does not limit the fitting method. In other examples, the first electronic device can also use other methods for fitting.

[0194] In this way, the first electronic device can successfully extract the ROI containing the annular area, so that when decoding the image displayed by the second electronic device, it can be decoded according to the ROI, thereby saving the computing workload of the first electronic device.

[0195] In other examples, the first electronic device may also analyze pixels in the image G to extract the ROI.

[0196] In other examples, the first electronic device may also extract the ROI in other ways. For example, the first electronic device extracts the ROI including the annular area by clustering particle points.

[0197] 430. The first electronic device determines a particle point containing information, where the particle point includes a positioning point and an information point.

[0198] In an embodiment of the present application, the first electronic device may obtain N frames of images displayed by the second electronic device, and after extracting the ROI, determine the encoded particle points from the ROI, where N is a positive integer greater than or equal to 3.

[0199] Alternatively, after determining the ROI region in step 420 , the first electronic device may further determine the encoded particle points from the acquired N frames of images according to the ROI region.

[0200] Exemplarily, the first electronic device may use the following steps to determine the particle point containing information.

[0201] S11: The first electronic device obtains N frames of image A2.

[0202] S12: The first electronic device pre-crops the N frames of image A2 to obtain N frames of image B2.

[0203] S13: The first electronic device downsamples the N frames of image B2 according to the ROI to obtain N frames of image C2.

[0204] Since the first electronic device has obtained a ROI including a ring-shaped area by processing image A in step 420, in order to more accurately set the downsampling ratio, the first electronic device can downsample the N frames of image B2 according to the ROI.

[0205] S14: The first electronic device performs intra-frame difference on each frame of image C2 to obtain n frames of grayscale image D2.

[0206] For example, the first electronic device performs intra-frame difference on one frame of image C2 among n frames of image C2 for description.

[0207] The image C2 has three RGB channels. The first electronic device first decomposes the image C2 into three RGB channels to obtain an R channel image, a G channel image, and a B channel image, and the corresponding values ​​are recorded as R1, G1, and B1, respectively.

[0208] In an example, the first electronic device may perform intra-frame difference processing using the formula D2=|(B1-R1)+(B1-G1)| to obtain a grayscale image D2.

[0209] In another example, the first electronic device may perform intra-frame difference processing using the formula D2=|(G1-R1)+(G1-B1)| to obtain a grayscale image D2.

[0210] In this way, by performing intra-frame difference processing on each frame of image C2, the particle points included in the obtained grayscale image can be made more obvious, which is beneficial for the first electronic device to obtain the information encoded therein.

[0211] S15: The first electronic device performs multi-frame alignment processing on the N frames of grayscale image D2.

[0212] The first electronic device performs multi-frame alignment processing on N frames of grayscale images, thereby reducing the misalignment effect caused by jitter when the first electronic device acquires the image of the ROI.

[0213] For example, N=3 is used as an example for description. The first electronic device can use the intermediate image as a reference to perform alignment processing on the frame image before the intermediate image and the frame image after the intermediate image.

[0214] It should be understood that step 445 is an optional step. In some examples, step 445 may not be performed.

[0215] S16: The first electronic device performs secondary cropping on the aligned N frames of grayscale image D2 according to the ROI to obtain N frames of image E2.

[0216] S17: The first electronic device determines the positioning points and information points in the N frames of image E2.

[0217] In some cases, the first electronic device may determine the positioning points and information points of each frame of the N frames of image E2. Alternatively, the first electronic device may determine the positioning points and information points of multiple frames of image E2 and use the positioning points and information points of the multiple frames as the final positioning points and information points.

[0218] S18: The first electronic device uses the annular area A that can cover the ROI to filter the N frames of image E2 to obtain N frames of image F2.

[0219] For example, the annular area A is a mask. The first electronic device can obtain particle points corresponding to the mask area by filtering the N frames of image E2 using the mask, and the particle points outside the mask area are filtered out.

[0220] In this way, the N frames of image F2 obtained by the first electronic device contain the particle points within the annular area A, and other noise points are filtered out.

[0221] In other examples, the first electronic device may also filter the m-frame image E2 using an annular area A that covers the ROI to obtain the m-frame image F2. Where m is less than N, the m-frame image E2 may be a portion of the n-frame image E2. For example, n is 5 and m is 3. Subsequent steps may be performed based on the m-frame image F2.

[0222] S19: The first electronic device performs inter-frame difference on the N frames of image F2 to obtain N frames of grayscale image G2.

[0223] Exemplarily, the first electronic device may perform pairwise difference processing on the N frames of image F2.

[0224] For example, let's take N as 3 to illustrate the inter-frame differencing process. Assume that the three frames of image F2 are F2-1, F2-2, and F2-3. The first electronic device can perform a differential operation on F2-1 and F2-1 to obtain a grayscale image. The first electronic device can perform a differential operation on F2-1 and F2-3 to obtain a grayscale image. The first electronic device can perform a differential operation on F2-2 and F2-3 to obtain a grayscale image.

[0225] It should be understood that the differential operation can be understood as a process of subtracting the grayscale values ​​of corresponding pixels of two frames of images and taking the absolute value.

[0226] In this way, through differential processing between multiple frames, the different parts in the multiple frame images can be retained. Since the positioning points and information points are displayed in a cycle of different colors when the second electronic device is encoding, and the picture background and noise are the same, the differential processing can retain the positioning points and information points in the image as much as possible, and filter out the noise parts.

[0227] S20: The first electronic device uses a binarization threshold to filter the N frames of grayscale image G2 to obtain N frames of binary image H2.

[0228] For example, let's use the filtering of a grayscale image G2 by the first electronic device. For pixels in grayscale image G2 whose values ​​are greater than or equal to the binarization threshold, the grayscale value is set to 255. For pixels whose values ​​are less than the binarization threshold, the pixel value is set to 0. Thus, by traversing all pixels in grayscale image G2, a binary image H2 can be obtained.

[0229] S21: The first electronic device performs an OR operation on N frames of binary images H2 to obtain an image I2.

[0230] After the first electronic device performs an OR operation on the N-frame binary image H2, the image I2 contains all the particle points in the N-frame binary image, so that the image I2 can contain as many positioning points and information points as possible, thereby increasing the possibility of successful decoding by the first electronic device.

[0231] S22: The first electronic device performs interference point filtering on the image I2 to obtain an image J2.

[0232] It can be understood that since the second electronic device encodes 3 information points in the first part of each display area and 3 information points in the second part when encoding, the first part and the second part of each display area in image I2 can each retain 3 particle points.

[0233] In some examples, if the number of particle points in the first part or the second part is greater than 3, the three particle points with the largest grayscale values ​​can be retained as the information points encoded therein.

[0234] S23: The first electronic device determines the positioning point and the information point in the image J2.

[0235] In this way, the first electronic device can finally determine the encoded positioning point and information point.

[0236] For example, the first electronic device may first determine a positioning point in the image J2, and may determine each display area (such as the display area 1 to the display area 16 mentioned above) through the determined positioning point.

[0237] In some cases, there may be a phenomenon that some positioning points in the image J2 are missing. The first electronic device can also fill in the missing positioning points based on the geometric relationship of the positioning points.

[0238] In some examples, the first electronic device may also determine a marker point in the image J2.

[0239] 440. The first electronic device determines information B according to the positioning point and the information point.

[0240] For example, after determining the positioning point and the information point, the first electronic device can determine each display area according to the distribution of the positioning point, and query Table 1 according to the distribution of the information points in each display area to obtain the decimal number corresponding to the encoded information point in each display area, and convert it into the character to be transmitted.

[0241] For example, if the information to be transmitted is a plurality of characters, the first electronic device may convert the decimal number corresponding to the information point encoded in each display area into the corresponding character after querying Table 1.

[0242] For example, the information B determined by the first electronic device according to the positioning point and the information point is 32 characters.

[0243] In some examples, after determining the display area, the first electronic device may further determine the display area where encoding starts based on the position distribution of the identification points. For example, if the first electronic device has determined 16 display areas based on the distribution of the positioning points and determines that there are identification points between the positioning points of the target display area, the target display area may be determined as the display area where encoding starts.

[0244] 450. The first electronic device determines information A to be transmitted based on information B.

[0245] In some examples, information B is 32 characters. If the first electronic device cannot determine the display area where the encoding starts, the first electronic device can attempt to use each display area as the display area where the encoding starts, and decode the characters included in each display area in a preset order. If a decoding attempt is successful, the display area where the encoding starts that was determined this time is the correct display area where the encoding starts, and the obtained information A is the information A transmitted by the second electronic device. If the decoding still fails after all possible attempts, the current scan and decoding is unsuccessful, and the first electronic device can start the next scan and decoding. For example, the first electronic device can obtain another N frames of images and repeat the above steps in the hope of successfully decoding.

[0246] Alternatively, taking N=3 as an example, if the first electronic device cannot complete decoding using the first frame image, the second frame image, and the third frame image, the first electronic device can also use the second frame image, the third frame image, and the fourth frame image, and repeat the above steps in order to successfully perform decoding.

[0247] It should be understood that the first electronic device's inability to determine the display area where encoding starts can be understood as the first electronic device's inability to determine the display area where encoding starts based on the identification point. Alternatively, the first electronic device is unable to determine the identification point (e.g., the identification point is lost), or the second electronic device does not add the identification point during encoding.

[0248] In other examples, information B is 32 characters. If the first electronic device can determine the display area where the encoding starts based on the above-mentioned identification points, the first electronic device can use the display area as the first display area for encoding and decode the characters included in each display area in a preset order. If the decoding is successful, the information A obtained is the information A transmitted by the second electronic device. If the decoding fails, the current scan and decoding is unsuccessful, and the first electronic device can start the next scan and decoding. For example, the first electronic device can obtain another N frames of images and repeat the above steps in order to successfully decode.

[0249] Based on the embodiments of the present application, the first electronic device can scan the image displayed by the second electronic device and decode the acquired image to determine the information encoded therein, thereby achieving information transmission between the two. In addition, since the amount of data transmitted is increased, it can meet the different business needs of users.

[0250] In other examples, in order to improve the accuracy of the information obtained by decoding, the first electronic device may further perform fusion processing on the information obtained by multiple decodings to determine the final information A.

[0251] In some examples, the first electronic device determines the information A1 encoded therein by analyzing image J2. Image J2 is obtained by processing m frames of image E2. The first electronic device can fuse the information A1 obtained from multiple frames of image J2 to determine the final information A1.

[0252] For example, taking N as 5 and m as 3 as an example, the five frames of image E2 are E2-1, E2-2, E2-3, E2-4, and E2-5, and the m frames of image may be three consecutive frames of image among the five frames of image.

[0253] For example, the three frames of images are E2-1, E2-2, and E2-3. The first electronic device processes E2-1, E2-2, and E2-3 to obtain image J2-1, and determines information A1-1 encoded in image J2-1.

[0254] To improve the accuracy of the determined connection pairing code, the first electronic device may further process E2-2, E2-3, and E2-4 to obtain image J2-2 and determine information A1-2 encoded in image J2-2. The first electronic device may further process E2-3, E2-4, and E2-5 to obtain image J2-3 and determine information A1-3 encoded in image J2-3, and fuse information A1-1, information A1-2, and information A1-3 to obtain the final determined information A.

[0255] It should be understood that the above fusion method can be understood as one round of fusion. In other examples, the first electronic device can also obtain another multiple groups of N frames of images and fuse the decoding results of multiple rounds.

[0256] In some examples, image J2 may be obtained by processing N frames of images, for example, N=3. The first electronic device obtains information A1 based on these three frames of images. The first electronic device may also obtain another three frames of images and decode them to obtain information A1-2. The information A1-1 and information A1-2 are then combined to obtain the final information A. In other examples, the first electronic device may also combine more sets of results to determine the final information A, which is not limited in this embodiment of the present application.

[0257] In some cases, the second electronic device may also use other methods to increase the amount of data required to be transmitted. Figure 7-10 Introduce the technical solution.

[0258] For example, Figure 7 Schematic diagram of an electronic device dividing a dynamic pattern into regions provided by an embodiment of the present application. Figure 7 As shown, the dynamic pattern may be a ring pattern, and the ring pattern may be divided into 12 display areas, namely display area 1, display area 2, display area 3 to display area 12.

[0259] In some examples, the dynamic pattern can also be other shapes, such as regular patterns such as rectangles and stars, or other irregular patterns, which are not limited in the embodiments of the present application. Alternatively, the annular pattern can also be divided into other numbers of display areas.

[0260] Each display area in the annular pattern can be positioned using a positioning structure, which may include a plurality of positioning points.

[0261] For example, the positioning structure includes four positioning points. For display area 1, the positioning structure may include two external positioning points and two internal positioning points. The external positioning points are positioning points E1 and E2, and the internal positioning points are positioning points F1 and F2.

[0262] Understandably, see Figure 7 , the external positioning points of the positioning structures of all display areas are distributed on the same outer circle, the internal positioning points of the positioning structures of all display areas are distributed on the same inner circle, and the outer circle and the inner circle have the same center.

[0263] The positioning point may also include a marking point for marking the initial display area. The initial display area can be understood as the first area of ​​the coded information. Starting from the initial display area, the coding is carried out in clockwise or counterclockwise order. For example, see Figure 7 The initial display area may be display area 1, and the identification points may include identification point C3 and identification point C4.

[0264] It should be understood that the identification point C3 and the identification point C4 can refer to the relevant description of the identification point C1 and the identification point C2 in the previous text. For the sake of brevity, they are not repeated here.

[0265] In other examples, the embodiment of the present application does not limit the size of the 12 display areas. In some examples, the sizes of the 12 display areas can be the same, or the sizes of the 12 display areas can be different.

[0266] In the embodiment of the present application, the second electronic device can encode the information to be transmitted in the above display area. For example, the number and distribution of information points in the display area can be used to indicate different coded information. Figure 8-Figure 9 Introduce the technical solution.

[0267] Continue to see Figure 7 , an example is given in which the second electronic device divides each display area into 21 sub-areas.

[0268] Taking the example of dividing display area 1 into 21 sub-areas, the 21 sub-areas can be divided into 4 rows, where the first row includes sub-area 1, sub-area 2, sub-area 3, and sub-area 4; the second row includes sub-areas 5 to 9; the third row includes sub-areas 10 to 15; and the fourth row includes sub-areas 16 to 21.

[0269] It can be understood that the above is only an example of a division method of the 21 sub-areas. In other examples, the 21 sub-areas can also have other division methods. For example, the first to third rows include 5 sub-areas respectively, and the fourth row includes 6 sub-areas. This embodiment of the present application is not limited to this.

[0270] It is understandable that the second electronic device can encode one character on each display area, and the character corresponds to 14 bits of information. In this way, the second electronic device can encode 12 characters in the entire annular area.

[0271] Continue to see Figure 7 , 5 information points can be encoded in the display area 1. It can be understood that, among the 21 sub-areas included in the display area 1, 5 particle points are distributed, and the remaining sub-areas are blank areas.

[0272] For example, one particle point is superimposed in each of sub-area 6 , sub-area 8 , sub-area 12 , sub-area 14 and sub-area 19 in the display area 1 , and no particle point is superimposed in the remaining sub-areas.

[0273] It should be understood that the embodiment of the present application is described by taking the particle point as a circle filled with color as an example. In some examples, the particle point can also be other shapes, which is not limited by the embodiment of the present application.

[0274] In the embodiment of the present application, the second electronic device may determine in which sub-areas the above-mentioned information points are distributed based on a code table. For example, Table 2 shows a portion of the code table used in the embodiment of the present application.

[0275] Table 2

[0276]

[0277] Referring to Table 2, the rows in Table 2 are numbered 0-16383, and the combination of 0 and 1 in each row indicates whether an information point is encoded in the above 21 sub-regions. Each information point can have a value of 1 or 0, where a value of 1 indicates that there is an information point in the sub-region, and a value of 0 indicates that there is no information point in the sub-region.

[0278] It is understandable that the second electronic device can convert the information to be transmitted (such as multiple characters, where one character can be encoded as 14 bits) into a decimal number, and obtain a value between 0 and 16383. The corresponding encoding information can be obtained by looking up Table 2. According to Table 2, the second electronic device can encode the information to be transmitted in the display area.

[0279] Similarly, during decoding, the first electronic device may obtain the distribution of information points in all display areas, query Table 1 to obtain corresponding numbers, and convert them into corresponding characters to decode and obtain the transmitted information.

[0280] The following will be combined Figure 8 The present invention introduces a technical solution for encoding information to be transmitted by an electronic device in an embodiment of the present application.

[0281] For example, Figure 8 This is a schematic flow chart of a method for encoding information to be transmitted provided by an embodiment of the present application. Figure 8 As shown, the method 500 may be applied to a second electronic device, and the method 500 may include steps 510 to 550 .

[0282] 510 , the second electronic device divides the information A2 to be transmitted into information A2 - 1 and information A2 - 2 .

[0283] In some examples, the second electronic device may divide the information A2 into two parts, and the information A2-1 and the information A2-2 are the same size. For example, the size of information A2 is 160 bits, the size of information A2-1 is 80 bits, and the size of information A2-2 is 80 bits.

[0284] In some examples, the sizes of the information A2 - 1 and the information A2 - 2 may also be different.

[0285] In some examples, the second electronic device may also divide the information to be transmitted into more parts.

[0286] 520 , the second electronic device adds identifier 1 to the information A2 - 1 and adds identifier 2 to the information A2 - 2 .

[0287] Exemplarily, the identifier 1 may be 01, and the identifier 2 may be 10. The identifier 1 may be used to indicate that the information A2-1 is the first half of the information A2, and the identifier 2 may be used to indicate that the information A2-2 is the second half of the information A2.

[0288] It should be understood that the identifier 1 or identifier 2 may also be other values ​​or other sizes.

[0289] It should be understood that one or more bits of "0" may be further added to each of the two parts of information to which the identifier is added, so that the size thereof is an integer multiple of 14 bits.

[0290] For example, in the above example, after adding the identifier, the size of information A2-1 is 82 bits, and the size of information A2-2 is 82 bits. Since every 14 bits are mapped to a character, the second electronic device can also add two bits "00" to information A2-1 and information A2-2 to make their size 84 bits.

[0291] Alternatively, the second electronic device may further add two digits of version number information, or other information that needs to be transmitted.

[0292] It is understandable that the identifier or version number information can be located before the 80-bit information or after the 80-bit information, or the identifier or version number information can also be located at a specific position between the 80-bit information (such as in the middle), which is not limited in the embodiments of the present application.

[0293] At 530 , the second electronic device encodes the information A2 - 1 and the information A2 - 2 respectively to obtain encoded information B2 - 1 and information B2 - 2 .

[0294] It should be understood that the size of the information A2-1 and the information A2-2 is 84 bits respectively. Every 14 bits is mapped into one character, so the information A2-1 and the information A2-2 can transmit 6 characters respectively.

[0295] Illustratively, the second electronic device encodes information A2-1 using encoding mode B to obtain encoded information B2-1, and encodes information A2-2 using encoding mode B to obtain encoded information B2-2.

[0296] For example, the second electronic device encodes information A2-1 using encoding method B to obtain 12 characters, including the initial 6 information characters and 6 check characters. Similarly, the second electronic device encodes information A2-2 using encoding method B to obtain 12 characters, including the initial 6 information characters and 6 check characters.

[0297] It should be understood that the encoding method B may be the same as or different from the encoding method A mentioned above, and this embodiment of the present application is not limited thereto.

[0298] 540 , the second electronic device determines mapping information C1 for mapping the encoded information B2 - 1 to the display area of ​​image 1 , and mapping information C2 for mapping the encoded information B2 - 2 to the display area of ​​image 2 .

[0299] In the embodiment of the present application, when the second electronic device encodes information points in the display area, it needs to encode the information B2-1 and the information B2-2 in different images respectively.

[0300] For example, the second electronic device encodes information B2-1 in image 1, and after L frames of images, encodes information B2-2 in image 2. The embodiment of the present application does not limit the specific value of L, for example, L can be 2 or 3.

[0301] It should be understood that the second electronic device can convert the 12 characters of the above information B2-1 into decimal numbers and determine the mapping information C1 according to the above Table 2, which is information used to indicate which sub-areas in the display area of ​​image 1 need to encode information points.

[0302] The second electronic device can convert the 12 characters of the above information B2-2 into decimal numbers, and determine the mapping information C2 according to the above Table 2. The mapping information C2 is information for indicating which sub-areas in the display area of ​​the image 2 need to encode information points.

[0303] 550. The second electronic device superimposes particle points in the display areas of image 1 and image 2 respectively. The particle points include positioning points and information points. The information points in image 1 are determined based on mapping information C1, and the information points in image 2 are determined based on mapping information C2.

[0304] In some cases, the second electronic device may encode the encoded information B2-1 and information B2-2 obtained in step 530 in the displayed image at intervals of several frames. Figure 9 Introduce the technical solution.

[0305] For example, see Figure 9 , Figure 9 This is a schematic diagram of encoding information in an image provided by an embodiment of the present application. When the second electronic device superimposes particle points in the display area of ​​the image, it can encode information points every L frames of image, and L is 2 as an example for explanation.

[0306] For example, the second electronic device encodes the encoded information B2-1 in the display area of ​​the K-th frame image, and after an interval of 2 frames, encodes the encoded information B2-2 in the display area of ​​the K+3-th frame image, and after an interval of 2 frames, encodes the information B2-1 in the display area of ​​the K+6-th frame image, etc. By sequentially encoding in this manner, the information to be transmitted can be encoded in the displayed image.

[0307] It is understandable that the L frame image can be a blank image or a background image without superimposed information points, which is not limited in the embodiment of the present application.

[0308] In other examples, when the second electronic device superimposes the information points corresponding to the encoded information on the image, it may alternately superimpose the information points at intervals of a preset duration. For example, after encoding information B2-1 in one frame of an image, information B2-2 may be encoded in another image at intervals of a preset duration, such that adjacent images containing information B2-1 and information B2-2 are separated by a preset duration.

[0309] It should be understood that the embodiment of the present application does not limit the specific value of the preset time length.

[0310] Similarly, after acquiring the image of the second electronic device, the first electronic device may concatenate the decoded information B2 - 1 and information B2 - 2 and convert them into information A2 for transmission.

[0311] Based on the embodiments of the present application, the second electronic device can divide the information to be transmitted into two parts and cyclically encode each part in a displayed circular pattern. The first electronic device can then scan the image displayed by the second electronic device and splice the two decoded parts of information together to obtain the transmitted information, thereby achieving information transmission between the two devices.

[0312] In addition, since the second electronic device encodes a frame of image with information every few frames of images, and the first half and the second half of the transmitted information are encoded at intervals, the encoded particle points can be more dispersed in the time domain, thereby reducing the density of the encoded particle points in a single frame of image and increasing the possibility of successful decoding by the other device.

[0313] In some cases, the first electronic device can set the color of the encoded particle point to dark blue. For example, the color value RGB of the particle point is (0, 0, 127). In this way, a frame of image containing information is encoded every several frames, and the color of the particle point in the image is dark blue. This can make the color of the encoded particle point closer to the background color, thereby improving the concealment of the particle point.

[0314] The following will be combined Figure 10 The technical solution for decoding of the first electronic device is introduced.

[0315] For example, Figure 10 This is a schematic flow chart of a decoding method provided in an embodiment of the present application. Figure 10 As shown, the method 600 may include steps 610 to 660 .

[0316] 610. The first electronic device obtains image A3.

[0317] 620 : The first electronic device extracts a region of interest ROI from the image A3 .

[0318] It should be understood that the steps 610 to 620 can refer to the relevant descriptions of steps 410 to 420 in the above text, and for the sake of brevity, they are not repeated here.

[0319] 631 , the first electronic device determines particle point 1 containing information in the continuous P1 frame image, where particle point 1 includes positioning point 1 and information point 1.

[0320] 632. The first electronic device determines particle point 2 containing information in the continuous P2 frame image, where particle point 2 includes positioning point 2 and information point 2.

[0321] For example, P1 and P2 can be the same or different. For example, if the second electronic device encodes one frame of information every two frames, then P1 = P2 = 3. Thus, the first electronic device can decode any three frames of information displayed by the second electronic device to obtain the first or second half of the transmitted information A2.

[0322] It can be understood that the P2 frame image may be located after or before the P1 frame image.

[0323] In some examples, the particle point 1 may further include an identification point. The particle point 2 may further include an identification point.

[0324] It can be understood that the process of the first electronic device determining the particle point 1 containing information in the continuous P1 frame image and determining the ion point 2 containing information in the continuous P2 image can be referred to the relevant description of step 430 in the previous text. For the sake of brevity, it will not be repeated here.

[0325] 641. The first electronic device determines information B2-1 according to positioning point 1 and information point 1.

[0326] For example, the first electronic device may determine each display area according to the distribution relationship of the positioning points 1. For example, see Figure 7The first electronic device can determine 12 display areas based on the distribution relationship of positioning points 1. The first electronic device can query Table 2 based on the distribution of information points in each display area to obtain the decimal number corresponding to the information point encoded in each display area and convert it into the character to be transmitted.

[0327] For example, if the information to be transmitted is a plurality of characters, the first electronic device may convert the decimal number corresponding to the information point encoded in each display area into the corresponding character after querying Table 2.

[0328] For example, the information B2-1 determined by the first electronic device according to the positioning point 1 and the information point 1 is 12 characters. In this way, the first electronic device can obtain multiple characters encoded using the encoding method B.

[0329] In other examples, the first electronic device may also determine the display area where the encoding starts based on the position distribution of the identification points.

[0330] 642. The first electronic device determines information B2-2 according to positioning point 2 and information point 2.

[0331] It should be understood that step 642 can refer to the relevant description of step 641, and for the sake of brevity, it will not be repeated.

[0332] 651. The first electronic device decodes the information B2-1 to obtain information A2-1.

[0333] Exemplarily, the first electronic device may decode the information B2-1 using a decoding method corresponding to the encoding method B to obtain information A2-1.

[0334] It should be understood that if the first electronic device can determine the display area where the encoding starts based on the above-mentioned identification point, the first electronic device can use the display area as the first display area for encoding and decode the characters included in each display area in a preset order. If the decoding is successful, the information obtained is part of the information A2 transmitted by the second electronic device. If the decoding fails, the current scan decoding is unsuccessful, and the first electronic device can start the next scan decoding. For example, the first electronic device can obtain another P1 frame image and repeat the above steps in order to successfully decode.

[0335] If the first electronic device cannot determine the display area where the encoding starts, the first electronic device can try to use each display area as the display area where the encoding starts, and decode the characters included in each display area in a preset order. If a decoding attempt is successful, the display area where the encoding starts that was determined this time is the correct display area where the encoding starts, and the information obtained is part of the information A2 transmitted by the second electronic device. If the decoding still fails after all possible attempts, the current scan and decoding is unsuccessful, and the first electronic device can start the next scan and decoding. For example, the first electronic device can obtain another P1 frame image and repeat the above steps in order to successfully decode.

[0336] It should be understood that the first electronic device's inability to determine the display area where encoding starts can be understood as the first electronic device's inability to determine the display area where encoding starts based on the identification point. Alternatively, the first electronic device is unable to determine the identification point (e.g., the identification point is lost), or the second electronic device does not add the identification point during encoding.

[0337] 652. The first electronic device decodes the information B2-2 to obtain information A2-2.

[0338] It should be understood that if the first electronic device can determine the display area where the encoding starts based on the above-mentioned identification point, the first electronic device can use the display area as the first display area for encoding and decode the characters included in each display area in a preset order. If the decoding is successful, the information obtained is another part of the information A2 transmitted by the second electronic device. If the decoding fails, the current scan decoding is unsuccessful, and the first electronic device can start the next scan decoding. For example, the first electronic device can obtain another P2 frame image and repeat the above steps in order to successfully decode.

[0339] If the first electronic device cannot determine the display area where the encoding starts, the first electronic device can try to use each display area as the display area where the encoding starts, and decode the characters included in each display area in a preset order. If a decoding attempt is successful, the display area where the encoding starts this time is the correct display area where the encoding starts, and the information obtained is another part of the information A2 transmitted by the second electronic device. If the decoding still fails after all possible attempts, the current scan decoding is unsuccessful, and the first electronic device can start the next scan decoding. For example, the first electronic device can obtain another P2 frame image and repeat the above steps in order to successfully decode.

[0340] 660. The first electronic device combines information A2-1 and information A2-2 according to identifier 1 in information A2-1 and identifier 2 in information A2-2 to obtain information A2.

[0341] When the first electronic device successfully decodes the information, the first electronic device may determine the first half or the second half of the term information A2 according to the identification information in the decoded information.

[0342] For example, if information A2-1 has identifier 1, it can be determined that information A2-1 is the first half of information A2, and if information A2-2 has identifier 2, it can be determined that information A2-2 is the second half of information A2. The first electronic device can then splice information A2-1 and A2-2 to obtain complete information A2.

[0343] In some cases, to improve the accuracy of the information obtained by decoding, the first electronic device may also fuse the complete information obtained by multiple decodings to determine the final information A2. It should be understood that the process of information fusion can be referred to the relevant description of method 400 above, and for the sake of brevity, it will not be repeated here.

[0344] Figure 11 This is a schematic flow chart of a method for information transmission provided by an embodiment of the present application. Figure 11 As shown, the method 700 may be applied to a first electronic device, and the method 700 may include steps 710 to 740.

[0345] 710. A first electronic device acquires a first image, where the first image includes particle points of first coded information for indicating target information, and the particle points include positioning points for positioning a display area and information points for indicating the first coded information.

[0346] Among them, information points are distributed in the display area.

[0347] Exemplarily, the first image may be an image displayed by the second electronic device and acquired by the first electronic device. For example, the first image may be an image in which the second electronic device encodes target information to be transmitted.

[0348] For example, see Figure 2 The display area may be display area 1 to display area 16, and the positioning point may include an internal positioning point and an external positioning point. Figure 4 Information dots may be distributed in the display area. Different locations of the information dots correspond to different coded information. The particle dots may be distributed in a ring shape. Other shapes may also be distributed, which is not limited in the present embodiment.

[0349] In some examples, the display area can be further divided into a first sub-display area and a second sub-display area. The first sub-display area can have three information dots distributed therein, and the second sub-display area can have three information dots distributed therein. Different positions of the three information dots can correspond to different coded characters.

[0350] It should be understood that the first electronic device can acquire N frames of first images and perform decoding based on the N frames of first images to obtain target information, where N is greater than or equal to 3.

[0351] Exemplarily, the target area may be an annular area including a particle point distribution.

[0352] Exemplarily, the size of the target information may be 160 bits. When each 8 bits is mapped to one character, the target information may include 20 characters. The first encoding information of the target information may be encoding the 20 characters using a first encoding method. For example, 32 characters are obtained after encoding, including the original 20 characters and 12 check characters. The 32 characters may be encoded in the display area respectively. This encoding method can improve the fault tolerance of the encoding.

[0353] For example, see Figure 7 The display area may also be display area 1 to display area 12. Each of the display areas 1 to 12 may include 21 sub-areas, 5 information points are distributed in the 21 sub-areas, and different positions of the 5 information points may correspond to different coded characters.

[0354] 720. The first electronic device extracts particle points from the target area of ​​the first image.

[0355] For example, the first electronic device may first determine a target region in the first image and extract particle points from the target region. The target region may be understood as the ROI mentioned above. The determination process may be referred to in the relevant description of step 420 above. For the sake of brevity, it will not be repeated here.

[0356] 730. The first electronic device determines first coding information of the target information according to the distribution of the particle points.

[0357] The positioning points in the particle points can be used to locate the display area. The display area has information points, and the corresponding coded information can be queried through the position distribution of the information points.

[0358] For example, the encoded characters can be determined by the position distribution of information points in the display area. By identifying the encoded characters in all display areas, all first encoded information can be obtained, and the possibility of successful decoding can be increased by combining them in the correct order.

[0359] 740. The first electronic device determines target information according to the first coding information.

[0360] Exemplarily, the first electronic device may decode the first coded information using a decoding method corresponding to the encoding method, and if the decoding is successful, the target information may be obtained.

[0361] Based on the embodiment of the present application, the first electronic device can scan the image displayed by the second electronic device to obtain a first image, and extract particle points from the target area of ​​the first image, and can determine the first coding information of the transmitted target information based on the distribution of the particle points, and can determine the target information based on the first coding information.

[0362] In this way, the first electronic device can easily obtain the target information transmitted by the second electronic device by scanning the pattern, thereby enhancing the sense of science and the concealment of the information transmission. In addition, the second electronic device encodes the target information to obtain the first coded information, and encodes the first coded information in different display areas to avoid redundant encoding, thereby increasing the data size of the transmitted information.

[0363] In some implementations, the first electronic device determines the first coded information of the target information according to the distribution of the particle points, including:

[0364] Determine multiple display areas according to the distribution of positioning points in the particle points;

[0365] determining information encoded in each of the plurality of display areas based on a distribution of information dots included in each of the plurality of display areas;

[0366] Taking a first target display area as a display area to start encoding, and combining information encoded in each of the multiple display areas in a preset order to obtain first encoded information, wherein the first target display area is any one of the multiple display areas; the method further includes:

[0367] If decoding is unsuccessful according to the first combination information, using the second target display area as the display area to start encoding, and combining the information encoded in each of the multiple display areas in a preset order until the obtained second combination information can be successfully decoded, wherein the second target display area is different from the first target display area; or

[0368] In the case where decoding is successful according to the first combination information, the first combination information is determined to be the first coded information.

[0369] For example, see Figure 2 , the number of the multiple display areas can be 16.

[0370] For example, the distribution of the positioning points can be understood as the geometric position distribution of the positioning points. For example, four positioning points can determine a display area, and two adjacent display areas can share two positioning points.

[0371] Based on the embodiments of the present application, the first electronic device can determine multiple display areas based on the distribution of positioning points, and determine the information encoded in the display areas based on the distribution of information points in the display areas, and can cyclically attempt to decode each display area as the first encoded display area until the correct first encoded information is obtained. This technical solution enables the first electronic device to determine the first encoded information encoded in the image.

[0372] In some implementations, the display area includes a first sub-display area and a second sub-display area, and the first electronic device determines, based on a distribution of information points included in each of the multiple display areas, information encoded in each of the multiple display areas, including:

[0373] The information respectively encoded in the first sub-display area and the second sub-display area in each of the plurality of display areas is determined according to the distribution of the information points included in each of the plurality of display areas.

[0374] For example, each display area may have 26 sub-areas, with the first sub-display area including 13 sub-areas and the second sub-display area including another 13 sub-areas. Information may be encoded in each sub-display area. For example, three information dots may be superimposed on the 13 sub-areas, and the information encoded by the three information dots may be determined by their positional distribution.

[0375] For example, the first electronic device may obtain different information corresponding to different position distributions of information points by querying a code table.

[0376] Based on the embodiment of the present application, the first electronic device can determine the information encoded in the sub-display areas of each display area, so that the first electronic device can obtain all the encoded information.

[0377] In addition, since each display area is divided into two sub-display areas, and information is encoded in each sub-display area, the size of the information encoded in the display area is increased, thereby improving the size of the transmitted information.

[0378] In some implementations, the particle point further includes an identification point, and the identification point is used to identify a target display area where encoding starts.

[0379] It should be understood that the target display area is the first display area to start encoding. By setting the identification point, the first electronic device can determine the target display area where encoding starts, which is conducive to improving the speed of subsequent successful decoding.

[0380] In some implementations, the first electronic device determines first coded information of target information based on the distribution of particle points, including:

[0381] Determine multiple display areas according to the distribution of positioning points in the particle points;

[0382] determining information encoded in each of the plurality of display areas based on a distribution of information points included in each of the plurality of display areas;

[0383] The target display area is used as the display area starting from which encoding is performed, and information encoded in each display area of ​​the plurality of display areas is combined in a preset order to obtain first encoding information, wherein the target display area is the display area determined according to the distribution of the identification points.

[0384] Based on the embodiment of the present application, the first electronic device can determine the target display area where the encoding starts according to the distribution of the identification points, and use the target display area as the first encoded display area for decoding, thereby improving the speed of correct decoding.

[0385] In some implementations, the identification points are located on a circle where the positioning points are located, and each identification point is located between two adjacent positioning points.

[0386] For example, each identification point may be located between two positioning points.

[0387] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0388] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0389] In some implementations, the positioning points include internal positioning points and external positioning points, and the internal positioning points are distributed on the inner circle, the external positioning points are distributed on the outer circle, the inner circle and the outer circle have the same center, and the information points are distributed between the inner circle and the outer circle.

[0390] For example, see Figure 2 , the positioning points include internal positioning points and external positioning points.

[0391] Based on the embodiment of the present application, the use of this ring design can improve the convenience of encoding and decoding. In addition, the ring design can enhance the aesthetics of the particle points by integrating them with the background.

[0392] In some implementations, the first electronic device determines the target information according to the first coded information, including:

[0393] When the first coded information is decoded successfully, the target information is obtained.

[0394] Based on the embodiment of the present application, although the first electronic device determines the first coded information through the distribution of the particle points, the target information can only be obtained when the first coded information is successfully decoded.

[0395] In some implementations, the first electronic device determines, based on a distribution of information points included in each of the plurality of display areas, information encoded in each of the plurality of display areas, including:

[0396] A query is performed from a preset first code table according to the distribution of information points in each display area to determine the encoded information in each display area.

[0397] Exemplarily, the first code table may be the code table shown in Table 1 above.

[0398] Based on the embodiment of the present application, according to the distribution of information points, the information encoded in each display area can be obtained by querying the code table.

[0399] In some implementations, the decoding of the first encoded information may fail due to the influence of ambient light or loss of particle points. At this time, the first electronic device can also obtain another multiple frames of images and re-perform the decoding operation to obtain the transmitted target information.

[0400] In some implementations, in order to improve the accuracy of the target information obtained through decoding, the first electronic device may further perform fusion processing on the results obtained through multiple decoding operations.

[0401] In some implementations, the first image includes a first sub-image and a second sub-image, and the target information includes the first information and the second information. The first sub-image includes a first particle point for indicating second coded information of the first information, and the second sub-image includes a second particle point for indicating third coded information of the second information. Determining the first coded information of the target information based on a distribution of the particle points includes:

[0402] The second coding information of the first information is determined according to the distribution of the first particle points, and the third coding information of the second information is determined according to the distribution of the second particle points.

[0403] Exemplarily, there may be L frames of images between the first sub-image and the second sub-image, for example, L is 2 frames, and the L frames of images may be blank images.

[0404] It should be understood that when encoding the first image, the second electronic device may encode the first sub-image and the second sub-image in a cyclic manner, with L blank frames between adjacent first sub-images and second sub-images.

[0405] For example, see Figure 9 , the first sub-image may be the K-th frame image, and the second sub-image may be the K+3-th frame image.

[0406] The target information includes the first information and the second information. It can be understood that the target information is composed of the first information and the second information. For example, if the target information is 160 bits, the first information can be the first 80 bits, and the second information can be the last 80 bits. In other examples, the size of the first information and the size of the second information can also be different, and this embodiment of the application is not limited thereto.

[0407] Based on the embodiment of the present application, since the second electronic device divides the information to be transmitted into two parts, the first information and the second information, and encodes them in different images respectively, the first electronic device needs to decode them separately when decoding to obtain the encoded information.

[0408] In this way, when encoding, it is not necessary to encode all information in a single image, thereby reducing the density of particle points in the image. In addition, when decoding, the first electronic device can more easily obtain all particle points and is less likely to lose particle points, thereby increasing the possibility of successful decoding.

[0409] In some implementations, the first electronic device determines the target information according to the first coded information, including:

[0410] determining the first information based on the second coded information, and determining the second information based on the third coded information;

[0411] The first information and the second information are spliced ​​together according to a first identifier corresponding to the first information and a second identifier corresponding to the second information to obtain target information.

[0412] It should be understood that to distinguish the first information from the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information when encoding. For example, if the first information is the first half, the first identifier may be 01, and if the second information is the second half, the first identifier may be 10.

[0413] In this way, when the first electronic device determines the target information according to the first coded information, it can splice the first information and the second information according to the first identifier of the first information and the second identifier of the second information, thereby obtaining the complete target information.

[0414] It should be understood that the spliced ​​target information does not include the above-mentioned logo.

[0415] In some implementations, the first electronic device determines the second coded information of the first information based on the distribution of the first particle points, including:

[0416] Determine a plurality of first display areas according to the distribution of the positioning points in the first particle points;

[0417] determining information encoded in each of the plurality of first display areas according to a distribution of information points included in each of the plurality of first display areas;

[0418] The method further comprises: taking the third target display area as the first display area to start encoding, and combining information encoded in each of the plurality of first display areas in a preset order to obtain second encoded information, wherein the third target display area is any one of the plurality of first display areas; and

[0419] If decoding is unsuccessful according to the third combination information, using the fourth target display area as the first display area to start encoding, and combining the information encoded in each of the plurality of first display areas in a predetermined order until the obtained fourth combination information can be successfully decoded, wherein the third target display area is different from the fourth target display area; or

[0420] In the case where decoding is successful according to the third combined information, the third combined information is determined to be the second coded information.

[0421] For example, the number of the plurality of first display areas may be 12. The number of information points in each first display area may be five.

[0422] For example, the distribution of the positioning points can be understood as the geometric position distribution of the positioning points. For example, four positioning points can determine a display area, and two adjacent display areas can share two positioning points.

[0423] Based on the embodiments of the present application, the first electronic device can determine multiple first display areas based on the distribution of positioning points in the first particle points, and determine the information encoded in the first display area based on the distribution of information points in the first display area, and can cyclically attempt to decode each first display area as the first encoded display area until the correct second encoded information is obtained. This technical solution enables the first electronic device to determine the second encoded information encoded in the image.

[0424] Similarly, the manner in which the first electronic device determines the third coded information may refer to the technical solution for determining the second coded information by the first electronic device.

[0425] For example, the first electronic device determines the third coded information of the second information according to the distribution of the second particle points, including:

[0426] Determine a plurality of second display areas according to the distribution of the positioning points in the second particle points;

[0427] determining information encoded in each second display area of ​​the plurality of second display areas according to a distribution of information points included in each second display area of ​​the plurality of second display areas;

[0428] Taking the fifth target display area as the second display area to start encoding, and combining information encoded in each of the plurality of second display areas in a preset order to obtain fifth combined information, wherein the fifth target display area is any second display area in the plurality of second display areas; the method further includes:

[0429] In the event that decoding is unsuccessful according to the fifth combination information, the sixth target display area is used as the second display area starting encoding, and information encoded in each of the multiple second display areas is combined in a preset order until the obtained sixth combination information can be successfully decoded, wherein the fifth target display area is different from the sixth target display area; or, in the event that decoding is successful according to the fifth combination information, the fifth combination information is determined to be the third encoded information.

[0430] Based on the embodiments of the present application, the first electronic device can determine multiple second display areas based on the distribution of positioning points in the second particle points, and determine the information encoded in the second display areas based on the distribution of information points in the second display areas. It can also cyclically attempt to decode each second display area as the first encoded display area until the correct third encoded information is obtained. This technical solution enables the first electronic device to determine the third encoded information encoded in the image.

[0431] In some implementations, the first particle point and the second particle point further include an identification point, and the identification point is used to identify the target first display area where the encoding starts.

[0432] For example, each identification point may be located in the middle of two positioning points.

[0433] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0434] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0435] In some implementations, the first electronic device determines the second coded information of the first information based on the distribution of the first particle points, including:

[0436] determining a plurality of first display areas according to the distribution of the positioning points in the first particle points;

[0437] determining information encoded in each of the plurality of first display areas according to a distribution of information points included in each of the plurality of first display areas;

[0438] The target first display area is used as the first display area starting from which encoding is performed, and the information encoded in each first display area of ​​the plurality of first display areas is combined in a preset order to obtain second encoding information, wherein the target first display area is the first display area determined according to the distribution of the identification points.

[0439] Based on the embodiment of the present application, the first electronic device can determine the target first display area where the encoding starts according to the distribution of the identification points, and use the target first display area as the first encoded display area for decoding, thereby improving the speed of correct decoding.

[0440] Similarly, the manner in which the first electronic device determines the third coded information may refer to the technical solution for determining the second coded information by the first electronic device.

[0441] In some implementations, the first electronic device determines, based on a distribution of information points included in each of the plurality of first display areas, information encoded in each of the plurality of first display areas, including:

[0442] A query is performed from a preset second code table according to the distribution of the information points included in each first display area to determine the information encoded in each first display area.

[0443] For example, the second code table may be the code table shown in Table 2. The first electronic device compares the acquired distribution of information points with the second code table to determine the information encoded in the corresponding display area.

[0444] Based on the embodiment of the present application, according to the distribution of information points, the information encoded in each first display area can be obtained by querying the second code table.

[0445] Figure 12 This is a schematic flow chart of a method for information transmission provided by an embodiment of the present application. Figure 12 As shown, the method 800 may be applied to a second electronic device, and the method may include steps 810 to 820.

[0446] 810. The second electronic device encodes target information to be transmitted into first coded information.

[0447] Exemplarily, the target information may be 160 bits. When each 8 bits is mapped to one character, the target information may include 20 characters. The first encoding information of the target information may be encoding the 20 characters using a first encoding method. For example, after encoding, 32 characters are obtained, including the original 20 characters and 12 check characters. The 32 characters may be encoded in the display area respectively.

[0448] The first encoding method may be the RS encoding mentioned above. RS encoding can improve the error tolerance of the encoded information.

[0449] For example, each display area may encode one character, or each display area may encode multiple characters.

[0450] See also Figure 4 , each display area can encode 2 characters. See 7, each display area can encode one character.

[0451] 820. The second electronic device encodes the first coded information in the first image according to a preset rule, where the first image includes particle points for indicating the first coded information, and the particle points include positioning points for positioning the display area and information points for indicating the first coded information, wherein the display area is distributed with information points, and the information points are obtained by superimposing the first coded information.

[0452] For example, the first encoded information is 32 characters obtained after encoding. The second electronic device can determine the information point corresponding to each character according to Table 1 above and overlay it in the corresponding display area. The second electronic device can overlay the corresponding information points starting from the first display area in a counterclockwise order until the overlay is completed.

[0453] Based on the embodiments of the present application, the second electronic device can first encode the target information to be transmitted into first coded information, and then encode the first coded information in the displayed image according to a preset rule. The first electronic device can then scan the image to complete the decoding and obtain the transmitted information, thereby enhancing the technological sense and concealment of the transmitted information. In addition, encoding the encoded first coded information in different display areas avoids redundant encoding, thereby increasing the size of the transmitted information.

[0454] In some implementations, the second electronic device encodes the first coding information in the first image according to a preset rule, including:

[0455] Each piece of information in the first coded information is encoded in a corresponding display area in the first image according to a preset rule.

[0456] Exemplarily, each display area may encode one character of the first coding information, or may encode multiple characters (such as two characters).

[0457] For example, the second electronic device may query a code table to determine the coding information corresponding to the character, and superimpose an information dot at a corresponding position in the corresponding display area according to the coding information.

[0458] Based on the embodiment of the present application, the second electronic device encodes each information in the first coded information in a corresponding display area according to a rule, thereby achieving superposition of information points.

[0459] In some implementations, the second electronic device encodes each piece of the first coded information in a corresponding display area of ​​the first image according to a preset rule, including:

[0460] Determine, according to a preset first code table, the distribution of information points that need to be superimposed in the corresponding display area for each information code in the first coded information;

[0461] The information points are superimposed in the corresponding display area according to the distribution of the information points that need to be superimposed in the display area corresponding to each information code.

[0462] Exemplarily, the first code table may be the code table shown in Table 1 above.

[0463] Exemplarily, the first coding information may be the 32 characters mentioned above, and the second electronic device may determine, based on the code table 1 , the distribution of information points that need to be superimposed and to encode the 32 characters in corresponding display areas.

[0464] According to the embodiment of the present application, when encoding, the second electronic device can determine the distribution of information points required to be superimposed in the corresponding display area for encoding each information based on the first code table, and superimpose the information points in the corresponding display area. In this way, the second electronic device can encode the first coded information in the corresponding image.

[0465] In some implementations, the particle point further includes an identification point, and the identification point is used to identify a target display area where encoding starts.

[0466] For example, each identification point may be located in the middle of two positioning points.

[0467] For example, the identification point may include an inner circle identification point and an outer circle identification point, wherein the inner circle identification point is located on the inner circle where the inner positioning point is located, and the outer circle identification point is located on the outer circle where the outer positioning point is located.

[0468] Based on the embodiment of the present application, setting the identification point on the circle where the positioning point is located can enable the first electronic device to simply and quickly determine the location of the identification point.

[0469] In some implementations, the target information includes first information and second information, the first information has a first identifier, and the second information has a second identifier, wherein the first identifier is different from the second identifier.

[0470] Exemplarily, the target information includes the first information and the second information. This can be understood as the target information being composed of the first information and the second information. For example, if the target information is 160 bits, the first information can be the first 80 bits, and the second information can be the last 80 bits. In other examples, the size of the first information and the size of the second information can also be different, and this is not limited in the present embodiment.

[0471] It should be understood that to distinguish the first information from the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information when encoding. For example, if the first information is the first half, the first identifier may be 01, and if the second information is the second half, the first identifier may be 10.

[0472] In some implementations, the second electronic device encodes the target information to be transmitted into first encoded information, including:

[0473] The first information is encoded into second encoded information, and the second information is encoded into third encoded information, wherein the first encoded information includes the second encoded information and the third encoded information.

[0474] Based on the embodiment of the present application, since the second electronic device divides the target information to be transmitted into the first information and the second information, the second electronic device needs to encode them separately.

[0475] In some implementations, the first image includes a first sub-image and a second sub-image, and the second electronic device encodes the first coding information in the first image according to a preset rule, including:

[0476] Encoding the second coded information in the first sub-image according to the preset rule, and encoding the third coded information in the second sub-image according to the preset rule; the method further includes:

[0477] The first sub-image and the second sub-image are displayed in a manner of L frames of images apart, where L is a positive integer.

[0478] Based on the embodiment of the present application, the second electronic device divides the information to be transmitted into two parts, namely the first information and the second information, and encodes them in different images respectively.

[0479] In this way, when encoding, it is not necessary to encode all information in a single image, thereby reducing the density of particle points in the image. In addition, when decoding, the first electronic device can more easily obtain all particle points and is less likely to lose particle points, thereby increasing the possibility of successful decoding.

[0480] In some implementations, the second electronic device encodes the second coded information in the first sub-image according to a preset rule, and encodes the third coded information in the second sub-image according to a preset rule, including:

[0481] The second coding information is encoded in the first sub-image according to the preset second coding table, and the third coding information is encoded in the second sub-image according to the second coding table.

[0482] For example, the second code table can be used to determine the distribution of information points that need to be superimposed in the corresponding display area in the first sub-image for encoding each information in the second coded information, and the information points are superimposed in the corresponding display area according to the distribution.

[0483] Exemplarily, the second code table may be the code table shown in Table 2 above.

[0484] In this way, the second electronic device can encode the second coded information in the corresponding first sub-image and encode the third coded information in the second sub-image.

[0485] For example, Figure 13 This is a schematic block diagram of an electronic device provided in an embodiment of the present application. Figure 13As shown, the electronic device 1000 includes one or more processors 1010; one or more memories 1020; the one or more memories 1020 store one or more instructions, and when the instructions are executed by one or more processors 1010, the method described in any possible implementation method described above is executed.

[0486] Illustratively, the electronic device 1000 may be the first electronic device, the second electronic device, the electronic device 100, etc. mentioned above.

[0487] The electronic device 1000 can be used to execute the above-mentioned methods 300, 400, 500, 600, 700, 800, etc.

[0488] An embodiment of the present application also provides an electronic device, including a processor, a memory, and a communication interface, wherein the communication interface is used to receive signals, the memory is used to store signals, and the communication reception is also used to transmit signals to the processor, and the processor processes the signals so that the method of information transmission described in any possible implementation method described above is executed.

[0489] An embodiment of the present application also provides a device for managing hang-up tasks, including a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals so that the method for information transmission described in any possible implementation method described above is executed.

[0490] The device may be a chip. For example, the chip may be a chip system or an independent chip.

[0491] An embodiment of the present application also provides a readable storage medium (also referred to as a computer-readable storage medium), which stores instructions. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the information transmission method in the above-mentioned embodiment.

[0492] An embodiment of the present application also provides a program product (also referred to as a computer program product). When the program product is run on an electronic device, the electronic device executes the above-mentioned related steps to implement the information transmission method in the above-mentioned embodiment.

[0493] An embodiment of the present application also provides a device, including a module for implementing the method for information transmission as described in any of the above embodiments.

[0494] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store instructions, and when the device is running, the processor can execute the instructions stored in the memory to enable the device to execute the information transmission method in the above-mentioned method embodiments.

[0495] Among them, the equipment, readable storage medium, program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0496] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0497] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0498] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units described is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not implementing certain features.

[0499] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0500] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0501] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0502] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for information transmission, characterized in that: The method is applied to a first electronic device, and includes: Acquire a first image, the first image including particle points of first coded information for indicating target information, the particle points including positioning points for positioning a display area and information points for indicating the first coded information, wherein the information points are distributed in the display area; extracting the particle points from the target area of ​​the first image; Determining first coding information of the target information according to the distribution of the particle points; The target information is determined according to the first coding information.

2. The method according to claim 1, characterized in that The particle points also include identification points, and the identification points are used to identify the target display area where encoding starts.

3. The method according to claim 2, characterized in that The determining of the first coding information of the target information according to the distribution of the particle points includes: Determine a plurality of display areas according to the distribution of the positioning points in the particle points; determining information encoded in each of the plurality of display areas according to a distribution of information points included in each of the plurality of display areas; The target display area is used as the display area starting from which encoding is performed, and the information encoded in each of the multiple display areas is combined in a preset order to obtain the first encoding information, wherein the target display area is a display area determined according to the distribution of the identification points.

4. The method according to claim 2 or 3, characterized in that The identification points are located on the circle where the positioning points are located, and each of the identification points is located between two adjacent positioning points.

5. The method according to claim 4, characterized in that The positioning points include internal positioning points and external positioning points, and the internal positioning points are distributed on the inner circle, the external positioning points are distributed on the outer circle, the inner circle and the outer circle have the same center, and the information points are distributed between the inner circle and the outer circle.

6. The method according to claim 1, characterized in that The determining of the first coding information of the target information according to the distribution of the particle points includes: Determine a plurality of display areas according to the distribution of the positioning points in the particle points; determining information encoded in each of the plurality of display areas according to a distribution of information points included in each of the plurality of display areas; Taking a first target display area as a display area to start encoding, and combining information encoded in each display area of ​​the multiple display areas in a preset order to obtain the first combined information, wherein the first target display area is any one of the multiple display areas; The method further comprises: If decoding is unsuccessful according to the first combined information, using a second target display area as the display area to start encoding, and combining information encoded in each of the multiple display areas in a preset order until the obtained second combined information can be successfully decoded, wherein the second target display area is different from the first target display area; or In a case where decoding is successful according to the first combined information, the first combined information is determined to be the first coded information.

7. The method according to claim 6, characterized in that The display area includes a first sub-display area and a second sub-display area; Determining the information encoded in each of the plurality of display areas according to the distribution of the information points included in each of the plurality of display areas comprises: The information respectively encoded in the first sub-display area and the second sub-display area in each of the multiple display areas is determined according to the distribution of information points included in each of the multiple display areas.

8. The method according to any one of claims 2 to 7, characterized in that The determining the target information according to the first coded information includes: When the first coded information is decoded successfully, the target information is obtained.

9. The method according to claim 3 or 6, characterized in that Determining the information encoded in each of the plurality of display areas according to the distribution of the information points included in each of the plurality of display areas comprises: A query is performed from a preset first code table according to the distribution of the information points in each display area to determine the encoded information in each display area.

10. The method according to claim 1, characterized in that The first image includes a first sub-image and a second sub-image, and the target information includes first information and second information, wherein the first sub-image includes a first particle point for indicating second coded information of the first information, and the second sub-image includes a second particle point for indicating third coded information of the second information. Wherein, determining the first coding information of the target information according to the distribution of the particle points includes: The second coding information of the first information is determined according to the distribution of the first particle points, and the third coding information of the second information is determined according to the distribution of the second particle points.

11. The method according to claim 10, characterized in that The first particle point and the second particle point further include an identification point, and the identification point is used to identify a target first display area where encoding starts.

12. The method according to claim 11, characterized in that The determining of the second coded information of the first information according to the distribution of the first particle points includes: determining a plurality of first display areas according to the distribution of the positioning points in the first particle points; determining information encoded in each of the plurality of first display areas according to a distribution of information points included in each of the plurality of first display areas; The target first display area is used as the first display area starting from which encoding is performed, and the information encoded in each of the multiple first display areas is combined in a preset order to obtain the second encoding information, wherein the target first display area is the first display area determined according to the distribution of the identification points.

13. The method according to claim 10, characterized in that The determining of the second coded information of the first information according to the distribution of the first particle points includes: determining a plurality of first display areas according to the distribution of the positioning points in the first particle points; determining information encoded in each of the plurality of first display areas according to a distribution of information points included in each of the plurality of first display areas; Taking the third target display area as the first display area from which encoding starts, and combining information encoded in each of the plurality of first display areas in a preset order to obtain the third combined information, wherein the third target display area is any one of the plurality of first display areas; The method further comprises: If decoding is unsuccessful according to the third combination information, using the fourth target display area as the first display area to start encoding, and combining the information encoded in each of the plurality of first display areas in a preset order until the obtained fourth combination information can be successfully decoded, wherein the third target display area is different from the fourth target display area; or In a case where decoding is successful according to the third combined information, the third combined information is determined to be the second coded information.

14. The method according to claim 12 or 13, characterized in that The step of determining the information encoded in each of the plurality of first display areas according to the distribution of the information points included in each of the plurality of first display areas comprises: A query is performed from a preset second code table according to the distribution of the information points included in each first display area to determine the information encoded in each first display area.

15. The method according to any one of claims 10 to 14, characterized in that The determining the target information according to the first coded information includes: Determine the first information according to the second coded information, and determine the second information according to the third coded information; The target information is obtained by concatenating the first information and the second information according to a first identifier corresponding to the first information and a second identifier corresponding to the second information.

16. A method for information transmission, characterized in that: The method is applied to a second electronic device, and includes: Encoding target information to be transmitted into first coded information; The first coding information is encoded in a first image according to a preset rule, the first image includes particle points for indicating the first coding information, the particle points include positioning points for positioning a display area and information points for indicating the first coding information, wherein the information points are distributed in the display area, and the information points are obtained by superimposing the first coding information.

17. The method according to claim 16, characterized in that The step of encoding the first coding information in the first image according to a preset rule includes: Each piece of information in the first coded information is encoded in a corresponding display area in the first image according to the preset rule.

18. The method according to claim 17, characterized in that Encoding each piece of the first coded information in a corresponding display area in the first image according to the preset rule includes: Determine, according to a preset first code table, the distribution of information points that need to be superimposed in the corresponding display area for each information code in the first coded information; The information points are superimposed in the corresponding display area according to the distribution of the information points that need to be superimposed in the display area corresponding to each information code.

19. The method according to any one of claims 16 to 18, characterized in that The particle points also include identification points, and the identification points are used to identify the target display area where encoding starts.

20. The method according to claim 16, wherein The target information includes first information and second information, the first information has a first identifier, and the second information has a second identifier, wherein the first identifier is different from the second identifier.

21. The method according to claim 20, characterized in that The step of encoding the target information to be transmitted into first coded information includes: The first information is encoded into second encoded information, and the second information is encoded into third encoded information, wherein the first encoded information includes the second encoded information and the third encoded information.

22. The method according to claim 21, characterized in that The first image includes a first sub-image and a second sub-image, and encoding the first coding information in the first image according to a preset rule includes: Encoding the second encoding information in the first sub-image according to the preset rule, and encoding the third encoding information in the second sub-image according to the preset rule; The method further comprises: The first sub-image and the second sub-image are displayed at intervals of L frames, where L is a positive integer.

23. The method according to claim 22, characterized in that The step of encoding the second coding information in the first sub-image according to the preset rule, and encoding the third coding information in the second sub-image according to the preset rule, includes: The second coding information is encoded in the first sub-image according to a preset second code table, and the third coding information is encoded in the second sub-image according to the second code table.

24. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by one or more processors, the method according to any one of claims 1 to 23 is executed.

25. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method according to any one of claims 1 to 23 is executed.

26. A readable storage medium, characterized in that The readable storage medium stores instructions, and when the instructions are executed on an electronic device, the method according to any one of claims 1 to 23 is executed.

27. A program product, characterized in that The program product comprises a program code, and when the program code is run on an electronic device, the method according to any one of claims 1 to 23 is executed.

Citation Information

Patent Citations

  • Method and device for acquiring image identification code displayed by host equipment

    CN104751093A

  • Graph code processing method and device, electronic equipment and readable storage medium

    CN112163654A

  • Position acquisition method and device, electronic equipment and computer readable storage medium

    CN114510953A

  • Information transmission method and electronic equipment

    CN119520502A

  • Two-dimensional code, reading and producing method and recording medium storing related software

    US6279830B1