Data processing method and device and electronic equipment

By obtaining and responding to changes in the information of the target program in the electronic device, automatically generating and switching images of the desktop interface, the problem of difficult to meet the personalized needs of users in the prior art is solved, and the automatic adjustment of personalized desktop images and resource conservation is achieved.

CN120029705APending Publication Date: 2025-05-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411999707.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The desktop images of existing electronic devices are difficult to meet the increasingly strong personalized needs of users.

Method used

By obtaining relevant information about the target program running in the electronic device, in response to changes in these information, images of the desktop interface are automatically generated and switched to meet the personalized needs of users.

Benefits of technology

It realizes automatic adjustment of desktop images according to the information changes of the target program, thereby meeting users' personalized needs and reducing human and material resources investment in wallpaper production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029705A_ABST
    Figure CN120029705A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device and electronic equipment, and the method comprises the steps: obtaining target information, the target information comprises related information of a target program running in the electronic equipment, responding to the change of the target information from first information to second information, switching a desktop interface of the electronic equipment from a first image to a second image, the second image is partially distinct from the first image, the portion of the second image distinct from the first image being generated based at least on the changed information, the second image being generated based on the first model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information technology, and in particular to a data processing method, device and electronic device. Background Art

[0002] As an important visual element for the interaction between users and devices, the desktop image of electronic devices not only affects the user's experience of using electronic devices, but also reflects the user's personality and aesthetic taste. However, at present, the desktop images of electronic devices often cannot meet the increasingly strong individual needs of users. Therefore, how to provide users with desktop images that can meet their personalized needs has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present disclosure provides a data processing method, device, electronic device and storage medium.

[0004] According to a first aspect of the present disclosure, there is provided a data processing method, comprising:

[0005] Obtaining target information; the target information includes relevant information of a target program running in the electronic device;

[0006] In response to the target information changing from first information to second information, the desktop interface of the electronic device is switched from a first image to a second image; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

[0007] In an implementation of the present application, when there are multiple target programs, the conditions for switching the desktop interface of the electronic device from the first image to the second image include any one or more of the following:

[0008] The target information of any target program has changed;

[0009] Within a preset time period, the target information of at least a target number of designated target programs has changed;

[0010] The information change degree of the target program meets the target change condition.

[0011] In an implementation of the present application, before switching the desktop interface of the electronic device from the first image to the second image, the method further includes:

[0012] generating first prompt information based on change information between the first information and the second information;

[0013] The first prompt information and the first image are input into the first model to obtain the second image output by the first model.

[0014] In an implementation of the present application, the method further includes:

[0015] Obtaining first data; the first data includes operation data of the target object on the image in the electronic device;

[0016] Generate second prompt information based on the first data; the second prompt information is used to guide the first model to generate the second image;

[0017] The first data includes first operation data and / or second operation data, the first operation data is generated when a first signal is detected, and the second operation data is generated when a second signal is detected, the first signal is triggered by the target object selecting a recommended image, and the second signal is triggered by the target object storing a specified image in the electronic device.

[0018] In an implementation of the present application, if the first data includes the second operation data, the generating of the second prompt information based on the first data includes:

[0019] Inputting the specified image into a second model; the second model and the first model belong to different models or different sub-models in the same model;

[0020] The second prompt information output by the second model is obtained.

[0021] In an implementation of the present application, the method further includes:

[0022] Obtaining second data; the second data includes object data of the target object and / or scenario data of a device usage scenario;

[0023] Generating third prompt information based on the second data; the third prompt information is used to guide the first model to generate the second image.

[0024] In an implementation of the present application, before switching the desktop interface of the electronic device from the first image to the second image, the method further includes:

[0025] generating first prompt information based on change information between the first information and the second information;

[0026] Obtaining prompt information of the first image;

[0027] The first prompt information and the prompt information of the first image are input into the first model to obtain the second image output by the first model.

[0028] In an implementation of the present application, before switching the desktop interface of the electronic device from the first image to the second image, the method further includes:

[0029] generating first prompt information based on change information between the first information and the second information;

[0030] If a third image exists in the electronic device, the third image is determined as the second image; the third image has prompt information matching the first prompt information, and the third image has prompt information matching the prompt information of the first image.

[0031] According to a second aspect of the present disclosure, there is provided a data processing device, comprising:

[0032] An information acquisition module, used to obtain target information; the target information includes relevant information of a target program running in the electronic device;

[0033] An image switching module is used to switch the desktop interface of the electronic device from a first image to a second image in response to the target information changing from first information to second information; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

[0034] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0035] A display module and at least one processor;

[0036] The processor is used to obtain target information, and in response to the target information changing from first information to second information, switch the desktop interface of the electronic device from the first image to the second image;

[0037] The display module is used to output the desktop interface.

[0038] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.

[0039] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

[0041] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0042] Figure 1 A schematic diagram of an implementation flow of a data processing method provided in an embodiment of the present application is shown;

[0043] Figure 2 A schematic diagram of an image generation process provided by an embodiment of the present application is shown;

[0044] Figure 3 Another schematic diagram of an image generation process provided by an embodiment of the present application is shown;

[0045] Figure 4 Another schematic diagram of an image generation process provided by an embodiment of the present application is shown;

[0046] Figure 5 Another schematic diagram of an image generation process provided by an embodiment of the present application is shown;

[0047] Figure 6 A schematic diagram of an information generation process provided by an embodiment of the present application is shown;

[0048] Figure 7 A schematic diagram of an information processing architecture provided by an embodiment of the present application is shown;

[0049] Figure 8 A schematic diagram of information updating provided by an embodiment of the present application is shown;

[0050] Fig. 9 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application is shown;

[0051] Fig.10 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0052] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0053] Since the current method of manually photographing or making wallpapers by designers consumes a lot of manpower and material resources, in order to reduce the resources consumed in the wallpaper production process and provide users with wallpapers that meet their personalized needs, the present application provides a data processing method, device, electronic device and storage medium. The data processing method provided by the present application can be applied to electronic devices of the client or cloud servers. The electronic devices provided by the present application can be devices such as mobile phones, computers and tablet computers.

[0054] The technical solution of the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application.

[0055] Figure 1 A schematic diagram of an implementation flow of the data processing method provided in an embodiment of the present application is shown. Figure 1 As shown, the method includes:

[0056] S101, obtaining target information; the target information includes relevant information of a target program running in an electronic device.

[0057] The target program may include one or more. For example, the target program may include a system application, a weather application, a geographic location positioning application, and a music application. The target information may include at least one of the location information of the electronic device, weather condition information, and time information.

[0058] In the present disclosure, an electronic device can obtain relevant information of a running target program as target information through an API (application programming interface) provided by the system. Alternatively, the operating system of the electronic device can record the running status of the application through a log file, and the electronic device can obtain relevant information of the target program as target information by retrieving the log file. For example, the target program is a weather application that provides weather services to users, and the electronic device can obtain weather condition information generated by the target program and the current location of the electronic device as target information through an API provided by the system.

[0059] S102, in response to the target information changing from the first information to the second information, switching the desktop interface of the electronic device from the first image to the second image; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

[0060] In the present disclosure, the electronic device may obtain target information at preset intervals, and the preset interval may be set to 5 minutes, 10 minutes, etc. The most recently obtained target information may be compared with the target information obtained last time to determine whether a change has occurred. If a change has occurred, the desktop interface of the electronic device may be switched from the first image to the second image, or it may be determined whether the condition for switching the desktop interface of the electronic device from the first image to the second image is met according to the degree of change of the information. When the condition for switching the desktop interface of the electronic device from the first image to the second image is met, the desktop interface of the electronic device is switched from the first image to the second image.

[0061] In the present disclosure, the second image and the first image may be two different images including some different elements, or the second image and the first image may also be two different images including completely different elements.

[0062] The part of the second image that is different from the first image is content generated based on the changed information. That is to say, in the present disclosure, a new desktop interface image may be generated according to the change of the information of the target program, and the original desktop image may be replaced with the new desktop interface image so that the desktop interface can accurately reflect the change of the information of the target program. In the present disclosure, the changed information that the target information changes from the first information to the second information may also be used to search for an image that can reflect the changed information in the image library as the second image, and the second image is used to switch the first image.

[0063] By using the data processing method provided in the embodiment of the present disclosure, target information is obtained. The target information includes the relevant information of the target program running in the electronic device. In response to the target information changing from the first information to the second information, the desktop interface of the electronic device is switched from the first image to the second image. The second image is partially different from the first image, and the part of the second image that is different from the first image is at least generated based on the changed information. The second image is generated based on the first model. That is, the changed information of the target program running in the electronic device can be used to automatically generate a new desktop image to replace the old desktop image. The change of the information of the target program can reflect the change of the user information, and generating a new desktop image using the changed information also meets the personalized needs of the user.

[0064] In an implementable manner, when there are multiple target programs, the conditions for switching the desktop interface of the electronic device from the first image to the second image may include any one or more of the following conditions A1 - A3:

[0065] Condition A1, the target information of any one of the target programs has changed.

[0066] For example, the target program includes a system clock program and a geographic location program. If the system time obtained by the system clock program is different from the system time obtained last time, and the city where the electronic device is located obtained by the geographic location program is the same as the city where the electronic device is located last time, that is, the information output by the system clock program has changed while the location information output by the geographic location program has not changed, a second image can still be generated based on the change information output by the system clock program and the first model, and the first image can be replaced by the second image, so that the desktop interface of the electronic device is switched from the first image to the second image.

[0067] For another example, the target program includes a weather application and a geographic location positioning program. If the weather condition information obtained through the weather application is the same as the weather condition information obtained last time, and the city where the electronic device is located obtained through the geographic location positioning program is different from the city where the electronic device is located last time, that is, the information output by the weather application has not changed but the positioning information output by the geographic location positioning program has changed, a second image can still be generated based on the change information output by the geographic location positioning program and the first model, and the desktop interface of the electronic device can be switched from the first image to the second image.

[0068] Condition A2: within a preset time period, target information of at least a target number of designated target programs has changed.

[0069] The target number can be set according to the actual application scenario, for example, it can be set to 2 or 3. The specified target program can be one or more target programs specified by the user, and the specified target program can be changed according to user needs. The preset time period can be set according to application needs, for example, it can be set to 30 minutes or 1 hour.

[0070] For example, the target programs include a system clock program, a geographic location positioning program, and a weather application program. The weather application program and the geographic location positioning program can be designated as designated target programs, the target number is set to 2, and the preset time period is set to 1 hour. If within 1 hour, the temperature information and weather status information output by the weather application program both change, or the temperature information or weather status information output by the weather application program both change and the location information output by the geographic location positioning program changes, a second image can be generated based on the change information output by the geographic location positioning program and / or the weather application program and the first model, and the desktop interface of the electronic device can be switched from the first image to the second image.

[0071] Condition A3: The information change degree of the target program meets the target change condition.

[0072] In the present disclosure, the target program includes a system clock program, a geographic location positioning program, and a weather application program. If the time output by the system clock program has passed a preset time, the location output by the geographic location positioning program is a preset distance away from the location output last time, and / or the weather condition information output by the weather application program reaches a target weather difference, it can be determined that the information change degree of the target program meets the target change condition. Among them, the preset time can be set to 4 hours or 8 hours, the preset distance can be set to the distance between the user's home and company or the distance between different cities, the target weather difference can include a temperature difference reaching a preset temperature threshold and / or a wind speed level difference reaching a preset level threshold, the preset temperature threshold can be set to 5° or 10°, and the preset level threshold can be set to level 1 or level 2.

[0073] In the present disclosure, in an optional implementation, if the information change degree of the target information of any target program meets the target change condition, the desktop interface of the electronic device can be switched from the first image to the second image. For example, the target program includes a weather application, and it can be set that the temperature difference of the temperature output by the weather application reaches 5° or more to indicate that the information change degree meets the target change condition.

[0074] In another optional embodiment, within a preset time period, if the information change degree of the target information of at least a target number of designated target programs meets the target change condition, the desktop interface of the electronic device can be switched from the first image to the second image. For example, the target programs can include a geographic location positioning program and a weather application, the target number can be set to 2, the temperature difference of the temperature output by the weather application is set to reach 5° or more, the information change degree of the information output by the weather application satisfies the target change condition, and the location output by the geographic location positioning program is set to cross cities, the information change degree of the information output by the geographic location positioning program satisfies the target change condition.

[0075] In one possible implementation, Figure 2 A schematic diagram of an image generation process provided by an embodiment of the present application is shown. Figure 2 As shown, before switching the desktop interface of the electronic device from the first image to the second image, the method further includes:

[0076] S201: Generate first prompt information based on change information between the first information and the second information.

[0077] In the present disclosure, the first prompt information may include change information between the first information and the second information and the corresponding position of the change information in the new image to be generated. For example, the display area of ​​the position information on the desktop interface is the middle area of ​​the desktop interface. If the change information is the position information, the changed position information and the middle area of ​​the desktop interface can be determined as the first prompt information. Alternatively, the area on the desktop interface can be customized as the display area of ​​the change information, and the customized area and the change information can be determined as the first prompt information.

[0078] S202: Input the first prompt information and the first image into the first model to obtain the second image output by the first model.

[0079] In the present disclosure, the first model may be a pre-trained image generation model. The first model may be a generative model (generative models), a generative language model (generative language models, GLMs). For example, it may specifically include large language models (LLMs), GPT (Generative Pre-trained Transformer, a natural language processing model based on deep learning), a large image generation model, a multimodal large model, and the like. The model involved in the embodiments of the present application may be a general large model, or it may be an expert large model obtained after fine-tuning based on demand, and the embodiments of the present application do not limit this.

[0080] For example, if the first prompt information includes the changed location information and the middle area of ​​the desktop interface, and the changed location information is city A, the changed location information, the middle area of ​​the desktop interface, and the first image are input into the first model, and the first model can generate a new image that is a fusion of the first prompt information and the first image as the second image. Compared with the first image, the location information displayed in the area displaying the location information in the second image is city A.

[0081] In the present disclosure, the first prompt information and the first image are input into the first model, and the first model can extract the element description text including the elements contained in the first image and the relationship description text including the positional relationship and the textual relationship between the elements, and generate a new image as the second image using the first prompt information, the element description text and the relationship description text.

[0082] In another possible embodiment, Figure 3 Another image generation process diagram provided by an embodiment of the present application is shown in FIG. Figure 3 As shown, the data processing method also includes:

[0083] S301, obtaining first data; the first data includes operation data of a target object on an image in the electronic device.

[0084] In the present disclosure, the target object includes a user who can operate an electronic device.

[0085] S302, generating second prompt information based on the first data; the second prompt information is used to guide the first model to generate the second image.

[0086] The first data includes first operation data and / or second operation data, the first operation data is generated when a first signal is detected, and the second operation data is generated when a second signal is detected, the first signal is triggered by the target object selecting a recommended image, and the second signal is triggered by the target object storing a specified image in the electronic device.

[0087] In the present disclosure, an electronic device may include a preset image library, and the preset image library is used to store one or more recommended images. The recommended image is an image generated in advance through the information of each target program of the electronic device, the device information of the electronic device, and the user log information. In the present disclosure, one or more recommended images can be randomly selected from the preset image library for display, and the target object selects the displayed recommended image. When any recommended image is selected, it can trigger the generation of a first signal. After detecting the first signal, the electronic device can use the user's trigger operation data as the first operation data. The user's trigger operation includes operations such as clicking or sliding the recommended image, and the image element of the recommended image clicked or selected by the user can be extracted as the second prompt information. The second prompt information can also include the category of the recommended image, for example, the recommended image is a landscape, animation, or character category, etc.

[0088] In the present disclosure, the second prompt information may reflect the image categories preferred by the user, and / or the image categories that the user does not like. For example, the electronic device may recommend wallpaper images of different categories such as comic categories, character categories, landscape categories, and / or city categories to the user, and may record the image categories selected by the user and the image categories rejected by the user. For the image categories selected by the user, multiple image categories that the user likes the most may be determined as the image categories preferred by the user based on information such as the duration and frequency of use by the user. For the image categories rejected by the user, these image categories may be recorded as image categories that the user does not like.

[0089] In the present disclosure, a user can select a specified image from a local image library or other specified image library of an electronic device. When the user selects the specified image, it can trigger the generation of a second signal. After detecting the second signal, the electronic device can use the user's trigger operation data as the second operation data. The user's trigger operation includes operations such as clicking or selecting a recommended image. The category of the specified image can be used as the second prompt information.

[0090] In the present disclosure, the first data may be generated by a recommended image in a preset image library selected by a user or an image customized and uploaded by a user, and the second image may be generated by using the second prompt information generated by the first data.

[0091] In the present disclosure, the first model can be used to generate a second image according to the change information of the first information and the second information and the second prompt information. The generated second image includes the change information of the first information and the second information and at least some elements of the first image.

[0092] In the present disclosure, if the first data includes the second operation data, the generating of the second prompt information based on the first data may include steps B1-B2:

[0093] Step B1, inputting the designated image into a second model; the second model and the first model belong to different models or belong to different sub-models in the same model.

[0094] In the present disclosure, the second model is a model that can generate text features corresponding to elements in an image. If the second model and the first model belong to the same model, the first model is a sub-model for generating images, and the second model is a model for generating text information.

[0095] Step B2: Obtain the second prompt information output by the second model.

[0096] In the present disclosure, the second model can extract the text description feature text corresponding to each element in the recommended image, and use the text description feature text as the second prompt information. The text description feature text includes text describing the shape features of the element, text describing the function features of the element, and / or text describing the positional relationship and functional relationship between the elements. In the present disclosure, the prompt information in the recommended image can be reversely extracted by the second model, so that the first model generates the second image in combination with the prompt information of the recommended image.

[0097] In another possible embodiment, Figure 4 Another image generation process diagram provided by an embodiment of the present application is shown in FIG. Figure 4 As shown, the data processing method also includes:

[0098] S401, obtaining second data; the second data includes object data of a target object and / or scenario data of a device usage scenario.

[0099] The object data of the target object may include the color information preferred by the target object, the scenery information preferred by the target object, the style information of the desktop interface image preferred by the target object, and / or the element information preferred by the target object. The scenery information preferred by the target object may include information such as the scenery type and the scenic area, the style information of the desktop interface image preferred by the target object may include anime style, realistic style, and illustration style, etc., and the element information preferred by the target object may include element type and element content, for example, information such as the animation and festivals that the target object likes. In the present disclosure, the object data of the target object can be determined through the log file of the target device.

[0100] In the present disclosure, device usage scenarios may include conference scenarios, call scenarios, and entertainment scenarios, etc. The scenario data of device usage scenarios includes device information of the target object when using the electronic device, which may include information such as device type, operating system, application name, and usage environment.

[0101] S402, generating third prompt information based on the second data; the third prompt information is used to guide the first model to generate the second image.

[0102] In the present disclosure, labels representing preferences of the target object and / or labels of device usage scenarios in the second data may be extracted as the third prompt information.

[0103] In the present disclosure, the first model can be used to generate a second image according to the change information of the first information and the second information and the third prompt information. The generated second image includes the change information of the first information and the second information and the content represented by the third prompt information.

[0104] In one possible implementation, Figure 5 Another image generation process diagram provided by an embodiment of the present application is shown in FIG. Figure 5 As shown, before switching the desktop interface of the electronic device from the first image to the second image, the data processing method further includes:

[0105] S501: Generate first prompt information based on change information between the first information and the second information.

[0106] In the present disclosure, the change information between the first information and the second information may include temperature change information, position change information and / or time change information, etc. For the change information, an image description text corresponding to the change information may be generated as the first prompt information. The image description text includes information such as the content of the image element corresponding to the change information, the position information of the element in the image, and / or the position relationship between the element and other image elements.

[0107] S502: Obtain prompt information of the first image.

[0108] In the present disclosure, the description text corresponding to each element in the first image can be extracted by the second model as the prompt information of the first image.

[0109] In the present disclosure, the first image may be a recommended image in a preset image library or an image uploaded by a user. The first image may also be an image generated instantly by an image generation model according to prompt information when replacing a previous desktop image. If the first image is an image generated instantly according to prompt information when replacing a previous desktop image, the prompt information of the first image may be associated with the first image while generating the first image, and the prompt information may be stored in a database. Then, this step may be performed from the prompt information of the first image stored in the database.

[0110] In the present disclosure, label information corresponding to each recommended image may be determined in advance, and the label information includes element labels and image type labels of the recommended image, etc. If the first image is a recommended image, the label information corresponding to the recommended image may be obtained as prompt information of the first image.

[0111] In the present disclosure, the prompt information of the first image may also be extracted through the second model.

[0112] S503: Input the first prompt information and the prompt information of the first image into the first model to obtain the second image output by the first model.

[0113] In the present disclosure, the second image output by the first model includes the image element corresponding to the first prompt information and the element corresponding to the prompt information of the first image. The image element corresponding to the first prompt information and the element corresponding to the prompt information of the first image can be input into the first model, and the first model generates a new image as the second image.

[0114] In one possible implementation, Figure 6 A schematic diagram of an information generation process provided by an embodiment of the present application is shown. Figure 6 As shown, before switching the desktop interface of the electronic device from the first image to the second image, the data processing method further includes:

[0115] S601: Generate first prompt information based on change information between the first information and the second information.

[0116] S602: If a third image exists in the electronic device, determine the third image as the second image; the third image has prompt information matching the first prompt information, and the third image has prompt information matching the prompt information of the first image.

[0117] In the present disclosure, corresponding images can be generated in advance as the third image based on the information of different target programs. For example, desktop interface images corresponding to different temperatures can be generated as the third image, and the temperatures displayed on the desktop interface images corresponding to different temperatures are different. Desktop interface images corresponding to different weather conditions can be generated as the third image, for example, desktop interface images corresponding to different weather conditions such as sunny days, rainy days and cloudy days are generated. Desktop interface images corresponding to different times can also be generated as the third image. Different desktop interface images can also be generated as the third image by superimposing multiple factors such as different temperatures, different weather conditions and / or different times. In the present disclosure, corresponding index tags can be generated for each third image based on factors such as temperature, weather conditions and time.

[0118] In the present disclosure, the image previously generated and stored in the desktop image switching process can also be used as the third image. For example, the desktop image at time t1 is image A, and image A includes the information "landmark Temple of Heaven, weather is cloudy to sunny", and image A at time t1 can be stored. The desktop image at time t2 is image B, and image B includes the information "landmark Temple of Heaven, weather is sunny to cloudy", and image B at time t2 can be stored. At time t3, the location of the electronic device is still the Temple of Heaven landmark, and the weather is cloudy to sunny. Image A at time t1 contains the change information between time t3 and the target program at time t3 (except time). Then image A at time t1 can be used as the third image, and the third image can be determined as the second image, replacing image B at time t2.

[0119] In the present disclosure, the first prompt information generated based on the change information of the first information and the second information can be used as an index tag of the third image, and is used to locate and call the third image as a new desktop interface image. For example, if the change information is that the temperature rises by 5 degrees Celsius, the temperature rises by 5 degrees Celsius can be used as an index tag to query the corresponding third image. If the corresponding third image is found, the third image can be used as the second image, and the desktop interface is switched to the second image.

[0120] In the present disclosure, the first model can be deployed on the cloud. After the electronic device obtains the target information, if it is detected that the target information changes from the first information to the second information, the change information can be sent to the cloud. The first model on the cloud generates a second image based on the change information. The cloud sends the generated second image to the electronic device, and the electronic device switches the desktop interface of the electronic device from the first image to the second image.

[0121] By deploying the first model on the cloud and transferring the calculation process of generating the second image to the cloud, the resource consumption of the electronic device can be reduced and the performance of the electronic device can be improved.

[0122] In the present disclosure, the first model can also be deployed on the local side. After the electronic device obtains the target information, if it detects that the target information changes from the first information to the second information, the change information can be input into the local first model, and the first model generates a second image based on the change information. The electronic device switches the desktop interface from the first image to the second image.

[0123] In one possible implementation, Figure 7 A schematic diagram of an information processing architecture provided by an embodiment of the present application is shown. Figure 7 As shown, the information processing architecture provided by the embodiment of the present application may include a display layer, a prompt word acquisition layer, a data layer, and an AI algorithm layer. The AI ​​algorithm layer includes a first model for generating an image and a second model for extracting image prompt information, such as Figure 2As shown, the AI ​​algorithm layer can deploy relevant AI underlying algorithms such as Stable Diffusion (text to image generation model) for image generation or image information extraction. The data layer includes a wallpaper category library of wallpapers of electronic devices, and the wallpaper category library stores wallpapers of various categories, such as office category, landscape category, food category, animation category, game category, realistic category and abstract category wallpapers. The prompt word acquisition layer is used to acquire and store prompt information related to wallpapers, and the prompt information includes objective information and user-related information obtained from the user end, wherein the objective information may include computer attributes (electronic device), the country where the electronic device is located, the city where the electronic device is located, weather information and holiday information, etc., and the user-related information includes information such as the user's favorite color, scenery and image category, and the user-related information may also include the use scenario of the wallpaper, such as meeting scenario, entertainment scenario, education scenario and other scenario information. The prompt word acquisition layer can construct a prompt word category list based on a variety of prompt words, such as a prompt word list including prompt words representing image categories, prompt words representing image elements and prompt words representing objective factors. The prompt word acquisition layer can also reverse the prompt word of the image through the image-to-text generation model. For example, the prompt word of the image can be reversed for the local image selected by the user or the recommended image or the user-defined image. The display layer displays the recommended personalized wallpaper or customized wallpaper through the UI interface. In the present disclosure, when the device is idle, an image can be generated based on the prompt word and other data obtained by the prompt word acquisition layer, and the generated image is stored in the personalized wallpaper library for wallpaper recommendation or image recommendation when switching the desktop of the electronic device. For example, relevant information of the target program running on the electronic device can be obtained. If the relevant information of the target program sends a change, the prompt information can be determined based on the change information, and a new image can be generated using the prompt information, and the desktop image of the electronic device can be replaced with the new image. Alternatively, if the relevant information of the target program sends a change, an image that meets the change information can be found from the personalized wallpaper library based on the change information, and the desktop image of the electronic device can be replaced with the found image.

[0124] In one possible implementation, Figure 8 A schematic diagram of information updating provided by an embodiment of the present application is shown. Figure 8 Shown Figure 7 The prompt word update process of the data layer in the information processing architecture diagram shown in FIG. Figure 8As shown, the electronic device can push wallpapers to users in combination with the wallpaper category of the wallpaper category library. Users can choose pushed wallpapers, use pushed wallpapers, or upload custom wallpapers. The image-to-text generation model can collect data on uploaded custom wallpapers or recommended wallpapers used by users. Specifically, the image-to-text generation model can be used to reversely extract keywords of the uploaded custom wallpapers, and extract corresponding new tags to construct prompt words for the uploaded custom wallpapers. For the recommended wallpapers used by users, the category of the recommended wallpaper can be obtained according to the user's selection operation, and the category of the recommended wallpaper can be obtained as the image category preferred by the user, and the prompt word of the recommended wallpaper can be constructed according to the objective information corresponding to the recommended wallpaper and user-related information (user preferences, usage scenarios) and other information. Thereby, the prompt information library is updated through the constructed prompt words, and new wallpaper images are generated using the prompt information and the AI ​​raw image model (text-to-image generation model), and the wallpaper category library is further updated using the new wallpaper images.

[0125] Based on the same concept, according to the data processing method provided by the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a data processing device, whose structural schematic diagram is shown in FIG. Fig. 9 As shown, specifically including:

[0126] The information acquisition module 901 is used to obtain target information; the target information includes relevant information of the target program running in the electronic device;

[0127] The image switching module 902 is used to switch the desktop interface of the electronic device from a first image to a second image in response to the target information changing from first information to second information; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

[0128] The data processing device provided by the embodiment of the present disclosure is used to obtain target information, which includes relevant information of a target program running in an electronic device. In response to the target information changing from the first information to the second information, the desktop interface of the electronic device is switched from the first image to the second image, the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model. That is, a new desktop image can be automatically generated to replace the old desktop image using the changed information of the target program running in the electronic device, which reduces the amount of human and material resources invested in the desktop image production process. In addition, the information change of the target program can reflect the change of user information, and the generation of a new desktop image using the changed information also meets the personalized needs of users.

[0129] In one possible implementation, when there are multiple target programs, the conditions for switching the desktop interface of the electronic device from the first image to the second image include any one or more of the following:

[0130] The target information of any target program has changed;

[0131] Within a preset time period, the target information of at least a target number of designated target programs has changed;

[0132] The information change degree of the target program meets the target change condition.

[0133] In one possible implementation, the image switching module 902 is further used to generate first prompt information based on change information between the first information and the second information; input the first prompt information and the first image into the first model to obtain the second image output by the first model.

[0134] In one possible implementation, the image switching module 902 is also used to obtain first data; the first data includes operation data of the target object on the image in the electronic device; second prompt information is generated based on the first data; the second prompt information is used to guide the first model to generate the second image; wherein, the first data includes first operation data and / or second operation data, the first operation data is generated when a first signal is detected, the second operation data is generated when a second signal is detected, the first signal is triggered by the target object by selecting a recommended image, and the second signal is triggered by the target object by storing a specified image in the electronic device.

[0135] In one possible implementation, if the first data includes the second operation data, the image switching module 902 is also used to input the specified image into a second model; the second model and the first model belong to different models or belong to different sub-models in the same model; and obtain the second prompt information output by the second model.

[0136] In one embodiment, the image switching module 902 is also used to obtain second data; the second data includes object data of the target object and / or scene data of the device usage scenario; third prompt information is generated based on the second data; the third prompt information is used to guide the first model to generate the second image.

[0137] In one implementable manner, the image switching module 902 is further configured to generate a first prompt message based on the change information of the first information and the second information; obtain the prompt message of the first image; and input the first prompt message and the prompt message of the first image into the first model to obtain the second image output by the first model.

[0138] In one implementable manner, the image switching module 902 is further configured to generate a first prompt message based on the change information of the first information and the second information; if a third image exists in the electronic device, determine the third image as the second image; the third image has a prompt message matching the first prompt message, and the third image has a prompt message matching the prompt message of the first image.

[0139] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium. The electronic device includes: a display module and at least one processor; the processor is configured to obtain target information, in response to the target information changing from the first information to the second information, switch the desktop interface of the electronic device from the first image to the second image; and the display module is configured to output the desktop interface.

[0140] Fig.10 FIG. shows a schematic block diagram of an exemplary electronic device 1000 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0141] As Fig.10 shown, the device 1000 includes a computing unit 1001, which can execute various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0142] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0143] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).

[0144] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0145] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0146] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0148] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0149] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0150] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0151] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

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

Claims

1. A data processing method, comprising: Obtain target information; The target information includes relevant information of a target program running in the electronic device; In response to the target information changing from first information to second information, the desktop interface of the electronic device is switched from a first image to a second image; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

2. The method according to claim 1, wherein when there are multiple target programs, the conditions for switching the desktop interface of the electronic device from the first image to the second image include any one or more of the following: The target information of any target program has changed; Within a preset time period, the target information of at least a target number of designated target programs has changed; The information change degree of the target program meets the target change condition.

3. The method according to claim 1, before switching the desktop interface of the electronic device from the first image to the second image, further comprising: generating first prompt information based on change information between the first information and the second information; The first prompt information and the first image are input into the first model to obtain the second image output by the first model.

4. The method according to claim 3, further comprising: obtaining first data; The first data includes operation data of the target object on the image in the electronic device; generating second prompt information based on the first data; The second prompt information is used to guide the first model to generate the second image; The first data includes first operation data and / or second operation data, the first operation data is generated when a first signal is detected, and the second operation data is generated when a second signal is detected, the first signal is triggered by the target object selecting a recommended image, and the second signal is triggered by the target object storing a specified image in the electronic device.

5. The method according to claim 4, if the first data includes the second operation data, generating the second prompt information based on the first data comprises: inputting the specified image into a second model; The second model and the first model belong to different models or different sub-models in the same model; The second prompt information output by the second model is obtained.

6. The method according to claim 3, further comprising: obtaining second data; The second data includes object data of a target object and / or scenario data of a device usage scenario; generating third prompt information based on the second data; The third prompt information is used to guide the first model to generate the second image.

7. The method according to claim 1, before switching the desktop interface of the electronic device from the first image to the second image, further comprising: generating first prompt information based on change information between the first information and the second information; Obtaining prompt information of the first image; The first prompt information and the prompt information of the first image are input into the first model to obtain the second image output by the first model.

8. The method according to claim 1, before switching the desktop interface of the electronic device from the first image to the second image, further comprising: generating first prompt information based on change information between the first information and the second information; If a third image exists in the electronic device, the third image is determined as the second image; the third image has prompt information matching the first prompt information, and the third image has prompt information matching the prompt information of the first image.

9. A data processing device, comprising: An information acquisition module is used to obtain target information; The target information includes relevant information of a target program running in the electronic device; An image switching module is used to switch the desktop interface of the electronic device from a first image to a second image in response to the target information changing from first information to second information; the second image is partially different from the first image, and the part of the second image that is different from the first image is generated based on at least the changed information, and the second image is generated based on the first model.

10. An electronic device comprising: A display module and at least one processor; The processor is used to obtain target information, and in response to the target information changing from first information to second information, switch the desktop interface of the electronic device from the first image to the second image; The display module is used to output the desktop interface.