Theme preview method, theme generation method, and electronic device
By generating and displaying preview images of user-uploaded resources on terminal devices, the problem of users being unable to satisfy personalized themes is solved, the efficiency and diversity of theme generation are improved, and the user experience is enhanced.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2026-04-02
AI Technical Summary
In existing technologies, users cannot meet their personalized needs when selecting existing themes on their terminal devices, which affects the user experience.
By utilizing user-uploaded resources, the system generates and displays corresponding theme preview images, supporting the display of various theme pages, including AOD, lock screen, and desktop status, thereby improving the efficiency and diversity of theme generation.
It meets users' needs for personalized themes, improves user experience and the ease of theme generation, and reduces the power consumption of electronic devices.
Smart Images

Figure CN2025105071_02042026_PF_FP_ABST
Abstract
Description
A theme preview method, a theme generation method and an electronic device
[0001] The present application claims priority to the Chinese patent application No. 202411376919.0, filed on September 29, 2024, and entitled "A theme preview method, a theme generation method and an electronic device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminal, in particular to a theme preview method, a theme generation method and an electronic device. BACKGROUND
[0003] With the iterative innovation of the software version of the terminal device, the user's requirement for software experience is gradually improved, among which, the theme has become the focus of the user, from static to dynamic, from single lock screen or wallpaper to the association of lock screen and wallpaper, gradually supporting user personalization.
[0004] At present, the user usually selects one of the existing themes on the terminal device and applies the theme, but this way does not meet the user's demand for personalized theme, affecting the user's experience. SUMMARY
[0005] The present application provides a theme preview method, a theme generation method and an electronic device, which automatically generates and displays a preview image of at least one theme corresponding to the resource uploaded by the user, meets the user's demand for personalized theme and improves the user experience.
[0006] To achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a theme preview method is provided, for example, applied to an electronic device. In the theme preview method, first, the electronic device acquires a first resource in response to a first operation of a user, then the electronic device generates at least one theme corresponding to the first resource according to the first resource, and finally the electronic device displays a preview image corresponding to the at least one theme.
[0008] For example, the first operation is an operation of the user uploading the first resource, or an operation of the user selecting the first resource in the album.
[0009] Among them, the first resource is a picture or a video.
[0010] Among them, one of the at least one theme includes at least one type of theme page, and the contents of the first resource displayed on the same type of theme page by the multiple themes in the at least one theme are different.
[0011] Exemplarily, the different types of theme pages refer to pages displayed by the electronic device screen in an always on display (AOD) state, or pages displayed by the electronic device screen in a lock screen state, or pages displayed by the electronic device screen in a desktop display state.
[0012] The preview image includes any one of the at least one theme.
[0013] Exemplarily, any one of the theme pages can be one of the at least one theme page corresponding to the theme, or a carousel of the at least two theme pages corresponding to the theme.
[0014] In the theme preview method, at least one theme corresponding to the resource is generated by using the resource uploaded by the user, and a preview image of each theme corresponding to the resource is displayed, thereby improving the efficiency and diversity of generating themes and meeting the demand of the user for personalized themes.
[0015] In an implementation form of the first aspect, when the electronic device generates the at least one theme corresponding to the first resource, the electronic device first acquires at least one sub-resource in the first resource, then the electronic device acquires a script file corresponding to a sub-resource in the at least one sub-resource, secondly, the electronic device generates a theme package corresponding to the sub-resource according to the sub-resource and the script file, and finally, the electronic device generates a theme including at least one type of theme page corresponding to the sub-resource according to the theme package. The sub-resource indicates any one of a target object, a character, and a video segment in the first resource, the target object is at least one of a person, an animal, a building, or an object, and the character is at least one of a number or a character. The script file is used to generate a theme page in combination with the sub-resource. It can be seen that the electronic device can generate a corresponding theme package by each sub-resource of the first resource and the corresponding script file, thereby reducing the threshold of theme production, improving the efficiency and convenience of theme production, and also improving the richness of the generated theme.
[0016] In an implementation form of the first aspect, the preview images corresponding to the plurality of themes are displayed in a preset order, and the preset order is determined according to matching degrees of the first resource and the plurality of themes corresponding to the first resource. It can be seen that the preview images corresponding to each theme are sorted according to the matching degrees, the preview images of the themes with high matching degrees can be displayed preferentially, and the user's appreciation and the success rate of subsequent theme application are improved.
[0017] In an implementation form of the first aspect, the first preview image is included in the preview images corresponding to the at least one theme, and the theme corresponding to the first preview image includes at least two of a first theme page, a second theme page or a third theme page, the first theme page is used to represent a page displayed by the screen in the AOD state, the second theme page is used to represent a page displayed by the screen in the lock screen state, and the third theme page is used to represent a page displayed by the screen in the desktop display state; after the electronic device displays the preview images corresponding to the at least one theme, the electronic device further sets, in response to a selection operation of the first preview image by the user, the theme pages in the theme corresponding to the first preview image as the pages displayed by the screen in the corresponding state respectively. It can be seen that the user can select a theme corresponding to a preview image in the preview images corresponding to the at least one theme to apply, which increases the selection range of the user and meets the needs of different users for personalized themes.
[0018] In an implementation form of the first aspect, when the electronic device sets, in response to a selection operation of the first preview image by the user, the theme pages in the theme corresponding to the first preview image as the pages displayed by the screen in the corresponding state respectively, the electronic device first displays, in response to the selection operation of the first preview image by the user, a preview page of the theme corresponding to the first preview image, and then sets, in response to a selection operation of the theme corresponding to the first preview image by the user in the preview page, the theme pages in the theme corresponding to the first preview image as the pages displayed by the screen in the corresponding state respectively, wherein the preview page includes at least one theme page in the theme corresponding to the first preview image. It can be seen that the user can select a theme to be applied by viewing the effects of different themes displayed by the preview page, which improves the convenience and satisfaction of the user in applying the theme.
[0019] In an implementation form of the first aspect, when the first resource is a picture and the sub-resource is a target object in the picture, only the target object in the picture is displayed on the first theme page of the electronic device, and the first resource is displayed on the second theme page and / or the third theme page of the electronic device. It can be seen that the target object in the picture uploaded by the user and the picture are respectively displayed by the screen in different states of the electronic device, so that the transition between the target object and the picture can be realized when the state of the screen of the electronic device is changed subsequently, which improves the diversity of page display and the visual experience of the user and meets the needs of the user for personalized themes.
[0020] In an implementation form of the first aspect, in a case where the first resource is a video, and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page of the electronic device, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page of the electronic device, and a last frame image of the second video clip is displayed on the third theme page. It can be seen that the corresponding theme is generated according to the video uploaded by the user, which reduces the threshold of generating the video theme and meets the visual effect of the user when switching the screen state of the electronic device.
[0021] In an implementation form of the first aspect, in a case where the first resource is a video, and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page of the electronic device, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page of the electronic device, and a last frame image of the second video clip is displayed on the third theme page. It can be seen that the corresponding theme is generated according to the video uploaded by the user, which reduces the threshold of generating the video theme and meets the visual effect of the user when switching the screen state of the electronic device.
[0022] In an implementation form of the first aspect, in a case where the first resource is a video, and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page of the electronic device, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page of the electronic device, and a last frame image of the second video clip is displayed on the third theme page. It can be seen that the corresponding theme is generated according to the video uploaded by the user, which reduces the threshold of generating the video theme and meets the visual effect of the user when switching the screen state of the electronic device.
[0023] In an implementation form of the first aspect, in a case where the first resource is a video, and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page of the electronic device, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page of the electronic device, and a last frame image of the second video clip is displayed on the third theme page. It can be seen that the corresponding theme is generated according to the video uploaded by the user, which reduces the threshold of generating the video theme and meets the visual effect of the user when switching the screen state of the electronic device.
[0024] In an implementation form of the first aspect, in a case where the first resource is a character, the updated first resource is displayed on at least two of the first theme page, the second theme page, or the third theme page of the electronic device. It can be seen that the user can adjust the character in the picture / video according to his own needs and preferences, which improves the flexibility of theme generation. In addition, the update of the character can improve the accuracy and timeliness of the picture content, and improve the user's satisfaction with the personalized theme.
[0025] In a second aspect, a theme generation method is provided. For example, the theme generation method is applied to an electronic device. In the theme generation method, the electronic device acquires a first resource in response to a first operation of a user, displays at least one theme page corresponding to the first resource according to the first resource, and generates a theme corresponding to a target theme page in response to a selection operation of the target theme page.
[0026] In an implementation form of the first aspect, in a case where the first resource is a video, and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page of the electronic device, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page of the electronic device, and a last frame image of the second video clip is displayed on the third theme page. It can be seen that the corresponding theme is generated according to the video uploaded by the user, which reduces the threshold of generating the video theme and meets the visual effect of the user when switching the screen state of the electronic device.
[0027] The content of the first resource displayed on the plurality of theme pages of the at least one theme page is different.
[0028] The at least one theme page includes a target theme page.
[0029] In the theme generation method, the electronic device can first display a theme page corresponding to the first resource, and then generate a theme corresponding to a theme page selected by the user through the selection of the user, without generating a theme corresponding to each theme page, thereby reducing the power consumption of the electronic device in the theme generation process, further improving the generation efficiency of the theme that the user wants to apply, and improving the user experience.
[0030] In an implementation manner of the second aspect, when the electronic device generates the theme corresponding to the target theme page, the electronic device first acquires a sub-resource in the first resource corresponding to the target theme page, and then acquires a script file corresponding to the target theme page. Secondly, the electronic device generates a theme package corresponding to the target theme page according to the sub-resource and the script file, and finally generates the theme corresponding to the target theme page according to the theme package. The sub-resource represents any one of a target object, a character, and a video segment in the first resource; the target object is at least one of a person, an animal, a building, or an object; and the character is at least one of a number or a word. It can be seen that the electronic device can generate a corresponding theme package according to the sub-resource and the script file corresponding to the target theme page, thereby generating the theme corresponding to the target theme page, reducing the threshold for the user to make the theme, improving the generation speed of the theme, and improving the user experience.
[0031] In a third aspect, an electronic device is provided, which includes a memory and one or more processors; the memory is coupled to the processor; and the memory stores computer program codes including computer instructions, which, when executed by the processor, cause the electronic device to perform the theme preview method in the first aspect and any implementation manner thereof, or perform the theme generation method in the second aspect and any implementation manner thereof.
[0032] In a fourth aspect, a computer readable storage medium is provided, which includes computer instructions, which, when executed on an electronic device, cause the electronic device to perform the theme preview method in the first aspect and any implementation manner thereof, or perform the theme generation method in the second aspect and any implementation manner thereof.
[0033] In a fifth aspect, a computer program product is provided, which, when executed on an electronic device, causes the electronic device to perform the theme preview method in the first aspect and any implementation manner thereof, or perform the theme generation method in the second aspect and any implementation manner thereof.
[0034] The electronic device provided in the third aspect, the computer readable storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect can achieve the beneficial effects as described with reference to the first aspect and any of the implementation manners thereof, the second aspect and any of the implementation manners thereof, and details are not described herein again. BRIEF DESCRIPTION OF DRAWINGS
[0035] FIG. 1 shows a hardware structure schematic diagram of an electronic device provided in an embodiment of the present application;
[0036] FIG. 2 shows a software structure schematic diagram of an electronic device provided in an embodiment of the present application;
[0037] FIG. 3 shows a software structure schematic diagram of an electronic device provided in an embodiment of the present application;
[0038] FIG. 4 shows a flowchart of a theme preview method provided in an embodiment of the present application;
[0039] FIG. 5 shows a schematic diagram of uploading a resource provided in an embodiment of the present application;
[0040] FIG. 6 shows a flowchart of obtaining a sub-resource provided in an embodiment of the present application;
[0041] FIG. 7 shows a schematic diagram of a script file provided in an embodiment of the present application;
[0042] FIG. 8 shows a flowchart of generating a theme package provided in an embodiment of the present application;
[0043] FIG. 9 shows a schematic diagram of a theme provided in an embodiment of the present application;
[0044] FIG. 10 shows a schematic diagram of theme preview and theme application provided in an embodiment of the present application;
[0045] FIG. 11 shows a schematic diagram of theme preview and theme application provided in an embodiment of the present application;
[0046] FIG. 12 shows a schematic diagram of theme display provided in an embodiment of the present application;
[0047] FIG. 13 shows a schematic diagram of theme display provided in an embodiment of the present application;
[0048] FIG. 14 shows a flowchart of a theme generation method provided in an embodiment of the present application;
[0049] FIG. 15 shows a hardware structure schematic diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, " / " represents an "or" relationship between the objects before and after the " / ", for example, A / B can represent A or B; in the present application, "and / or" is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone, where A and B can be singular or plural. In the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or similar expressions means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c, can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second", etc. are used to distinguish the same items or similar items with basically the same function and effect. Those skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not necessarily mean different. At the same time, in the embodiments of the present application, "exemplary" or "for example" means to present relevant concepts in a specific way for understanding.
[0051] In addition, the business scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that as new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0052] In the process of generating a theme, a design team is usually required to design the theme from the design planning of the theme to the production of the theme, and a technical team is required to collect the theme from the demand collection of the theme to the function release of the theme. The cumulative time length needs several months. It can be seen that the theme production cycle is long, the production cost is high, and the produced theme also depends on the system version upgrade to be used by users. In addition, a theme can also be produced by a third-party software theme production tool, but the theme production tool needs to write code to produce a personalized theme, which has a large technical difficulty, and the installation environment of the theme production tool requires high hardware device conditions, so the applicability is low, and it is not suitable for popularization to the general public.
[0053] In the process of applying themes, a user usually activates the corresponding theme effect by switching among the existing themes on the terminal device, such as switching a single lock screen, wallpaper picture or moving picture, or replacing simple elements in part of the theme. However, this way is limited to the existing themes on the terminal device, so the theme content and range applied are relatively single, which cannot meet the user's demand for personalized themes and affects the user experience.
[0054] Therefore, embodiments of the present application provide a theme preview method and a theme generation method.
[0055] In a theme preview method, a preview image of each theme corresponding to a resource uploaded by a user is displayed on an electronic device, the preview image including any type of theme page of the corresponding theme, and the content of the resource displayed on the same type of theme page is different between different themes, thereby improving the diversity of theme preview, meeting the user's demand for personalized themes, and improving the user experience.
[0056] In some embodiments, the above theme preview method is applied to an electronic device as an example. First, the electronic device acquires a first resource in response to a first operation of a user. Then, the electronic device generates at least one theme corresponding to the first resource according to the first resource. Finally, the electronic device displays a preview image corresponding to the at least one theme.
[0057] For example, the first operation is an operation of the user uploading the first resource, or an operation of the user selecting the first resource in an album.
[0058] For example, the first resource is a picture or a video.
[0059] For example, one of the at least one theme includes at least one type of theme page, and the content of the first resource displayed on the same type of theme page is different between multiple themes in the at least one theme.
[0060] For example, the type of the theme page is related to the screen state of the electronic device. For example, the different types of theme pages can be pages displayed when the screen of the electronic device is in an AOD state, or pages displayed when the screen of the electronic device is in a lock screen state, or pages displayed when the screen of the electronic device is in a desktop display state.
[0061] For example, the preview image includes any one theme page in the at least one theme.
[0062] For example, for each theme, any one theme page displayed in the preview image corresponding to the theme can be any type of theme page corresponding to the theme, or a carousel of at least two types of theme pages corresponding to the theme.
[0063] In the theme preview method, the preview image of each theme corresponding to the resource is displayed through the resource uploaded by the user, the diversity of theme preview is improved, the demand of the user for personalized theme is met, and the user experience is improved.
[0064] In a theme generation method, taking the application to the electronic device as an example, first, the electronic device acquires a first resource in response to a first operation of the user, then the electronic device displays at least one theme page corresponding to the first resource according to the first resource, and finally, the electronic device generates a theme corresponding to a target theme page in response to a selection operation of the target theme page.
[0065] For example, the first operation is an operation of the user uploading the first resource, or an operation of the user selecting the first resource in an album.
[0066] The first resource is a picture or a video.
[0067] The contents of the first resource displayed on the multiple theme pages of the at least one theme page are different.
[0068] The at least one theme page includes the target theme page.
[0069] In the theme generation method, according to the resource uploaded by the user, at least one theme page can be displayed first, the user can select a theme page in the at least one theme page, and a theme corresponding to the theme page is generated, without generating a theme corresponding to each theme page, only the theme that the user wants to apply is generated, the power consumption of the electronic device in the process of generating the theme is reduced, the generation efficiency of the theme is further improved, and the user experience is improved.
[0070] In some embodiments, as shown in FIG. 1, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0071] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software or a combination of software and hardware.
[0072] The processor 110 can include one or more processing units (not shown in FIG. 1), for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0073] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and instruction execution.
[0074] In some possible implementations, the controller can specifically control the electronic device 100 to obtain a first resource uploaded by a user, the controller can also specifically control the electronic device 100 to generate at least one theme corresponding to the first resource according to the first resource, and the controller can also specifically control the electronic device 100 to display a preview image corresponding to the at least one theme.
[0075] In another possible implementation, the controller can specifically control the electronic device 100 to obtain the first resource in response to a first operation of a user, the controller can also specifically control the electronic device 100 to display at least one theme page corresponding to the first resource according to the first resource, wherein the content of the first resource displayed on each theme page is different, and the controller can also specifically control the electronic device 100 to generate a theme corresponding to a target theme page in response to a selection operation on the target theme page. Among them, the at least one theme page includes the target theme page.
[0076] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.
[0077] In some embodiments, the processor 110 can include one or more interfaces (not shown in FIG. 1). For example, the USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0078] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger.
[0079] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160, etc.
[0080] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0081] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves radiated through the antenna 1.
[0082] The wireless communication module 160 can provide a solution for wireless communication, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be sent from the processor 110, perform frequency modulation, amplification, and convert them into electromagnetic wave radiation via the antenna 2.
[0083] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0084] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.
[0085] In some possible implementations, the electronic device 100 can display at least one theme corresponding preview image through the display screen 194. The electronic device 100 can also display the first resource or a sub-resource in the first resource through the display screen 194 in different states; the state is any one of the AOD state, the lock screen state, and the display desktop state; the sub-resource indicates any one of the target object, the character, and the video segment in the first resource; the target object is at least one of the person, the animal, the building, or the object; the character is at least one of the number or the character.
[0086] In another possible implementation, the electronic device 100 can display at least one theme page corresponding to the first resource through the display screen 194.
[0087] It can be understood that the display screen 194 mentioned herein can be used as a screen in the following embodiments.
[0088] The electronic device 100 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
[0089] The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture a still image or a video.
[0090] The digital signal processor is used to process digital signals, which can process not only digital image signals but also other digital signals. The video codec is used to compress or decompress digital videos. The NPU is a neural-network (NN) calculation processor, which can quickly process input information by drawing on the structure of a biological neural network, for example, by drawing on the transmission mode between human brain neurons, and can also constantly self-learn. Through the NPU, the electronic device 100 can implement intelligent cognition and other applications, such as image recognition, voice recognition, text understanding, etc.
[0091] In some possible implementations, the electronic device 100 can perform image enhancement, image compression, edge detection, feature extraction, etc. on the picture uploaded by the user through the digital signal processor, so as to optimize the picture quality and improve the processing efficiency and performance of the picture.
[0092] In some possible implementations, the electronic device 100 can decode the video uploaded by the user and perform some basic processing, such as removing noise, adjusting brightness and contrast, etc. through the video codec, so as to further improve the video quality.
[0093] In some possible implementations, the electronic device 100 can identify the resource uploaded by the user through the NPU, so as to obtain the sub-resource in the resource.
[0094] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function.
[0095] In some possible implementations, the electronic device 100 can store the first resource, at least one sub-resource in the first resource, a script file, and a theme package in the external memory card; the script file is used to generate a theme page in combination with the sub-resource, and the theme package represents a collection of a series of files and resources, such as the resource uploaded by the user, at least one sub-resource in the resource, and the corresponding script file, etc.
[0096] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 performs various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program (such as a sound playing function, an image playing function, etc.) required by a function, etc. The data storage area can store data (such as audio data, a phone book, etc.) created during use of the electronic device 100, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0097] In some possible implementations, the electronic device 100 can also store the first resource, at least one sub-resource in the first resource, the script file, and the theme package through the internal memory 121.
[0098] The electronic device 100 can realize an audio function through the audio module 170 and an application processor, etc. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode an audio signal.
[0099] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys. They can also be touch keys. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate a message, a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.
[0100] Based on the electronic device shown in FIG. 1, the theme preview method in the embodiment of the present application is implemented. The preview images of different themes corresponding to the resources uploaded by the user are displayed, the diversity of theme preview is improved, the demand of the user for personalized themes is met, and the user experience is improved.
[0101] Based on the electronic device shown in FIG. 1, the theme generation method in the embodiment of the present application is implemented. According to the resources uploaded by the user, at least one theme page corresponding to the resources is displayed, only the theme corresponding to the theme page selected by the user in the at least one theme page is generated, the generation step of unnecessary themes is reduced, the power consumption of the electronic device is reduced, the efficiency of theme generation is improved, the demand of the user for personalized themes is met, and the user experience is improved.
[0102] In some embodiments, as shown in FIG. 2, the electronic device 100 can also employ a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.
[0103] As shown in FIG. 2, the layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system service layer, and the kernel layer.
[0104] The application layer can include a series of application packages.
[0105] As shown in FIG. 2, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0106] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.
[0107] As shown in FIG. 2, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0108] Among them, the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0109] The system service layer can include a plurality of functional modules. For example: surface manager, media library, three-dimensional graphics processing library (for example: OpenGL ES), two-dimensional graphics engine (for example: SGL), etc.
[0110] In some possible implementations, the system service layer can include a theme making module, the theme making module being configured to, in response to a first operation, acquire a first resource, and generate at least one theme corresponding to the first resource according to the first resource, and display a preview image corresponding to the at least one theme.
[0111] In some possible implementation manners, the theme generation module is further configured to, in response to a first operation of the user, acquire the first resource, display at least one theme page corresponding to the first resource according to the first resource, and generate a theme corresponding to a target theme page in response to a selection operation on the target theme page; and the at least one theme page includes the target theme page.
[0112] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0113] The theme preview method in the embodiment of the present application is implemented based on the electronic device shown in FIG. 2. At least one theme corresponding to a resource can be generated based on the resource uploaded by the user, and a preview image of different themes corresponding to the resource is displayed. A preview effect of multiple themes is provided for the user to select, the diversity of theme preview is improved, the demand of the user for a personalized theme is met, and the use experience of the user is improved.
[0114] The theme generation method in the embodiment of the present application is implemented based on the electronic device shown in FIG. 2. At least one theme page corresponding to a resource can be displayed based on the resource uploaded by the user, and only a theme corresponding to a theme page selected by the user in the at least one theme page is generated. The generation process of unnecessary themes is reduced, the power consumption of the electronic device is reduced, the generation efficiency of the theme is improved, the demand of the user for a personalized theme is met, and the use experience of the user is improved.
[0115] In some embodiments, the structure of the electronic device 100 can also be as shown in FIG. 3. The electronic device 100 includes a theme editing module, a theme management module, a theme storage module, a theme engine module, and a theme display module. The theme editing module is configured to provide an upload interface, acquire a resource uploaded by the user, and send the acquired resource to the theme management module. The theme management module is configured to acquire at least one sub-resource in the resource, generate a theme corresponding to each sub-resource, send the theme corresponding to each sub-resource to the theme storage module, and send a notification to the theme display module. The theme storage module is configured to store the theme corresponding to each sub-resource in a corresponding theme resource directory. The theme display module is configured to receive the notification, send a request of loading the theme engine to the theme engine module, and display a preview image of each theme corresponding to the resource according to a rendering result of the theme engine module.
[0116] In some embodiments, the subject editing module is configured to provide an uploading interface, acquire a resource uploaded by a user, and send the acquired resource to the subject management module. The subject management module is configured to acquire at least one sub-resource in the resource, generate a subject page corresponding to each sub-resource, send the subject page corresponding to each sub-resource to the subject display module, and display the subject page corresponding to each sub-resource. The subject display module is configured to receive a target subject page selected by the user, and notify the subject management module. The subject management module is configured to generate a target subject corresponding to the target subject page, send the target subject to the subject storage module, and notify the subject display module. The subject storage module is configured to store the target subject corresponding to the target subject page in a corresponding subject resource directory. The subject display module is configured to receive the notification, send a request for loading the subject engine to the subject engine module, and the subject engine module is configured to acquire the target subject corresponding to the target subject page from the subject storage module according to the request.
[0117] The subject preview method in the embodiments of the present application is implemented based on the electronic device shown in FIG. 3. The preview image of each subject corresponding to the resource uploaded by the user can be displayed, the generation speed of the subject is improved, the diversity of the preview is improved, the demand of the user for the personalized subject is met, and the user experience is improved.
[0118] The subject generation method in the embodiments of the present application is implemented based on the electronic device shown in FIG. 3. According to the resource uploaded by the user, at least one subject page corresponding to the resource can be displayed, and only the subject corresponding to the subject page selected by the user in the at least one subject page is generated. The power consumption of the electronic device is reduced, the generation speed of the subject is improved, the demand of the user for the personalized subject is met, and the user experience is improved.
[0119] The electronic device can be a mobile phone, a tablet computer, a wearable device (such as a smart watch, a smart bracelet, etc.), a smart furniture device (such as a television, etc.), a vehicle machine (such as a vehicle terminal), or the like. The mobile phone can be a foldable screen mobile phone or a non-foldable screen mobile phone.
[0120] The subject preview method and the subject generation method in the embodiments of the present application are described below with the electronic device being a mobile phone as an example.
[0121] Embodiment One
[0122] Referring to FIG. 4, the above-mentioned subject preview method can include the following steps S401-S403.
[0123] S401, the mobile phone acquires a first resource in response to a first operation of the user.
[0124] The first resource is a picture or a video.
[0125] The first operation is, for example, an operation of uploading the first resource by the user or an operation of selecting the first resource in the album by the user. The operation of uploading the first resource by the user includes any one of a click operation or a drag operation. For example, the click operation of uploading the first resource can be an operation of selecting a picture / video that the user wants to upload in the album of the mobile phone, and then clicking the "upload" control on the interface of the mobile phone as shown in FIG. 4, so as to realize uploading of the picture / video. For example, the drag operation of selecting the first resource in the album can be an operation of dragging the picture / video that the user wants to upload in the second split-screen album of the mobile phone to the "upload" control displayed in the first split-screen of the mobile phone when the screen of the mobile phone is split as shown in FIG. 5, so as to realize uploading of the picture / video.
[0126] The picture / video uploaded by the user can be, for example, taken by the camera of the mobile phone, downloaded from the network, or made by drawing, splicing, and cutting, and the like.
[0127] The mobile phone can determine whether the first resource is a picture or a video by the suffix in the name of the first resource. For example, if the name of the first resource is xxx.jpg, the first resource is a picture, and if the name of the first resource is xxx.mp4, the first resource is a video.
[0128] S402, the mobile phone generates at least one theme corresponding to the first resource according to the first resource.
[0129] One of the at least one theme includes at least one type of theme page, and the contents of the first resource displayed by the multiple themes on the theme pages of the same type are different.
[0130] The type of the theme page is related to the screen state of the mobile phone. For example, the type of the theme page can be any one of a type corresponding to an AOD state, a lock screen state, or a display desktop state. The display desktop state can be a state of displaying a small window page or a pop-up window on the desktop or a state of displaying a drop-down menu on the desktop. For example, a theme includes a theme page in the lock screen state and a theme page in the display desktop state.
[0131] The contents of the first resource displayed by the multiple themes on the theme pages of the same type are different, which can be displaying different contents in the first resource or displaying the contents in the first resource in different display modes. The display mode can be any one of dynamic display, static display, dynamic and static combination display, forward sequence playback, or reverse sequence playback.
[0132] In some embodiments, the mobile phone, when generating the at least one theme corresponding to the first resource, first acquires at least one sub-resource in the first resource, then acquires a script file corresponding to the sub-resource for each of the at least one sub-resource, secondly generates a theme package corresponding to the sub-resource according to the sub-resource and the script file, and finally generates a theme including at least one type of theme page corresponding to the sub-resource according to the theme package.
[0133] In some embodiments, the sub-resource is any one of a target object, a character, and a video segment in the first resource, the target object is at least one of a person, an animal, a building, or an object, and the character is at least one of a number and a word.
[0134] For example, as shown in FIG. 6, after acquiring the first resource, the mobile phone performs automatic analysis on the first resource. The automatic analysis can be that the mobile phone determines a sub-resource corresponding to each theme type in the first resource according to a plurality of preset theme types, and splits the sub-resource corresponding to each theme type in the first resource through automatic disassembly. The theme type can include an element sharing type, a simple picture type, a one-shot type, a data type, and other types. When the theme type is the element sharing type, the corresponding sub-resource obtained by splitting is a target object. When the theme type is the data type, the corresponding sub-resource obtained by splitting is a character. When the theme type is the one-shot type, the corresponding sub-resource obtained by splitting is a video segment. When the theme type is the simple picture type, there is no corresponding sub-resource. When the theme type is the other type, the corresponding sub-resource obtained by splitting can be a video segment and / or a video frame image different from the one-shot type.
[0135] For example, when the first resource is a picture, the automatic analysis can be an artificial intelligence (AI) picture automatic analysis. The AI picture automatic analysis can determine a target object and / or a character in the picture through at least one of a definition, a color, a brightness, a contrast, a size, a position, a shape, a texture, and a deep learning feature in the picture. For example, the mobile phone can determine a region with a definition greater than a corresponding preset threshold in the picture as a foreground region in the picture, determine a target object in the foreground region through a region with a contrast greater than a corresponding preset threshold in the foreground region, and perform cutout on the target object in the picture through an AI picture automatic disassembly method to obtain the target object in the picture. The mobile phone can also determine a character in the picture through extraction of a deep learning feature in the picture, and obtain the character in the picture through an AI picture automatic disassembly method.
[0136] For example, when the first resource is a video, the automatic analysis can be AI video automatic analysis, which can be a method in which the mobile phone determines video clips in the video according to key frames and time lengths in the video and obtains the video clips in the video through AI video automatic analysis. Assuming that the time length of a single transition video is less than 1.2s, the mobile phone can be matched in the video in a loop, for example, 1 key frame per second within 1.2s, if the mobile phone determines that there are more than 2 key frames within the current 1.2s, it is determined that there is a significant change in the video frame image within the current 1.2s, the current 1.2s is determined as a single transition video, and each transition video in the video is cropped according to the corresponding key frame in the video through the AI video automatic analysis method to obtain the video clips in the video.
[0137] The script file is used to generate a theme page in combination with a sub-resource.
[0138] For example, the script file can be in json format, and the script file includes code for triggering logic, code for executing content, and code for rendering content.
[0139] For example, when the theme type is one-shot, the script file corresponding to the one-shot type can be as shown in FIG. 7. The trigger name "Aod2Lock" of the trigger event 1 (the mobile phone screen state switches from the AOD state to the lock screen state) and the execution name "OneShotAodLock" of the corresponding execution content storyBoard are included in the trigger logic EventTrigger, the trigger name "Lock2Home" of the trigger event 2 (the mobile phone screen state switches from the lock screen state to the display desktop state) and the execution name "OneShotLockHome" of the corresponding execution content storyBoard, the execution name "OneShotAodLock" and the corresponding resource name "aod2lock.mp4" are included in the execution content StoryBoard, the execution name "OneShotLockHome" and the corresponding resource name "lock2home.mp4", and some settings of attributes required for rendering are included in the rendering content, such as whether a background is required isBackground, the background is not required isBackground is set to false, and the height height and width width of the rendering are set. Thus, in the case where the mobile phone screen state switches from the AOD state to the lock screen state, the mobile phone renders the sub-resource with the resource name "aod2lock.mp4", and in the case where the mobile phone screen state switches from the lock screen state to the display desktop state, the mobile phone renders the sub-resource with the resource name "lock2home.mp4".
[0140] Exemplarily, for each subject type corresponding to each sub-resource, the mobile phone can pack the script file corresponding to the subject type, the first resource and the sub-resource corresponding to the subject type to obtain the subject package corresponding to the subject type. For example, as shown in FIG. 8, the subject types corresponding to the first resource are the element sharing type, the simple picture type, the one-shot type, the data type and the other type, the sub-resource corresponding to the element sharing type is the target object, the target object, the script file corresponding to the element sharing type and the picture (the first resource is the picture) are packed to obtain the subject package corresponding to the element sharing type, the sub-resource corresponding to the data type is the character, the character, the script file corresponding to the data type and the picture (the first resource is the picture) / the video frame image (the first resource is the video) where the character is located are packed to obtain the subject package corresponding to the data type, the simple picture type has no corresponding sub-resource, the script file corresponding to the simple picture type and the picture (the first resource is the picture) are packed to obtain the subject package corresponding to the simple picture type, the sub-resource corresponding to the one-shot type is the video segment, the script file corresponding to the one-shot type and the video segment (the first resource is the video) are packed to obtain the subject package corresponding to the one-shot type, the sub-resource corresponding to the other type is the video segment and / or the video frame image different from the video segment corresponding to the one-shot type, the first script file corresponding to the other type and the video segment corresponding to the other type are packed, or the second script file corresponding to the other type and the video frame image are packed, or the third script file corresponding to the other type and the video segment and the video frame image corresponding to the other type are packed to obtain the subject package corresponding to the other type.
[0141] Exemplarily, in the process of executing the script file in the subject package, the mobile phone can fill the name of the first resource and the name of the corresponding sub-resource into the corresponding position of the script file to generate the subject page corresponding to the subject type, and take the collection of the subject pages of each type (the type is any one of the AOD state, the lock screen state or the display desktop state) of the subject type as the subject corresponding to the subject type. For example, the subject corresponding to the one-shot type can be as shown in FIG. 9.
[0142] For example, the sub-resource is the target object, the target object is a cow in a picture, the subject type corresponding to the cow is the element sharing type, the mobile phone obtains the script file corresponding to the element sharing type, packs the picture, the cow and the script file to associate the script file with the picture and the cow to obtain the subject package corresponding to the element sharing type, and executes the script file in the subject package, and fills the name of the picture or the name of the cow into the corresponding position of the script file in the execution process to display the subject page corresponding to the element sharing type.
[0143] For example, the sub-resource is two video clips, the two video clips are respectively a first video clip and a second video clip in a video, and the two video clips correspond to a one-take type. The mobile phone acquires a script file corresponding to the one-take type, packs the first video clip in the video, the second video clip in the video, and the script file, so as to associate the script file with the first video clip in the video and the second video clip in the video, obtain a theme package corresponding to the one-take type, and execute the script file in the theme package. During the execution, the name of the first video clip and / or the name of the second video clip are filled in the position corresponding to the script file, so as to display a theme page corresponding to the one-take type.
[0144] For example, the sub-resource is a character, and in the case that the character is weather data, the weather data corresponds to a data type. The mobile phone acquires a script file corresponding to the data type, packs a first resource (which can be a picture or a video frame image in a video), the weather data, and the script file, so as to associate the script file with the first resource and the weather data, obtain a theme package corresponding to the data type, and execute the script file in the theme package. During the execution, the name of the first resource or the name of the weather data is filled in the position corresponding to the script file, so as to display a theme page corresponding to the data type. The weather data in the displayed theme page can be edited by a user.
[0145] It can be seen that the mobile phone can automatically generate a corresponding theme package according to the sub-resource and the corresponding script file, generate different theme packages through different types of sub-resources, reduce the threshold of theme production, and improve the efficiency and convenience of theme production.
[0146] S403, the mobile phone displays a preview image corresponding to at least one theme.
[0147] The preview image includes any one theme page in the at least one theme.
[0148] For example, after the mobile phone acquires at least one theme corresponding to the first resource, the mobile phone displays a preview image corresponding to the at least one theme.
[0149] For example, for each theme, any one theme page displayed in the preview image corresponding to the theme can be any one type of theme page corresponding to the theme, or can be a carousel of multiple types of theme pages corresponding to the theme. For example, the preview image corresponding to the theme can only display a theme page in a lock screen state, or can display a carousel of a theme page in an AOD state, a theme page in a lock screen state, and a theme page in a desktop state.
[0150] In the theme preview method, the preview image of each theme corresponding to the resource uploaded by the user can be displayed, the threshold for theme production is lowered, the diversity of theme preview is improved, the demand of users for personalized themes is met, the user can intuitively see the actual effect of each theme generated by the mobile phone, it is ensured that the theme selected by the user matches their personal preferences and aesthetic expectations, the situation of finding dissatisfaction after application is avoided, the number of frequent changes is reduced, the success rate of theme application is improved, and the user experience is improved.
[0151] In some embodiments, the preview images corresponding to the plurality of themes respectively are displayed in a preset order, and the preset order is determined according to the matching degrees of the first resource and the plurality of themes corresponding to the first resource respectively.
[0152] For example, the mobile phone can determine the matching degree of each theme in the plurality of themes corresponding to the first resource respectively according to at least one sub-resource of the first resource.
[0153] For example, if the first resource is a picture, the matching degree of at least one theme corresponding to the picture is higher than the matching degree of at least one theme corresponding to a video, the mobile phone can obtain at least one theme with a matching degree greater than a first preset matching threshold from the matching degrees of the at least one theme corresponding to the picture, or obtain at least one theme with a matching degree greater than a second preset matching threshold from the matching degrees of each preset theme and the first resource, the first preset matching threshold and the second preset matching threshold can be the same or different; similarly, if the first resource is a video, the matching degree of at least one theme corresponding to the video is higher than the matching degree of at least one theme corresponding to a picture, the mobile phone can obtain at least one theme with a matching degree greater than a first preset matching threshold from the matching degrees of the at least one theme corresponding to the video, or obtain at least one theme with a matching degree greater than a second preset matching threshold from the matching degrees of each preset theme and the first resource.
[0154] For example, after determining that the first resource is a picture, the phone can obtain the matching degree of at least one theme corresponding to at least one sub-resource in the first resource according to the at least one sub-resource. For example, after determining that the sub-resources are target objects and characters, the phone can determine that the matching degree of the theme corresponding to the target objects (which can also be the shared element type in the above example) is the highest, the matching degree of the theme corresponding to the characters (which can also be the data type in the above example) is the second highest, and the matching degree of the theme corresponding to the simple picture is the lowest. If the first resource does not include target objects, if the sub-resource is a character, the phone can determine that the matching degree of the theme corresponding to the data type is the highest, the matching degree of the theme corresponding to the simple picture is the second highest, and the matching degree of the theme corresponding to the simple picture is the lowest. After determining that the first resource is a video, the phone can obtain the matching degree of at least one theme corresponding to at least one sub-resource in the first resource according to the at least one sub-resource. For example, after determining that the sub-resources include a first video segment and a second video segment, the phone can determine that the matching degree of the theme corresponding to the two video segments (which can also be the one-shot type in the above example) is the highest, and the matching degree of the theme corresponding to other types is the second highest.
[0155] It can be seen that, by matching the themes corresponding to the first resource according to the matching degree, the preview pages of each theme corresponding to the first resource can be displayed in the order, the preview page corresponding to the theme with the best matching effect is displayed first, and the application success rate of the theme and the use experience of the user are improved.
[0156] In some embodiments, after the phone displays the preview image corresponding to the at least one theme on the screen, the phone can set multiple theme pages in the theme corresponding to the first preview image as pages displayed on the screen in corresponding states in response to a selection operation of the user on the first preview image.
[0157] For example, the first preview image is included in the preview image corresponding to the at least one theme, and the theme corresponding to the first preview image includes at least two of a first theme page, a second theme page, or a third theme page. The first theme page is used to represent a page displayed on the screen in an AOD state, the second theme page is used to represent a page displayed on the screen in a lock screen state, and the third theme page is used to represent a page displayed on the screen in a desktop display state.
[0158] For example, as shown in FIG. 9, the user can view the preview image corresponding to the theme behind by swiping leftward with the finger 1 on the screen of the mobile phone, or by swiping leftward with the finger 2 on the theme.
[0159] For example, the selection operation of the user on the first preview image corresponding to each theme can be a click operation of the user on the first preview image, or a click operation of the user on the theme type corresponding to the first preview image, or a click operation of the user on the corresponding control (for example, the "apply" control) after selecting the first preview image or the theme type corresponding to the first preview image. For example, when the preview images corresponding to each theme are displayed in the form of a carousel, the user can apply the theme 1 by clicking the theme 1 with the finger 3, or by clicking the preview image of the theme 1 with the finger 4, or by clicking the "apply" control with the finger 5 after selecting the theme 1 by clicking the theme 1 with the finger 3 or by clicking the preview image of the theme 1 with the finger 4, as shown in FIG. 10, so as to set the multiple theme pages in the theme 1 as the pages displayed on the screen of the mobile phone in the corresponding states, respectively.
[0160] In some embodiments, when the mobile phone sets the multiple theme pages in the theme corresponding to the first preview image as the pages displayed on the screen of the mobile phone in the corresponding states, respectively, in response to the selection operation of the user on the first preview image, the mobile phone can also display a preview page of the theme corresponding to the first preview image in response to the selection operation of the user on the first preview image, and then set the multiple theme pages in the theme corresponding to the first preview image as the pages displayed on the screen in the corresponding states, respectively, in response to the selection operation of the user on the theme corresponding to the first preview image in the preview page.
[0161] For example, the preview page includes at least one theme page in the theme corresponding to the first preview image.
[0162] For example, the selection operation on the theme corresponding to the first preview image can be a click operation of the user on the theme corresponding to the first preview image, or a click operation of the user on the "apply" control in the preview page.
[0163] For example, after the user selects a first preview image corresponding to theme 1 (assuming a shared element type) in the preview image corresponding to each theme, the phone displays a preview page as shown in FIG. 11. In the preview page, the theme page corresponding to the shared element type (theme page in AOD state and theme page in lock screen state) is displayed. The user can also display the theme page in the display desktop state corresponding to the shared element type by swiping left. The user can click the "application" control or the title control of the displayed shared element type on the preview page to apply the theme corresponding to the shared element type.
[0164] As can be seen, the user can select a theme to be applied by the effect of different themes displayed on the preview page, thereby improving the convenience and satisfaction of the user in applying the theme.
[0165] In some embodiments, in the case where the first resource is a picture and the sub-resource is a target object in the picture, only the target object in the picture is displayed on the first theme page, and the second theme page and / or the third theme page displays the first resource.
[0166] For example, in the case where the sub-resource is a target object in the picture, the phone can display only the target object in the picture in the AOD state, display the picture in the lock screen state, or display only the target object in the picture in the AOD state and display the picture in the display desktop state, or display only the target object in the picture in the AOD state and display the picture in both the lock screen state and the display desktop state.
[0167] For example, when the phone applies the theme of the shared element type, the phone executes the script file in the theme package corresponding to the shared element type again. During execution, the phone references the name of the picture or the name of the target object in the theme package at the corresponding position of the script file, so as to replace the display of the phone screen in the corresponding state with the picture or the target object, for example, a picture uploaded by the user, the foreground of which is a person holding a bicycle on a grassy slope, and the background of which is a passerby running on the grassy slope. If the user selects the theme type to be applied as the element sharing type and the target object is a person holding a bicycle, the display of the phone screen in different states is as shown in FIG. 12. When the phone screen is in the AOD state, the first theme page, i.e., the target object (a person holding a bicycle), is displayed. When the screen is in the lock screen state or the display desktop state, the picture is displayed.
[0168] As can be seen, the target object in the picture and the picture are respectively taken as the display of the phone screen in different states by the picture uploaded by the user, so as to realize the transition between the target object and the picture when the state of the phone screen is subsequently changed, thereby improving the diversity of page display and the visual experience of the user and meeting the demand of the user for a personalized theme.
[0169] In some embodiments, in the case that the first resource is a video, the sub-resources include a first video clip and a second video clip in the video, the first frame image of the first video clip is displayed on the first theme page, the last frame image of the first video clip or the first frame image of the second video clip is displayed on the second theme page, and the last frame image of the second video clip is displayed on the third theme page.
[0170] For example, the first frame image refers to the first frame of the video clip. In some cases, if the first frame starts from the zeroth frame, the first frame image is the zeroth frame image. Similarly, the last frame image is the last frame of the video clip.
[0171] For example, as shown in FIG. 13, the first frame image of the first video clip, which is an image of a person running on a hill in the distance, is displayed on the phone screen in the AOD state. The phone can also play the first video clip on the phone screen in response to the user's operation of changing the phone screen from the AOD state to the lock screen state, that is, during the process of switching the phone screen from the AOD state to the lock screen state. After the first video clip is played, the last frame image (the second theme page) in the first video clip is displayed on the phone screen, and the phone screen becomes the lock screen state. The last frame image in the first video clip is an image of the person running at the central position of the hill.
[0172] For example, as shown in FIG. 13, the phone can also play the second video clip on the phone screen in response to the user's operation of changing the phone screen from the lock screen state to the display desktop state, that is, during the process of switching the phone screen from the lock screen state to the display desktop state. After the second video clip is played, the last frame image (the third theme page) in the second video clip is displayed on the phone screen, and the phone screen becomes the display desktop state. The last frame image in the second video clip is an image of the person running at the nearest hill position.
[0173] For example, the phone plays the first video clip and the second video clip on the phone screen in response to the user's operation of changing the phone screen from the AOD state to the display desktop state, that is, during the process of switching the phone screen from the AOD state to the display desktop state. After the second video clip is played, the last frame image (the third theme page) in the second video clip is displayed on the phone screen, and the phone screen becomes the display desktop state.
[0174] Exemplarily, the mobile phone can also play the second video clip and the first video clip on the mobile phone screen in response to the operation of the user changing the mobile phone screen from the desktop state to the AOD state, that is, in the process of switching the mobile phone screen from the desktop state to the AOD state, play the second video clip on the mobile phone screen, display the first frame image in the first video clip (the first theme page) on the mobile phone screen after the second video clip is played, and change the mobile phone screen to the AOD state.
[0175] Exemplarily, the mobile phone can also play the second video clip and the first video clip on the mobile phone screen in response to the operation of the user changing the mobile phone screen from the desktop state to the AOD state, that is, in the process of switching the mobile phone screen from the desktop state to the AOD state, play the second video clip on the mobile phone screen, display the first frame image in the first video clip (the first theme page) on the mobile phone screen after the second video clip is played, and change the mobile phone screen to the AOD state.
[0176] Exemplarily, the mobile phone can also play the second video clip and the first video clip on the mobile phone screen in response to the operation of the user changing the mobile phone screen from the desktop state to the AOD state, that is, in the process of switching the mobile phone screen from the desktop state to the AOD state, play the second video clip on the mobile phone screen, display the first frame image in the first video clip (the first theme page) on the mobile phone screen after the second video clip is played, and change the mobile phone screen to the AOD state.
[0177] Exemplarily, the first video clip and the second video clip can be different video clips or the same video clip. The similarity between the last frame image of the first video clip and the first frame image of the second video clip is within a preset range, so that the video seen by the user when switching the screen state is coherent, improving the user's visual experience.
[0178] It can be seen that the corresponding theme is made according to the video uploaded by the user, which reduces the threshold of making a video theme, meets the user's visual experience when switching the mobile phone screen state, increases the user's visual impact, and improves the user's visual experience.
[0179] In some embodiments, in the case where the sub-resource is a character, at least two of the first theme page, the second theme page, or the third theme page display the first resource after the character is updated.
[0180] Exemplarily, the sub-resource can be a character in a picture or a character in a video frame image.
[0181] For example, when the character is weather data or geographic position data, the user can associate the weather data with a weather application and the geographic position data with a positioning application. The phone can replace the weather data in the first resource with current weather data in the weather application (e.g., dynamic refresh every minute / hour), and the phone can replace the geographic position data in the first resource with current position data of the phone in the positioning application (e.g., dynamic refresh every 12 hours).
[0182] For example, when the character is weather data or geographic position data, the user can associate the weather data with a weather application and the geographic position data with a positioning application. The phone can replace the weather data in the first resource with current weather data in the weather application (e.g., dynamic refresh every minute / hour), and the phone can replace the geographic position data in the first resource with current position data of the phone in the positioning application (e.g., dynamic refresh every 12 hours).
[0183] It can be seen that the user can adjust the character in the picture / video according to his / her own needs and preferences, which improves the flexibility of theme production. In addition, the update of the character can improve the accuracy and timeliness of the picture content and improve the user's satisfaction with the personalized theme.
[0184] In some embodiments, when the theme type selected by the user is a simple picture type, the simple picture type can be a theme type in which the first resource is a picture and there is no target object and character in the first resource. When the phone screen is in any one of the lock screen state, the AOD state or the desktop display state, the first resource is displayed on the phone screen. It can be seen that the picture uploaded by the user can also be directly displayed as a wallpaper, which meets different needs of the user for picture display and improves the user's satisfaction.
[0185] In some embodiments, when the theme type selected by the user is another type, the other type can be a theme type in which the first resource is a video and there is no more than two transition videos in the video. Some video clips in the video can be displayed as transitions when the phone screen switches between different states, or some video frame images in the video can be displayed on the phone screen in different states, or at least one video clip and at least one video frame image in the video can be combined to be displayed on the phone screen in different states. It can be seen that the video uploaded by the user can generate multiple different themes, which improves the diversity of video themes and the success rate of video theme application, and improves the user's experience.
[0186] Embodiment Two
[0187] Referring to FIG. 14, the above-mentioned theme generation method can include the following steps S1401-S1403.
[0188] S1401, the mobile phone acquires a first resource in response to a first operation of a user.
[0189] The first resource is a picture or a video.
[0190] For example, the first operation is an operation of the user uploading the first resource, or an operation of the user selecting the first resource in an album.
[0191] S1402, the mobile phone displays at least one theme page corresponding to the first resource according to the first resource.
[0192] The contents of the first resource displayed on the multiple theme pages of the at least one theme page are different.
[0193] For example, the types of the at least one theme page corresponding to the first resource displayed by the mobile phone can be the same or different. The type of the theme page is related to the screen state of the mobile phone. For example, the type of the theme page can be a type corresponding to any one of an AOD state, a lock screen state or a display desktop state. One theme page is any one type of theme page corresponding to one theme type. The theme type can include an element sharing type, a simple picture type, a one-shot-to-the-bottom type, a data type and other types. Each theme page in the at least one theme page displayed by the mobile phone corresponds to a different theme type.
[0194] For example, the mobile phone is pre-set with three theme types, and the three theme types correspond to theme pages in a lock screen state. The mobile phone can generate theme pages in the lock screen state corresponding to the first resource in each theme type according to the first resource uploaded by the user, and preview display the three theme pages in the lock screen state corresponding to the first resource.
[0195] For example, when generating the theme pages in the lock screen state corresponding to the first resource in each theme type, the mobile phone can only execute the part of the script file corresponding to the lock screen state of each theme type, thereby generating the theme page corresponding to the lock screen state of each theme type.
[0196] S1403, the mobile phone generates a theme corresponding to a target theme page in response to a selection operation of the target theme page.
[0197] The at least one theme page includes the target theme page.
[0198] For example, as shown in FIG. 14, the selection operation of the target theme page can be a clicking operation of the user on the target theme page with a finger ①, a clicking operation of the user on the theme type corresponding to the target theme page with a finger ②, or an operation of the user selecting the target theme page or the theme type corresponding to the target theme page and then clicking a corresponding control (for example, a “make theme” control) with a finger ③.
[0199] In some possible implementation manners, when the mobile phone generates the theme corresponding to the target theme page, the mobile phone first acquires the sub-resource in the first resource corresponding to the target theme page, then acquires the script file corresponding to the target theme page, secondly, generates the theme package corresponding to the target theme page according to the sub-resource and the script file, and finally generates the theme corresponding to the target theme page according to the theme package.
[0200] The sub-resource indicates any one of the target object, character, and video segment in the first resource; the target object is at least one of a person, animal, building, or object; and the character is at least one of a number or character.
[0201] For example, the mobile phone can acquire the theme type corresponding to the target theme page, determine the script file and sub-resource corresponding to the theme type, generate the theme package corresponding to the theme type, execute the theme package, and generate the theme corresponding to the target theme page.
[0202] For example, when the first resource is a picture, the theme type corresponding to the target theme page is an element sharing type, the script file corresponding to the element sharing type is acquired, the sub-resource of the element sharing type is the target object in the picture, the target object in the picture is extracted and named to obtain the name of the target object, the name of the target object and the name of the picture are filled into the corresponding positions of the script file respectively, the script file is updated, the updated script file, the target object, and the picture are packaged to obtain the theme package, and the theme including the three types of theme pages of the AOD state, lock screen state, and display desktop state of the target theme page is generated by executing the theme package.
[0203] It can be seen that the mobile phone can acquire the sub-resource and script file corresponding to the target theme page through the target theme page selected by the user, generate the theme package corresponding to the target theme page, obtain the theme corresponding to the target theme, reduce the threshold for the user to make the theme, improve the generation speed of the theme, and improve the application rate of the generated theme through the mode of previewing before generating the theme, thereby improving the user experience.
[0204] In some possible implementation manners, after the mobile phone generates the theme corresponding to the target theme page, the mobile phone can display each type of theme page included in the generated theme, so as to facilitate the user to understand the preview effect of the selected theme in different states of the screen of the mobile phone and improve the user experience.
[0205] In some possible implementations, after the phone generates the theme corresponding to the target theme page, it can set each of the various theme pages included in the generated theme as the page displayed in the corresponding screen state. Therefore, the phone can directly apply the theme after generation, simplifying the preview of each type of theme page and improving the efficiency of theme application.
[0206] For example, the method by which the mobile phone applies the theme after generating the theme is similar to the method described above for setting multiple theme pages in the theme corresponding to the first preview image as the pages displayed when the screen is in the corresponding state, and will not be repeated here.
[0207] In the above-described theme generation method, the mobile phone first displays at least one theme page corresponding to the uploaded resource, and then generates only the theme corresponding to the theme page selected by the user from the at least one theme page. This reduces unnecessary theme generation steps, lowers the power consumption of the mobile phone in generating themes, thereby improving the efficiency of the mobile phone in generating themes that meet user needs, satisfying users' needs for generating personalized themes, and improving the user experience.
[0208] It is understood that, in order to achieve the above functions, the aforementioned electronic device includes hardware and / or software modules corresponding to perform each function. Based on the algorithmic steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0209] This application embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0210] This application also provides an electronic device, as shown in FIG15, which may include one or more processors 1501, memory 1502 and communication interface 1503.
[0211] The memory 1502, communication interface 1503, and processor 1501 are coupled together. For example, the memory 1502, communication interface 1503, and processor 1501 can be coupled together via bus 1504.
[0212] The communication interface 1503 is configured to transmit data with other devices. The memory 1502 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 1501, causes the electronic device to perform the subject preview method or the subject generation method in the embodiments of the present application.
[0213] The processor 1501 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various exemplary logical blocks, modules and circuits described in combination with the present disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.
[0214] The bus 1504 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 1504 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is shown in FIG. 15, but it does not mean that there is only one bus or only one type of bus.
[0215] The embodiments of the present application also provide a computer readable storage medium, which stores computer program code. When the processor executes the computer program code, the electronic device performs the related method steps in the above method embodiments.
[0216] The electronic device and the computer storage medium provided by the present application are used to execute the corresponding methods provided above, so the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding methods provided above, which will not be described here.
[0217] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0218] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0219] The units described as separate components can or can not be physically separated, and the components displayed as units can be one physical unit or multiple physical units, that is, they can be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0220] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0221] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or the part that contributes or the whole or part of the technical solutions can be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0222] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed by the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for previewing a theme, the method comprising: The method comprises: in response to a first operation of a user, obtaining a first resource; the first resource is a picture or a video; generating at least one theme corresponding to the first resource according to the first resource; one of the at least one theme includes at least one type of theme page, and the contents of the first resource displayed on the theme pages of the same type are different among the multiple themes in the at least one theme; displaying preview images corresponding to the at least one theme, wherein the preview images include any one of the theme pages in the at least one theme.
2. The method of claim 1, wherein, The generating of the at least one theme corresponding to the first resource comprises: obtaining at least one sub-resource in the first resource; the sub-resource represents any one of the contents in the first resource, such as a target object, a character, or a video segment; the target object is at least one of a person, an animal, a building, or an object; the character is at least one of a number or a letter; for one of the at least one sub-resource, obtaining a script file corresponding to the sub-resource; the script file is used to generate a theme page in combination with the sub-resource; generating a theme package corresponding to the sub-resource according to the sub-resource and the script file; generating a theme including at least one type of theme page corresponding to the sub-resource according to the theme package.
3. The method according to claim 1 or 2, characterized in that, The preview images corresponding to the multiple themes are displayed in a preset order; the preset order is determined according to the matching degrees of the first resource and the multiple themes corresponding to the first resource.
4. The method of claim 2, wherein, The first preview image is included in the preview images corresponding to the at least one theme, and the theme corresponding to the first preview image includes at least two of a first theme page, a second theme page, or a third theme page; the first theme page is used to represent a page displayed when a screen is in an AOD state, the second theme page is used to represent a page displayed when the screen is in a lock screen state, and the third theme page is used to represent a page displayed when the screen is in a desktop display state. After the display of the preview images corresponding to the at least one theme, the method further comprises: in response to a selection operation of the first preview image by the user, setting multiple theme pages in the theme corresponding to the first preview image as pages displayed when a screen is in corresponding states, respectively.
5. The method of claim 4, wherein, The setting of the multiple theme pages in the theme corresponding to the first preview image as the pages displayed when the screen is in the corresponding states, respectively, in response to the selection operation of the first preview image by the user, comprises: in response to the selection operation of the first preview image by the user, displaying a preview page of the theme corresponding to the first preview image; the preview page includes at least one theme page in the theme corresponding to the first preview image; in response to a selection operation of the theme corresponding to the first preview image by the user in the preview page, setting multiple theme pages in the theme corresponding to the first preview image as pages displayed when a screen is in corresponding states, respectively.
6. The method according to claim 4 or 5, characterized in that, In a case where the first resource is a picture and the sub-resource is a target object in the picture, only the target object in the picture is displayed on the first theme page, and the second theme page and / or the third theme page displays the first resource.
7. The method according to any one of claims 4-5, characterized in that, In a case where the first resource is a video and the sub-resource includes a first video clip and a second video clip in the video, a first frame image of the first video clip is displayed on the first theme page, a last frame image of the first video clip or a first frame image of the second video clip is displayed on the second theme page, and a last frame image of the second video clip is displayed on the third theme page.
8. The method of claim 7, wherein, The first video clip and the second video clip are played during switching of the screen from the AOD state to a desktop display state.
9. The method according to claim 7 or 8, characterized in that, The second video clip is played in reverse during switching of the screen from the desktop display state to a lock screen state.
10. The method according to any one of claims 7-9, characterized in that, The last frame image of the first video clip and the first frame image of the second video clip have a similarity within a preset range.
11. The method according to any one of claims 4-10, characterized in that, In a case where the sub-resource is a character, the first resource after the character is updated is displayed on at least two of the first theme page, the second theme page, and the third theme page.
12. The method according to any one of claims 1 to 11, characterized in that, The first operation is an operation of uploading the first resource by the user or an operation of selecting the first resource in an album by the user.
13. A theme generation method characterized by comprising: The method comprises: In response to a first operation of the user, a first resource is acquired; The first resource is a picture or a video; According to the first resource, at least one theme page corresponding to the first resource is displayed; contents of the first resource displayed on multiple theme pages of the at least one theme page are different; In response to a selection operation on a target theme page, a theme corresponding to the target theme page is generated, wherein the at least one theme page includes the target theme page.
14. The method of claim 13, wherein, The generation of the theme corresponding to the target theme page comprises: A sub-resource in the first resource corresponding to the target theme page is acquired; the sub-resource represents any one of a target object, a character, and a video clip in the first resource; the target object is at least one of a person, an animal, a building, or an object; the character is at least one of a number or a character; A script file corresponding to the target theme page is acquired; According to the sub-resource and the script file, a theme package corresponding to the target theme page is generated; According to the theme package, the theme corresponding to the target theme page is generated.
15. An electronic device, comprising: An electronic device comprises a memory and one or more processors; the memory is coupled to the processors; the memory stores computer program codes including computer instructions, when the computer instructions are executed by the processors, the electronic device performs the theme preview method according to any one of claims 1-12 or the theme generation method according to any one of claims 13-14.
16. A computer-readable storage medium, characterized in that, Computer program product comprising computer instructions which, when the computer program product is run on an electronic device, cause the electronic device to perform the theme preview method according to any one of claims 1-12, or the theme generation method according to any one of claims 13-14.
17. A computer program product, characterised in that, Computer program product which, when run on an electronic device, causes the electronic device to perform the theme preview method according to any one of claims 1-12, or the theme generation method according to any one of claims 13-14.
Citation Information
Patent Citations
Theme mode push method and theme mode push device
CN106339499A
Topic control method, terminal and computer readable medium
CN107809523A
Server BMC page theme updating method and server
CN118260007A
Theme video generation method and apparatus, electronic device, and readable storage medium
US20230239546A1