Method and electronic device for information transmission
Encoding is performed by distributing particle points in the image, and the target information is determined by the positioning points and information points in the ring pattern. This solves the problem of insufficient data volume in dynamic pattern encoding, and realizes efficient information transmission and rich application scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-03-07
- Publication Date
- 2026-05-08
AI Technical Summary
In existing technologies, dynamic pattern encoding involves a relatively small amount of data, which limits the application scenarios for information transmission.
Encoding is performed by distributing particle points in the image. The target information is determined by the positioning points and information points in the circular pattern. The decoding success rate is improved by combining the marker points. The segmented information is encoded into multiple frames of images to reduce the density.
It increases the amount of data transmitted and enhances the technological feel of information, enriches application scenarios, and strengthens the concealment of information transmission and the possibility of successful decoding.
Smart Images

Figure CN120676097B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more specifically, to a method and electronic device for information transmission. Background Technology
[0002] In scenarios where information needs to be transmitted between electronic devices, connection and pairing can be achieved 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 establish a connection.
[0003] However, the amount of data encoded in the above dynamic patterns is relatively small, such as only being able to transmit 6 digits, which limits its application scenarios. Summary of the Invention
[0004] This application provides a method and an electronic device for information transmission. This technical solution can increase the amount of data transmitted between electronic devices to enable functions such as account login, video conferencing, and adding devices, thus enriching the application scenarios for information transmission.
[0005] In a first aspect, a method for transmitting information is provided, applied to a first electronic device. The method includes: acquiring a first image, the first image including particle points of first encoded information for indicating target information, the particle points including positioning points for locating a display area and information points for indicating the first encoded 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 encoded information of the target information based on the distribution of the particle points; and determining the target information based on the first encoded information.
[0006] For example, the first image may be an image displayed by a second electronic device and acquired by the first electronic device. For instance, the first image may be an image encoded by the second electronic device with target information to be transmitted.
[0007] The particle points can be distributed in a ring shape, or in other shapes; this application does not limit the specific distribution.
[0008] It should be understood that the first electronic device can acquire N frames of the first image and decode them based on the N frames of the first image to obtain the target information, where N is greater than or equal to 3.
[0009] For example, the target region may be a ring-shaped region including a distribution of particle points.
[0010] For example, the size of the target information can be 160 bits. With each 8 bits mapped to one character, the target information can include 20 characters. The first encoding information of the target information can be encoding these 20 characters using a first encoding method, for example, resulting in 32 characters, including the original 20 characters and 12 check characters, which can be encoded separately in the display area.
[0011] Based on the embodiments of this application, the first electronic device can scan the image displayed by the second electronic device to obtain a first image, extract particle points from the target area of the first image, and determine the first encoding information of the transmitted target information based on the distribution of the particle points, and determine the target information based on the first encoding information.
[0012] In this way, the first electronic device can conveniently obtain the target information transmitted by the second electronic device by scanning the pattern, thereby enhancing the technological sophistication and concealment of the information transmission. Furthermore, the second electronic device encodes the target information to obtain first encoded information, and then encodes this first encoded 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 the first encoded information of the target information based on the distribution of particle points, including: determining multiple display areas based on the distribution of positioning points among the particle points; determining the encoded 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; using the first target display area as the starting display area for encoding, and combining the encoded information of each display area of 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 further includes: if decoding based on the first combined information is unsuccessful, using the second target display area as the starting display area for encoding, and combining the encoded information of each display area 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, if decoding based on the first combined information is successful, determining the first combined information as the first encoded information.
[0014] For example, the number of the multiple display areas can be 16.
[0015] For example, the distribution of positioning points can be understood as the geometrical distribution of positioning points. For instance, four positioning points can define a display area, and two adjacent display areas can share two positioning points.
[0016] Based on the embodiments of this application, the first electronic device can determine multiple display areas according to the distribution of positioning points, and determine the encoded information in the display areas according to the distribution of information points in the display areas. It can also iteratively attempt to decode each display area as the first display area for encoding until the correct first encoded information is obtained. This technical solution enables the first electronic device to determine the first encoded information in an image.
[0017] In some implementations, the display area includes a first sub-display area and a second sub-display area. The information encoded in each display area of the multiple display areas is determined according to the distribution of information points included in each display area of the multiple display areas, including: determining the information encoded in the first sub-display area and the second sub-display area of each display area of the multiple display areas respectively according to the distribution of information points included in each display area of the multiple display areas.
[0018] For example, each display area can have 26 sub-regions, where the first sub-display area includes 13 sub-regions, the second sub-display area includes another 13 sub-regions, and information can be encoded in each sub-display area. For example, three information points can be superimposed in the 13 sub-regions, and the encoded information can be determined by the positional distribution of these three information points.
[0019] For example, the first electronic device can obtain different information corresponding to the different locations of information points by querying a code table.
[0020] Based on the embodiments of this application, the first electronic device can determine the information encoded in each sub-display area of each display area, thereby enabling the first electronic device to obtain all the encoded information.
[0021] In some implementations, particle points also include marker points, which are used to identify the target display area where the encoding begins.
[0022] It should be understood that the target display area is the first display area to begin encoding. By setting this marker point, the first electronic device can determine the target display area where encoding begins, which helps to improve the speed of subsequent successful decoding.
[0023] In some implementations, determining the first encoded information of the target information based on the distribution of particle points includes: determining multiple display areas based on the distribution of positioning points in the particle points; determining the encoded 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 target display area as the display area for encoding as the starting point, and combining the encoded information in each display area of the multiple display areas in a preset order to obtain the first encoded information, wherein the target display area is the display area determined based on the distribution of marker points.
[0024] Based on the embodiments of this application, the first electronic device can determine the target display area for encoding start according to the distribution of the marker points, and use the target display area as the first display area for encoding for decoding, thereby improving the speed of correct decoding.
[0025] In some implementations, the markers are located on the circle containing the positioning points, and each marker is located between two adjacent positioning points.
[0026] For example, each marker point can be located between two positioning points.
[0027] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0028] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0029] In some implementations, the positioning points include internal positioning points and external positioning points. The internal positioning points are distributed on the inner circle, and the external positioning points are distributed on the outer circle. The inner and outer circles have the same center, and the information points are distributed between the inner and outer circles.
[0030] Based on the embodiments of this application, this ring-shaped design can improve the convenience of encoding and decoding. Furthermore, blending the particle dots with the background in a ring shape helps to enhance the aesthetics.
[0031] In some implementations, the target information is determined based on the first encoded information, including obtaining the target information if the first encoded information is successfully decoded.
[0032] Based on the embodiments of this application, although the first electronic device determines the first encoded information by the distribution of particle points, the target information can only be obtained when the first encoded information is successfully decoded.
[0033] In some implementations, the information encoded in each of the multiple display areas is determined based on the distribution of information points in each display area. This includes: querying 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 embodiments of this application, the encoded information in each display area can be obtained by querying the code table according to the distribution of information points.
[0035] In some cases, the decoding of the first encoded information may fail due to the influence of ambient light or the loss of particle points. In this case, the first electronic device can acquire multiple other frames of images and perform the decoding operation again in order 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. The first sub-image includes first particle points for indicating second encoded information of the first information, and the second sub-image includes second particle points for indicating third encoded information of the second information. Determining the first encoded information of the target information based on the distribution of the particle points includes: determining the second encoded information of the first information based on the distribution of the first particle points, and determining the third encoded information of the second information based on the distribution of the second particle points.
[0037] For example, there may be an interval of L frames between the first sub-image and the second sub-image, for example, L is 2 frames, and the L frames may be blank images.
[0038] It should be understood that when encoding the first image, the second electronic device can cyclically encode the first sub-image and the second sub-image.
[0039] The target information includes first information and second information, which can be understood as the target information being composed of first information and second information. For example, if the target information is 160 bits, then 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 may also be different, which is not limited in the embodiments of this application.
[0040] Based on the embodiments of this application, since the second electronic device divides the information to be transmitted into two parts, first information and second information, and encodes them in different images respectively, the first electronic device needs to decode them separately to obtain the encoded information.
[0041] In this way, during encoding, it is not necessary to encode all information into a single image, thereby reducing the density of particle points in the image. Furthermore, during decoding, the first electronic device can more easily capture all particle points, reducing the likelihood of particle point loss and thus increasing the probability of successful decoding.
[0042] In some implementations, determining target information based on first encoded information includes: determining first information based on second encoded information, determining second information based on third encoded information, and concatenating the first information and the second information based on the first identifier corresponding to the first information and the second identifier corresponding to the second information to obtain the target information.
[0043] It should be understood that, in order to distinguish between the first information and the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information during encoding. For example, if the first information is the first half, the first identifier can be 01, and if the second information is the second half, the first identifier can be 10.
[0044] In this way, when the first electronic device determines the target information based on the first encoded information, it can concatenate the first information and the second information according to the first identifier of the first information and the second identifier of the second information to obtain the complete target information.
[0045] It should be understood that the spliced target information does not include the aforementioned identifier.
[0046] In some implementations, determining the second encoded 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 encoded information 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 for encoding, and combining the encoded information of 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 further includes: if decoding based on the third combined information is unsuccessful, using a fourth target display area as the first display area for encoding, and combining the encoded information of 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 based on the third combined information is successful, determining the third combined information as the second encoded information.
[0047] For example, the number of the plurality of first display areas can be 12. The number of information points in each first display area can be 5.
[0048] For example, the distribution of positioning points can be understood as the geometrical distribution of positioning points. For instance, four positioning points can define a display area, and two adjacent display areas can share two positioning points.
[0049] Based on the embodiments of this application, a first electronic device can determine multiple first display areas according to the distribution of positioning points in the first particle points, and determine the encoded information in the first display areas according to the distribution of information points in the first display areas. It can also iteratively try decoding each first display area as the first display area for encoding 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 method by which the first electronic device determines the third encoded information can be found in the technical solution for determining the second encoded information by the first electronic device.
[0051] In some implementations, the first particle point and the second particle point also include a marker point, which is used to identify the target first display area where the encoding begins.
[0052] For example, each marker point can be located between two positioning points.
[0053] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0054] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0055] In some implementations, determining the second encoded 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 encoded information 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 target first display area as the first display area for encoding, and combining the encoded information in each of the multiple first display areas in a preset order to obtain the second encoded information, wherein the target first display area is the first display area determined based on the distribution of the marker points.
[0056] Based on the embodiments of this application, the first electronic device can determine the target first display area for encoding start according to the distribution of the marker points, and use the target first display area as the first display area for encoding for decoding, thereby improving the speed of correct decoding.
[0057] Similarly, the method by which the first electronic device determines the third encoded information can be found in the technical solution for determining the second encoded information by the first electronic device.
[0058] In some implementations, determining the encoded information 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 a preset second code table based on the distribution of information points included in each first display area to determine the encoded information in each first display area.
[0059] Based on the embodiments of this application, the encoded information in each first display area can be obtained by querying the second code table according to the distribution of information points.
[0060] Secondly, a method for transmitting information is provided, applied to a second electronic device. The method includes: encoding target information to be transmitted into first encoded information; encoding the first encoded information into a first image according to a preset rule, the first image including particle points for indicating the first encoded information, the particle points including positioning points for locating a display area and information points for indicating the first encoded information, wherein the information points are distributed in the display area, and the information points are obtained by superimposing the first encoded information.
[0061] For example, the target information can be 160 bits. With each 8 bits mapped to one character, the target information can include 20 characters. The first encoding information of the target information can be encoding these 20 characters using a first encoding method, for example, resulting in 32 characters, including the original 20 characters and 12 check characters, which can be encoded separately in the display area.
[0062] For example, each display area can encode one character, or each display area can encode multiple characters.
[0063] Based on the embodiments of this application, the second electronic device can first encode the target information to be transmitted into first encoded information, and then encode the first encoded information into 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 feel and concealment of the transmitted information. Furthermore, by encoding the first encoded information separately in different display areas, redundant encoding is avoided, thereby increasing the size of the transmitted information.
[0064] In some implementations, the first encoded information is encoded in the first image according to a preset rule, including: encoding each piece of information in the first encoded information into the corresponding display area in the first image according to the preset rule.
[0065] For example, each display area may encode one character from the first encoding information, or it may encode multiple characters (such as two characters).
[0066] For example, the second electronic device can query a code table to determine the encoding information corresponding to a character, and then overlay information points at the corresponding position in the corresponding display area based on the encoding information.
[0067] Based on the embodiments of this application, the second electronic device encodes each piece of information in the first encoded information into the corresponding display area according to the rules, thereby enabling the superposition of information points.
[0068] In some implementations, encoding each piece of information in the first encoded information into the corresponding display area in the first image according to a preset rule includes: determining the distribution of information points that need to be superimposed in the corresponding display area for each piece of information encoded in the first encoded information according to a preset first code table; and superimposing the information points into the corresponding display area according to the distribution of information points that need to be superimposed in the corresponding display area for each piece of information encoded.
[0069] Based on the embodiments of this application, when encoding, the second electronic device can determine the distribution of information points that need to be superimposed in the corresponding display area for encoding each piece of 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 encoded information into the corresponding image.
[0070] In some implementations, particle points also include marker points, which are used to identify the target display area where the encoding begins.
[0071] For example, each marker point can be located between two positioning points.
[0072] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0073] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0074] In some implementations, the target information includes first information and second information, wherein the first information has a first identifier and the second information has a second identifier, and the first identifier is different from the second identifier.
[0075] For example, the target information includes first information and second information, which can be understood as the target information being composed of first information and second information. For instance, if the target information is 160 bits, then 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 may also be different, which is not limited in the embodiments of this application.
[0076] It should be understood that, in order to distinguish between the first information and the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information during encoding. For example, if the first information is the first half, the first identifier can be 01, and if the second information is the second half, the first identifier can be 10.
[0077] In some implementations, the target information to be transmitted is encoded into first encoded information, including: encoding the first information into second encoded information, and encoding the second information into third encoded information, wherein the first encoded information includes the second encoded information and the third encoded information.
[0078] Based on the embodiments of this application, since the second electronic device divides the target information to be transmitted into first information and 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. Encoding the first encoding 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 includes: displaying the first sub-image and the second sub-image at an interval of L frames, where L is a positive integer.
[0080] Based on the embodiments of this application, the second electronic device divides the information to be transmitted into two parts: first information and second information, and encodes them in different images respectively.
[0081] In this way, during encoding, it is not necessary to encode all information into a single image, thereby reducing the density of particle points in the image. Furthermore, during decoding, the first electronic device can more easily capture all particle points, reducing the likelihood of particle point loss and thus increasing the probability of successful decoding.
[0082] In some implementations, the second encoded information is encoded in the first sub-image according to a preset rule, and the third encoded information is encoded in the second sub-image according to a preset rule, including:
[0083] The second encoding information is encoded in the first sub-image according to the preset second code table, and the third encoding information is encoded in the second sub-image according to the second code table.
[0084] For example, the distribution of information points that need to be superimposed in the corresponding display area of the first sub-image can be determined according to the second code table, and the information points can be 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] Thirdly, an information transmission apparatus is provided, comprising a module for implementing the information transmission method as described in the first to second aspects and any possible implementation thereof.
[0087] Fourthly, an electronic device is provided, comprising: one or more processors; one or more memories; wherein the one or more memories store one or more programs that, when executed by the one or more processors, cause the information transmission method as described in the first to second aspects and any possible implementation thereof to be performed.
[0088] Fifthly, a chip is provided, the chip including a processor and a communication interface, the communication interface being used to receive a signal and transmit the signal to the processor, the processor processing the signal such that the information transmission method as described in the first to second aspects and any possible implementation thereof is executed.
[0089] A sixth aspect provides a readable storage medium storing instructions that, when executed on an electronic device, cause the method of information transmission as described in the first to second aspects and any possible implementation thereof to be performed.
[0090] In a seventh aspect, a program product is provided, the program product comprising program code that, when run on an electronic device, causes the information transmission method as described in the first to second aspects and any possible implementation thereof to be executed. Attached Figure Description
[0091] Figure 1 This is a schematic structural diagram of the electronic device provided in the embodiments of this application.
[0092] Figure 2 This is a schematic diagram of an electronic device dividing a dynamic pattern into regions, as provided in an embodiment of this application.
[0093] Figure 3 This is a schematic diagram of dividing a display area into multiple sub-regions, provided in an embodiment of this application.
[0094] Figure 4 This is a schematic diagram of encoding information points in a display area according to an embodiment of this application.
[0095] Figure 5 This is a schematic flowchart illustrating a method for encoding information to be transmitted, provided in an embodiment of this application.
[0096] Figure 6 This is a schematic flowchart of a decoding method provided in an embodiment of this application.
[0097] Figure 7 This is a schematic diagram of an electronic device dividing a dynamic pattern into regions, as provided in an embodiment of this application.
[0098] Figure 8 This is a schematic flowchart illustrating a method for encoding information to be transmitted, provided in an embodiment of this application.
[0099] Figure 9 This is a schematic diagram of encoding information in an image according to an embodiment of this application.
[0100] Figure 10 This is a schematic flowchart of a decoding method provided in an embodiment of this application.
[0101] Figure 11 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application.
[0102] Figure 12 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application.
[0103] Figure 13 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0104] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0105] The information transmission method in this application embodiment can be applied to smartphones, wearable devices, smart TVs, tablets, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, in-vehicle devices, foldable devices, Internet of Things (IoT) devices, augmented reality devices, virtual reality devices, etc.
[0106] For example, Figure 1 A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include processor 110, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, camera 193, display screen 194, touch sensor 180K, ambient light sensor 180L, etc.
[0107] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0108] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0109] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0110] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0111] The wireless communication module 160 can provide solutions for wireless communication applications 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 (NFC), and infrared (IR) technologies.
[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 networks and other devices through wireless communication technology.
[0113] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which 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 one or N display screens 194, where N is a positive integer greater than 1. In this embodiment, the display screen 194 can be used to display a display interface for transmitting information.
[0115] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display screen 194, and application processor. In this embodiment, electronic device 100 can capture the display interface of another electronic device to obtain the encoded information therein, so as to realize functions such as account login, connection establishment, and video conferencing.
[0116] Before introducing the technical solutions of the embodiments of this application, some technical terms that may be involved in this application will be introduced as follows.
[0117] Region of Interest (ROI): In image processing, the area to be processed from the image is delineated using shapes such as rectangles, circles, ellipses, and irregular polygons. This area is called the ROI. In this embodiment, the region containing the ring pattern encoded with particle dots is the ROI.
[0118] In scenarios where information needs to be transmitted between electronic devices, connection and pairing between devices can be achieved 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 establish a connection. However, the amount of data encoded in the aforementioned dynamic pattern is relatively small, which limits its application scenarios.
[0119] In view of this, embodiments of this application provide a method and an 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 achieving information transmission between the two. Furthermore, this technical solution can increase the amount of data transmitted between electronic devices, enabling functions such as account login, video conferencing, and adding devices, thus enriching the application scenarios of information transmission.
[0120] The following will combine Figures 2 to 6 This application introduces a technical solution for electronic devices to encode information to be transmitted in dynamic patterns.
[0121] For example, Figure 2 This is a schematic diagram illustrating how an electronic device divides dynamic patterns into regions, as provided in an embodiment of this application. Figure 2 As shown, the dynamic pattern can be a circular pattern, which can 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 this application embodiment uses a circular pattern, divided into 16 display areas, as an example for illustration, but this should not be construed as limiting the application in any way. In some examples, the dynamic pattern can also be other shapes, such as regular patterns like rectangles or stars, or it can be other irregular patterns, which are not limited in this application embodiment. Alternatively, the circular pattern can be divided into other numbers of display areas.
[0123] Each display area in the annular pattern can be positioned using a positioning structure. This positioning structure may include several 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 All the external positioning points of the positioning structure of the display area are distributed on the same outer circle, and all the internal positioning points of the positioning structure of the display area 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 positioning points. For example, adjacent display areas 1 and 2 may share an outer positioning point A2 and an inner positioning point B2. In other examples, adjacent display areas may not share positioning points.
[0127] In other examples, the positioning structure may also include two positioning points, which may be located diagonally across the display area. These two positioning points may include an outer positioning point and an inner 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 marker point for identifying the initial display area, which can be understood as the first area of encoded information, from which encoding proceeds clockwise or counterclockwise. See, for example. Figure 2 The initial display area can be display area 1, and the marker point can include marker point C1 and marker point C2.
[0129] In some examples, marker point C1 is located on the outer circle where the outer positioning point is located, and marker point C1 is located at the midpoint or a predetermined ratio between positioning points A1 and A2. Similarly, marker point C2 is located on the inner circle where the inner positioning point is located, and marker point C2 is located at the midpoint or a predetermined ratio between positioning points B1 and B2. Alternatively, marker point C1 may be located at the midpoint of the line segment containing positioning points A1 and A2, and marker point C2 may be located at the midpoint of the line segment containing positioning points B1 and B2.
[0130] In other examples, the marker may include only marker C1 or marker C2.
[0131] In some examples, the number of marker points is not limited in the embodiments of this application. For example, multiple marker points may be evenly distributed between marker points A1 and A2, and / or multiple marker points may be evenly distributed between marker points B1 and B2.
[0132] In other examples, the sizes of the 16 display areas described above are not limited in this application embodiment. In some examples, the 16 display areas may be the same size, or the 16 display areas may be different sizes.
[0133] In this embodiment of the application, the second electronic device can encode information to be transmitted in the aforementioned display area. For example, the number and distribution of information points in the display area can be used to indicate different encoded information. The following will combine... Figures 3-4 This technical solution will be introduced.
[0134] For example, Figure 3 This is a schematic diagram illustrating how a display area is divided into multiple sub-regions, as provided in an embodiment of this application. For example... Figure 3 As shown, the second electronic device divides each display area into 26 sub-areas as an example for illustration.
[0135] The following explanation uses the example of dividing display area 1 into 26 sub-areas. (See also...) Figure 3 The 26 sub-regions can be divided into 6 rows. The first row includes sub-regions 1, 2 and 3; the second row includes sub-regions 4 to 7; the third row includes sub-regions 8 to 11; the fourth row includes sub-regions 12 to 16; the fifth row includes sub-regions 17 to 21; and the sixth row includes sub-regions 22 to 26.
[0136] It is understood that the above is only an example of one way to divide the 26 sub-regions. In other examples, the 26 sub-regions may also have other ways of being divided. For example, the first row and the second row may each include 3 sub-regions, and the third row to the sixth row may each include 5 sub-regions. This application embodiment does not limit this.
[0137] In some implementations, the second electronic device may divide the 26 sub-regions into two equal parts, each part comprising 13 sub-regions. For example, sub-regions 1 to 13 constitute the first part, and sub-regions 14 to 26 constitute the second part. Each part is used for encoding information.
[0138] It should be understood that the first and second parts mentioned above can also be divided in other ways. For example, the first part includes sub-regions 1 to 5, 8, 9, 12, 13, 17, 18, 22, and 23, and the remaining sub-regions belong to the second part.
[0139] Understandably, the second electronic device can encode one character in the first part and one character in the second part, with each character corresponding to 8 bits of information. In this way, the second electronic device can encode two characters in each display area, and the entire circular area can encode 32 characters.
[0140] See Figure 4 , Figure 4 This is a schematic diagram illustrating the encoding of information points in a display area according to an embodiment of this application. For example... 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 are respectively encoded with 3 information points.
[0141] The first part, which encodes 3 information points, can be understood as follows: among the 13 sub-regions included in the first part, there are 3 particle points distributed, and the remaining sub-regions are blank areas.
[0142] It should be understood that the embodiments of this application use a circle filled with color as an example for illustration. In some examples, the particle can also be other shapes, which are not limited in the embodiments of this application.
[0143] In this embodiment of the application, the second electronic device can determine which sub-regions the aforementioned information points are distributed in based on a code table. For example, Table 1 shows a portion of the code table used in this embodiment of the application.
[0144] Table 1
[0145]
[0146] Refer to Table 1. The rows in Table 1 are numbered 0-255. The combination of 0 and 1 in each row indicates whether an information point is encoded in the above 13 sub-regions. The value of each information point can be 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] Understandably, the second electronic device can convert the information to be transmitted (such as multiple characters, one character can be encoded as 8 bits) into a decimal number, which can be obtained as a value between 0 and 255. The corresponding encoding information can be obtained by looking up Table 1.
[0148] For example, if one of the characters is converted to a decimal number and becomes 37, then by referring to Table 1, we can see that information points need to be distributed in the 6th, 11th, and 13th sub-regions, 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 37 needs to be encoded in the first part of the display area, the sub-areas that need to have information points added can be determined by numbering from smallest to largest. See also... Figure 4 The 6th sub-region can correspond to sub-region 6, the 11th sub-region can correspond to sub-region 11, and the 13th sub-region can correspond to sub-region 13. If 37 needs to be encoded in the second part of the display area, then the 6th sub-region can correspond to sub-region 19, the 11th sub-region can correspond to sub-region 24, and the 13th sub-region can correspond to sub-region 26.
[0150] Alternatively, information points can be added to sub-regions according to their numbers from largest to smallest. For example, if 37 needs to be encoded in the second part of the display area, then the 6th sub-region can correspond to sub-region 21, the 11th sub-region can correspond to sub-region 16, and the 13th sub-region can correspond to sub-region 14.
[0151] Similarly, during decoding, the first electronic device can query Table 1 to obtain the corresponding number by acquiring the distribution of information points in all display areas, and convert it into the corresponding character to decode the transmitted information.
[0152] The following will combine Figure 5 This application introduces the technical solutions for encoding information to be transmitted by electronic devices in the embodiments of this application.
[0153] For example, Figure 5 This is a schematic flowchart illustrating a method for encoding information to be transmitted, provided in an embodiment of this application. Figure 5 As shown, the method 300 can be applied to a second electronic device, and the method 300 may include steps 310 to 330.
[0154] 310. The second electronic device uses encoding method A to encode the information A to be transmitted, and obtains the encoded information B.
[0155] For example, the size of the information A to be transmitted can be 160 bits. Each 8 bits can be mapped to one character, so the information A to be transmitted can have a total of 20 characters. The second electronic device can use encoding method A to encode these 20 characters to obtain encoded information B, which can include 32 characters. These 32 characters can include the 20 characters of information A and 12 check characters.
[0156] In this context, coding scheme A can be a forward error correction channel coding scheme, such as a Reed-Solomon (RS) code, an LDPC code, etc.
[0157] 320, The second electronic device determines to map the encoded information B to the mapping information C in the display area.
[0158] It should be understood that the second electronic device can convert the above 32 characters into decimal numbers and determine the mapping information C according to Table 1 above. The mapping information C is information used to indicate which sub-regions in the display area need to encode information points.
[0159] These 32 characters can be converted into decimal numbers, and the mapping information C can include which sub-regions in the corresponding display area each of the 32 characters needs to encode information points.
[0160] For example, the first part of display area 1 encodes the first character, and the second part of display area 1 encodes the second character. Through this mapping information C, we can obtain which sub-regions in display area 1 are encoded with information points.
[0161] It should be understood that step 320 can be an optional step. In some examples, the second electronic device can also directly determine which sub-regions to encode information points using Table 1 above when encoding information points.
[0162] 330. The second electronic device overlays particle points in 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 point can include external positioning points and internal positioning points. The second electronic device can overlay information points in sub-regions of each display area according to the mapping information C.
[0164] Based on the embodiments of this application, the second electronic device can successfully encode the information to be transmitted into a displayed circular pattern. Subsequently, the first electronic device can scan the image displayed by the second electronic device, decode and obtain the transmitted information, thereby realizing information transmission between the two.
[0165] In addition, this technical solution can transmit a large amount of information, thereby enriching the application scenarios of information transmission.
[0166] In this embodiment, after encoding the information A to be transmitted using encoding method A, the original transmitted characters and check characters can be obtained. These characters need to be encoded sequentially in the aforementioned 16 display areas, with each display area encoding two characters. Therefore, the second electronic device needs to determine the first encoded display area. For example, display area 1 is the first encoded display area, and the other display areas are encoded sequentially in a counter-clockwise order. Therefore, the second electronic device can add marker points to identify the starting encoded display area.
[0167] In some examples, the particle point may also include an identifier point. For example, see... Figures 2-3 The identifier may include identifier C1 and identifier C2, so that the electronic device can determine the display area of the starting encoding as display area 1 through identifier C1 and C2.
[0168] In some examples, in order to make the particle dots superimposed on the image invisible to the user's naked eye, the second electronic device may also superimpose different colors on the particle dots in the same frame of the image.
[0169] For example, when the second electronic device displays the aforementioned particle points, in the same frame image, 16 external positioning points A1, A2, A3, ..., A16 are displayed in a cycle according to the first color, the second color, and the third color, respectively; 16 internal positioning points B1, B2, B3, ..., B16 are displayed in a cycle according to the second color, the third color, and the first color, respectively; and information points are displayed in a cycle according to the third color, the first color, and the second color, respectively, and the first color, the second color, and the third color are all 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 as yellow, A2 as blue, A3 as gray, ..., A13 as yellow, A14 as blue, A15 as gray, and A16 as yellow. B1 is displayed as blue, B2 as gray, B3 as yellow, ..., B13 as blue, B14 as gray, B15 as yellow, and B13 as blue. All information points are displayed in a cycle of gray, yellow, and blue.
[0171] In other examples, in the same frame of the 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 all different.
[0172] In other examples, markers can be displayed together with anchor points in the manner described above. This can also be understood as meaning that when displaying colors, markers can be considered as anchor points.
[0173] For example, the first color is yellow, the second color is blue, and the third color is gray. In this case, the information points in display area 1 are displayed in gray, the information points in display area 2 are displayed in yellow, the information points in display area 3 are displayed in blue, and so on. It should be understood that the first, second, and third colors can also be other colors, and this application embodiment does not limit them.
[0174] Alternatively, within the same frame, since each display area is divided into two parts, the information points in each part can be displayed in one color. For example, display area 1 includes part 1 and part 2, display area 2 includes part 3 and part 4, ..., then the information points in all parts can be displayed in a cycle of third color, first color, second color. For example, part 1 is displayed in the third color, part 2 in the first color, part 3 in the second color, part 4 in the third color, ...
[0175] In this way, the particle points in the same frame are displayed in a preset color order, which allows the superimposed particle points to blend well with the background, thus hiding the particle points and making the superimposed particle points imperceptible to the user's naked eye.
[0176] The above combination Figure 2-5 The encoding process of the second electronic device is described. In this embodiment, after the second electronic device encodes the information to be transmitted, the first electronic device can use a camera to capture or scan the display interface of the second electronic device containing the encoded information, and decode the acquired image to determine the encoded information. The following will combine... Figure 6 The decoding process of the first electronic device in the embodiments of this application is described.
[0177] For example, Figure 6 This is a schematic flowchart illustrating a decoding method provided in an embodiment of this application. Figure 6 As shown, the method 400 may include steps 410 to 450.
[0178] 410, The first electronic device acquires image A.
[0179] For example, the first electronic device can capture an image A by taking a picture of the display interface of the information to be transmitted encoded by the second electronic device using a camera.
[0180] For example, when establishing a connection, the information to be transmitted could be a connection pairing code. When scanning to log in, the information to be transmitted could be account login information, etc. When screen mirroring is required, the information to be transmitted could be screen mirroring authentication information. When joining a video conference, the information to be transmitted could be a conference link. When placing an order by scanning a QR code, the information to be transmitted could be order information. When controlling smart home devices, the information to be transmitted could be control-related information, such as commands to turn on, off, pause, etc.
[0181] 420, The first electronic device extracts the region of interest (ROI) from image A.
[0182] It should be understood that the ROI is the region in image A that contains the aforementioned positioning points and information points. Alternatively, the ROI can also be understood as the region containing the aforementioned ring pattern. In some embodiments, the ROI may also include the aforementioned marker points.
[0183] In this embodiment of the application, the first electronic device can extract the region of interest (ROI) from the image A, which is beneficial for subsequent processing of the ROI to obtain the encoded location points and information points therein.
[0184] For example, the first electronic device may extract the ROI from image A using the following steps.
[0185] S421: The first electronic device crops image A to obtain image B containing the annular region;
[0186] S422: The first electronic device downsamples image B to obtain image C.
[0187] S423: The first electronic device blurs 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 image E to obtain a binary image F.
[0190] S426: The first electronic device performs closing and opening operations on the binary image F to obtain image G.
[0191] S427: The first electronic device extracts the ROI from the image G.
[0192] The first electronic device can perform ellipse fitting on the connected components in the image G to obtain the ROI containing the annular region.
[0193] It should be understood that the embodiments of this application are not limited to a specific fitting method. In other examples, the first electronic device may also employ other fitting methods, etc.
[0194] In this way, the first electronic device can successfully extract the ROI containing the ring-shaped region, so that when decoding the image displayed by the second electronic device, it can be decoded based on the ROI, thereby saving the computational workload of the first electronic device.
[0195] In other examples, the first electronic device can also extract the ROI by analyzing the pixels in the image G.
[0196] In other examples, the first electronic device may also extract the ROI in other ways, such as by clustering the particle points to extract the ROI containing the annular region.
[0197] 430, The first electronic device determines the particle point containing information, the particle point including the positioning point and the information point.
[0198] In this embodiment of the application, the first electronic device can acquire 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 and N is greater than or equal to 3.
[0199] Alternatively, the first electronic device may determine the encoded particle points from the acquired N-frame images based on the ROI region after determining the ROI region through step 420.
[0200] For example, the first electronic device may determine the particle point containing information by the following steps.
[0201] S11: The first electronic device acquires N frames of image A2.
[0202] S12: The first electronic device pre-crops the N-frame image A2 to obtain the N-frame image B2.
[0203] S13: The first electronic device downsamples the N-frame image B2 according to the ROI to obtain the N-frame image C2.
[0204] Since the first electronic device has already processed image A in step 420 to obtain the Region of Interest (ROI) containing the annular area, it can downsample N frames of image B2 based on this ROI to more accurately set the downsampling rate.
[0205] S14: The first electronic device performs intra-frame difference on each frame image C2 to obtain n frames of grayscale images D2.
[0206] For example, the explanation will be based on the example of the first electronic device performing intra-frame difference on one frame of image C2 in n frames of image C2.
[0207] Image C2 has three RGB channels. The first electronic device first decomposes image C2 into three RGB channels to obtain the R channel image, G channel image and B channel image respectively, and the corresponding values are denoted as R1, G1 and B1 respectively.
[0208] In one example, the first electronic device can use the formula D2=|(B1-R1)+(B1-G1)| to perform intra-frame difference processing to obtain a grayscale image D2.
[0209] In another example, the first electronic device can use the formula D2=|(G1-R1)+(G1-B1)| to perform intra-frame difference processing to obtain the 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 resulting grayscale image can be made more obvious, which is beneficial for the first electronic device to obtain the encoded information therein.
[0211] S15: The first electronic device performs multi-frame alignment processing on the N-frame grayscale image D2.
[0212] The first electronic device can reduce the misalignment caused by jitter when acquiring the ROI image by performing multi-frame alignment processing on N frames of grayscale images.
[0213] For example, taking N=3 as an example, the first electronic device can perform alignment processing on the previous frame image and the next frame image of the intermediate image based on the intermediate image.
[0214] It should be understood that step 445 is an optional step, and in some examples, step 445 may not be performed.
[0215] S16: The first electronic device performs secondary cropping on the aligned N-frame grayscale image D2 according to the ROI to obtain N-frame image E2.
[0216] S17: The first electronic device determines the positioning points and information points in the N-frame image E2.
[0217] In some cases, the first electronic device can determine the location points and information points of each frame in the N-frame image E2. Alternatively, the first electronic device can also determine the location points and information points of multiple frames in the N-frame image E2, and use the location points and information points of the multiple frames as the final determined location points and information points.
[0218] S18: The first electronic device uses an annular region A that can cover the ROI to filter N frames of image E2, and obtains N frames of image F2.
[0219] For example, the annular region A is a mask. The first electronic device can filter the N frames of image E2 using the mask to obtain the particle points corresponding to the mask region, and the particle points outside the mask region can be filtered out.
[0220] In this way, the N frames of image F2 obtained by the first electronic device contain particle points within the annular region A, while other noise points are filtered out.
[0221] In other examples, the first electronic device can also filter the m-frame image E2 using a ring-shaped region A that covers the ROI, resulting in an m-frame image F2. Here, m is less than N, and the m-frame image E2 can be a portion of the n-frame image E2. For example, n is 5 and m is 3. Subsequent steps can then be based on this m-frame image F2.
[0222] S19: The first electronic device performs inter-frame difference on the N-frame image F2 to obtain the N-frame grayscale image G2.
[0223] For example, the first electronic device can perform pairwise difference processing on each of the N frames of image F2.
[0224] For example, taking N=3 as an example to illustrate the process of inter-frame differencing, assuming that the three frames F2 are F2-1, F2-2, and F2-3 respectively. The first electronic device can perform a difference operation between F2-1 and F2-1 to obtain a grayscale image; the first electronic device can perform a difference operation between F2-1 and F2-3 to obtain a grayscale image; the first electronic device can perform a difference operation between F2-2 and F2-3 to obtain a grayscale image.
[0225] It should be understood that the difference operation can be understood as the process of subtracting the gray values of corresponding pixels in two frames of images and taking the absolute value.
[0226] In this way, by differential processing between multiple frames, the parts that differ between the multiple frames can be preserved. Since the positioning points and information points are displayed in different colors in a cycle during the encoding of the second electronic device, while the background and noise of the image are the same, differential processing can preserve the positioning points and information points in the image as much as possible, and filter out the noise.
[0227] S20: The first electronic device uses a binarization threshold to filter N frames of grayscale image G2 to obtain N frames of binary image H2.
[0228] The following explanation uses the filtering of a single grayscale image G2 by the first electronic device as an example. In grayscale image G2, pixels with values greater than or equal to the binarization threshold have their grayscale value set to 255, while pixels with values less than the binarization threshold have their pixel value 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 the N frames of binary images H2 to obtain 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 of the N-frame binary images, thereby enabling the image I2 to contain as many positioning points and information points as possible, increasing the probability of the first electronic device successfully decoding.
[0231] S22: The first electronic device filters out interference points in image I2 to obtain image J2.
[0232] It is understandable that, since the second electronic device encodes 3 information points in the first part and 3 information points in the second part of each display area during encoding, it is possible to retain 3 particle points in each of the first and second parts of each display area in image I2.
[0233] In some examples, if the number of particle points in the first or second part is greater than 3, the 3 particle points with the highest gray values can be retained as the information points for encoding.
[0234] S23: The first electronic device determines the positioning points and information points in image J2.
[0235] In this way, the first electronic device can ultimately determine the coded location point and information point.
[0236] For example, the first electronic device may first determine the positioning points in the image J2, and the determined positioning points may be used to determine each display area (such as display area 1 to display area 16 mentioned above).
[0237] In some cases, there may be partial missing positioning points in image J2. The first electronic device can also fill in the missing positioning points based on the geometric relationship of the partial positioning points.
[0238] In some examples, the first electronic device can also determine the marker points in image J2.
[0239] 440, The first electronic device determines information B based on the positioning point and 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 look up Table 1 according to the distribution of the information point 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 consists of multiple characters, the first electronic device can convert them into the corresponding characters after obtaining the decimal number corresponding to the encoded information point in each display area by looking up Table 1.
[0242] For example, the information B determined by the first electronic device based on the positioning point and the information point is 32 characters.
[0243] In some examples, after determining the display area, the first electronic device can also determine the display area where the encoding begins based on the location distribution of the marker points. For example, if the first electronic device has determined 16 display areas based on the distribution of the marker points, and determines that there are marker points between the marker points of the target display area, then the target display area can be determined as the display area where the encoding begins.
[0244] 450, the first electronic device determines the information to be transmitted, A, based on information B.
[0245] In some examples, information B consists of 32 characters. If the first electronic device cannot determine the display area where the encoding begins, it can try using each display area as the starting point and decode the characters in each display area according to a preset order. If a decoding attempt is successful, the determined starting display area is the correct starting display area, and the resulting information A is the information A transmitted by the second electronic device. If decoding fails after trying all possibilities, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire another N frames of images and repeat the above steps in an attempt to successfully decode.
[0246] Alternatively, taking N=3 as an example, if the first electronic device cannot complete the 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 decode.
[0247] It should be understood that the first electronic device's inability to determine the display area where the encoding begins can be interpreted as the first electronic device being unable to determine the display area where the encoding begins based on the marker point. Alternatively, the first electronic device may be unable to determine the marker point (e.g., the marker point is missing), or the second electronic device may have failed to add the aforementioned marker point during encoding.
[0248] In other examples, information B consists of 32 characters. If the first electronic device can determine the starting display area for encoding based on the aforementioned markers, it can use this display area as the first display area for encoding and decode the characters in each display area according to a preset order. If decoding is successful, the resulting information A is the information A transmitted by the second electronic device. If decoding fails, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire another N frames of images and repeat the above steps in order to successfully decode.
[0249] Based on the embodiments of this application, the first electronic device can scan the image displayed by the second electronic device and decode the acquired image to determine the encoded information therein, thereby realizing the transmission of information between the two. Furthermore, by increasing the amount of data transmitted, it can meet different user business needs.
[0250] In other examples, to improve the accuracy of the decoded information, the first electronic device can also fuse the information obtained from multiple decodings to determine the final information A.
[0251] In some examples, the first electronic device determines the encoded information A1 within image J2 by analyzing it. Image J2 is obtained by processing m frames of N 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 5 frames E2 are E2-1, E2-2, E2-3, E2-4, and E2-5 respectively, and the m frames can be 3 consecutive frames from the 5 frames.
[0253] For example, the three frames 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 the encoded information A1-1 in image J2-1.
[0254] To improve the accuracy of the determined connection pairing code, the first electronic device can further process E2-2, E2-3, and E2-4 to obtain image J2-2, and determine the encoded information A1-2 in image J2-2. The first electronic device can also process E2-3, E2-4, and E2-5 to obtain image J2-3, determine the encoded information A1-3 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 acquire multiple other sets of N frames of images and fuse the decoding results of multiple rounds.
[0256] In some examples, image J2 can be obtained by processing N frames of images, taking N=3 as an example. The first electronic device obtains information A1 based on these 3 frames of images. The first electronic device can also acquire another 3 frames of images and decode them to obtain information A1-2. Fusing information A1-1 and information A1-2 can obtain the final determined information A. In other examples, the first electronic device can also fuse more sets of results to determine the final information A, which is not limited in the embodiments of this application.
[0257] In some cases, the second electronic device can also employ other methods to increase the amount of data that needs to be transmitted. The following will combine... Figure 7-10 This technical solution will be introduced.
[0258] For example, Figure 7 This is a schematic diagram illustrating how an electronic device divides dynamic patterns into regions, as provided in an embodiment of this application. Figure 7 As shown, the dynamic pattern can be a circular pattern, which can 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 like rectangles or stars, or it can be other irregular patterns, which are not limited in the embodiments of this application. Alternatively, the ring pattern can be divided into other numbers of display areas.
[0260] Each display area in the annular pattern can be positioned using a positioning structure. This positioning structure may include several 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 All the external positioning points of the positioning structure of the display area are distributed on the same outer circle, and all the internal positioning points of the positioning structure of the display area 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 marker point for identifying the initial display area, which can be understood as the first area of encoded information, from which encoding proceeds clockwise or counterclockwise. See, for example. Figure 7 The initial display area can be display area 1, and the marker point can include marker point C3 and marker point C4.
[0264] It should be understood that the descriptions of markers C3 and C4 can be found in the previous descriptions of markers C1 and C2, and will not be repeated here for the sake of brevity.
[0265] In other examples, the sizes of the 12 display areas described above are not limited in this application embodiment. In some examples, the 12 display areas may be the same size, or the 12 display areas may be different sizes.
[0266] In this embodiment of the application, the second electronic device can encode information to be transmitted in the aforementioned display area. For example, the number and distribution of information points in the display area can be used to indicate different encoded information. The following will combine... Figures 8-9 This technical solution will be introduced.
[0267] See also Figure 7 The following example illustrates how the second electronic device divides each display area into 21 sub-areas.
[0268] Let's take dividing display area 1 into 21 sub-areas as an example. These 21 sub-areas can be divided into 4 rows. The first row includes sub-area 1, sub-area 2, sub-area 3 and sub-area 4. The second row includes sub-area 5 to sub-area 9. The third row includes sub-area 10 to sub-area 15. The fourth row includes sub-area 16 to sub-area 21.
[0269] It is understood that the above is only an example of one way to divide the 21 sub-regions. In other examples, the 21 sub-regions may also have other ways of being divided. For example, the first to third rows may each include 5 sub-regions, and the fourth row may include 6 sub-regions. This application embodiment does not limit this.
[0270] Understandably, the second electronic device can encode one character on each display area, with each character corresponding to 14 bits of information. Thus, the second electronic device can encode 12 characters across the entire circular area.
[0271] See also Figure 7 Display area 1 can encode 5 information points. This can be understood as display area 1 comprising 21 sub-regions, with 5 particle points distributed among them, and the remaining sub-regions being blank areas.
[0272] For example, one particle point is superimposed in each of the sub-regions 6, 8, 12, 14 and 19 in the display area 1, while no particle points are superimposed in the remaining sub-regions.
[0273] It should be understood that the embodiments of this application use a circle filled with color as an example for illustration. In some examples, the particle can also be other shapes, which are not limited in the embodiments of this application.
[0274] In this embodiment of the application, the second electronic device can determine which sub-regions the aforementioned information points are distributed in based on a code table. For example, Table 2 shows a portion of the code table used in this embodiment of the application.
[0275] Table 2
[0276]
[0277] Refer to Table 2. The rows in Table 2 are numbered 0-16383. The combination of 0 and 1 in each row indicates whether an information point is encoded in the above 21 sub-regions. The value of each information point can be 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] Understandably, the second electronic device can convert the information to be transmitted (such as multiple characters, with each character encoding 14 bits) into a decimal number, obtaining a value between 0 and 16383. The corresponding encoding information can be found in 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 can query Table 1 to obtain the corresponding number by acquiring the distribution of information points in all display areas, and convert it into the corresponding character to decode the transmitted information.
[0280] The following will combine Figure 8 This application introduces the technical solutions for encoding information to be transmitted by electronic devices in the embodiments of this application.
[0281] For example, Figure 8 This is a schematic flowchart illustrating a method for encoding information to be transmitted, provided in an embodiment of this application. Figure 8 As shown, the method 500 can 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 can divide information A2 into two equal parts, in which case information A2-1 and information A2-2 are the same size. For example, information A2 is 160 bits in size, information A2-1 is 80 bits in size, and information A2-2 is 80 bits in size.
[0284] In some examples, the size of information A2-1 may also be different from that of information A2-2.
[0285] In some examples, the second electronic device can also divide the information to be transmitted into more parts.
[0286] 520, the second electronic device adds identifier 1 to information A2-1 and identifier 2 to information A2-2.
[0287] For example, identifier 1 can be 01, and identifier 2 can be 10. Identifier 1 can be used to indicate that information A2-1 is the first half of information A2, and identifier 2 can be used to indicate that information A2-2 is the second half of information A2.
[0288] It should be understood that the identifier 1 or identifier 2 can also be other values or other sizes.
[0289] It should be understood that one or more "0" bits can be added to each of the two parts of information with added identifiers to make their size an integer multiple of 14 bits.
[0290] For example, in the example above, 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 is mapped to one character, the second electronic device can also add two "00" bits to information A2-1 and information A2-2 to make their size 84 bits.
[0291] Alternatively, the second electronic device can also add a two-digit version number or other information that needs to be transmitted.
[0292] It is understood that the identifier or version number information may be located before or after the 80-bit information, or it may be located at a specific position (such as in the middle) between the 80-bit information. This application embodiment does not limit this.
[0293] 530. The second electronic device encodes information A2-1 and information A2-2 respectively to obtain encoded information B2-1 and information B2-2.
[0294] It should be understood that the size of information A2-1 and information A2-2 here is 84 bits each. Each 14 bits is mapped to one character, so information A2-1 and information A2-2 can each transmit 6 characters.
[0295] For example, the second electronic device encodes information A2-1 using encoding method B to obtain encoded information B2-1, and encodes information A2-2 using encoding method B to obtain encoded information B2-2.
[0296] For example, the second electronic device encodes information A2-1 using encoding method B, resulting in 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, resulting in 12 characters, including the initial 6 information characters and 6 check characters.
[0297] It should be understood that the encoding method B can be the same as or different from the encoding method A mentioned above, and this application embodiment does not limit it.
[0298] 540, the second electronic device determines mapping information C1 that maps the encoded information B2-1 to the display area of image 1, and mapping information C2 that maps the information B2-2 to the display area of image 2.
[0299] In this embodiment of the application, when the second electronic device encodes information points in the display area, it is necessary to encode information B2-1 and 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, encodes information B2-2 in image 2. The specific value of L in this embodiment is not limited; for example, L can be 2 or 3, etc.
[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. The mapping information C1 is information used to indicate which sub-regions 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 used to indicate which sub-regions in the display area of 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 according to mapping information C1, and the information points in Image 2 are determined according to mapping information C2.
[0304] In some cases, the second electronic device can encode the encoded information B2-1 and information B2-2 obtained in step 530 into the displayed image at intervals of several frames. The following will combine... Figure 9 This technical solution will be introduced.
[0305] For example, see Figure 9 , Figure 9 This is a schematic diagram illustrating the encoding of information in an image according to an embodiment of this application. When the second electronic device superimposes particle dots in the display area of the image, it can encode information points every L frames of the image, taking L as an example for illustration.
[0306] For example, the second electronic device encodes the encoded information B2-1 in the display area of the Kth frame image, then encodes the encoded information B2-2 in the display area of the K+3th frame image, then encodes the information B2-1 in the display area of the K+6th frame image, and so on. By using this method of sequential cyclic encoding, the information to be transmitted can be encoded in the displayed image.
[0307] It is understood that the L-frame image can be a blank image or a background image without superimposed information points, and this application embodiment does not limit it.
[0308] In other examples, when the second electronic device overlays the information points corresponding to the encoded information onto the image, it can also alternately overlay them at preset time intervals. For example, after encoding information B2-1 into one frame of the image, information B2-2 is encoded into another image at preset time intervals, so that the images containing the encoded information B2-1 and information B2-2 are spaced apart by the preset time interval.
[0309] It should be understood that the specific value of the preset duration is not limited in the embodiments of this application.
[0310] Similarly, after acquiring the image from the second electronic device, the first electronic device can concatenate the decoded information B2-1 with information B2-2 and convert it into the transmitted information A2.
[0311] Based on the embodiments of this application, the second electronic device can divide the information to be transmitted into two parts and encode them cyclically in a displayed circular pattern. Subsequently, the first electronic device can scan the image displayed by the second electronic device, stitch together the two decoded parts of information to obtain the transmitted information, thereby realizing information transmission between the two.
[0312] Furthermore, since the second electronic device encodes an informational image frame every few frames, and the first half and the second half of the transmitted information are encoded alternately, the encoded particle points can be more dispersed in the time domain, thereby reducing the density of encoded particle points in a single frame image and increasing the likelihood of successful decoding by the peer device.
[0313] In some cases, the first electronic device can set the color of the encoded particle points to dark blue. For example, the RGB color value of the particle points is (0, 0, 127). In this way, encoding an informational image frame every few frames with the particle points in the image being dark blue can make the color of the encoded particle points closer to the background color, thus improving the concealment of the particle points.
[0314] The following will combine Figure 10 This paper introduces the technical solution for decoding the first electronic device.
[0315] For example, Figure 10 This is a schematic flowchart illustrating a decoding method provided in an embodiment of this application. Figure 10 As shown, the method 600 may include steps 610 to 660.
[0316] 610, The first electronic device acquires image A3.
[0317] 620, The first electronic device extracts the region of interest (ROI) from image A3.
[0318] It should be understood that step 610 is equivalent to step 620, and can be found in the relevant descriptions of steps 410 to 420 above. For the sake of brevity, they will not be repeated here.
[0319] 631, the first electronic device determines a particle point 1 containing information in a continuous P1 frame image, the particle point 1 including a positioning point 1 and an information point 1.
[0320] 632, the first electronic device determines particle point 2 containing information in consecutive P2 frame images, particle point 2 including positioning point 2 and information point 2.
[0321] For example, P1 and P2 can be the same or different. For instance, when the second electronic device encodes, it encodes one informational image frame every two frames, then P1 = P2 = 3. In this way, any three frames of images displayed by the second electronic device and acquired by the first electronic device can be decoded to obtain either the first or second half of the transmitted information A2.
[0322] It is understandable that the P2 frame image can be located after or before the P1 frame image.
[0323] In some examples, particle point 1 may also include a marker point. Particle point 2 may also include a marker point.
[0324] It is understandable that the process by which the first electronic device determines the particle point 1 containing information in the consecutive P1 frame images and the ion point 2 containing information in the consecutive P2 images can be referred to the relevant description of step 430 above, and will not be repeated here for the sake of brevity.
[0325] 641. The first electronic device determines information B2-1 based on positioning point 1 and information point 1.
[0326] For example, the first electronic device can determine each display area based on the distribution relationship of positioning points 1. See, for example, [link to relevant documentation]. Figure 7The first electronic device can determine 12 display areas based on the distribution of positioning points 1. The first electronic device can then look up the information points in each display area in Table 2 to obtain the decimal number corresponding to the encoded information point in each display area, and convert it into the character to be transmitted.
[0327] For example, if the information to be transmitted consists of multiple characters, the first electronic device can convert them into the corresponding characters after obtaining the decimal number corresponding to the encoded information point in each display area by looking up Table 2.
[0328] For example, the first electronic device determines information B2-1 as 12 characters based on positioning point 1 and information point 1. Thus, the first electronic device can obtain multiple characters encoded using encoding method B.
[0329] In other examples, the first electronic device can also determine the display area where the encoding begins based on the location distribution of the marker points.
[0330] 642, The first electronic device determines information B2-2 based on positioning point 2 and information point 2.
[0331] It should be understood that step 642 can be found in the relevant description of step 641, and for the sake of brevity, it will not be repeated.
[0332] 651. The first electronic device decodes information B2-1 to obtain information A2-1.
[0333] For example, the first electronic device can use the decoding method corresponding to the encoding method B to decode the information B2-1 to obtain the information A2-1.
[0334] It should be understood that if the first electronic device can determine the display area where the encoding begins based on the aforementioned markers, then the first electronic device can use that display area as the first display area for encoding and decode the characters included in each display area according to a preset order. If decoding is successful, the obtained information is part of the information A2 transmitted by the second electronic device. If decoding fails, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire 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 begins, it can attempt to use each display area as the starting point for encoding and decode the characters within each display area according to a preset order. If any decoding attempt is successful, the determined starting display area is the correct starting display area, and the obtained information becomes part of the information A2 transmitted by the second electronic device. If decoding fails after trying all possibilities, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire another P1 frame image and repeat the above steps in an attempt to successfully decode.
[0336] It should be understood that the first electronic device's inability to determine the display area where the encoding begins can be interpreted as the first electronic device being unable to determine the display area where the encoding begins based on the marker point. Alternatively, the first electronic device may be unable to determine the marker point (e.g., the marker point is missing), or the second electronic device may not have added the aforementioned marker point during encoding.
[0337] 652, The first electronic device decodes 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 begins based on the aforementioned markers, then the first electronic device can use that display area as the first display area for encoding and decode the characters included in each display area according to a preset order. If decoding is successful, the obtained information is another part of the information A2 transmitted by the second electronic device. If decoding fails, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire 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 begins, it can attempt to use each display area as the starting point for encoding and decode the characters in each display area according to a preset order. If any decoding attempt is successful, the determined starting display area is the correct starting display area, and the obtained information is another part of the information A2 transmitted by the second electronic device. If decoding still fails after trying all possibilities, the current scan decoding is unsuccessful, and the first electronic device can begin the next scan decoding. For example, the first electronic device can acquire another P2 frame image and repeat the above steps in an attempt to successfully decode.
[0340] 660. The first electronic device concatenates 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] If the first electronic device successfully decodes the information, it can determine the first or second half of the terminology information A2 based on the identification information in the decoded information.
[0342] For example, if information A2-1 contains identifier 1, then information A2-1 can be determined to be the first half of information A2. If information A2-2 contains identifier 2, then information A2-2 can be determined to be the second half of information A2. The first electronic device can then splice information A2-1 and A2-2 to obtain the complete information A2.
[0343] In some cases, to improve the accuracy of the decoded information, the first electronic device can also fuse the complete information obtained from multiple decodings to determine the final information A2. It should be understood that the process of this information fusion can be found in the relevant description of method 400 above, and will not be repeated here for the sake of brevity.
[0344] Figure 11 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application. Figure 11 As shown, the method 700 can be applied to a first electronic device, and the method 700 may include steps 710 to 740.
[0345] 710, The first electronic device acquires a first image, the first image including particle points of first encoded information for indicating target information, the particle points including positioning points for locating the display area and information points for indicating the first encoded information.
[0346] The display area contains information points.
[0347] For example, the first image may be an image displayed by a second electronic device and acquired by the first electronic device. For instance, the first image may be an image encoded by the second electronic device with target information to be transmitted.
[0348] For example, see Figure 2 The display area can be display area 1 to display area 16, and the positioning point can include internal positioning points and external positioning points. See also Figure 4 Information points can be distributed within this display area, and the location of each information point corresponds to different encoded information. These particle points can be distributed in a ring shape, or in other shapes; this embodiment does not limit the specific distribution.
[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 may contain three information points, and the second sub-display area may also contain three information points. The different positions of these three information points can correspond to different encoded characters.
[0350] It should be understood that the first electronic device can acquire N frames of the first image and decode them based on the N frames of the first image to obtain the target information, where N is greater than or equal to 3.
[0351] For example, the target region may be a ring-shaped region including a distribution of particle points.
[0352] For example, the target information can be 160 bits in size. With each 8 bits mapped to one character, the target information can include 20 characters. The first encoding information of this target information can be the encoding of these 20 characters using a first encoding method. For example, after encoding, 32 characters are obtained, including the original 20 characters and 12 check characters. These 32 characters can be encoded separately in the display area. This encoding method improves the error tolerance of the encoding.
[0353] For example, see Figure 7 The display area can also be display area 1 to display area 12. Each of the display areas 1 to 12 can include 21 sub-areas, and 5 information points are distributed in each of the 21 sub-areas. The different positions of the 5 information points can correspond to different encoded 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 the target region in the first image and extract particle points from the target region. The target region can be understood as the ROI mentioned above, and its determination process can be found in the relevant description in step 420 above, which will not be repeated here for the sake of brevity.
[0356] 730, The first electronic device determines the first encoded information of the target information based on the distribution of particle points.
[0357] The positioning points in the particle dots can be used to locate the display area. The display area contains information points, and the corresponding encoded information can be obtained by querying the positional distribution of the information points.
[0358] For example, the coded characters can be determined by the positional distribution of information points in the display area. By recognizing all the coded characters in the display area, all the initial coded information can be obtained. Combining them in the correct order can increase the probability of successful decoding.
[0359] 740, The first electronic device determines the target information based on the first encoded information.
[0360] For example, the first electronic device can use the decoding method corresponding to the encoding method to decode the first encoded information, and if the decoding is successful, the target information can be obtained.
[0361] Based on the embodiments of this application, the first electronic device can scan the image displayed by the second electronic device to obtain a first image, extract particle points from the target area of the first image, and determine the first encoding information of the transmitted target information based on the distribution of the particle points, and determine the target information based on the first encoding information.
[0362] In this way, the first electronic device can conveniently obtain the target information transmitted by the second electronic device by scanning the pattern, thereby enhancing the technological sophistication and concealment of the information transmission. Furthermore, the second electronic device encodes the target information to obtain first encoded information, and then encodes this first encoded 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 encoded information of the target information based on the distribution of particle points, including:
[0364] Multiple display areas are determined based on the distribution of positioning points in the particle points;
[0365] The 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.
[0366] The method uses a first target display area as the starting display area for encoding, and combines the encoded information from 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 fails based on the first combination of information, the second target display area is used as the starting display area for encoding, and the information encoded in each display area of multiple display areas is combined in a preset order until the obtained second combination of information can be successfully decoded, wherein the second target display area is different from the first target display area; or,
[0368] If the first combination of information is successfully decoded, the first combination of information is determined to be the first encoded information.
[0369] For example, see Figure 2 The number of these multiple display areas can be 16.
[0370] For example, the distribution of positioning points can be understood as the geometrical distribution of positioning points. For instance, four positioning points can define a display area, and two adjacent display areas can share two positioning points.
[0371] Based on the embodiments of this application, the first electronic device can determine multiple display areas according to the distribution of positioning points, and determine the encoded information in the display areas according to the distribution of information points in the display areas. It can also iteratively attempt to decode each display area as the first display area for encoding until the correct first encoded information is obtained. This technical solution enables the first electronic device to determine the first encoded information in an image.
[0372] In some implementations, the display area includes a first sub-display area and a second sub-display area. The first electronic device determines the encoded information in each of the multiple display areas based on the distribution of information points in each display area, including:
[0373] Based on the distribution of information points in each of the multiple display areas, determine the information encoded in the first and second sub-display areas of each display area.
[0374] For example, each display area can have 26 sub-regions, where the first sub-display area includes 13 sub-regions, the second sub-display area includes another 13 sub-regions, and information can be encoded in each sub-display area. For example, three information points can be superimposed in the 13 sub-regions, and the encoded information can be determined by the positional distribution of these three information points.
[0375] For example, the first electronic device can obtain different information corresponding to the different locations of information points by querying a code table.
[0376] Based on the embodiments of this application, the first electronic device can determine the information encoded in each sub-display area of each display area, thereby enabling the first electronic device to obtain all the encoded information.
[0377] Furthermore, since each display area is divided into two sub-display areas, and information is encoded separately in each sub-display area, the size of the encoded information in the display area is increased, thereby improving the size of the transmitted information.
[0378] In some implementations, particle points also include marker points, which are used to identify the target display area where the encoding begins.
[0379] It should be understood that the target display area is the first display area to begin encoding. By setting this marker point, the first electronic device can determine the target display area where encoding begins, which helps to improve the speed of subsequent successful decoding.
[0380] In some implementations, the first electronic device determines the first encoded information of the target information based on the distribution of particle points, including:
[0381] Multiple display areas are determined based on the distribution of positioning points in the particle points;
[0382] The information encoded in each of the multiple display areas is determined based on the distribution of information points included in each display area.
[0383] The target display area is used as the starting display area for encoding, and the information encoded by each display area in multiple display areas is combined in a preset order to obtain the first encoding information, wherein the target display area is the display area determined according to the distribution of the marker points.
[0384] Based on the embodiments of this application, the first electronic device can determine the target display area for encoding start according to the distribution of the marker points, and use the target display area as the first display area for encoding for decoding, thereby improving the speed of correct decoding.
[0385] In some implementations, the markers are located on the circle containing the positioning points, and each marker is located between two adjacent positioning points.
[0386] For example, each marker can be located between two positioning points. See 2, where the marker can be marker C1 and marker C2.
[0387] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0388] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0389] In some implementations, the positioning points include internal positioning points and external positioning points. The internal positioning points are distributed on the inner circle, and the external positioning points are distributed on the outer circle. The inner and outer circles have the same center, and the information points are distributed between the inner and outer circles.
[0390] For example, see Figure 2 The positioning points include internal positioning points and external positioning points.
[0391] Based on the embodiments of this application, this ring-shaped design can improve the convenience of encoding and decoding. Furthermore, blending the particle dots with the background in a ring shape helps to enhance the aesthetics.
[0392] In some implementations, the first electronic device determines the target information based on the first encoded information, including:
[0393] If the first encoded information is successfully decoded, the target information is obtained.
[0394] Based on the embodiments of this application, although the first electronic device determines the first encoded information by the distribution of particle points, the target information can only be obtained when the first encoded information is successfully decoded.
[0395] In some implementations, the first electronic device determines the encoded information in each of the multiple display areas based on the distribution of information points included in each display area, including:
[0396] The information in each display area is determined by querying a preset first code table based on the distribution of information points in each display area.
[0397] For example, the first code table can be the code table shown in Table 1 above.
[0398] Based on the embodiments of this application, the encoded information in each display area can be obtained by querying the code table according to the distribution of information points.
[0399] In some implementations, the decoding of the first encoded information may fail due to the influence of ambient light or the loss of particle points. In this case, the first electronic device can acquire multiple other frames of images again and perform the decoding operation again in order to obtain the transmitted target information.
[0400] In some implementations, in order to improve the accuracy of the target information obtained from decoding, the first electronic device can also perform fusion processing on the results obtained from multiple decodings.
[0401] 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. The first sub-image includes first particle points indicating second encoded information of the first information, and the second sub-image includes second particle points indicating third encoded information of the second information. Determining the first encoded information of the target information based on the distribution of the particle points includes:
[0402] The second encoding information of the first information is determined based on the distribution of the first particle points, and the third encoding information of the second information is determined based on the distribution of the second particle points.
[0403] For example, there may be an interval of L frames between the first sub-image and the second sub-image, for example, L is 2 frames, and the L frames may be blank images.
[0404] It should be understood that when encoding the first image, the second electronic device can cyclically encode the first sub-image and the second sub-image, with an interval of L blank images between adjacent first sub-images and second sub-images.
[0405] For example, see Figure 9 The first sub-image can be the Kth frame image, and the second sub-image can be the K+3th frame image.
[0406] The target information includes first information and second information, which can be understood as the target information being composed of first information and second information. For example, if the target information is 160 bits, then 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 may also be different, which is not limited in the embodiments of this application.
[0407] Based on the embodiments of this application, since the second electronic device divides the information to be transmitted into two parts, first information and second information, and encodes them in different images respectively, the first electronic device needs to decode them separately to obtain the encoded information.
[0408] In this way, during encoding, it is not necessary to encode all information into a single image, thereby reducing the density of particle points in the image. Furthermore, during decoding, the first electronic device can more easily capture all particle points, reducing the likelihood of particle point loss and thus increasing the probability of successful decoding.
[0409] In some implementations, the first electronic device determines the target information based on the first encoded information, including:
[0410] The first information is determined based on the second encoding information, and the second information is determined based on the third encoding information;
[0411] The target information is obtained by concatenating the first information with the first identifier corresponding to the first information and the second information with the second identifier corresponding to the second information.
[0412] It should be understood that, in order to distinguish between the first information and the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information during encoding. For example, if the first information is the first half, the first identifier can be 01, and if the second information is the second half, the first identifier can be 10.
[0413] In this way, when the first electronic device determines the target information based on the first encoded information, it can concatenate the first information and the second information according to the first identifier of the first information and the second identifier of the second information to obtain the complete target information.
[0414] It should be understood that the spliced target information does not include the aforementioned identifier.
[0415] In some implementations, the first electronic device determines the second encoded information of the first information based on the distribution of the first particle points, including:
[0416] Multiple first display areas are determined based on the distribution of positioning points in the first particle point;
[0417] The information encoded in each of the multiple first display areas is determined based on the distribution of information points included in each of the multiple first display areas;
[0418] Using a third target display area as the starting point for encoding, and combining the encoded information of each of the multiple first display areas in a preset order, a second encoded information is obtained, wherein the third target display area is any one of the multiple first display areas; the method further includes:
[0419] If decoding fails based on the third combination of information, the fourth target display area is used as the first display area for encoding, and the information encoded in each of the multiple first display areas is combined in a preset order until the obtained fourth combination of information can be successfully decoded. Here, the third target display area and the fourth target display area are different; or...
[0420] If the third combination of information is successfully decoded, the third combination of information is determined to be the second encoded information.
[0421] For example, the number of the plurality of first display areas can be 12. The number of information points in each first display area can be 5.
[0422] For example, the distribution of positioning points can be understood as the geometrical distribution of positioning points. For instance, four positioning points can define a display area, and two adjacent display areas can share two positioning points.
[0423] Based on the embodiments of this application, a first electronic device can determine multiple first display areas according to the distribution of positioning points in the first particle points, and determine the encoded information in the first display areas according to the distribution of information points in the first display areas. It can also iteratively try decoding each first display area as the first display area for encoding 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 method by which the first electronic device determines the third encoded information can be found in the technical solution for determining the second encoded information by the first electronic device.
[0425] For example, the first electronic device determines the third encoded information of the second information based on the distribution of the second particle points, including:
[0426] Multiple second display areas are determined based on the distribution of positioning points in the second particle point;
[0427] The information encoded in each of the multiple second display areas is determined based on the distribution of information points included in each of the multiple second display areas;
[0428] The method further includes: using the fifth target display area as the starting point for encoding in the second display area, and combining the information encoded in each of the multiple second display areas in a preset order to obtain the fifth combined information, wherein the fifth target display area is any one of the multiple second display areas;
[0429] If the fifth combination of information is not successfully decoded, the sixth target display area is used as the second display area for encoding, and the information encoded by each of the multiple second display areas is combined in a preset order until the sixth combination of information can be successfully decoded, wherein the fifth target display area and the sixth target display area are different; or, if the fifth combination of information is successfully decoded, the fifth combination of information is determined to be the third encoded information.
[0430] Based on the embodiments of this application, a first electronic device can determine multiple second display areas according to the distribution of positioning points in the second particle points, and determine the encoded information in the second display areas according to the distribution of information points in the second display areas. It can also iteratively 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 encoded third information in the image.
[0431] In some implementations, the first particle point and the second particle point also include a marker point, which is used to identify the target first display area where the encoding begins.
[0432] For example, each marker point can be located between two positioning points.
[0433] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0434] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0435] In some implementations, the first electronic device determines the second encoded information of the first information based on the distribution of the first particle points, including:
[0436] Multiple first display areas are determined based on the distribution of positioning points in the first particle points;
[0437] The information encoded in each of the multiple first display areas is determined based on the distribution of information points included in each of the multiple first display areas;
[0438] The first display area is taken as the first display area for encoding, and the information encoded by each of the multiple first display areas is combined in a preset order to obtain the second encoding information. The target first display area is the first display area determined according to the distribution of the marker points.
[0439] Based on the embodiments of this application, the first electronic device can determine the target first display area for encoding start according to the distribution of the marker points, and use the target first display area as the first display area for encoding for decoding, thereby improving the speed of correct decoding.
[0440] Similarly, the method by which the first electronic device determines the third encoded information can be found in the technical solution for determining the second encoded information by the first electronic device.
[0441] In some implementations, the first electronic device determines the information encoded in each of the plurality of first display areas based on the distribution of information points included in each of the plurality of first display areas, including:
[0442] The information encoded in each first display area is determined by querying a preset second code table based on the distribution of information points in each first display area.
[0443] For example, the second code table can be the code table shown in Table 2 above. The first electronic device can determine the encoded information in the corresponding display area by comparing it with the second code table based on the distribution of the acquired information points.
[0444] Based on the embodiments of this application, the encoded information in each first display area can be obtained by querying the second code table according to the distribution of information points.
[0445] Figure 12 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application. Figure 12 As shown, the method 800 can be applied to a second electronic device, and the method may include steps 810 to 820.
[0446] 810, the second electronic device encodes the target information to be transmitted into first encoded information.
[0447] For example, the target information can be 160 bits. With each 8 bits mapped to one character, the target information can include 20 characters. The first encoding information of the target information can be encoding these 20 characters using a first encoding method, for example, resulting in 32 characters, including the original 20 characters and 12 check characters, which can be encoded separately in the display area.
[0448] The first encoding method can be the RS encoding mentioned above. RS encoding can improve the fault tolerance of encoded information.
[0449] For example, each display area can encode one character, or each display area can encode multiple characters.
[0450] See Figure 4 Each display area can encode 2 characters. See 7, where each display area can encode one character.
[0451] 820, the second electronic device encodes the first encoded information into the first image according to a preset rule. The first image includes particle points for indicating the first encoded information. The particle points include positioning points for locating the display area and information points for indicating the first encoded information. The information points are distributed in the display area and are obtained by superimposing the first encoded information.
[0452] For example, the first encoded information consists of 32 encoded characters. The second electronic device can determine the information points corresponding to each character according to Table 1 above and overlay them onto the corresponding display area. The second electronic device can overlay the corresponding information points in a counter-clockwise order, starting from the first display area, until the overlay is complete.
[0453] Based on the embodiments of this application, the second electronic device can first encode the target information to be transmitted into first encoded information, and then encode the first encoded information into 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 feel and concealment of the transmitted information. Furthermore, by encoding the first encoded information separately in different display areas, redundant encoding is avoided, thereby increasing the size of the transmitted information.
[0454] In some implementations, the second electronic device encodes the first encoded information into the first image according to a preset rule, including:
[0455] Each piece of information in the first encoded information is encoded into the corresponding display area in the first image according to preset rules.
[0456] For example, each display area may encode one character from the first encoding information, or it may encode multiple characters (such as two characters).
[0457] For example, the second electronic device can query a code table to determine the encoding information corresponding to a character, and then overlay information points at the corresponding position in the corresponding display area based on the encoding information.
[0458] Based on the embodiments of this application, the second electronic device encodes each piece of information in the first encoded information into the corresponding display area according to the rules, thereby enabling the superposition of information points.
[0459] In some implementations, the second electronic device encodes each piece of information in the first encoded information into the corresponding display area in the first image according to a preset rule, including:
[0460] The distribution of information points that need to be superimposed in the corresponding display area for each information code in the first encoding information is determined according to the preset first code table.
[0461] Based on the distribution of information points that need to be superimposed in the corresponding display area for each information code, the information points are superimposed on the corresponding display area.
[0462] For example, the first code table may be the code table shown in Table 1 above.
[0463] For example, the first encoding information can be the 32 characters mentioned above. Then, the second electronic device can determine the distribution of information points that need to be superimposed by encoding the 32 characters in the corresponding display areas according to the code table 1.
[0464] Based on the embodiments of this application, when encoding, the second electronic device can determine the distribution of information points that need to be superimposed in the corresponding display area for encoding each piece of 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 encoded information into the corresponding image.
[0465] In some implementations, particle points also include marker points, which are used to identify the target display area where the encoding begins.
[0466] For example, each marker point can be located between two positioning points.
[0467] For example, the marker point may include an inner circle marker point and an outer circle marker point, wherein the inner circle marker point is located on the inner circle where the inner positioning point is located, and the outer circle marker point is located on the outer circle where the outer positioning point is located.
[0468] Based on the embodiments of this application, setting the marker point on the circle where the positioning point is located enables the first electronic device to easily and quickly determine the location of the marker point.
[0469] In some implementations, the target information includes first information and second information, wherein the first information has a first identifier and the second information has a second identifier, and the first identifier is different from the second identifier.
[0470] For example, the target information includes first information and second information, which can be understood as the target information being composed of first information and second information. For instance, if the target information is 160 bits, then 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 may also be different, which is not limited in the embodiments of this application.
[0471] It should be understood that, in order to distinguish between the first information and the second information, the second electronic device may add a first identifier to the first information and a second identifier to the second information during encoding. For example, if the first information is the first half, the first identifier can be 01, and if the second information is the second half, the first identifier can 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 the second encoded information, and the second information is encoded into the third encoded information, wherein the first encoded information includes the second encoded information and the third encoded information.
[0474] Based on the embodiments of this application, since the second electronic device divides the target information to be transmitted into first information and 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 encoded information into the first image according to a preset rule, including:
[0476] The method further includes encoding the second encoding information into the first sub-image according to the preset rules, and encoding the third encoding information into the second sub-image according to the preset rules;
[0477] The first sub-image and the second sub-image are displayed with an interval of L frames, where L is a positive integer.
[0478] Based on the embodiments of this application, the second electronic device divides the information to be transmitted into two parts: first information and second information, and encodes them in different images respectively.
[0479] In this way, during encoding, it is not necessary to encode all information into a single image, thereby reducing the density of particle points in the image. Furthermore, during decoding, the first electronic device can more easily capture all particle points, reducing the likelihood of particle point loss and thus increasing the probability of successful decoding.
[0480] In some implementations, the second electronic device encodes the second encoded information into the first sub-image according to a preset rule, and encodes the third encoded information into the second sub-image according to a preset rule, including:
[0481] The second encoding information is encoded in the first sub-image according to the preset second code table, and the third encoding information is encoded in the second sub-image according to the second code table.
[0482] For example, the distribution of information points that need to be superimposed in the corresponding display area of the first sub-image can be determined according to the second code table, and the information points can be superimposed in the corresponding display area according to the distribution.
[0483] For example, 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 this 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 storing one or more instructions that, when executed by one or more processors 1010, cause the method described in any of the possible implementations above to be executed.
[0486] For example, the electronic device 1000 can 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 methods 300, 400, 500, 600, 700, and 800 mentioned above.
[0488] This 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, the communication interface is also used to transmit signals to the processor, and the processor processes the signals such that the information transmission method described in any of the possible implementations above is executed.
[0489] This application also provides an apparatus for managing idle tasks, including a processor and a communication interface. The communication interface is used to receive signals and transmit the signals to the processor. The processor processes the signals so that the information transmission method described in any of the possible implementations above is executed.
[0490] The device can be a chip. For example, the chip can be a chip system or a standalone chip.
[0491] This application also provides a readable storage medium (also known as a computer-readable storage medium) that stores instructions. When these instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the information transmission method described in the above embodiments.
[0492] This application also provides a program product (also known as a computer program product) that, when run on an electronic device, causes the electronic device to perform the aforementioned related steps to realize the information transmission method described in the above embodiments.
[0493] This application also provides an apparatus including a module for implementing the information transmission method as described in any of the foregoing embodiments.
[0494] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store instructions, and when the apparatus is running, the processor may execute the instructions stored in the memory to cause the apparatus to perform the information transmission methods in the above-described method embodiments.
[0495] In this embodiment, the device, readable storage medium, program product or apparatus are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0496] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art 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 understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing 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, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0499] The units described as separate components may or may not be physically separate. 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 the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0500] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0501] If the aforementioned functions are implemented as 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 this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.
[0502] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for information transmission, characterized in that, The method is applied to a first electronic device, and the method includes: A first image is acquired, the first image including particle points of first encoded information for indicating target information, the particle points including positioning points for locating a display area and information points for indicating the first encoded information, wherein the information points are distributed in the display area; Extract the particle points from the target region of the first image; Multiple display areas are determined based on the distribution of positioning points in the particle points; The information encoded in each of the multiple display areas is determined based on the distribution of information points in each display area. Using the first target display area as the starting display area for encoding, and combining the information encoded by each display area in the plurality of display areas in a preset order, a first combination information is obtained, wherein the first target display area is any one of the plurality of display areas; If decoding fails based on the first combination information, the second target display area is used as the starting display area for encoding, and the information encoded by each display area in the plurality of display areas is combined 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, if decoding succeeds based on the first combination information, the first combination information is determined to be the first encoded information. The target information is determined based on the first encoded information.
2. The method according to claim 1, characterized in that, The display area includes a first sub-display area and a second sub-display area; Determining the encoded information in each of the plurality of display areas based on the distribution of information points in each display area includes: The information encoded in the first sub-display area and the second sub-display area in each of the plurality of display areas is determined based on the distribution of information points in each display area.
3. The method according to claim 1 or 2, characterized in that, Determining the target information based on the first encoded information includes: If the first encoded information is successfully decoded, the target information is obtained.
4. The method according to claim 1 or 2, characterized in that, Determining the encoded information in each of the plurality of display areas based on the distribution of information points in each display area includes: The information encoded in each display area is determined by querying a preset first code table based on the distribution of information points in each display area.
5. 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. The first sub-image includes first particle points for indicating second encoded information of the first information, and the second image includes second particle points for indicating third encoded information of the second information. Wherein, determining the first encoded information of the target information based on the distribution of the particle points includes: The second encoding information of the first information is determined based on the distribution of the first particle points, and the third encoding information of the second information is determined based on the distribution of the second particle points.
6. The method according to claim 5, characterized in that, The first particle point and the second particle point also include an identifier point, which is used to identify the target first display area where the encoding begins.
7. The method according to claim 6, characterized in that, The step of determining the second encoded information of the first information based on the distribution of the first particle points includes: Multiple first display areas are determined based on the distribution of positioning points in the first particle points; The information encoded in each of the plurality of first display areas is determined based on the 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 for encoding, and the information encoded in each of the plurality of first display areas is combined in a preset order to obtain the second encoded information, wherein the target first display area is a first display area determined according to the distribution of the marker points.
8. The method according to claim 5, characterized in that, The step of determining the second encoded information of the first information based on the distribution of the first particle points includes: Multiple first display areas are determined based on the distribution of positioning points in the first particle points; The information encoded in each of the plurality of first display areas is determined based on the distribution of information points included in each of the plurality of first display areas; Using the third target display area as the first display area for encoding, and combining the encoded information in each of the plurality of first display areas in a preset order, a third combined information is obtained, wherein the third target display area is any one of the plurality of first display areas; The method further includes: If decoding fails based on the third combination of information, the fourth target display area is used as the first display area for encoding, and the information encoded in each of the plurality of first display areas is combined in a preset order until the resulting fourth combination of information can be successfully decoded. The third target display area is different from the fourth target display area; or... If the third combination of information is successfully decoded, the third combination of information is determined to be the second encoded information.
9. The method according to claim 7 or 8, characterized in that, Determining the encoded information in each of the plurality of first display areas based on the distribution of information points included in each of the plurality of first display areas includes: The information encoded in each first display area is determined by querying a preset second code table based on the distribution of information points included in each first display area.
10. The method according to any one of claims 5 to 8, characterized in that, Determining the target information based on the first encoded information includes: The first information is determined based on the second encoding information, and the second information is determined based on the third encoding information; The target information is obtained by concatenating the first information and the second information according to the first identifier corresponding to the first information and the second information corresponding to the second information.
11. An electronic device, characterized in that, include: One or more processors; One or more memories; the one or more memories storing one or more programs that, when executed by one or more processors, cause the method as described in any one of claims 1 to 10 to be performed.
12. A chip, characterized in that, The chip includes 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 such that the method as described in any one of claims 1 to 10 is executed.
13. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on an electronic device, cause the method as described in any one of claims 1 to 10 to be performed.
14. A program product, characterized in that, The program product includes program code that, when run on an electronic device, causes the method as described in any one of claims 1 to 10 to be performed.
Citation Information
Patent Citations
Position acquisition method and device, electronic equipment and computer readable storage medium
CN114510953A
Information transmission method and electronic equipment
CN119520502A