Short-distance communication method and electronic equipment
By hiding information in multiple frames of images on the display screen and using color differences to transmit information, the problem of the display screen directly affecting aesthetics is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2026-03-24
AI Technical Summary
Displaying the message to be sent directly on the screen affects the aesthetics and leads to a decline in user experience.
By hiding the information to be sent in the image on the display screen and using color differences to disperse the information in different areas of multiple frames of images, the information can be transmitted without the user noticing.
While maintaining the aesthetic appeal of images, it also enables information transmission and enhances the user experience.
Smart Images

Figure CN121728299A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a short-distance communication method and an electronic device. BACKGROUND
[0002] With the development of electronic technology and application technology, electronic devices have more and more functions. For example, an electronic device with a display function (referred to as a display screen) can "send" information to an electronic device with a camera function (referred to as a camera device). Specifically, the display screen can display a quick response code (QR code) or a personal identification number (PIN) as the information to be sent, and the camera device can capture the screen of the display screen and extract the information to be sent to realize interaction with the display screen. However, the display screen directly displays the information to be sent, which affects the aesthetics of the display screen and further affects the user experience. SUMMARY
[0003] The present application provides a short-distance communication method and an electronic device, which can hide the information to be sent by the display screen in the picture displayed by the display screen, improve the aesthetics of the picture, and further improve the user experience.
[0004] To achieve the above purpose, the present application adopts the following technical solutions:
[0005] In a first aspect, a short-distance communication method is provided, which can be applied to a first device, such as being executed by the first device. The first device herein can refer to a first device or a processor, circuit, module, logic node, chip, or chip system in the first device that implements the method. It can be understood that the first device has a display function. For example, the first device is a display screen, a mobile phone, a tablet, a notebook computer, or a desktop computer, etc.
[0006] The method includes: obtaining information to be sent, and continuously displaying N frames of images. N is an integer greater than 1, the i-th frame of image in the N frames includes M first regions and P second regions, the j-th frame of image in the N frames includes R third regions and P fourth regions, i is an integer greater than or equal to 1 and less than N, j is an integer greater than i and less than N+1, M, P, and R are all positive integers greater than 1. The color of the first region is different from the color of the surrounding region of the first region, the color of the third region is different from the color of the surrounding region of the third region, the P second regions correspond to the P fourth regions one by one, the color of the second region is different from the color of the fourth region corresponding to the second region, and the size of the fourth region is less than or equal to a first value. The time interval between the j-th frame of image and the i-th frame of image is greater than or equal to 1 / f, f is the frame rate of the N frames of images; the P second regions and the P fourth regions are associated with the information to be sent.
[0007] It can be understood that the first region is different in color from the surrounding region of the first region, so that the i-th frame of image has relatively rich colors and the beauty of the i-th frame of image is improved. The third region is different in color from the surrounding region of the third region, so that the j-th frame of image has relatively rich colors and the beauty of the j-th frame of image is improved.
[0008] It can be understood that the P second regions and the P fourth regions are associated with the to-be-sent information, so that the device for capturing N frames of images, such as the second device, analyzes the P second regions and the P fourth regions to obtain the to-be-sent information, thereby realizing the communication between the first device and the second device.
[0009] It can be understood that the time interval between the j-th frame of image and the i-th frame of image is greater than or equal to 1 / f, so that the j-th frame of image is different from the i-th frame of image, for example, the second region is different in color from the fourth region corresponding to the second region.
[0010] It can be understood that the size of the fourth region is less than or equal to the first value, so that the fourth region is not too large and the user is not easy to perceive the difference between the second region and the fourth region.
[0011] Therefore, based on the method provided in the above first aspect, the first device can transmit the to-be-sent information to the second device while ensuring the beauty of the N frames of images, and the to-be-sent information can be hidden in the second region and the fourth region, thereby improving the user experience.
[0012] In a possible implementation, f is less than or equal to a first frequency, and the first frequency is a frequency at which the user cannot perceive the difference between the second region and the fourth region corresponding to the second region.
[0013] Based on the above possible implementation, since the size of the fourth region is less than or equal to the first value, when f is less than or equal to the first frequency, the user is also not easy to perceive the difference between the second region and the fourth region. For example, the first value is a number greater than or equal to 1 and less than or equal to 10, and the unit of the first value is square centimeter.
[0014] In a possible implementation, the color difference includes one or more of the following: different brightness, different saturation, or different hue.
[0015] Based on the above possible implementations, the first region can be made different from its surrounding regions in one or more dimensions of brightness, saturation, or hue, thereby improving the aesthetics of the i-th frame image. Alternatively, the third region can be made different from its surrounding regions in one or more dimensions of brightness, saturation, or hue, thereby improving the aesthetics of the j-th frame image. Alternatively, by modulating / changing at least one of the brightness, saturation, or hue of the second region, P second regions and P fourth regions can carry the information to be transmitted.
[0016] In one possible implementation, the first region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the first region and its surrounding regions is greater than or equal to a first brightness; or, the absolute value of the difference in saturation between the first region and its surrounding regions is greater than or equal to a first saturation; or, the absolute value of the difference in hue between the first region and its surrounding regions is greater than or equal to a first hue; the third region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the third region and its surrounding regions is greater than or equal to a second brightness; or, the absolute value of the difference in saturation between the third region and its surrounding regions is greater than or equal to a second saturation; or, the absolute value of the difference in hue between the third region and its surrounding regions is greater than or equal to a second hue.
[0017] Based on the above possible implementation methods, the color contrast between the first region and its surrounding regions can be relatively high, as can the color contrast between the third region and its surrounding regions. Therefore, the i-th and j-th frame images can have richer colors, making it less perceptible to the user to the difference between the second and fourth regions, thereby improving the user experience.
[0018] In one possible implementation, some or all of the P fourth regions satisfy the following condition: the regions within a first range from the fourth region include at least one third region.
[0019] Based on the above possible implementation methods, some or all of the P fourth regions can be placed near the third region, making it difficult for users to perceive the difference between the second and fourth regions.
[0020] In one possible implementation, P is greater than or equal to the third quantity.
[0021] Based on the above possible implementation methods, the amount of information carried by the P second regions and the P fourth regions can be guaranteed. The third quantity is an integer. For example, the third quantity is an integer greater than or equal to 10, such as 40.
[0022] In one possible implementation, the size of the first region is less than or equal to the second value, and M is greater than or equal to the first quantity.
[0023] Based on the above possible implementation methods, the i-th frame image contains multiple areas with rich colors and small sizes to attract the user's attention. On the one hand, this can improve the aesthetics of the i-th frame image; on the other hand, it makes it less likely for the user to perceive the difference between the second and fourth regions, thereby improving the user experience.
[0024] In one possible implementation, the size of the third region is less than or equal to the third value, and R is greater than or equal to the second quantity.
[0025] Based on the above possible implementation methods, the j-th frame image contains multiple areas with rich colors and small sizes to attract the user's attention. On the one hand, this can improve the aesthetics of the j-th frame image; on the other hand, it makes it less likely for the user to perceive the difference between the second and fourth regions, thereby improving the user experience.
[0026] In one possible implementation, the m-th first region among the M first regions and the r-th third region among the R third regions satisfy one or more of the following conditions: the size of the m-th first region is the same as the size of the r-th third region; or, the position of the m-th first region in the i-th frame image is the same as the position of the r-th third region in the j-th frame image; or, the brightness of the m-th first region is the same as the brightness of the r-th third region; or, the saturation of the m-th first region is the same as the saturation of the r-th third region; or, the hue of the m-th first region is the same as the hue of the r-th third region.
[0027] Based on the above possible implementation methods, the m-th first region in the M first regions is related to the r-th third region in the R third regions, or the m-th first region corresponds to the r-th third region, thereby making the transition from the i-th frame image to the j-th frame image smoother and less abrupt for the user.
[0028] In one possible implementation, the first value is related to the size of the third region.
[0029] Based on the above possible implementation methods, the first value can be determined according to the size of the third region to avoid the fourth region being too large than the third region, which would make it easier for users to perceive the change between the second and fourth regions.
[0030] In one possible implementation, P second regions correspond one-to-one with P fourth regions, including: the second region and the corresponding fourth region satisfy one or more of the following conditions: the size of the second region is the same as the size of the corresponding fourth region; or, the position of the second region in the i-th frame image is the same as the position of the corresponding fourth region in the j-th frame image; or, the brightness of the second region is the same as the brightness of the corresponding fourth region; or, the saturation of the second region is the same as the saturation of the corresponding fourth region; or, the hue of the second region is the same as the hue of the corresponding fourth region.
[0031] Based on the above possible implementation methods, the fourth region can be obtained by adjusting one or more of the size, position, brightness, saturation, or hue of the second region corresponding to the fourth region.
[0032] In one possible implementation, the second region differs in color from its surrounding regions. Specifically, the difference in color between the second region and its surrounding regions includes one or more of the following: the absolute value of the difference in brightness between the second region and its surrounding regions is greater than or equal to a third brightness level; or, the absolute value of the difference in saturation between the second region and its surrounding regions is greater than or equal to a third saturation level; or, the absolute value of the difference in hue between the second region and its surrounding regions is greater than or equal to a third hue level.
[0033] Based on the above possible implementation methods, the color contrast between the second region and its surrounding regions can be made higher. Therefore, the colors of the i-th frame image can be richer, making it less likely for users to perceive the difference between the second and fourth regions, thereby improving the user experience.
[0034] In one possible implementation, the fourth region has a different color from its surrounding regions. Specifically, the fourth region has a different color from its surrounding regions by one or more of the following: the absolute value of the difference in brightness between the fourth region and its surrounding regions is greater than or equal to the fourth brightness; or, the absolute value of the difference in saturation between the fourth region and its surrounding regions is greater than or equal to the fourth saturation; or, the absolute value of the difference in hue between the fourth region and its surrounding regions is greater than or equal to the fourth hue.
[0035] Based on the above possible implementation methods, the color contrast between the fourth region and its surrounding regions can be made higher. Therefore, the colors of the j-th frame image can be richer, making it less likely for users to perceive the difference between the second and fourth regions, thereby improving the user experience.
[0036] Secondly, an electronic device is provided for implementing the method provided in the first aspect. This electronic device can be the first apparatus described in the first aspect. The electronic device includes modules, units, or means corresponding to the method described above. These modules, units, or means can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0037] In one possible implementation, the electronic device may include a processing module. This processing module can be used to implement the processing functions described in the first aspect and any of its possible implementations. The processing module may, for example, be a processor.
[0038] In one possible implementation, the electronic device may further include an interface module. This interface module, also referred to as an interface unit, is used to implement the transmitting and / or receiving functions described in the first aspect and any of its possible implementations. The interface module may include interface circuitry, a transceiver, a transceiver unit, or a communication interface.
[0039] In one possible implementation, the processing module is used to acquire the information to be sent; the processing module is also used to continuously display N frames of images; wherein N is an integer greater than 1, the i-th frame of the N frames includes M first regions and P second regions, the j-th frame of the N frames includes R third regions and P fourth regions, i is an integer greater than 1 and less than N, j is an integer greater than i and less than N+1, and M, P, and R are all integers greater than 1; the first region is different in color from the surrounding region of the first region, the third region is different in color from the surrounding region of the third region, the P second regions correspond one-to-one with the P fourth regions, the second region is different in color from the corresponding fourth region, and the size of the fourth region is less than or equal to a first value; the time interval between the j-th frame and the i-th frame is greater than or equal to 1 / f, where f is the frame rate of the N frames; the P second regions and the P fourth regions are associated with the information to be sent.
[0040] In one possible implementation, f is less than or equal to a first frequency, which is a frequency at which the user cannot perceive the difference between the second region and the fourth region corresponding to the second region.
[0041] In one possible implementation, the aforementioned color differences include one or more of the following: different brightness, different saturation, or different hue.
[0042] In one possible implementation, the first region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the first region and its surrounding regions is greater than or equal to a first brightness; or, the absolute value of the difference in saturation between the first region and its surrounding regions is greater than or equal to a first saturation; or, the absolute value of the difference in hue between the first region and its surrounding regions is greater than or equal to a first hue. The third region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the third region and its surrounding regions is greater than or equal to a second brightness; or, the absolute value of the difference in saturation between the third region and its surrounding regions is greater than or equal to a second saturation; or, the absolute value of the difference in hue between the third region and its surrounding regions is greater than or equal to a second hue.
[0043] In one possible implementation, some or all of the aforementioned P fourth regions satisfy the following condition: the region within a first range of the fourth region includes at least one of the third regions.
[0044] In one possible implementation, the above P is greater than or equal to the third quantity.
[0045] In one possible implementation, the size of the first region is less than or equal to the second value, and the M is greater than or equal to the first quantity.
[0046] In one possible implementation, the size of the third region is less than or equal to the third value, and the R is greater than or equal to the second quantity.
[0047] In one possible implementation, the m-th first region among the M first regions and the r-th third region among the R third regions satisfy one or more of the following conditions: the size of the m-th first region is the same as the size of the r-th third region; or, the position of the m-th first region in the i-th frame image is the same as the position of the r-th third region in the j-th frame image; or, the brightness of the m-th first region is the same as the brightness of the r-th third region; or, the saturation of the m-th first region is the same as the saturation of the r-th third region; or, the hue of the m-th first region is the same as the hue of the r-th third region.
[0048] In one possible implementation, the first value is related to the size of the third region.
[0049] In one possible implementation, the P second regions correspond one-to-one with the P fourth regions, including: the second region and the corresponding fourth region satisfy one or more of the following conditions: the size of the second region is the same as the size of the corresponding fourth region; or, the position of the second region in the i-th frame image is the same as the position of the corresponding fourth region in the j-th frame image; or, the brightness of the second region is the same as the brightness of the corresponding fourth region; or, the saturation of the second region is the same as the saturation of the corresponding fourth region; or, the hue of the second region is the same as the hue of the corresponding fourth region.
[0050] In one possible implementation, the second region has a different color from the surrounding region.
[0051] In one possible implementation, the second region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the second region and its surrounding regions is greater than or equal to a third brightness; or the absolute value of the difference in saturation between the second region and its surrounding regions is greater than or equal to a third saturation; or the absolute value of the difference in hue between the second region and its surrounding regions is greater than or equal to a third hue.
[0052] In one possible implementation, the fourth region has a different color from the surrounding regions.
[0053] In one possible implementation, the fourth region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the fourth region and its surrounding regions is greater than or equal to the fourth brightness; or the absolute value of the difference in saturation between the fourth region and its surrounding regions is greater than or equal to the fourth saturation; or the absolute value of the difference in hue between the fourth region and its surrounding regions is greater than or equal to the fourth hue.
[0054] Thirdly, an electronic device is provided, including a processor; the processor is configured to cause the electronic device to perform the method described in any of the preceding aspects by executing a computer program (or computer-executable instructions) stored in a memory, and / or by means of logic circuitry. The electronic device may be the first device described in the first aspect. Optionally, the number of processors may be one or more.
[0055] In one possible implementation, the electronic device also includes a memory.
[0056] In one possible implementation, the processor and memory are integrated together; or, the memory is independent of the processor.
[0057] In one possible implementation, the electronic device further includes a communication interface for communicating with other devices, such as sending or receiving data and / or signals. Exemplarily, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface.
[0058] In one possible implementation, the electronic device is a chip or a chip system. Optionally, when the electronic device is a chip system, it can be composed of chips or may include chips and other discrete components.
[0059] Fourthly, an electronic device is provided, including a processor and an interface circuit; the interface circuit is used to receive a computer program or instructions and transmit them to the processor; the processor is used to execute the computer program or instructions to cause the electronic device to perform the method as described in any of the preceding aspects. The electronic device may be the first device described in the first aspect. Optionally, the number of processors may be one or more.
[0060] In one possible implementation, the electronic device is a chip or a chip system. Optionally, when the electronic device is a chip system, it can be composed of chips or may include chips and other discrete components.
[0061] Fifthly, a computer-readable storage medium is provided that stores instructions which, when executed on a computer, enable the computer to perform the methods described in any of the preceding aspects.
[0062] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform the methods described in any of the preceding aspects.
[0063] In a seventh aspect, a communication system is provided, comprising a first device for performing the method described in the first aspect and a second device for capturing N frames of images displayed by the first device and demodulating them to obtain information to be transmitted by the first device, such as the information to be transmitted in the first aspect.
[0064] The technical effects of any possible implementation of aspects two through seven can be found in any aspect of aspect one above, or the technical effects of different possible implementations of any aspect of aspect one above, and will not be repeated here.
[0065] Understandably, provided that the solutions do not contradict each other, the solutions in the above aspects can be combined. Attached Figure Description
[0066] Figure 1 A schematic diagram of the communication system architecture provided in this application;
[0067] Figure 2 A schematic diagram of the hardware structure of the electronic device provided in this application;
[0068] Figure 3 Flowchart of the short-range communication method provided in this application Figure 1 ;
[0069] Figure 4 A schematic diagram of the first region and the surrounding area provided in this application;
[0070] Figure 5 A schematic diagram of the i-th frame image and the j-th frame image provided in this application;
[0071] Figure 6 Flowchart of the short-range communication method provided in this application Figure 1 ;
[0072] Figure 7 Flowchart of the short-range communication method provided in this application Figure 1 ;
[0073] Figure 8 Flowchart of the short-range communication method provided in this application Figure 1 ;
[0074] Figure 9 A schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0075] Before introducing the technical solution of this application, the relevant technical terms involved in this application are explained. It is understood that these explanations are intended to make this application easier to understand and should not be regarded as a limitation on the scope of protection claimed in this application.
[0076] 1. Particle animation effects
[0077] Particle animation is a visual design technique that creates dynamic visual effects by simulating a large number of tiny particles. These particles can be points, lines, or more complex graphics, and they move or interact on the screen in specific ways to simulate natural phenomena or create abstract visual effects. Particle animation typically consists of thousands of particles, each with its own properties such as position, speed, color, and other attributes.
[0078] 2. Hue, Saturation, and Lightness Model (HSL Model for short)
[0079] The HSL model is a color representation method that more closely resembles how users perceive color. The HSL model decomposes color into three independent attributes (hue, saturation, and lightness), making color selection and adjustment more intuitive.
[0080] Hue is a fundamental attribute of color, describing its tone or type, such as red, green, or blue. In the HSL model, hue is typically represented as an angle value in degrees (°), ranging from 0° to 360°. A hue value corresponds to a position on the color wheel. For example, 0° or 360° represents red, 120° represents green, 240° represents blue, and so on.
[0081] Saturation describes the purity or intensity of a color. The higher the saturation, the more vibrant the color; the lower the saturation, the closer the color is to gray. In the HSL model, saturation values are typically expressed as a percentage, ranging from 0% (representing pure gray) to 100% (representing the most vibrant color).
[0082] Brightness describes the lightness or darkness of a color. A higher brightness value means a brighter color, and a lower brightness value means a darker color. In the HSL model, brightness values are usually expressed as a percentage, ranging from 0% (representing black) to 100% (representing white).
[0083] Understandably, each particle described in the above particle animation effects can represent its color through at least one of hue, saturation, or brightness.
[0084] 3. Color contrast
[0085] Color contrast is an important concept in visual design, describing the degree of difference between two colors. This difference can be a difference in at least one of the following: brightness (or lightness), saturation (or purity), or hue (or tone).
[0086] 4. Screen camera communication
[0087] Screen-to-camera communication refers to communication between a display screen (such as a television, computer monitor, or smartphone screen) and a camera device. Specifically, the display screen is used as a data transmitter, encoding data by varying at least one of the brightness, saturation, or hue of pixels in the displayed image, so that the camera device can capture multiple frames of images displayed on the screen and then analyze them to obtain the data.
[0088] Optionally, the aforementioned data can be encoded into multiple frames of images in a way that is invisible (or imperceptible) to the user; that is, the user cannot perceive changes in the brightness, saturation, or hue of the pixels used to encode the data. For example, when the display's refresh rate is greater than or equal to a certain frequency (such as 60Hz), the user cannot perceive these changes. However, the camera device can detect these changes, so the camera device can acquire the data that the display is "sending."
[0089] 5. Phone cloning
[0090] Phone cloning allows users to migrate data (such as contacts, photos, apps, etc.) from one device to another. This migration process typically doesn't require a computer or data cable, but is accomplished through a dedicated application. For example, cloning apps like "Phone Cloning" or "CLONE it" can be installed on both devices, allowing users to migrate data from one device to the other through user interaction.
[0091] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0092] The method provided in this application can be used in systems that communicate with various devices that have display functions and devices that have camera functions. The following examples illustrate this. Figure 1 The method provided in this application will be described using the communication system 10 shown as an example. Figure 1 This is merely an illustrative diagram and does not constitute a limitation on the applicable scenarios of the technical solutions provided in this application.
[0093] like Figure 1 The diagram shown is a schematic diagram of the architecture of the communication system 10 provided in this application. Figure 1 In this communication system 10, there may be device 101 and device 102. Device 101 has a display function and can display N frames of images. These N frames of images may carry information to be sent, such as various machine-readable codes like PIN codes, QR codes, or barcodes, or information such as a user's business card. Device 102 has a camera function and can capture the N frames of images displayed on device 101 and extract the aforementioned information to be sent, thereby enabling interaction with device 101.
[0094] In this application, the camera function can be replaced by a shooting function, photo taking function, or scanning function, which are functions that acquire images based on the principle of light reflected from objects.
[0095] Optionally, devices 101 and 102 can communicate with each other via wired or wireless means. Wireless communication includes, but is not limited to, cellular communication, Bluetooth communication, Wi-Fi communication, or wireless fidelity (WiFi) communication. Cellular communication includes, for example, fourth-generation (4G), fifth-generation (5G), or future evolutionary communication technologies.
[0096] Understandably, this application does not limit the product form of device 101 and device 102. Device 101 or device 102 can be a handheld device, vehicle-mounted device, wearable device, or computing device, etc.
[0097] For example, device 101 can be a mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), satellite terminal, desktop computer, smart screen, display screen, virtual reality (VR) terminal device, augmented reality (AR) terminal device, intelligent robot, industrial robot, terminal in industrial control, terminal in autonomous driving, terminal in telemedicine, terminal in smart grid, terminal in transportation safety, terminal in smart city, terminal in smart home, vehicle terminal, smartwatch, or various instruments with display functions. Device 102 can be a mobile phone, tablet computer, laptop computer, PDA, MID, satellite terminal, camera equipment, photography equipment, VR terminal device, AR terminal device, intelligent robot, industrial robot, drone remote controller, terminal in industrial control, terminal in autonomous driving, terminal in telemedicine, terminal in smart grid, terminal in transportation safety, terminal in smart city, terminal in smart home, vehicle terminal, smartwatch, or various instruments or meters with camera functions.
[0098] Figure 1 The communication system 10 shown is for illustrative purposes only and is not intended to limit the technical solutions of this application. Those skilled in the art should understand that in specific implementations, the communication system 10 may also include other devices, such as screen devices other than device 101, and / or camera devices other than device 102.
[0099] Optionally, this application Figure 1 The devices in this application (e.g., device 101) may also be referred to as electronic devices, which may be general-purpose devices or special-purpose devices, and this application does not make any specific limitations in this regard.
[0100] Optionally, this application Figure 1 The functions of each device (e.g., device 101) can be implemented by one device, by multiple devices, or by one or more functional modules within a device; this application does not impose specific limitations on this. It is understood that the aforementioned functions can be network elements within hardware devices, software functions running on dedicated hardware, a combination of hardware and software, or virtualization functions instantiated on a platform (e.g., a cloud platform).
[0101] In its specific implementation, this application Figure 2 Each device in the process (e.g., device 101) can be adopted Figure 2 The shown composition structure, or including Figure 2 The components shown. Figure 2 The diagram shows a hardware structure of an electronic device applicable to this application. The electronic device 200 may include a processor 210 and a display screen 290.
[0102] Optionally, the electronic device 200 may also include one or more of the following: camera 291, sensor module 280, memory 221, audio module 270, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, indicator 292, subscriber identification module (SIM) card interface 293, external memory interface 220, universal serial bus (USB) interface 230, charging management module 240, power management module 241, or battery 242, etc.
[0103] The processor 210 may include one or more processing units, such as: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors. The controller can generate operation control signals based on the instruction opcode and timing signals to control instruction fetching and execution.
[0104] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 200 selects a frequency, the DSP is used to perform Fourier transforms on the frequency energy.
[0105] Optionally, the processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0106] In some embodiments, the processor 210 may include one or more interfaces. The interfaces may include one or more of the following: 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 SIM interface, or a USB interface, etc.
[0107] The display screen 290 is used to display images, videos, etc. The display screen 290 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include one or n displays 290, where n is a positive integer greater than 1.
[0108] In some embodiments, the electronic device 200 implements display functions through a GPU, a display screen 290, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 290 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0109] Camera 291 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 200 may include one or n cameras 291, where n is a positive integer greater than 1.
[0110] In some embodiments, the electronic device 200 may implement the shooting function through an ISP, a camera 291, a video codec, a GPU, a display 290, and an application processor.
[0111] The ISP is used to process data fed back from the camera 291. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, etc. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 291.
[0112] Sensor module 280 may include one or more sensors for performing corresponding functions. For example, sensor module 280 may include one or more of the following sensors: multispectral sensor, color temperature sensor, ambient light sensor (ALS), distance sensor, pressure sensor, gyroscope sensor, barometric pressure sensor, magnetic sensor, accelerometer, proximity sensor, fingerprint sensor, temperature sensor, touch sensor, or bone conduction sensor, etc.
[0113] Memory 221 can be used to store computer executable program code, which includes instructions. Memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of electronic device 200 (such as audio data, phone book, etc.). In addition, memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 210 executes various functional applications and data processing of electronic device 200 by running instructions stored in memory 221 and / or instructions stored in memory disposed in the processor.
[0114] Electronic device 200 can implement audio functions through audio module 270 and application processor, etc. Audio module 270 may include one or more of the following: speaker, receiver, microphone, or headphone jack, etc.
[0115] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. Mobile communication module 250 can provide wireless communication solutions including 2G / 3G / 4G / 5G for applications in electronic device 200. Wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and satellite strobe for applications in electronic device 200.
[0116] The charging management module 240 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.
[0117] The power management module 241 is used to connect the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240 to power the processor 210, memory 221, display 290, camera 291, and wireless communication module 260, etc.
[0118] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0119] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0120] The SIM card interface 293 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 293 to make contact with and detach from the electronic device 200. The electronic device 200 can support one or n SIM card interfaces, where n is a positive integer greater than 1. The SIM card interface 293 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Optionally, some electronic devices with eSIM functionality may not include this SIM card interface 293.
[0121] USB port 230 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 230 can be used to connect a charger to charge electronic device 200, to transfer data between electronic device 200 and peripheral devices, and to connect headphones for audio playback.
[0122] It is understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0123] The method provided in this application will now be described with reference to the accompanying drawings. The devices in the following embodiments may include... Figure 3 The components shown are not described in detail.
[0124] It is understood that in this application, device 101 may perform some or all of the steps in this application. These steps are merely examples, and this application may also perform other steps or variations thereof. Furthermore, the steps may be performed in different orders as presented in this application, and it is not necessary to perform all the steps in this application.
[0125] It is understood that the method described below in this application uses device 101 as the execution subject to illustrate the method, but this application does not limit the execution subject of the method. For example, device 101 in the method provided in the following embodiments of this application may also be a chip, chip system, or processor that supports device 101 in implementing the method, or it may be a logic node, logic module, or software that can implement all or part of the functions of device 101.
[0126] like Figure 2 The image shows a short-range communication method provided in this application, which may include the following steps:
[0127] S301: Device 101 continuously displays N frames of images.
[0128] One possible implementation is that device 101 uses a display screen (such as...) Figure 3 The display screen (290) continuously displays N frames of images. N is an integer greater than 1.
[0129] In this application, the i-th frame image in N frames includes M first regions and P second regions. The j-th frame image in N frames includes R third regions and P fourth regions. i is an integer greater than or equal to 1 and less than N, j is an integer greater than i and less than N+1, and M, P, and R are all positive integers greater than 1.
[0130] For example, if N equals 2, then i can equal 1 and j can equal 2. If N equals 3, then i can equal 1 and j can equal 2, 3, or 4, or i can equal 2 and j can equal 3 or 4, or i can equal 3 and j can equal 4.
[0131] Any region in this application (such as the first region, second region, third region, fourth region or various surrounding regions described below) can be circular, elliptical, square, rectangular, polygonal or irregular in shape, without limitation.
[0132] Understandably, the shapes of different regions can be the same or different. For example, the first region may be circular, the second region may be rectangular, or both the first and second regions may be circular. Another example is M first regions, where the first region is circular, the second region is elliptical, or all M first regions may be squares.
[0133] The size of any region in this application (such as the first region, second region, third region, fourth region, or the various surrounding regions described below) can be set as needed. The size of a region is used to represent the size of the region. For example, the size of a region is its area. Or, for example, the size of a region is related to its shape. For instance, if the region is circular, the size of the region is its radius; if the region is elliptical, the size of the region is the major and minor axes of the ellipse; if the region is square, the size of the region is the side length of the square; if the region is rectangular, the size of the region is the length and width of the rectangle.
[0134] Understandably, different regions can be the same size or different sizes. For example, the first region can be larger than the second region, smaller than the second region, or the same size as the second region. As another example, any two of the M first regions can have the same size or different sizes.
[0135] For ease of description, the following embodiments use a circle as an example to introduce each region, and the area as an example to introduce the size of each region. This will be explained uniformly here and will not be repeated later.
[0136] In this application, device 101 can acquire information to be sent and carry the information in N frames of images, so that device 102 can capture N frames of images displayed by device 101, demodulate them, and obtain the information to be sent, thus enabling communication between device 101 and device 102. The information to be sent includes various machine-readable codes such as PIN codes, QR codes, or barcodes, or includes user business card information (such as the user's name and phone number).
[0137] Understandably, the communication between device 101 and device 102 is also referred to as screen camera communication. For an explanation of screen camera communication, please refer to the preceding description of the technical terms used in this application.
[0138] One possible design involves associating P second regions and P fourth regions with the information to be sent. There is a one-to-one correspondence between the P second regions and the P fourth regions, with each second region having a different color than its corresponding fourth region.
[0139] The difference in color here can be understood as a difference in color contrast. For example, a difference in color includes one or more of the following: different brightness, different saturation, or different hue. That is to say, after the device 101 acquires the information to be transmitted, it can modulate / change at least one of the brightness, saturation, or hue of the second region, so that P second regions and P fourth regions carry the information to be transmitted. For a description of color contrast, brightness, saturation, and hue, please refer to the description of the technical terms involved in this application above.
[0140] Understandably, in the above design, the fourth region varies in one or more dimensions of brightness, saturation, or hue relative to its corresponding second region. Therefore, if the size of the fourth region is too large, and / or the frame rate of the N frames (or the screen refresh rate of device 101) is low, the user will perceive the aforementioned changes.
[0141] Therefore, by adjusting the size of the fourth region and / or the frame rate of the N frames (or the screen refresh rate of device 101), the user's perception of the aforementioned changes can be adjusted. For example, with the frame rate of the N frames (or the screen refresh rate of device 101) remaining constant, the smaller the size of the fourth region, the less likely the user is to perceive the aforementioned changes; the larger the size of the fourth region, the more likely the user is to perceive the aforementioned changes. With the size of the fourth region remaining constant, the higher the frame rate of the N frames (or the screen refresh rate of device 101), the less likely the user is to perceive the aforementioned changes; the lower the frame rate of the N frames (or the screen refresh rate of device 101), the more likely the user is to perceive the aforementioned changes. Therefore, when the device 101 has a lower configuration, such as a lower supported frame rate or screen refresh rate, the size of the fourth region can be reduced to make the user less likely to perceive the aforementioned changes, thus improving the user experience. When the device 101 has a higher configuration, such as a higher supported frame rate or screen refresh rate, the size of the fourth region can be set as needed, offering greater flexibility.
[0142] One possible design is that the size of the fourth region is less than or equal to the first value. The first value can be set as needed.
[0143] For example, taking the size of the fourth region as the area of the fourth region, the first value is a number greater than or equal to 1 and less than or equal to 10, and the unit of the first value is square centimeters. It should be understood that the first value can also be greater than 10 square centimeters or less than 1 square centimeter.
[0144] Optionally, the first value is related to the size of the third region to avoid the fourth region being too large compared to the third region, which would make the user more likely to perceive the aforementioned changes.
[0145] For example, the first value is equal to w times the size of the third region, where w is a positive number. For instance, w is a number greater than or equal to 25 and less than or equal to 100. The third region here can be the largest or smallest of the R third regions, etc.
[0146] In this application, the time interval between the j-th frame and the i-th frame is greater than or equal to 1 / f, where f is the frame rate of the N-frame images or the screen refresh rate of the device 101, thereby making the j-th frame different from the i-th frame, as shown in the above-mentioned changes.
[0147] In this application, f can be less than, equal to, or greater than the first frequency. The first frequency is a frequency at which the user cannot perceive the difference between the second region and the corresponding fourth region (i.e., the aforementioned transformation). For example, the first frequency can be equal to 60Hz.
[0148] Understandably, in practical applications, different users have different sensitivities to color, so the corresponding primary frequency will also be different for different users. Therefore, the primary frequency can be greater than 60Hz or less than 60Hz; for example, the primary frequency can be 50Hz or 65Hz.
[0149] For example, f can be greater than or equal to 10Hz and less than or equal to 30Hz, or f can be greater than or equal to 15Hz and less than or equal to 30Hz. It should be understood that f can also be greater than 30Hz, for example, f equal to 60Hz, 90Hz, or 100Hz, etc.
[0150] Understandably, when f is greater than the first frequency, the user is less likely to perceive the aforementioned changes. When f is less than or equal to the first frequency, if the size of the fourth region is small, the user may also find it difficult to perceive the aforementioned changes.
[0151] In this application, "users can easily perceive the above changes" means that users can easily perceive or discover the above changes with their naked eyes. "Users cannot perceive the above changes" means that users cannot perceive or discover the above changes with their naked eyes.
[0152] Optionally, the number P of the second / fourth regions is greater than or equal to the third number, to ensure the amount of information carried by the P second regions and the P fourth regions. The third number is an integer. For example, the third number is an integer greater than or equal to 10, such as 40.
[0153] Optionally, to improve the visual effect of the N frames, one or more frames in the N frames may include a particle motion effect area.
[0154] In this application, the particle motion effect area includes multiple particles used to achieve one or more visual effects. For a description of the particle motion effect, please refer to the preceding description of the technical terms used in this application.
[0155] For example, for the i-th frame image, the first region is the particle motion effect region, and / or, the second region is the particle motion effect region. For the j-th frame image, the third region is the particle motion effect region, and / or, the fourth region is the particle motion effect region.
[0156] S302: Device 102 captures N frames of images displayed by device 101 and demodulates them to obtain the information to be sent by device 101.
[0157] One possible implementation is that device 102 captures N frames of images displayed by device 101 using a camera function (such as a webcam) and demodulates them to obtain the information to be sent by device 101.
[0158] Understandably, after obtaining the aforementioned information, device 102 can further process it. Furthermore, the method provided in this application can be applied to various scenarios, such as device pairing, payment, or data transmission. The way device 102 processes information differs depending on the scenario.
[0159] For example, in a device pairing scenario, the information to be sent includes a machine-readable code. Device 102 can establish a connection with device 101 based on this machine-readable code, such as a Bluetooth connection, a Starlink connection, or a WiFi connection. Alternatively, device 102 can establish a connection with device 101 based on the machine-readable code and enter the operation interface of a mobile phone cloning application to clone applications or data on device 101.
[0160] For example, in a payment scenario, the information to be sent includes a machine-readable code. Device 102 can access the payment interface based on the machine-readable code to perform a payment operation.
[0161] For example, in a data transmission scenario, the information to be sent may include machine-readable code or directly include the data that device 101 wants to send. If the information to be sent includes machine-readable code, device 102 can access the data transmission interface based on the machine-readable code to transmit various data to or receive various data sent by device 101. In this scenario, devices 101 and 102 can transmit photos, videos, documents of various formats, or application data, etc. If the information to be sent includes the data that device 101 wants to send, such as user business card information, device 102 can directly obtain and save the data after demodulating N frames of images.
[0162] based on Figure 3 The method shown allows device 101 to display N frames of images, each carrying information to be sent. Therefore, after device 102 captures the N frames displayed by device 101, it can demodulate the captured images to obtain the information to be sent, thus enabling communication with device 101. Furthermore, when the size of the fourth region and the frame rate of the N frames (or the screen refresh rate of device 101) meet certain conditions, the user will not perceive that the N frames carry the information to be sent, thus improving the user experience.
[0163] Optional, in Figure 4In one possible implementation of the method shown, the first region differs in color from its surrounding regions. This color difference can be understood as a difference in color contrast; for example, a difference in color may include one or more of the following: different brightness, different saturation, or different hue. In other words, since the first region differs from its surrounding regions in one or more of these aspects, the i-th frame image can have richer colors, thus enhancing its aesthetic appeal.
[0164] In this application, the surrounding area of the first region can be understood as the area near the first region, or the area connected to the boundary of the first region, or the background area of the first region. The shape of the first region may be the same as or different from the shape of the surrounding area of the first region.
[0165] For example, taking a first region and its surrounding area as both being circular, the two regions can be as follows: Figure 4 As shown, the first region is the region with center O and radius r1. The surrounding region of the first region is the region with center O and radius r2, excluding the first region.
[0166] Understandable. Figure 3 The example drawn is based on the first region being located at the center of its surrounding areas. In practical applications, the first region may not be located at the center of its surrounding areas, and there are no restrictions.
[0167] One possible design is that the first region differs in color from its surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the first region and its surrounding regions is greater than or equal to a first brightness level; or, the absolute value of the difference in saturation between the first region and its surrounding regions is greater than or equal to a first saturation level; or, the absolute value of the difference in hue between the first region and its surrounding regions is greater than or equal to a first hue level. In other words, the color contrast between the first region and its surrounding regions is high. Therefore, the i-th frame image can have richer colors, making it less perceptible to the user to the difference between the second and fourth regions, thereby improving the user experience.
[0168] For example, if the lightness of the first region is L1, the saturation is S1, and the hue is H1, and the lightness of the surrounding region of the first region is L2, the saturation is S2, the hue is H2, the first lightness is Lth1, the first saturation is Sth1, and the first hue is Hth1, then the color of the first region and the color of the surrounding region of the first region can satisfy one or more of the following relationships:
[0169] |L1-L2|≥Lth1; or,
[0170] |S1-S2|≥Sth1; or,
[0171] |H1-H2|≥Hth1
[0172] Understandably, in practical applications, the above relationship can be modified accordingly. For example, the color of the first region and the colors of the surrounding regions can satisfy the following relationship:
[0173] |L1-L2|+|S1-S2|+|H1-H2|≥Lth1+Sth1+Hth1
[0174] Where (Lth1+Sth1+Hth1) is greater than or equal to 5 and less than or equal to 20, for example, (Lth1+Sth1+Hth1)=10.
[0175] Optionally, the number M of the first region is greater than or equal to a first value. The size of the first region is less than or equal to a second value. In other words, there are multiple richly colored, small-sized regions in the i-th frame image to attract the user's attention. On the one hand, this can improve the aesthetics of the i-th frame image; on the other hand, it makes it less likely for the user to perceive the difference between the second and fourth regions, thereby improving the user experience.
[0176] For example, the first quantity is an integer. For instance, the first quantity is greater than or equal to 10 and less than or equal to 40.
[0177] For example, taking the size of the first region as the area of the first region, the second value is a number greater than or equal to 1 and less than or equal to 5, and the unit of the second value is square centimeters. It should be understood that the second value can also be greater than 5 square centimeters or less than 1 square centimeter. The second value and the first value can be the same or different.
[0178] Optionally, the second value is related to the size of the display screen of device 101. Taking the size of the first region as the area of the first region as an example, the second value is equal to y times the area of the display screen, where y is a number greater than 0 and less than 1. For example, y is greater than or equal to 2.5% and less than or equal to 5%.
[0179] Optional, in Figure 3 In one possible implementation of the method shown, the third region differs in color from its surrounding regions. This color difference can be understood as a difference in color contrast; for example, it could include one or more of the following: different brightness, different saturation, or different hue. In other words, since the third region differs from its surrounding regions in one or more of these aspects, the j-th frame image can have richer colors, improving its aesthetic appeal.
[0180] In this application, the surrounding area of the third region can be understood as the area near the third region, or the area connected to the boundary of the third region, or the background area of the third region. The shape of the third region may be the same as or different from the shape of the surrounding area of the third region.
[0181] One possible design is that the third region differs in color from its surrounding areas, including one or more of the following: the absolute value of the difference in brightness between the third region and its surrounding areas is greater than or equal to a second brightness difference; or, the absolute value of the difference in saturation between the third region and its surrounding areas is greater than or equal to a second saturation difference; or, the absolute value of the difference in hue between the third region and its surrounding areas is greater than or equal to a second hue difference. In other words, the third region has a higher color contrast with its surrounding areas. Therefore, the j-th frame image can have richer colors, making it less perceptible to the user to the difference between the second and fourth regions, thereby improving the user experience.
[0182] For example, if the lightness of the third region is L3, the saturation is S3, and the hue is H3, and the lightness of the surrounding region of the third region is L4, the saturation is S4, and the hue is H4, with a second lightness of Lth2, a second saturation of Sth2, and a second hue of Hth2, then the color of the third region and the color of the surrounding region of the third region can satisfy one or more of the following relationships:
[0183] |L3-L4|≥Lth2; or,
[0184] |S3-S4|≥Sth2; or,
[0185] |H3-H4|≥Hth2
[0186] Understandably, in practical applications, the above relationship can be further modified. For example, the color of the third region and the colors of its surrounding regions can satisfy the following relationship:
[0187] |L3-L4|+|S3-S4|+|H3-H4|≥Lth2+Sth2+Hth2
[0188] Where (Lth2+Sth2+Hth2) is greater than or equal to 5 and less than or equal to 20, for example, (Lth2+Sth2+Hth2) = 10. It should be understood that (Lth1+Sth1+Hth1) and (Lth2+Sth2+Hth2) can be the same or different, without restriction.
[0189] Understandably, the relationship between the third region and its surrounding regions is similar to that between the first region and its surrounding regions. Please refer to the above description of the first region and its surrounding regions.
[0190] Optionally, the number R of the third region is greater than or equal to the second number. The size of the third region is less than or equal to the third value. In other words, there are multiple brightly colored, small-sized regions in the j-th frame image to attract the user's attention. This improves the aesthetics of the j-th frame image and makes it less likely for the user to perceive the difference between the second and fourth regions, thus enhancing the user experience. It should be understood that the second and first numbers can be the same or different. The third value can also be the same as or different from the second value.
[0191] For example, the second quantity is an integer. For instance, the second quantity is greater than or equal to 10 and less than or equal to 40.
[0192] For example, taking the size of the third region as the area of the third region, the third value is a number greater than or equal to 1 and less than or equal to 5, and the unit of the third value is square centimeters. It should be understood that the third value can also be greater than 5 square centimeters or less than 1 square centimeter.
[0193] Optionally, the third value is related to the size of the display screen of device 101. Taking the size of the third region as the area of the third region as an example, the third value is equal to u times the area of the display screen, where u is a number greater than 0 and less than 1. For example, u is greater than or equal to 2.5% and less than or equal to 5%.
[0194] Optionally, the second region may have a different color from its surrounding areas. This difference in color can be understood as a difference in color contrast; for example, a difference in color may include one or more of the following: different brightness, different saturation, or different hue.
[0195] One possible design is that the second region has a different color from the surrounding region, including one or more of the following: the absolute value of the difference in brightness between the second region and the surrounding region is greater than or equal to a third brightness; or, the absolute value of the difference in saturation between the second region and the surrounding region is greater than or equal to a third saturation; or, the absolute value of the difference in hue between the second region and the surrounding region is greater than or equal to a third hue.
[0196] Optionally, the fourth region may have a different color from its surrounding areas. This difference in color can be understood as a difference in color contrast; for example, a difference in color may include one or more of the following: different brightness, different saturation, or different hue.
[0197] One possible design is that the fourth region has a different color from the surrounding regions, including one or more of the following: the absolute value of the difference in brightness between the fourth region and the surrounding regions is greater than or equal to the fourth brightness; or the absolute value of the difference in saturation between the fourth region and the surrounding regions is greater than or equal to the fourth saturation; or the absolute value of the difference in hue between the fourth region and the surrounding regions is greater than or equal to the fourth hue.
[0198] As you can understand, the descriptions of the different colors of the second region and its surrounding areas, as well as the different colors of the fourth region and its surrounding areas, can be found in the previous description of the different colors of the first region and its surrounding areas, and will not be repeated here.
[0199] Optional, in Figure 5 In one possible implementation of the method shown, the m-th first region among the M first regions is related to, or corresponds to, the r-th third region among the R third regions, thus making the transition from the i-th frame to the j-th frame smoother and less abrupt for the user. If both the first and third regions are particle animation regions, the particle animation can be made smoother and more natural, improving the visual effect of the N frames. Here, m is an integer greater than 0 and less than or equal to M, and r is an integer greater than 0 and less than or equal to R.
[0200] One possible design is that the m-th first region and the r-th third region satisfy one or more of the following conditions: the size of the m-th first region is the same as the size of the r-th third region; or, the position of the m-th first region in the i-th frame is the same as the position of the r-th third region in the j-th frame; or, the brightness of the m-th first region is the same as the brightness of the r-th third region; or, the saturation of the m-th first region is the same as the saturation of the r-th third region; or, the hue of the m-th first region is the same as the hue of the r-th third region. In other words, the r-th third region is obtained by adjusting one or more of the size, position, brightness, saturation, or hue of the m-th first region.
[0201] Understandably, this application does not restrict the variation pattern between the m-th first region and the r-th third region. In other words, the size of the r-th third region, and / or the position of the r-th third region in the j-th frame image, and / or the brightness of the r-th third region, and / or the saturation of the r-th third region, and / or the hue of the r-th third region, have a certain degree of randomness, thus making the particle animation effect more natural and smooth. Therefore, the i-th and j-th frame images can be made more aesthetically pleasing, attracting user attention and making it less likely for users to perceive the difference between the second and fourth regions.
[0202] It is understandable that a portion of the first region may not have a corresponding third region in the j-th frame image, and / or a portion of the third region may not have a corresponding first region in the i-th frame image.
[0203] For example, such as Figure 5 The image shown is a schematic diagram of the i-th frame and the j-th frame provided in this application. Figure 3 In the image, the first regions 5011 to 5016 correspond to the third regions 5021 to 5026, respectively. The first region 5017 does not have a corresponding third region in the j-th frame, and the third region 5020 does not have a corresponding first region in the i-th frame.
[0204] Optional, in Figure 5 In one possible implementation of the method shown, some or all of the P fourth regions satisfy the following condition: the region within a first range of the fourth region includes at least one third region. In other words, some or all of the fourth regions are located near the third region. Therefore, it makes it difficult for the user to perceive the difference between the second and fourth regions.
[0205] Understandably, the first range can be set as needed. This application does not limit the shape of the first range; for example, the first range can be a circular region, an annular region, an elliptical region, a square region, a rectangular region, a polygonal region, or an irregular shape, etc.
[0206] For example, the first range includes a region of a first length from the boundary of the fourth region, or the first range includes a region of a first length from the center of the fourth region. Alternatively, taking a circular region as an example, the first range can be as follows: Figure 3 As shown, the radius of the first range is r, and the distance between the center of the first range and the center of the fourth region 5028 is L.
[0207] Optionally, the first range is related to the size of device 101. For example, the first length, r, or L is related to the length of the display screen of device 101. The length of the display screen can be the length of the longer side, the shorter side, or the diagonal, etc. Taking the length of the display screen as d centimeters as an example, the first length, r, or L can be equal to c × d. Where c is greater than 0 and less than 1, for example, c equals 5%.
[0208] Optionally, S of the P fourth regions satisfy the above conditions. Here, S is an integer greater than or equal to P / 2.
[0209] Optional, in Figure 5In one possible implementation of the method shown, P second regions correspond one-to-one with P fourth regions, including: the second region and its corresponding fourth region satisfying one or more of the following conditions: the size of the second region is the same as the size of the fourth region corresponding to it; or, the position of the second region in the i-th frame is the same as the position of the fourth region corresponding to it in the j-th frame; or, the brightness of the second region is the same as the brightness of the fourth region corresponding to it; or, the saturation of the second region is the same as the saturation of the fourth region corresponding to it; or, the hue of the second region is the same as the hue of the fourth region corresponding to it. In other words, the fourth region is obtained by adjusting one or more of the size, position, brightness, saturation, or hue of its corresponding second region.
[0210] It is understandable that, since P second regions and P fourth regions carry information to be sent, the second region and its corresponding fourth region must differ in at least one of the following: brightness, saturation, or hue.
[0211] For example, such as Figure 5 As shown, the second region 5018 corresponds to the fourth region 5028, and the second region 5019 corresponds to the fourth region 5029. Figure 3 In the image, the second region 5018 and the fourth region 5028 have the same size, but the position of the second region 5018 in the i-th frame is different from the position of the fourth region 5028 in the j-th frame. Furthermore, the second region 5018 and the fourth region 5028 differ in at least one of their brightness, saturation, or hue. Similarly, the second region 5019 and the fourth region 5029 have the same size, but the position of the second region 5019 in the i-th frame is different from the position of the fourth region 5029 in the j-th frame, and the second region 5019 and the fourth region 5029 differ in at least one of their brightness, saturation, or hue.
[0212] Optional, in Figure 6 In one possible implementation of the method shown, P second regions and P fourth regions carry part of the information to be transmitted. Therefore, the N-frame image also includes at least one frame other than the i-th and j-th frames to carry the remaining information to be transmitted. For example, the N-frame image also includes the k-th frame. k is an integer greater than j and less than N+1.
[0213] One possible design is that the k-th frame image includes F fifth regions and P sixth regions. The P fourth regions correspond one-to-one with the P sixth regions, and the colors of the fourth regions and their corresponding sixth regions are different. The P fourth regions and P sixth regions are associated with the remaining information to be transmitted. In other words, device 101 can modulate / change at least one of the brightness, saturation, or hue of the fourth regions to make the P fourth regions and P sixth regions carry the remaining information to be transmitted.
[0214] One possible design is that the size of the sixth region is less than or equal to the first value.
[0215] One possible design is that the time interval between the k-th frame and the j-th frame is greater than or equal to 1 / f. Alternatively, this time interval is equal to the time interval between the j-th frame and the i-th frame.
[0216] One possible design is that the fifth area has a different color from its surrounding areas. The sixth area also has a different color from its surrounding areas.
[0217] Understandably, the relationship between the fifth and third regions is similar to that between the third and first regions, and the relationship between the sixth and fourth regions is similar to that between the fourth and second regions. Please refer to the corresponding descriptions above, which will not be repeated here.
[0218] To facilitate understanding of the method provided in this application, the short-range communication method provided in this application is described below in conjunction with specific application scenarios.
[0219] like Figure 7 As shown, in a device pairing scenario, the user opens application A (such as a phone cloning application) on device 101. Device 101 then approaches for detection. When device 102 is detected, device 101 continuously displays N frames of images. Correspondingly, device 102's interface displays a dialog box / card to ask the user whether to enable the "Scan and Transfer" function. After the user confirms enabling the "Scan and Transfer" function, device 102 activates its camera function, captures the N frames of images displayed on device 101, and demodulates them to obtain the information to be sent from device 101, such as machine-readable code. Subsequently, device 102 establishes a connection with device 101 based on the information to be sent, such as a Bluetooth connection, a Starlink connection, or a WiFi connection, and transmits application data through the established connection.
[0220] like Figure 8As shown, in a data transmission scenario, when a user opens application B (such as a contacts or business card application) on device 101, triggering the "scan and send" function, device 101 continuously displays N frames of images. Correspondingly, when a user on device 102 triggers the "scan and send" function on device 102, device 102 activates its camera function, captures the N frames of images displayed on device 101, and demodulates them to obtain the information to be sent by device 101, such as the user's business card information.
[0221] like Figure 9 As shown, in a data transmission scenario, a user opens application C (such as a gallery, video, or document application) on device 101 and triggers the "scan and transfer" function. Device 101 then continuously displays N frames of images. Correspondingly, a user on device 102 triggers the "scan and transfer" function on device 102. Device 102 then activates its camera function, captures the N frames of images displayed on device 101, and demodulates them to obtain the information to be sent from device 101, such as machine-readable code. Subsequently, device 102 establishes a connection with device 101 based on the information to be sent, such as a Bluetooth connection, a satellite connection, or a WiFi connection, and transmits images, videos, or documents through the established connection.
[0222] Optionally, if application C is a video application, the user can also choose to transmit the current page or the entire video. If application C is a document application, the user can also choose to transmit the current page or the entire document.
[0223] The various embodiments mentioned above in this application can be combined without contradiction, and no limitation is imposed.
[0224] The above mainly describes the solution provided in this application from the perspective of interaction between various network elements. Correspondingly, this application also provides an electronic device, which can be device 101 in the above method embodiments, or a device including device 101, or a component usable in device 101. It is understood that device 101, in order to achieve the above functions, includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the unit and algorithm operations of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0225] This application can divide the device 101 into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It is understood that the module division in this application is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0226] For example, when dividing the functional modules using an integrated approach. Figure 9 A schematic diagram of an electronic device 90 is shown. The electronic device 90 includes a processing module 901. Optionally, the electronic device 90 also includes an interface module 902. The processing module 901, also referred to as a processing unit, is used to perform operations other than transmission and reception operations; for example, it may be a processing circuit or a processor. The interface module 902, also referred to as an interface unit, is used to perform transmission and reception operations; for example, it may be an interface circuit, a transceiver, a transceiver unit, or a communication interface.
[0227] In some embodiments, the electronic device 90 may further include a storage module ( Figure 3 (Not shown in the image) is used to store program instructions and data.
[0228] For example, electronic device 90 is used to implement the functions of device 101. Electronic device 90 is, for example, Figure 6 The embodiment shown, Figure 7 The illustrated embodiments Figure 8 The illustrated embodiment or Figure 3 The device 101 shown in the embodiment.
[0229] The processing module 901 is used to continuously display N frames of images. For example, the processing module 901 can be used to execute S301. A description of the N frames of images can be found in the corresponding description in the above method embodiments.
[0230] When used to implement the functions of device 101, other functions that electronic device 90 can perform can be referred to. Figure 6 The embodiment shown, Figure 7 The illustrated embodiments Figure 8 The illustrated embodiment or Figure 2 The relevant descriptions of the embodiments shown will not be elaborated upon further.
[0231] In a simplified embodiment, those skilled in the art will recognize that the electronic device 90 can employ... Figure 2 The form shown. For example, Figure 9The processor 210 can invoke computer execution instructions stored in the memory 221 to cause the electronic device 90 to execute the method described in the above method embodiment.
[0232] For example, Figure 2 The functions / implementation process of the processing module 901 and the interface module 902 can be achieved through... Figure 9 The processor 210 in the memory calls computer execution instructions stored in the memory 221 to implement the function. Alternatively, Figure 2 The function / implementation process of the processing module 901 can be achieved through... Figure 9 The processor 210 in the memory calls computer execution instructions stored in the memory 221 to implement this. Figure 2 The function / implementation process of interface module 902 can be accessed through... This is achieved through the mobile communication module 250 or the wireless communication module 260.
[0233] It is understood that one or more of the above modules or units can be implemented by software, hardware, or a combination of both. When any of the above modules or units are implemented by software, the software exists as computer program instructions and is stored in memory. The processor can be used to execute the program instructions and implement the above method flow. The processor can be built into a system-on-a-chip (SoC) or an application-specific integrated circuit (ASIC), or it can be a stand-alone semiconductor chip. In addition to the core that executes software instructions for computation or processing, the processor may further include necessary hardware accelerators, such as field-programmable gate arrays (FPGAs), programmable logic devices (PLDs), or logic circuits that implement dedicated logic operations.
[0234] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, microprocessor, digital signal processing (DSP) chip, microcontroller unit (MCU), artificial intelligence processor, ASIC, SoC, FPGA, PLD, application-specific digital circuit, hardware accelerator, or non-integrated discrete device, which can run the necessary software or perform the above method flow independently of software.
[0235] Optionally, this application also provides a chip system, including: at least one processor and an interface, wherein the at least one processor is coupled to a memory via the interface, and when the at least one processor executes a computer program or instructions in the memory, the method in any of the above method embodiments is executed. In one possible implementation, the chip system further includes a memory. Optionally, the chip system may be composed of chips or may include chips and other discrete devices; this application does not specifically limit this.
[0236] Optionally, this application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be implemented by a computer program instructing related hardware. This program can be stored in the aforementioned computer-readable storage medium. When executed, the program can include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the electronic device in any of the foregoing embodiments, such as a hard disk or memory of the electronic device. The aforementioned computer-readable storage medium can also be an external storage device of the aforementioned electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the aforementioned electronic device. Further, the aforementioned computer-readable storage medium can include both internal storage units and external storage devices of the aforementioned electronic device. The aforementioned computer-readable storage medium is used to store the aforementioned computer program and other programs and data required by the aforementioned electronic device. The aforementioned computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0237] Optionally, this application also provides a computer program product. All or part of the processes in the above method embodiments can be executed by a computer program instructing related hardware. This program can be stored in the above computer program product, and when executed, it can include the processes described in the above method embodiments.
[0238] Optionally, this application also provides computer instructions. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware (such as a computer, processor, or device 101). The program can be stored in the aforementioned computer-readable storage medium or the aforementioned computer program product.
[0239] Optionally, this application also provides a communication system, including: device 101 and device 102 in the above embodiments.
[0240] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0241] It is understood that the term "connection" in this application can refer to a direct connection or an indirect connection; furthermore, it can refer to an electrical connection or a communication connection. For example, the connection of two electrical components A and B can refer to a direct connection between A and B, or an indirect connection between A and B through other electrical components or connection media, enabling the transmission of electrical signals between A and B; similarly, the connection of two devices A and B can refer to a direct connection between A and B, or an indirect connection between A and B through other communication devices or communication media, enabling communication between A and B.
[0242] It is understood that in this application, " / " can indicate that the objects before and after it are in an "or" relationship. For example, A / B can mean A or B. "And / or" can be used to describe three relationships between the related objects. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural. Furthermore, expressions like "at least one of A, B, and C" or "at least one of A, B, or C" are generally used to indicate any of the following: A exists alone; B exists alone; C exists alone; A and B exist simultaneously; A and C exist simultaneously; B and C exist simultaneously; A, B, and C exist simultaneously. The above examples using three elements (A, B, and C) illustrate the optional entries for this item. When the expression contains more elements, its meaning can be obtained according to the aforementioned rules.
[0243] To facilitate the description of the technical solutions of this application, the terms "first" and "second" may be used to distinguish technical features with the same or similar functions. The terms "first" and "second" do not limit the number or execution order, nor do they imply that they are necessarily different. In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" should not be construed as being more preferred or advantageous than other embodiments or design schemes. The use of "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner for ease of understanding.
[0244] It is understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It is understood that in the various embodiments of this application, the sequence number of each process does not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application.
[0245] It is understood that in this application, "when," "under the circumstances," "if," and "if" all refer to the corresponding processing that will be carried out under certain objective circumstances, and are not time-limited, nor do they require that there must be a judgment action when implemented, nor do they imply any other limitations.
[0246] In this application, "simultaneously" can be understood as at the same point in time, within a period of time, or within the same cycle.
[0247] In this application, "greater than or equal to" can be replaced with "greater than" or "equal to"; "less than or equal to" can be replaced with "less than" or "equal to". For example, "A is greater than or equal to B" can be replaced with "A is greater than B" or "A is equal to B"; "A is less than or equal to B" can be replaced with "A is less than B" or "A is equal to B".
[0248] It is understood that some optional features in this application can be implemented independently in certain scenarios without relying on other features, such as the current solution upon which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Correspondingly, the apparatus provided in this application can also implement these features or functions, which will not be elaborated here.
[0249] It is understood that the same step or step with the same function or technical feature in this application can be referenced and learned from each other in different embodiments.
[0250] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0251] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0252] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0253] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A short-range communication method, characterized in that, include: Get the information to be sent; N frames of images are displayed continuously, where N is an integer greater than 1, the i-th frame of the N frames includes M first regions and P second regions, the j-th frame of the N frames includes R third regions and P fourth regions, i is an integer greater than or equal to 1 and less than N, j is an integer greater than i and less than N+1, and M, P and R are all positive integers greater than 1. The first region is different in color from the surrounding region of the first region, the third region is different in color from the surrounding region of the third region, the P second regions correspond one-to-one with the P fourth regions, the second region is different in color from the fourth region corresponding to the second region, and the size of the fourth region is less than or equal to the first value. The time interval between the j-th frame and the i-th frame is greater than or equal to 1 / f, where f is the frame rate of the N frames; the P second regions and the P fourth regions are associated with the information to be sent.
2. The method according to claim 1, characterized in that, The f is less than or equal to a first frequency, which is a frequency at which the user cannot perceive the difference between the second region and the fourth region corresponding to the second region.
3. The method according to claim 1 or 2, characterized in that, The different colors include one or more of the following: different brightness, different saturation, or different hue.
4. The method according to claim 3, characterized in that, The first region is different in color from the surrounding region, including one or more of the following: the absolute value of the difference in brightness between the first region and the surrounding region is greater than or equal to the first brightness. Alternatively, the absolute value of the difference in saturation between the first region and the surrounding regions of the first region is greater than or equal to the first saturation; or, the absolute value of the difference in hue between the first region and the surrounding regions of the first region is greater than or equal to the first hue. The third region is different in color from the surrounding region, including one or more of the following: the absolute value of the difference in brightness between the third region and the surrounding region is greater than or equal to the second brightness. Alternatively, the absolute value of the difference in saturation between the third region and the surrounding region is greater than or equal to the second saturation; or the absolute value of the difference in hue between the third region and the surrounding region is greater than or equal to the second hue.
5. The method according to any one of claims 1-4, characterized in that, Some or all of the P fourth regions satisfy the following condition: The area within the first range of the fourth region includes at least one of the third regions.
6. The method according to any one of claims 1-5, characterized in that, The P is greater than or equal to the third quantity.
7. The method according to any one of claims 1-6, characterized in that, The size of the first region is less than or equal to the second value, and M is greater than or equal to the first quantity.
8. The method according to any one of claims 1-7, characterized in that, The size of the third region is less than or equal to the third value, and R is greater than or equal to the second quantity.
9. The method according to any one of claims 1-8, characterized in that, The m-th first region among the M first regions and the r-th third region among the R third regions satisfy one or more of the following conditions: The size of the m-th first region is the same as the size of the r-th third region; or... The position of the m-th first region in the i-th frame image is the same as the position of the r-th third region in the j-th frame image; or... The brightness of the m-th first region is the same as the brightness of the r-th third region; or... The saturation of the m-th first region is the same as the saturation of the r-th third region; or... The hue of the m-th first region is the same as the hue of the r-th third region.
10. The method according to any one of claims 1-9, characterized in that, The first value is related to the size of the third region.
11. The method according to any one of claims 1-10, characterized in that, The P second regions correspond one-to-one with the P fourth regions, including: The second region and the corresponding fourth region satisfy one or more of the following conditions: The size of the second region is the same as the size of the fourth region corresponding to the second region; or, The position of the second region in the i-th frame image is the same as the position of the fourth region corresponding to the second region in the j-th frame image; or, The brightness of the second region is the same as the brightness of the corresponding fourth region; or, The saturation of the second region is the same as the saturation of the corresponding fourth region; or, The hue of the second region is the same as the hue of the fourth region corresponding to the second region.
12. An electronic device, characterized in that, Includes units or modules for performing the method as described in any one of claims 1 to 11.
13. An electronic device, characterized in that, The device includes a processor coupled to a memory for storing programs or instructions that, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, It includes a computer program or instructions that, when executed, cause a computer to perform the method as described in any one of claims 1 to 11.
15. A computer program product, characterized in that, It includes computer program code that, when run on a computer, causes the computer to perform the method of any one of claims 1 to 11.
16. A communication system, characterized in that, include: An electronic device for performing the method as described in any one of claims 1 to 11, and a camera device for capturing N frames of images displayed by the electronic device and demodulating them to obtain information to be sent by the electronic device.