Display method, device, electronic equipment and readable storage medium

By generating light and shadow pattern images based on the sun's altitude angle, the problem of monotonous background image styles is solved, improving the user experience, realizing the connection and dynamic changes with the real environment, and enhancing the realism of the display interface.

CN123137769APending Publication Date: 2026-11-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510656907.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The existing background images on electronic devices are monotonous and lack interaction with the real environment, failing to improve the user experience.

Method used

The solar altitude angle is obtained based on the current time, and a corresponding light and shadow pattern image is generated and displayed on the display interface to simulate the light and shadow effects in the real environment. The color, clarity and brightness of the image are adjusted in combination with the ambient color, brightness and weather information.

Benefits of technology

It enhances the user's immersive experience by connecting the display interface with the real-world environment, thus increasing its realism and vividness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137769A_ABST
    Figure CN123137769A_ABST
Patent Text Reader

Abstract

The application provides a display method and device, electronic equipment and readable storage medium, and relates to the technical field of terminals. The display method comprises the following steps: acquiring a first picture according to a current time, the first picture comprising a first light and shadow pattern, and a difference between an inclination angle of the first light and shadow pattern and a first solar elevation angle corresponding to the current time being less than or equal to a preset threshold; and displaying the first picture in a first interface. The first light and shadow pattern can simulate a light and shadow effect generated when sunlight of the sun at the first solar elevation angle in a real environment is irradiated on a display screen of the electronic equipment through a target object, a space atmosphere is rendered, the display interface of the electronic equipment is associated with the real world, a more realistic and lively environment is created for a user, and the use experience of the electronic equipment by the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to display methods, devices, electronic devices, and readable storage media. Background Technology

[0002] With the continuous development of electronic technology, the functions of smart electronic devices such as smart screens, augmented reality (AR), and virtual reality (VR) are becoming more and more diversified, and users have higher and higher requirements for the interactive experience and visual effects of the display interface of smart electronic devices.

[0003] The display interface of a typical electronic device includes a background layer, or a background layer and an interactive layer above it. The interactive layer contains interface elements such as icons, controls, and text. Users can trigger actions on these elements to open corresponding application interfaces. The background layer typically consists of user-defined or system-preset images, such as landscapes, solid color images, or recommended video images. The style of the background layer plays a crucial role in the visual effect of the display interface; however, existing background images are often monotonous and lack interaction with the real-world environment, failing to provide a better user experience. Summary of the Invention

[0004] This application provides a display method, apparatus, electronic device, and readable storage medium that can improve the user experience.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a display method applied to an electronic device equipped with a display screen. The method includes: acquiring a first image based on the current time, the first image including a first light and shadow pattern, wherein the difference between the tilt angle of the first light and shadow pattern and the first solar altitude angle corresponding to the current time is less than or equal to a preset threshold; and displaying the first image on a first interface.

[0007] The first light and shadow pattern refers to a pattern with light and shadow effects formed when a light source shines on a target object and onto its surface. For example, the light and shadow can be the sun or a lamp; the target object can be a window, window grille, curtains, or other translucent object; and the target surface can include a wall and / or the floor. The first light and shadow pattern can simulate the light and shadow effects formed when sunlight shines on a target object within a room and onto a wall and / or the floor. The first solar altitude angle corresponding to the current time is the solar altitude angle calculated based on the current time and the current geographical location of the electronic device. The current time includes year, month, day, hour, minute, and second, and the geographical location information includes longitude and latitude.

[0008] Based on the display method provided in this application, an electronic device can acquire a first image with a first light and shadow pattern according to the first solar altitude angle corresponding to the current time, and display the first image on the current display interface. The first light and shadow pattern can simulate the light and shadow effect produced when sunlight shines on the display screen of the electronic device through the target object when the sun is at the first solar altitude angle in the real environment, so that the display interface of the electronic device is related to the real environment, thereby creating a more realistic and vivid spatial atmosphere for users and improving the user experience.

[0009] In one possible implementation of the first aspect, before acquiring the first image based on the current time, the electronic device may acquire current environment information, which includes the current environment color; and then determine the color of the first light and shadow pattern based on the current environment color, wherein the color of the first light and shadow pattern matches the current environment color.

[0010] For example, if an electronic device is equipped with an image acquisition device, the electronic device can acquire an image of the current environment through the image acquisition device and determine the color of the current environment from the image. If the current environment is indoors, the color of the current environment can be the color of the walls or cabinets inside the room.

[0011] In one possible implementation of the first aspect, the first image also includes a first background, the color of which matches the color of the current environment.

[0012] Based on this implementation method, a first image with a color that is consistent with or close to the current environment color can be displayed on the screen according to the current environment color of the electronic device. This allows the display interface of the electronic device to blend into the current environment, maintain a harmonious and unified atmosphere, and improve the user experience.

[0013] In one possible implementation of the first aspect, the current environment information also includes the current ambient brightness. Based on this, the electronic device can also determine the display brightness of the first image according to the current ambient brightness.

[0014] Based on this implementation, the electronic device can detect the current ambient brightness using a light sensor, or determine the current ambient brightness using an image of the current environment captured by an image acquisition device. When the current ambient brightness is low, the electronic device can display the first image at a lower display brightness; when the current ambient brightness is high, the electronic device can display the first image at a higher display brightness.

[0015] In one possible implementation of the first aspect, the current environmental information may also include weather information, and the electronic device may determine the clarity of the first light and shadow pattern based on the weather information.

[0016] Based on this implementation, weather information can be used to indicate whether the current weather is sunny or cloudy. On cloudy days, the sun's light intensity is weaker. Therefore, when the weather information indicates cloudy weather, the clarity of the first light and shadow pattern can be reduced to simulate the hazy, chromatic aberration effect produced by sunlight shining on the display screen on a cloudy day. Alternatively, on sunny days, the sun's light intensity is higher. Therefore, when the weather information indicates sunny weather, a clearer first light and shadow pattern can be displayed on the first interface to simulate the chromatic aberration effect of sunlight shining on the display screen on a sunny day.

[0017] In one possible implementation of the first aspect, the first light and shadow pattern is displayed in the left or right area of ​​the first interface.

[0018] Optionally, the electronic device can determine whether the window in the current environment is located on the left or right side of the electronic device by acquiring an image of the current environment through an image acquisition device. If the window is located on the left side of the electronic device, the first light and shadow pattern can be displayed on the left side of the first interface to simulate the light and shadow effect of sunlight shining on the display screen from the left window; if the window is located on the right side of the electronic device, the first light and shadow pattern can be displayed on the right side of the first interface to simulate the light and shadow effect of sunlight shining on the display screen from the right window, so that the display effect of the first light and shadow pattern matches the current environment.

[0019] In one possible implementation of the first aspect, the method further includes: adjusting a first image to a second image based on a first time, the second image including a second light and shadow pattern. The first time is either a time after the current time or a time before the current time, and the difference between the tilt angle of the second light and shadow pattern and the second solar altitude angle corresponding to the first time is less than or equal to a preset threshold. If the second solar altitude angle is greater than the first solar altitude angle, the tilt angle of the second light and shadow pattern is greater than the tilt angle of the first light and shadow pattern; or, if the second solar altitude angle is less than the first solar altitude angle, the tilt angle of the second light and shadow pattern is less than the tilt angle of the first light and shadow pattern.

[0020] For example, both the first and second times can fall within the same 24-hour period of the day. The solar altitude angle changes over time. Based on this, the electronic device can adjust the light and shadow pattern displayed on the first interface according to the solar altitude angle at different times. The tilt angle of the light and shadow pattern decreases as the solar altitude angle decreases, and increases as the solar altitude angle increases. In this way, the electronic device can dynamically change the display interface according to the time, thus providing users with an immersive spatial atmosphere. Users can perceive the passage of time and changes in natural light through the display interface while using the electronic device, enhancing the user experience.

[0021] In one possible implementation of the first aspect, the color of the first light and shadow pattern is different from the color of the second light and shadow pattern.

[0022] For example, sunlight in the morning and evening is warmer in color; therefore, the colors of the light and shadow patterns in the display interface can be warm colors, such as yellow or orange. Sunlight at midday is whitish; therefore, the colors of the light and shadow patterns in the display interface can be cool colors, such as blue, purple, or white. Based on this method, the different dispersion effects produced by sunlight shining into a room through a window at different times can be simulated.

[0023] In one possible implementation of the first aspect, the display brightness of the first light and shadow pattern is different from the display brightness of the second light source pattern.

[0024] For example, sunlight is weaker in the morning and evening, so the light and shadow pattern can display lower brightness. Sunlight is stronger at midday, so the light and shadow pattern can display higher brightness.

[0025] In one possible implementation of the first aspect, the difference between the display brightness of the first light and shadow pattern and the display brightness of the second light source pattern specifically includes: when the second solar altitude angle is greater than the first solar altitude angle, the display brightness of the second light and shadow pattern is greater than the display brightness of the first light and shadow pattern; or, when the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second light and shadow pattern is less than the display brightness of the first light and shadow pattern.

[0026] In one possible implementation of the first aspect, the first image further includes a first background, and the second image further includes a second background; the color of the first background is different from the color of the second background, and / or the display brightness of the first background is different from the display brightness of the second background.

[0027] In one possible implementation of the first aspect, the display brightness of the first background differs from that of the second background, specifically including: when the second solar altitude angle is greater than the first solar altitude angle, the display brightness of the second background is greater than that of the first background; or, when the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second background is less than that of the first background.

[0028] Based on the above implementation method, electronic devices can also adjust the background color and display brightness of the image according to the changes in time, thereby simulating the characteristics of sunlight at different times of day and creating a more realistic and vivid environment for users.

[0029] In one possible implementation of the first aspect, the transparency of the interface elements displayed on the first image is different from the transparency of the interface elements displayed on the second image.

[0030] For example, the interface elements displayed on the image may include, but are not limited to: view controls, text, and any one or more elements in a window. View controls may include button controls, controls for displaying text, controls for displaying video or images, controls for displaying an application interface, and / or controls with other functionalities.

[0031] In one possible implementation of the first aspect, the transparency of the interface elements displayed on the first image is different from the transparency of the interface elements displayed on the second image, including: when the second solar altitude angle is greater than the first solar altitude angle, the transparency of the interface elements displayed on the first image is greater than the transparency of the interface elements displayed on the second image; or, when the second solar altitude angle is less than the first solar altitude angle, the transparency of the interface elements displayed on the first image is less than the transparency of the interface elements displayed on the second image.

[0032] Based on this method, electronic devices can reduce the transparency of interface elements and increase the contrast of the display interface when sunlight intensity is high at midday, ensuring that interface elements are clearly visible even under strong light. Conversely, electronic devices can increase the transparency of interface elements and reduce the contrast of the display interface when sunlight intensity is low in the morning and evening, preventing interface elements from being too glaring.

[0033] In a second aspect, this application provides a display device including at least one unit for performing the method in any possible implementation of the first aspect.

[0034] Thirdly, this application provides an electronic device, including: a processor, which is configured to run a computer program stored in a memory to implement the method in any possible implementation of the first aspect.

[0035] Fourthly, this application provides a chip system comprising: a processor, the processor being configured to run a computer program stored in a memory to implement the method in any possible implementation of the first aspect.

[0036] Fifthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a computer, can implement the method in any possible implementation of the first aspect.

[0037] In a sixth aspect, this application provides a computer program product that, when run on a computer, causes the computer to perform the method in any possible implementation of the first aspect.

[0038] The technical effects of the second to sixth aspects provided in this application can be found in the technical effects of the various possible implementations of the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0040] Figure 2 This is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application.

[0041] Figure 3 This is a flowchart illustrating a display method provided in an embodiment of this application.

[0042] Figure 4 This is a schematic diagram of a standby interface provided in an embodiment of this application.

[0043] Figure 5 This is a schematic diagram of a system homepage provided in an embodiment of this application.

[0044] Figure 6 This is a schematic diagram of an application interface provided in an embodiment of this application.

[0045] Figure 7 This is a schematic diagram of a light and shadow image provided in an embodiment of this application.

[0046] Figure 8 This is a schematic diagram of another light and shadow image provided in an embodiment of this application.

[0047] Figure 9 This is a schematic diagram of another light and shadow image provided in an embodiment of this application.

[0048] Figure 10 This is a schematic diagram of another light and shadow image provided in an embodiment of this application.

[0049] Figure 11 This is a schematic diagram of another light and shadow image provided in an embodiment of this application.

[0050] Figure 12 This is a schematic diagram illustrating the change in the position of the sun, provided as an embodiment of this application.

[0051] Figure 13 This is a schematic diagram illustrating the changes in light and shadow images provided in the embodiments of this application.

[0052] Figure 14 This is a schematic diagram of a first interface provided in an embodiment of this application.

[0053] Figure 15 This is a schematic diagram of another first interface provided in an embodiment of this application.

[0054] Figure 16a This is a schematic diagram of another first interface provided in an embodiment of this application.

[0055] Figure 16b This is a schematic diagram of another first interface provided in an embodiment of this application.

[0056] Figure 16c This is a schematic diagram of another first interface provided in an embodiment of this application.

[0057] Figure 17 This is a schematic block diagram of a display device provided in an embodiment of this application. Detailed Implementation

[0058] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings and related embodiments. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0059] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0060] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0061] The steps involved in the methods provided in this application are merely examples, and not all steps are mandatory, nor are all information or message contents required. They can be added or removed as needed during use. In this application, the same step, or steps or messages with the same function, can be referenced and learned from each other in different embodiments.

[0062] Smart screens, televisions, and other electronic devices are playing an increasingly important role in people's lives. These devices not only provide users with audio-visual entertainment and television functions, but also decorate homes through smart picture frame features. When displaying the main interface and application interfaces, electronic devices typically display the user interface (UI) on top of a background layer. The user interface includes icons, controls, text, and other interface elements. The background layer is used to display background images. Electronic devices can respond to user actions on various interface elements, adjusting the background image and user interface accordingly. Smart screens can also automatically adjust the background image and user interface in standby mode. The style of the background image is crucial to the user experience. Existing background images are generally fixed in style, lacking variety and relevance to the real environment, thus failing to provide a better user experience.

[0063] To address the aforementioned technical problems, this application provides a display method in which an electronic device can acquire a first image with a first light and shadow pattern based on the first solar altitude angle corresponding to the current time. The tilt angle of the first light and shadow pattern is the same as or similar to the first solar altitude angle. Displaying the first image on a first interface can simulate the light and shadow effects produced when sunlight shines on the display screen through an object corresponding to the first light and shadow pattern in a real environment, thereby creating an immersive environment for the user and enhancing the user experience.

[0064] It should be noted that the electronic devices involved in the embodiments of this application are electronic devices equipped with a display screen, such as smart screens, televisions, augmented reality (AR), virtual reality (VR), and other intelligent electronic devices. The embodiments of this application do not specifically limit the type of electronic device.

[0065] The following first introduces the electronic device involved in the embodiments of this application. See also... Figure 1 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 131, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, a camera 150, a wireless communication module 160, a sensor module 170, buttons 180, and a display screen 190, etc. The sensor module 170 may include a pressure sensor 170A, a gyroscope sensor 170B, an accelerometer sensor 170C, a brightness sensor 170D, a touch sensor 170E, etc.

[0066] Specifically, processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0067] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In the embodiments of this application, the processor 110 in the electronic device can be used to run computer programs stored in the memory to implement the various steps or processes in the splash screen advertisement reproduction method provided in the embodiments of this application.

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

[0069] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 150, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0070] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to an audio module in an electronic device via the I2S bus to enable communication between the processor 110 and the audio module. In some embodiments, the audio module can transmit audio signals to the wireless communication module 160 via the I2S interface.

[0071] In some embodiments, the USB interface 130 is an interface compliant with the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used for data transfer between the electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0072] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

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

[0074] The power management module 141 connects 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, providing power to the processor 110, internal memory 131, external memory interface 120, display screen 190, camera 150, and wireless communication module 160. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance).

[0075] In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be located in the same device.

[0076] The wireless communication function of electronic device 100 can be implemented through antenna 1, wireless communication module 160, modem processor and baseband processor, etc.

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

[0078] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos through the display screen 190. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and housed within the same device as other functional modules.

[0079] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 1, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 1.

[0080] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the wireless communication module 160, enabling the electronic device 100 to communicate with networks and other devices via wireless communication technologies. 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 technologies. GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite-Based Augmentation Systems (SBAS).

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

[0082] The display screen 190 is used to display images, videos, etc., for example, it can be used to display the first image, the second image, interface elements, etc., in the embodiments of this application. The display screen 190 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 minimized LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 190, where N is a positive integer greater than 1.

[0083] Electronic device 100 can achieve shooting function through ISP, camera 150, video codec, GPU, display 190 and application processor.

[0084] The ISP (Image Signal Processor) is used to process data fed back from the camera 150. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 150.

[0085] Camera 150 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The focal length of the lens can be used to represent the field of view of the camera; the smaller the focal length, the larger the field of view. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts light signals into electrical signals, which are then transmitted to an ISP for conversion into digital image signals. The ISP outputs the digital image signals to a DSP for processing. The DSP converts the digital image signals into image signals in standard RGB, YUV, or other formats. In this application, electronic device 100 may include at least one camera 150.

[0086] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0087] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG1, MPEG3, MPEG4, etc.

[0088] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0089] In this embodiment of the application, the NPU or other processor can be used to perform operations such as analysis and processing of images in the video stored in the electronic device 100.

[0090] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0091] Internal memory 131 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 131. Internal memory 131 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as video playback, image playback, etc.). The data storage area may store data created during the use of electronic device 100, such as audio data.

[0092] In addition, the internal memory 131 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0093] Pressure sensor 170A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 170A can be disposed on display screen 190. There are many types of pressure sensors 170A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 170A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 190, electronic device 100 detects the touch operation intensity based on pressure sensor 170A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 170A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands.

[0094] The gyroscope sensor 170B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 170B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 170B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 170B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 170B can also be used in motion-sensing game scenarios.

[0095] The accelerometer 170C can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected.

[0096] A brightness sensor 170D is used to detect temperature. In some embodiments, the electronic device 100 uses the brightness sensor 170D to detect the current ambient brightness in order to adjust the display brightness of the screen.

[0097] Touch sensor 170E, also known as a "touch panel," can be located on display screen 190. Touch sensor 170E and display screen 190 together form a touchscreen, also known as a "touch screen." Touch sensor 170E detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to processor 110 to determine the type of touch event. Touch sensor 170K can also provide visual output related to the touch operation through display screen 190.

[0098] Buttons 180 include a power button, volume buttons, etc. Buttons 180 can be mechanical buttons or touch buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0099] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0100] See Figure 2 This is a schematic diagram of the software structure of an electronic device according to an embodiment of this application. The operating system in the electronic device can be Android, Microsoft Windows, Apple iOS, or HarmonyOS, etc. Here, HarmonyOS is used as an example for illustration.

[0101] In some embodiments, the HarmonyOS system can be divided into four layers, including the kernel layer, system service layer, framework layer, and application layer, with the layers communicating with each other through software interfaces.

[0102] like Figure 2 As shown, the kernel layer includes the Kernel Abstraction Layer (KAL) and the driver subsystem. The KAL contains multiple kernels, such as the Linux Kernel for the Linux system and the LiteOS kernel for lightweight IoT systems. The driver subsystem can include a Hardware Driver Foundation (HDF). The HDF provides unified peripheral access capabilities and a framework for driver development and management. A multi-kernel kernel layer can select the appropriate kernel for processing based on system requirements.

[0103] The system service layer is the core capability set of the HarmonyOS system. It provides services to applications through the framework layer. This layer may include a set of basic system capability subsystems, a set of basic software service subsystems, a set of enhanced software service subsystems, and a set of hardware service subsystems.

[0104] The system's basic capability subsystems provide foundational capabilities for the operation, scheduling, and migration of distributed applications on HarmonyOS devices. These may include subsystems such as distributed soft bus, distributed data management, distributed task scheduling, Ark multi-language runtime, common base libraries, multi-modal input, graphics, security, artificial intelligence (AI), and user program frameworks. Among these, the Ark multi-language runtime provides runtime environments for C, C++, or JavaScript (JS) languages ​​and basic system class libraries. It can also provide a runtime environment for Java programs statically generated using the Ark compiler (i.e., the parts of the application or framework layer developed using the Java language).

[0105] The basic software service subsystem provides common and general software services for the HarmonyOS system. This may include subsystems such as event notification, multimedia, design for X (DFX), and MSDP & DV.

[0106] The enhanced software service subsystem provides HarmonyOS with differentiated enhanced software services for different devices. It may include dedicated services for smart screens, wearables, and the Internet of Things (IoT).

[0107] The hardware service subsystem provides hardware services for the HarmonyOS system. This may include subsystems such as location services, biometric recognition, wearable hardware services, and IoT hardware services.

[0108] The framework layer provides HarmonyOS application development with user program frameworks and capability frameworks in multiple languages, including Java, C, C++, and JS; two user interface (UI) frameworks (JavaUI framework for Java and JS UI framework for JS); and various multi-language framework application programming interfaces (APIs) for exposing software and hardware services. The APIs supported by HarmonyOS devices will vary depending on the degree of system componentization.

[0109] The application layer includes system applications and third-party applications (or extended applications). System applications can include applications that are installed by default on electronic devices, such as the desktop, control bar, and settings. Extended applications can be non-essential applications developed and designed by the electronic device manufacturer, such as electronic device managers, device migration tools, note-taking apps, and weather apps. Third-party non-system applications can be applications developed by other manufacturers that can run on the HarmonyOS system, such as games, navigation, social networking, or shopping apps.

[0110] It provides the ability to run background tasks and a unified data access abstraction. PA mainly supports FA, for example, by providing computing power as a background service or providing data access capabilities as a data warehouse. Applications developed based on FA or PA can implement specific business functions, support cross-device scheduling and distribution, and provide users with a consistent and efficient application experience.

[0111] Multiple electronic devices running the HarmonyOS system can achieve hardware cooperation and resource sharing through distributed soft bus, distributed device virtualization, distributed data management, and distributed task scheduling.

[0112] The following description uses a smart screen as an example of an electronic device, and combines the accompanying drawings and specific application scenarios to illustrate the display method provided in the embodiments of this application.

[0113] Figure 3 This is a flowchart illustrating a display method provided in an embodiment of this application. In one possible implementation, the method includes the following steps S310 to S320, which are described in detail below.

[0114] S310, Obtain a first image based on the current time. The first image includes a first light and shadow pattern. The difference between the tilt angle of the first light and shadow pattern and the first solar altitude angle corresponding to the current time is less than or equal to a preset threshold.

[0115] In this embodiment of the application, the electronic device can acquire the first image based on the current time in a variety of different scenarios.

[0116] In one embodiment, the scenario where the electronic device acquires the first image based on the current time can be a scenario where the electronic device is in standby mode. Based on this, the current time described in this application embodiment can be the time corresponding to when the electronic device switches from a powered-on state to a standby state, or any time during the process of the electronic device being in standby mode. The current time includes time information such as year, month, day, hour, minute, and second.

[0117] For example, if the electronic device does not detect any user operation within a preset time period while powered on, such as touch operation of buttons on the electronic device, touch operation of buttons on the remote control corresponding to the electronic device, or touch operation of the display screen of the electronic device, the electronic device can generate a standby command and switch to standby mode according to the standby command. Therefore, the time corresponding to the electronic device switching from powered on to standby mode can be the system time at which the standby command is generated. Alternatively, while powered on, the electronic device can switch from powered on to standby mode in response to a user-triggered operation to enable standby mode. Therefore, the time corresponding to the electronic device switching from powered on to standby mode can be the system time at which the user-triggered operation to enable standby mode occurred. The user's operation to enable the smart frame mode can be: the user triggering the "standby mode" control displayed on the electronic device, or the user triggering the "standby" button on the remote control corresponding to the electronic device.

[0118] It should be noted that in standby mode, the standby screen of an electronic device can display only one image or display multiple images cyclically at preset time intervals. For example, see... Figure 4 The diagram illustrates the interface of an electronic device in standby mode. In standby mode, the device automatically enters a smart picture frame mode. In this mode, the device can display images used for home decoration, such as landscape paintings, solid-color or gradient-colored pictures, art paintings, or other types of pictures, on its display screen. Based on this, in standby mode, the device can display a first image on the standby screen as a decorative picture; or it can use the acquired first image as a background for a picture displayed on top of it. Both the first image and the picture can serve a decorative purpose.

[0119] In other embodiments, the scenario where the electronic device acquires the first image based on the current time can be a scenario where the electronic device's display interface is the system homepage. Based on this, the current time described in this application embodiment can be: the system time corresponding to when the user triggers the operation of the electronic device to display the system homepage, or any system time during the process of the electronic device continuously displaying the system homepage.

[0120] For example, after a user switches an electronic device to the powered-on state, the device's display typically shows the system homepage first. Therefore, the user-triggered operation to display the system homepage could be either switching the device from a screen-off state to a powered-on state, or switching the device from a powered-off state to a powered-on state. Optionally, the user-triggered operation to display the system homepage could also be a touch operation by the user on the system "homepage" control displayed on the screen.

[0121] For example, Figure 5 This is a schematic diagram of the system homepage of an electronic device provided in an embodiment of this application. The content displayed on the system homepage includes, but is not limited to: weather information, time information, network connection information, multiple controls, multiple windows, and application icons. The windows can display images, videos, etc., and the multiple controls include, but are not limited to: a "Homepage" control, a "Settings" control, a "Recommended" control, a "Plan" control, and a "Fitness Zone" control. Based on this, the electronic device can use the acquired first image as the background of the system homepage.

[0122] In other embodiments, the scenario where the electronic device acquires the first image based on the current time can be a scenario where the electronic device's display interface is the application interface of a first application. The first application can be any application software installed on the electronic device, such as a game, fitness app, or video app. Based on this, the current time described in this application embodiment can be: the system time when the electronic device detects the user opening the first application, or any system time during the process of the electronic device continuously displaying the application interface of the first application.

[0123] For example, Figure 6 This is a schematic diagram of an application interface provided in an embodiment of this application. If a user triggers the "Schedule" control on the system home page of an electronic device via a remote control, the application interface of the scheduling application software can be displayed on the screen, such as... Figure 6 As shown, the application interface can display information related to the user's pre-set posture training plan, including but not limited to: the number of courses "12 lessons", the total training time "240 minutes", the percentage of completed lessons "30% complete", the training date "May 1st", multiple training courses, and the duration of each training course. The electronic device can respond to the user opening the plan application by acquiring a first image and displaying the application interface on the first image, using the first image as the background of the application interface.

[0124] Optionally, based on the scenario of obtaining the first image according to the current time described in any of the above embodiments, the current time can also be a third time selected by the user.

[0125] It should be noted that the third time selected by the user is different from the system time of the electronic device. The system time is the current real-world time. For example, the electronic device can obtain its system time from a network server based on the Network Time Protocol (NTP), or it can obtain its system time through a clock chip installed in the device. The third time selected by the user does not necessarily have to be the current real-world time. The first light and shadow pattern in the first image simulates the light spot pattern formed by sunlight shining on the target object at the current time. The tilt, color, and other characteristics of the first light and shadow pattern will differ depending on the current time. Therefore, the user can open the time selection interface and choose a third time from the multiple times displayed, based on the desired effect of the light spot pattern. The third time can be any time before or after the current real time. For example, if the current system time is 22:00 on May 1st, the user could select 8:00 on May 1st as the third time. Based on this, in scenarios where the electronic device is in standby mode, or where the electronic device's display interface is the system homepage, or where the electronic device's display interface is the application interface of the first application, the electronic device can respond to the current time selected by the user (i.e., the third time) and obtain the first image based on the current time.

[0126] In this embodiment, before acquiring the first image, the electronic device can acquire not only the current time but also its current geographical location information, including longitude and latitude. Based on the current time and geographical location information, the first solar altitude angle corresponding to the current time can be calculated, and then the first image can be acquired based on the first solar altitude angle corresponding to the current time.

[0127] For example, the formula for calculating the solar altitude angle is: sinh=sinφsinδ+cosφcosδcos, where h represents the solar altitude angle, such as... Figure 12 As shown, the solar altitude angle h is the angle between the incident ray of the sun and the ground plane; φ represents the latitude value in the address location information; δ represents the solar declination, which can be determined based on the year, month, and day information in the current time; t represents the hour angle, which can be determined based on the standard time, time difference, and the difference between the longitude value in the geographical location information and the longitude of the standard time zone in the area where the electronic device is located.

[0128] In one embodiment, the electronic device can pre-store multiple light and shadow images. Based on this, the electronic device can retrieve a first light and shadow image corresponding to the current time from the multiple light and shadow images. Each light and shadow image stored in the electronic device includes a background and a light and shadow pattern, wherein the light and shadow pattern refers to a light spot pattern with light and shadow effects formed by sunlight shining on the target surface.

[0129] For example, the target object can be a window, window frame, window guardrail, curtain, window lattice, or other light-transmitting object, and the target surface can include a wall and / or the ground. Different light and shadow patterns can simulate the different light and shadow effects formed when sunlight shines on different target objects onto the wall and / or the ground.

[0130] In one example, a light and shadow pattern can be a pattern composed of one or more light spot patterns. When the light and shadow pattern includes multiple light spot patterns, these patterns can be arranged according to certain rules. The shape of the light spot pattern can be rectangular, circular, elliptical, triangular, rhomboid, polygonal, or any other possible shape. The color of the background in the same light and shadow image can be the same as or different from the color of the light and shadow pattern, and the brightness of the light and shadow pattern is higher than the brightness of the background.

[0131] For example, such as Figure 7 and Figure 8 As shown, the light and shadow pattern can be located in the left area of ​​the light and shadow image, and the light and shadow pattern can include a light spot pattern, the shape of which can be a quadrilateral. Figure 7 and Figure 8 The light and shadow patterns shown can simulate the light spots formed when different beams of light shine through a window onto a wall. Among them, Figure 7 The light and shadow lines in the light and shadow pattern shown are inclined from the upper left to the lower right, and the light source pattern is a light spot pattern generated by a parallel beam of light. Figure 8 The light and shadow lines in the light and shadow pattern shown are inclined from the upper left to the lower right, and the light source pattern is a light spot pattern generated by a diverging beam, meaning that any two light and shadow lines in the light source pattern are not parallel. Figure 7 The tilt angle of the light and shadow pattern in the image is greater than... Figure 8 The angle of inclination of the light and shadow patterns in the image.

[0132] In this embodiment, the tilt angle of the light and shadow pattern can be the angle between the axis of the light and shadow pattern and the horizontal line or horizontal plane. The axis of the light and shadow pattern can be the optical axis of the light beam used to generate the light and shadow pattern.

[0133] For example, such as Figure 9As shown, the light and shadow pattern in this image includes two light spot patterns, designated as a first pattern and a second pattern. The second pattern is located below the first pattern. Both the first and second patterns are quadrilaterals, but their shapes differ. The first background area can simulate an indoor wall, and the second background area can simulate an indoor floor. Generally, indoor walls and floors are perpendicular to each other. The first pattern can simulate the light spot formed by scattered light shining through a window onto an indoor wall, and the second pattern can be the reflected light spot corresponding to the first pattern. Figure 9 The tilt angle of the light and shadow pattern shown can be the tilt angle of the first pattern located on the upper side relative to the horizontal plane.

[0134] For example, see Figure 10 The light and shadow image shown depicts a pattern composed of multiple light spot patterns, each of which is quadrilateral in shape. This pattern simulates the regularly arranged light spots formed on a wall after sunlight passes through gaps in a window grille. See also... Figure 11 The light and shadow image shown is composed of multiple light spot patterns arranged in a quadrilateral shape. This light and shadow pattern can simulate the regular arrangement of light spots formed on the wall after sunlight passes through the gaps in the blinds.

[0135] It should be noted that the solar altitude angle described in this embodiment refers to the angle between the incident sunlight and the ground plane. The first solar altitude angle corresponding to the current time refers to the angle between the incident sunlight and the ground plane at the current time and current geographical location.

[0136] For example, see... Figure 12 The diagrams (a) to (c) illustrate the changing position of the sun. From morning to evening each day, assuming the geographical location of the electronic device remains constant, the solar altitude angle h changes over time as follows: the solar altitude angle first gradually increases and then gradually decreases. Specifically, the solar altitude angle is close to 0 degrees at sunrise and sunset, and is at its maximum at noon. Based on this, the elevation angles of the rays in the light and shadow pattern formed on the target surface change with the sun's movement, and during the period from sunrise to sunset, the elevation angles of the rays first increase and then decrease. Furthermore, as the sun moves, the tilt angle and shape of the light and shadow pattern formed on the target surface gradually change, and the position of the light and shadow pattern also gradually shifts.

[0137] Based on the above principle, in one possible implementation, the electronic device can pre-store one or more light and shadow image sequences, each light and shadow image sequence including multiple light and shadow images. Based on this, after obtaining the current time, the electronic device can obtain the first image from at least one pre-stored light and shadow image sequence according to the first solar altitude angle corresponding to the current time.

[0138] Within the same sequence of light and shadow images, the light spot patterns are: multiple light spot patterns of different shapes and positions formed by sunlight shining on the same target object as it changes over time. Conversely, the light spot patterns in different sequences of light and shadow images are: different light spot patterns formed by sunlight shining on different target objects as it shines on the target object. In other words, multiple light spot patterns within the same sequence of light and shadow images can indicate the same target object, while light spot patterns in different sequences indicate different target objects.

[0139] Optionally, since the sun's displacement is relatively small over a short period, the corresponding changes in the tilt angle and shape of the light and shadow pattern are also small. Therefore, for any sequence of multiple light and shadow images, each image can be assigned a displayable time range. Furthermore, the same time range can correspond to one or more different light and shadow images. The display positions of the light and shadow patterns in the multiple images can differ, the colors of the light and shadow patterns can differ, and / or the background colors can differ. Specifically, the light and shadow pattern can be located near the left border of the image to simulate a beam of light shining on the image from the left; or the light and shadow pattern can be located near the right border of the image to simulate a beam of light shining on the image from the right.

[0140] Optionally, the duration of the time range corresponding to each light and shadow image in the same light and shadow image sequence can be the same. For example, the duration of the time range corresponding to each light and shadow image can be 30 minutes, 1 hour, 2 hours, or any other duration. Alternatively, the duration of the time range corresponding to each light and shadow image in the same light and shadow image sequence can be different.

[0141] For example, if the duration of the time range corresponding to each light and shadow image is 1 hour, then a sequence of light and shadow images can include at least 24 light and shadow images. The first light and shadow image corresponds to the time range between 0:00 and 1:00, the second light and shadow image corresponds to the time range between 1:00 and 2:00, the third light and shadow image corresponds to the time range between 2:00 and 3:00, and so on, with the 24th light and shadow image corresponding to the time range between 23:00 and 24:00.

[0142] It should be noted that the condition for a light and shadow image corresponding to a certain time range is that the difference between the solar altitude angle at any time within that time range and the tilt angle of the light and shadow pattern in the image is less than or equal to a preset threshold. The tilt angle of the light and shadow pattern can be the angle between the optical axis of the light beam forming the pattern (hereinafter referred to as the optical axis of the light and shadow pattern) and the horizontal plane.

[0143] In this embodiment of the application, as time changes, the position of the sun, the direction of sunlight, and the angle of inclination relative to the ground plane will also change. Correspondingly, the position, shape, and angle of the light and shadow patterns in the pre-stored light and shadow images corresponding to different time ranges will also change.

[0144] This is an example, not a limitation. Figure 13 This is a schematic diagram illustrating the changes in light and shadow images in a light and shadow image sequence provided in an embodiment of this application, wherein it is assumed that... Figure 13 The light and shadow image shown in (a) corresponds to a displayable time range between 9:00 and 10:00. The light and shadow pattern in this image is a spot pattern formed by light and shadow line 1, light and shadow line 2, the left border of the image, and the bottom border of the image. It can simulate the spot pattern formed when a diverging beam of light shines on the background from the left. The angle H3 between the optical axis 1 of this light and shadow pattern and the horizontal plane can be regarded as the tilt angle of the light and shadow pattern. Figure 13 As shown in (a), the tilt direction of the light and shadow pattern is from the upper left to the lower right. Light and shadow line 1 and light and shadow line 2 are the two boundary lines of the light and shadow pattern in the tilt direction. Based on this, the tilt angle H3 of the light and shadow pattern (i.e. the elevation angle of the optical axis 1) can be equal to the average value of the elevation angle H1 of light and shadow line 1 and the elevation angle H2 of light and shadow line 2. The elevation angle range of the light beam indicated by the light and shadow pattern is the numerical range between H1 and H2. Figure 13 The light and shadow image shown in (b) corresponds to a displayable time range between 12:00 and 1:00. The light and shadow pattern in this image is a light spot pattern formed by light and shadow lines 3 and 4, the left border of the image, and the bottom border of the image, as shown below. Figure 13 As shown in (b), light and shadow lines 3 and 4 are the two boundary lines of the light and shadow pattern in the tilt direction. Based on this, the tilt angle H6 of the light and shadow pattern (i.e., the elevation angle of the optical axis 2) can be the average of the elevation angles H4 and H5 of light and shadow lines 3 and 4. The elevation angle range of the beam indicated by the light and shadow pattern is the numerical range between H4 and H5. The solar altitude angle in the time range between 12:00 and 1:00 is greater than the solar altitude angle in the time range between 9:00 and 10:00. Correspondingly, with Figure 13 Compared to the light and shadow pattern shown in (a), Figure 13The light and shadow pattern shown in (b) is more inclined relative to the horizontal plane. The elevation angle of each light and shadow line is the angle between the light and shadow line and the horizontal plane, and the elevation angle of each light and shadow line is in the range of 0 to 90 degrees.

[0145] Assuming, Figure 13 The light and shadow image shown in (c) corresponds to a displayable time range between 5 PM and 6 PM. The light and shadow pattern in this image is a light spot pattern formed by light and shadow lines 3 and 4, the left border of the image, and the bottom border of the image, as shown below. Figure 13 As shown in (c), light and shadow lines 5 and 6 are the two boundary lines of the light and shadow pattern in the tilt direction. Based on this, the tilt angle H9 of the light and shadow pattern (i.e., the elevation angle of the optical axis 3) can be the average of the elevation angles H7 and H8 of light and shadow lines 5 and 6. The elevation angle range of the beam indicated by the light and shadow pattern is the numerical range between H7 and H8. The solar altitude angle corresponding to the time range between 17:00 and 18:00 is not only smaller than the solar altitude angle corresponding to the time range between 12:00 and 1:00, but also smaller than the solar altitude angle corresponding to the time range between 9:00 and 10:00. Correspondingly, with Figure 13 Compared to the light and shadow pattern shown in (c) in the middle, Figure 13 The light and shadow pattern shown in (a) is more tilted relative to the horizontal plane.

[0146] Optionally, the intensity of sunlight changes over time, and the dispersion effect of sunlight passing through the window glass also changes over time. Correspondingly, the color of the light beam also changes with the intensity and dispersion effect of the sunlight. Therefore, the colors of multiple light and shadow patterns in multiple pre-stored light and shadow images in the electronic device can be different. The color of each light and shadow pattern can be a solid color or a gradient color.

[0147] For example, sunlight is weaker in the morning and evening, and its color is generally warm. Therefore, the colors of the light and shadow patterns in pre-stored light and shadow images corresponding to any time range between sunrise and 11:00 AM can include yellow, orange, or any one or more other warm colors. Similarly, the colors of the light and shadow patterns in pre-stored light and shadow images corresponding to any time range between 4:00 PM and sunset can include yellow, orange, or any one or more other warm colors. Near noon, sunlight is stronger, and its color is generally cool. Therefore, the colors of the light and shadow patterns in pre-stored light and shadow images corresponding to any time range between 11:00 AM and 4:00 PM can include white, blue, purple, or any one or more other cool colors.

[0148] Optionally, the background color in the light and shadow images corresponding to different time ranges within the same light and shadow image sequence can be the same. For example, the background color in the light and shadow images can all be yellow, orange, white, or any other pure color, or it can be a gradient color. Alternatively, the background color in the light and shadow images corresponding to different time ranges can be different. For example, the background color and the color of the light and shadow pattern in the same light and shadow image are the same and similar to the color of sunlight at the current time. For instance, the light and shadow pattern and background colors in the pre-stored light and shadow images corresponding to any time range between sunrise and 11:00 are yellow, orange, or any other warm light color; the light and shadow pattern and background colors in the pre-stored light and shadow images corresponding to any time range between 16:00 and sunset are yellow, orange, purple, or any other warm light color; the light and shadow pattern and background colors in the pre-stored light and shadow images corresponding to any time range between 11:00 and 16:00 are white, blue, purple, or any other cool light color; and the light and shadow pattern and background colors in the pre-stored light and shadow images corresponding to any time range between 0:00 and sunrise, and between sunset and 24:00 are purple, gray, or any other cool light color.

[0149] In some embodiments, the method for an electronic device to obtain a first image from at least one pre-stored sequence of light and shadow images based on the current time may include: the electronic device determining a first solar altitude angle corresponding to the current time based on the obtained current time and its current geographical location information, and then determining the first image from the first sequence of light and shadow images based on the current time and the first solar altitude angle. The first sequence of light and shadow images is any one of at least one sequence of light and shadow images, the current time is within the displayable time range corresponding to the first image in the first sequence of light and shadow images, and the difference between the first solar altitude angle corresponding to the current time and the elevation angle of the axis of the first light and shadow pattern in the first image is less than or equal to a preset threshold.

[0150] Optionally, the preset threshold can be the difference between the tilt angle of the first light and shadow pattern and the minimum elevation angle of the light and shadow lines in the first light and shadow pattern, or the difference between the maximum elevation angle of the light and shadow lines in the first light and shadow pattern and the tilt angle of the first light and shadow pattern. Based on this, it can be considered that the first solar altitude angle corresponding to the current time is within the elevation angle range of the beam indicated by the first light and shadow pattern.

[0151] For example, see Figure 13 The multiple light and shadow images shown assume that the electronic device obtains the current time as 9:30 AM on May 1, 2025, and the first solar altitude angle determined based on the current time and current geographical location information is 60 degrees, with a preset threshold of 15. Figure 13The displayable time range corresponding to the light and shadow image shown in (a) is between 9:00 and 10:00, and the tilt angle of the light and shadow pattern in the image is 60 degrees. Based on this, the electronic device can determine that the displayable time range corresponding to the light and shadow image includes the hour and minute information of the current time, and that the first solar altitude angle is equal to the tilt angle of the light and shadow pattern in the image. Therefore, the electronic device can determine... Figure 13 The light and shadow image shown in (a) is the first image that matches the current time.

[0152] In other embodiments, before acquiring the first image, the electronic device can acquire not only the current time and its current geographical location, but also the current environmental information of the environment in which the electronic device is located. Then, based on the first solar altitude angle corresponding to the current time and the current environmental information, the first image is acquired.

[0153] The first image not only matches the first solar altitude angle corresponding to the current time, but also matches the current environmental information. Specifically, the conditions that the first image meets include: the current time is within the displayable time range corresponding to the first image, the difference between the first solar altitude angle corresponding to the current time and the tilt angle of the first light and shadow pattern in the first image is less than or equal to a preset threshold, and the feature information such as the color, clarity, display brightness, and / or position of the first light and shadow pattern of the first image matches the current environmental information.

[0154] In one example, the current environment information may include, but is not limited to, at least one of the following: current environment color, current environment brightness, weather information, and the position of light-transmitting objects such as windows, curtains, and window guards in the current environment relative to the electronic device.

[0155] Optionally, the electronic device can acquire an environmental image of the current environment using an image acquisition device, and then determine the current environmental color based on the environmental image. The environmental image may include walls, cabinets, or other decorative items in the current environment; correspondingly, the current environmental color may be the color of the walls, cabinets, or other decorative items in the current environment. When the current environmental information includes the current environmental color, the electronic device can determine a first image whose color matches the current environmental color from a pre-stored sequence of light and shadow images. Based on this, the matching of the first image with the current environmental information described in this embodiment may include: the color of the first image matching the color of the current environment.

[0156] The matching of the color of the first image with the current environment color includes: the color of the first light and shadow pattern in the first image matching the current environment color, and / or the color of the first background in the first image matching the current environment color. Specifically, matching the color of the first light and shadow pattern with the current environment color means that the color of the first light and shadow pattern is the same as or similar to the current environment color. Matching the color of the first background with the current environment color means that the color of the first background is the same as or similar to the current environment color. The first background in the first image refers to all areas in the first image other than the area containing the first light and shadow pattern.

[0157] For example, if an electronic device detects that the wall in the current environment is white through an environmental image, it can determine that the current environment color is white. Based on this, the color of the first light and shadow pattern in the first image acquired by the electronic device can be white, and the color of the first background can be blue. If the current environment color is purple, then the colors of the first light and shadow pattern and the first background in the first image acquired by the electronic device can both be purple.

[0158] For example, the image acquisition device may be a camera installed in an electronic device, or a camera external to an electronic device that can communicate with the electronic device.

[0159] Optionally, the electronic device can determine the current ambient brightness based on a captured image of the current environment; alternatively, the electronic device can collect the current ambient brightness using a brightness sensor. Based on this, the electronic device can determine the display brightness of the first image. For example, if the current ambient brightness is low, the display brightness of the first image will be low; if the current ambient brightness is low, the display brightness of the first image will be low.

[0160] Optionally, the electronic device can determine whether there are light-transmitting target objects such as windows, curtains, and window railings in the current environment by acquiring an environmental image of the current environment. If there are target objects in the current environment, the device can further detect the style of the target object and its position relative to the electronic device, so as to obtain a first image based on the style of the target object and its position relative to the electronic device. Based on this, the matching of the first image with the current environment information described in this embodiment may further include: the position of the first light and shadow pattern in the first image is the same as the position of the target object relative to the electronic device, and the style of the first light and shadow pattern in the first image matches the style of the target object in the current environment.

[0161] The phrase "the position of the first light and shadow pattern in the first image is the same as the position of the target object relative to the electronic device" means that: if the target object in the current environment is located to the left of the electronic device, then the first light and shadow pattern is also located in the left area of ​​the first image; if the target object in the current environment is located to the right of the electronic device, then the first light and shadow pattern is also located in the right area of ​​the first image.

[0162] Matching the style of the first light and shadow pattern with the style of the target object in the current environment means that the style of the first light and shadow pattern is the same as or similar to the style of the light spot pattern formed by sunlight shining on the target surface through the target object in the current environment. For example, if the environment image detects that the current environment includes blinds, and the blinds are located on the right side of the electronic device, then the first image acquired by the electronic device can be [image of blinds]. Figure 11 The light and shadow image shown in the first image includes a first light and shadow pattern comprising multiple arranged quadrilateral light spot patterns. This first light and shadow pattern is located in the area near the right frame of the first image, and its style resembles the pattern of multiple arranged thin light bands formed by sunlight shining from the right side onto a wall. For example, if an electronic device detects from an environmental image that a window in the current environment is located to the left of the device, and that the window has decorative patterns (such as flowers or birds) on it, the electronic device can generate a first image based on these patterns. The first light and shadow pattern in this first image is located to the left of the image, and this first light and shadow pattern can be a silhouette of the patterns in the decorative patterns.

[0163] Optionally, the electronic device can obtain current weather information through weather application software; or, if the electronic device collects environmental images of the current environment, including outdoor environments, it can detect current weather information from these images. The weather information can be rainy, cloudy, or sunny. Based on this, the electronic device can acquire a first image, where the clarity of the first light and shadow pattern and / or background in the first image is related to the weather information. For example, if the current weather is cloudy or rainy, the clarity of the first light and shadow pattern in the acquired first image can be lower than the clarity of the background, thus creating a hazy lighting atmosphere; if the current weather is sunny, both the first light and shadow pattern and the background in the acquired first image will have high clarity.

[0164] In this embodiment of the application, the electronic device can acquire the first image by means of either method one or method two, based on the first solar altitude angle corresponding to the current time and the current environmental information.

[0165] Method 1: The electronic device can obtain a first image from at least one pre-stored sequence of light and shadow images based on the first solar altitude angle corresponding to the current time and the current environmental information. For example, the electronic device obtains the current time, its current geographical location, and the current environmental information; determines the first solar altitude angle corresponding to the current time based on the current time and geographical location information; and determines the first image from the first sequence of light and shadow images based on the current time, the first solar altitude angle, and the current environmental information including the current environmental color, current environmental brightness, weather information, the position of the target object relative to the electronic device, and / or the style of the target object.

[0166] The first light and shadow image sequence is one of at least one light and shadow image sequences, and the first light and shadow image sequence includes multiple light and shadow images, with the first image being one of these multiple light and shadow images. Given that the current environmental information includes the current environmental color, current environmental brightness, weather information, the position of the target object relative to the electronic device, and the style of the target object, the first image matches the first solar altitude angle. Matching the current environmental information includes: the current time being within the displayable time range corresponding to the first image; the difference between the first solar altitude angle and the elevation angle of the axis of the first light and shadow pattern in the first image being less than or equal to a preset threshold; the color of the first image matching the current environmental color; the clarity of the first image matching the weather information; the position of the first light and shadow pattern in the first image being the same as the position of the target object relative to the electronic device; and the style of the first light and shadow pattern matching the style of the target object.

[0167] Method Two: The electronic device can automatically generate a first image based on the first solar altitude angle corresponding to the current time and the current environmental information. For example, the electronic device can use 3D simulation technology to simulate the light spot pattern formed by sunlight shining on a target object in the current environment onto a wall and / or the ground, based on the current environmental information and the first solar altitude angle. This light spot pattern is used as the first light and shadow pattern, and the brightness and color of the background are determined according to the current environmental information. The first image is then generated based on the background and the first light and shadow pattern.

[0168] S320 displays the first image on the first screen.

[0169] For example, the first interface can be: the system homepage of an electronic device, the smart picture frame interface, the application interface of a certain application software, or any other display interface. It should be noted that the first light and shadow pattern in the first image is a light spot pattern, therefore the display brightness of the first light and shadow pattern is higher than the display brightness of the first background in the first image.

[0170] In one embodiment, when the display interface of the electronic device is the system homepage, after the electronic device obtains the first image, it can display the first interface on the screen. The first interface includes not only the first image, but also interface elements related to the system homepage.

[0171] For example, the interface elements in this application embodiment may include, but are not limited to, view controls, text, and any one or more elements in a window. View controls may include button controls, controls for displaying text, controls for displaying videos or images, controls for displaying an application interface, and / or controls with other functions. Windows may be used to display elements such as images, videos, text, and links.

[0172] See, as an example rather than a limitation. Figure 14 The diagram illustrates a first interface. Opening the system homepage can be the user's action of opening an electronic device. After the electronic device receives the first image, it can display the first interface based on the interface elements required to be displayed on the system homepage and the first image. For example... Figure 14 As shown, the interface elements on the system homepage include: weather information "Sunny, 30℃", settings controls, current time information "10:00", "Homepage" controls, "Recommended" controls, "Plan" controls, "Fitness Zone" controls, and multiple windows, which can display application icons or images. The first image can serve as the background of the first interface, and interface elements can be displayed on top of the first image. Figure 14 The first interface shown can simulate the light and shadow effects produced when sunlight shines from the left window onto the system home screen, thereby enhancing the user experience.

[0173] In other embodiments, after the electronic device acquires the first image in smart frame mode, it can display the first image on a first interface. In one example, the first interface may only include the first image, serving as a decorative frame. In another example, the first interface may include not only the first image but also interface elements displayed on the first image, for example, see [link to example]. Figure 15 The diagram shows a first interface, which includes a first image and a first picture. The first picture is an interface element displayed on top of the first image. The first image can serve as the background of the first interface, and the first picture can be a landscape painting, a photograph, etc. Figure 15 The first interface shown can simulate the light and shadow effect produced when sunlight shines through the window guardrail on the right side of the display screen onto the standby interface.

[0174] In other embodiments, where the electronic device's display interface is the application interface of a first application, after acquiring the first image, the electronic device can display the first interface on the screen. This first interface is the application interface of the first application, and includes the first image and interface elements corresponding to the application interface of the first application. The interface elements can be displayed on top of the first image.

[0175] For example, see Figure 16a The diagram shows a first interface. After the user clicks the "Plan" control on the system homepage, the electronic device can open the planning application software and display the application interface of the planning application software on the screen. The interface elements displayed in the application interface include: text information, icons and controls related to the user's pre-set posture training plan, such as the total training hours, total duration, completed progress, "View Plan Details" control, training date, "Morning Exercise" course icon, and "Lower Limb Training" course icon, etc. Figure 16a The first interface shown can simulate the direct and reflected light spots formed when sunlight shines through the window on the left onto the application interface.

[0176] Based on the display methods provided in the above embodiments, before displaying the first interface, the electronic device can first acquire a first image that matches the current corresponding first solar altitude angle, or acquire a first image that matches both the first solar altitude angle and the current environmental information. Then, the first image is displayed as the interface background of the first interface. The first light and shadow pattern in the first image can simulate the light and shadow pattern produced when sunlight shines on the display interface of the electronic device through a target object in the real environment, thereby creating a more realistic and vivid visual effect for the user and improving the user experience.

[0177] Furthermore, in another possible implementation, the sun's altitude angle changes over time, and the color, brightness, and the angle and shape of the sunlight's spot pattern formed on the target surface also change accordingly. Therefore, the electronic device can adjust the first image displayed on the first interface, or adjust the display effect of the first image and interface elements displayed on the first interface, based on the changes over time. Based on this, after step S320, the display method provided in this application embodiment may further include step S330. Step S330 will be described in detail below.

[0178] S330, based on the first time, adjust the first image to the second image, the second image includes a second light and shadow pattern, and the difference between the tilt angle of the second light and shadow pattern and the second solar altitude angle corresponding to the first time is less than or equal to a preset threshold.

[0179] In some embodiments, the electronic device can automatically adjust the first image on the first interface to a second image based on the solar altitude angle corresponding to different times. Specifically, the electronic device can adjust the first light and shadow pattern displayed on the first interface to a second light and shadow pattern at a first time, so that the second light and shadow pattern in the second image matches the second solar altitude angle corresponding to the first time.

[0180] In this embodiment, the first time can be any time after the current time. Therefore, the first time can be the current system time of the electronic device, i.e., the current real time in the real world. The electronic device can determine the second solar altitude angle corresponding to the first time based on the first time and its current geographical location. When the second solar altitude angle is greater than the first solar altitude angle, the tilt angle of the second light and shadow pattern is greater than the tilt angle of the first light and shadow pattern; or, when the second solar altitude angle is less than the first solar altitude angle, the tilt angle of the second light and shadow pattern is less than the tilt angle of the first light and shadow pattern. The tilt angle of the second light and shadow pattern can be the angle between the optical axis of the light beam used to form the second light and shadow pattern and the horizontal plane.

[0181] Optionally, in this embodiment, the electronic device may adjust the first image on the first interface at preset time intervals. The preset time interval may be 30 minutes, 1 hour, 2 hours, or any other duration. Furthermore, the first time interval may be one or more preset time intervals after the current time.

[0182] For example, see Figure 16a and Figure 16b Suppose the current time is 10:00, what does the electronic device display at this time? Figure 16a The first interface shown is preset to a duration of 2 hours. Based on this, the electronic device can adjust the first image on the first interface once at 12 o'clock. For example... Figure 16b As shown, based on the first time 12:00 and the geographical location information, the electronic device can determine that the second solar altitude angle corresponding to 12:00 is greater than the first solar altitude angle corresponding to 10:00. Based on this, the electronic device can display the information on the first interface. Figure 16a The first light and shadow pattern in the image is adjusted to Figure 16b The second light and shadow pattern shown, Figure 16a The tilt angle of the first light and shadow pattern shown is less than Figure 16b The tilt angle of the second light and shadow pattern shown creates a visual effect where the projected area of ​​the sunlight spot pattern on the display screen gradually decreases on the horizontal plane as the sun's altitude angle gradually increases from morning to noon. Based on this, the electronic device can further adjust the light and shadow image on the first interface at 6 PM, such as... Figure 16cAs shown in the diagram, based on the first time 16:00 and the geographical location information, the electronic device can determine that the second solar altitude angle corresponding to 16:00 is less than the first solar altitude angle corresponding to 10:00. Therefore, the electronic device can adjust the light and shadow pattern on the first interface to... Figure 16c The second light and shadow pattern shown. Figure 16c The tilt angle of the second light and shadow pattern shown is not only smaller than Figure 16b The tilt angle of the second light and shadow pattern shown is also smaller than that of the second light and shadow pattern shown. Figure 16a The tilt angle of the first light and shadow pattern shown presents a visual effect where the projection area of ​​the sunlight spot pattern on the display screen first decreases and then increases on the horizontal plane from morning to evening.

[0183] Optionally, generally, the greater the solar altitude angle, the greater the solar radiation intensity, and correspondingly, the brighter the spot of sunlight hitting the target surface. Based on this, the electronic device can not only adjust the tilt of the light and shadow pattern relative to the horizontal plane according to the first moment, but also adjust the brightness of the light and shadow pattern in the first interface. That is, the brightness of the first light and shadow pattern in the first image can be different from the brightness of the second light and shadow pattern in the second image.

[0184] For example, if the second solar altitude angle corresponding to the first time is greater than the first solar altitude angle corresponding to the current time, the display brightness in the second light and shadow pattern can be greater than the display brightness in the first light and shadow pattern; or, if the second solar altitude angle is less than the first solar altitude angle, the display brightness in the second light and shadow pattern can be less than the display brightness in the first light and shadow pattern.

[0185] For example, Figure 16a The first interface shown is displayed at 10 o'clock. Figure 16b The first interface shown is displayed at 12 o'clock. Figure 16c The first interface shown is displaying the time as 18:00. The solar altitude angle at 10:00 is greater than that at 18:00, and the solar altitude angle at 12:00 is less than that at 10:00. Based on this... Figure 16c The tilt angle of the second light and shadow pattern shown is less than Figure 16a The tilt angle of the first light and shadow pattern shown. Figure 16c The display brightness of the second light and shadow pattern shown can be less than Figure 16a The display brightness of the first light and shadow pattern shown. Figure 16a The tilt angle of the first light and shadow pattern shown is less than Figure 16b The tilt angle of the second light and shadow pattern shown, correspondingly, Figure 16b The display brightness of the second light and shadow pattern shown can be greater than Figure 16aThe first light and shadow pattern shown in the figure displays brightness. This method of simulating the brightness changes of natural light can reduce users' reliance on artificial lighting. For example, during a sunny day, by simulating the effect of bright sunlight, users may reduce their need to turn on indoor lights, thereby achieving the goal of energy conservation and environmental protection.

[0186] Optionally, the color of sunlight can change over time; for example, morning sunlight is warmer, while midday sunlight is whiter. Based on this, the electronic device can also adjust the color of the light and shadow pattern displayed on the first interface according to the current time, meaning the color of the second light and shadow pattern in the second image can be different from the color of the first light and shadow pattern in the first image.

[0187] For example, the color of the second light and shadow pattern can be a solid color or a gradient color. If the first preset time period includes a first time, the color of the second light and shadow pattern can include yellow, orange, or any one or more other warm light colors. If the second preset time period includes the first time, the color of the second light and shadow pattern can be white, blue, purple, or any one or more other cool light colors.

[0188] For example, the first preset time period may include the period between 5:00 and 10:00 and the period between 16:00 and 19:00. Based on this, such as Figure 16a As shown, the color of the first light and shadow pattern in the first interface at 10:00 AM can be yellow; Figure 16c As shown, the second light and shadow pattern in the first interface at 6 PM is displayed in orange. The second preset time period can include the period between 10 AM and 4 PM. Figure 16b As shown, at 12 noon, the second light and shadow pattern in the first interface is displayed in blue.

[0189] Optionally, the electronic device can also adjust the background color and / or display brightness in the first interface. The display brightness of the first background in the first image may differ from the display brightness of the second background in the second image, and / or the color of the first background in the first image may differ from the color of the second background in the second image.

[0190] For example, the difference between the display brightness of the first background and the display brightness of the second background means that: when the second solar altitude angle corresponding to the first time is greater than the first solar altitude angle corresponding to the current time, the display brightness of the second background can be greater than the display brightness of the first background; or, when the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second background can be less than the display brightness of the first background.

[0191] The color of the first background in the first image can be the same as the color of the first light and shadow pattern in the first image, and the color of the second background in the second image can be the same as the color of the second light and shadow pattern in the second image. When adjusting the color of the light and shadow pattern in the first interface, the electronic device can simultaneously adjust the background color so that the adjusted background color is the same as the adjusted light and shadow pattern color.

[0192] Optionally, the electronic device can also adjust the transparency of interface elements in the first interface. Specifically, the content of the interface elements displayed on the second image can be the same as the content of the interface elements displayed on the first image, or the content of the interface elements displayed on the second image can be different from the content of the interface elements displayed on the first image. The transparency of the interface elements displayed on the second image is different from the transparency of the interface elements displayed on the first image.

[0193] For example, when the second solar altitude angle is greater than the first solar altitude angle, the transparency of the interface elements displayed on the first image can be greater than the transparency of the interface elements displayed on the second image. That is, the clarity of the interface elements displayed on the second image is greater than the clarity of the interface elements displayed on the first image. Based on this method, the contrast and clarity of the first interface can be improved when the sunlight intensity increases. Alternatively, when the second solar altitude angle is less than the first solar altitude angle, the transparency of the interface elements displayed on the first image is less than the transparency of the interface elements displayed on the second image. That is, the clarity of the interface elements displayed on the second image is less than the clarity of the interface elements displayed on the first image. Figure 16a and Figure 16c As shown in the diagram, the second solar altitude angle at 18:00 is less than the first solar altitude angle at 10:00. Therefore... Figure 16c The clarity of the interface elements in the second image shown is less than... Figure 16a The clarity of interface elements in the first image shown is improved. Based on this method, the contrast and clarity of the first interface can be reduced when the intensity of sunlight decreases.

[0194] Based on the method in the above embodiments, the electronic device can automatically adjust at least one of the style, color, and brightness of the light and shadow pattern displayed on the first interface according to the solar altitude angle corresponding to different times, and / or adjust the background color and brightness, and / or adjust the clarity of the interface elements in the first interface, so that the display interface can change with the changes of sunlight in the real environment, and the user can also feel the passage of time and the changes of natural light during the use of the electronic device, thereby bringing the user an immersive interactive experience.

[0195] In other embodiments, the electronic device may also adjust the first image to a second image in response to a user's adjustment operation on the first image.

[0196] In one example, the user's adjustment operation on the first image may include at least one of the following: the user adjusting the current time to the first time, the user adjusting the style of the light and shadow pattern, and the user adjusting the simulation parameters of the light.

[0197] For example, a user can open a time adjustment interface on an electronic device, which can display a time wheel or multiple time descriptions. The time wheel can display multiple times between 0:00 and 24:00, and each time description in the time adjustment interface can indicate one time; multiple time descriptions can indicate multiple different times between 0:00 and 24:00. The user can adjust the current time to the first time by rotating the time wheel, or by clicking on the first time description indicating the first time. Based on this, the electronic device can respond to the user's operation of adjusting the current time to the first time, acquire a second image based on the first time, and adjust the first image to the second image. The first time can be any time before or after the current time, and the current time can be the electronic device's current system time or a third time selected by the user. The third time can be referred to the description in step S310, which will not be repeated here.

[0198] For example, a user can open a light and shadow pattern adjustment interface on an electronic device. The light and shadow pattern adjustment interface can display multiple light and shadow patterns of different styles. Based on this, the user's operation to adjust the style of the light and shadow pattern can include: the user's click operation on the second light and shadow pattern in the light and shadow pattern adjustment interface.

[0199] For example, the simulation parameters of the light include at least one of the following: the color of the light, the intensity of the light, and the angle of incidence of the light. The user can adjust the color of the light pattern and / or the color of the background by adjusting the color of the light. The user can adjust the display brightness of the light pattern and / or the display brightness of the background, and / or the sharpness of interface elements by adjusting the intensity of the light. The user can adjust the tilt of the light pattern by adjusting the angle of incidence of the light.

[0200] Based on the method in this embodiment, users can adjust at least one of the style, color, and brightness of the light and shadow pattern displayed in the first interface, and / or adjust the color and brightness of the background, and / or adjust the clarity of the interface elements in the first interface, according to their desired light and shadow display effect, by adjusting the time, the style of the light and shadow pattern, and / or the simulation parameters of the light, so that the interface background in the display interface conforms to the user's preferences.

[0201] It should be noted that, in step S330, before the electronic device adjusts the first image to the second image, it can first determine the second image from at least one pre-stored light and shadow image sequence based on the first time or based on the first time and current environmental information. Alternatively, the electronic device can first automatically generate the second image based on the first time or based on the first time and current environmental information. Specifically, when the second image is obtained based on the current environmental information and the first time, the second light and shadow pattern in the second image not only matches the second solar altitude angle corresponding to the first time, but also the second light and shadow pattern, the color, display brightness, and clarity of the second image, and other feature information, match the current environmental information. For a specific method, please refer to the method for determining the first image described in step S310; it will not be repeated here.

[0202] The method embodiments provided in this application have been described above. The apparatus embodiments provided in this application will be described below. It should be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments. Therefore, any content not described in detail can be referred to the method embodiments above. For the sake of brevity, it will not be repeated here.

[0203] Figure 17 This is a schematic block diagram of a display device provided in an embodiment of this application. The device 1700 can be a module or chip applied to an electronic device. The device 1700 can be used to execute the steps or processes performed by the electronic device in the above-described embodiments. Figure 17 As shown, the display device 1700 may include an acquisition unit 1710 and a display unit 1720. The functions of each unit are as follows.

[0204] The acquisition unit 1710 is used to acquire a first image based on the current time. The first image includes a first light and shadow pattern, and the difference between the tilt angle of the first light and shadow pattern and the first solar altitude angle corresponding to the current time is less than or equal to a preset threshold. The display unit 1720 is used to display the first image on a first interface.

[0205] Optionally, the acquisition unit 1710 is also used to acquire current environment information. The current environment information includes the current environment color, and the color of the first light and shadow pattern matches the current environment color.

[0206] Optionally, the first image also includes a first background, the color of which matches the color of the current environment.

[0207] Optionally, the current environment information may also include the current ambient brightness. Based on this, the display unit 1720 is further configured to determine the display brightness of the first image according to the current ambient brightness.

[0208] Optionally, the current environmental information may also include weather information. The display unit 1720 is also used to determine the sharpness of the first light and shadow pattern based on the weather information.

[0209] Optionally, the first light and shadow pattern is displayed in the left or right area of ​​the first interface.

[0210] Optionally, the display device 1700 may include an adjustment unit 1730, which is used to adjust the first image to a second image according to a first time. The second image includes a second light and shadow pattern, the first time being any time after the current time or any time before the current time, and the difference between the tilt angle of the second light and shadow pattern and the second solar altitude angle corresponding to the first time is less than or equal to a preset threshold. When the second solar altitude angle is greater than the first solar altitude angle, the tilt angle of the second light and shadow pattern is greater than the tilt angle of the first light and shadow pattern; or, when the second solar altitude angle is less than the first solar altitude angle, the tilt angle of the second light and shadow pattern is less than the tilt angle of the first light and shadow pattern.

[0211] Optionally, the color of the first light and shadow pattern is different from the color of the second light and shadow pattern.

[0212] Optionally, the display brightness of the first light and shadow pattern is different from that of the second light source pattern.

[0213] Optionally, if the second solar altitude angle is greater than the first solar altitude angle, the display brightness in the second light and shadow pattern is greater than the display brightness in the first light and shadow pattern; or, if the second solar altitude angle is less than the first solar altitude angle, the display brightness in the second light and shadow pattern is less than the display brightness in the first light and shadow pattern.

[0214] Optionally, the first image may also include a first background, and the second image may also include a second background; the color of the first background is different from the color of the second background, and / or the display brightness of the first background is different from the display brightness of the second background.

[0215] Optionally, if the second solar altitude angle is greater than the first solar altitude angle, the display brightness of the second background is greater than the display brightness of the first background; or, if the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second background is less than the display brightness of the first background.

[0216] Optionally, the transparency of the interface elements displayed in the first image is different from the transparency of the interface elements displayed in the second image.

[0217] Optionally, if the second solar altitude angle is greater than the first solar altitude angle, the transparency of the interface elements displayed on the first image is greater than the transparency of the interface elements displayed on the second image; or, if the second solar altitude angle is less than the first solar altitude angle, the transparency of the interface elements displayed on the first image is less than the transparency of the interface elements displayed on the second image.

[0218] It should be understood that the description of the device embodiments can refer to the relevant descriptions of the various method embodiments above. Their implementation principles and technical effects are similar to those of the method embodiments above, and will not be repeated here.

[0219] It should be understood that the “unit” in device 1700 can be implemented in hardware, software, or by hardware executing corresponding software. For example, the “unit” can refer to an application-specific integrated circuit (ASIC), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor, etc.) and memory for executing one or more software or firmware programs, combined logic circuitry, and / or other suitable components that support the described functions.

[0220] Based on the methods provided in the above embodiments, this application also provides the following:

[0221] This application provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to execute the various steps or processes performed by the electronic device in any of the above method embodiments.

[0222] This application provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the various steps or processes performed by the electronic device in any of the above method embodiments.

[0223] This application provides a chip including a memory and a processor. The processor executes a computer program stored in the memory to control the electronic device to perform the methods shown in the various embodiments above.

[0224] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0225] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0226] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. In the above embodiments, the descriptions of each embodiment have different focuses; parts not described in detail or recorded in a certain embodiment can be referred to in the relevant descriptions of other embodiments.

[0227] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0228] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0229] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0230] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0231] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.

[0232] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A display method, characterized in that, Applied to electronic devices, the method includes: A first image is obtained based on the current time. The first image includes a first light and shadow pattern. The difference between the tilt angle of the first light and shadow pattern and the first solar altitude angle corresponding to the current time is less than or equal to a preset threshold. The first image is displayed on the first interface.

2. The method according to claim 1, characterized in that, The method further includes: Obtain current environment information, including the current environment color, and the color of the first light and shadow pattern matches the current environment color.

3. The method according to claim 2, characterized in that, The first image also includes a first background, the color of which matches the color of the current environment.

4. The method according to claim 2 or 3, characterized in that, The current environmental information also includes the current ambient brightness; The method further includes: The display brightness of the first image is determined based on the current ambient brightness.

5. The method according to any one of claims 2 to 4, characterized in that, The current environmental information also includes weather information; The method further includes: Based on the weather information, the clarity of the first light and shadow pattern is determined.

6. The method according to any one of claims 1 to 5, characterized in that, The first light and shadow pattern is displayed in the left or right area of ​​the first interface.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Based on the first moment, the first image is adjusted to the second image, the second image including the second light and shadow pattern; Wherein, the first time is the time after the current time or the time before the current time, and the difference between the tilt angle of the second light and shadow pattern and the second solar altitude angle corresponding to the first time is less than or equal to the preset threshold. When the second solar altitude angle is greater than the first solar altitude angle, the tilt angle of the second light and shadow pattern is greater than the tilt angle of the first light and shadow pattern; or, when the second solar altitude angle is less than the first solar altitude angle, the tilt angle of the second light and shadow pattern is less than the tilt angle of the first light and shadow pattern.

8. The method according to claim 7, characterized in that, The color of the first light and shadow pattern is different from the color of the second light and shadow pattern.

9. The method according to claim 7 or 8, characterized in that, The display brightness of the first light and shadow pattern is different from that of the second light source pattern.

10. The method according to claim 9, characterized in that, The display brightness of the first light and shadow pattern differs from that of the second light source pattern, including: When the second solar altitude angle is greater than the first solar altitude angle, the display brightness of the second light and shadow pattern is greater than the display brightness of the first light and shadow pattern; or... When the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second light and shadow pattern is less than the display brightness of the first light and shadow pattern.

11. The method according to any one of claims 7 to 10, characterized in that, The first image also includes a first background, and the second image also includes a second background; The color of the first background is different from the color of the second background, and / or the display brightness of the first background is different from the display brightness of the second background.

12. The method according to claim 11, characterized in that, The display brightness of the first background differs from that of the second background, including: When the second solar altitude angle is greater than the first solar altitude angle, the display brightness of the second background is greater than the display brightness of the first background; or... When the second solar altitude angle is less than the first solar altitude angle, the display brightness of the second background is less than the display brightness of the first background.

13. The method according to any one of claims 7 to 12, characterized in that, The transparency of the interface elements displayed in the first image is different from that of the interface elements displayed in the second image.

14. The method according to claim 13, characterized in that, The transparency of the interface elements displayed in the first image differs from the transparency of the interface elements displayed in the second image, including: When the second solar altitude angle is greater than the first solar altitude angle, the transparency of the interface elements displayed on the first image is greater than the transparency of the interface elements displayed on the second image; or, When the second solar altitude angle is less than the first solar altitude angle, the transparency of the interface elements displayed on the first image is less than the transparency of the interface elements displayed on the second image.

15. A display device, characterized in that, It includes at least one unit, said at least one unit being used to implement the method as described in any one of claims 1 to 14.

16. An electronic device, characterized in that, include: A processor for running a computer program stored in a memory to implement the method as described in any one of claims 1 to 14.

17. A chip system, characterized in that, include: A processor for running a computer program stored in a memory to implement the method as described in any one of claims 1 to 14.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a computer, implements the method as described in any one of claims 1 to 14.

19. A computer program product, characterized in that, The computer program product stores a computer program that, when executed by a computer, implements the method as described in any one of claims 1 to 14.