Information transmission method and electronic equipment
By displaying specially designed images on the first electronic device, the second electronic device can obtain information through scanning or shooting to realize information transmission between devices, solving the problem of long and inconvenient information transmission paths in the prior art, and improving efficiency and convenience.
Patent Information
- Application Number
- CN202411563437.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-05-14
AI Technical Summary
In the prior art, information transmission between devices usually depends on scanning QR codes, and the interaction path is long and not convenient enough, making it difficult to meet the needs of fast connection and data transmission.
By displaying a specially designed image on the first electronic device, the second electronic device can scan or capture the image to acquire the information therein, thereby enabling information transmission between devices. The second part of the image encodes device connection information, account login information, etc., and the second electronic device performs device connection and data transmission by decoding these information.
This method shortens the path of device interaction, improves the efficiency and convenience of information transmission, enhances the sense of technology, and simplifies the process of device connection and data migration.
Smart Images

Figure CN119520502A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202410601613.4, the original application date is May 14, 2024, and the name of the invention is “Method and electronic device for information transmission”. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of electronic technology, and more specifically, to an information transmission method and electronic device. Background Art
[0003] In some scenarios where information needs to be transmitted between devices, scanning QR codes is usually used for connection pairing, account login, etc. For example, when a user uses a first device to change devices or clone data, data needs to be transmitted from the second device to the first device. The second device needs to scan the QR code displayed on the first device for connection pairing. However, the interaction path of scanning QR codes is long and not convenient enough. Summary of the invention
[0004] The embodiment of the present application provides a method and electronic device for information transmission. In the technical solution, the second electronic device can scan the image displayed by the first electronic device to obtain the first information therein, so as to realize information transmission between the two. For example, when replacing a new device or cloning data, the device interaction path can be shortened and the sense of technology can be enhanced.
[0005] In a first aspect, the present application provides a system comprising a first electronic device and a second electronic device, wherein the first electronic device is used to send a first message, and the first message is used to discover devices around the first electronic device; the second electronic device is used to: receive the first message; and send a first indication information according to the first message; the first electronic device is also used to display a first image according to the first indication information, and the first image includes a first part and a second part; the second electronic device is also used to: acquire N frames of first images, each frame of the N frames of the first images includes a first part and a second part, and positions of the second parts of two adjacent frames of the N frames are the same, wherein N is greater than or equal to 2; and decode the first information according to the second part.
[0006] It should be understood that the first part may be the background of the first image, and the second part may be the part of the first image encoding the first information. Exemplarily, the second part may be superimposed on the first part.
[0007] The first information may include but is not limited to device connection information, account login information, verification code, website address, conference link, data information to be transmitted, screen projection information, etc.
[0008] 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.
[0009] The first indication information may be used to indicate that there are devices around the first electronic device, or the first indication information may be confirmation information after the first message is scanned.
[0010] It should also be understood that the embodiments of the present application do not limit the specific operations performed by the second electronic device after acquiring the first information.
[0011] In other examples, the colors of the second parts of two adjacent frames of images in N frames of images may be different. Alternatively, the colors of the second parts of any three consecutive frames of images in N frames of images may be different, which is not limited in the embodiment of the present application.
[0012] In other examples, the second parts of two adjacent frames of images in N frames of images can encode the same information or different information. When encoding different information, the first electronic device can divide the information to be encoded into multiple parts and encode them in the second parts of images of different frames respectively. Alternatively, multiple consecutive frames of images in N frames of images can encode different information, and multiple groups of information can be encoded in the N frames of images, which is not limited in the embodiments of the present application.
[0013] In other examples, the first parts of two adjacent frames of images in N frames of images may be the same or different, which is not limited in the embodiments of the present application.
[0014] Based on the system provided in the embodiment of the present 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 obtain N frames of the first image and decode the first information based on the second part.
[0015] For example, when connecting devices, the second electronic device can scan or take a picture of the image displayed by the first electronic device to obtain the device connection information (connection pairing code), so that the device connection can be quickly established. When replacing a new device or cloning data, the device interaction path can be shortened and the sense of technology can be enhanced.
[0016] In some implementations, before the second electronic device decodes the first information according to the second part, the second electronic device is further configured to: perform color space conversion on the N frames of first images to obtain N frames of second images.
[0017] Based on the embodiment of the present application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0018] For example, the first image is converted from the RGB color space to the HSV color space, or the hue, saturation, brightness HSI color space, etc.
[0019] In some implementations, the second electronic device is specifically used to: convert N frames of first images from a red, green, and blue (RGB) color space into a hue, saturation, and brightness (HSV) color space; filter the hue H domain of each frame of 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; binarize the N frames of second images to obtain N frames of third images; and determine the second part based on the N frames of third images.
[0020] It should be understood that the embodiment of the present application does not limit the specific values of the first preset value and the second preset value.
[0021] Based on the embodiments of the present application, through the conversion of the color space and the corresponding threshold filtering, the reflection phenomenon in the first image can be filtered out, the interference of the reflection on the second electronic device obtaining the second part can be reduced, and the possibility of successful decoding can be improved.
[0022] 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 particle points in the N frames of the third image; and determine the second part based on the result of the cluster analysis.
[0023] Based on the embodiment of the present application, the second part is determined by a closed operation, which can reduce the interference of reflection on the second electronic device obtaining the second part, and improve the possibility of successful decoding. In addition, in the case where the second part is more blocked or severely reflected, the second part can still be successfully obtained through the results of cluster analysis, which improves the possibility of the electronic device successfully decoding the second part later.
[0024] In some implementations, before the second electronic device performs cluster analysis on the N frames of third images, the second electronic device is further configured to: filter particle points in the N frames of third images whose areas are smaller than a first area threshold.
[0025] Based on the embodiment of the present application, particle points with a smaller area in the third image can be filtered out, thereby reducing the interference of the particle points with a smaller area on the acquisition of the second part.
[0026] In some implementations, the second electronic device is specifically used to: perform intra-frame difference processing on the second part of each frame of N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, 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 frames of grayscale images respectively to obtain N frames of difference images; perform binarization processing on the N frames of difference 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.
[0027] Exemplarily, 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.
[0028] Based on the embodiment of the present application, the second electronic device can decode based on the second part included in the N frames of image to successfully obtain the first information encoded therein.
[0029] 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 according to the second target image.
[0030] Based on the embodiment of the present 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.
[0031] In some implementations, before the second electronic device binarizes N frames of differential images, the second electronic device is further used to: separately determine the degree of moiré of each frame of the N frames of differential images; wherein the second electronic device is specifically used 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é; and binarize the filtered N frames of differential images to obtain N frames of fourth images.
[0032] Based on the embodiment of the present application, the second electronic device can also determine the degree of moiré in the image and set a filtering threshold according to the degree of moiré, thereby reducing the interference caused by the moiré and helping to increase the probability of successful decoding.
[0033] In some implementations, the first electronic device is specifically used to: send the first message after the first electronic device is powered on for the first time; or, when performing data cloning, send the first message in response to a user selecting an operation for indicating a new device, or in response to a user selecting an operation for indicating an old device type.
[0034] In this way, when the electronic device is powered on for the first time or when data cloning is performed when it is not powered on for the first time, the electronic device can send a first message to discover surrounding devices. This technical solution is conducive to the first electronic device discovering devices when needed to perform subsequent device connection operations, thereby saving power consumption of the electronic device to a certain extent.
[0035] In some implementations, the first electronic device is further used to: receive first data information sent by the second electronic device, where the first data information includes account information logged in on the second electronic device and / or wireless network information to which the second electronic device is connected.
[0036] It should be understood that the wireless network information to which the second electronic device is connected may include historical connections or current connections.
[0037] 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 the embodiments of the present application.
[0038] Based on the embodiment of the present application, the second electronic device can send account information, wireless network information and other data to the first electronic device, so that the user does not need to manually log in to the account, connect to the wireless network and other operations on the first electronic device, thereby improving the user's operating experience of the first electronic device. For example, the first electronic device is a newly purchased smart phone of the user, and in this way, the new phone can automatically log in to the user's account and automatically connect to the wireless network.
[0039] In some implementations, the first electronic device is further used to: receive second indication information sent by the second electronic device, the second indication information being used to indicate second data information in the second electronic device; and display a second display interface according to the second indication information, the second display interface comprising a first display card and a second display card, wherein the first display card is used to indicate the import of the second data information from the second electronic device, and the second display card is used to indicate the downloading of third data information from the cloud server.
[0040] Based on the embodiment of the present application, the first electronic device can display options for data transmission for the user to select.
[0041] In some implementations, the first electronic device is further used to: display a third display interface in response to a user clicking on the first display card, the third display interface including the type and size of the second data information; send third indication information to the second electronic device in response to a user operation in the third display interface for indicating the start of importing data corresponding to the second data information; receive data corresponding to the second data information sent by the second electronic device; or,
[0042] In response to the user clicking on the second display card, a fourth display interface is displayed, and the fourth display interface includes the type and size of the third data information; in response to the user performing an operation in the fourth display interface to instruct to import data, data corresponding to the third data information is imported from the cloud server.
[0043] Based on the embodiments of the present application, the first electronic device can implement transmission according to the user's operation, thereby enabling the first electronic device to be quickly available.
[0044] In some implementations, the second portion is a ring pattern; and the distance between the second electronic device and the first electronic device is less than or equal to a preset distance.
[0045] It should be understood that the second part may also be in other shapes, which is not limited in the embodiments of the present application.
[0046] In a second aspect, the present application provides a method for information transmission, applied to a second electronic device, including: receiving a first message; sending first indication 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, and 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; decoding the first information according to the second part.
[0047] Based on the embodiment of the present application, the second electronic device can obtain N frames of images and decode the second part of the N frames of images to obtain the first information therein, and can perform corresponding operations based on the first information. This technical solution can conveniently realize information transmission between the two, shorten the interactive path of information transmission between devices, and enhance the sense of technology.
[0048] In one implementation, the method further includes: sending first data information to the first electronic device, where the first data information includes account information logged in on the second electronic device and / or wireless network information to which the second electronic device is connected.
[0049] 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 the embodiments of the present application.
[0050] Based on the embodiment of the present application, the second electronic device can send account information, wireless network information and other data to the first electronic device, so that the user does not need to manually log in to the account, connect to the wireless network and other operations on the first electronic device, thereby improving the user's operating experience of the first electronic device. For example, the first electronic device is a newly purchased smart phone of the user, and in this way, the new phone can automatically log in to the user's account and automatically connect to the wireless network.
[0051] In one implementation, before decoding the first information according to the second part, the method further includes: performing color space conversion on N frames of first images to obtain N frames of second images.
[0052] Based on the embodiment of the present application, the second electronic device can reduce the impact of reflections in the first image by performing color space conversion on the first image.
[0053] 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 a red, green, and blue (RGB) color space into a hue, saturation, and brightness (HSV) color space; filtering the hue H domain of each frame of 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 image is greater than a first preset value and less than a second preset value; the method also includes: binarizing the N frames of second images to obtain N frames of third images; and determining the second part based on the N frames of third images.
[0054] It should be understood that the embodiment of the present application does not limit the specific values of the first preset value and the second preset value.
[0055] Based on the embodiments of the present application, through the conversion of the color space and the corresponding threshold filtering, the reflection phenomenon in the first image can be filtered out, the interference of the reflection on the second electronic device obtaining the second part can be reduced, and the possibility of successful decoding can be improved.
[0056] In one implementation, before decoding the first information according to the second part, determining the second part according to N frames of the third image includes: performing a closing operation on the N frames of the third image; determining the second part according to the result of the closing operation; or, performing a cluster analysis on the particle points in the N frames of the third image; and determining the second part according to the result of the cluster analysis.
[0057] Based on the embodiment of the present application, by performing a closing operation on the third image, the interference of the reflection on the second electronic device in obtaining the second part can be reduced, and the possibility of successful decoding can be improved. In addition, in the case where the second part is more blocked or severely reflected, the second part can still be successfully obtained through the results of cluster analysis, which increases the possibility of the electronic device successfully decoding the second part later.
[0058] In one implementation, before performing cluster analysis on the N frames of third images, the method further includes: filtering particle points in the N frames of third images whose areas are smaller than a first area threshold.
[0059] Based on the embodiment of the present application, particle points with a smaller area in the third image can be filtered out, thereby reducing the interference of the particle points with a smaller area on the acquisition of the second part.
[0060] In one implementation, decoding the first information according to the second part includes: performing intra-frame difference processing on the second part of each frame of N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, the first channel image, the second channel image, and the third channel image are one of a red R channel image, a green G channel image, and a blue B channel image, and each is different; performing inter-frame difference processing on the N frames of grayscale images respectively to obtain N frames of difference images; performing binarization processing on the N frames of difference 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 according to the first target image.
[0061] Exemplarily, 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.
[0062] Based on the embodiment of the present application, the second electronic device can decode based on the second part included in the N frames of image to successfully obtain the first information encoded therein.
[0063] In one implementation, decoding the first information according to 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 according to the second target image.
[0064] Based on the embodiment of the present 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.
[0065] In one implementation, before binarizing N frames of differential images, the method further includes: determining the degree of moiré of each frame of the N frames of differential images respectively; wherein, binarizing the N frames of differential images to obtain N frames of fourth images includes: filtering 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é; and binarizing the filtered N frames of differential images to obtain N frames of fourth images.
[0066] Based on the embodiment of the present application, the second electronic device can also determine the degree of moiré in the image and set a filtering threshold according to the degree of moiré, thereby reducing the interference caused by the moiré and helping to increase the probability of successful decoding.
[0067] In one implementation, the first information includes at least one of a connection pairing code, account login information, a product serial number, and a media access control MAC address.
[0068] It should be understood that the first information may also include other information, such as a verification code, a website, etc., which is limited by the embodiments of the present application.
[0069] In a third aspect, the present application provides an electronic device comprising: one or more processors; one or more memories; one or more memories storing one or more programs, wherein when the one or more programs are executed by one or more processors, the method for information transmission as in the second aspect and any possible implementation thereof is executed.
[0070] In a fourth aspect, the present application provides an apparatus, comprising a module for implementing a method for information transmission as in the second aspect and any possible implementation manner thereof.
[0071] In a fifth aspect, the present application provides a chip, comprising a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals so that the method for information transmission in the second aspect and any possible implementation thereof is executed.
[0072] In a sixth aspect, the present application provides a readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the method for information transmission in the second aspect and any possible implementation thereof is executed.
[0073] In a seventh aspect, the present application provides a program product, which includes a program code. When the program code runs on an electronic device, the method for information transmission in the second aspect and any possible implementation thereof is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0075] Figure 2 It is a schematic diagram of the software structure of the electronic device provided in the embodiment of the present application.
[0076] Figure 3 It is a schematic diagram of a group of graphical user interfaces GUI provided in an embodiment of the present application.
[0077] Figure 4 It is a schematic diagram of a group of GUIs provided in an embodiment of the present application.
[0078] Figure 5 It is a schematic diagram of a full-screen display of an electronic device provided in an embodiment of the present application.
[0079] Figure 6 It is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
[0080] Figure 7An embodiment of the present application provides a process for obtaining a ring pattern.
[0081] Figure 8 Another process for obtaining a ring pattern is provided in an embodiment of the present application.
[0082] Fig. 9 This is a schematic diagram of obtaining device connection information provided by an embodiment of the present application.
[0083] Fig.10 It is a schematic diagram of an annular area provided in an embodiment of the present application.
[0084] Fig.11 It is a schematic diagram of determining a connection pairing code by combining results of multiple decodings provided in an embodiment of the present application.
[0085] Fig.12 It is a schematic interactive diagram of a method for information transmission provided in an embodiment of the present application.
[0086] Fig.13 It is a schematic flowchart of a method for information transmission provided in an embodiment of the present application.
[0087] Fig.14 It is a schematic block diagram of any electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0088] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0089] The method in the embodiments of the present application can be applied to electronic devices such as smart phones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, vehicle-mounted devices, smart TVs, wearable devices, foldable devices, and Internet of Things (IoT) devices.
[0090] Figure 11 shows a schematic diagram of the structure of the electronic device 100. The 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, an antenna 1, an 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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.
[0091] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0092] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0093] In the embodiment of the present application, the processor 110 or the GPU may include a coding module, and the coding module may be used to encode the device connection information. For example, the processor 110 or the GPU may encode the connection pairing code and superimpose it on the ring pattern.
[0094] The processor 110 or the GPU may include a feature enhancement module, which may be used to perform feature particle point extraction, particle point filtering or superposition, and the like.
[0095] The processor 110 or the GPU may further include a decoding module, and the interface module may be used to decode the characteristic particle points and obtain a connection pairing code.
[0096] The processor 110 or the GPU may further include a multi-frame fusion module, which may be used to fuse multiple decoding results to determine a final connection pairing code.
[0097] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0098] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0099] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0100] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
[0101] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
[0102] 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 a PCM bus interface.
[0103] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
[0104] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
[0105] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
[0106] The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.
[0107] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0108] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0109] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .
[0110] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0111] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the electronic device 100 .
[0112] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0113] The wireless communication module 160 can provide wireless communication solutions for application in the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0114] In the embodiment of the present application, the wireless communication module 160 may further include a connection authentication module, which may be used to verify the connection pairing code and establish a connection relationship with the other device after the verification passes.
[0115] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0116] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0117] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or a display panel made of one of the materials such as an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microled, micro-oled or quantum dot light emitting diodes (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0118] In an embodiment of the present application, the display screen 194 can also be used to display a ring pattern (such as a Hongmeng ring) including encoding device connection information.
[0119] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0120] The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. In the embodiment of the present application, the camera 193 in the old device can be used to scan the display interface of another electronic device to obtain an image including a ring pattern.
[0121] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.
[0122] Video codecs are used to compress or decompress digital video.
[0123] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
[0124] The internal memory 121 may be used to store computer executable program codes, wherein the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121 .
[0125] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0126] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
[0127] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.
[0128] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.
[0129] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0130] The earphone jack 170D is used to connect a wired earphone.
[0131] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, an acceleration sensor 180E, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, a bone conduction sensor 180M, etc.
[0132] Buttons 190 include a power button, a volume button, and the like.
[0133] Motor 191 can generate vibration prompts.
[0134] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0135] The SIM card interface 195 is used to connect a SIM card.
[0136] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system library, and the kernel layer. The application layer can include a series of application packages.
[0137] like Figure 2 As shown, the application package may include applications (application, App) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.
[0138] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0139] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0140] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0141] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0142] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0143] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0144] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0145] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0146] The core library consists of two parts: one part is the function that the Java language needs to call, and the other part is the core library.
[0147] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0148] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0149] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0150] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0151] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0152] A 2D graphics engine is a drawing engine for 2D drawings.
[0153] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0154] In some scenarios where information needs to be transmitted between devices, scanning a QR code is usually used for connection pairing between devices, account login, etc. For example, when a user uses a first device to change devices or clone data, 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 for connection pairing. However, the interaction path of scanning a QR code is long and not convenient enough.
[0155] In view of this, the embodiments of the present application provide a method and electronic device for information transmission. In this technical solution, the first device can superimpose the information to be transmitted on a specially designed image. For example, when a device connection is required, the first device can display the specially designed image, and the second device can scan the image to obtain the device connection information therein to achieve the connection between the first device and the second device. When the first device is replaced or data is cloned, the interaction path of the device can be shortened and the sense of technology can be enhanced.
[0156] Before introducing the technical solution of the present application, some professional terms that may be involved in the present application are first introduced as follows.
[0157] Region of interest (ROI): In image processing, the area to be processed is outlined from the image being processed in the form of a box, circle, ellipse, irregular polygon, etc., which is called the region of interest.
[0158] Hue, saturation, value (HSV) color space: A color space that uses hue, saturation, and value to express color, often used in image processing. Hue H represents color, saturation S represents the depth of color, and value V represents the brightness of color.
[0159] Red, green, blue (RGB) color space: A color space that uses the three basic colors of red, green, and blue as the basis, and produces rich and wide-ranging colors by superimposing them to varying degrees. RGB color space is commonly used in video, multimedia, and web design, and the display screens of electronic devices are based on RGB color space.
[0160] Moiré: High-frequency interference stripes that appear on the photosensitive element are high-frequency irregular stripes of color that appear on the image.
[0161] Image binarization: Set the grayscale value of the pixels on the image to 0 or 255. After the image is binarized, the entire image presents a visual effect of only black and white.
[0162] The following will introduce the process of changing the first device and the process of data cloning in the present application in combination with several groups of graphical user interfaces (GUIs). The following description will be made by taking the first device as the electronic device 200 as an example.
[0163] For example, Figure 3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application. Figure 3 (a) to (k) in the figure show the process of a user performing a power-on experience on the electronic device 200 .
[0164] See also Figure 3 In (a), the GUI is a startup display interface 210 of the electronic device 200. The display interface 210 may include multiple language options for the user to select. For example, the user selects Simplified Chinese, or the electronic device 200 selects Simplified Chinese by default.
[0165] The display interface 210 may further include a start function button 211. When the electronic device 200 detects that the user clicks the start function button 211, the display interface 210 may display the following information: Figure 3 GUI shown in (b) in .
[0166] See also Figure 3 In (b), the GUI is a display interface 220 of the electronic device 200 for the user to select a region. The 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 in the card 221.
[0167] For example, when the electronic device 200 detects that the user clicks the continue function button 222, the following information may be displayed: Figure 3 GUI shown in (c) in FIG.
[0168] See also Figure 3 In (c), the GUI is a display interface 230 of the electronic device 200. The display interface 230 may include text content "Quick Start" and an icon 231 for indicating the electronic device.
[0169] Before the electronic device 200 displays the display interface 230, or when the electronic device 200 displays the display interface 230, the electronic device 200 may broadcast a Bluetooth message to discover a nearby second device. The display interface 230 may display a text content "discovering nearby devices".
[0170] When the user uses the second device to approach the electronic device 200, for example, when the distance between the second device and the electronic device 200 is less than or equal to the preset distance, the second device can display a setting card. When the second device detects that the user clicks the setting function button in the setting card, it can send instruction information to the electronic device 200 via Bluetooth, so that the electronic device 200 can display the following information: Figure 3 GUI shown in (d).
[0171] See also Figure 3 In (d), the GUI is a display interface 240 for connection verification of the electronic device 200. The display interface 240 may include specially designed images, such as dynamic patterns, which can be used for device connection, account login, data transmission, and smooth communication between the electronic device 200 and other electronic devices, and can also be used for screen projection, conference participation, etc. of the electronic device 200.
[0172] Exemplarily, the dynamic pattern may be a ring, such as a Hongmeng ring, or other shapes, such as a rectangle, a circle, an ellipse, etc. The embodiment of the present application takes the dynamic pattern as a ring as an example for explanation, and the ring may be composed of a plurality of white and blue particles, and the plurality of white and blue particles may contain the first information of the electronic device 200. The plurality of white and blue particles may be dynamic or static.
[0173] For example, the first information may include device connection information, verification code, account login information, screen projection information, meeting information, etc. The device connection information may be a connection pairing code, such as a 6-digit number "147258". In other examples, the connection pairing code may also include English letters, or the connection pairing code may also be 4 digits or 8 digits.
[0174] Alternatively, the device connection information may also include other information of the electronic device 200, such as device identification, model, media access control (MAC) address, etc.
[0175] It should be understood that the embodiment of the present application is described by taking the example that the first information may include device connection information, and the device connection information is a connection pairing code.
[0176] It should be understood that the electronic device 200 may use a certain coding method to hide the connection pairing code in the ring pattern.
[0177] In some examples, the electronic device 200 may divide the ring into a plurality of regions, each of which may represent a digit. For example, the electronic device 200 may divide the ring pattern into six regions on average, each of which may include a different number of particles, thereby distinguishing different digits.
[0178] It is understandable that the electronic device 200 can also divide the annular pattern into 9 areas on average, and the 9 areas can include some of the same connection pairing codes. Through this redundant coding method, the success rate of decoding by the peer electronic device can be improved. For example, when the peer electronic device scans the annular pattern, it may only be able to successfully decode part of the annular pattern due to interference such as reflections and moiré. In this case, even if the peer electronic device decodes part of the area, it can still obtain a complete connection pairing code to complete the device connection.
[0179] Alternatively, the electronic device 200 may further divide the annular pattern into a greater number of regions, such as including three or more groups of connection pairing codes, which is not limited in this embodiment of the present application.
[0180] It should be understood that the electronic device 200 may also be encoded in other ways. For example, particles may be displayed at corresponding positions in each area according to a preset order, so that different numbers can be distinguished.
[0181] After the electronic device 200 displays the annular pattern, the user can use the second device to scan the annular pattern, or the user can use the second device to shoot the display interface 240 of the electronic device 200, so that the second device can obtain the annular pattern and decode it to obtain the connection pairing code therein, and the second device uses the connection pairing code to connect and pair to connect the devices. In this way, the second device only needs to shoot or scan the annular pattern displayed by the first device to complete the device connection, thereby improving the efficiency and technological sense of device connection.
[0182] After the devices are connected, the electronic device 200 may display Figure 3 GUI shown in (e) in .
[0183] See also Figure 3 In (e), the GUI is a display interface 250 for the electronic device 200 to verify the lock screen password of the second device. The display interface 250 can be used by the user to input the lock screen password of the second device. In this way, the security of the device connection can be improved. It should be understood that the lock screen password of the second device input by the user will be used as the lock screen password of the electronic device 200. In this way, the user does not need to set the lock screen password in the electronic device 200 separately, which simplifies the user's operation and improves the interaction efficiency between the user and the electronic device 200.
[0184] When the electronic device 200 detects that the user has entered the correct lock screen password, the following information may be displayed: Figure 3 GUI shown in (f) in .
[0185] It should be understood that Figure 3 (e) is an optional solution. In some examples, after the second device scans the annular pattern in the display interface 240 and performs device connection, the electronic device 200 may directly display the following Figure 3 GUI shown in (f) in .
[0186] See also Figure 3 In (f), the GUI is a display interface 255 of the electronic device 200. The display interface 255 may include text content "setting..." and a loading icon.
[0187] It should be understood that when the electronic device 200 displays the display interface 255, the second device can transmit some data to the electronic device 200, such as Huawei account information, Wi-Fi information (such as the name and password of the wireless local area network successfully accessed by the second device), protocol statement or privacy, etc. In this way, the account and wireless network can be quickly migrated without the user having to set it up separately on the electronic device 200, thereby simplifying the user's operation.
[0188] When the electronic device 200 detects that the data transmission is completed, it can display Figure 3GUI shown in (g).
[0189] See also Figure 3 In (g), the GUI is a display interface 260 for data import of the electronic device 200. The display interface 260 may include a display card 261 and a display card 262. The display card 261 may include text content "import directly from the device in use" and the time required for data import (e.g., it takes about 20 minutes), and the display card 262 may include text content "download via cloud backup" and the time required for data import (e.g., it takes about 15 minutes).
[0190] The display interface 260 may further include a function button 263 for not transmitting data. When the user clicks the function button 263, the electronic device 200 will not execute the data import process.
[0191] In other examples, after the electronic device 200 detects that the user clicks on the display card 262, the data of the second device can be downloaded from the cloud server.
[0192] For example, when the electronic device 200 detects that the user clicks on the display card 261, the following information may be displayed: Figure 3 GUI shown in (h).
[0193] See also Figure 3 In (h), the GUI is a display interface 265 for the electronic device 200 to import data 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.
[0194] The display card 2651 may include the number of basic data items in the second device (e.g., 1526 items) and the size of the memory occupied (e.g., 45.3 GB). The display card 2652 may include the number of applications and data items in the second device (e.g., 2531 items) and the size of the memory occupied (e.g., 35.6 GB). The display card 2653 may include the number of system setting data items (e.g., 531 items) and the size of the memory occupied (e.g., 5 MB).
[0195] For example, when the electronic device 200 detects that the user clicks the function button 2654 to start importing, the following information may be displayed: Figure 3 The GUI shown in (i) in FIG.
[0196] See also Figure 3In (i), the GUI is a display interface 270 for displaying the progress of data importing by the electronic device 200. The display interface 270 may include a progress bar 271 for the progress of data importing and the remaining time of data importing.
[0197] When the electronic device 200 detects that the data import is complete, it may display the following Figure 3 GUI shown in (j) in FIG.
[0198] See also Figure 3 In (j), the GUI may be a display interface 275 of an electronic device. The display interface 275 may include icons of multiple electronic devices and a function button 2751 for immediate experience.
[0199] When the electronic device 200 detects that the user clicks the function button 2751, the following information may be displayed: Figure 3 GUI shown in (k).
[0200] It should be understood that in other examples, after the electronic device 200 detects that the data import is completed, the electronic device 200 may also directly display Figure 3 The GUI shown in (k) is not limited to this embodiment of the present application.
[0201] See also Figure 3 In (k), the GUI is a display interface 280 of the electronic device 200. The display interface 280 may be a display desktop of the electronic device 200, and the display interface 280 may include multiple applications, and the layout of the applications in the display interface 280 is the same as the layout of the display desktop on the second device. At this point, after the user turns on the device, the data migration from the second device to the first device is completed.
[0202] Based on the embodiments of the present application, when using the first device, the user can hide the device connection information in a specially designed image (such as a ring pattern), and the second device scans the specially designed image to obtain the device connection information, and establishes a connection relationship with the first device based on the device connection information, thereby simplifying the device connection process and enhancing the sense of technology of device connection. After the devices are connected, the first device can obtain the data in the second device through convenient operations on the first device, complete data migration, make the new device quickly available, and enhance the user's boot experience of the first device.
[0203] Combination of the above Figure 3 This describes the process of users operating on the first device. Figure 4 This section describes the user's operation process on the second device during the startup experience.
[0204] For example, Figure 4is a schematic diagram of a set of GUIs provided in an embodiment of the present application. Figure 4 (a) to (g) in the figure show the process in which a user operates on the second device to transfer data to the first device.
[0205] See also Figure 4 In (a), the GUI is a display desktop 310 of the electronic device 300. The display desktop 310 may include multiple applications in the electronic device 300.
[0206] It should be understood that the Bluetooth of the electronic device 300 is turned on. When the electronic device 300 detects the Bluetooth broadcast message of the electronic device 200, the following information may be displayed: Figure 4 GUI shown in (b) in .
[0207] Alternatively, when the electronic device 300 detects a Bluetooth broadcast message from the first device (such as the electronic device 200), the first distance from the electronic device 200 can be determined by Bluetooth distance measurement. When the first distance is less than or equal to the preset distance, the electronic device 300 can display a message such as Figure 4 GUI shown in (b) in .
[0208] In other examples, the electronic device 300 displays Figure 4 Before the GUI shown in (b), it can also be in the lock screen display interface or the display interface of other applications, which is not limited in this embodiment of the present application.
[0209] See also Figure 4 In (b), the electronic device 300 may display a display interface 311. The display interface 311 may include an indication icon 3111 of the first device, a model of the first device (such as P60), and a setting function button 3112. The display interface 311 may also include a close function button for closing the display interface 311.
[0210] When the electronic device 300 detects that the user clicks the setting function button 3112, the following information may be displayed: Figure 4 GUI shown in (c) in FIG.
[0211] As described above, after the user clicks the setting function button 3112 , the electronic device 200 displays the display interface 240 which implicitly contains the connection pairing code.
[0212] See also Figure 4 In (c), the electronic device 300 may display a display interface 312. The display interface 312 may include a viewfinder 3121 and text contents such as "Scan to verify" and "Aim the viewfinder at the pattern on the new device".
[0213] Exemplarily, the new device is the first device.
[0214] In other examples, the display interface 312 may also be a viewfinder display interface of a camera or a viewfinder display interface of a camera, which is not limited in the embodiments of the present application.
[0215] It should be understood that the display interface 312 may be a portion covering the display interface 310, that is, the display interface 312 may be displayed in a semi-modal manner. The embodiment of the present application does not limit the specific position of the display interface 312, and the display interface 312 may be located at the bottom of the display interface 310, or at the top of the display interface 310, or at the middle of the display interface 310. The viewfinder 3121 may be located at the center of the display interface 312, or at other positions of the display interface 312, which is not limited in the embodiment of the present application.
[0216] In other examples, the display interface 312 may also be displayed in full screen. Figure 4 (c) in can be Figure 5 Make a substitution. Figure 5 is a schematic diagram of a full-screen display of an electronic device provided in an embodiment of the present application. Figure 5 The electronic device 300 can display the display interface 312 in full screen, and the display interface 312 can refer to the description in the previous text.
[0217] Exemplarily, the user may use the electronic device 300 to scan the display interface 240 of the 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 the electronic device 200 .
[0218] It should also be understood that the viewfinder 3121 may also display a breathing effect or a loading effect when framing the annular area, which is not limited in the embodiment of the present application.
[0219] For example, the breathing effect can be understood as the viewfinder 3121 gradually acquiring the annular area from large to small when framing the annular area. And the annular area acquired by the viewfinder 3121 can also display the dynamic change effect of the color stroke. It should be understood that the color stroke can be regular or irregular, and the color stroke can also rotate in a preset direction, or the color stroke can also dynamically change from large to small or from small to large. Alternatively, when acquiring the annular area, the viewfinder 3121 can also display a dynamic icon for indicating the loading content in the acquired annular area. Alternatively, when acquiring the annular area, the viewfinder 3121 can also display the dynamic change effect of the loading process in the acquired annular area.
[0220] For example, after the electronic device 300 detects that the viewfinder has scanned the annular area, the following may be displayed: Figure 4 GUI shown in (d).
[0221] It should be understood that the process of the electronic device decoding the annular area to obtain the connection pairing code will be described below in conjunction with specific embodiments, which will not be described in detail here.
[0222] 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 on manual verification, it will display a display interface for entering a 6-digit connection pairing code. At this time, the electronic device 200 will display a display interface including a 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 the following Figure 4 GUI shown in (d).
[0223] See also Figure 4 In (d), the electronic device 300 may display a display interface 313. The display interface 313 may include an icon indicating that two devices are connecting and text content “Connecting”.
[0224] After the electronic device 300 is connected to the electronic device 200, the electronic device 300 may display Figure 4 GUI shown in (e) in .
[0225] See also Figure 4 In (e), the electronic device 300 may display a display interface 314. The display interface 314 may include an icon of the connection between the two devices and text content "operate on the new device".
[0226] Exemplarily, the new device is the first device.
[0227] For example, at this time, the electronic device 200 may display the display interface 250 to improve 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 function button 2654 to start importing, the electronic device 300 may display the following Figure 4 GUI shown in (f) in .
[0228] See also Figure 4 In (f), the electronic device 300 may display a display interface 315. The display interface 315 may display a guide for migrating data from one device to another device and a text content “data is being imported”.
[0229] When the electronic device 300 detects that the data import is complete, it may display the following Figure 4 GUI shown in (g).
[0230] See also Figure 4 In (g), the electronic device 300 may display a display interface 316. The display interface 316 is used to prompt the user that the data import is complete.
[0231] Based on the embodiment of the present application, when a user uses a first device, he can use a second device to scan the circular 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. Afterwards, when the second device transmits data to the first device, the second device can also display operation instructions and the progress of data transmission, so that the user can obtain the data transmission status.
[0232] In some cases, when cloning data on an electronic device that is not turned on for the first time, the second device can also establish a device connection by scanning a ring pattern. Figure 6 Introduce the technical solution.
[0233] For example, Figure 6 is a schematic diagram of another set of GUIs provided in an embodiment of the present application. Figure 6 (a) to (k) in FIG. 4 show the process in which a user operates on the electronic device 400 to perform data cloning.
[0234] See also Figure 6 In (a), the GUI may be a display desktop 410 of the electronic device 400. The display desktop 410 may include multiple applications. For example, the multiple applications may include a first application, and the first application may be an application for data cloning, such as mobile phone cloning.
[0235] For example, when the electronic device 400 detects that the user clicks on the first application, the following information may be displayed: Figure 6 GUI shown in (b) in .
[0236] See also Figure 6 In (b), the GUI is a display interface 420 of the first application. The display interface 420 may include a display card 421 and a display card 422. The display card 421 may include text content "This is the second device" and an icon. The display card 422 may include text content "This is the first device" and an icon.
[0237] When the electronic device 400 detects that the user clicks the display card 422, the following may be displayed: Figure 6 GUI shown in (c) in FIG.
[0238] See also Figure 6In (c), the electronic device 400 may display a display interface 430. The display interface 430 may include multiple types of second devices, such as Huawei, Android, etc. The display interface 430 may be used for the user to select the type of the second device.
[0239] For example, when the electronic device 400 detects that the user selects the type of operation "Huawei", the following information may be displayed: Figure 6 GUI shown in (d).
[0240] It can be understood that the electronic device 400 can broadcast a Bluetooth message. When the second device (such as the electronic device 300) detects the Bluetooth message and the distance between the electronic device 300 and the electronic device 400 is less than or equal to the preset distance, the electronic device 300 can display the display interface 311. When the user clicks the setting function button 3112, the electronic device 300 can send an indication message to the electronic device 400. At this time, the electronic device 400 can display the following information: Figure 6 GUI shown in (d).
[0241] In other examples, after the electronic device 400 detects that the user selects the type "Huawei", it can also directly display the following Figure 6 GUI shown in (e) in .
[0242] See also Figure 6 In (d), the GUI is a display interface 450 for connection verification of the electronic device 400. The display interface 450 may include a specially designed image, such as a dynamic pattern, and the specially designed image may be used to connect the electronic device 400 to other electronic devices.
[0243] It should be understood that Figure 6 For details of (d) in Figure 3 The relevant description in (d) in .
[0244] It should also be understood that Figure 6 For (e) to (k) in Figure 3 For the sake of brevity, the relevant descriptions of (e) to (k) in FIG. 1 are not repeated here.
[0245] Based on the embodiments of the present application, when performing data cloning, the first device can hide the device connection information in a specially designed image (such as a ring pattern), and the second device scans the specially designed image to obtain the device connection information, and establishes a connection relationship with the first device based on the device connection information, thereby simplifying the device connection process and enhancing the sense of technology of device connection. After the devices are connected, the first device can obtain the data in the second device through convenient operations on the first device to complete data migration.
[0246] In other examples, device A can also encode account information into a specially designed image (such as a ring pattern). When account login is required, device A can display the ring pattern, and device B can scan and parse the ring pattern displayed by device A to implement 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, free connection, video conference, etc.
[0247] Combination of the above Figure 3-6 The GUI introduces the process of quickly making new machines available and cloning data. Figure 7-11 The process of an electronic device acquiring and decoding a ring pattern in an embodiment of the present application is introduced.
[0248] It should be understood that the present application embodiment is described by taking the first device encoding the device connection information in a ring pattern as an example. Figure 7-8 The process of the second device acquiring the ring pattern is introduced.
[0249] For example, Figure 7 An embodiment of the present application provides a process for obtaining a ring pattern.
[0250] When connecting devices, the first device encodes the device connection information in a ring pattern and displays a display interface containing the ring pattern. After the second device uses a camera to scan the display interface containing the ring pattern on the first device, it first recognizes the ring pattern from the image. Figure 7 As shown, the process of the second device acquiring the annular pattern may include steps 1 to 5.
[0251] Step 1: The second device converts the RGB image containing the ring pattern into an HSV image.
[0252] Exemplarily, the image containing the annular pattern acquired by the second device is generally an RGB image, and the second device converts the RGB into an HSV image. In the HSV image, there is a corresponding value distribution in the H domain, the S domain, and the V domain.
[0253] It should be understood that the second device can convert the RGB image containing the ring pattern into an HSV image using the following formula.
[0254]
[0255] v=max
[0256] Among them, (r, g, b) represents 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] Exemplarily, the H domain can be measured by angle, ranging from 0 to 360 degrees. In the embodiment of the present application, 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, and filter out the remaining angles.
[0259] In some examples, the annular pattern is mainly blue, the first angle may be 210 degrees, and the second angle may be 270 degrees. The second device can retain the blue component in the image and filter out the other color components by this filtering method. In this way, even if there is reflection in the image containing the annular pattern obtained by the second device, the reflection can be filtered out to reduce the interference caused by the reflection.
[0260] In some other examples, the annular pattern is mainly green, the first angle may be 90 degrees, and the second angle may be 150 degrees. The second device can retain the green component in the image and filter out the other color components through this filtering method.
[0261] It should be understood that the first angle and the second angle can be set by the developer based on experience, and can also be determined by the second device based on the numerical distribution of the H domain. The embodiment of the present application does not limit the specific method of obtaining the first angle and the second angle.
[0262] Similarly, the S domain represents saturation, which represents the degree to which the color is close to the spectral color, and can be expressed by 0 to 1 (or 100%), where 0 represents the lowest saturation (pure white) and 1 represents the highest saturation, which is closest to the spectral color of the color.
[0263] The V domain represents brightness, which represents the lightness or darkness of a color, and can be expressed from 0 to 1 (or 100%), where 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, you can filter out the darker colors in the image.
[0265] For example, the second device may 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 embodiments of the present application do not limit the specific values of the first saturation threshold, the second saturation threshold, and the first brightness threshold. For example, the first saturation threshold is 0.3 or 0.35, the second saturation threshold is 0.9 or 0.85, and the first brightness threshold is 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, and not perform threshold filtering in the S domain and the V domain.
[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 a grayscale threshold in the S domain and the V domain, and the value of the part greater than the grayscale threshold is 1 (or the grayscale value is 255), that is, white, and the value of the part less than or equal to the threshold is 0 (or the grayscale value is 0), that is, black.
[0270] Exemplarily, in the S domain, the second device may set a first grayscale threshold, and the value of a portion greater than the first grayscale threshold is 1, indicating white, and the value of a portion less than or equal to the first grayscale threshold is 0, indicating black.
[0271] In the V domain, the second device may set a second grayscale threshold, and the value of the portion greater than the second grayscale threshold is 1, indicating white, and the value of the portion less than or equal to the second grayscale threshold is 0, indicating black.
[0272] In this way, the second device can obtain a binarized image A, which includes 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 may first dilate image A and then erode it, so that the discrete points form a connected domain. Figure 7 , after the closing operation is performed on image A, the discrete white points in image A form a connected domain.
[0275] For example, dilating image A can be understood as using a first rectangle (with a width of m pixels and a height of n pixels), placing pixel X at the center of the first rectangle for each pixel X in image A, traversing all other pixels covered by the first rectangle, and modifying the value of pixel X to the maximum value of the pixels covered by the first rectangle.
[0276] The erosion of image A can be understood as using a first rectangle (with a width of m pixels and a height of n pixels), 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 smallest value among the pixels covered by the first rectangle.
[0277] In other examples, the second device may also use other methods to perform a closing operation on image A, which is not limited in the embodiments of the present application.
[0278] Step 5: The second device extracts a region of interest ROI, which is the area where the annular pattern is located.
[0279] Exemplarily, the second device may perform ellipse fitting on the connected domain to extract a ROI containing a ring pattern.
[0280] It should be understood that the embodiment of the present application does not limit the fitting method. In other examples, the second device can also adopt rectangular fitting and the like.
[0281] Based on the embodiment of the present application, the second device can successfully acquire the annular pattern displayed in the first device.
[0282] In some cases, due to severe reflection or partial obstruction of the ring pattern, the second device will not be able to form a connected domain of discrete points when performing a closing operation on the binarized image, which may cause the second device to be unable to recognize the complete ring pattern, which will cause the second device to be unable to successfully decode and cause the device connection to fail. Therefore, for this situation, the embodiment of the present application can use particle point clustering to obtain the complete ring pattern. Figure 8 Introduce the technical solution.
[0283] For example, Figure 8 Another process for obtaining a ring pattern is provided in an embodiment of the present application. Figure 8 As shown, the process of the electronic device acquiring the ring pattern may include steps 1 to 5.
[0284] Step 1: The second device converts the image containing the ring 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 the above steps 1 to 3 can refer to the above Figure 7 For the sake of brevity, the relevant descriptions of steps 1 to 3 in are not repeated here.
[0288] Step 4: The second device performs particle point filtering on the binarized image A.
[0289] The second device obtains image A after binarizing the image, and the image A includes black and white colors, wherein white particle points are distributed in a discrete manner in image A. Since there may be some interfering points among these particle points, for example, some particle points with a larger area may be interfering points. Therefore, the second device may filter the particle points included in image A.
[0290] Exemplarily, the second device may set an area threshold for particle points, retaining particle points whose areas are less than or equal to the first threshold m1, or retaining particle points whose areas are less than or equal to the first threshold m1 and greater than the second threshold m2, and filtering out the remaining particle points.
[0291] In this way, the second device can filter out some interfering particle points 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 contour in image A to determine the area in image A where the display screen of the first device is located.
[0294] Step 5: The second device extracts ROI, which is the area where the annular pattern is located.
[0295] Exemplarily, the second device may use a ring clustering algorithm to cluster the particle points to obtain multiple rings. Afterwards, the second device may select a ring from the multiple rings whose aspect ratio is approximately equal to 1 and whose ratio of the center of the ring to the particle point density of the ring area is greater than a third density threshold, and use the ring as the extracted ROI.
[0296] Alternatively, the second device may also select a circular ring from multiple circular rings whose aspect ratio is approximately equal to 1 and whose particle point density in the circular ring area is greater than a fourth density threshold, and use the circular ring as the extracted ROI.
[0297] It should be understood that the ring clustering algorithm may be, for example, a spectral clustering algorithm, a clustering algorithm based on Euclidean distance such as a K-means algorithm, or the like.
[0298] Continue to see Figure 8 , the ROI finally extracted by the second device may include the complete annular pattern. In other examples, if the annular pattern is partially blocked, the ROI finally obtained by the second device may include part of the annular pattern, such as 60% or 75% of the entire annular pattern. However, due to the partial redundancy of the first device during encoding, even though the second device obtains part of the entire annular pattern, it may still be successfully decoded and obtain the device connection information.
[0299] After the second device successfully extracts the ROI including the annular pattern, the second device may process the ROI to obtain the device connection information encoded therein. Fig. 9 Introduce the technical solution.
[0300] For example, Fig. 9 FIG. 1 is a schematic diagram of obtaining a connection pairing code provided in an embodiment of the present application. Fig. 9 As shown, the process of the second device acquiring the device connection information may include steps 1 to 7.
[0301] The second device can Figure 8 The ROI is extracted from continuous or discontinuous multiple frame images in the manner described above to obtain multiple frame images including ring 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 intra-frame difference processing performed by the second device on img1 is taken as an example to illustrate the process of intra-frame difference.
[0304] img1 has three channels of RGB. The second device first decomposes the three channels of RGB on img1 to obtain an R channel image, a G channel image, and a B channel image, and the corresponding values are counted as R1, G1, and B1, respectively.
[0305] In one example, the second device may use the formula img1-1=|(B1-R1)+(B1-G1)| to perform intra-frame difference processing to obtain a grayscale image img1-1.
[0306] In another example, the second device may perform intra-frame difference processing using the formula img1-1=|(G1-R1)+(G1-B1)| to obtain a 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 respectively.
[0308] In this way, by performing intra-frame difference processing on img1, img2 to imgn respectively, the characteristic particle points included in the obtained grayscale image can be made more obvious, which is beneficial for the second device to obtain the connection pairing code encoded therein.
[0309] Step 2: The second device performs inter-frame difference processing on img1-1, img2-1 to imgn-1 respectively to obtain differential images img1-2, img2-2 to imgn-2.
[0310] Exemplarily, the second device may perform pairwise differential processing on img1-1, img2-1 to imgn-1 respectively.
[0311] For example, take n as 3. The second device may perform a differential operation on img1-1 and img2-1 as image img1-2; the second device may perform a differential operation on img2-1 and img3-1 as image img2-2; the second device may perform a differential operation on img3-1 and img1-1 as image img3-2.
[0312] It should be understood that the differential operation can be understood as a process of subtracting the grayscale values of corresponding pixels of two frames of images and taking the absolute value.
[0313] It should be understood that the embodiment of the present application does not limit the specific execution order of step 1 and step 2. In some examples, the second device may also 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] Exemplarily, the description is made by taking n as 3. The second device may align img1-1 and img1-3 based on the intermediate image img2-1.
[0316] For example, the second device may align img1-1 and img1-3 by using affine transformation or feature point alignment, thereby reducing the effect of misalignment caused by jitter when the second device acquires the image of the ROI.
[0317] In other examples, the second device may also perform alignment processing on multiple frames of images based on img1-1 or img1-3.
[0318] It should be understood that the second device can also use other existing multi-frame alignment methods to align the above-mentioned images, and the embodiments of the present application are not limited to this.
[0319] Step 3: The second device determines the degree of moiré in img1-2, img2-2 to imgn-2.
[0320] Exemplarily, taking img1-2 as an example, the second device performs binarization processing on the image img1-2 to obtain the binarized image img1-2, and determines the degree of moiré according to the density of particle points in the image img1-2.
[0321] For example, the second device may classify the moiré into three levels: none, low, and high according to the density of the particle points. Alternatively, the second device may classify the moiré levels according to other indicators, which are not limited in this application.
[0322] For example, if the second device determines that the density of particle points is less than the first density threshold, it can be determined that there is no moiré. If the second device determines that the density of particle points is greater than the first density threshold or less than or equal to the second density threshold, and the second density threshold is twice the first density threshold, it can be determined that the degree of moiré is low. If the second device determines that the density of particle points is greater than the second density threshold, it can be determined that the degree of moiré is high.
[0323] It should be understood that the second device may further divide the moiré pattern into none or two degrees, or the second device may further divide the moiré pattern into more degrees, which is not limited in the present application.
[0324] In this way, the second device can determine the severity of the moiré in the image, which helps to remove the moiré later.
[0325] Step 4: The second device sets the binarization threshold according to the degree of moiré in img1-2, img2-2 to imgn-2, respectively, to obtain binary images img1-3, img2-3 to imgn-3.
[0326] Exemplarily, taking img1-2 as an example, if there is no moiré in img1-2, the second device can set a first grayscale threshold to filter out the grayscale value of the pixel in the grayscale image that is less than the first grayscale threshold. If there is moiré in img1-2, and the degree of the moiré is low, the second device can set a second grayscale threshold to filter out the grayscale value of the pixel in the grayscale image that is less than the second grayscale threshold. If there is moiré in img1-2, and the degree of the moiré is high, the second device can set a third grayscale threshold w3 to filter out the grayscale value of the pixel in the grayscale image that is less than the third grayscale threshold.
[0327] The higher the degree of moiré, the larger the corresponding grayscale threshold. Correspondingly, the first grayscale threshold is smaller than the second grayscale threshold, and the second grayscale threshold is smaller than the third grayscale threshold.
[0328] It should be understood that the first grayscale threshold, the second grayscale threshold, and the third grayscale threshold may be set by a developer, or may be determined by the second device according to the distribution of the moiré pattern, and the embodiments of the present application are not limited thereto.
[0329] In this way, the second device sets a corresponding filtering threshold according to the degree of the moiré pattern, so that the moiré pattern can be filtered out as much as possible, thereby reducing the influence of the moiré pattern on the recognition result.
[0330] Step 5: The second device performs an OR operation on the binary images img1-3, img2-3 to imgn-3 to obtain image img-a.
[0331] The second device can perform an OR operation on the multiple frames of binary images so that the obtained img-a can include more characteristic particle points, thereby improving 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 the image img-a to obtain the image img-f.
[0334] For example, the second device may determine the area of all particle points in the image img-a and sort them in descending order of area, and then the second device may set a first area threshold to filter the particle points. For example, if the first area threshold is 70%, the second device may retain the first 70% of the particle points.
[0335] It should be understood that the first area threshold may also be other values, such as 65% or 75%, etc. The embodiment of the present application does not limit the specific value of the first area threshold.
[0336] In other examples, the second device may determine the area of all particle points in the image img-a and set a second area threshold to filter the particle points. For example, the particle points in img-a whose area is less than or equal to the second area threshold are filtered out, and the particle points whose area is 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 the above steps 1-7 is not limited in the embodiment of the present application. In other examples, steps 3-6 in the steps 1-7 are optional steps.
[0339] The device connection information may be a connection pairing code. Alternatively, the device connection information may also include a device identification, a MAC address, etc. of the first device. In the embodiment of the present application, the device connection information is described as a 6-digit connection pairing code.
[0340] In one example, the second device may evenly divide the annular region where the particle points in the image img-f are located into a plurality of regions, and determine a corresponding number according to the number of particle points in each region.
[0341] For example, Fig.10 is a schematic diagram of an annular region provided in an embodiment of the present application. Fig.10, the second device can divide the annular area into n areas in order, namely area 1, area 2, area 3,..., area n, and decode the n areas respectively to obtain corresponding numbers. It should be understood that the embodiment of the present application does not limit the specific value of n. For example, n is 6, and area 1 to area 6 can encode a set of connection pairing codes. Or, n is 9, in this case, the second device can redundantly decode part of the connection pairing codes, and accordingly, the first device also redundantly encodes part of the connection pairing codes. Through this redundant encoding method, when there are some areas in area 1 to area n that cannot be recognized by the second device, the second device can still successfully obtain the connection pairing code, thereby increasing the possibility of successful decoding by the second device.
[0342] It should be understood that the first device can cyclically encode the n areas. For example, when n is 18, the first device can cyclically encode the 6-digit connection pairing code and can encode 3 groups of 6-digit connection pairing codes. Through this redundant encoding method, the possibility of successful decoding by the second device can be increased.
[0343] In other examples, the first device may further set a check digit in the first area of each group of connection pairing codes or in an area before an area of each group of connection pairing codes, so that the second device can determine the order of the digits of the connection pairing codes.
[0344] The second device can determine its coded number according to the number of particle points in each area. For example, for area 1, if there is one particle point therein, it can be determined that its coded number is 1. For area 2, if there are 4 particle points therein, it can be determined that its coded number is 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 may also divide the annular area into more areas in sequence, such as 15 areas, 18 areas or 24 areas, etc., so as to increase the possibility of successful decoding by the second device.
[0347] In another example, the second device may evenly divide the annular region where the particle points in the image img-f are located into a plurality of regions, such as 6 regions, and determine the corresponding number according to the distribution of the particle points in each region.
[0348] For example, for area 1, the second device may evenly divide area 1 into 10 grids (numbered 0 to 9). If there is a particle point in area 1, then the number represented by the area can be determined by the grid in which the particle point is located. For example, if the particle point is located in the first grid, it can be determined that area 1 corresponds to number 1.
[0349] If there are multiple particle points in the area 1, the number of the grid containing the largest number of particle points is determined as the number obtained by decoding. For example, if the second grid contains the largest number of particle points, it can be determined that the area 1 corresponds to number 2.
[0350] In some cases, in order to increase the probability that the second device successfully decodes and obtains the correct connection pairing code, the second device may also combine multiple decoding results to determine the final connection pairing code.
[0351] For example, Fig.11 Schematic diagram of determining a connection pairing code by combining multiple decoding results provided by an embodiment of the present application. Fig.11 As shown, through Fig. 9 and Fig.10 In the decoding method, the second device decodes the three frames of images, image 1, image 2, and image 3, to obtain the connection pairing code 1 "147258", decodes the three frames of images, image 2, image 3, and image 4, to obtain the connection pairing code 2 "147256", and decodes the three frames of images, image 3, image 4, and image 5, to obtain the connection pairing code 3 "147258", then the second device can finally determine that the obtained connection pairing code is "147258". In this way, even if the last digit of the connection pairing code 2 decoded by the second device is wrong, the second device can determine the final correct connection pairing code by combining the connection pairing code 1 and the connection pairing code 3.
[0352] It should be understood that Fig.11 Only three results obtained by the second device are used as an example for illustration. In other examples, the second device may also obtain more results to improve the correctness of the connection pairing code finally determined.
[0353] Based on the embodiment of the present application, the second device can determine the final connection pairing code based on the results of multiple decodings, thereby avoiding the phenomenon that the device connection fails due to incorrect decoding once.
[0354] It should be understood that after the second device obtains the device connection information, it can use the device connection information to establish a connection relationship with the first device.
[0355] Fig.12 is a schematic interactive diagram of a method for information transmission provided by an embodiment of the present application. Fig.12 As shown, the method 600 may be applied to a first electronic device and a second electronic device, and the method 600 may at least include steps 610 to 650.
[0356] It should be understood that the first electronic device may be the first device mentioned above, and the second electronic device may be the second device mentioned above.
[0357] 610: The first electronic device sends a first message, and correspondingly, the second electronic device receives the first message.
[0358] Exemplarily, the first message may be a Bluetooth broadcast message. The first message may also be other wireless messages, which is not limited in the embodiment of the present application.
[0359] The first message may be used to discover devices around the first electronic device.
[0360] 620. The second electronic device sends first indication information to the first electronic device according to the first message.
[0361] The first indication information may be used to indicate that there are devices around the first electronic device. Alternatively, the first indication information may be confirmation information after the first message is scanned.
[0362] In some examples, the second electronic device also displays a target display interface based on the first message, which target display interface may include relevant information of the first electronic device. In response to the user's operation in the target display interface, the second electronic device may send the above-mentioned first indication information to the first electronic device.
[0363] 630. The first electronic device displays a first image according to the first indication information, where the first image includes 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 part of the first image encoding the first information. Exemplarily, the second part may be superimposed on the first part.
[0365] For example, see Figure 3 In (d), the first image may be an image corresponding to the display interface 240, the second part may be an information point in the annular pattern therein, and the first part may be the background part outside the information point.
[0366] It should be understood that when the electronic device displays N frames of the first image, positions of the second parts in two adjacent frames of the N frames of the first image are the same, and N is greater than or equal to 2.
[0367] In other examples, the colors of the second parts of two adjacent frames of images in N frames may be different. Or, the colors of the second parts of any three consecutive frames of images in N frames may be different, which is not limited in the embodiment of the present application.
[0368] In other examples, the second parts of two adjacent frames of images in N frames of images can encode the same information or different information. When encoding different information, the first electronic device can divide the information to be encoded into multiple parts and encode them in the second parts of images of different frames respectively. Alternatively, multiple consecutive frames of images in N frames of images can encode different information, and multiple groups of information can be encoded in the N frames of images, which is not limited in the embodiments of the present application.
[0369] When the second parts of multiple frames of first images encode different information, the first electronic device may split the information to be encoded into multiple parts, each frame of the image may encode a part of the information, and multiple frames of the image may be combined to encode the complete information.
[0370] For example, taking three frames of images as an example, the first electronic device may divide the information 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 parts in two adjacent frames of the N frames of the first image may be the same or different. For example, some particle points included in the first part may move or change color.
[0372] In some examples, the first part or the second part may have an animation effect. For example, a plurality of particle points forming a ring pattern may gradually converge into a ring with a flow effect.
[0373] 640. The second electronic device acquires N frames of first images, each of the N frames of first images includes a first part and a second part, and 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.
[0374] Exemplarily, the second electronic device may call a camera to obtain N frames of the first image, or the second electronic device may call a camera to obtain the first image.
[0375] 650. The second electronic device decodes the first information according to the second part.
[0376] For example, see Fig. 9 , the second part may be a particle point corresponding to img-f, and the first information may be a connection pairing code. The second electronic device may decode img-f to obtain the connection pairing code 147258. The second part is encoded with the first information that the second electronic device needs to transmit, and the second electronic device decodes the second part of the acquired image to determine the first information therein.
[0377] Exemplarily, when the second part of each of the N frames of first images encodes the same first information, the second electronic device may decode multiple consecutive frames (such as 2 or 3 frames) and determine the first information encoded therein according to the decoding result of each frame. Alternatively, the second electronic device may also select one of the frames to decode to determine the first information encoded therein.
[0378] Exemplarily, when the second part of each of the N frames of the first image encodes different information, the second electronic device may decode the second parts of a plurality of consecutive frames of the first image and combine the decoding results to determine the final first information.
[0379] Optionally, after decoding and obtaining the first information, the second electronic device may perform the first operation according to the first information.
[0380] Exemplarily, the first information may be device connection information. In this case, the first operation is to send a device connection request. When the second electronic device needs to establish a connection relationship 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 relationship with the first electronic device.
[0381] Exemplarily, the first information may be account login information. In this case, the first operation may be an operation of logging into the account.
[0382] Exemplarily, the first information may also be first data. In this case, the first operation may be an operation of acquiring the first data.
[0383] Exemplarily, the first information may also be a conference link. In this case, the first operation is an operation of joining the conference.
[0384] Exemplarily, the first information may also be a website. In this case, the first operation is an operation of accessing the website.
[0385] Exemplarily, the first information may also be screen projection information. In this case, the first operation is a screen projection operation.
[0386] It should be understood that the first information may also include other content, which is not limited in the embodiment of the present application.
[0387] Based on the system provided in the embodiment of the present 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 obtain 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 take a picture of the image displayed by the first electronic device to obtain the device connection information (connection pairing code), so that the device connection can be quickly established. When replacing a new device or cloning data, the device interaction path can be shortened and the sense of technology can be enhanced.
[0389] In some implementations, before the second electronic device decodes the first information according to the second part, the second electronic device is further configured to: perform color space conversion on the N frames of the first image to obtain the N frames of the second image.
[0390] Based on the embodiment of the present 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, the first image is converted from the RGB color space to the HSV color space, or the hue, saturation, brightness HSI color space, etc.
[0392] In some embodiments, the second electronic device is specifically configured to:
[0393] Convert the first image of frame N from the red, green and blue RGB color space to the hue, saturation and brightness HSV color space;
[0394] Filtering the hue H domain of each frame of 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;
[0395] Binarizing the N frames of the second image to obtain the N frames of the third image;
[0396] The second part is determined according to N frames of third images.
[0397] For example, see Figure 7 , taking one frame of the image as an example for explanation. The second image may be an image containing a blue component obtained by filtering the hue H domain. The third image may be an image obtained by binarizing the second image.
[0398] The second part may be an annular area, or may be part of the information points included in the annular area.
[0399] It should be understood that the embodiment of the present application does not limit the specific values of the first preset value and the second preset value.
[0400] Based on the embodiments of the present application, through the conversion of the color space and the corresponding threshold filtering, the reflection phenomenon in the first image can be filtered out, the interference of the reflection on the second electronic device obtaining the second part can be reduced, and the possibility of successful decoding can be improved.
[0401] In some embodiments, the second electronic device is specifically configured to:
[0402] Perform a closing operation on the N frames of the third image; determine the second part according to the result of the closing operation; or,
[0403] Perform cluster analysis on particle points in the N-frame third image; and determine the second part according to the result of the cluster analysis.
[0404] For example, see Figure 8 For some scenes with severe reflection or missing annular areas, the second electronic device can perform particle point clustering analysis on the third image obtained by binarization processing to determine the annular area. The second part can be the annular area or part of the information points included in the annular area.
[0405] Based on the embodiment of the present application, the second part is determined by a closed operation, which can reduce the interference of reflection on the second electronic device obtaining the second part, and improve the possibility of successful decoding. In addition, in the case where the second part is more blocked or severely reflected, the second part can still be successfully obtained through the results of cluster analysis, which improves the possibility of the electronic device successfully decoding the second part later.
[0406] In some embodiments, before the second electronic device performs cluster analysis on the N frames of third images, the second electronic device is further configured to: filter particle points in the N frames of third images whose areas are smaller than a first area threshold.
[0407] For example, see Figure 8 In step 4, particle points in the third image whose area is smaller than the first area threshold may be filtered.
[0408] Based on the embodiment of the present application, particle points with a smaller area in the third image can be filtered out, thereby reducing the interference of the particle points with a smaller area on the acquisition of the second part.
[0409] In some embodiments, the second electronic device is specifically configured to:
[0410] Performing intra-frame difference processing on the second part of each frame of the N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, and the first channel image, the second channel image, and the third channel image are one of a red R channel image, a green G channel image, and a blue B channel image, and are different from each other;
[0411] Performing inter-frame difference processing on N frames of grayscale images respectively to obtain N frames of difference images;
[0412] Binarization is performed on N frames of differential images to obtain N frames of fourth images;
[0413] Performing an OR operation on the N-frame fourth image to obtain a first target image;
[0414] First information is acquired according to the first target image.
[0415] Exemplarily, 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 the intra-frame difference processing and inter-frame difference processing can be referred to in the above Fig. 9 The relevant description in will not be repeated here.
[0417] For example, see Fig. 9 , the fourth image can be img1-3 to imgn-3, and the first target image can be img-a.
[0418] Based on the embodiment of the present application, the second electronic device can decode based on the second part included in the N frames of image to successfully obtain the first information encoded therein.
[0419] In some embodiments, the second electronic device is specifically configured to:
[0420] Filtering particle points whose areas in the first target image are smaller than a second area threshold value to obtain a second target image;
[0421] The first information is decoded according to the second target image.
[0422] For example, see Fig. 9 , the second target image can be img-f.
[0423] Based on the embodiment of the present 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é of each frame of the N frames of differential images respectively;
[0426] The second electronic device is specifically used for:
[0427] Filter out pixels in the N-frame differential image whose grayscale value is less than a third preset value, where the third preset value is related to the degree of moiré;
[0428] The filtered N frames of differential images are binarized to obtain N frames of fourth images.
[0429] It should be understood that the degree of the moiré determined by the second electronic device can refer to the relevant description of the degree of the moiré determined by the second device in the above text, and the embodiment of the present application is not limited thereto.
[0430] Based on the embodiment of the present application, the second electronic device can also determine the degree of moiré in the image and set a filtering threshold according to the degree of moiré, thereby reducing the interference caused by the moiré and helping to increase the probability of successful decoding.
[0431] In some embodiments, the first message is sent after the first electronic device is powered on for the first time; or, when performing data cloning, the first message is sent in response to a user selecting an operation for indicating a new device, or in response to a user selecting an operation for indicating an old device type.
[0432] In this way, when the electronic device is powered on for the first time or when data cloning is performed when it is not powered on for the first time, the electronic device can send a first message to discover surrounding devices. This technical solution is conducive to the first electronic device discovering devices when needed to perform subsequent device connection operations, thereby saving power consumption of the electronic device to a certain extent.
[0433] In some embodiments, the first electronic device is further used to: receive first data information sent by the second electronic device, where the first data information includes account information logged in on the second electronic device and / or wireless network information to which the second electronic device is connected.
[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 the embodiments of the present application.
[0436] Based on the embodiment of the present application, the second electronic device can send account information, wireless network information and other data to the first electronic device, so that the user does not need to manually log in to the account, connect to the wireless network and other operations on the first electronic device, thereby improving the user's operating experience of the first electronic device. For example, the first electronic device is a newly purchased smart phone of the user, and in this way, the new phone can automatically log in to the user's account and automatically connect to the wireless network.
[0437] In some embodiments, the first electronic device is also used to: receive second indication information sent by the second electronic device, the second indication information is used to indicate second data information in the second electronic device; display a second display interface according to the second indication information, the second display interface includes a first display card and a second display card, wherein the first display card is used to indicate the import of the second data information from the second electronic device, and the second display card is used to indicate the downloading of third data information from the cloud server.
[0438] Based on the embodiment of the present 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 used to: display a third display interface in response to a user clicking on the first display card, the third display interface including the type and size of the second data information; send third indication information to the second electronic device in response to an operation performed by the user in the third display interface for indicating the import of data, the third indication information is used to indicate the start of importing data corresponding to the second data information; receive data corresponding to the second data information sent by the second electronic device; or,
[0440] In response to the user clicking on the second display card, a fourth display interface is displayed, and the fourth display interface includes the type and size of the third data information; in response to the user performing an operation in the fourth display interface to instruct to import data, data corresponding to the third data information is imported from the cloud server.
[0441] Based on the embodiments of the present application, the first electronic device can implement transmission according to the user's operation, thereby enabling the first electronic device to be quickly available.
[0442] In some embodiments, the second portion is a ring pattern; and 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 may also be in other shapes, which is not limited in the embodiments of the present application.
[0444] Fig.13 FIG. 1 is a schematic flow chart of a method for information transmission provided in an embodiment of the present application. Fig.13 As shown, the method 800 may be applied to a second electronic device, and the method 800 may at least include steps 810 to 840.
[0445] 810. The second electronic device receives the first message.
[0446] The first message may be a message for discovering a device, for example, the first message is a Bluetooth broadcast message.
[0447] 820. The second electronic device sends first indication information according to the first message.
[0448] 830. The second electronic device acquires N frames of first images, each of the N frames of first images includes a first part and a second part, and 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.
[0449] In other examples, the colors of the second parts of two adjacent frames of images in the N frames of images are different.
[0450] The second part of the N frames of image may encode the same information or different information, which is not limited in the embodiment of the present application.
[0451] 840. The second electronic device decodes the first information according to the second part.
[0452] Exemplarily, the first information may include device connection information, such as a connection pairing code. When the second electronic device needs to establish a connection relationship 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 relationship with the first electronic device.
[0453] Exemplarily, the first information may be account login information. In this case, the second electronic device may log in to the account based on the account login information.
[0454] Exemplarily, the first information may also be first data. In this case, the second electronic device may obtain the first data.
[0455] Exemplarily, the first information may also be a conference link. In this case, the second electronic device may participate in the conference based on the conference link.
[0456] Exemplarily, the first information may also be a website address, in which case the second electronic device may access the website address.
[0457] Exemplarily, the first information may also be screen projection information, in which case the second electronic device may perform screen projection.
[0458] It should be understood that the first information may also include other content, which is not limited in the embodiment of the present application.
[0459] It should also be understood that the embodiments of the present application do not limit the operations performed by the second electronic device after acquiring the first information.
[0460] Based on the embodiment of the present application, the second electronic device can obtain N frames of images and decode the second part of the N frames of images to obtain the first information therein, and can perform corresponding operations based on the first information. This technical solution can conveniently realize information transmission between the two, shorten the interactive path of 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 N frames of first images to obtain N frames of second images.
[0462] Based on the embodiment of the present 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, performing color space conversion on N frames of first images to obtain N frames of second images includes:
[0464] Convert the first image of frame N from the red, green and blue RGB color space to the hue, saturation and brightness HSV color space;
[0465] Filtering the hue H domain of each frame of 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;
[0466] Binarizing the N frames of the second image to obtain the N frames of the third image;
[0467] The second part is determined according to N frames of third images.
[0468] In some embodiments, determining the second part according to N frames of third images includes:
[0469] Performing cluster analysis on particle points in the third image of N frames;
[0470] Determine the second part based on the results of the cluster analysis; or
[0471] Performing cluster analysis on particle points in the third image of N frames;
[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 particle points in the N frames of third images whose areas are smaller than a first area threshold.
[0474] In some embodiments, decoding the first information according to the second portion includes:
[0475] Performing intra-frame difference processing on the second part of each frame of the N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, and the first channel image, the second channel image, and the third channel image are one of a red R channel image, a green G channel image, and a blue B channel image, and are different from each other; performing inter-frame difference processing on the N frames of grayscale images respectively to obtain N frames of difference images;
[0476] Binarization is performed on N frames of differential images to obtain N frames of fourth images;
[0477] Performing an OR operation on the N-frame fourth image to obtain a first target image;
[0478] First information is acquired according to the first target image.
[0479] In some embodiments, decoding the first information according to 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 according to the second target image.
[0480] In some embodiments, the method further comprises:
[0481] Determine the degree of moiré of each frame of the N frames of differential images respectively;
[0482] The step of performing binarization processing on N frames of differential images to obtain N frames of fourth images includes:
[0483] Filter out pixels in the N-frame differential image whose grayscale value is less than a third preset value, where the third preset value is related to the degree of moiré;
[0484] The filtered N frames of differential images are binarized to obtain N frames of fourth images.
[0485] In some embodiments, the first information includes at least one of a connection pairing code, an account login information, a product serial number, and a media access control MAC address.
[0486] It should be understood that the first information may also include other information, such as a verification code, a website, etc., which is limited by the embodiments of the present application.
[0487] Fig.14 is a schematic block diagram of an electronic device provided in an embodiment of the present application. Fig.14As shown, the electronic device 700 may include one or more processors 710; one or more memories 720; the one or more memories 720 store one or more instructions, and when the instructions are executed by the one or more processors 710, the method of information transmission described in any possible implementation method described above is executed.
[0488] Exemplarily, the electronic device 700 may be the first device, the second device, the electronic device 200, the electronic device 300, the electronic device 400, etc. mentioned above.
[0489] An embodiment of the present application also provides a device, 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 method of information transmission described in any possible implementation method in the foregoing text is executed.
[0490] The device may be a chip. For example, the chip may be a chip system or an independent chip.
[0491] An embodiment of the present application also provides a readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method of information transmission in the above-mentioned embodiment.
[0492] The embodiment of the present application also provides a program product. When the program product is run on an electronic device, the electronic device executes the above-mentioned related steps to implement the method of information transmission in the above-mentioned embodiment.
[0493] An embodiment of the present application also provides a device, including a module for implementing the method for information transmission as described in any of the above embodiments.
[0494] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store instructions, and when the device is running, the processor may execute the instructions stored in the memory so that the device executes the information transmission method in the above-mentioned method embodiments.
[0495] Among them, the equipment, readable storage medium, program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0496] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0497] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0498] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0499] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0500] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0501] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
[0502] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A system for information transmission, characterized in that: The system includes a first electronic device and a second electronic device, wherein: The first electronic device is used to send a first message, where the first message is used to discover devices around the first electronic device; The second electronic device is used for: receiving the first message; Sending first indication information according to the first message; The first electronic device is further configured to display a first image according to the first indication information, where the first image includes a first part and a second part; The second electronic device is further used for: Acquire N frames of first images, each of the N frames of first images includes the first part and the second part, positions of the second parts of two adjacent frames of images in the N frames of images are the same, and positions of the first part and the second part of each frame of image overlap, wherein N is greater than or equal to 2; The first information is decoded according to the second portion.
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 further configured to: Color space conversion is performed on the N frames of first images to obtain N frames of second images.
3. The system according to claim 2, characterized in that The second electronic device is specifically used for: Convert the N frames of first images from the red, green and blue (RGB) color space to the hue, saturation and brightness (HSV) color space; Filtering the hue H domain of each frame of the N frames of first images to obtain the N frames of second images, 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; Binarizing the N frames of second images to obtain N frames of third images; The second part is determined according to the N frames of third images.
4. The system according to claim 3, characterized in that The second part is determined according to the N frames of third images, and the second electronic device is specifically used for: Performing a closing operation on the N frames of third images; Determine the second part according to the result of the closing operation; or, Perform cluster analysis on the particle points in the N frames of the third image. The second part is determined according to the result of the cluster analysis.
5. The system according to any one of claims 1 to 4, characterized in that: The second electronic device is specifically configured to decode the first information according to the second part: Performing intra-frame difference processing on the second part of each frame of the N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, and the first channel image, the second channel image, and the third channel image are one of a red R channel image, a green G channel image, and a blue B channel image, and are different from each other; Performing inter-frame difference processing on the N frames of grayscale images respectively to obtain N frames of difference images; Binarizing the N frames of differential images to obtain N frames of fourth images; Performing an OR operation on the N frames of fourth images to obtain a first target image; The first information is acquired according to 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 further used for: Determining the degree of moiré patterns of each frame of the N frames of differential images respectively; Wherein, the second electronic device is specifically 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 the moiré pattern; The filtered N frames of differential images are binarized to obtain the N frames of fourth images.
7. A method for information transmission, characterized in that: The method is applied to a second electronic device, and the method includes: receiving a first message; Sending first indication information according to the first message; Acquire N frames of first images, each of the N frames of first images includes a first part and a second part, and positions of the second parts of two adjacent frames of images in the N frames of images are the same, wherein N is greater than or equal to 2; The first information is decoded according to the second portion.
8. The method according to claim 7, characterized in that Before decoding the first information according to the second part, the method further includes: Color space conversion is performed on the N frames of first images to obtain N frames of second images.
9. The method according to claim 8, characterized in that The color space conversion of the N frames of first images to obtain N frames of second images includes: Convert the N frames of first images from the red, green and blue (RGB) color space to the hue, saturation and brightness (HSV) color space; Filtering the hue H domain of each frame of the N frames of first images to obtain the N frames of second images, wherein the angle value corresponding to the hue H domain of the N frames of second images is greater than a first preset value and less than a second preset value; The method further comprises: Binarizing the N frames of second images to obtain N frames of third images; The second part is determined according to the N frames of third images.
10. The method according to claim 9, characterized in that The determining the second part according to the N frames of third images comprises: Performing a closing operation on the N frames of third images; Determine the second part according to the result of the closing operation; or, Performing cluster analysis on the N frames of third images; The second part is determined according to the result 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: Filter the particle points whose areas in the N frames of the third image are smaller than the first area threshold.
12. The method according to any one of claims 7 to 11, characterized in that: The decoding of the first information according to the second part comprises: Performing intra-frame difference processing on the second part of each frame of the N frames of first images to obtain N frames of grayscale images, wherein the intra-frame difference processing is to use the first channel image of the second part to perform difference processing with the second channel image and the third channel image respectively and sum the absolute values, and the first channel image, the second channel image, and the third channel image are one of a red R channel image, a green G channel image, and a blue B channel image, and are different from each other; Performing inter-frame difference processing on the N frames of grayscale images respectively to obtain N frames of difference images; Binarizing the N frames of differential images to obtain N frames of fourth images; Performing an OR operation on the N frames of fourth images to obtain a first target image; The first information is decoded according to the first target image.
13. The method according to claim 12, characterized in that The step of decoding the first information according to the first target image comprises: Filtering particle points whose areas in the first target image are smaller than a second area threshold to obtain a second target image; The first information is decoded according to the second target image.
14. The method according to claim 12 or 13, characterized in that Before binarizing the N frames of differential images, the method further includes: Determining the degree of moiré patterns of each frame of the N frames of differential images respectively; The step of performing binarization processing on the N frames of differential images to obtain N frames of fourth images 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 the moiré pattern; The filtered N frames of differential images are binarized to obtain the N frames of fourth images.
15. The method according to any one of claims 7 to 14, characterized in that: The first information includes at least one of a connection pairing code, an account login information, a product serial number, and a media access control MAC address.
16. The method according to any one of claims 7 to 15, characterized in that: The method further comprises: Sending first data information, where the first data information includes account information logged in on the second electronic device or wireless network information to which the second electronic device is connected.
17. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the method for information transmission as described in any one of claims 7 to 16 is executed.
18. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for information transmission according to any one of claims 7 to 16 is executed.
19. A readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed on a device, the method for information transmission according to any one of claims 7 to 16 is executed.
20. A program product, characterized in that The program product includes a program code, and when the program code is run on an electronic device, the method for information transmission according to any one of claims 7 to 16 is executed.
Citation Information
Patent Citations
Data transmission method and electronic equipment
CN104899537A
Image capturing method and terminal device
CN112840642A
Image display method and electronic equipment
CN113452896A
Method for eliminating shadow and electronic equipment
CN114529663A
Combined display method, mobile equipment and electronic equipment
CN114840157A
Cited By
Information transmission method and electronic equipment
CN120676097A
Method and electronic device for information transmission
CN120676097B
Information transmission method, and electronic device
WO2025237238A1
Information transmission method and electronic device
WO2026184703A1