Search

CN-120676097-B - Information transmission method and electronic equipment

CN120676097BCN 120676097 BCN120676097 BCN 120676097BCN-120676097-B

Abstract

The application provides an information transmission method and electronic equipment. The method comprises the steps of obtaining a first image by electronic equipment, wherein the first image comprises particle points used for indicating first coding information of target information, the particle points comprise positioning points used for positioning a display area and information points used for indicating the first coding information, determining a target area containing the particle points in the first image, extracting the particle points from the first image according to the target area, determining the first coding information of the target information according to the distribution condition of the particle points, and determining the target information according to the first coding information. According to the technical scheme, the data volume transmitted between the electronic devices can be increased, so that functions such as account login, video meeting, adding of devices and the like are realized, and the application scene of information transmission is enriched.

Inventors

  • LI QIAO
  • LENG YONGQIANG
  • HOU PENGFEI

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20250307

Claims (14)

  1. 1. A method of information transmission, the method being applied to a first electronic device, the method comprising: Acquiring a first image, wherein the first image comprises particle points of first coding information for indicating target information, the particle points comprise positioning points for positioning a display area and information points for indicating the first coding information, and the information points are distributed in the display area; extracting the particle points from a target region of the first image; Determining a plurality of display areas according to the distribution condition of the positioning points in the particle points; Determining information encoded in each of the plurality of display areas according to the distribution of information points included in each of the plurality of display areas; the method comprises the steps of taking a first target display area as a display area of a coding start, and combining information coded by each display area in a plurality of display areas according to a preset sequence to obtain first combined information, wherein the first target display area is any one display area in the plurality of display areas; Taking a second target display area as a display area of an encoding start under the condition that the first combination information is not successfully decoded, and combining information encoded by each display area in the plurality of display areas according to a preset sequence until the obtained second combination information can be successfully decoded, wherein the second target display area is different from the first target display area; And determining the target information according to the first coding information.
  2. 2. The method of claim 1, wherein the display area comprises a first sub-display area and a second sub-display area; the determining information encoded in each of the plurality of display areas according to the distribution of information points included in each of the plurality of display areas includes: and determining information respectively encoded by the first sub-display area and the second sub-display area in each of the plurality of display areas according to the distribution condition of information points included in each of the plurality of display areas.
  3. 3. The method according to claim 1 or 2, wherein said determining said target information from said first encoded information comprises: and under the condition that the first encoded information is successfully decoded, obtaining the target information.
  4. 4. The method according to claim 1 or 2, wherein said determining the information encoded in each of said plurality of display areas based on the distribution of the information points comprised by each of said plurality of display areas comprises: Inquiring from a preset first code table according to the distribution condition of the information points in each display area so as to determine the information coded in each display area.
  5. 5. The method of claim 1, wherein the first image comprises a first sub-image and a second sub-image, the target information comprises first information and second information, wherein the first sub-image comprises first particles of second encoded information for indicating the first information, the second sub-image comprises second particles of third encoded information for indicating the second information, Wherein the determining the first encoded information of the target information according to the distribution condition of the particle points includes: and determining second coding information of the first information according to the distribution condition of the first particle points, and determining third coding information of the second information according to the distribution condition of the second particle points.
  6. 6. The method of claim 5, wherein the first particle point and the second particle point further comprise an identification point for identifying a target first display region of a coding start.
  7. 7. The method of claim 6, wherein the determining the second encoded information of the first information according to the distribution of the first particles comprises: determining a plurality of first display areas according to the distribution of the positioning points in the first particle points; determining information encoded in each of the plurality of first display areas according to the distribution of information points included in each of the plurality of first display areas; and taking the target first display area as a first display area of coding start, and combining the information coded in each first display area in the plurality of first display areas according to a preset sequence to obtain the second coded information, wherein the target first display area is a first display area determined according to the distribution of the identification points.
  8. 8. The method of claim 5, wherein the determining the second encoded information of the first information according to the distribution of the first particles comprises: determining a plurality of first display areas according to the distribution of the positioning points in the first particle points; Determining information encoded in each of the plurality of first display areas according to a distribution of information points included in each of the plurality of first display areas; Taking a third target display area as a first display area of a coding start, and combining information coded in each of the plurality of first display areas according to a preset sequence to obtain third combined information, wherein the third target display area is any one of the plurality of first display areas; The method further comprises the steps of: In the case of unsuccessful decoding according to the third combined information, a fourth target display area is used as a first display area of the coding start, and the information coded by each of the plurality of first display areas is combined according to a preset sequence 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 And determining the third combined information as the second encoded information under the condition of successful decoding according to the third combined information.
  9. 9. The method of claim 7 or 8, wherein said determining information encoded in each of said plurality of first display areas from a distribution of information points comprised by each of said plurality of first display areas comprises: Inquiring from a preset second code table according to the distribution condition of the information points included in each first display area so as to determine the information coded in each first display area.
  10. 10. The method according to any one of claims 5 to 8, wherein said determining said target information from said first encoded information comprises: Determining the first information according to the second coding information, and determining the second information according to the third coding information; And splicing the first information and the second information according to a first identifier corresponding to the first information and a second identifier corresponding to the second information to obtain the target information.
  11. 11. An electronic device comprising one or more processors, one or more memories, the one or more memories storing one or more programs that when executed by the one or more processors cause the method of any of claims 1-10 to be performed.
  12. 12. A chip comprising a processor and a communication interface for receiving signals and transmitting the signals to the processor, the processor processing the signals such that the method of any of claims 1 to 10 is performed.
  13. 13. A readable storage medium having stored therein instructions which, when run on an electronic device, cause the method of any of claims 1 to 10 to be performed.
  14. 14.A program product, characterized in that the program product comprises program code which, when run on an electronic device, causes the method of any one of claims 1 to 10 to be performed.

Description

Information transmission method and electronic equipment Technical Field The present application relates to the field of electronic technology, and more particularly, to a method for information transmission and an electronic device. Background In some scenarios where information is required to be transferred between electronic devices, connection pairing between devices may be performed by scanning dynamic patterns. For example, when a first electronic device and a second electronic device need to be connected by devices, the second electronic device needs to scan a dynamic pattern displayed on the first electronic device to perform connection pairing. However, the amount of data encoded in the dynamic pattern is small, for example, only 6-bit digital transmission can be realized, which limits the application scenarios. Disclosure of Invention The embodiment of the application provides an information transmission method and electronic equipment. According to the technical scheme, the data volume transmitted between the electronic devices can be increased, so that functions such as account login, video meeting, adding of devices and the like are realized, and the application scene of information transmission is enriched. In a first aspect, an information transmission method is provided and applied to a first electronic device, and the method comprises the steps of obtaining a first image, wherein the first image comprises particle points used for indicating first coding information of target information, the particle points comprise positioning points used for positioning a display area and information points used for indicating the first coding information, the information points are distributed in the display area, extracting the particle points from the target area of the first image, determining the first coding information of the target information according to the distribution condition of the particle points, and determining the target information according to the first coding information. The first image may be, for example, an image displayed by a second electronic device acquired by the first electronic device. For example, the first image may be an image of the second electronic device encoding the target information to be transmitted. The particle dots may be annularly distributed. Other shapes may be used, and embodiments of the present application are not limited. It should be appreciated that the first electronic device may obtain N frames of first images and decode based on the N frames of first images to obtain the target information, where N is greater than or equal to 3. The target region may be, for example, an annular region comprising a distribution of particle points. Illustratively, the size of the target information may be 160 bits (bits). In the case of mapping every 8 bits into one character, the target information may include 20 characters. The first encoding information of the target information may be that the 20 characters are encoded using a first encoding method, for example, 32 characters are obtained after encoding, including the original 20 characters and 12 check characters, and the 32 characters may be encoded in the display area, respectively. According to the embodiment of the application, the first electronic device can scan the image displayed by the second electronic device to obtain the first image, extract the particle points from the target area of the first image, determine the first coding information of the transmitted target information according to the distribution condition of the particle points, and determine the target information based on the first coding information. Therefore, the first electronic device can conveniently acquire the target information transmitted by the second electronic device in a pattern scanning mode, so that the technological sense and the concealment of information transmission can be improved. In addition, the second electronic equipment obtains first coding information after coding the target information, and codes the first coding information in different display areas, so that redundant coding is avoided, and the data size of the transmitted information can be improved. In some implementations, the first electronic device determines first encoded information of target information according to distribution conditions of particle points, wherein the first electronic device determines a plurality of display areas according to distribution conditions of positioning points in the particle points, determines information encoded in each of the plurality of display areas according to distribution conditions of information points included in each of the plurality of display areas, combines the information encoded in each of the plurality of display areas with the first target display area as a display area of a coding start and in a preset sequence to obtain first combined information, the first target display area is any one of the