Information transmission method and electronic equipment
By displaying specially designed images between devices and utilizing color space conversion and cluster analysis techniques, the problem of inconvenient information transmission between devices is solved, enabling convenient information interaction and efficient decoding, thus improving the user experience.
Patent Information
- Application Number
- CN202410601613.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-11-14
AI Technical Summary
In existing technologies, information transmission between devices usually uses QR code scanning, which results in a long and inconvenient interaction path, especially when switching devices or cloning data.
By displaying a specially designed image containing the information to be transmitted on a first device, a second device scans the image to obtain device connection information and uses techniques such as color space conversion, closing operations, and cluster analysis to reduce glare interference and achieve information decoding.
It shortens the interaction path of information transmission between devices, improves the convenience and technological feel of operation, reduces reflection interference, and increases the probability of successful decoding.
Smart Images

Figure CN120956723A_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 requiring information transfer between devices, QR code scanning is commonly used for device pairing, account login, and other similar tasks. For example, when a user switches devices or clones data using the first device, data needs to be transferred from the second device to the first. The second device needs to scan the QR code displayed on the first device to establish a connection and pairing. However, scanning QR codes involves a lengthy and inconvenient interaction path. Summary of the Invention
[0003] This application provides an information transmission method and an electronic device. In this technical solution, a second electronic device can scan an image displayed by a first electronic device to obtain first information therein, thereby realizing information transmission between the two. For example, when replacing a new device or cloning data, this can shorten the device interaction path and enhance the sense of technology.
[0004] In a first aspect, this application provides a system including a first electronic device and a second electronic device, wherein the first electronic device is configured to send a first message for detecting devices around the first electronic device; the second electronic device is configured to: receive the first message; send first instruction information according to the first message; the first electronic device is further configured to display a first image according to the first instruction information, the first image including a first part and a second part; the second electronic device is further configured to: acquire N frames of the first image, each frame of the N frames including a first part and a second part, the second parts of two adjacent frames of the N frames being in the same position, wherein N is greater than or equal to 2; and decode the first information according to the second part.
[0005] It should be understood that the first part may be the background of the first image, and the second part may be the portion of the first image that encodes the first information. For example, the second part may be superimposed on the first part.
[0006] This first piece of information may include, but is not limited to, device connection information, account login information, verification code, website, meeting link, data information to be transmitted, screen projection information, etc.
[0007] The device connection information may include, but is not limited to, a connection pairing code, a product serial number, or a media access control MAC address.
[0008] The first indication information can be used to indicate the presence of a device in the vicinity of the first electronic device, or the first indication information can be a confirmation message after scanning the first message.
[0009] It should also be understood that the embodiments of this application do not limit the specific operations performed by the second electronic device after obtaining the first information.
[0010] In other examples, the colors of the second portions of two adjacent frames in the N-frame image may be different. Alternatively, the colors of the second portions of any three consecutive frames in the N-frame image may be different, and this application does not limit this.
[0011] In other examples, the second portions of two adjacent frames in an N-frame image can encode the same or different information. When encoding different information, the first electronic device can divide the information to be encoded into multiple parts and encode them respectively in the second portions of different frames. Alternatively, multiple consecutive frames in an N-frame image can encode different information, and multiple sets of information can be encoded in the N-frame image; this application embodiment is not limited to this.
[0012] In other examples, the first part of two adjacent frames in N frames may be the same or different, and this application does not limit this.
[0013] Based on the system provided in the embodiments of this application, the first electronic device can encode the first information to be transmitted in the second part of the first image, and the second electronic device can acquire N frames of the first image and decode the first information based on the second part.
[0014] For example, when connecting devices, the second electronic device can scan or capture the image displayed on the first electronic device to obtain the device connection information (pairing code), thus quickly establishing a device connection. This shortens the device interaction path and enhances the technological feel when replacing a new device or cloning data.
[0015] In some implementations, before the second electronic device decodes the first information according to the second part, the second electronic device is also used to: perform color space conversion on the N frames of the first image to obtain N frames of the second image.
[0016] Based on the embodiments of this application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0017] For example, converting the first image from the RGB color space to the HSV color space, or the HSI color space for hue, saturation, and brightness.
[0018] In some implementations, the second electronic device is specifically used to: convert N frames of the first image from the RGB color space to the HSV color space of hue, saturation, and brightness; filter the hue H domain of each frame in the N frames of the first image to obtain N frames of the second image, wherein the angle value corresponding to the hue H domain of the second image is greater than a first preset value and less than a second preset value; binarize the N frames of the second image to obtain N frames of the third image; and determine the second part based on the N frames of the third image.
[0019] It should be understood that the specific values of the first preset value and the second preset value are not limited in the embodiments of this application.
[0020] Based on the embodiments of this application, by converting the color space and applying corresponding threshold filtering, the reflection phenomenon present in the first image can be filtered out, reducing the interference of reflection on the second electronic device to obtain the second part, and increasing the probability of successful decoding.
[0021] In some implementations, the second electronic device is specifically used to: perform a closing operation on N frames of the third image; determine the second part based on the result of the closing operation; or, perform cluster analysis on the particle points in the N frames of the third image; determine the second part based on the result of the cluster analysis.
[0022] Based on the embodiments of this application, determining the second part through a closing operation can reduce the interference of reflection on the second electronic device's acquisition of the second part, thereby increasing the likelihood of successful decoding. Furthermore, even in cases where the second part is significantly obscured or severely reflective, the second part can still be successfully acquired through cluster analysis, further increasing the probability of the electronic device successfully decoding the second part subsequently.
[0023] In some implementations, before the second electronic device performs cluster analysis on the N frames of the third image, the second electronic device is also used to: filter out particle points in the N frames of the third image whose area is smaller than a first area threshold.
[0024] Based on the embodiments of this application, small particle points in the third image can be filtered out, thereby reducing the interference of small particle points on the acquisition of the second part.
[0025] In some implementations, the second electronic device is specifically used to: perform intra-frame differential processing on the second part of each of the N frames of the first image to obtain N frames of grayscale images, wherein the intra-frame differential processing is the sum of the absolute values of the difference between the first channel image of the second part and the second channel image and the third channel image, respectively, and the first channel image, the second channel image, and the third channel image are one of the red R channel image, the green G channel image, and the blue B channel image, and each is different; perform inter-frame differential processing on the N frames of grayscale images to obtain N frames of differential images; perform binarization processing on the N frames of differential images to obtain N frames of fourth images; perform OR operation processing on the N frames of fourth images to obtain a first target image; and obtain first information based on the first target image.
[0026] For example, the first channel image is a B channel image, the second channel image is an R channel image, and the third channel image is a G channel image.
[0027] Based on the embodiments of this application, the second electronic device can decode the second part of the N-frame image to successfully obtain the first information encoded therein.
[0028] In some implementations, the second electronic device is specifically used to: filter particle points in the first target image whose area is smaller than a second area threshold to obtain a second target image; and decode the first information based on the second target image.
[0029] Based on the embodiments of this application, by filtering the particle points in the first target image, the particle points with smaller areas in the first target image can be filtered out, thereby reducing the interference of the particle points with smaller areas on the decoding results.
[0030] In some implementations, before the second electronic device performs binarization processing on the N frames of differential images, the second electronic device is further configured to: determine the degree of moiré pattern in each frame of the N frames of differential images; specifically, the second electronic device is configured to: filter out pixels in the N frames of differential images whose grayscale values are less than a third preset value, wherein the third preset value is related to the degree of moiré pattern; and perform binarization processing on the filtered N frames of differential images to obtain N frames of fourth images.
[0031] Based on the embodiments of this application, the second electronic device can also determine the degree of moiré patterns in the image and set a filtering threshold according to the degree of moiré patterns, thereby reducing the interference caused by moiré patterns and improving the probability of successful decoding.
[0032] In some implementations, the first electronic device is specifically used to: send a first message after the first electronic device is powered on for the first time; or, during data cloning, in response to a user-selected operation to indicate a new device, or in response to a user-selected operation to indicate an old device type, send the first message.
[0033] In this way, when the electronic device is powered on for the first time or during data cloning on subsequent power-ups, it can send an initial message to discover nearby devices. This technical solution helps the first electronic device to discover devices when needed for subsequent connection operations, thereby saving power consumption to some extent.
[0034] In some implementations, the first electronic device is further configured to: receive first data information sent by the second electronic device, the first data information including account information logged in on the second electronic device and / or wireless network information connected to the second electronic device.
[0035] It should be understood that the wireless network information to which the second electronic device is connected may include historical connections or current connections.
[0036] In other examples, the first data information may also include the privacy statement, settings, etc. of the second electronic device, which is not limited in this embodiment.
[0037] Based on the embodiments of this application, the second electronic device can send data such as account information and wireless network information to the first electronic device, thereby eliminating the need for the user to manually log in to their account or connect to the wireless network on the first electronic device, thus improving the user's operating experience with the first electronic device. For example, if the first electronic device is a newly purchased smartphone, this method allows the new phone to automatically log in to the user's account and automatically connect to the wireless network.
[0038] In some implementations, the first electronic device is further configured to: receive second instruction information sent by the second electronic device, the second instruction information being used to indicate second data information in the second electronic device; and display a second display interface according to the second instruction information, the second display interface including a first display card and a second display card, wherein the first display card is used to indicate importing second data information from the second electronic device, and the second display card is used to indicate downloading third data information from a cloud server.
[0039] Based on the embodiments of this application, the first electronic device can display options for data transmission for the user to select.
[0040] In some implementations, the first electronic device is further configured to: display a third display interface in response to a user clicking a first display card, the third display interface including the type and size of the second data information; send third instruction information to the second electronic device in response to a user's operation in the third display interface to instruct the import of data, the third instruction information indicating the start of importing data corresponding to the second data information; and receive data corresponding to the second data information sent by the second electronic device; or,
[0041] In response to the user clicking the second display card, a fourth display interface is displayed, which includes the type and size of the third data information; in response to the user performing an operation in the fourth display interface to indicate data import, the data corresponding to the third data information is imported from the cloud server.
[0042] Based on the embodiments of this application, the first electronic device can realize the transmission according to the user's operation, thereby enabling the first electronic device to be quickly available.
[0043] In some implementations, the second part is a ring pattern; the distance between the second electronic device and the first electronic device is less than or equal to a preset distance.
[0044] It should be understood that the second part can also be other shapes, which are not limited in the embodiments of this application.
[0045] Secondly, this application provides an information transmission method applied to a second electronic device, comprising: receiving a first message; sending first instruction information according to the first message; acquiring N frames of first images, each frame of the N frames of first images including a first part and a second part, wherein the positions of the second parts of two adjacent frames of the N frames of images are the same, wherein N is greater than or equal to 2; and decoding the first information according to the second part.
[0046] Based on the embodiments of this application, a second electronic device can acquire N frames of images, decode a second portion of the N frames to obtain first information, and perform corresponding operations based on the first information. This technical solution can conveniently realize information transmission between the two devices, shorten the interaction path for information transmission between devices, and enhance the sense of technology.
[0047] In one implementation, the method further includes: sending first data information to a first electronic device, the first data information including account information logged in on the second electronic device and / or wireless network information connected to the second electronic device.
[0048] In other examples, the first data information may also include the privacy statement, settings, etc. of the second electronic device, which is not limited in this embodiment.
[0049] Based on the embodiments of this application, the second electronic device can send data such as account information and wireless network information to the first electronic device, thereby eliminating the need for the user to manually log in to their account or connect to the wireless network on the first electronic device, thus improving the user's operating experience with the first electronic device. For example, if the first electronic device is a newly purchased smartphone, this method allows the new phone to automatically log in to the user's account and automatically connect to the wireless network.
[0050] In one implementation, before decoding the first information according to the second part, the method further includes: performing color space conversion on the N frames of the first image to obtain N frames of the second image.
[0051] Based on the embodiments of this application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0052] In one implementation, color space conversion is performed on N frames of first images to obtain N frames of second images, including: converting the N frames of first images from the RGB color space to the HSV color space of hue, saturation, and brightness; filtering the hue H domain of each frame in the N frames of first images to obtain N frames of second images, wherein the angle value corresponding to the hue H domain included in the second images is greater than a first preset value and less than a second preset value; the method further includes: binarizing the N frames of second images to obtain N frames of third images; and determining a second part based on the N frames of third images.
[0053] It should be understood that the specific values of the first preset value and the second preset value are not limited in the embodiments of this application.
[0054] Based on the embodiments of this application, by converting the color space and applying corresponding threshold filtering, the reflection phenomenon present in the first image can be filtered out, reducing the interference of reflection on the second electronic device to obtain the second part, and increasing the probability of successful decoding.
[0055] In one implementation, before decoding the first information based on the second part, the second part is determined based on N frames of third images, including: performing a closing operation on the N frames of third images; determining the second part based on the result of the closing operation; or, performing cluster analysis on the particle points in the N frames of third images; determining the second part based on the result of the cluster analysis.
[0056] Based on the embodiments of this application, by performing a closing operation on the third image, the interference of reflection on the second electronic device's acquisition of the second part can be reduced, increasing the likelihood of successful decoding. Furthermore, even in cases where the second part is heavily obscured or severely reflective, the second part can still be successfully acquired through cluster analysis, further increasing the likelihood of the electronic device successfully decoding the second part subsequently.
[0057] In one implementation, before performing cluster analysis on the N frames of third images, the method further includes filtering out particle points in the N frames of third images whose area is smaller than a first area threshold.
[0058] Based on the embodiments of this application, small particle points in the third image can be filtered out, thereby reducing the interference of small particle points on the acquisition of the second part.
[0059] In one implementation, decoding the first information according to the second part includes: performing intra-frame differential processing on the second part of each of the N frames of the first image to obtain N frames of grayscale images, wherein the intra-frame differential processing is the sum of the absolute values of the difference between the first channel image of the second part and the second channel image and the third channel image, respectively, and the first channel image, the second channel image, and the third channel image are one of the red R channel image, the green G channel image, and the blue B channel image, and each is different; performing inter-frame differential processing on the N frames of grayscale images to obtain N frames of differential images; performing binarization processing on the N frames of differential images to obtain N frames of fourth images; performing OR operation processing on the N frames of fourth images to obtain a first target image; and obtaining the first information based on the first target image.
[0060] For example, the first channel image is a B channel image, the second channel image is an R channel image, and the third channel image is a G channel image.
[0061] Based on the embodiments of this application, the second electronic device can decode the second part of the N-frame image to successfully obtain the first information encoded therein.
[0062] In one implementation, decoding the first information based on the first target image includes: filtering particle points in the first target image whose area is smaller than a second area threshold to obtain a second target image; and decoding the first information based on the second target image.
[0063] Based on the embodiments of this application, by filtering the particle points in the first target image, the particle points with smaller areas in the first target image can be filtered out, thereby reducing the interference of the particle points with smaller areas on the decoding results.
[0064] In one implementation, before binarizing the N-frame difference images, the method further includes: determining the degree of moiré pattern in each frame of the N-frame difference images; wherein, binarizing the N-frame difference images to obtain N-frame fourth images includes: filtering out pixels in the N-frame difference images whose grayscale values are less than a third preset value, wherein the third preset value is related to the degree of moiré pattern; and binarizing the filtered N-frame difference images to obtain N-frame fourth images.
[0065] Based on the embodiments of this application, the second electronic device can also determine the degree of moiré patterns in the image and set a filtering threshold according to the degree of moiré patterns, thereby reducing the interference caused by moiré patterns and improving the probability of successful decoding.
[0066] In one implementation, the first information includes at least one of a connection pairing code, account login information, product serial number, and media access control MAC address.
[0067] It should be understood that the first information may also include other information, such as verification codes, URLs, etc., as limited by the embodiments of this application.
[0068] Thirdly, this application provides an electronic device, including: one or more processors; one or more memories; the one or more memories storing one or more programs, which, when executed by one or more processors, cause the information transmission method as described in the second aspect and any possible implementation thereof to be executed.
[0069] Fourthly, this application provides an apparatus including modules for implementing the information transmission method as described in the second aspect and any possible implementation thereof.
[0070] Fifthly, this application provides a chip including a processor and a communication interface. The communication interface is used to receive signals and transmit the signals to the processor, which processes the signals such that the information transmission method as described in the second aspect and any possible implementation thereof is executed.
[0071] In a sixth aspect, this application provides a readable storage medium storing instructions that, when executed on an electronic device, cause the information transmission method as described in the second aspect and any possible implementation thereof to be performed.
[0072] In a seventh aspect, this application provides a program product comprising program code that, when executed on an electronic device, causes the information transmission method as described in the second aspect and any possible implementation thereof to be performed. Attached Figure Description
[0073] Figure 1 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0074] Figure 2 This is a schematic diagram of the software structure of the electronic device provided in the embodiments of this application.
[0075] Figure 3 This is a schematic diagram of a set of graphical user interfaces (GUIs) provided in the embodiments of this application.
[0076] Figure 4 This is a schematic diagram of a set of GUIs provided in the embodiments of this application.
[0077] Figure 5 This is a schematic diagram of a full-screen display of an electronic device provided in an embodiment of this application.
[0078] Figure 6 This is a schematic diagram of another set of GUIs provided in the embodiments of this application.
[0079] Figure 7This application provides a process for obtaining a ring pattern.
[0080] Figure 8 Another process for obtaining a ring pattern is provided in the embodiments of this application.
[0081] Figure 9 This is a schematic diagram illustrating how to obtain device connection information according to an embodiment of this application.
[0082] Figure 10 This is a schematic diagram of a ring-shaped region provided in an embodiment of this application.
[0083] Figure 11 This is a schematic diagram illustrating a method for determining a connection pairing code by combining the results of multiple decodings, as provided in an embodiment of this application.
[0084] Figure 12 This is a schematic interactive diagram illustrating an information transmission method provided in an embodiment of this application.
[0085] Figure 13 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application.
[0086] Figure 14 This is a schematic block diagram of any of the electronic devices provided in the embodiments of this application. Detailed Implementation
[0087] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0088] The methods in this application embodiment can be applied to electronic devices such as smartphones, tablets, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, in-vehicle devices, smart TVs, wearable devices, foldable devices, and Internet of Things (IoT) devices.
[0089] Figure 1A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0090] 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.
[0091] 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.
[0092] In this embodiment, the processor 110 or GPU may include an encoding module, which can be used to encode device connection information. For example, the processor 110 or GPU may encode and superimpose a connection pairing code onto a circular pattern.
[0093] The processor 110 or GPU may include a feature enhancement module that can be used to perform feature particle point extraction, particle point filtering, or overlay, etc.
[0094] The processor 110 or GPU may also include a decoding module, which is an interface module that can be used to decode the feature particle points and obtain the connection pairing code.
[0095] The processor 110 or GPU may also include a multi-frame fusion module that can be used to fuse multiple decoding results to determine the final connection pairing code.
[0096] 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.
[0097] 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.
[0098] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus interface, etc.
[0099] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
[0100] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to realize communication between the processor 110 and the audio module 170.
[0101] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface.
[0102] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160.
[0103] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193.
[0104] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc.
[0105] USB interface 130 is an interface that conforms to the USB standard specification, specifically it can be a Mini USB interface, Micro USB interface, USB Type C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and it can also be used for data transfer between electronic device 100 and peripheral devices.
[0106] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0107] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0108] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110.
[0109] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0110] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0111] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0112] 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.
[0113] In this embodiment of the application, the wireless communication module 160 may further include a connection authentication module, which can be used to verify the connection pairing code and establish a connection relationship with the other device after the verification is successful.
[0114] 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.
[0115] 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.
[0116] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or a display panel made of materials selected from organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-oled, or quantum dot light-emitting diodes (QLEDs). In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0117] In this embodiment of the application, the display screen 194 can also be used to display a ring pattern (such as the Harmony ring) that includes coded device connection information.
[0118] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0119] The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture still images or videos. In this embodiment, the camera 193 in a legacy device can be used to scan the display interface of another electronic device to obtain an image including a circular pattern.
[0120] A digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals.
[0121] Video codecs are used to compress or decompress digital video.
[0122] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
[0123] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.
[0124] Electronic device 100 can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0125] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.
[0126] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.
[0127] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.
[0128] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0129] The 170D headphone jack is used to connect wired headphones.
[0130] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, an accelerometer sensor 180E, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, a bone conduction sensor 180M, etc.
[0131] Button 190 includes the power button, volume buttons, etc.
[0132] Motor 191 can generate vibration alerts.
[0133] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0134] The SIM card interface 195 is used to connect the SIM card.
[0135] Figure 2 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system library layer, and the kernel layer. The application layer may include a series of application packages.
[0136] like Figure 2 As shown, the application package may include applications (Apps) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and wallet.
[0137] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0138] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0139] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0140] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0141] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0142] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0143] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0144] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0145] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part is the core library itself.
[0146] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0147] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0148] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0149] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0150] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0151] A 2D graphics engine is a graphics engine for 2D drawing.
[0152] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0153] In scenarios requiring information transfer between devices, QR code scanning is commonly used for device pairing, account login, and other similar tasks. For example, when a user switches devices or clones data using the first device, data needs to be transferred from the old device to the first device. The old device needs to scan the QR code displayed on the first device to establish a connection and pairing. However, scanning QR codes involves a lengthy and inconvenient interaction path.
[0154] In view of this, embodiments of this application provide an information transmission method and an electronic device. In this technical solution, a first device can overlay the information to be transmitted onto a specially designed image. For example, when device connection is required, the first device can display the specially designed image, and a second device can scan the image to obtain device connection information, thereby achieving connection between the first and second devices. When switching devices or cloning data, the interaction path between devices can be shortened, and the technological feel can be enhanced.
[0155] Before introducing the technical solution of this application, the following is a brief introduction to some of the technical terms that may be involved in this application.
[0156] Region of interest (ROI): In image processing, the region that needs to be processed from the image is delineated using methods such as rectangles, circles, ellipses, and irregular polygons. This region is called the region of interest.
[0157] Hue, Saturation, and Value (HSV) color space: A color space that uses hue, saturation, and value to represent color, commonly used in image processing. Hue (H) represents color, saturation (S) represents the lightness or darkness of a color, and value (V) represents the brightness or darkness of a color.
[0158] The red, green, and blue (RGB) color space is a color space that uses red, green, and blue as the three primary colors and creates a rich and wide range of colors by layering them to varying degrees. The RGB color space is commonly used in video, multimedia, and web design, and electronic device displays are based on the RGB color space.
[0159] Moiré patterns: High-frequency interference stripes that appear on a photosensitive element; these are irregular, high-frequency, colored stripes that appear on an image.
[0160] Image binarization: Setting the grayscale value of pixels in an image to 0 or 255. After image binarization, the entire image presents a visual effect with only black and white.
[0161] The following section will describe the device replacement process and data cloning process of the first device in this application, using several graphical user interfaces (GUIs). The following explanation will use electronic device 200 as an example of the first device.
[0162] For example, Figure 3 This is a schematic diagram of a set of GUIs provided in an embodiment of this application. Among them, from Figure 3 (a) through (k) in the diagram illustrate the process of a user experiencing the power-on process on electronic device 200.
[0163] See Figure 3 In (a), the GUI is the power-on display interface 210 of the electronic device 200. This display interface 210 may include multiple language options for the user to choose from. For example, the user may select Simplified Chinese, or the electronic device 200 may default to Simplified Chinese.
[0164] The display interface 210 may also include a start function button 211. When the electronic device 200 detects that the user has clicked the start function button 211, it can display the following: Figure 3 The GUI shown in (b) is shown in the image.
[0165] See Figure 3 In (b) of the diagram, the GUI is a display interface 220 on the electronic device 200 for the user to select a region. This display interface 220 may include a card 221 and a continue function button 222. The card 221 may include multiple countries or regions. For example, the user can select China from card 221.
[0166] For example, when the electronic device 200 detects that the user has clicked the continue function button 222, it can display something like this: Figure 3 The GUI shown in (c) is shown in the image.
[0167] See Figure 3 In (c), the GUI is the display interface 230 of the electronic device 200. The display interface 230 may include the text "Quick Start" and icons 231 for indicating the electronic device.
[0168] Before or while the electronic device 200 displays the display interface 230, the electronic device 200 may broadcast a Bluetooth message to discover nearby second devices. The display interface 230 may display the text "Discovering nearby devices".
[0169] When a user brings the second device close to the electronic device 200, for example, when the distance between the second device and the electronic device 200 is less than or equal to a preset distance, a settings card can be displayed on the second device. When the second device detects that the user has clicked the settings function button in the settings card, it can send an instruction message to the electronic device 200 via Bluetooth, so that the electronic device 200 can display, for example... Figure 3 The GUI shown in (d) is shown in the image.
[0170] See Figure 3 In section (d), the GUI is the display interface 240 used by the electronic device 200 for connection verification. The display interface 240 may include specially designed images, such as dynamic patterns. These specially designed images can be used for device connection, account login, data transmission, and seamless connection between the electronic device 200 and other electronic devices. They can also be used for screen projection and meeting participation by the electronic device 200.
[0171] For example, the dynamic pattern can be a ring, such as the Harmony Ring, or other shapes, such as rectangles, circles, ellipses, etc. This application embodiment uses a ring as an example to illustrate the dynamic pattern. The ring can be composed of multiple white and blue alternating particles, and these particles can implicitly contain the first information of the electronic device 200. These multiple white and blue alternating particles can be dynamic or static.
[0172] For example, the first piece of information may include device connection information, verification code, account login information, screen sharing information, meeting information, etc. The device connection information may be a connection pairing code, such as the 6-digit number "147258". In other examples, the connection pairing code may also include English letters, or it may be 4 or 8 digits, etc.
[0173] Alternatively, the device connection information may also include other information about the electronic device 200, such as device identifier, model, media access control (MAC) address, etc.
[0174] It should be understood that the embodiments of this application are illustrated by taking as an example that the first information may include device connection information, and the device connection information is a connection pairing code.
[0175] It should be understood that the electronic device 200 may use a certain encoding method to hide the connection pairing code in a ring pattern.
[0176] In some examples, the electronic device 200 can divide the ring into multiple regions, each of which can represent a single digit. For instance, the electronic device 200 can divide the ring pattern into six equal regions, each of which can include a different number of particles, thereby distinguishing different digits.
[0177] Understandably, the electronic device 200 can also divide the ring pattern into nine equal regions. These nine regions may include some of the same connection pairing codes. This redundant encoding method can improve the success rate of decoding by the peer electronic device. For example, when the peer electronic device scans the ring pattern, interference such as reflections and moiré patterns may cause it to only be able to successfully decode a portion of the ring pattern. In this case, even if the peer electronic device decodes only a portion of the region, it can still obtain the complete connection pairing code and complete the device connection.
[0178] Alternatively, the electronic device 200 may divide the ring pattern into a greater number of regions, such as including three or more sets of connection pairing codes, which is not limited in this embodiment.
[0179] It should be understood that the electronic device 200 can also use other methods for encoding, for example, particles can be displayed in corresponding positions in a preset order in each area, thereby distinguishing different numbers.
[0180] After the electronic device 200 displays the circular pattern, the user can scan the circular pattern using a second device, or the user can photograph the display interface 240 of the electronic device 200 using a second device. This allows the second device to acquire and decode the circular pattern, obtaining the connection pairing code. The second device then uses this connection pairing code to perform connection pairing and establish a device connection. In this way, the second device only needs to photograph or scan the circular pattern displayed by the first device to complete the device connection, thereby improving the efficiency and technological sophistication of the device connection.
[0181] After the device is connected, the electronic device 200 can display as follows: Figure 3 The GUI shown in (e) is shown in the image.
[0182] See Figure 3 In section (e), the GUI is a display interface 250 used by electronic device 200 to verify the lock screen password of the second device. This display interface 250 can be used by the user to input the lock screen password of the second device. This improves the security of the device connection. It should be understood that the lock screen password of the second device entered by the user will be used as the lock screen password of electronic device 200. This eliminates the need for the user to set a separate lock screen password on electronic device 200, simplifying user operations and improving the interaction efficiency between the user and electronic device 200.
[0183] When the electronic device 200 detects that the user has entered the correct lock screen password, it can display something like this: Figure 3 The GUI shown in (f) is shown in the image.
[0184] It should be understood that Figure 3 Option (e) is an optional scheme. In some examples, after the second device scans the circular pattern in the display interface 240 and establishes a device connection, the electronic device 200 can directly display, as shown in the example. Figure 3 The GUI shown in (f) is shown in the image.
[0185] See Figure 3 In (f), the GUI is the display interface 255 of the electronic device 200. The display interface 255 may include the text content "Setting up..." and a loading icon.
[0186] It should be understood that when electronic device 200 displays the display interface 255, the second device can transmit some data to electronic device 200, such as Huawei account information, Wi-Fi information (such as the name and password of the wireless LAN successfully accessed by the second device), protocol statements, or privacy information. This allows for rapid migration of accounts and wireless networks without requiring separate settings on electronic device 200, thus simplifying user operations.
[0187] When the electronic device 200 detects that the above data transmission is complete, it can display as follows: Figure 3The GUI shown in (g) is shown in the image.
[0188] See Figure 3 In (g), the GUI is a display interface 260 of the electronic device 200 for data import. The display interface 260 may include display cards 261 and 262. Display card 261 may include the text "Import directly from in-use device" and the time required for data import (e.g., approximately 20 minutes), while display card 262 may include the text "Download via cloud backup" and the time required for data import (e.g., approximately 15 minutes).
[0189] The display interface 260 may also include a function button 263 that prevents data transfer. When the user clicks this function button 263, the electronic device 200 will not execute the data import process.
[0190] In other examples, after electronic device 200 detects that a user clicks on display card 262, it can download data from a cloud server.
[0191] For example, when the electronic device 200 detects that a user has clicked on the display card 261, it can display something like this: Figure 3 The GUI shown in (h) is shown in the image.
[0192] See Figure 3 In section (h), the GUI is the display interface 265 for the electronic device 200 to display data import options. The display interface 265 may include a display card 2651 for basic data, a display card 2652 for applications and data, a display card 2653 for system settings, and a start import function button 2654.
[0193] The display card 2651 may include the number of basic data items (e.g., 1526 items) and the memory size (e.g., 45.3GB) of the second device. The display card 2652 may include the number of application and data items (e.g., 2531 items) and the memory size (e.g., 35.6GB) of the second device. The display card 2653 may include the number of system settings data items (e.g., 531 items) and the memory size (e.g., 5MB).
[0194] For example, when the electronic device 200 detects that the user has clicked the "Start Import" function button 2654, it can display something like this: Figure 3 The GUI shown in (i) is shown in the image.
[0195] See Figure 3In (i), the GUI is a display interface 270 of the electronic device 200 that displays the data import progress. The display interface 270 may include a progress bar 271 indicating the data import progress and the remaining time for data import.
[0196] Once the electronic device 200 detects that the data import is complete, it can display something like this: Figure 3 The GUI shown in (j) is shown in the image.
[0197] See Figure 3 In (j), the GUI can be the display interface 275 of an electronic device. The display interface 275 may include icons of multiple electronic devices and function buttons 2751 for immediate experience.
[0198] When the electronic device 200 detects that the user has clicked the function button 2751, it can display the following: Figure 3 The GUI shown in (k) is shown in the image.
[0199] It should be understood that in other examples, after the electronic device 200 detects that the data import is complete, the electronic device 200 can also directly display... Figure 3 The GUI shown in (k) is not limited in this embodiment.
[0200] See Figure 3 In (k), the GUI is the display interface 280 of the electronic device 200. This display interface 280 can be the desktop of the electronic device 200, and it can include multiple applications. The layout of the applications in the display interface 280 is the same as the layout of the desktop on the second device. Thus, after the user powers on the device, the data migration from the second device to the first device is completed.
[0201] Based on the embodiments of this application, when using the first device, the user can hide the device connection information in a specially designed image (such as a circular pattern). The second device scans the specially designed image to obtain the device connection information and establishes a connection with the first device based on the device connection information. This simplifies the device connection process and enhances the technological feel of the device connection. After the devices are connected, convenient operations on the first device allow the first device to obtain data from the second device, complete data migration, and make the new device quickly available, improving the user's boot-up experience of the first device.
[0202] The above combination Figure 3 The process of users operating on the first device has been introduced. The following will combine... Figure 4 This describes the user's operation process on the second device during the boot-up experience.
[0203] For example, Figure 4This is a schematic diagram of a set of GUIs provided in an embodiment of this application. Among them, from Figure 4 (a) through (g) illustrate the process by which a user operates on the second device to transfer data to the first device.
[0204] See Figure 4 In (a), the GUI is the display desktop 310 of the electronic device 300. The display desktop 310 may include multiple applications in the electronic device 300.
[0205] It should be understood that Bluetooth on electronic device 300 is enabled. When electronic device 300 detects the Bluetooth broadcast message from electronic device 200, it can display the following: Figure 4 The GUI shown in (b) is shown in the image.
[0206] Alternatively, after electronic device 300 detects a Bluetooth broadcast message from the first device (such as electronic device 200), it can determine a first distance to electronic device 200 via Bluetooth ranging. When the first distance is less than or equal to a preset distance, electronic device 300 can display something like... Figure 4 The GUI shown in (b) is shown in the image.
[0207] In other examples, electronic device 300 displays, for example... Figure 4 Before the GUI shown in (b), it may be in the lock screen display interface or the display interface of other applications, which is not limited in this embodiment of the application.
[0208] See Figure 4 In (b) of this document, the electronic device 300 may display a display interface 311. This display interface 311 may include an indicator icon 3111 for the first device, the model number of the first device (e.g., P60), and a settings function button 3112. The display interface 311 may also include a turn-off function button for closing the display interface 311.
[0209] When the electronic device 300 detects that the user has clicked the settings function button 3112, it can display the following: Figure 4 The GUI shown in (c) is shown in the image.
[0210] As mentioned earlier, after the user clicks the settings function button 3112, the electronic device 200 displays a display screen 240 containing the connection pairing code.
[0211] See Figure 4 In (c), the electronic device 300 can display a display interface 312. The display interface 312 may include a viewfinder 3121 and text content such as "Scan to verify" and "Aim the viewfinder at the pattern on the new device".
[0212] For example, the new device is the first device.
[0213] In other examples, the display interface 312 may also be a viewfinder display interface for calling a camera or a viewfinder display interface for a camera, which is not limited in this embodiment of the application.
[0214] It should be understood that the display interface 312 may cover a portion of the display interface 310, that is, the display interface 312 may be displayed in a semi-modal manner. This application embodiment does not limit the specific location of the display interface 312; it may be located at the bottom, top, or middle of the display interface 310. The viewfinder 3121 may be located at the center of the display interface 312 or at other locations on the display interface 312; this application embodiment does not limit its location.
[0215] In other examples, the display interface 312 can also be a full-screen display. For example, the Figure 4 (c) in the middle can be Figure 5 To make a substitution. Figure 5 This is a schematic diagram illustrating a full-screen display on an electronic device according to an embodiment of this application. See also... Figure 5 The electronic device 300 can display the display interface 312 in full screen, as described above.
[0216] For example, a user can use electronic device 300 to scan the display interface 240 of electronic device 200, obtain the annular area therein, decode the annular area to obtain the connection pairing code contained therein, and use the connection pairing code to establish a connection relationship with electronic device 200.
[0217] It should also be understood that when the viewfinder 3121 is framing the circular area, it can also display breathing animation or loading animation, which is not limited in the embodiments of this application.
[0218] For example, the breathing animation can be understood as the viewfinder 3121 gradually capturing the annular area from large to small when framing it. Furthermore, the annular area captured by the viewfinder 3121 can display a dynamic change effect of a colored outline. It should be understood that the colored outline can be regular or irregular, and it can also rotate in a preset direction, or dynamically change from large to small and from small to large. Alternatively, when capturing the annular area, the viewfinder 3121 can also display a dynamic icon indicating the loading content within the captured annular area. Or, when capturing the annular area, the viewfinder 3121 can also display a dynamic change effect of the loading process within the captured annular area.
[0219] For example, after the electronic device 300 detects that the viewfinder has scanned a circular area, it can display something like this. Figure 4 The GUI shown in (d) is shown in the image.
[0220] It should be understood that the following description, in conjunction with specific embodiments, will introduce the process by which an electronic device decodes a ring-shaped area to obtain a connection pairing code, which will not be detailed here.
[0221] It should be understood that the display interface 312 may also include a manual verification option. When the electronic device 300 detects that the user clicks manual verification, it will display an interface for entering a 6-digit connection pairing code. At this time, the electronic device 200 will display an interface including the 6-digit connection pairing code. After the user enters the connection pairing code, the electronic device 300 and the electronic device 200 can establish a connection relationship after mutual verification. At this time, the electronic device 300 can display as follows: Figure 4 The GUI shown in (d) is shown in the image.
[0222] See Figure 4 In (d), the electronic device 300 can display a display interface 313. The display interface 313 may include icons indicating that the two devices are connecting and the text "Connecting".
[0223] After electronic device 300 is connected to electronic device 200, electronic device 300 can display as follows: Figure 4 The GUI shown in (e) is shown in the image.
[0224] See Figure 4 In (e), the electronic device 300 may display a display interface 314. The display interface 314 may include an icon showing the connection between the two devices and the text "Operate on new device".
[0225] For example, the new device is the first device.
[0226] For example, at this time, the electronic device 200 can display a display interface 250 to enhance the security of the device connection. After the user selects data on the electronic device 200 to perform data operations, for example, when the electronic device 200 detects that the user clicks the start import function button 2654, the electronic device 300 can display as follows: Figure 4 The GUI shown in (f) is shown in the image.
[0227] See Figure 4 In (f), the electronic device 300 can display a display interface 315. This display interface 315 can display instructions for migrating data from one device to another, as well as the text "Data import in progress".
[0228] Once the electronic device 300 detects that the data import is complete, it can display something like this: Figure 4 The GUI shown in (g) is shown in the image.
[0229] See Figure 4 In (g) of the above, the electronic device 300 can display a display interface 316. This display interface 316 is used to prompt the user that the data import is complete.
[0230] Based on the embodiments of this application, when using the first device, a user can use a second device to scan the ring pattern displayed on the first device to obtain the connection pairing code therein, and establish a connection relationship with the first device based on the connection pairing code. Subsequently, when the second device transmits data to the first device, the second device can also display operation instructions and the progress of data transmission, making it convenient for the user to obtain information about the data transmission status.
[0231] In some cases, when performing data cloning on electronic devices that have not been powered on for the first time, the second device can also establish a device connection by scanning a circular pattern. This will be discussed in the following section. Figure 6 This technical solution will be introduced.
[0232] For example, Figure 6 This is a schematic diagram of another set of GUIs provided in the embodiments of this application. Among them, from Figure 6 (a) through (k) in the diagram illustrate the process by which a user operates on electronic device 400 to perform data cloning.
[0233] See Figure 6 In (a), the GUI can be the display desktop 410 of the electronic device 400. The display desktop 410 can include multiple applications. For example, the multiple applications can include a first application, which can be an application for data cloning, such as mobile phone cloning.
[0234] For example, after the electronic device 400 detects that the user has clicked on the first application, it can display something like this. Figure 6 The GUI shown in (b) is shown in the image.
[0235] See Figure 6 In (b) of the diagram, the GUI is the display interface 420 of the first application. The display interface 420 may include display cards 421 and 422. Display card 421 may include the text "This is the second device" and an icon. Display card 422 may include the text "This is the first device" and an icon.
[0236] When the electronic device 400 detects that the user has clicked the display card 422, it can display something like this: Figure 6 The GUI shown in (c) is shown in the image.
[0237] See Figure 6In (c), the electronic device 400 can display a display interface 430. This display interface 430 can include various types of second devices, such as Huawei and Android. This display interface 430 can be used by the user to select the type of second device.
[0238] For example, when the electronic device 400 detects that the user has selected "Huawei" as the type, it can display something like this: Figure 6 The GUI shown in (d) is shown in the image.
[0239] It is understandable that electronic device 400 can broadcast Bluetooth messages. When a second device (such as electronic device 300) detects the Bluetooth message, and the distance between electronic device 300 and electronic device 400 is less than or equal to a preset distance, electronic device 300 can display display interface 311. After the user clicks the settings function button 3112, electronic device 300 can send instruction information to electronic device 400. At this time, electronic device 400 can display, for example... Figure 6 The GUI shown in (d) is shown in the image.
[0240] In other examples, when the electronic device 400 detects that the user has selected "Huawei" as the type of operation, it can also directly display something like this. Figure 6 The GUI shown in (e) is shown in the image.
[0241] See Figure 6 In section (d), the GUI is a display interface 450 used by the electronic device 400 for connection verification. This display interface 450 may include specially designed images, such as animated patterns, which can be used to enable the electronic device 400 to connect with other electronic devices.
[0242] It should be understood that Figure 6 For details regarding (d) in the text, please refer to [link / reference]. Figure 3 The relevant description in (d) of the document.
[0243] It should also be understood that Figure 6 (e) to (k) can be found in [reference]. Figure 3 For the sake of brevity, the relevant descriptions of (e) to (k) in the table will not be repeated here.
[0244] Based on the embodiments of this application, during data cloning, the first device can hide its connection information within a specially designed image (such as a circular pattern). The second device scans this specially designed image to obtain the connection information and establishes a connection with the first device based on this information. This simplifies the device connection process and enhances the technological feel of the connection. After the devices are connected, convenient operations on the first device allow it to acquire data from the second device, completing the data migration.
[0245] In other examples, device A can also encode account information into a specially designed image (such as a circular pattern). When account login is required, device A can display this circular pattern, and device B can scan and parse the circular pattern displayed by device A to achieve the account login function. It should be understood that the above solution is also applicable to scenarios such as device connection establishment, data transmission, account login, screen projection, seamless connectivity, and video conferencing.
[0246] The above combination Figure 3-6 The GUI introduces the process of quickly making new machines available and cloning data. The following section will combine... Figure 7-11 This application describes the process by which an electronic device acquires and decodes a circular pattern in an embodiment of the present application.
[0247] It should be understood that the embodiments of this application are illustrated by taking the example of a first device encoding device connection information in a ring-shaped pattern. First, in conjunction with Figure 7-8 The process of acquiring the circular pattern using the second device is described.
[0248] For example, Figure 7 This application provides a process for obtaining a ring pattern.
[0249] During device connection, the first device encodes the device connection information into a circular pattern and displays a screen containing that circular pattern. After the second device scans the display screen containing the circular pattern on the first device using a camera, it first identifies the circular pattern from the image. For example... Figure 7 As shown, the process of the second device acquiring the ring pattern may include steps 1 to 5.
[0250] Step 1: The second device converts the RGB image containing the circular pattern into an HSV image.
[0251] For example, the image containing the ring pattern acquired by the second device is generally an RGB image, which the second device converts into an HSV image. In the HSV image, there are corresponding numerical distributions in the H, S, and V domains.
[0252] It should be understood that the second device can use the following formula to convert an RGB image containing a circular pattern into an HSV image.
[0253]
[0254]
[0255] v = max
[0256] Where (r, g, b) represent the red, green, and blue coordinates of a color, respectively, and their values are real numbers between 0 and 1. max is the maximum value among r, g, and b. min is the minimum value among r, g, and b.
[0257] Step 2: The second device performs threshold filtering in the H domain, S domain and V domain respectively.
[0258] For example, the H domain can be measured in angles, with values ranging from 0 degrees to 360 degrees. In this embodiment, the second device can retain the components in the H domain of the image whose angles are greater than the first angle and less than or equal to the second angle, while filtering out the remaining angles.
[0259] In some examples, the ring pattern is predominantly blue, so the first angle can be 210 degrees and the second angle can be 270 degrees. This filtering method allows the second device to retain the blue component of the image while filtering out the other color components. Thus, even if the image containing the ring pattern acquired by the second device contains reflections, this filtering of the reflective parts reduces interference from reflections.
[0260] In other examples, the ring pattern is predominantly green, so the first angle can be 90 degrees and the second angle can be 150 degrees. This filtering method allows the second device to retain the green component of the image while filtering out the other color components.
[0261] It should be understood that the first angle and the second angle can be set by the developers based on experience, or they can be determined by the second device based on the numerical distribution of the H domain. The specific method of obtaining the first angle and the second angle is not limited in the embodiments of this application.
[0262] Similarly, the S-domain represents saturation, indicating how close a color is to a spectral color, and can be represented by 0 to 1 (or 100%). 0 represents the lowest saturation (pure white), and 1 represents the highest saturation, the closest to the spectral color.
[0263] The V range represents brightness, indicating the lightness or darkness of a color, and can be represented by 0 to 1 (or 100%). 0 represents the lowest brightness (pure black), and 1 represents the highest brightness, the brightest color.
[0264] By setting the S threshold and V threshold, darker colors in an image can be filtered out.
[0265] For example, the second device can retain components in the S domain whose values are greater than the first saturation threshold and less than or equal to the second saturation threshold, and retain components in the V domain whose values are greater than the first brightness threshold.
[0266] It should be understood that the specific values of the first saturation threshold, the second saturation threshold, and the first brightness threshold are not limited in the embodiments of this application. For example, the first saturation threshold may be 0.3 or 0.35, the second saturation threshold may be 0.9 or 0.85, and the first brightness threshold may be 0.5 or 0.6.
[0267] In other examples, the second device may also perform threshold filtering in the H domain alone in step 2, without performing threshold filtering in the S and V domains.
[0268] Step 3: The second device performs binarization processing on the image.
[0269] After threshold filtering in step 2, the second device can perform binarization processing on the image. For example, the second device can set grayscale thresholds in the S and V domains. The portion greater than the grayscale threshold is set to 1 (or grayscale value 255), i.e., white, and the portion less than or equal to the threshold is set to 0 (or grayscale value 0), i.e., black.
[0270] For example, in the S domain, the second device can set a first grayscale threshold, where the portion greater than the first grayscale threshold is set to 1, representing white, and the portion less than or equal to the first grayscale threshold is set to 0, representing black.
[0271] In the V domain, the second device can set a second grayscale threshold. For the portion greater than the second grayscale threshold, the value is 1, representing white, and for the portion less than or equal to the second grayscale threshold, the value is 0, representing black.
[0272] In this way, the second device can obtain a binarized image A, which contains only black or white.
[0273] Step 4: The second device performs a closing operation on the binarized image A.
[0274] For example, the second device can first dilate image A and then erode it, so that discrete points form a connected component. See also... Figure 7 After performing a closing operation on image A, the discrete white points in image A form a connected component.
[0275] For example, dilating image A can be understood as using a first rectangle (m pixels wide and n pixels high). For each pixel X in image A, pixel X is placed at the center of the first rectangle. All other pixels covered by the first rectangle are traversed, and the value of pixel X is modified to the largest value among the pixels covered by the first rectangle.
[0276] Erosion of image A can be understood as using a first rectangle (m pixels wide and n pixels high), for each pixel X in image A, placing pixel X at the center of the first rectangle, traversing all other pixels covered by the first rectangle, and modifying the value of pixel X to the minimum value among the pixels covered by the first rectangle.
[0277] In other examples, the second device may also perform closing operations on image A in other ways, which are not limited in the embodiments of this application.
[0278] Step 5: The second device extracts the region of interest (ROI), which is the area where the annular pattern is located.
[0279] For example, the second device can perform ellipse fitting on the connected components to extract the ROI containing a circular pattern.
[0280] It should be understood that the embodiments of this application are not limited to a specific fitting method. In other examples, the second device may also employ rectangular fitting, etc.
[0281] Based on the embodiments of this application, the second device can successfully acquire the circular pattern displayed in the first device.
[0282] In some cases, due to severe reflection or partial occlusion of the ring pattern, the second device may be unable to form a connected component from the discrete points when performing a closing operation on the binarized image. This could prevent the second device from recognizing the complete ring pattern, leading to decoding failure and connection failure. Therefore, in such situations, this embodiment of the application can use particle point clustering to obtain the complete ring pattern. The following will combine... Figure 8 This technical solution will be introduced.
[0283] For example, Figure 8 Another process for obtaining a ring pattern is provided in the embodiments of this application. For example... Figure 8 As shown, the process of an electronic device acquiring a ring pattern may include steps 1 to 5.
[0284] Step 1: The second device converts the image containing the circular pattern into an HSV image.
[0285] Step 2: The second device performs threshold filtering in the H domain, S domain and V domain respectively.
[0286] Step 3: The second device performs binarization processing on the image.
[0287] It should be understood that steps 1 to 3 above can be found in the preceding text. Figure 7 For the sake of brevity, the relevant descriptions in steps 1 to 3 will not be repeated here.
[0288] Step 4: The second device performs particle point filtering on the binarized image A.
[0289] The second device binarizes the image to obtain image A, which includes both black and white pixels. White particles are discretely distributed throughout image A. Since some of these particles may be interfering points—for example, some larger particles might be interference points—the second device can filter the particles in image A.
[0290] For example, the second device can set an area threshold for particle points, retaining particle points with an area less than or equal to a first threshold m1, or retaining particle points with an area less than or equal to the first threshold m1 and greater than a second threshold m2, and filtering out the remaining particle points.
[0291] In this way, the second device can filter out some of the interfering particles in the image, which helps to improve the possibility of subsequent decoding.
[0292] It should be understood that step 4 is an optional step.
[0293] In other examples, before step 4, the second device may first perform edge detection on the binarized image A to extract the contours in image A in order to determine the area where the display screen of the first device is located in image A.
[0294] Step 5: The second device extracts the ROI, which is the area where the annular pattern is located.
[0295] For example, the second device can use a ring clustering algorithm to cluster the particle points to obtain multiple rings. Then, the second device can select a ring from the multiple rings whose aspect ratio is approximately 1 and whose ratio of the center of the ring to the particle point density of the ring region is greater than a third density threshold, and use this ring as the extracted ROI.
[0296] Alternatively, the second device can select from multiple rings an aspect ratio of approximately 1 and a particle point density in the ring region greater than a fourth density threshold, and use this ring as the extracted ROI.
[0297] It should be understood that ring clustering algorithms can be, for example, spectral clustering algorithms, Euclidean distance-based clustering algorithms such as the K-means algorithm, etc.
[0298] See also Figure 8The ROI ultimately extracted by the second device may include the complete ring pattern. In other examples, if the ring pattern is partially obscured, the ROI ultimately obtained by the second device may include a portion of the ring pattern, such as 60% or 75% of the entire ring pattern. However, due to some redundancy in the encoding by the first device, even though the second device has obtained a portion of the entire ring pattern, it may still successfully decode it subsequently to obtain the device connection information.
[0299] After the second device successfully extracts the ROI including the ring pattern, it can process the ROI to obtain the encoded device connection information. The following will combine... Figure 9 This technical solution will be introduced.
[0300] For example, Figure 9 This is a schematic diagram illustrating an embodiment of obtaining a connection pairing code provided in this application. For example... Figure 9 As shown, the process by which the second device obtains device connection information may include steps 1 to 7.
[0301] The second device can be accessed via Figure 8 The method described above is used to extract the ROI from multiple consecutive or discontinuous frames of images, resulting in multiple frames of images including circular patterns.
[0302] Step 1: The second device performs intra-frame difference processing on img1, img2 to imgn respectively, to obtain grayscale images img1-1, img2-1 and imgn-1 respectively. n is greater than or equal to 2.
[0303] The process of intra-frame differential processing is illustrated by taking the second device performing intra-frame differential processing on img1 as an example.
[0304] img1 has three RGB channels. The second device first decomposes img1 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.
[0305] In one example, the second device can use the formula img1-1=|(B1-R1)+(B1-G1)| to perform intra-frame difference processing to obtain the grayscale image img1-1.
[0306] In another example, the second device can use the formula img1-1=|(G1-R1)+(G1-B1)| to perform intra-frame difference processing to obtain the grayscale image img1-1.
[0307] Similarly, the second device performs intra-frame difference processing on img2 to imgn respectively to obtain grayscale images img2-1 to imgn-1.
[0308] In this way, by performing intra-frame difference processing on img1, img2 to imgn respectively, the feature particle points included in the resulting grayscale image can be made more obvious, which is beneficial for the second device to obtain the encoded connection pairing code.
[0309] Step 2: The second device performs inter-frame differential processing on img1-1, img2-1 to imgn-1 respectively to obtain differential images img1-2, img2-2 to imgn-2.
[0310] For example, the second device can perform pairwise difference processing on img1-1, img2-1 to imgn-1 respectively.
[0311] For example, taking n=3 as an example. The second device can perform a difference operation on img1-1 and img2-1 to obtain image img1-2; the second device can perform a difference operation on img2-1 and img3-1 to obtain image img2-2; the second device can perform a difference operation on img3-1 and img1-1 to obtain image img3-2.
[0312] 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.
[0313] It should be understood that the specific execution order of steps 1 and 2 is not limited in the embodiments of this application. In some examples, the second device may execute step 2 first and then execute step 1.
[0314] It should be understood that between step 1 and step 2, the second device may also perform multi-frame alignment processing on the grayscale images img1-1, img2-1 to imgn-1.
[0315] For example, let's take n=3 as an example. The second device can use the intermediate image img2-1 as a reference to align img1-1 and img1-3.
[0316] For example, the second device can use affine transformation or feature point alignment to align img1-1 and img1-3, thereby reducing the misalignment caused by jitter when the second device acquires the ROI image.
[0317] In other examples, the second device can also perform multi-frame image alignment based on img1-1 or img1-3.
[0318] It should be understood that the second device may also use other existing multi-frame alignment methods to align the above images, and this application embodiment does not limit this.
[0319] Step 3: The second device determines the degree of moiré patterns in img1-2, img2-2 to imgn-2.
[0320] For example, taking image1-2 as an example, the second device performs binarization processing on image1-2 to obtain the binarized image1-2, and determines the degree of moiré pattern based on the density of particle points in image1-2.
[0321] For example, the second device can classify moiré patterns into three levels: none, low, and high, based on the density of the particle dots. Alternatively, the second device can also classify the degree of moiré patterns based on other indicators, which are not limited in this application.
[0322] For example, if the second device determines that the density of the particle dots is less than a first density threshold, then it can determine that there are no moiré patterns. If the second device determines that the density of the particle dots is greater than the first density threshold or less than or equal to a second density threshold, where the second density threshold is twice the first density threshold, then it can determine that the degree of moiré pattern is low. If the second device determines that the density of the particle dots is greater than the second density threshold, then it can determine that the degree of moiré pattern is high.
[0323] It should be understood that the second device may also divide the moiré pattern into none or two degrees, or the second device may divide the moiré pattern into more degrees, which is not limited in this application.
[0324] In this way, the second device can determine the severity of moiré patterns in the image, which helps in subsequent moiré removal processing.
[0325] Step 4: The second device sets the binarization threshold according to the degree of moiré patterns in img1-2, img2-2 to imgn-2 respectively, to obtain binary images img1-3, img2-3 to imgn-3.
[0326] For example, taking img1-2 as an example, if there are no moiré patterns in img1-2, the second device can set a first grayscale threshold to filter out the portion of the grayscale image where the grayscale value of the pixels is less than the first grayscale threshold. If there are moiré patterns in img1-2, and the degree of the moiré patterns is low, the second device can set a second grayscale threshold to filter out the portion of the grayscale image where the grayscale value of the pixels is less than the second grayscale threshold. If there are moiré patterns in img1-2, and the degree of the moiré patterns is high, the second device can set a third grayscale threshold w3 to filter out the portion of the grayscale image where the grayscale value of the pixels is less than the third grayscale threshold.
[0327] The higher the degree of moiré pattern, the larger the corresponding grayscale threshold. Accordingly, the first grayscale threshold is lower than the second grayscale threshold, and the second grayscale threshold is lower than the third grayscale threshold.
[0328] It should be understood that the first grayscale threshold, the second grayscale threshold, and the third grayscale threshold can be set by the developer or determined by the second device based on the distribution of the moiré pattern. This application embodiment does not limit these settings.
[0329] In this way, the second device sets the corresponding filtering threshold according to the degree of moiré pattern, thereby filtering out moiré patterns as much as possible and reducing the impact of moiré patterns on the recognition results.
[0330] Step 5: The second device performs an OR operation on the binary images img1-3, img2-3 to imgn-3 to obtain the image img-a.
[0331] By performing an OR operation on the multi-frame binary image, the second device can make the resulting img-a include more feature particle points, thereby increasing the probability of the second device performing decoding.
[0332] It should be understood that step 5 is an optional step, and in some examples, step 5 may not be performed.
[0333] Step 6: The second device performs threshold filtering on the area of the particle points in image img-a to obtain image img-f.
[0334] For example, the second device can determine the area of all particle points in the image img-a and sort them in descending order of area. Then, the second device can set a first area threshold to filter the particle points. For example, if the first area threshold is 70%, the second device can retain the top 70% of the particle points.
[0335] It should be understood that the first area threshold can also be other values, such as 65% or 75%, etc. The specific value of the first area threshold is not limited in the embodiments of this application.
[0336] In other examples, the second device can determine the area of all particle points in image img-a and set a second area threshold to filter the particle points. For example, particle points in img-a with an area less than or equal to the second area threshold are filtered out, while particle points with an area greater than the second area threshold are retained.
[0337] Step 7: The second device parses the image img-f to obtain device connection information.
[0338] It should be understood that the specific execution order of steps 1-7 described above is not limited in the embodiments of this application. In other examples, steps 3-6 in steps 1-7 are optional steps.
[0339] The device connection information can be a connection pairing code. Alternatively, the device connection information may also include the device identifier, MAC address, etc. of the first device. In this embodiment, a 6-digit connection pairing code is used as an example for illustration.
[0340] In one example, the second device can divide the annular region containing the particle points in the image img-f into multiple regions on an average basis, and determine the corresponding number based on the number of particle points in each region.
[0341] For example, Figure 10 This is a schematic diagram of a ring-shaped region provided in an embodiment of this application. See also... Figure 10 The second device can divide the annular area into n regions in sequence, namely region 1, region 2, region 3, ..., region n, and decode each of the n regions to obtain the corresponding numbers. It should be understood that the specific value of n is not limited in this embodiment. For example, if n is 6, regions 1 to 6 can be encoded with a set of connection pairing codes. Or, if n is 9, in this case, the second device can perform redundant decoding on some of the connection pairing codes, and correspondingly, the first device also performs redundant encoding on some of the connection pairing codes. Through this redundant encoding method, even if some regions from region 1 to region n cannot be recognized by the second device, the second device can still successfully obtain the connection pairing codes, increasing the probability of successful decoding by the second device.
[0342] It should be understood that the first device can perform cyclic encoding on the n regions. For example, when n is 18, the first device can perform cyclic encoding on the 6-bit connection pairing code, and can encode 3 sets of 6-bit connection pairing codes. Through this redundant encoding method, the probability of the second device successfully decoding can be increased.
[0343] In other examples, the first device may also set a check bit in the first region of each pair of connection codes or in the region preceding each pair of connection codes, thereby enabling the second device to determine the order of the numbers in the connection codes.
[0344] The second device can determine the coded number based on the number of particle points in each region. For example, for region 1, if there is one particle point, the coded number can be determined to be 1; for region 2, if there are four particle points, the coded number can be determined to be 4.
[0345] The second device can obtain the final 6-digit connection pairing code, such as 147258, through the above decoding method.
[0346] It should be understood that the second device can also divide the annular area into more areas in sequence, such as 15 areas, 18 areas, or 24 areas, thereby increasing the likelihood of successful decoding by the second device.
[0347] In another example, the second device can divide the annular region containing the particle points in the image img-f into multiple regions, such as 6 regions, and determine the corresponding number based on the distribution of particle points in each region.
[0348] For example, for region 1, the second device can divide region 1 into 10 grids (numbered from 0 to 9). If there is a particle in region 1, the grid number in which the particle is located determines which number the region represents. For example, if the particle is located in the first grid, then region 1 corresponds to the number 1.
[0349] If there are multiple particle points in region 1, the number of the grid containing the most particle points is determined as the decoded number. For example, if the second grid contains the most particle points, then region 1 corresponds to the number 2.
[0350] In some cases, to increase the probability that the second device can successfully decode and obtain the correct connection pairing code, the second device can also combine the decoding results from multiple tests to determine the final connection pairing code.
[0351] For example, Figure 11 This is a schematic diagram illustrating a method for determining a connection pairing code by combining the results of multiple decoding operations, as provided in an embodiment of this application. Figure 11 As shown, through Figure 9 and Figure 10 The decoding method involves the second device decoding three frames (Image 1, Image 2, and Image 3) to obtain connection pairing code one "147258", decoding three frames (Image 2, Image 3, and Image 4) to obtain connection pairing code two "147256", and decoding three frames (Image 3, Image 4, and Image 5) to obtain connection pairing code three "147258". Therefore, the second device can ultimately determine the obtained connection pairing code as "147258". Thus, even if the last digit of connection pairing code two is incorrect, the second device can determine the correct connection pairing code by combining connection pairing codes one and three.
[0352] It should be understood that Figure 11 This example only uses the three results obtained by the second device. In other examples, the second device can obtain more results to improve the accuracy of the final connection pairing code.
[0353] Based on the embodiments of this application, the second device can determine the final connection pairing code by combining the results of multiple decodings, thereby avoiding the phenomenon that the device connection will fail due to an incorrect decoding once.
[0354] It should be understood that after the second device obtains the device connection information, it can use that device connection information to establish a connection with the first device.
[0355] Figure 12 This is a schematic interactive diagram illustrating an information transmission method provided in an embodiment of this application. For example... Figure 12 As shown, the method 600 can be applied to a first electronic device and a second electronic device, and the method 600 may include at least steps 610 to 650.
[0356] It should be understood that the first electronic device can be the first device mentioned above, and the second electronic device can be the second device mentioned above.
[0357] 610, the first electronic device sends the first message. Correspondingly, the second electronic device receives the first message.
[0358] For example, the first message can be a Bluetooth broadcast message. The first message can also be other wireless messages, which are not limited to the embodiments described in this application.
[0359] This first message can be used to discover devices around the first electronic device.
[0360] 620, the second electronic device sends a first instruction message to the first electronic device according to the first message.
[0361] The first indication information can be used to indicate the presence of a device in the vicinity of the first electronic device. Alternatively, the first indication information can be a confirmation message after the first message has been scanned.
[0362] In some examples, the second electronic device also displays a target display interface based on the first message. The target display interface may include relevant information of the first electronic device. In response to the user's operation on the target display interface, the second electronic device may send the aforementioned first instruction information to the first electronic device.
[0363] 630, the first electronic device displays a first image according to the first instruction information, the first image including a first part and a second part.
[0364] It should be understood that the first part may be the background of the first image, and the second part may be the portion of the first image that encodes the first information. For example, the second part may be superimposed on the first part.
[0365] For example, see Figure 3In (d), the first image can be the image corresponding to the display interface 240, the second part can be the information point in the circular pattern therein, and the first part can be the background part excluding the information point.
[0366] It should be understood that when an electronic device displays N frames of the first image, the second part of the two adjacent frames of the first image are in the same position, and N is greater than or equal to 2.
[0367] In other examples, the colors of the second portions of two adjacent frames in the N-frame image may be different. Alternatively, the colors of the second portions of any three consecutive frames in the N-frame image may be different, and this application does not limit the scope of the embodiments.
[0368] In other examples, the second portions of two adjacent frames in an N-frame image can encode the same or different information. When encoding different information, the first electronic device can divide the information to be encoded into multiple parts and encode them respectively in the second portions of different frames. Alternatively, multiple consecutive frames in an N-frame image can encode different information, and multiple sets of information can be encoded in the N-frame image; this application embodiment is not limited to this.
[0369] In this process, when different information is encoded in the second part of multiple frames of the first image, the first electronic device can split the information to be encoded into multiple parts, each frame of the image can encode a part of the information, and the multiple frames of the image are combined to encode the complete information.
[0370] For example, taking three frames of images as an example, the first electronic device can divide the information that needs to be encoded into information A, information B and information C, and encode them respectively in three consecutive frames of images.
[0371] In other examples, the first portion of two adjacent frames of the first N-frame image can be the same or different; for example, some of the particle points included in the first portion can move or change color.
[0372] In some examples, the first or second part can have animation effects. For instance, multiple particle points that make up a ring pattern can gradually converge into a ring, creating a flowing effect.
[0373] 640. The second electronic device acquires N frames of first images. Each frame of the N frames of first images includes a first part and a second part. The positions of the second parts of two adjacent frames in the N frames of first images are the same, where N is greater than or equal to 2.
[0374] For example, the second electronic device may invoke the camera to acquire N frames of the first image, or the second electronic device may invoke the webcam to acquire the first image.
[0375] 650, the second electronic device decodes the first information according to the second part.
[0376] For example, see Figure 9 The second part can be the particle point corresponding to img-f, and the first information can be the connection pairing code. The second electronic device can obtain the connection pairing code 147258 by decoding img-f. The second part encodes the first information that the second electronic device needs to transmit. The second electronic device decodes the second part of the acquired image to determine the first information therein.
[0377] For example, when the second portion of each of the N frames of the first image encodes the same first information, the second electronic device can decode multiple consecutive frames (such as 2 or 3 frames) and determine the encoded first information based on the decoding result of each frame. Alternatively, the second electronic device can also select one frame to decode in order to determine the encoded first information.
[0378] For example, when the second part of each frame in the N frames of the first image encodes different information, the second electronic device can decode the second parts of multiple consecutive frames of the first image and combine the decoding results to determine the final first information.
[0379] Optionally, after decoding the first information, the second electronic device may perform the first operation based on the first information.
[0380] For example, the first information can be device connection information. In this case, the first operation is to send a device connection request. When the second electronic device and the first electronic device need to establish a connection relationship, the second electronic device can send a device connection request to the first electronic device according to the device connection information and establish a connection relationship with the first electronic device.
[0381] For example, the first information can be account login information, in which case the first operation can be the operation of logging into the account.
[0382] For example, the first information can also be first data, in which case the first operation can be the operation of acquiring the first data.
[0383] For example, the first information may also be a meeting link, in which case the first operation is the operation of attending the meeting.
[0384] For example, the first information can also be a URL, in which case the first operation is the operation of accessing the URL.
[0385] For example, the first information can also be screen casting information, in which case the first operation is a screen casting operation.
[0386] It should be understood that the first information may also include other content, which is not limited in the embodiments of this application.
[0387] Based on the system provided in the embodiments of this application, the first electronic device can encode the first information to be transmitted in the second part of the first image, and the second electronic device can acquire N frames of the first image and decode the first information based on the second part.
[0388] For example, when connecting devices, the second electronic device can scan or capture the image displayed on the first electronic device to obtain the device connection information (pairing code), thus quickly establishing a device connection. This shortens the device interaction path and enhances the technological feel when replacing a new device or cloning data.
[0389] In some implementations, before the second electronic device decodes the first information according to the second part, the second electronic device is also used to: perform color space conversion on the N frames of the first image to obtain N frames of the second image.
[0390] Based on the embodiments of this application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0391] For example, converting the first image from the RGB color space to the HSV color space, or the HSI color space for hue, saturation, and brightness.
[0392] In some embodiments, the second electronic device is specifically used for:
[0393] Convert the first N frames of the image from the RGB color space to the HSV color space for hue, saturation, and lightness.
[0394] The hue H domain of each frame in the N frames of the first image is filtered to obtain N frames of the second image. The angle value corresponding to the hue H domain of the second image is greater than a first preset value and less than a second preset value.
[0395] Binarize the N frames of the second image to obtain the N frames of the third image;
[0396] The second part is determined based on the third image of N frames.
[0397] For example, see Figure 7 Let's take one frame as an example. The second image can be an image containing the blue component obtained after filtering the hue H domain. The third image can be an image obtained by binarizing the second image.
[0398] The second part can be a ring-shaped area, or it can be a portion of the information points included in the ring-shaped area.
[0399] It should be understood that the specific values of the first preset value and the second preset value are not limited in the embodiments of this application.
[0400] Based on the embodiments of this application, by converting the color space and applying corresponding threshold filtering, the reflection phenomenon present in the first image can be filtered out, reducing the interference of reflection on the second electronic device to obtain the second part, and increasing the probability of successful decoding.
[0401] In some embodiments, the second electronic device is specifically used for:
[0402] Perform a closing operation on the N frames of the third image; determine the second part based on the result of the closing operation; or...
[0403] Perform cluster analysis on the particle points in the N frames of the third image; determine the second part based on the results of the cluster analysis.
[0404] For example, see Figure 8 In scenarios with significant reflections or missing ring-shaped regions, the second electronic device can perform particle point clustering analysis on the binarized third image to identify the ring-shaped region. This second part can be the ring-shaped region itself, or it can be a subset of information points within the ring-shaped region.
[0405] Based on the embodiments of this application, determining the second part through a closing operation can reduce the interference of reflection on the second electronic device's acquisition of the second part, thereby increasing the likelihood of successful decoding. Furthermore, even in cases where the second part is significantly obscured or severely reflective, the second part can still be successfully acquired through cluster analysis, further increasing the probability of the electronic device successfully decoding the second part subsequently.
[0406] In some embodiments, before the second electronic device performs cluster analysis on the N frames of the third image, the second electronic device is further configured to: filter out particle points in the N frames of the third image whose area is smaller than a first area threshold.
[0407] For example, see Figure 8 Step 4 in the process can filter out particle points in the third image whose area is smaller than the first area threshold.
[0408] Based on the embodiments of this application, small particle points in the third image can be filtered out, thereby reducing the interference of small particle points on the acquisition of the second part.
[0409] In some embodiments, the second electronic device is specifically used for:
[0410] Intra-frame difference processing is performed on the second part of each of the N frames of the first image to obtain N frames of grayscale images. The intra-frame difference processing is the sum of the absolute values of the difference between the first channel image of the second part and the second channel image and the third channel image. The first channel image, the second channel image, and the third channel image are one of the red R channel image, the green G channel image, and the blue B channel image, and each is different.
[0411] Perform inter-frame difference processing on N grayscale images to obtain N difference images;
[0412] Binarize the N frames of difference images to obtain the N frames of the fourth image;
[0413] Perform an OR operation on the N frames of the fourth image to obtain the first target image;
[0414] First information is obtained based on the first target image.
[0415] For example, the first channel image is a B channel image, the second channel image is an R channel image, and the third channel image is a G channel image.
[0416] It should be understood that intra-frame differential processing and inter-frame differential processing can be found in the previous text. Figure 9 The relevant descriptions in the document will not be repeated here.
[0417] For example, see Figure 9 The fourth image can be img1-3 to imgn-3, and the first target image can be img-a.
[0418] Based on the embodiments of this application, the second electronic device can decode the second part of the N-frame image to successfully obtain the first information encoded therein.
[0419] In some embodiments, the second electronic device is specifically used for:
[0420] The particle points in the first target image with an area smaller than the second area threshold are filtered out to obtain the second target image;
[0421] The first information is decoded based on the second target image.
[0422] For example, see Figure 9 The second target image can be img-f.
[0423] Based on the embodiments of this application, by filtering the particle points in the first target image, the particle points with smaller areas in the first target image can be filtered out, thereby reducing the interference of the particle points with smaller areas on the decoding results.
[0424] In some embodiments, before the second electronic device performs binarization processing on the N frames of differential images, the second electronic device is further configured to:
[0425] Determine the degree of moiré pattern in each of the N frames of difference images;
[0426] Specifically, the second electronic device is used for:
[0427] Filter out pixels with gray values less than a third preset value in N frames of differential images, where the third preset value is related to the degree of moiré pattern;
[0428] Binarize the filtered N-frame differential images to obtain the N-frame fourth image.
[0429] It should be understood that the degree to which the second electronic device determines the moiré pattern can be found in the relevant description of the degree to which the second device determines the moiré pattern mentioned above, and is not limited in the embodiments of this application.
[0430] Based on the embodiments of this application, the second electronic device can also determine the degree of moiré patterns in the image and set a filtering threshold according to the degree of moiré patterns, thereby reducing the interference caused by moiré patterns and improving the probability of successful decoding.
[0431] In some embodiments, a first message is sent after the first electronic device is powered on for the first time; or, during data cloning, a first message is sent in response to a user-selected operation to indicate a new device, or in response to a user-selected operation to indicate an old device type.
[0432] In this way, when the electronic device is powered on for the first time or during data cloning on subsequent power-ups, it can send an initial message to discover nearby devices. This technical solution helps the first electronic device to discover devices when needed for subsequent connection operations, thereby saving power consumption to some extent.
[0433] In some embodiments, the first electronic device is further configured to: receive first data information sent by the second electronic device, the first data information including account information logged in on the second electronic device and / or wireless network information connected to the second electronic device.
[0434] It should be understood that the wireless network information to which the second electronic device is connected may include historical connections or current connections.
[0435] In other examples, the first data information may also include the privacy statement, settings, etc. of the second electronic device, which is not limited in this embodiment.
[0436] Based on the embodiments of this application, the second electronic device can send data such as account information and wireless network information to the first electronic device, thereby eliminating the need for the user to manually log in to their account or connect to the wireless network on the first electronic device, thus improving the user's operating experience with the first electronic device. For example, if the first electronic device is a newly purchased smartphone, this method allows the new phone to automatically log in to the user's account and automatically connect to the wireless network.
[0437] In some embodiments, the first electronic device is further configured to: receive second instruction information sent by the second electronic device, the second instruction information being used to indicate second data information in the second electronic device; and display a second display interface according to the second instruction information, the second display interface including a first display card and a second display card, wherein the first display card is used to indicate importing second data information from the second electronic device, and the second display card is used to indicate downloading third data information from a cloud server.
[0438] Based on the embodiments of this application, the first electronic device can display options for data transmission for the user to select.
[0439] In some embodiments, the first electronic device is further configured to: display a third display interface in response to a user clicking a first display card, the third display interface including the type and size of the second data information; send third instruction information to the second electronic device in response to a user performing an operation in the third display interface to instruct the import of data, the third instruction information indicating the start of importing data corresponding to the second data information; and receive data corresponding to the second data information sent by the second electronic device; or...
[0440] In response to the user clicking the second display card, a fourth display interface is displayed, which includes the type and size of the third data information; in response to the user performing an operation in the fourth display interface to indicate data import, the data corresponding to the third data information is imported from the cloud server.
[0441] Based on the embodiments of this application, the first electronic device can realize the transmission according to the user's operation, thereby enabling the first electronic device to be quickly available.
[0442] In some embodiments, the second part is a ring pattern; the distance between the second electronic device and the first electronic device is less than or equal to a preset distance.
[0443] It should be understood that the second part can also be other shapes, which are not limited in the embodiments of this application.
[0444] Figure 13 This is a schematic flowchart illustrating an information transmission method provided in an embodiment of this application. Figure 13As shown, the method 800 can be applied to a second electronic device, and the method 800 may include at least steps 810 to 840.
[0445] 810, the second electronic device receives the first message.
[0446] The first message can be a message used to discover the device, such as a Bluetooth broadcast message.
[0447] 820, the second electronic device sends the first instruction information according to the first message.
[0448] 830, the second electronic device acquires N frames of first images. Each frame of the N frames of first images includes a first part and a second part. The positions of the second parts of two adjacent frames in the N frames of first images are the same, where N is greater than or equal to 2.
[0449] In other examples, the second portion of two adjacent frames in N frames has different colors.
[0450] The second part of the N-frame image can encode the same information or different information, which is not limited in the embodiments of this application.
[0451] 840, the second electronic device decodes the first information according to the second part.
[0452] For example, the first information may include device connection information, such as a connection pairing code. When the second electronic device needs to establish a connection with the first electronic device, the second electronic device may send a device connection request to the first electronic device based on the device connection information and establish a connection with the first electronic device.
[0453] For example, the first information can be account login information, in which case the second electronic device can log in to the account based on the account login information.
[0454] For example, the first information can also be first data, in which case the second electronic device can acquire the first data.
[0455] For example, the first information may also include a conference link, in which case the second electronic device can participate in the conference based on the conference link.
[0456] For example, the first information can also be a URL, in which case the second electronic device can access the URL.
[0457] For example, the first information can also be screen mirroring information, in which case the second electronic device can perform screen mirroring.
[0458] It should be understood that the first information may also include other content, which is not limited in the embodiments of this application.
[0459] It should also be understood that the embodiments of this application do not limit the operations performed by the second electronic device after obtaining the first information.
[0460] Based on the embodiments of this application, a second electronic device can acquire N frames of images, decode a second portion of the N frames to obtain first information, and perform corresponding operations based on the first information. This technical solution can conveniently realize information transmission between the two devices, shorten the interaction path for information transmission between devices, and enhance the sense of technology.
[0461] In one implementation, before decoding the first information according to the second part, the method further includes: performing color space conversion on the N frames of the first image to obtain N frames of the second image.
[0462] Based on the embodiments of this application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0463] In some embodiments, color space conversion is performed on N frames of the first image to obtain N frames of the second image, including:
[0464] Convert the first N frames of the image from the RGB color space to the HSV color space for hue, saturation, and lightness.
[0465] The hue H domain of each frame in the N frames of the first image is filtered to obtain N frames of the second image. The angle value corresponding to the hue H domain of the second image is greater than a first preset value and less than a second preset value.
[0466] Binarize the N frames of the second image to obtain the N frames of the third image;
[0467] The second part is determined based on the third image of N frames.
[0468] In some embodiments, determining the second portion based on N frames of third images includes:
[0469] Perform cluster analysis on particle points in N frames of the third image;
[0470] The second part is determined based on the results of cluster analysis; or
[0471] Perform cluster analysis on particle points in N frames of the third image;
[0472] The second part is determined based on the results of cluster analysis.
[0473] In some embodiments, before performing cluster analysis on the N frames of third images, the method further includes filtering out particle points in the N frames of third images whose area is smaller than a first area threshold.
[0474] In some embodiments, decoding the first information according to the second part includes:
[0475] Intra-frame differencing is performed on the second part of each of the N frames of the first image to obtain N frames of grayscale images. Intra-frame differencing involves summing the absolute values of the differences between the first channel image of the second part and the second and third channel images, respectively. The first, second, and third channel images are all different types of red (R), green (G), and blue (B) channel images. Inter-frame differencing is then performed on each of the N frames of grayscale images to obtain N frames of differencing images.
[0476] Binarize the N frames of difference images to obtain the N frames of the fourth image;
[0477] Perform an OR operation on the N frames of the fourth image to obtain the first target image;
[0478] First information is obtained based on the first target image.
[0479] In some embodiments, decoding the first information based on the first target image includes: filtering particle points in the first target image whose area is smaller than a second area threshold to obtain a second target image; and decoding the first information based on the second target image.
[0480] In some embodiments, the method further includes:
[0481] Determine the degree of moiré pattern in each of the N frames of difference images;
[0482] Specifically, binarization is performed on the N-frame difference images to obtain the N-frame fourth image, including:
[0483] Filter out pixels with gray values less than a third preset value in N frames of differential images, where the third preset value is related to the degree of moiré pattern;
[0484] Binarize the filtered N-frame differential images to obtain the N-frame fourth image.
[0485] In some embodiments, the first information includes at least one of connection pairing code, account login information, product serial number, and media access control MAC address.
[0486] It should be understood that the first information may also include other information, such as verification codes, URLs, etc., as limited by the embodiments of this application.
[0487] Figure 14 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Figure 14As shown, the electronic device 700 may include one or more processors 710; one or more memories 720; the one or more memories 720 storing one or more instructions that, when executed by one or more processors 710, cause the information transmission method as described in any of the possible implementations above to be executed.
[0488] For example, the electronic device 700 can be the first device, the second device, the electronic device 200, the electronic device 300, the electronic device 400, etc. mentioned above.
[0489] This application also provides an apparatus 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 storing instructions that, when executed on an electronic device, cause the electronic device to perform the aforementioned method steps to implement the information transmission method described above.
[0492] This application also provides a program product that, when run on an electronic device, causes the electronic device to perform the aforementioned 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. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[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 technical scope 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. An information transmission system, characterized in that, The system includes a first electronic device and a second electronic device, wherein... The first electronic device is configured to send a first message, the first message being configured to detect devices in the vicinity of the first electronic device; The second electronic device is used for: Receive the first message; Send the first instruction information according to the first message; The first electronic device is further configured to display a first image according to the first indication information, the first image comprising a first part and a second part; The second electronic device is also used for: Obtain N frames of first images, each frame of the N frames of first images includes the first part and the second part, the second parts of two adjacent frames of the N frames of first images are in the same position, and N is greater than or equal to 2; The first information is decoded according to the second part.
2. The system according to claim 1, characterized in that, Before the second electronic device decodes the first information according to the second part, the second electronic device is also used to: The color space of the N frames of the first image is converted to obtain the N frames of the second image.
3. The system according to claim 2, characterized in that, The second electronic device is specifically used for: The N frames of the first image are converted from the RGB color space to the HSV color space for hue, saturation, and brightness. The hue H domain of each frame in the N frames of the first image is filtered to obtain the N frames of the second image. The angle value corresponding to the hue H domain of the second image is greater than a first preset value and less than a second preset value. The N frames of the second image are binarized to obtain the N frames of the third image; The second part is determined based on the N frames of the third image.
4. The system according to claim 3, characterized in that, The second electronic device is specifically used to determine the second part based on the N frames of the third image. Perform a closing operation on the N frames of the third image; The second part is determined based on the result of the closing operation; or... Cluster analysis is performed on the particle points in the N frames of the third image; The second part is determined based on the results of the cluster analysis.
5. The system according to any one of claims 1-4, characterized in that, The second electronic device is specifically used for decoding the first information according to the second part: Intra-frame difference processing is performed on the second part of each of the N frames of the first image to obtain N frames of grayscale images. The intra-frame difference processing is the sum of the absolute values of the difference between the first channel image of the second part and the second channel image and the third channel image. The first channel image, the second channel image, and the third channel image are one of the red R channel image, the green G channel image, and the blue B channel image, and each is different. Perform inter-frame difference processing on the N grayscale images to obtain N difference images; The N frames of differential images are binarized to obtain the N frames of the fourth image; The first target image is obtained by performing an OR operation on the N frames of the fourth image; The first information is obtained based on the first target image.
6. The system according to claim 5, characterized in that, Before the second electronic device performs binarization processing on the N frames of differential images, the second electronic device is also used to: The degree of moiré pattern in each of the N frames of differential images is determined. Specifically, the second electronic device is used for: Filter out pixels in the N frames of differential images whose grayscale values are less than a third preset value, wherein the third preset value is related to the degree of moiré pattern; The filtered N-frame differential images are binarized to obtain the N-frame fourth image.
7. A method for transmitting information, characterized in that, The method is applied to a second electronic device, and the method includes: Receive the first message; Send the first instruction information according to the first message; Obtain N frames of first images. Each frame of the N frames of first images includes a first part and a second part. The second parts of two adjacent frames of the N frames of first images are in the same position. Where N is greater than or equal to 2. The first information is decoded according to the second part.
8. The method according to claim 7, characterized in that, Before decoding the first information according to the second part, the method further includes: The color space of the N frames of the first image is converted to obtain the N frames of the second image.
9. The method according to claim 8, characterized in that, The step of performing color space conversion on the N frames of the first image to obtain N frames of the second image includes: The N frames of the first image are converted from the RGB color space to the HSV color space for hue, saturation, and brightness. The hue H domain of each frame in the N frames of the first image is filtered to obtain the N frames of the second image. The angle value corresponding to the hue H domain of the N frames of the second image is greater than a first preset value and less than a second preset value. The method further includes: The N frames of the second image are binarized to obtain the N frames of the third image; The second part is determined based on the N frames of the third image.
10. The method according to claim 9, characterized in that, Determining the second part based on the N frames of the third image includes: Perform a closing operation on the N frames of the third image; The second part is determined based on the result of the closing operation; or... Cluster analysis is performed on the N frames of the third image; The second part is determined based on the results of the cluster analysis.
11. The method according to claim 10, characterized in that, Before performing cluster analysis on the N frames of third images, the method further includes: Particles with an area smaller than a first area threshold in the N frames of the third image are filtered out.
12. The method according to any one of claims 7-11, characterized in that, Decoding the first information according to the second part includes: Intra-frame difference processing is performed on the second part of each of the N frames of the first image to obtain N frames of grayscale images. The intra-frame difference processing is the sum of the absolute values of the difference between the first channel image of the second part and the second channel image and the third channel image. The first channel image, the second channel image, and the third channel image are one of the red R channel image, the green G channel image, and the blue B channel image, and each is different. Perform inter-frame difference processing on the N grayscale images to obtain N difference images; The N frames of differential images are binarized to obtain the N frames of the fourth image; The first target image is obtained by performing an OR operation on the N frames of the fourth image; The first information is decoded based on the first target image.
13. The method according to claim 12, characterized in that, Decoding the first information based on the first target image includes: The particle points in the first target image whose area is smaller than the second area threshold are filtered out to obtain the second target image; The first information is decoded based on the second target image.
14. The method according to claim 12 or 13, characterized in that, Before performing binarization processing on the N frames of differential images, the method further includes: The degree of moiré pattern in each of the N frames of differential images is determined. The step of binarizing the N-frame differential images to obtain the N-frame fourth image includes: Filter out pixels in the N frames of differential images whose grayscale values are less than a third preset value, wherein the third preset value is related to the degree of moiré pattern; The filtered N-frame differential images are binarized to obtain the N-frame fourth image.
15. The method according to any one of claims 7-14, characterized in that, The first information includes at least one of the following: connection pairing code, account login information, product serial number, and media access control MAC address.
16. The method according to any one of claims 7-15, characterized in that, The method further includes: Send first data information, which includes account information logged in on the second electronic device or wireless network information connected to the second electronic device.
17. 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 the one or more processors, cause the method of information transmission as described in any one of claims 7 to 16 to be performed.
18. 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 information transmission method as described in any one of claims 7 to 16 is executed.
19. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on the device, cause the method of information transmission as described in any one of claims 7 to 16 to be performed.
20. A program product, characterized in that, The program product includes program code that, when run on an electronic device, causes the method of information transmission as described in any one of claims 7 to 16 to be executed.
Citation Information
Cited By
Information transmission method, and electronic device
EP4773577A1
Information transmission method, and electronic device
WO2025237238A1