Wallpaper generation method and device

By obtaining real-time environment information and user input information on the terminal device, and using the wallpaper generation model to generate wallpaper images, the problem of lack of intelligence and personalization of traditional wallpaper generation methods is solved, and dynamic updates and personalized management of wallpapers are realized.

CN119781885APending Publication Date: 2025-04-08SHANGHAI INNOVATECH INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411852178.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

Traditional wallpaper generation methods are difficult to meet the diverse needs of users and lack intelligence and personalization.

Method used

Real-time environmental information and user input information are obtained through terminal devices, and wallpaper generation models are used to generate wallpaper images, combining information such as time, weather, festivals and geographical location to improve the intelligence and personalization of wallpapers.

Benefits of technology

It realizes dynamic updates and personalized management of wallpapers, improves user experience, and meets the diverse needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781885A_ABST
    Figure CN119781885A_ABST
Patent Text Reader

Abstract

The present application provides a wallpaper generation method and device, wherein a terminal device obtains first information and second information, sends the first information and second information, and a server device inputs the first information and second information into a wallpaper generation model, generates a wallpaper image and transmits it back to the terminal device, and the terminal device replaces the wallpaper. The terminal device also obtains third information, and the third information is used to determine the timing of sending the first information and second information to the server device. The server device generates a wallpaper based on the received first information and second information and transmits it back to the terminal device, and the terminal device replaces the wallpaper. This enables more intelligent and personalized dynamic management of wallpapers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and more specifically, to a wallpaper generation method and device. Background Art

[0002] Wallpaper, as an important component of decoration and functional design, is widely used in the display interface of electronic devices, including smartphones, tablets, and computers. Traditional wallpaper generation methods usually focus on static images or predefined patterns, which are difficult to meet the diverse needs of users. Therefore, a wallpaper generation method is needed to improve the personalization and intelligence of wallpaper. Summary of the invention

[0003] The present application provides a wallpaper generation method to enhance the intelligence and personalization of wallpaper generation.

[0004] In a first aspect, a wallpaper generation method is provided. The generation method is executed by a terminal device, and may also be executed by a module or unit (such as a chip, etc.) in the terminal device.

[0005] The method includes: obtaining first information, which is real-time environmental information; obtaining second information, which is information input by a user; sending the first information and the second information, and receiving a wallpaper image, wherein the wallpaper image is generated based on the first information and the second information using a wallpaper generation model.

[0006] Based on the above method, wallpaper is generated by combining real-time information (i.e., the first information) and information input by the user (i.e., the second information). The real-time information includes information such as the current time, festival, weather, and geographic location. The weather information may include data such as temperature, humidity, and weather type. The festival information includes the category of festivals, such as New Year's Day, Spring Festival, etc. Combining real-time information can improve the intelligence of generated wallpaper. In addition, the information in user data represents the user's preferences. Combining real-time information and user preference information to generate wallpaper can improve the intelligence and personalization of wallpaper generation.

[0007] In combination with the first aspect, in a possible implementation, the method also includes: obtaining third information; determining the timing of sending the first information and the second information based on the third information, the third information including one or more of set frequency, weather changes, holiday changes, geographic location changes, etc.

[0008] Based on the above implementation method, the timing of sending the first information and the second information is determined according to the third information. For example, the third information is the frequency set by the user, that is, the timing of sending the first information and the second information is determined according to the frequency set by the user, triggering the generation of wallpaper. For example, in one implementation method, the wallpaper is set to be updated every 10 minutes, and the first information and the second information are sent to the server every ten minutes. The server generates a wallpaper image according to the first information and the second information through a wallpaper generation model, and sends it to the terminal device. The terminal device replaces the wallpaper with the wallpaper image, which can realize dynamic update of the wallpaper to achieve automatic management of wallpaper.

[0009] In combination with the first aspect, in a possible implementation manner, obtaining the first information includes: calling one or more of current time, festival, weather, and geographic location information through an API.

[0010] Based on the above implementation method, the current environment information can be quickly obtained by using API calls, and the current environment information can be used as the input parameter of the wallpaper generation model to improve the efficiency and intelligence of wallpaper generation.

[0011] In combination with the first aspect, in a possible implementation method, obtaining the second information includes: detecting a natural language description input by the user and / or a tag selected by the user, and if so, obtaining the second information, the second information including the natural language description input by the user and / or the tag selected by the user, and if not, the second information is empty.

[0012] Based on the above implementation, the second information is the user's input information, representing the user's preference. In the dynamic generation process, if the user expresses his or her preference by entering a text description or selecting a specific tag, the second information and the first information are used as input parameters of the preset generation model to generate the wallpaper; if the user's preference information set, i.e., the second information, is not detected, the first information is used as the input parameter of the preset generation model to generate the wallpaper. By combining the user's settings, the personalization of wallpaper generation can be improved.

[0013] In a second aspect, a wallpaper generation method is provided, which is executed by a server device, and may also be executed by a module or unit (such as a chip, etc.) in the server device.

[0014] The method includes: receiving first information and second information, the first information being real-time environment information, and the second information being information input by a user; and generating a wallpaper image using a wallpaper generation model according to the first information and the second information.

[0015] Based on the above implementation, the wallpaper generation model reasoning is performed according to the first information and the second information as inputs of the wallpaper generation model, which can improve the personalization and intelligence of wallpaper generation.

[0016] In combination with the second aspect, in one implementation, the method further includes: sending a wallpaper image.

[0017] Based on the above implementation, the wallpaper generation model is trained and inferred by the server to generate wallpaper images, which can be used directly on the server device or sent to the terminal device for use. Sending the generated wallpaper image to the client (or terminal device) can increase the speed at which the client obtains the wallpaper image and improve the user experience.

[0018] In combination with the second aspect, in one implementation, the method further includes: the wallpaper generation model includes one or more of the following models: a generative adversarial network, a variational autoencoder, and a diffusion model.

[0019] Based on the above implementation method, the server side can train the wallpaper generation model through a large number of keyword tags and wallpaper images, where the wallpaper generation model can generate one or more generation models such as adversarial networks, variational autoencoders and diffusion models, which can be selected according to actual needs and factors such as server computing power to improve the generation effect.

[0020] In combination with the second aspect, in one implementation, the method further includes: parsing keywords in the second information, and mapping the keywords with predefined wallpaper styles and theme tags.

[0021] Based on the above implementation, the second information is processed and mapped with the preset label. For example, "snow" is matched with the preset "winter" label. By mapping keywords with the preset label library, the relevance of the generated results with the preset label library can be improved.

[0022] In combination with the second aspect, in one implementation, the method further includes: optimizing the quality of the wallpaper image, including one or more of image compression and optimization, resolution adaptation, color and contrast optimization, and format conversion methods.

[0023] Based on the above implementation, the wallpaper image generated by the server is optimized to improve the display effect on different devices.

[0024] It should be understood that in the second aspect and various implementation methods of the second aspect, effects that are not described in detail can be found in the first aspect and will not be repeated here.

[0025] In a third aspect, a wallpaper generating device is provided, including: a real-time environment detection module, used to obtain first information, the first information is real-time environment information; a user interaction module, used to obtain second information, the second information is information input by the user; a sending module, used to send the first information and the second information; a receiving module, used to receive a wallpaper image and replace the current wallpaper.

[0026] In combination with the third aspect, in one implementation, the user interaction module is also used to obtain third information, and determine the timing of sending the first information and the second information based on the third information. The third information includes one or more of the following information: set frequency, weather changes, holiday changes, geographic location changes, etc.

[0027] The real-time environment detection module, the user interaction module, the sending module and the receiving module are used to execute the method described in the first aspect or its implementation method.

[0028] In a fourth aspect, a wallpaper generating device is provided, including: a receiving module for receiving first information and second information; and a wallpaper generating module for generating a wallpaper image according to the first information and the second information.

[0029] In combination with the fourth aspect, in one implementation, the device further includes: a sending module, configured to send a wallpaper image.

[0030] In conjunction with the fourth aspect, in one implementation, the wallpaper generation module is further used to parse keywords in the second information, and map the keywords with predefined wallpaper styles and theme tags.

[0031] In combination with the fourth aspect, in one implementation, the device further includes: an image quality optimization module, configured to optimize the quality of the wallpaper image.

[0032] The receiving module, wallpaper generating module, image quality optimizing module and sending module are used to execute the method described in the second aspect or its implementation method.

[0033] In a fifth aspect, a wallpaper generating device is provided, comprising: a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program in the memory to execute a method as described in any one of the first aspect or the second aspect.

[0034] In the technical solution provided in the embodiment of the present application, the first information and the second information are obtained by the terminal device, and the server device inputs the first information and the second information obtained by the terminal device into the predefined wallpaper generation model, generates a wallpaper image and transmits it back to the terminal device, and the terminal device replaces the wallpaper. In addition, the terminal device also obtains third information, and the third information is used to determine the timing of sending the first information and the second information to the server device. The server device generates a wallpaper based on the received first information and the second information and transmits it back to the terminal device, and the terminal device replaces the wallpaper. This realizes more intelligent and personalized dynamic management of wallpapers. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a method to manually change the wallpaper.

[0036] Figure 2 A method for generating wallpaper based on a base image.

[0037] Figure 3 A wallpaper generation method is provided in an embodiment of the present application.

[0038] Figure 4 A wallpaper generating method for a server device is provided in an embodiment of the present application.

[0039] Figure 5 Another wallpaper generation method provided in an embodiment of the present application.

[0040] Figure 6 A schematic structural block diagram of a wallpaper generating device provided in an embodiment of the present application.

[0041] Figure 7 A schematic structural block diagram of another wallpaper generating device provided in an embodiment of the present application.

[0042] Figure 8 A schematic structural block diagram of another wallpaper generating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0044] Reference Figure 1 , as an example, Figure 1 The method 100 for manually changing wallpaper comprises the following steps.

[0045] S101, storing a wallpaper image.

[0046] S102, manual replacement by the user.

[0047] The terminal device stores a large number of static wallpaper images of different styles and themes, allowing the user to change the wallpaper manually or through a timed switching function.

[0048] Reference Figure 2 , as an example, Figure 2 A method for generating a wallpaper based on a basic image 200 includes the following steps.

[0049] S201, set style or theme.

[0050] S202, generating wallpaper based on image generation technology.

[0051] Based on the style or theme set by the user, basic image generation technology is used to generate wallpaper images of a specific style or theme.

[0052] Above Figure 1The method shown in the figure usually requires the user to manually select and manage wallpaper files, which lacks intelligence. Figure 2 Although the method shown can achieve dynamic generation to a certain extent, the generated wallpaper cannot fully meet the user's personalized needs because the model training and generated image quality are not ideal and the real-time environmental factors are usually not considered.

[0053] Based on this, the present application proposes a wallpaper generation method, which improves the intelligence and personalization of wallpaper generation by combining real-time environmental information and user description information as input parameters of a wallpaper generation model.

[0054] Reference Figure 3 , as an example, Figure 3 A wallpaper generation method is provided in an embodiment of the present application. The method 1000 includes the following steps.

[0055] S1100, obtaining first information, where the first information is real-time environment information.

[0056] The real-time environmental information includes one or more of time, weather, festival, geographic location and other information.

[0057] The acquisition method includes but is not limited to a system call, an API call, or one or more methods identified based on call information.

[0058] For example, to obtain time and date information, the current time and date of the device can be obtained through a system call. For another example, to obtain weather information, a third-party API can be called. In one implementation, the weather information of the current location of the device can be obtained through the OpenWeather API, where the weather information can include one or more of temperature, humidity, or weather type. For another example, holiday information can be obtained through an identification method. In one implementation, the calendar API can be used to determine whether the current date is a holiday, and identify the holiday type (such as New Year's Day, Spring Festival, etc.), so as to add specific holiday elements to the wallpaper. The identification method includes but is not limited to a judgment method based on a fixed date or a method of judging traditional festivals in combination with the lunar calendar date. In another time method, holiday information can also be obtained by directly calling the online holiday API.

[0059] In one implementation, the time, weather, and holiday information are obtained, and the device location can be obtained through device GPS positioning to ensure the localization of weather data and holiday information.

[0060] S1200: Acquire second information, where the second information is information input by a user.

[0061] The information input by the user may be text description information input by the user, for example: "flower fields in spring" or "beach in the morning". The input method may be text input or voice input, which is not limited in this application.

[0062] The information input by the user may also be a predefined tag selected by the user. The predefined tag may be an existing wallpaper category or theme, or may be set according to an application scenario, which is not limited in this application.

[0063] The information input by the user represents the user's preference. Taking the user's preference as one of the input parameters for wallpaper generation can improve the personalization of wallpaper generation.

[0064] S1300, sending first information and second information.

[0065] S1400: Generate a wallpaper image using a wallpaper generation model according to the first information and the second information.

[0066] Reference Figure 4 , as an example, Figure 4 A wallpaper generation method for a server device is provided in an embodiment of the present application. The method 300 includes the following steps. Figure 3 and Figure 4 This paper introduces a method for generating wallpaper images using a wallpaper generation model.

[0067] S1401, receiving a user request.

[0068] S1401 corresponds to S1300, the terminal device sends the first information and the second information, and the server receives the user request, wherein the user request includes the real-time environment information of the terminal device and the information input by the user, that is, the first information and the second information.

[0069] The first information and the second information are information acquired by the terminal device at the current moment, which are sent to the server and further processed by the server.

[0070] In one implementation, the terminal device packages the acquired real-time environmental data in real time and sends it to the server via an API.

[0071] In another implementation, the terminal device packages the acquired user input information together with the real-time environment data and sends the package to the server.

[0072] One way to implement packaging is to convert it into JSON format.

[0073] It should be understood that in one possible case, the user does not provide any preference information, that is, does not input the second information. In this case, only the first information is packaged and sent to the server.

[0074] S1402, parse the information input by the user and the real-time environment information, and extract keywords and environment variables.

[0075] Here, parsing the information input by the user refers to the server parsing the natural language description input by the user and extracting keywords.

[0076] For example, the natural language description input by the user can be parsed by natural language processing (NLP) technology to identify keywords. For example, if the description input by the user is "a kitten in a snowy scene", "snow" and "kitten" may be extracted as keywords.

[0077] In one implementation, a fine-tuned BERT or GPT model can be used to parse the user's description and extract key features.

[0078] Among them, the real-time environment information is parsed to extract environment variables.

[0079] S1403, keyword vectorization.

[0080] S1404, label mapping.

[0081] S1405: Generate model input parameters.

[0082] In order to facilitate label mapping or recognition by the server-side wallpaper generation model, the parsed keywords are represented as vectors.

[0083] In one implementation, a word embedding technique may be used to generate a semantic vector. For example, Word2Vec or BERT may be used to generate a semantic vector. In a specific implementation, this application does not limit the method of representing information.

[0084] Tag mapping refers to mapping keywords with predefined wallpaper styles and theme tags. For example, the user description information is "kitten in the snow scene", and the text is parsed to find: "snow" and "kitten" as keywords, where "snow" matches the "winter" style, so "snow" can be mapped to "winter". In this embodiment, the original keywords and / or the mapped keywords can be used as the second information. The predefined wallpaper styles and theme tags correspond to the predefined tag options in the user input information. By mapping keywords with predefined tags, the input parameters of the wallpaper generation model are optimized, and the relevance of the generated results can be improved.

[0085] Optionally, map the vectorized keywords to predefined wallpaper styles and theme tags.

[0086] Optionally, the label mapping method can be implemented by a classifier mapping method, and this application does not limit the specific mapping method.

[0087] Optionally, the model input parameters may be generated by vectorizing the first information and the second information.

[0088] S1406, loading a wallpaper generation model.

[0089] S1407, executing the inference task to generate a high-resolution wallpaper image.

[0090] Among them, the wallpaper generation model can be one or more generation models such as pre-trained generative adversarial networks, variational autoencoders, and diffusion models.

[0091] Among them, pre-training refers to training with a large number of keyword labels and wallpaper images to guide the generation model to learn the mapping relationship between keyword labels and wallpaper image content.

[0092] Optionally, the wallpaper generation model can be deployed on the server using a framework such as TensorFlow Serving or ONNX.

[0093] In one implementation, the server receives a POST request for user description and environment data through an API, and parses the JSON data to extract keyword vectors and environment information. The user description and environment variables are converted into model input vectors, and inference operations are performed to generate wallpaper images that meet user needs. This process can be accelerated on the server side using a GPU to increase the generation speed.

[0094] S1408, wallpaper image compression and format conversion.

[0095] S1409, adjusting the wallpaper image resolution.

[0096] Steps S1408 and S1409 can be collectively referred to as post-processing the generated wallpaper image, or optimizing the generated wallpaper image. Optimizing the wallpaper image generated by the wallpaper generation model can ensure the display effect on different devices and improve the transmission quality. Post-processing the generated wallpaper image can also include one or more of the following implementations, and this application does not limit the post-processing operation.

[0097] In one implementation, the generated wallpaper image can be converted into a JPEG or PNG format compatible with the terminal device through a file conversion method, ensuring that the wallpaper image format is compatible with the terminal device and supports wallpaper display on different screen types.

[0098] In another implementation, the wallpaper size can be adjusted according to the screen resolution of the terminal device to avoid stretching or blurring. For example, an image scaling algorithm is used to match the wallpaper with the screen resolution to avoid distortion.

[0099] In another implementation, the wallpaper image may be subjected to image processing methods such as sharpening and denoising to perform preliminary optimization on the image and enhance the visual display effect.

[0100] In another implementation, the brightness, saturation, contrast, etc. of the wallpaper image may be adjusted according to the brightness and contrast characteristics of the terminal device screen to enhance the visual effect.

[0101] In another implementation, the wallpaper image can be losslessly compressed to reduce the file size, improve transmission efficiency, and thus increase loading speed.

[0102] S1500, send wallpaper image.

[0103] In one implementation, the wallpaper image may be encapsulated in JSON format, including metadata such as the image URL and generation time, and returned to the terminal device through an API.

[0104] Please continue to refer to Figure 3 , S1600, replace the wallpaper with the wallpaper image.

[0105] After the mobile terminal receives the new wallpaper returned by the server, it replaces the current wallpaper and updates the wallpaper display. The wallpaper can be a desktop wallpaper or a lock screen wallpaper, which is not limited in this application.

[0106] Reference Figure 5 , as an example, Figure 5 Another wallpaper generation method provided in an embodiment of the present application includes the following steps.

[0107] S1100, obtaining first information, where the first information is real-time environment information.

[0108] S1200: Acquire second information, where the second information is information input by a user.

[0109] S2100, obtaining third information, where the third information is dynamically generated information set by a user, that is, information used to determine the timing of sending the first information and the second information.

[0110] S1300, sending first information and second information.

[0111] S1400: Generate a wallpaper image using a wallpaper generation model according to the first information and the second information.

[0112] S1500, send wallpaper image.

[0113] S1600: Replace the wallpaper with the wallpaper image.

[0114] In the above steps, the methods implemented by S1100, S1200, S1300, S1400, S1500, and S1600 can be found in Figure 3 For the sake of brevity, the description in is not repeated here.

[0115] Among them, in S2100, the third information is dynamically generated information set by the user. The third information is used to determine the timing of sending the first information and the second information. The third information includes one or more of the set frequency, weather changes, holiday changes, geographic location changes and other information.

[0116] Taking the third information as a set frequency as an example, according to the frequency set by the user, within the set time interval, the terminal device automatically sends an update request to the server, and the update request includes the current description information and environmental data.

[0117] The frequency set by the user may be updated once every hour or once every day, and this application does not limit this.

[0118] In one implementation, the terminal device periodically triggers an update request through a timed task function, i.e., sets a frequency (an example of the third information), i.e., periodically repeats step S1300. Accordingly, the server performs the method in steps S1400 and S1500 on the update request to realize the sending and receiving of automated requests, and the terminal device correspondingly performs step S1600 to ensure that the wallpaper is updated at the frequency specified by the user, so as to realize the dynamic generation and dynamic management of wallpaper.

[0119] Among them, automatically sending an update request (that is, an example of determining the timing of sending the first information and the second information based on the third information) means updating according to the frequency set by the user, for example once every hour. Within each hour, the terminal device sends the current environmental data and description information, that is, the first information and the second information, to request the generation of wallpaper.

[0120] In another implementation, the terminal device can also trigger an update request based on weather changes (an example of the third information). For example, when the set frequency is weekly updates, if the weather changes from sunny to cloudy on a certain day of the week, an update request can be triggered, that is, step S1300, to obtain the current first information and second information, and send them to the server. Accordingly, the server performs the method of steps S1400 and S1500 to realize the sending and receiving of automated requests, and the terminal device performs step S1600 accordingly to change the wallpaper. Triggering a wallpaper update request based on weather changes can make the wallpaper more suitable for the current environment, enhance the user experience, and realize the dynamic generation and dynamic management of wallpapers.

[0121] Reference Figure 6 , as an example, Figure 6 This is a schematic structural block diagram of another wallpaper generation device provided in an embodiment of the present application. The wallpaper generation device 3000 includes a real-time environment detection module 3010 , a user interaction module 3020 , a sending module 3030 , and a receiving module 3040 .

[0122] The real-time environment detection module 3010 is used to obtain first information, where the first information is real-time environment information;

[0123] The user interaction module 3020 is used to obtain second information, where the second information is information input by the user.

[0124] Optionally, the user interaction module 3020 is further used to obtain third information, where the third information includes one or more of the following information: setting frequency, weather change, festival change, geographic location change, etc.;

[0125] A sending module 3030, sending first information and second information;

[0126] The receiving module 3040 receives a wallpaper image, wherein the wallpaper image is generated by using a wallpaper generation model according to the first information and the second information.

[0127] Optionally, the user interaction module 3020 is also used to provide a user interface. It may include functional modules such as a description input box, a style tag, and an update frequency setting. The dynamic generation of wallpaper is achieved by using the content entered by the user in the input box and / or the style tag selected (i.e., the second information) and the update frequency set by the user (i.e., an example of the third information). In one implementation, the user interaction module can be implemented through UI design.

[0128] Optionally, the user interaction module 3020 also includes a preview module, which can call the real-time environment detection module 3010 and the user interaction module 3020 to request the generation of a preview image in real time. By generating a preview image on the server side and displaying it in real time, the user's interactive experience can be enhanced.

[0129] In one implementation, the user interaction module 3020 can be implemented through a cross-platform development framework, which can ensure a consistent user experience on different operating systems. For example, it can be implemented through a Flutter or React Native framework.

[0130] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0131] Reference Figure 7 , as an example, Figure 7 This is a schematic structural block diagram of another wallpaper generation device provided in an embodiment of the present application. The wallpaper generation device 4000 includes a receiving module 4010 , a wallpaper generation module 4020 , and optionally, an image quality optimization module 4030 and a sending module 4040 .

[0132] A receiving module 4010, configured to receive first information and second information;

[0133] The wallpaper generation module 4020 is used to generate a wallpaper image according to the first information and the second information.

[0134] Optionally, the wallpaper generation module 4020 is further configured to parse keywords in the second information and map the keywords with predefined wallpaper styles and theme tags.

[0135] Optionally, the image quality optimization module 4030 is used to optimize the quality of the wallpaper image.

[0136] Optionally, the sending module 4040 is used to send the wallpaper image.

[0137] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0138] Reference Figure 8 , as an example, Figure 8 This is a schematic structural block diagram of another wallpaper generation device provided in an embodiment of the present application. The wallpaper generation device 5000 may include a memory 5010 and a processor 5020.

[0139] The memory 5010 is used to store computer programs.

[0140] The processor 5020 is used to call and run the computer program stored in the memory 5010 to execute: the test case generation method provided in the above embodiment.

[0141] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.

[0142] Optionally, the computer-readable storage medium can be applied to the wallpaper generation method in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes in each method in the embodiments of the present application. For the sake of brevity, it will not be repeated here.

[0143] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0144] Optionally, the computer program product may be applied to the wallpaper generation method in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes in the various methods in the embodiments of the present application, which will not be described in detail here for the sake of brevity.

[0145] The embodiment of the present application also provides a computer program.

[0146] Optionally, the computer program can be applied to the wallpaper generation method in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes in the various methods in the embodiments of the present application. For the sake of brevity, they are not described here.

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

[0148] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0152] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A wallpaper generation method, characterized in that: include: Acquire first information, where the first information is real-time environment information; Acquire second information, where the second information is information input by a user; Sending a first message and a second message, A wallpaper image is received, wherein the wallpaper image is generated by using a wallpaper generation model according to the first information and the second information.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining third party information; The timing of sending the first information and the second information is determined according to the third information, wherein the third information includes one or more of the following information: setting frequency, weather change, festival change, geographical location change, etc.

3. The method according to claim 1 or 2, characterized in that: The obtaining of the first information comprises: Call one or more of the current time, festival, weather, and geographic location information through the API.

4. The method according to any one of claims 1 to 3, characterized in that The obtaining of the second information comprises: Detect the natural language description input by the user and / or the tag selected by the user. If yes, obtain the second information, which includes the natural language description input by the user and / or the tag selected by the user. If no, the second information is empty.

5. A wallpaper generation method, characterized in that it is used for include: Receiving first information and second information, wherein the first information is real-time environment information and the second information is information input by a user; A wallpaper image is generated using a wallpaper generation model according to the first information and the second information.

6. The method according to claim 5, characterized in that The method further comprises: Send the wallpaper image.

7. The method according to claim 5 or 6, characterized in that: The wallpaper generation model includes one or more of the following models: a generative adversarial network, a variational autoencoder, and a diffusion model.

8. The method according to any one of claims 5 to 7, characterized in that The method further comprises: The keywords in the second information are parsed, and the keywords are mapped with predefined wallpaper styles and theme tags.

9. The method according to any one of claims 5 to 8, characterized in that The method further comprises: Optimizing the quality of the wallpaper image, including one or more of image compression and optimization, resolution adaptation, color and contrast optimization, and format conversion methods.

10. A wallpaper generating device, characterized in that: include: A real-time environment detection module, used to obtain first information, where the first information is real-time environment information; A user interaction module, used to obtain second information, where the second information is information input by a user; A sending module, used for sending first information and second information; The receiving module is used to receive a wallpaper image, wherein the wallpaper image is generated by using a wallpaper generation model according to the first information and the second information.

11. The device according to claim 10, characterized in that The user interaction module is also used to obtain third information, and determine the timing of sending the first information and the second information based on the third information. The third information includes one or more of the following information: set frequency, weather changes, holiday changes, geographic location changes, etc.

12. A wallpaper generating device, characterized in that: include: A receiving module, used for receiving first information and second information; The wallpaper generation module is used to generate a wallpaper image according to the first information and the second information.

13. The device according to claim 12, characterized in that The device also includes: The sending module is used to send the wallpaper image.

14. The device according to claim 12 or 13, characterized in that The wallpaper generation module is further used to parse keywords in the second information and map the keywords with predefined wallpaper styles and theme tags.

15. The device according to any one of claims 12 to 14, characterized in that The device also includes: The image quality optimization module is used to optimize the quality of the wallpaper image.

16. A wallpaper generating device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program in the memory to execute the method as claimed in any one of claims 1 to 4 or any one of claims 5 to 9.