Display method, apparatus and electronic device

By combining the angle sensor and global positioning system information on the smart watch, the image brightness and color are dynamically adjusted to solve the problem of low dial performance, achieve diversified and interactive dial display, and improve the user experience.

WO2024217077A1PCT designated stage expired Publication Date: 2024-10-24HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/071322
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2024-01-09
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

The dial expression capabilities of smart watches are low, and the existing static, dynamic and interactive dial presentation forms are monotonous and cannot meet users' needs for diversity and interactivity.

Method used

By combining visual enhancement and user interaction, the electronic device's angle sensor and global positioning system information are used to dynamically adjust the brightness and color of image pixels to generate a dial display with a three-dimensional effect.

Benefits of technology

It enhances the performance capabilities of dials, enriches the types and quantities of dials, provides a visual experience of interacting with users, and improves the interactivity and user satisfaction of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071322_24102024_PF_FP_ABST
    Figure CN2024071322_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a display method, an apparatus and an electronic device. The method comprises: determining a first image; by means of first communication connection, acquiring first angle information; determining second angle information of an electronic device; according to attribute information of one or more pixels of the first image, the first angle information and the second angle information, determining brightness information of the one or more pixels; and, according to the brightness information of the one or more pixels, displaying a first user interface. The technical solution provided by the embodiments of the present application combines visual enhancement with user interaction, and, according to the attribute information of the one or more pixels, the first angle information and the second angle information, determines the brightness information of the one or more pixels in the first image, such that according to the brightness information of the one or more pixels, the two-dimensional first image can be rendered into an image having a three-dimensional effect, thereby enhancing the image presenting capability of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Display method, device and electronic equipment Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a display method, device, and electronic device. Background Art

[0002] With the development of electronic devices, the use of smartphones and smartwatches has become increasingly common, and electronic devices with various designs and styles have emerged one after another. Since the dials of smartwatches are electronically displayed, the style of the smartwatch dials can be changed at will. Therefore, smartwatches provide a function that allows users to manually change the presentation of the dial.

[0003] Currently, the watch face of a smart watch can be a picture or a video, and the expressiveness of the image in the watch face is relatively low.

[0004] Summary of the Invention

[0005] In view of this, embodiments of the present application provide a display method, apparatus, and electronic device for combining visual enhancement with user interaction to enhance the image presentation capability of the electronic device.

[0006] The embodiments of this application adopt the following technical solutions:

[0007] In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, and includes:

[0008] determining a first image;

[0009] Acquiring first angle information through a first communication connection;

[0010] determining second angle information of the electronic device;

[0011] determining brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the first angle information, and the second angle information;

[0012] A first user interface is displayed according to brightness information of one or more pixels.

[0013] In an implementation of the first aspect, before acquiring the first angle information and determining the second angle information of the electronic device through the first communication connection, the method further includes:

[0014] detecting a first input;

[0015] Acquiring first angle information and determining second angle information of the electronic device through the first communication connection includes:

[0016] In response to the first input, first angle information is acquired through the first communication connection, and second angle information of the electronic device is determined.

[0017] In an implementation of the first aspect, the first input includes:

[0018] The posture change of the electronic device reaches the preset condition; or

[0019] A first operation is performed on a first button or screen, the first operation being used to switch the screen from an off state to a bright state; or

[0020] a second operation applied to a second button or the screen, the second operation being used to cause the screen to display the first image;

[0021] The electronic device includes a first button, a second button and a screen, and the first button and the second button are the same or different buttons.

[0022] In an implementation of the first aspect, determining the first image includes:

[0023] Set the first image as the watch face background.

[0024] In an implementation of the first aspect, before setting the first image as the dial background, the method further includes:

[0025] A first image and a first instruction are received from the first device via the second communication connection, wherein the first instruction instructs to set the first image as a watch face background.

[0026] In an implementation manner of the first aspect, the second communication connection is a Bluetooth connection.

[0027] In an implementation manner of the first aspect, the first communication connection is a global positioning system or a Beidou satellite navigation system.

[0028] In an implementation manner of the first aspect, the first angle information includes solar declination, geographic latitude, and local time information.

[0029] In an implementation of the first aspect, determining brightness information of one or more pixels of the first image based on attribute information, first angle information, and second angle information includes:

[0030] Determine the solar altitude angle information based on the solar declination, geographic latitude and local time information;

[0031] Brightness information of the one or more pixels is determined according to the attribute information of the one or more pixels of the first image, the sun altitude angle information, and the second angle information.

[0032] In an implementation manner of the first aspect, the second angle information includes an angle between a plane where the electronic device is located and a preset direction.

[0033] In an implementation of the first aspect, determining brightness information of one or more pixels in the first image based on attribute information of the one or more pixels, solar altitude angle information, and second angle information includes:

[0034] Generate light source position based on sun altitude angle information and device angle;

[0035] generating light intensity information of one or more pixels according to a light source position and a distance between the light source position and a pixel position;

[0036] generating image light information based on a light source position and height information of one or more pixels;

[0037] The electronic device generates light standard information based on the image light information;

[0038] The electronic device generates light source information based on the light standard information and light intensity information of one or more pixels;

[0039] generating adjustment information based on normal information of one or more pixels and coordinate differences between adjacent pixels in the acquired first image;

[0040] Generate bright and dark point information according to light source information and adjustment information;

[0041] Brightness information of one or more pixels is generated according to the bright and dark point information and the color information of the first image.

[0042] In an implementation of the first aspect, the attribute information includes normal information. After determining the first image, and before determining brightness information of one or more pixels of the first image based on the attribute information, solar altitude angle information, and second angle information, the method includes:

[0043] generating height information of one or more pixels of the first image based on the color information of the first image;

[0044] Generate normal information of one or more pixels of the first image according to height information of the one or more pixels and height information of adjacent pixels; or,

[0045] Normal information for one or more pixels of the first image is received from the first device over the second communication connection.

[0046] In a second aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, including:

[0047] determining a first image;

[0048] Detecting a first input at a first moment, the first input being used to switch the electronic device from a screen-off state to a screen-on state;

[0049] In response to the first input, displaying a first user interface, the first user interface including image data generated after the first image is subjected to the first processing;

[0050] detecting a second input at a second moment, the second input being used to switch the electronic device from a screen-off state to a screen-on state;

[0051] In response to the second input, a second user interface is displayed, wherein the second user interface includes image data generated after the first image is processed by the second process; wherein,

[0052] The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.

[0053] In an implementation of the second aspect, the first process includes:

[0054] First brightness information of one or more pixels is determined based on the acquired attribute information, first angle information, and second angle information of one or more pixels of the first image, and the image data includes the first brightness information.

[0055] In an implementation of the second aspect, the second process includes:

[0056] Second brightness information of one or more pixels is determined based on the acquired attribute information, third angle information, and fourth angle information of the one or more pixels of the first image, and the image data includes the second brightness information.

[0057] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, which, when executed on a computer, enables the computer to execute the above-mentioned display method.

[0058] In a fourth aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the above-mentioned display method. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0060] FIG1 is a schematic structural diagram of an electronic device provided according to an embodiment of the present application;

[0061] FIG2a is a schematic diagram of a first image provided according to an embodiment of the present application;

[0062] FIG2 b is a schematic diagram of a user interface provided according to an embodiment of the present application;

[0063] FIG2c is a schematic diagram of another user interface provided according to an embodiment of the present application;

[0064] FIG2 d is a schematic diagram of another user interface provided according to an embodiment of the present application;

[0065] FIG2e is a schematic diagram of another user interface provided according to an embodiment of the present application;

[0066] FIG2 f is a schematic diagram of another user interface provided according to an embodiment of the present application;

[0067] FIG3 is a schematic diagram of the solar altitude angle provided according to an embodiment of the present application;

[0068] FIG4 is a flow chart of a display method according to an embodiment of the present application;

[0069] FIG5 is a flowchart of another display method provided according to an embodiment of the present application;

[0070] FIG6 is a flowchart of another display method provided according to an embodiment of the present application;

[0071] FIG7 is a flowchart of another display method provided according to an embodiment of the present application;

[0072] FIG8 is a flowchart of determining brightness information according to an embodiment of the present application;

[0073] FIG9 is a schematic structural diagram of a display device according to an embodiment of the present application;

[0074] FIG10 is a schematic structural diagram of a third determination module provided according to an embodiment of the present application;

[0075] FIG11 is a schematic structural diagram of another display device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0076] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0077] It should be clear that the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0078] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the embodiments of the present application. The singular forms "a", "an", "the" and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0079] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.

[0080] In some embodiments, electronic devices include but are not limited to Or devices with other operating systems. Electronic devices include but are not limited to mobile phones, tablets, laptops, wearable devices, etc. Wearable devices include smart watches.

[0081] Taking the electronic device as an example of a smart watch, since the dial of a smart watch is an electronic display, the dial style of the smart watch can be changed at will. The current smart watch dials are divided into static dials, dynamic dials, or interactive dials. Among them, a static dial is a dial on which the smart watch displays a picture obtained from the first device, a dynamic dial is a dial on which the smart watch displays a video obtained from the first device in a loop, and an interactive dial is a dial that can make corresponding changes based on the user's operation on the touch screen or crown of the smart watch. For example, if the interactive dial includes a live image, when the user long presses the live image, the live image starts to play. For another example, when the user does not long press the live image, the live image is displayed according to the first frame of the live image.

[0082] In some embodiments, the first device includes a terminal device or a server. For example, the terminal device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, etc.; the server includes but is not limited to a cloud server. If the first device is a terminal device, the electronic device and the first device can communicate through wireless communication. For example, the wireless communication may include Bluetooth (BT) or Near Field Communication (NFC). If the first device is a server, the electronic device and the first device can communicate through mobile communication. For example, mobile communication may include the 4th Generation mobile communication technology (4G) or the 5th Generation mobile communication technology (5G).

[0083] The following technical solution is an operation process for a user to set the dial of a smart watch.

[0084] In one embodiment of the present application, when a user wants to set the watch face of a smartwatch for the first time, the smartwatch needs to be paired with the mobile phone. Specifically, Bluetooth is turned on in the "Settings" application of the mobile phone, the watch application on the mobile phone is opened, the "+" button in the "Device" option is clicked to add a device, the "Smartwatch" option is clicked, the model of the smartwatch is selected, and the "Start Pairing" button is clicked to wirelessly connect the smartwatch to the mobile phone.

[0085] Users open the device details page of the smartwatch in the watch application, find the "Watch Face Market" button, click the "More" button, and then click the "Album Watch Face" button to enter the watch face settings interface.

[0086] In the album dial setting interface, the user clicks the "+" button and can choose how to upload photos: take a photo or select from the album. The user can arbitrarily select a two-dimensional image and click the "Save" button. The two-dimensional image stored in the mobile phone has been transferred to the smart watch. The user selects the two-dimensional image to be displayed in the smart watch as "static dial". At this time, the electronic device sets the dial to the two-dimensional image.

[0087] When the user wants to change the "static watch face" to a "dynamic watch face", since the smart watch and the mobile phone have been paired, there is no need to re-pair them. The user only needs to turn on the Bluetooth of the mobile phone and open the device details page of the smart watch in the watch application, find the "Watch Face Market" button, click the "More" button, and then click the "Album Watch Face" button to enter the watch face setting interface.

[0088] In the album watch face setting interface, users click the "+" button and can choose how to upload photos: take a photo or select from the album. Users can arbitrarily select a video (such as photography works, parent-child videos, game recordings, etc.), click the "Save" button, and the video stored in the mobile phone has been transferred to the smart watch. The user chooses the video to be displayed in the smart watch as "dynamic desktop". At this time, the video is set as the watch face, and the video can be played in a loop on the watch face.

[0089] When users want to change the "dynamic watch face" to an "interactive watch face", they can open the device details page of the smartwatch in the watch app, find the "watch face market" button, and select the "rhythm disc" theme watch face to set the watch face to the "rhythm disc" watch face. This watch face is equipped with four quick entrances for music, payment, stopwatch and altitude. When users click on the four quick entrances for music, payment, stopwatch or altitude, they can enter the corresponding interface. When users select a watch face with interactive functions in the "watch face market", users can interact with the watch face.

[0090] The presentation forms of the above-mentioned static dials, dynamic dials and interactive dials are only displayed according to the set content, which is relatively monotonous and has low expressiveness. In order to solve the technical problem of low expressiveness of the dials, an embodiment of the present application provides an electronic device.

[0091] FIG1 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. For example, as shown in FIG1 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0092] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0093] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0094] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0095] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0096] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0097] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0098] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0099] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0100] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0101] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0102] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0103] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0104] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0105] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0106] Display screen 194 is used to display images, videos, and the like. Display screen 194 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 MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0107] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0108] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. 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, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0109] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0110] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0111] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0112] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0113] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0114] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0115] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0116] In order to solve the technical problem of low expressiveness of the above-mentioned dial, based on the above-mentioned electronic device, the embodiment of the present application can combine visual enhancement with user interaction, and render the two-dimensional first image into an image with a three-dimensional effect. When the electronic device is a smart watch, the expressiveness of the dial is enhanced, and the types and quantity of dials are enriched.

[0117] The display method provided in the embodiment of the present application is described in detail below with reference to FIG. 2 a to FIG. 2 f .

[0118] The user operates the electronic device, causing it to illuminate its screen. If the electronic device is a smartwatch, methods for illuminating the screen may include: raising the wrist to illuminate the screen, tapping the smartwatch screen to illuminate the screen, or pressing the crown to illuminate the screen. The wrist-raising method for smartwatches typically detects the flip angle of the smartwatch to determine whether the user has raised their wrist, thereby illuminating the screen.

[0119] In one embodiment of the present application, taking the electronic device as a smart watch as an example, after turning on the screen of the smart watch, the user can set the watch face of the smart watch. The user opens the device details page of the smart watch in the watch application installed on the first device, finds the "Watch Face Market" button, clicks the "More" button, and then clicks the "Album Watch Face" button to enter the watch face setting interface. In the album watch face setting interface, the user clicks the "+" button and can choose how to upload photos: take a photo or select from the album. The user can arbitrarily select a second image, which is a two-dimensional image. The electronic device can crop the second image according to the screen specifications of the electronic device to generate the first image.

[0120] The electronic device determines a first image and receives the first image and a first instruction from the first device via a second communication connection, wherein the first instruction instructs setting the first image as a watch face background. In one embodiment of the present application, the second communication connection includes a Bluetooth connection. In one possible implementation, the electronic device obtains the second image from the first device, crops the second image according to the screen specifications of the electronic device, and generates the first image to determine the first image. For example, when the first device includes a terminal device, the terminal device stores the second image, and the electronic device establishes a near-field communication connection with the terminal device, and the terminal device can send the second image to the electronic device. For another example, when the first device includes a server, the server stores the second image, and the electronic device establishes a mobile communication connection with the server, and the electronic device can download the second image from the server. The electronic device crops the second image according to the screen specifications of the electronic device to generate the first image. In another possible implementation, the first device stores the second image, and the first device crops the second image according to the screen specifications of the electronic device to determine the first image. In another possible implementation, the electronic device can capture the first image to determine the first image. In one embodiment of the present application, the first image can also be set as a lock screen wallpaper, as well as a watch face background and lock screen wallpaper.

[0121] Figure 2a is a schematic diagram of a first image provided according to an embodiment of the present application. As shown in Figure 2a, the first image is a two-dimensional image that is cropped according to the screen specifications of the electronic device. If the screen specifications include a circle, the first image is a circular image. The user can choose to display the first image in the electronic device as "dynamic rendering", and the electronic device executes the following method to achieve dynamic rendering of the dial. The electronic device generates height information of one or more pixels of the first image based on the color information of the first image; generates normal information of one or more pixels of the first image based on the height information of the one or more pixels and the height information of adjacent pixels; or receives normal information of one or more pixels of the first image from the first device via a second communication connection. For example, the first device stores the first image, generates height information of one or more pixels of the first image based on the color information of the first image; generates normal information of one or more pixels based on the height information of the one or more pixels and the height information of adjacent pixels; and the first device sends the first image and the normal information of one or more pixels of the first image to the electronic device via the second communication connection.

[0122] The electronic device detects a first input. In one possible implementation, the first input includes a posture change of the electronic device meeting a preset condition. When the electronic device includes a smartwatch, the smartwatch is worn on a user's wrist, and the user raises their wrist to move the electronic device, thereby detecting that the posture change of the electronic device has met the preset condition; alternatively, the user rotates their wrist to move the electronic device, thereby detecting that the posture change of the electronic device has met the preset condition; alternatively, the user holds the smartwatch and swings the smartwatch to move the electronic device, thereby detecting that the posture change of the electronic device has met the preset condition.

[0123] In one embodiment of the present application, the electronic device includes an orientation sensor, and the electronic device can detect a change in the posture of the electronic device through the orientation sensor. Specifically, the electronic device can detect a change in the posture parameter of the electronic device through the orientation sensor. As an optional solution, the electronic device detects through the orientation sensor that when the posture parameter of the electronic device is greater than a posture parameter threshold, it indicates that the posture change of the electronic device has reached a preset condition. Wherein, when the posture parameter is an acceleration value along the three rectangular coordinate axes of X, Y, and Z, the posture parameter threshold is a set acceleration threshold; when the posture parameter is an angular velocity value along the three rectangular coordinate axes of X, Y, and Z, the posture parameter threshold is a set angular velocity threshold.

[0124] For example, the orientation sensor may be an inertial measurement unit (IMU), a compass, a micro-electro-mechanical system (MEMS) accelerometer, or a MEMS gyroscope. As shown in FIG1 , the orientation sensor includes the gyroscope sensor 180B and the acceleration sensor 180E in FIG1 . In one embodiment of the present application, the IMU can detect changes in the six-degree-of-freedom attitude parameters of the smartwatch, wherein the six degrees of freedom include the degrees of freedom of movement along the three rectangular coordinate axes of X, Y, and Z and the degrees of freedom of rotation around these three coordinate axes. The attitude parameters of the degrees of freedom of movement along the three rectangular coordinate axes of X, Y, and Z include acceleration values ​​along the three rectangular coordinate axes, and the attitude parameters of the degrees of freedom of rotation along the three rectangular coordinate axes of X, Y, and Z include angular velocity values ​​along the three rectangular coordinate axes. The angular velocity values ​​may correspond to the yaw angle, the roll angle, and the pitch angle. The electronic device can detect the acceleration values ​​along the three rectangular coordinate axes X, Y, and Z through the acceleration sensor 180E. When any one of the acceleration values ​​along the three rectangular coordinate axes X, Y, and Z is greater than a set acceleration threshold, it can be detected that the posture change of the electronic device has met the preset condition. The acceleration threshold can be set according to actual conditions, for example, the acceleration threshold is 10m / s2. The electronic device can detect the angular velocity values ​​along the three rectangular coordinate axes X, Y, and Z through the gyroscope sensor 180B. When any one of the angular velocity values ​​along the three rectangular coordinate axes X, Y, and Z is greater than a set angular velocity threshold, it can be detected that the posture change of the electronic device has met the preset condition. The angular velocity threshold can be set according to actual conditions, for example, the angular velocity threshold is 10rad / s. The compass, MEMS accelerometer, and MEMS gyroscope in the orientation sensor can all detect the posture change of the electronic device in the above manner, which will not be repeated here.

[0125] In another possible implementation, the first input includes a first operation acting on a first button or screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the first input includes a first operation acting on a first button or screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the screen lighting method may include: raising the wrist to light up the screen, clicking the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the wrist-raising screen lighting method of the smart watch usually uses the method of detecting the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.

[0126] In another possible implementation, the first input includes a second operation acting on a second button or screen, and the second operation is used to cause the screen to display the first image. The user operates the electronic device so that the screen of the electronic device displays the first image. When the electronic device is a smart watch, the first input includes a second operation acting on a second button or screen, and the second operation is used to cause the screen to display the first image. For example, the user clicks the screen of the smart watch to display the first image or presses the crown to display the first image. The electronic device includes a first button, a second button, and a screen, and the first button and the second button are the same or different buttons.

[0127] The electronic device obtains first angle information through a first communication connection. The first angle information includes solar declination, geographic latitude, and local time information. Specifically, the electronic device determines solar altitude angle information based on the solar declination, geographic latitude, and local time information. Solar declination may also be referred to as the solar declination angle, geographic latitude may also be referred to as the geographic latitude angle, and local time may also be referred to as the local time angle. In one possible implementation, the electronic device obtains the first angle information at a set time interval. The electronic device can set the set time interval based on actual conditions, for example, setting the time interval to 5 minutes.

[0128] In one possible implementation, the first communication connection is a global positioning system (GPS) or a BeiDou Navigation Satellite System (BDS). If a GPS or BDS is installed in an electronic device, the electronic device can obtain the solar declination, geographic latitude and local time information of the electronic device through the GPS or BDS. The electronic device can also obtain the solar declination, geographic latitude and local time information of the electronic device from the first device. As an optional solution, when the first device is a terminal device, a GPS or BDS is installed in the terminal device, and the terminal device can obtain the solar declination, geographic latitude and local time information of the terminal device through the GPS or BDS. The terminal device sends the solar declination, geographic latitude and local time information to the electronic device. Since the connection between the terminal device and the electronic device is a short-range communication connection, the solar declination, geographic latitude and local time information of the terminal device can also be used as the solar declination, geographic latitude and local time information of the electronic device. As another optional solution, when the first device is a server, the electronic device sends an acquisition request to the server based on the location of the electronic device. The server responds to the acquisition request, obtains the solar declination, geographic latitude and local time information of the electronic device based on the location of the electronic device, and the server sends the solar declination, geographic latitude and local time information of the electronic device to the electronic device.

[0129] In one embodiment of the present invention, the first angle information includes solar altitude information. The electronic device determines the solar altitude information based on the solar declination, geographic latitude, and local time information. FIG3 is a schematic diagram of the solar altitude provided according to an embodiment of the present application. As shown in FIG3 , the solar altitude is the angle between the incident direction of sunlight at point A on the earth and the horizon. The solar altitude changes with changes in the solar declination, geographic latitude, and local time. For example, when the electronic device is located in the northern hemisphere of the earth, the solar altitude gradually increases from morning to noon, and gradually decreases from noon to evening.

[0130] The electronic device determines second angle information of the electronic device. The second angle information includes an angle between the plane where the electronic device is located and the device in a preset direction. In one possible implementation, the second angle information is an angle between the plane where the electronic device is located and the horizontal direction.

[0131] The electronic device determines brightness information of one or more pixels of the first image based on attribute information, first angle information, and second angle information of one or more pixels. Specifically, the electronic device generates a light source position based on the solar altitude angle and the device angle; the electronic device generates light intensity information of one or more pixels based on the light source position and the distance between the light source position and the pixel position; the electronic device generates image light information based on the light source position and the height information of one or more pixels; the electronic device generates light standard information based on the image light information; the electronic device generates light source information based on the light standard information and the light intensity information of one or more pixels; the electronic device generates adjustment information based on the coordinate difference between adjacent pixels in the first image and the normal information of one or more pixels; the electronic device generates bright and dark point information based on the light source information and the adjustment information; and the electronic device generates brightness information of one or more pixels based on the bright and dark point information and the color information of the first image.

[0132] The electronic device displays a first user interface based on brightness information of one or more pixels.

[0133] An embodiment of the present application provides a display method. FIG4 is a flow chart of a display method according to an embodiment of the present application. As shown in FIG4 , the method includes:

[0134] Step 12: When the electronic device detects that the posture change of the electronic device reaches a preset condition, the electronic device obtains first angle information through the first communication connection.

[0135] In one embodiment of the present application, when the electronic device is in a screen-on state and the current user interface (UI) of the electronic device is the desktop, step 12 is executed.

[0136] Step 14: The electronic device determines second angle information of the electronic device.

[0137] Step 16: The electronic device determines brightness information of one or more pixels of the first image based on the attribute information of the one or more pixels, the first angle information, and the second angle information.

[0138] Step 18: The electronic device displays a first user interface based on brightness information of one or more pixels.

[0139] Taking the user rotating the wrist to move the electronic device as an example, the following describes the first user interface before and after the posture change of the electronic device in conjunction with Figures 2b and 2c.

[0140] Figure 2b is a schematic diagram of a user interface provided according to an embodiment of the present application, and Figure 2c is a schematic diagram of another user interface provided according to an embodiment of the present application. In actual applications, users usually check the time by lifting the smart watch and then twisting their wrist to see the smart watch screen clearly. When the user wears the smart watch on their wrist, as shown in Figure 2b, when the user lifts their wrist, the right side of the user interface on the smart watch dial is darker and the left side is brighter. At this time, the user rotates their wrist toward the inside of the user's body. The arrow in Figure 2b indicates that the user rotates their wrist toward the inside of the user's body. As shown in Figure 2c, after the user rotates their wrist toward the inside of the user's body, the user interface on the smart watch dial changes due to the change in the posture of the smart watch. The user interface on the smart watch dial changes from an image with a darker right side and a brighter left side as shown in Figure 2b to an image with a brighter right side and a darker left side as shown in Figure 2c. The smart watch can interact with the user in real time and dynamically change the brightness and darkness of pixels in the user interface.

[0141] An embodiment of the present application provides another display method. FIG5 is a flow chart of another display method according to an embodiment of the present application. As shown in FIG5 , the method includes:

[0142] Step 22: The electronic device performs a first operation on a first button or screen, where the first operation is used to switch the screen from an off state to a bright state, displaying the desktop of the electronic device.

[0143] In one embodiment of the present application, when the electronic device is in the screen-off state, step B1 is executed.

[0144] In one embodiment of the present application, the electronic device is used to display a user interface (UI), which can be used to display a desktop or an application interface.

[0145] In one possible implementation, a second operation is performed on a second button or a screen, and the second operation is used to cause the screen to display a first image; wherein the electronic device includes a first button, a second button, and a screen, and the first button and the second button are the same or different buttons.

[0146] In one embodiment of the present application, when the electronic device is in a screen-off state, the electronic device displays the desktop of the electronic device in response to a first operation input by a user.

[0147] As another optional solution, when the electronic device is in the screen-off state, the electronic device displays the application interface of the electronic device in response to a first operation input by the user; and the electronic device switches the application interface to the desktop of the electronic device in response to a second operation input by the user.

[0148] As another optional solution, when the electronic device is in the screen-on state, the electronic device switches the displayed application interface to the desktop of the electronic device in response to a second operation input by the user.

[0149] Step 24: The electronic device obtains first angle information through the first communication connection.

[0150] Step 26: The electronic device determines second angle information of the electronic device.

[0151] Step 28: The electronic device determines brightness information of one or more pixels of the first image based on the attribute information of the one or more pixels, the first angle information, and the second angle information.

[0152] Step 30: The electronic device displays a first user interface based on brightness information of one or more pixels.

[0153] An embodiment of the present application provides another display method. FIG6 is a flow chart of another display method according to an embodiment of the present application. As shown in FIG6 , the method includes:

[0154] Step 32: The electronic device determines the first image.

[0155] Step 34: The electronic device detects a first input at a first moment, where the first input is used to switch the electronic device from a screen-off state to a screen-on state.

[0156] In one embodiment of the present application, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the screen lighting method may include: raising the wrist to light up the screen, clicking the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the wrist-raising screen lighting method of the smart watch usually uses the method of detecting the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.

[0157] Step 36: The electronic device displays a first user interface in response to the first input, where the first user interface includes image data generated after the first image is processed by the first process.

[0158] In one embodiment of the present invention, the first processing includes: determining the first brightness information of one or more pixels based on the attribute information, first angle information and second angle information of one or more pixels of the acquired first image, and the image data includes the first brightness information, so that the electronic device can display the first user interface based on the first brightness information of one or more pixels.

[0159] Step 38: The electronic device detects a second input at a second moment, where the second input is used to switch the electronic device from a screen-off state to a screen-on state.

[0160] In one embodiment of the present application, the second input includes a first operation acting on a first button or screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the second input includes a first operation acting on a first button or screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the screen lighting method may include: raising the wrist to light up the screen, clicking the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the wrist-raising screen lighting method of the smart watch usually uses the method of detecting the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.

[0161] Step 40: The electronic device displays a second user interface in response to the second input, where the second user interface includes image data generated after the first image is processed by the second process; wherein the brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.

[0162] In one embodiment of the present invention, the second processing includes: determining the second brightness information of one or more pixels based on the attribute information, third angle information and fourth angle information of one or more pixels of the acquired first image, and the image data includes the second brightness information, so that the electronic device can display the second user interface based on the second brightness information of one or more pixels.

[0163] Figure 2d is a schematic diagram of another user interface provided according to an embodiment of the present application, and Figure 2e is a schematic diagram of another user interface provided according to an embodiment of the present application. As shown in Figures 2d and 2e, in an embodiment of the present application, if the user is wearing the smart watch in the northern hemisphere of the earth, the corresponding time of Figure 2d may be 8 a.m., then the first moment is 8 a.m., and the corresponding time of Figure 2e may be 12 noon, then the second moment is 12 noon. When the user switches the smart watch from the off-screen state to the on-screen state at the first moment (8 a.m.), the first user interface is displayed, and the first user interface may be as shown in Figure 2d. When the user switches the smart watch from the off-screen state to the on-screen state at the second moment (12 noon), the second user interface is displayed, and the second user interface may be as shown in Figure 2e. The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.

[0164] In one embodiment of the present application, the posture of the smart watch does not change and is always in a bright screen state. When the current user interface is the desktop, the user can see that the smart watch adjusts the brightness of the pixels in the dial in real time over time. Figure 2f is a schematic diagram of another user interface provided according to an embodiment of the present application. If the user wears the smart watch and is located in the northern hemisphere of the earth, the corresponding time of Figure 2d may be 8 o'clock in the morning, the corresponding time of Figure 2e may be 12 o'clock noon, and the corresponding time of Figure 2f may be 18 o'clock in the evening. As shown in Figures 2d, 2e and 2f, the right side of the user interface in Figure 2d is darker and the left side is brighter; the upper side of the user interface in Figure 2e is brighter and the lower side is darker; the left side of the user interface in Figure 2f is darker and the right side is brighter, thereby achieving the display effect of the sun rising from the east and setting in the west, that is, the movement process of the sun from morning to noon and from noon to evening.

[0165] For example, when the electronic device is located in the northern hemisphere of the earth, the solar altitude angle gradually increases from morning to noon, and the light source displayed in the user interface moves from the left half of the user interface to the middle part; from noon to evening, the solar altitude angle gradually decreases, and the light source displayed in the user interface moves from the middle part to the right half of the user interface.

[0166] In the technical solution provided in one embodiment of the present application, the shape of the light source displayed in the schematic diagrams of the user interface shown in Figures 2b, 2c, 2d, 2e and 2f can be any shape. For example, the shape of the light source can be a point light source, a linear light source or a strip light source, etc.

[0167] In the technical solution provided in one embodiment of the present application, the schematic diagrams of the user interface shown in Figures 2b, 2c, 2d, 2e and 2f can also display the shadows produced by the objects in the figure being illuminated by the light source, so that the rendered first image has a three-dimensional visual effect.

[0168] In the technical solution provided in one embodiment of the present application, the color and content in the first image are not changed, and only the brightness and darkness of one or more pixels in the first image are changed, so that the rendered first image has a three-dimensional visual effect.

[0169] In one embodiment of the present application, the user interface can realize light and shadow effects at different locations and times based on the solar declination, geographic latitude, and local time. For example, the light and shadow effects generated by a user wearing a smartwatch in Australia and in China at the same time can be different.

[0170] The schematic diagrams of the user interfaces shown in Figures 2b, 2c, 2d, 2e and 2f are exemplary displays of an embodiment of the present application. The schematic diagrams of the user interfaces of the smart watch may also be in other styles, which is not limited to the embodiments of the present application.

[0171] In addition, when the electronic device is a mobile phone, tablet computer, or other electronic device with a rectangular screen, the display method is the same as the above technical solution, with only the screen shape being changed. When the electronic device is a mobile phone, tablet computer, or other electronic device with a rectangular screen, the user interface of the electronic device can display a rectangular desktop. This rectangular desktop can also combine visual enhancement with user interaction and render the first image into an image with a three-dimensional effect, thereby enhancing the expressiveness of the electronic device's desktop.

[0172] To implement the above technical solution, the following is an example of the workflow of the display method through a specific embodiment. An embodiment of the present application provides another display method. FIG7 is a flowchart of another display method provided according to an embodiment of the present application. As shown in FIG7, the method includes:

[0173] Step 102: The electronic device determines a first image.

[0174] In one embodiment of the present application, an electronic device obtains a second image from a first device, where the second image is a two-dimensional image. The electronic device crops the second image according to the screen specifications of the electronic device to generate the first image. For example, if the electronic device is a smartwatch with a 1.4-inch circular screen, the electronic device crops the second image according to the 1.4-inch circular screen to generate the first image.

[0175] In one embodiment of the present application, the first image includes a plurality of pixels.

[0176] Step 104: The electronic device generates height information of one or more pixels in the first image according to the color information of the first image.

[0177] In one embodiment of the present application, the color information is RGB information, wherein the RGB information includes red (r), green (g), and blue (b). Step 104 may specifically include:

[0178] Electronic devices use the formula height i,j =c1*r+c2*g+c3*b calculates the color information and generates the height information of one or more pixels, where r is the red information, g is the green information, b is the blue information, c1 is the weight coefficient of the red information, c2 is the weight coefficient of the green information, c3 is the weight coefficient of the blue information, height i,j is the height information of one or more pixels, i is the row label of the pixel in the first image, and j is the column label of the pixel in the first image.

[0179] Step 106: The electronic device generates normal information of one or more pixels based on the height information of the one or more pixels and the height information of adjacent pixels.

[0180] Specifically, the electronic device uses the formula: norm i,j =1 / sqrt(dx i,j 2 +dy i,j 2 +1) dx i,j =height i,j -height i,j-1 dy i,j =height i,j -height i-1,j

[0181] Calculate the height information of one or more pixels and the height information of adjacent pixels to generate normal information of one or more pixels. The height information of adjacent pixels includes the horizontal height information height i,j-1 And the vertical height information height i-1,j , height i,j is the height information of one or more pixels, norm i,j Normal information for one or more pixels.

[0182] In the embodiment of the present application, as another optional solution, the first device may also calculate the normal information of one or more pixels in the first image according to the calculation method in steps 104 to 106, which will not be repeated here.

[0183] Step 112: The electronic device obtains the solar declination, geographic latitude, and local time through the first communication connection.

[0184] Step 114: The electronic device generates a solar altitude angle according to the solar declination, the geographic latitude, and the local time.

[0185] Specifically, the electronic device calculates the solar declination, geographic latitude and local time using the formula sin h = sin φ sin δ + cos φ cos δ cost to generate the solar altitude angle, where φ is the geographic latitude, δ is the solar declination, t is the local time, and h is the solar altitude angle.

[0186] Step 122: When the electronic device detects that the posture change of the electronic device reaches a preset condition, the electronic device determines the device angle of the electronic device.

[0187] As an optional solution, the electronic device detects the angle between the plane where the electronic device is located and the device in the horizontal direction through an orientation sensor.

[0188] Step 132: The electronic device determines brightness information of one or more pixels based on normal information of the one or more pixels, the sun altitude angle, and the device angle.

[0189] FIG8 is a flowchart of determining brightness information according to an embodiment of the present application. As shown in FIG8 , step 132 specifically includes:

[0190] Step 1322: The electronic device generates a light source position according to the sun altitude angle and the device angle.

[0191] In one embodiment of the present application, the solar altitude angle h can be taken as the angle wh between the line connecting the light source position and the image center and the image plane, that is, h and wh are equal.

[0192] Specifically, the electronic device uses the formula: X=R*cos(h)*cos(wh+dw) Y=R*cos(h)*sin(wh+dw) Z=R*sin(h)

[0193] Calculate the sun's altitude, light source distance, and device angle to generate the light source position. Here, h is the sun's altitude, wh is the angle between the line connecting the light source position and the image center and the image plane, R is the light source distance (which can optionally be the radius of the Earth), dw is the device angle, X is the horizontal coordinate of the light source position, Y is the vertical coordinate of the light source position, and Z is the vertical coordinate of the light source position. The origin of the X, Y, and Z coordinates is the image center of the first image.

[0194] In one embodiment of the present application, taking an IMU as an example, as shown in FIG1 , the IMU's accelerometer 180E can detect acceleration values ​​along the three rectangular coordinate axes (X, Y, and Z). When any one of the acceleration values ​​along the three rectangular coordinate axes (X, Y, and Z) exceeds a set acceleration threshold, the angle between the plane where the electronic device resides and the horizontal device changes, causing the light source position generated in step 1322 to change. The IMU's gyroscope 180B can detect angular velocity values ​​along the three rectangular coordinate axes (X, Y, and Z). When any one of the angular velocity values ​​along the three rectangular coordinate axes (X, Y, and Z) exceeds a set angular velocity threshold, the angle between the plane where the electronic device resides and the horizontal device changes, causing the light source position generated in step 1322 to change. In this case, the angle of the light source position relative to the center of the dial changes, but the distance of the light source position relative to the center of the dial remains unchanged. The acceleration sensor 180E of the IMU detects that any one of the acceleration values ​​along the three rectangular coordinate axes of X, Y, and Z is greater than the set acceleration threshold, and the gyroscope sensor 180B detects that any one of the angular velocity values ​​along the three rectangular coordinate axes of X, Y, and Z is greater than the set angular velocity threshold. The angle between the plane where the electronic device is located and the device in the horizontal direction changes, causing the position of the light source generated in step 1322 to change.

[0195] When an electronic device detects changes in its posture through an IMU, the technical solution provided in this application can change the rendered visual effect based on changes in the device angle obtained by the IMU.

[0196] Step 1324: The electronic device generates light intensity information of one or more pixels based on the position of the light source and the distance between the position of the light source and the position of the pixel.

[0197] Specifically, the electronic device generates a distance between the light source position and the pixel position based on the light source position and the pixel position. The electronic device calculates the light source position and the distance between the light source position and the pixel position using the formula LightCij = 500 / d^2 to generate light intensity information for one or more pixels. Where LightCij is the light intensity information for one or more pixels, and d is the distance between the light source position and the pixel position.

[0198] Step 1326: The electronic device generates image light information according to the light source position and height information of one or more pixels.

[0199] Specifically, the electronic device uses the formula: lightx0=Xi lighty0=Yj lightz0=Z-height i,j

[0200] Calculate the light source position and the height information of one or more pixels to generate image light information. Among them, lightx0, lighty0 and lightz0 are image light information, lightx0 is the image light information of the horizontal axis, lighty0 is the image light information of the vertical axis, lightz0 is the image light information of the vertical axis, X is the horizontal coordinate of the light source position, Y is the vertical coordinate of the light source position, Z is the vertical coordinate of the light source position, height i,j is the height information of one or more pixels, i is the row label of the pixel in the first image, and j is the column label of the pixel in the first image.

[0201] Step 1328: The electronic device generates light standard information based on the image light information.

[0202] Specifically, the electronic device calculates the image light information through the formula lightNorm=sqrt(lightx0*lightx0+lighty0*lighty0+lightz0*lightz0) to generate light standard information, where lightx0, lighty0 and lightz0 are image light information, and lightNorm is light standard information.

[0203] Step 1330: The electronic device generates light source information according to the light standard information and light intensity information of one or more pixels.

[0204] Specifically, the electronic device uses the formula: lightx=lightx / lightNorm*LightCi lighty=lighty / lightNorm*LightCij lightz=lightz / lightNorm*LightCij

[0205] The light standard information and the light intensity information of one or more pixels are calculated to generate light source information, where LightCij is the light intensity information of one or more pixels, lightNorm is the light standard information, lightx, lighty and lightz are the light source information, lightx is the light source information on the horizontal axis, lighty is the light source information on the vertical axis, and lightz is the light source information on the vertical axis.

[0206] Step 1332: The electronic device generates adjustment information based on the coordinate difference between adjacent pixels in the first image and normal information of one or more pixels.

[0207] Specifically, the electronic device uses the formula: rx=-dx / norm i,j gy=-dy / norm i,j bz=1

[0208] Calculate the coordinate difference of adjacent pixels in the first image and the normal information of one or more pixels to generate adjustment information. Wherein, dx is the horizontal coordinate difference of adjacent pixels in the first image, dy is the vertical coordinate difference of adjacent pixels in the first image, norm i,j is the normal information of one or more pixels, rx, gy and bz are adjustment information, rx is the adjustment information of red information, gy is the adjustment information of green information, and bz is the adjustment information of blue information.

[0209] Step 1334: The electronic device generates bright and dark spot information according to the light source information and the adjustment information.

[0210] Specifically, the electronic device calculates the light source information and adjustment information using the formula dot = rx * lightx + gy * lighty + bz * lightz to generate the bright and dark point information, where rx, gy, and bz are the adjustment information, lightx, lighty, and lightz are the light source information, and dot is the bright and dark point information.

[0211] Step 1336: The electronic device generates brightness information of one or more pixels based on the bright and dark point information and the color information of the first image.

[0212] Specifically, the electronic device uses the formula: r_new=dot*r g_new=dot*g b_new=dot*b

[0213] Calculate the bright and dark dot information and the color information of the first image to generate new color information. Where dot is the bright and dark dot information, r, g, and b are the color information of the first image, where r is red, g is green, and b is blue, and r_new, g_new, and b_new are the brightness information of one or more pixels.

[0214] Step 134: The electronic device displays a first user interface based on brightness information of one or more pixels.

[0215] Specifically, the electronic device updates color information of one or more pixels in the first image according to brightness information of the one or more pixels to display the first user interface.

[0216] In one embodiment of the present application, the electronic device updates the color information r, g, and b in the first image based on the brightness information r_new, g_new, and b_new of one or more pixels to display the first user interface. At this time, the color information of the first image in the user interface is r_new, g_new, and b_new.

[0217] In the technical solution provided in one embodiment of the present application, a first image is determined; first angle information is obtained through a first communication connection; second angle information of the electronic device is determined; brightness information of one or more pixels is determined based on attribute information, first angle information, and second angle information of one or more pixels in the first image; and a first user interface is displayed based on the brightness information of the one or more pixels. The technical solution provided in the embodiment of the present application can combine visual enhancement with user interaction, and brightness information of one or more pixels in the first image is determined based on attribute information, first angle information, and second angle information of one or more pixels, so that the two-dimensional first image can be rendered into an image with a three-dimensional effect based on the brightness information of one or more pixels, thereby enhancing the image expression capability of the electronic device.

[0218] An embodiment of the present application provides a display device. Figure 9 is a structural schematic diagram of a display device provided according to an embodiment of the present application. As shown in Figure 9, the device includes: a first determination module 11, a first acquisition module 12, a second determination module 13, a third determination module 14 and a display module 15.

[0219] The first determining module 11 is used to determine a first image.

[0220] The first acquisition module 12 is configured to acquire first angle information through a first communication connection.

[0221] The second determining module 13 is configured to determine second angle information of the electronic device.

[0222] The third determining module 14 is configured to determine brightness information of one or more pixels of the first image according to the attribute information of the one or more pixels, the first angle information, and the second angle information.

[0223] The display module 15 is configured to display a first user interface according to brightness information of one or more pixels.

[0224] In one embodiment of the present application, the device further includes: a detection module 16.

[0225] The detection module 16 is configured to detect a first input.

[0226] The first acquisition module 12 is specifically configured to obtain first angle information through a first communication connection in response to the first input detected by the detection module 16 , and trigger the second determination module 13 to determine second angle information of the electronic device.

[0227] In one embodiment of the present application, the first input includes: the posture change of the electronic device reaches a preset condition; or a first operation acting on a first button or screen, the first operation is used to switch the screen from an off state to a bright state; or a second operation acting on a second button or screen, the second operation is used to make the screen display a first image; wherein, the electronic device includes a first button, a second button and a screen, and the first button and the second button are the same or different buttons.

[0228] In one embodiment of the present application, the first determining module 11 is specifically configured to set the first image as the dial background.

[0229] In one embodiment of the present application, the device further includes: a receiving module 17 .

[0230] The receiving module 17 is configured to receive a first image and a first instruction from the first device through a second communication connection, wherein the first instruction instructs to set the first image as the dial background.

[0231] In one embodiment of the present application, the second communication connection is a Bluetooth connection.

[0232] In one embodiment of the present application, the first communication connection is a global positioning system or a Beidou satellite navigation system.

[0233] The first angle information includes solar declination, geographic latitude and local time information.

[0234] In one embodiment of the present application, the third determination module 14 is specifically used to determine the solar altitude information based on the solar declination, geographic latitude and local time information; and determine the brightness information of one or more pixels based on the attribute information, solar altitude information and second angle information of one or more pixels of the first image.

[0235] In one embodiment of the present application, the second angle information includes an angle between the plane where the electronic device is located and the device in a preset direction.

[0236] In one embodiment of the present application, Figure 10 is a structural diagram of a third determination module provided according to one embodiment of the present application. As shown in Figure 10, the third determination module 14 specifically includes: a first generation sub-module 141, a second generation sub-module 142, a third generation sub-module 143, a fourth generation sub-module 144, a fifth generation sub-module 145, a sixth generation sub-module 146, a seventh generation sub-module 147 and an eighth generation sub-module 148.

[0237] The first generating submodule 141 is used to generate a light source position according to the sun altitude angle and the device angle.

[0238] The second generating submodule 142 is configured to generate light intensity information of one or more pixels according to the position of the light source and the distance between the position of the light source and the position of the pixel.

[0239] The third generating submodule 143 is used to generate image light information according to the light source position and height information of one or more pixels.

[0240] The fourth generating submodule 144 is configured to generate light standard information according to the image light information.

[0241] The fifth generating submodule 145 is configured to generate light source information according to the light standard information and light intensity information of one or more pixels.

[0242] The sixth generating submodule 146 is configured to generate adjustment information based on normal information of one or more pixels and coordinate differences between adjacent pixels in the acquired first image.

[0243] The seventh generating submodule 147 is used to generate bright and dark point information according to the light source information and the adjustment information.

[0244] The eighth generating submodule 148 is configured to generate brightness information of one or more pixels according to the bright and dark point information and the color information of the first image.

[0245] In one embodiment of the present application, the attribute information includes normal information, and the device further includes: a first generating module 18 and a second generating module 19 .

[0246] The first generating module 18 is configured to generate height information of one or more pixels of the first image according to the color information of the first image.

[0247] The second generating module 19 is configured to generate normal information of one or more pixels of the first image according to height information of one or more pixels and height information of adjacent pixels; or,

[0248] The receiving module 17 is configured to receive normal information of one or more pixels of the first image from the first device through the second communication connection.

[0249] An embodiment of the present application provides another display device. Figure 11 is a structural schematic diagram of another display device provided according to an embodiment of the present application. As shown in Figure 11, the device includes: an image determination module 21, a first detection module 22, a first display module 23, a second detection module 24 and a second display module 25.

[0250] The image determination module 21 is used to determine a first image.

[0251] The first detection module 22 is used to detect a first input at a first moment, and the first input is used to switch the electronic device from a screen-off state to a screen-on state.

[0252] The first display module 23 is configured to display a first user interface in response to a first input, where the first user interface includes image data generated after the first image is processed by the first process.

[0253] The second detection module 24 is used to detect a second input at a second moment, and the second input is used to switch the electronic device from a screen-off state to a screen-on state.

[0254] The second display module 25 is used to display a second user interface in response to a second input, where the second user interface includes image data generated after the first image is processed by the second process; wherein the brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.

[0255] In one embodiment of the present application, the first processing includes: determining first brightness information of one or more pixels based on attribute information, first angle information and second angle information of one or more pixels of the acquired first image, and the image data includes the first brightness information.

[0256] In one embodiment of the present application, the second processing includes: determining second brightness information of one or more pixels based on the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, and the image data includes the second brightness information.

[0257] In the technical solution provided in one embodiment of the present application, a first image is determined; first angle information is obtained through a first communication connection; second angle information of the electronic device is determined; brightness information of one or more pixels is determined based on attribute information, first angle information, and second angle information of one or more pixels in the first image; and a first user interface is displayed based on the brightness information of the one or more pixels. The technical solution provided in the embodiment of the present application can combine visual enhancement with user interaction, and brightness information of one or more pixels in the first image is determined based on attribute information, first angle information, and second angle information of one or more pixels, so that the two-dimensional first image can be rendered into an image with a three-dimensional effect based on the brightness information of one or more pixels, thereby enhancing the image expression capability of the electronic device.

[0258] An embodiment of the present application provides an electronic device, which can be a terminal device or a circuit device built into the terminal device. The electronic device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and include instructions that, when executed by the device, enable the device to perform each step of the above-described display method embodiment.

[0259] An embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the steps in the above-mentioned display method embodiment.

[0260] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer or any at least one processor, the computer is caused to execute each step in the above-mentioned display method embodiment.

[0261] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0262] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented using a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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.

[0263] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0264] In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0265] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection of the claims.

Claims

1. A display method, characterized in that: The method is applied to an electronic device, comprising: determining a first image; Acquiring first angle information through a first communication connection; Determining second angle information of the electronic device; Determining brightness information of the one or more pixels according to attribute information of the one or more pixels of the first image, the first angle information, and the second angle information; A first user interface is displayed according to the brightness information of the one or more pixels.

2. The display method according to claim 1, characterized in that: Before acquiring the first angle information through the first communication connection and determining the second angle information of the electronic device, the method further includes: detecting a first input; The acquiring the first angle information and determining the second angle information of the electronic device through the first communication connection includes: In response to the first input, first angle information is acquired through the first communication connection to determine second angle information of the electronic device.

3. The display method according to claim 2, characterized in that: The first input includes: The posture change of the electronic device reaches a preset condition; or A first operation on a first button or screen, the first operation being used to switch the screen from an off state to a bright state; or a second operation acting on a second button or the screen, the second operation being used to make the screen display the first image; The electronic device includes the first button, the second button and the screen, and the first button and the second button are the same or different buttons.

4. The display method according to any one of claims 1 to 3, characterized in that: Determining the first image includes: The first image is set as the dial background.

5. The display method according to claim 4, characterized in that: Before setting the first image as the dial background, the method further includes: The first image and a first instruction are received from a first device through a second communication connection, wherein the first instruction instructs to set the first image as a dial background.

6. The method according to claim 5, characterized in that The second communication connection is a Bluetooth connection.

7. The method according to any one of claims 1 to 6, characterized in that: The first communication connection is a global positioning system or a Beidou satellite navigation system.

8. The method according to any one of claims 1 to 7, characterized in that: The first angle information includes solar declination, geographic latitude and local time information.

9. The method according to claim 8, characterized in that The determining, according to the attribute information of the one or more pixels of the first image, the first angle information, and the second angle information, the brightness information of the one or more pixels comprises: Determine the solar altitude angle information according to the solar declination, geographic latitude and local time information; The brightness information of the one or more pixels of the first image is determined according to the attribute information of the one or more pixels, the solar altitude angle information and the second angle information.

10. The method according to any one of claims 1 to 9, characterized in that: The second angle information includes an angle between a plane where the electronic device is located and a preset direction.

11. The method according to claim 10, characterized in that The step of determining brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the solar altitude angle information, and the second angle information includes: Generate a light source position according to the solar altitude angle information and the device angle; Generate light intensity information of one or more pixels according to the light source position and the distance between the light source position and the pixel position; generating image light information according to the light source position and the height information of the one or more pixels; The electronic device generates light standard information according to the image light information; The electronic device generates light source information according to the light standard information and light intensity information of one or more pixels; Generate adjustment information according to the normal information of the one or more pixels and the coordinate difference of adjacent pixels in the acquired first image; Generate bright and dark point information according to the light source information and the adjustment information; Brightness information of one or more pixels is generated according to the bright and dark point information and the color information of the first image.

12. The method according to claim 1, characterized in that The attribute information includes normal information, and after determining the first image, before determining the brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the sun altitude information and the second angle information, the method includes: generating height information of one or more pixels of the first image according to the color information of the first image; Generate normal information of one or more pixels of the first image according to the height information of the one or more pixels and the height information of adjacent pixels; or, Normal information for one or more pixels of the first image is received from the first device via the second communication connection.

13. A display method, characterized in that: The method is applied to an electronic device, comprising: determining a first image; Detecting a first input at a first moment, the first input being used to switch the electronic device from a screen-off state to a screen-on state; In response to the first input, display a first user interface, wherein the first user interface includes image data generated after the first image is subjected to a first processing; Detecting a second input at a second moment, the second input being used to switch the electronic device from a screen-off state to a screen-on state; In response to the second input, a second user interface is displayed, wherein the second user interface includes image data generated after the first image is subjected to the second processing; wherein, The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.

14. The method according to claim 13, characterized in that The first process comprises: First brightness information of one or more pixels is determined according to the acquired attribute information, first angle information, and second angle information of one or more pixels of the first image, and the image data includes the first brightness information.

15. The method according to claim 13, characterized in that The second process comprises: According to the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, second brightness information of the one or more pixels is determined, and the image data includes the second brightness information.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the display method according to any one of claims 1 to 12; or, the display method according to any one of claims 13 to 15.

17. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing computer program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the display method as described in any one of claims 1-12; or, the steps of the display method as described in any one of claims 13-15.

Citation Information

Patent Citations

  • Display screen brightness adjusting method and related product

    CN110580886A

  • Graphical user interface display method and device, terminal and storage medium

    CN112256367A

  • Screen display color adjusting method and electronic equipment

    CN114758601A

  • Electronic device and display control method in electronic device

    US20180218710A1

Cited By

  • Interface display method and electronic device

    WO2026218912A1