Wallpaper image display method and terminal equipment
By using the original wallpaper image and reference images to generate purpose wallpaper images with a specific ambient light atmosphere, the problem of wallpaper image linkage in the prior art requires the preparation of multiple sets of materials, and efficient and beautiful wallpaper image dynamic switching display is achieved.
Patent Information
- Application Number
- CN202311287212.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
When the prior art realizes the linkage between wallpaper images and time or weather, it is necessary to prepare multiple sets of different wallpaper image materials, resulting in a large amount of manpower and material resources.
Through one original wallpaper image and at least one reference image, a purpose wallpaper image with a reference image ambient light atmosphere is generated, thereby realizing dynamic switching display of time or weather.
It reduces the cost and time of preparing wallpaper image materials, improves the appearance of generating wallpaper, and increases the diversity and fun of wallpaper images.
Smart Images

Figure CN119728847A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a wallpaper image display method and a terminal device. Background Art
[0002] With the popularization of terminal devices, users not only pursue various functions of terminal devices, but also pay great attention to the desktop layout and aesthetics of terminal devices. In order to prevent users from getting aesthetic fatigue after using the same wallpaper image for a long time, the terminal device provides users with a wallpaper image setting portal, so that users can easily set their favorite wallpaper images.
[0003] Based on considerations such as improving the fun of wallpaper images, users can also set a wallpaper image display mode to link wallpaper images with environmental factors such as time or weather. For example, different wallpaper image materials can be switched and displayed as time nodes change. For another example, different wallpaper image materials can be switched and displayed as weather conditions change. However, this wallpaper image display mode requires the preparation of multiple sets of different wallpaper image materials. The acquisition of multiple sets of wallpaper image materials associated with environmental factors usually requires a lot of manpower and material resources to prepare or shoot on site. Summary of the invention
[0004] The present application provides a wallpaper image display method and a terminal device, which can generate at least one target wallpaper image with the ambient light atmosphere of the reference image through an original wallpaper image and at least one reference image, thereby avoiding the need to spend a lot of manpower and material resources on preparation or field shooting, and can also improve the look and feel of the generated wallpaper.
[0005] In the first aspect, an embodiment of the present application provides a wallpaper image display method. The method can be applied to a terminal device, including: detecting a first type of preset event, the first type of preset event is used to indicate that a preset condition for switching to display different wallpaper images in different time periods is met; in response to the first type of preset event, switching from displaying a first interface to displaying a second interface; wherein the first interface displays a first wallpaper image, and the second interface displays a second wallpaper image; the first wallpaper image includes a first purpose wallpaper image or a first purpose wallpaper image slice with a first ambient light atmosphere generated based on an original wallpaper image and a first reference image; the second wallpaper image includes a second purpose wallpaper image or a second purpose wallpaper image slice with a second ambient light atmosphere generated based on the original wallpaper image and the second reference image.
[0006] In this method, the terminal device generates a plurality of target wallpaper images with different ambient light atmospheres based on the original wallpaper image and a plurality of reference images. It can be understood that the ambient light atmosphere of the target wallpaper image can be obtained based on the ambient light atmosphere of the corresponding reference image. In this way, based on the generated multiple target wallpaper images, the switching display of time-aware wallpapers can be realized without consuming a lot of manpower and material resources to prepare or shoot on the spot, and the look and feel of the generated wallpaper can also be improved. In addition, the display of multiple target wallpaper images can adopt the display method of a single target wallpaper image, and can also adopt the display method of slicing and splicing multiple target wallpaper images, which can improve the diversity and fun of the displayed wallpaper images.
[0007] In a possible implementation manner, the first type of preset events includes but is not limited to the following events:
[0008] (A) reaching the start time of displaying the second wallpaper image; or
[0009] (B) the unlocking time of the terminal device is within the time period when the second wallpaper image is displayed, and the locking time corresponding to the unlocking is within the time period when the first wallpaper image is displayed; or
[0010] (C) The first moment when the desktop interface of the terminal device is displayed belongs to the time period when the second wallpaper image is displayed, and the second moment when the desktop interface of the terminal device is last displayed belongs to the time period when the first wallpaper image is displayed.
[0011] In this implementation, the terminal device can trigger the switching display of the target wallpaper image in response to a variety of possible preset events. Moreover, when the terminal device is in a locked screen state or does not display an interface including the target wallpaper image, the switching display of the target wallpaper image may not be triggered, thereby reducing the background processing of the terminal device and reducing the energy consumption of the terminal device.
[0012] In a possible implementation manner, when the first wallpaper image is a first target wallpaper image slice with a first ambient light atmosphere generated based on an original wallpaper image and a first reference image, the first wallpaper image is a spliced wallpaper image including M target wallpaper image slices, and the M target wallpaper image slices are obtained by cropping from corresponding display positions of the M target wallpaper images; the M target wallpaper images are wallpaper images with M ambient light atmospheres obtained based on the original wallpaper image and M reference images; M is a positive integer; wherein the first target wallpaper image slice included in the first wallpaper image has a first display effect, and other target wallpaper image slices except the first target wallpaper image slice have a second display effect, and the first display effect and the second display effect are different. When the second wallpaper image includes a wallpaper image slice with a second ambient light atmosphere generated based on the original wallpaper image and the second reference image, the second wallpaper image is a spliced wallpaper image including M target wallpaper image slices; wherein the second target wallpaper image slice included in the second wallpaper image has the first display effect, and other target wallpaper image slices except the second target wallpaper image slice have the second display effect.
[0013] In this embodiment, when a display method of slicing and splicing multiple target wallpaper images is adopted, different display effects of the slices can be used to highlight one or more of the multiple target wallpaper image slices. In this way, through different display effects, the slices can be associated with information such as time and environment, so that the target wallpaper image can provide more information to the user.
[0014] In a possible implementation, the original wallpaper image has a local image feature, at least one preset area belonging to the local image feature has a first sub-ambient light atmosphere, and the display area other than the at least one preset area has a second sub-ambient light atmosphere; wherein the image processing degrees of the first sub-ambient light atmosphere and the second sub-ambient light atmosphere are different.
[0015] In this implementation, in the process of generating the target wallpaper image, by performing different processing on the local image features in the wallpaper image, the display of the local image features in the target wallpaper image can be guaranteed, thereby improving the viewing experience of the target wallpaper image.
[0016] In a possible implementation, the original wallpaper image is a wallpaper image containing a person, and the at least one preset area is a skin area of the person. In this implementation, by performing different degrees of image processing on the skin area of the person, the characteristic display of the skin area of the person in the target wallpaper image can be guaranteed, and the distortion of the skin area of the person caused by image processing can be avoided.
[0017] In a possible implementation, before detecting the first type of preset event, the method also includes: detecting a first operation of a user on a preset control on a third interface, the third interface being a preview interface of the original wallpaper image, and the preset control being used to switch to display preview interfaces of destination wallpaper images with different ambient light atmospheres; in response to the first operation, displaying a fourth interface, the fourth interface being a preview interface of the first destination wallpaper image; detecting and responding to a second operation of the user on the preset control on the fourth interface, displaying a fifth interface, the fifth interface being a preview interface of the second destination wallpaper image.
[0018] In this implementation, the user can preview the display effects of different target wallpaper images in the preview path, so that the user can apply or change the display of the target wallpaper image based on the method provided in this application.
[0019] In a possible implementation, the method further includes: detecting a second type of preset event, the second type of preset event being used to indicate that a preset condition for switching to display different wallpaper images under different weather conditions is met; in response to the second type of preset event, switching from displaying the fifth interface to displaying the sixth interface; wherein the fifth interface displays a third wallpaper image, and the sixth interface displays a fourth wallpaper image; the third wallpaper image includes a third purpose wallpaper image or a third purpose wallpaper image slice having a first weather condition generated based on the original wallpaper image and the third reference image; the fourth wallpaper image includes a fourth purpose wallpaper image or a fourth purpose wallpaper image slice having a second weather condition generated based on the original wallpaper image and the fourth reference image.
[0020] In this implementation, the generated multiple purpose wallpaper images can be applied not only to time-aware wallpaper images, but also to environment-aware wallpaper images, so that environmental information can be provided to the user by switching the display of different purpose wallpaper images.
[0021] In a possible implementation, the first weather state is sunny. In this implementation, the environment-aware wallpaper image can also be combined with the time-aware wallpaper image. When the weather state is sunny, the time-aware wallpaper image can be displayed, thereby enhancing the information that can be provided by the target wallpaper image.
[0022] In a second aspect, an embodiment of the present application further provides a terminal device, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the terminal device executes a method in any possible design of the above-mentioned first aspect.
[0023] In a third aspect, an embodiment of the present application further provides a wallpaper image display device, which includes a module / unit for executing the method in any possible design of the first aspect above. These modules / units can be implemented by hardware, or by executing corresponding software implementations through hardware. For example, the module / unit can at least perform the following steps: detecting a first type of preset event, wherein the first type of preset event is used to indicate that a preset condition for switching to display different wallpaper images in different time periods is satisfied; in response to the first type of preset event, switching from displaying a first interface to displaying a second interface; wherein the first interface displays a first wallpaper image, and the second interface displays a second wallpaper image; the first wallpaper image includes a first purpose wallpaper image or a first purpose wallpaper image slice having a first ambient light atmosphere generated based on the original wallpaper image and the first reference image; the second wallpaper image includes a second purpose wallpaper image or a second purpose wallpaper image slice having a second ambient light atmosphere generated based on the original wallpaper image and the second reference image.
[0024] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to execute a method in any possible design of the first aspect.
[0025] In a fifth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible design of the first aspect.
[0026] In the sixth aspect, a graphical user interface on a terminal device is also provided, the terminal device having a display screen, one or more memories, and one or more processors, the one or more processors being used to execute one or more computer programs stored in the one or more memories, the graphical user interface including the graphical user interface displayed when the terminal device executes any possible implementation method of the first aspect of the embodiment of the present application.
[0027] In a seventh aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute any of the above aspects and possible methods designed to be executed by a terminal device.
[0028] In an eighth aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement any of the above aspects and methods for execution of each possible design terminal device. In one possible design, the chip system also includes a memory, which is used to store programs and data necessary for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0029] It should be noted that for the beneficial effects of the various designs of the terminal devices provided in the second to eighth aspects of the embodiments of the present application, please refer to the beneficial effects of any possible design in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of an application scenario of dynamic display of wallpaper images provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a hardware architecture of a terminal device provided in an embodiment of the present application;
[0032] Figure 3 A software system architecture block diagram of a terminal device provided in an embodiment of the present application;
[0033] Figure 4 An image processing schematic diagram of a wallpaper processing method provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a flowchart of a wallpaper image display method provided in an embodiment of the present application;
[0035] Fig. 6A A schematic diagram of a process for generating a target wallpaper image in a wallpaper image display method provided in an embodiment of the present application;
[0036] Figure 6B A schematic diagram of an interface of a wallpaper image display method provided in an embodiment of the present application;
[0037] Figure 6C A schematic diagram of another interface of a wallpaper image display method provided in an embodiment of the present application;
[0038] Figure 7 A scene schematic diagram of a wallpaper image display method provided in an embodiment of the present application;
[0039] Figure 8 A schematic diagram of an interface of a wallpaper image display method provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of another interface of a wallpaper image display method provided in an embodiment of the present application;
[0041] Fig.10 A schematic diagram of another interface of a wallpaper image display method provided in an embodiment of the present application;
[0042] Fig.11 A schematic diagram of another interface of a wallpaper image display method provided in an embodiment of the present application;
[0043] Fig.12 Another schematic diagram of the flow of a wallpaper image display method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0045] The embodiments of the present application can be applied to the field of terminal technology, and can be specifically applied to the scenario of displaying wallpaper images on terminal devices. The wallpaper images can be static wallpaper images, dynamic wallpaper images, etc. The wallpaper images can be displayed on the desktop or lock screen of the terminal device. The wallpaper image display mode can be static display, dynamic display, etc.
[0046] In one possible implementation, the dynamic display of the wallpaper image can be switched based on environmental factors such as time and weather. For example, the mobile phone can replace the wallpaper image material that matches the current time node at different time nodes. For example, the mobile phone can replace the wallpaper image material that matches the current weather state at different weather conditions. Or, the mobile phone can replace the wallpaper image material that matches both the current time point and the current weather state at different time nodes in combination with different weather conditions.
[0047] For example, Figure 1 A schematic diagram of an application scenario for the dynamic display of wallpaper images provided in an embodiment of the present application. Figure 1 Interface 101 in the figure may show wallpaper image 1 displayed by the mobile phone in the morning, and interface 102 may show wallpaper image 2 displayed by the mobile phone in the evening. It can be understood that Figure 1Only two time points are shown in the figure. Different wallpaper image materials can be displayed based on time switching. More different time periods can be divided, and different time periods can be switched to display different wallpaper image materials. For example, in the early morning (such as 4:00-6:00), it can be replaced with a wallpaper image of the rising sun; in the morning (such as 6:00-11:00), it can be replaced with a wallpaper image of the sun in the sky and children going to school; at noon (such as 11:00-14:00), it can be replaced with a wallpaper image of a kitten sleeping in the sun; in the afternoon (such as 14:00-18:00), it can be replaced with a wallpaper image of afternoon tea; in the evening (such as 18:00-20:00), it can be replaced with a wallpaper image of birds returning to their nests; at night (such as 20:00-4:00), it can be replaced with a wallpaper image of the moon hanging in the sky. However, replacing different wallpaper image materials at different time nodes requires the preparation of multiple sets of materials, which is time-consuming and labor-intensive; and the differences between different wallpaper image materials may be large, and the correlation between wallpaper images is poor.
[0048] in addition, Figure 1 Interface 103 in the figure may show wallpaper image 3 displayed on the mobile phone on a sunny day, and interface 104 may show wallpaper image 4 displayed on the mobile phone during a storm. Exemplarily, different wallpaper images under different weather conditions may be realized through different renderings. For example, a rainy day effect may be rendered based on the original wallpaper image, or a snowy day effect may be rendered based on the original wallpaper image. Although the multiple different wallpaper images obtained by rendering have a certain correlation, the rendering processing method may affect the differences between the pixels included in the original wallpaper image, and thus affect the display effect of the wallpaper image.
[0049] In view of this, an embodiment of the present application provides a wallpaper image display method. The method can be applied to a terminal device, and the method can generate at least one target wallpaper image based on the original wallpaper image and at least one reference image so that the original wallpaper image has the lighting atmosphere of the reference image. In this way, based on the original wallpaper image and at least one reference image, image processing can be performed to generate at least one set of target wallpaper image materials associated with the original wallpaper image and having the ambient light atmosphere of the reference image, so that different target wallpaper image materials can be switched and displayed as environmental factors such as time information or weather information change. Therefore, the method can avoid the time-consuming and labor-intensive problem caused by the need to prepare multiple sets of wallpaper images.
[0050] The terminal device may be a terminal device with a desktop interface such as a mobile phone, a tablet computer, a laptop computer, a folding screen mobile phone, a large screen, a large car screen, a smart watch, etc. It is understandable that the embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0051] The terminal device to which the embodiments of the present application can be applied includes but is not limited to a terminal device equipped with Or terminal devices of other operating systems. The portable electronic device mentioned above may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface (eg, a touch panel).
[0052] Figure 2 : A schematic diagram of the hardware structure of a possible terminal device is shown. The terminal device 200 includes: a radio frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless fidelity (Wi-Fi) module 290 and other components. Those skilled in the art can understand that Figure 2 The hardware structure of the terminal device 200 shown in the figure does not constitute a limitation on the terminal device 200. The terminal device 200 provided in the embodiment of the present application may include more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0053] Combine the following Figure 2 The components of the terminal device 200 are described in detail:
[0054] The RF circuit 210 can be used for receiving and sending data during communication or calls. In particular, after receiving downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; in addition, the uplink data to be sent is sent to the base station. Generally, the RF circuit 210 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
[0055] In addition, the RF circuit 210 can also communicate with other devices through a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0056] Wi-Fi technology is a short-range wireless transmission technology. The terminal device 200 can connect to an access point (AP) through the Wi-Fi module 290 to access the data network. The Wi-Fi module 290 can be used for receiving and sending data during the communication process.
[0057] The terminal device 200 can be physically connected to other devices through the communication interface 280. Optionally, the communication interface 280 is connected to the communication interface of the other device through a cable to achieve data transmission between the terminal device 200 and the other device.
[0058] The terminal device 200 can also implement communication services and interact with service-side devices or other terminal devices. Therefore, the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to include a communication module. Figure 2 Communication modules such as the RF circuit 210, the Wi-Fi module 290, and the communication interface 280 are shown, but it is understandable that at least one of the above components or other communication modules (such as a Bluetooth module) for implementing communication exist in the terminal device 200 to perform data transmission.
[0059] For example, when the terminal device 200 is a mobile phone, the terminal device 200 may include the RF circuit 210, and may also include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 2 When the terminal device 200 is a computer, the terminal device 200 may include the communication interface 280, and may also include the Wi-Fi module 290, or may include a Bluetooth module ( Figure 2When the terminal device 200 is a tablet computer, the terminal device 200 may include the Wi-Fi module, or may include a Bluetooth module ( Figure 2 not shown).
[0060] The memory 240 can be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the terminal device 200 by running the software programs and modules stored in the memory 240. Optionally, the memory 240 may mainly include a program storage area and a data storage area. Among them, the program storage area can store an operating system (mainly including software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer, etc.).
[0061] In addition, the memory 240 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. In an embodiment of the present application, the memory 240 may store relevant data such as theme files and wallpaper images downloaded by the user. In another optional embodiment, the memory 240 may also store script information for timing the switching display of different wallpaper image materials, or switching the display of different wallpaper image materials in response to weather conditions; it is understandable that the processor 230 may be used to control the automatic reading of the script information in the memory 240 when unlocking or timing, so as to switch the display of different wallpaper images when the preset conditions are met.
[0062] The input unit 250 can be used to receive the editing operations of various different types of data objects such as digital or character information input by the user, and generate key signal input related to the user settings and function control of the terminal device 200. Optionally, the input unit 250 can include a touch panel 251 and other input devices 252.
[0063] The touch panel 251, also called a touch screen, can collect user touch operations on or near it (such as operations performed by a user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 251), and drive corresponding connection devices according to a pre-set program. In an embodiment of the present application, the touch panel 251 can collect user operations on the desktop interface, such as one or more touch operations of the user in the theme APP, and the one or more touch operations can be used to set the wallpaper image display method provided in the embodiment of the present application, or can be used to change the wallpaper image, etc.
[0064] Optionally, the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, etc.
[0065] The display unit 260 can be used to display information input by the user or information provided to the user and various menus of the terminal device 200. The display unit 260 is the display system of the terminal device 200, which is used to present an interface and realize human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In an embodiment of the present application, the display unit 260 can be used to display a desktop interface or a lock screen interface for the user. Through the wallpaper image display method provided in the present application, it can be achieved that the wallpaper image will switch to display different wallpaper images when a preset event is met.
[0066] The processor 230 is the control center of the terminal device 200, and uses various interfaces and lines to connect various components, and executes various functions and processes data of the terminal device 200 by running or executing software programs and / or modules stored in the memory 240, and calling data stored in the memory 240, thereby realizing various services based on the terminal device 200. In the embodiment of the present application, the processor 230 can be used to implement the wallpaper image display method provided in the embodiment of the present application.
[0067] The terminal device 200 also includes a power supply 220 (such as a battery) for supplying power to various components. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0068] like Figure 2As shown, the terminal device 200 also includes an audio circuit 270, a microphone 271 and a speaker 272, which can provide an audio interface between the user and the terminal device 200. The audio circuit 270 can be used to convert audio data into a signal that can be recognized by the speaker 272, and transmit the signal to the speaker 272, which is converted into a sound signal and output by the speaker 272. The microphone 271 is used to collect external sound signals (such as the sound of a person speaking, or other sounds, etc.), and convert the collected external sound signals into signals that can be recognized by the audio circuit 270, and send them to the audio circuit 270. The audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 to send it to, for example, another terminal device, or output the audio data to the memory 240 for subsequent further processing.
[0069] Although not shown, the terminal device 200 may also include a camera, at least one sensor, etc., which will not be described in detail herein. The at least one sensor may include but is not limited to a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
[0070] The operating system (OS) involved in the embodiment of the present application is the most basic system software running on the terminal device 200. The software system of the terminal device 200 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an operating system adopting a layered architecture as an example to exemplify the software system architecture of the terminal device 200.
[0071] Figure 3 A software system architecture block diagram of a terminal device provided in an embodiment of the present application. Figure 3 As shown, the software system architecture of the terminal device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.
[0072] The application layer can include a series of application packages. Figure 3 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include wireless local area network (WLAN), music, calls, Bluetooth, video, memo, notes, etc.
[0073] In the embodiment of the present application, the application layer can be used to realize the presentation of the desktop interface or the lock screen interface. The above desktop interface or the lock screen interface can switch to display different wallpaper image materials based on the content introduced in the following embodiments.
[0074] In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can interact with the bottom layer of the operating system (such as the hardware layer, kernel layer, etc.) through the application framework layer to develop their own applications. The application framework layer is mainly a series of services and management systems of the operating system.
[0075] The application framework layer provides application programming interfaces and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include an activity manager, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0076] The activity manager is used to manage the life cycle of each application and provide common navigation back functions, providing an interactive interface for all program windows.
[0077] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0078] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0079] The phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).
[0080] The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. In the embodiment of the present application, when the user selects a theme in the theme APP, all the themes stored locally can be displayed to the user by calling the resource manager.
[0081] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0082] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0083] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0084] The system library may include multiple functional modules, such as a surface manager, a media framework, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.
[0085] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0086] The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media framework can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0087] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0088] A 2D graphics engine is a drawing engine for 2D drawings.
[0089] In some embodiments, a three-dimensional graphics processing library may be used to draw a three-dimensional motion trajectory image, and a two-dimensional graphics engine may be used to draw a two-dimensional motion trajectory image.
[0090] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0091] The hardware layer can include various types of sensors, such as accelerometers, gravity sensors, touch sensors, etc.
[0092] Usually, the terminal device 200 can run multiple applications at the same time. In a simpler way, one application can correspond to one process, and in a more complex way, one application can correspond to multiple processes. Each process has a process number (process ID).
[0093] It should be understood that in the embodiments of the present application, "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple. "Multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.
[0094] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
[0095] It should be understood that the hardware structure of the terminal device can be as follows Figure 2 As shown, the software system architecture can be Figure 3 As shown, the software programs and / or modules corresponding to the software system architecture in the terminal device can be stored in the memory 240, and the processor 230 can run the software programs and applications stored in the memory 240 to execute the process of a wallpaper image display method provided in an embodiment of the present application.
[0096] In order to facilitate understanding of the wallpaper image display method provided by this application, the following Figures 4 to 11 The content shown introduces the implementation process of the method provided by this application. The wallpaper image display method provided by the embodiment of this application can be mainly divided into two parts: the first part is to generate a wallpaper image, and the second part is to display the wallpaper image. The following is introduced in combination with the embodiments.
[0097] Part 1: Generate wallpaper image
[0098] Based on the image features of the wallpaper image, the wallpaper image can be divided into wallpaper images with global image features (which may also be referred to as "global wallpaper images" in the embodiments of the present application) and wallpaper images with local image features (which may also be referred to as "local wallpaper images" in the embodiments of the present application). Among them, global image features refer to the overall attributes of the image. Common global image features include color features, texture features, and shape features, such as intensity histograms, etc. For example, scenery images generally have more global image features. Compared with global image features such as line features, texture features, and structural features, local image features have the characteristics of being abundant in the image, having low correlation between features, and not affecting the detection and matching of other features due to the disappearance of some features in the case of occlusion. For example, pictures of people, cars, animals, etc. generally have more local image features. It can be understood that in view of the different characteristics of global image features and local image features, different processing can be performed on the global image features and local image features included in the wallpaper image.
[0099] Exemplarily, for the global image features of the wallpaper image, averaging processing can be performed based on the LAB (a color model) color space, so that color migration can be performed. In a possible embodiment, the red (red, R), green (green, G), and blue (blue, B) values of each pixel point included in the original wallpaper image and the reference image are converted to the LAB color space according to the corresponding conversion relationship, so that the channels become orthogonal and no longer affect each other; then, the original wallpaper image is made to have the light characteristics of the reference image through averaging. It should be noted that the method for color migration includes but is not limited to LAB color space conversion. Other methods, such as image translation using neural networks, color migration using clustering algorithms, etc., can achieve the goal of keeping the original wallpaper image unchanged while modifying the original wallpaper image according to the ambient light atmosphere of the reference image. All technologies can be applied to the present application.
[0100] Among them, color migration can be used to migrate the overall ambient light atmosphere of the reference image to the original wallpaper image, so that the original wallpaper image has the ambient light atmosphere of the reference image. For example, the original wallpaper image can be a landscape wallpaper image, and the reference image can be one or more images that can reflect the lighting environment, such as a reference image of the lighting environment of the rising sun, a reference image of the lighting environment of the sun in the sky, a reference image of the lighting environment of the evening, etc. In this way, a target wallpaper image based on the original wallpaper image with a lighting environment of the rising sun can be obtained, a target wallpaper image based on the original wallpaper image with a lighting environment of the sun in the sky can be obtained, and a target wallpaper image based on the original wallpaper image with a lighting environment of the evening can be obtained.
[0101] Another example is that for the local image features of the wallpaper image, the display area of the local object can be extracted by superpixel technology and the color of the area can be retained. For example, the original wallpaper image can be a person wallpaper image, and the skin area of the person can be extracted by superpixel technology, and the color of the skin area can be retained. Taking the person wallpaper image as an example, person detection and skin color extraction processing can be performed. For example, Figure 4 A schematic diagram of image processing of a wallpaper processing method provided in an embodiment of the present application. Figure 4 The interface 400 shown may be an original wallpaper image, which may be based on the following Figure 5 The process shown is Figure 4 The original wallpaper image shown is processed. Figure 5 A schematic diagram of a method for displaying a wallpaper image provided in an embodiment of the present application. The process may include the following steps:
[0102] Step 500: Perform person detection on the original wallpaper image to determine whether there is a person in the original wallpaper image.
[0103] Based on the original wallpaper image, a person detection example can be performed, which can be performed by but not limited to the following person detection methods: neural network model, such as YOLOv5 network; cascade classifier; decision tree, etc. Figure 4 As shown in the interface 401 in FIG. 4 , the location of the person is framed in the interface 401 , and it is also indicated that the probability that the area in the frame belongs to the person area is 90.0%.
[0104] Understandably, Figure 5 The process shown is for processing a wallpaper image containing local image features. When the wallpaper image does not contain local image features, the process may not be performed. Figure 5 The process shown.
[0105] It can also be understood that the step shown in step 500 is based on a partial wallpaper image with a person as an example, and other partial wallpaper images can also refer to step 500 to detect partial image features.
[0106] Step 501, extracting the RGB average value of the face display area included in the character as the character's skin color.
[0107] In a possible embodiment, step 501 may be implemented by the following steps:
[0108] Step 5011: segment the original wallpaper image to obtain a segmentation mask image of the character display area.
[0109] For example, after segmenting the original image wallpaper, a segmentation mask image can be output, such as Figure 4As shown in the interface 402 in FIG. 4 , the black area in the interface 402 is the background area, and the white area is the area where the person is located, so that the person position and the person size edge can be marked by the segmentation mask image.
[0110] Step 5012: Based on the segmentation mask image, obtain the character display area from the original wallpaper image.
[0111] In an optional embodiment, the segmentation mask image shown in interface 402 and the original wallpaper image in interface 400 are superimposed and displayed, which can be displayed as an image effect as shown in interface 403. It can also be understood that the character display area in the original wallpaper image can be segmented out through the segmentation mask image.
[0112] Based on the character display area obtained in step 5012, the following steps 5013 and 5021 may be executed respectively.
[0113] Step 5013: Perform face detection based on the character display area to obtain the face display area. In an optional embodiment, the face of the character can be identified by a neural network model or other methods, or by other possible implementation methods, which are not limited in this application. In this way, the skin color of the character can be obtained based on the obtained face display area.
[0114] Through step 501, based on the face display area that is easier to identify, the average pixel value of the skin area of the person including the pixels can be determined, and the average pixel value is used as the skin color of the person.
[0115] Step 502: extract the skin display area in the original wallpaper image based on the character's skin color.
[0116] In a possible embodiment, step 502 may be implemented by the following steps:
[0117] Step 5021: Based on super pixel technology, divide the character display area into multiple groups of super pixel blocks. For example, the multiple super pixel blocks may include: skin blocks, hair blocks, clothing blocks, etc.
[0118] In an optional embodiment, the specific display position of the task skin can be obtained by superpixel technology; wherein superpixel refers to a method of replacing multiple pixels with a block, that is, dividing a piece of adjacent pixels with similar colors into one area. In this way, the position of the skin can be extracted, thereby further distinguishing the color area of the skin from the color area of clothing. For example, 4041 included in interface 404 is the skin display area. In this way, by extracting the color of the character's skin by superpixel, the position of the character's skin can be marked when performing color migration, thereby achieving the effect of retaining the skin color and enhancing the effect of naturalness.
[0119] Step 5022: Obtain the skin display area based on the character's skin color and multiple groups of superpixel blocks.
[0120] In an optional embodiment, the average pixel value of each group of super pixel blocks can be calculated respectively, and a group of super pixel blocks closest to the pixel value of the person's skin color can be determined from multiple groups of super pixel blocks, and the group of super pixel blocks can be used as skin blocks. It can be understood that the skin block can include not only the skin of the face display area, but also the skin of the neck, hands and other display areas. In this way, more accurate image processing results can be obtained through super pixel technology.
[0121] Based on the above processing of global image features and local image features, considering that the original wallpaper image generally has both global image features and local image features, the original wallpaper image can also be fused, so that in the process of image processing of the original wallpaper image, not only global image features but also local image features can be considered, so that more accurate and natural image processing results can be achieved. Fig. 6A , is a schematic diagram of a process for generating a target wallpaper image in a wallpaper image display method provided in an embodiment of the present application, which may include but is not limited to the following steps:
[0122] Step 601: input the original wallpaper image. For example, the original wallpaper image may be a wallpaper image selected by the user; it is understood that in this scenario, the terminal device may provide the user with an entry for selecting a wallpaper image, such as an entry for changing wallpapers in a theme APP, a wallpaper APP, or on a desktop interface in response to a two-finger pinch operation or the like. For another example, the original image wallpaper may also be an original wallpaper image provided by a theme developer or the like, which is not limited in this application.
[0123] Step 602: input at least one reference image. Exemplarily, the reference image may be, for example, an image with lighting environments at different times, such as images with lighting environments at early morning, morning, noon, afternoon, evening, and early morning. Another exemplary example is that the reference image may also be an image with lighting environments at different weather conditions, such as images with lighting environments at sunny, rainy, snowy, overcast, and cloudy days.
[0124] For at least one reference image, the following steps 603 to 609 may be performed in sequence for each reference image until a corresponding target wallpaper image is obtained based on each reference image. Exemplarily, when at least one image includes reference image 1, reference image 2, and reference image 3, the original wallpaper image may be first processed based on reference image 1 through the following steps 603 to 609 to obtain target wallpaper image 1, and then the original wallpaper image may be processed based on reference image 2 through the following steps 603 to 609 to obtain target wallpaper image 2, and then the original wallpaper image may be processed based on reference image 3 through the following steps 603 to 609 to obtain target wallpaper image 3.
[0125] Step 603: Process the at least one reference image in sequence to determine whether there is an unprocessed reference image. If there is an unprocessed reference image, the following steps 604 to 608 may be performed respectively; if there is no unprocessed reference image, the processing flow ends.
[0126] Step 604: Perform person detection on the original wallpaper image. The processing flow of person detection is not limited in the embodiment of the present application, for example, person detection can be performed according to a neural network model or the like.
[0127] Step 605: Determine whether the original wallpaper image contains a person. If it is determined that the original wallpaper image contains a person, the following step 606 may be performed; if it is determined that the original wallpaper image does not contain a person, step 607 may be performed. It can be understood that since the original wallpaper image does not contain a person, color fusion with the ambient light processed image will not be performed in step 607, that is, the result output in step 607 in this scenario is actually the processing result of the ambient light processed image.
[0128] Step 606: Acquire the skin display area in the original wallpaper image. The present application also does not limit the processing flow of acquiring the skin display area, for example, the acquisition of the skin display area can be achieved based on superpixel technology.
[0129] The processing performed from step 604 to step 606 can also be found in Figure 5 The processing flow shown.
[0130] Step 607: Process the image based on the skin display area and the ambient light to perform color fusion.
[0131] Exemplarily, when the original wallpaper image includes people, after the ambient light processing of the original image wallpaper is performed based on the reference image, the overall environmental style in the reference image can be transferred to the original wallpaper image, so that the original wallpaper image has the ambient light atmosphere of the reference image; the skin color of the people in the original wallpaper image can also be retained through the fusion formula, thereby improving the look and feel and naturalness of the generated wallpaper.
[0132] In an optional embodiment, after obtaining the skin display area based on step 606 and obtaining the ambient light processed image based on step 608, color fusion can be performed according to a certain fusion ratio, so as to achieve a display effect that allows the skin to have a specific reference image ambient light reflection while maintaining the natural feeling of the image. Color fusion can be shown as the following formula 1:
[0133] α(C 肤色 (R, G, B))+β(C 参考图像环境光颜色 (R, G, B))) = C 目标色 (R, G, B) Formula 1
[0134] Among them, α can be used to indicate the degree of image processing of the skin display area. The larger α is, the greater the degree of skin color preservation is, and the smaller α is, the smaller the degree of skin color preservation is; C 肤色 (R, G, B) can be used to represent the color of the skin display area obtained based on step 606; β can be used to represent the degree of image processing of the original wallpaper image based on the ambient light color of the reference image. The larger β is, the greater the degree of image processing is, and the smaller β is, the smaller the degree of image processing is; C 目标色 (R, G, B) can be used to represent the color effect after color fusion.
[0135] In an optional embodiment, the sum of α and β can be 1. Exemplarily, when α=0 and β=1, it means that the skin color processing result after ambient light processing is completely retained, and the original skin color is not retained, but the skin of the character will look very unnatural in this way; for example, it can be a scene that does not contain a character in the original wallpaper image based on step 605, and the skin display area will not be included at this time. In another exemplary embodiment, when α=1 and β=0, it means that the skin color of the character in the original wallpaper image is completely retained, but in this way the skin color of the character will have a large contrast with the ambient light, resulting in poor effect. In another optional example, when α=0.5 and β=0.5, it means that the new skin color is mixed with the original skin color in a 1:1 ratio according to the skin color after ambient light processing, which can usually achieve a better effect, retaining both the original skin color and part of the lighting characteristics of the environment, so that the target wallpaper image can be more natural and harmonious. It should be noted that the embodiment of the present application does not limit the ratio of color fusion, and can be designed according to the actual scene.
[0136] Step 608: Perform ambient light processing on the original wallpaper image based on the current reference image to obtain an ambient light processed image. The ambient light processing process can be found in the contents described in the above embodiments, which will not be described in detail here.
[0137] Step 609, obtaining a single target wallpaper image. It can be understood that step 608 can realize ambient light processing of the original wallpaper image, so that the original wallpaper image has the ambient light atmosphere of the reference image; through the processing of steps 604 to 607, the original wallpaper image can also retain the color characteristics of the skin display area of the person included in the original wallpaper image in a certain proportion during the ambient light processing, so that the obtained target wallpaper image is more harmonious and natural.
[0138] It can be understood that when there are multiple reference images, multiple corresponding target wallpaper images can be obtained, which can also be understood as a set of target wallpaper images corresponding to the original wallpaper image.
[0139] For example, Figure 6B The following is a schematic diagram of an interface of a wallpaper image display method provided in an embodiment of the present application. Figure 4 The original wallpaper image 400 shown, if not Fig. 6A The process shown in the figure is used for color fusion, and the processed image is shown in interface 600A. It can be seen from interface 600A that after the image is processed by ambient light, the local features of the face display area are weakened, resulting in distortion. Fig. 6A The process shown in the figure is used for color fusion, and the processed image is shown in interface 600B. It can be seen from interface 600B that when the original wallpaper image is subjected to ambient light processing, the local image features are processed to different degrees and color fusion is performed, and the processed target wallpaper image can better retain the local image features of the face display area in the original wallpaper image.
[0140] For example, Figure 6C Another interface schematic diagram of a wallpaper image display method provided in an embodiment of the present application. Figure 6C The interface 61A is the original wallpaper image, the interface 60 is the reference image, and the interface 62A is not used. Fig. 6A The wallpaper image obtained by color fusion in the process shown is the skin area in the interface 61A that is not extracted. It can be seen from the interface 62A that after the image is processed by ambient light, the local features of the face display area are weakened, resulting in distortion. Figure 6C Interface 61B is the original wallpaper image, interface 60 is the reference image, and interface 62A is the adopted Fig. 6AThe wallpaper image obtained by color fusion in the process shown is the skin area in the extraction interface 61B. It can be seen from the interface 62B that when the original wallpaper image is subjected to ambient light processing, the local image features are processed to different degrees and color fusion is performed, and the processed target wallpaper image can better retain the local image features of the face display area in the original wallpaper image.
[0141] Part 2: Displaying the wallpaper image
[0142] Based on the set of target wallpaper images obtained in the first part, a switching display based on a set of wallpaper images can be realized. The switching display mode may include but is not limited to: changing with time or with weather (also known as "environment-aware wallpaper" function), random display, timed carousel, or slice splicing display, etc.
[0143] In an optional embodiment, Figure 7 A scene schematic diagram of a wallpaper image display method provided in an embodiment of the present application. Figure 7 The illustrated example may be a set of wallpaper images generated based on time and weather corresponding to an original image wallpaper. For example, in a scenario where the terminal device turns on the environment-aware wallpaper, the terminal device may switch and display the set of wallpaper images in response to time and weather.
[0144] First, the terminal device can use the weather as a selection condition for switching display. If the terminal device detects and responds that the weather is sunny, it can choose to switch the wallpaper image according to time. For example, it can switch to display the target wallpaper image with the ambient light atmosphere of the time at the corresponding time, such as switching to display the target wallpaper image with the ambient light atmosphere of the morning between 6 o'clock and 9 o'clock. It is understandable that the terminal device can switch to display different time-based target wallpaper images when the corresponding time point arrives; or, in order to avoid background activities in the locked screen state of the terminal device, it can also switch to display the time-based target wallpaper image corresponding to the unlocking moment when unlocking, and this application does not limit this.
[0145] For another example, if the terminal device detects and responds to the weather being special weather other than sunny, the destination wallpaper image corresponding to the special weather can be displayed; or, the destination wallpaper image corresponding to the special weather can be displayed within a certain preset duration, and after the certain preset duration is reached, the wallpaper image is switched to be displayed according to the time, for example, the certain preset duration can be 1 hour or 2 hours, etc. In addition, the terminal device can also detect and respond to the unlocking operation, and switch to display the destination wallpaper image based on the weather corresponding to the unlocking moment, so as to avoid the background activities of the terminal device in the lock screen state, thereby saving power, etc. Alternatively, the terminal device can also switch to display the destination wallpaper image corresponding to the updated weather information after obtaining the updated weather information, and this application does not limit this. Among them, special weather can include, but is not limited to: rainy day / cloudy / thunderstorm, snowy day, fog / haze, sandstorm, etc. Therefore, by switching to display different destination wallpaper images at different times or in different weathers, the effect of reminding the user through wallpaper can be achieved.
[0146] It should be noted that although Figure 7 In the embodiment of the present invention, a set of target wallpaper images can be switched and displayed according to time and weather. The present application can also be based on other possible switching logics when it is implemented, and the present application does not limit this. For example, it can also be based on temperature information. When the temperature is high, the target wallpaper image generated by using the desert as the reference image can be used, and when the temperature is low, the target wallpaper image generated by using the snow as the reference image can be used. For another example, it can also be based on seasonal information or solar term information, such as selecting a target wallpaper image generated based on a picture with more light green as the reference image in spring (such as the vernal equinox), selecting a target wallpaper image generated based on a picture with more dark green as the reference image in summer (such as the summer solstice), selecting a target wallpaper image generated based on a picture with more dark green as the reference image in autumn (such as the autumnal equinox), and selecting a target wallpaper image generated based on a picture of golden fallen leaves as the reference image in winter.
[0147] In addition, while switching to display different purpose wallpaper images, you can also combine text, voice, pop-up windows, special effects and other forms for auxiliary display to enhance the display effect.
[0148] In another optional embodiment, if the user selects the slice splicing display mode, multiple target wallpaper images included in a set of target wallpaper images can be sliced and spliced from left to right in the order of time from early to late. Figure 8 This is a schematic diagram of an interface of a wallpaper image display method provided in an embodiment of the present application. Figure 8 As shown, the wallpapers from different times can be divided equally according to the number of sheets. The first wallpaper is cut from the first strip from left to right as the first slice, the second wallpaper is cut from the second strip from left to right as the second slice, and so on. Figure 8 The right picture in the figure is a sliced and spliced target wallpaper image. It is understandable that the slices displayed from left to right in the spliced wallpaper image obtained based on the set of wallpapers can be changed based on the time sequence. The slice splicing display method can improve the user experience in the wallpaper display scene, and can realize the change of ambient light atmosphere at different times of the day on a wallpaper image at the same time.
[0149] It should be noted that the embodiment of the present application does not limit the form of slice splicing display, in addition to the form of slicing splicing from left to right, it can also be slicing splicing from top to bottom, etc. For example, Fig. 9 Another interface schematic diagram of a wallpaper image display method provided by an embodiment of the present application. 901 shows a slice splicing form from left to right. The entire image is divided into six vertical blocks. The marked area corresponding to each block shows the area of the generated set of images at the corresponding time, for example, corresponding to slice 1 intercepted from the target wallpaper image with an ambient light atmosphere in the early morning, slice 2 intercepted from the target wallpaper image with an ambient light atmosphere in the morning, slice 3 intercepted from the target wallpaper image with an ambient light atmosphere at noon, slice 4 intercepted from the target wallpaper image with an ambient light atmosphere in the afternoon, slice 5 intercepted from the target wallpaper image with an ambient light atmosphere at dusk, and slice intercepted from the target wallpaper image with an ambient light atmosphere at night. 902 shows the display effect of horizontal splicing. The entire image is divided into six horizontal blocks, and the blocks correspond to the areas of the generated set of images at different time points from early morning to night from top to bottom. 903 shows the effect of oblique splicing. The entire image is divided into six oblique blocks, and the blocks correspond to the areas of the generated set of images at different time points from early morning to night from the lower left to the lower right. 904 shows the stitching effect of closed curves. The entire image is divided into six closed curve blocks. The blocks from the outside to the inside correspond to the areas where the set of images are generated at different time points from early morning to night.
[0150] In addition, the slices may be directly spliced together, or they may be spliced together after being processed by a Gaussian blur filter with a smaller diameter, so as to achieve smooth processing of the splicing points.
[0151] In addition, based on the slice splicing display format, it is also possible to switch to display specific display effects on the slices, thereby enhancing the relevance of the highlighted slices with time information or environmental information. Fig.10 This is another interface diagram of a wallpaper image display method provided by an embodiment of the present application. Fig.10As can be seen in FIG. 1 , the specific display effect may include, but is not limited to, at least one of the following forms: slice emphasis, slice enlargement, slice highlighting, adding shadows, adding dynamic effects, etc. In this way, by means of slice emphasis, slice highlighting, etc., the current time can be highlighted in multiple spliced slices, for example, slice 1 cropped from the target wallpaper image obtained based on the morning ambient light atmosphere can be highlighted. Alternatively, by means of slice enlargement, adding shadows, etc., the current time can also be highlighted, and an emphasis and micro-stereoscopic effect can also be created.
[0152] In addition, specific display effects can also be displayed by switching corresponding slices based on time information. For example, a specific display effect can be displayed on the first slice in the early morning, and when it changes from early morning to morning, the specific display effect can be switched to the second slice. In this way, the emphasized and prominent slices can be associated with the time information, etc., thereby enhancing the interest of the wallpaper display.
[0153] In addition, in the wallpaper image display method introduced based on the aforementioned embodiment, other special effects can also be combined for display, for example, including but not limited to: adding and displaying specific floating bubbles when displaying wallpaper, such as wind lines, falling raindrops, lightning, snowflakes, etc.
[0154] It is understandable that the wallpaper display effect that can be achieved by the wallpaper image display method provided in the above embodiments can provide users with a preview interface of the wallpaper display effect in paths such as in the theme APP and the wallpaper category setting included in the setting APP, so that users can preview and switch to display a set of target wallpaper images, so that users can determine whether to enable the functions that can be achieved by the method provided in the embodiments of the present application. For example, Fig.11 This is a schematic diagram of an interface of a wallpaper image display method provided in an embodiment of the present application. Fig.11 As shown in interfaces 1101 to 1106 in the interface, when a wallpaper is displayed in the theme APP, a control 1100a (also referred to as a "time wallpaper") can be displayed, and the display effects of different wallpaper images corresponding to different time periods can be previewed through the control 1100a. Exemplarily, when the terminal device detects a touch operation on the control 1100a on the interface 1101, the preview display result of the wallpaper image with the ambient light atmosphere in the early morning can be switched to the preview display result of the wallpaper image with the ambient light atmosphere in the morning. In addition, when the terminal device detects a touch operation on the "Apply" control 1100b included in interfaces 1101 to 1106, the time wallpaper can be applied on the terminal device, so that the time wallpaper can be displayed on the desktop and / or lock screen, which can also be understood as switching the display of the target wallpaper image corresponding to the time period in different time periods.
[0155] Through the method provided in the embodiment of the present application, the terminal device generates a plurality of target wallpaper images with different ambient light atmospheres based on the original wallpaper image and a plurality of reference images. It can be understood that the ambient light atmosphere of the target wallpaper image can be obtained based on the ambient light atmosphere of the corresponding reference image. In this way, based on the generated multiple target wallpaper images, the switching display of time-aware wallpapers can be realized without consuming a lot of manpower and material resources to prepare or shoot on site, and the look and feel of the generated wallpaper can also be improved. In addition, the display of multiple target wallpaper images can adopt the display method of a single target wallpaper image, and can also adopt the display method of slicing and splicing multiple target wallpaper images, which can improve the diversity and fun of the displayed wallpaper images.
[0156] Fig.12 A flowchart of a wallpaper image display method provided in an embodiment of the present application may include the following steps:
[0157] Step 1201: The terminal device detects a first type of preset event, where the first type of preset event is used to indicate that a preset condition for switching to display different wallpaper images in different time periods is satisfied;
[0158] Step 1201, in response to the first type of preset event, the terminal device switches from displaying the first interface to displaying the second interface; wherein the first interface displays a first wallpaper image, and the second interface displays a second wallpaper image; the first wallpaper image includes a first purpose wallpaper image or a first purpose wallpaper image slice having a first ambient light atmosphere generated based on an original wallpaper image and a first reference image; the second wallpaper image includes a second purpose wallpaper image or a second purpose wallpaper image slice having a second ambient light atmosphere generated based on the original wallpaper image and the second reference image.
[0159] The specific implementation process of step 1201 and step 1202 can refer to the content introduced in the above embodiment, which will not be repeated here.
[0160] Based on the above embodiments, the present application also provides a terminal device, which includes multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the terminal device in each method described in the embodiments of the present application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on the specific implementation. Figure 5 In the embodiment shown, the terminal device performs steps 500 to 502, or performs Fig. 6A In the embodiment shown, the terminal device executes steps 601 to 609, or executes Fig.12 In the illustrated embodiment, the terminal device executes steps 1201 to 1202.
[0161] Based on the above embodiments, the present application further provides a terminal device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the terminal device is running, the at least one processor executes the functions executed by the terminal device in each method described in the embodiments of the present application. Figure 5 In the embodiment shown, the terminal device performs steps 500 to 502, or performs Fig. 6A In the embodiment shown, the terminal device executes steps 601 to 609, or executes Fig.12 In the illustrated embodiment, the terminal device executes steps 1201 to 1202.
[0162] Based on the above embodiments, the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables a computer to execute the methods described in the embodiments of the present application when the computer program is executed.
[0163] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.
[0164] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0165] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. It should be understood by those skilled in the art that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0166] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0169] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A wallpaper image display method, characterized in that: Applied in terminal equipment, including: A first type of preset event is detected, where the first type of preset event is used to indicate that a preset condition for switching to display different wallpaper images in different time periods is satisfied; In response to the first type of preset event, the display is switched from the first interface to the second interface; wherein the first interface displays a first wallpaper image, and the second interface displays a second wallpaper image; the first wallpaper image includes a first purpose wallpaper image or a first purpose wallpaper image slice with a first ambient light atmosphere generated based on an original wallpaper image and a first reference image; the second wallpaper image includes a second purpose wallpaper image or a second purpose wallpaper image slice with a second ambient light atmosphere generated based on the original wallpaper image and the second reference image.
2. The method according to claim 1, characterized in that The first type of preset events includes: Arriving at the start time of displaying the second wallpaper image; or, The unlocking time of unlocking the terminal device belongs to the time period of displaying the second wallpaper image, and the locking time corresponding to the unlocking belongs to the time period of displaying the first wallpaper image; or, The first moment of displaying the desktop interface of the terminal device belongs to the time period of displaying the second wallpaper image, and the second moment of last displaying the desktop interface of the terminal device belongs to the time period of displaying the first wallpaper image.
3. The method according to claim 1 or 2, characterized in that: When the first wallpaper image is a first target wallpaper image slice with a first ambient light atmosphere generated based on the original wallpaper image and the first reference image, the first wallpaper image is a spliced wallpaper image including M target wallpaper image slices, and the M target wallpaper image slices are obtained by cropping from corresponding display positions of the M target wallpaper images; The M target wallpaper images are wallpaper images with M kinds of ambient light atmospheres obtained based on the original wallpaper image and the M reference images; M is a positive integer; The first target wallpaper image slice included in the first wallpaper image has a first display effect, and other target wallpaper image slices except the first target wallpaper image slice have a second display effect, and the first display effect is different from the second display effect; When the second wallpaper image includes wallpaper image slices with a second ambient light atmosphere generated based on the original wallpaper image and the second reference image, the second wallpaper image is a spliced wallpaper image including M wallpaper image slices; The second destination wallpaper image slice included in the second wallpaper image has the first display effect, and other destination wallpaper image slices except the second destination wallpaper image slice have the second display effect.
4. The method according to any one of claims 1 to 3, characterized in that The original wallpaper image has a local image feature, at least one preset area belonging to the local image feature has a first sub-ambient light atmosphere, and the display area other than the at least one preset area has a second sub-ambient light atmosphere; wherein the image processing degrees of the first sub-ambient light atmosphere and the second sub-ambient light atmosphere are different.
5. The method according to claim 4, characterized in that The original wallpaper image is a wallpaper image containing a person, and the at least one preset area is a skin area of the person.
6. The method according to any one of claims 1 to 5, characterized in that Before the first type of preset event is detected, the method further includes: Detecting a first operation of a user on a preset control on a third interface, wherein the third interface is a preview interface of the original wallpaper image, and the preset control is used to switch and display a preview interface of a target wallpaper image with a different ambient light atmosphere; In response to the first operation, displaying a fourth interface, wherein the fourth interface is a preview interface of the first destination wallpaper image; The device detects and responds to a second operation of the user on the preset control on the fourth interface, and displays a fifth interface, where the fifth interface is a preview interface of the second destination wallpaper image.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: A second type of preset event is detected, where the second type of preset event is used to indicate that a preset condition for switching to display different wallpaper images under different weather conditions is met; In response to the second type of preset event, the display is switched from the fifth interface to the sixth interface; wherein the fifth interface displays a third wallpaper image, and the sixth interface displays a fourth wallpaper image; the third wallpaper image includes a third purpose wallpaper image or a third purpose wallpaper image slice having a first weather state generated based on the original wallpaper image and a third reference image; the fourth wallpaper image includes a fourth purpose wallpaper image or a fourth purpose wallpaper image slice having a second weather state generated based on the original wallpaper image and a fourth reference image.
8. The method according to claim 7, characterized in that The first weather state is sunny.
9. A terminal device, characterized in that: The system comprises at least one processor coupled to at least one memory, wherein the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 8.
11. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Processing method, intelligent terminal and storage medium
CN121357281A
Wallpaper generation and theme switching method and device, electronic equipment and storage medium
CN121501393A