Dial resource packet generation method, device and system
By automatically generating a watch face resource package and using the style information and device information of the theme wallpaper or off-screen display resource package, the problem of a single source of watch face resource packages is solved, and development efficiency and user selection are improved.
Patent Information
- Application Number
- CN202510504108.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-09-12
AI Technical Summary
In the existing technology, the watch face resource package of smart wearable devices comes from a single source, resulting in a large workload for developers and limited choices for users.
Automatically generate a watch face resource package through a server or mobile device. Use the style information of the theme wallpaper or off-screen display resource package, combined with the device information of the wearable device, to generate watch face elements that match the device and package them into a resource package.
It improves the development efficiency of watch face developers, enriches user choices, and realizes the synchronous distributed deployment of watch faces and mobile device theme wallpapers or off-screen displays.
Smart Images

Figure CN120631335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method, device and system for generating a watch face resource package. Background Art
[0002] The display screens of wearable devices such as smart watches and smart bracelets can display various user interfaces, and users can interact with the wearable devices through the user interfaces of the wearable devices. The main user interface (main interface) of a wearable device is also called a watch face. For example, a watch face can include wallpaper and various functional components and icons on the wallpaper. Wearable devices can install a watch face resource package. After successfully installing the watch face resource package, the watch face can be displayed. For example, a watch face resource package includes the wallpaper of the watch face, the configuration information of the watch face, etc.; the configuration information may include information about the components included in the watch face, the location (such as coordinates), size, attributes, and other information of each component.
[0003] Typically, watch face developers design watch face resource packages and upload them to the watch face store. Users can use the watch face store to search for watch face resource packages, download them, install them on wearable devices, and delete downloaded watch face resource packages, thereby personalizing their wearable devices. The source of watch face resource packages is relatively simple. Summary of the Invention
[0004] The embodiments of the present application provide a method, device, and system for generating a watch face resource package, which can automatically generate a watch face resource package based on a theme wallpaper resource package and an off-screen display resource package, thereby providing users with a richer watch face.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a method for generating a watch face resource package is provided. The method can be executed by a server or a mobile device with computing capabilities, and includes: obtaining a first resource package and device information of a wearable device; wherein the first resource package can be a theme wallpaper resource package or an off-screen display resource package; obtaining a file related to a wallpaper image in the first resource package; performing feature extraction on the wallpaper image in the file to obtain style information of the wallpaper image, wherein the style information includes at least one of a main color, a style, a foreground, a background, and a texture style; generating watch face elements based on the wallpaper image style information, wherein the watch face elements include a main body, a background, a layout, and components; and packaging the watch face elements into a watch face resource package.
[0007] In this method, style information is extracted from the first resource package, the style information of the wallpaper image is obtained, and dial elements are generated based on the style information of the wallpaper image. The dial elements are packaged to generate a dial resource package. The dial resource package is automatically generated quickly and conveniently, which improves the development efficiency of the dial developer. Users can also quickly generate customized dials as needed. This method analyzes and processes the theme wallpaper resource package or the off-screen display resource package to generate a dial resource package. Compared with the method of generating a dial by taking a screenshot of the wallpaper image, the dial generated by this method is consistent with the wallpaper image main body and style, and is adapted to the wearable device dial resource package. The dial resource package is derived from the wallpaper image, but it is not a simple screenshot of the wallpaper image. The dial resource package is a resource package that matches the software and hardware capabilities of the wearable device.
[0008] In combination with the first aspect, in a possible implementation, before packaging the dial elements into a dial resource package, the dial elements are adapted to the wearable device according to the device information of the wearable device.
[0009] In one possible implementation, adapting the dial elements to the wearable device based on the device information of the wearable device includes: obtaining at least one of the screen size, screen characteristics, and chip platform hardware and software capabilities of the wearable device based on the device information of the wearable device; and adapting the dial elements to at least one of the screen size, screen characteristics, and chip platform hardware and software capabilities of the wearable device.
[0010] In one possible implementation, the dial elements are deployed as a lightweight model.
[0011] In a possible implementation, the types of dial elements are distinguished, and the dial elements are rendered separately based on whether they support static loading or dynamic loading.
[0012] In a possible implementation, the corresponding image resolutions are matched to the dial elements.
[0013] Wearable devices of various models may have different screen sizes, screen features, and chip platform software and hardware capabilities. Adapting watch face elements to wearable devices can ensure that the watch face resource package matches the wearable device.
[0014] In combination with the first aspect, in a possible implementation, generating a dial element based on the style information of a wallpaper image includes: matching a layout template for the dial element based on the style information; adjusting the layout template; obtaining components of the dial; and obtaining a dial background based on the wallpaper image.
[0015] In this method, watch face elements are generated based on the wallpaper image. These watch face elements are consistent with the main body of the wallpaper image and have a similar style, rather than simply cropping the wallpaper image. This can produce a richer watch face.
[0016] In combination with the first aspect, in a possible implementation, before feature extraction is performed on the wallpaper image, the wallpaper image in the first resource package is also preprocessed; the preprocessing includes at least one of the following: size matching the wallpaper image according to the device information of the wearable device; color normalizing the wallpaper image according to the device information of the wearable device; and denoising the wallpaper image.
[0017] After preprocessing, the style information extraction effect can be optimized.
[0018] With reference to the first aspect, in a possible implementation, obtaining the first resource package includes: receiving the first resource package from a developer platform.
[0019] In this method, when the developer uploads the first resource package (theme wallpaper resource package or screen-off display resource package), the server can automatically generate a watch face resource package based on the theme wallpaper resource package or screen-off display resource package. This reduces the developer's workload and improves the efficiency of generating watch faces.
[0020] In a second aspect, a method for generating a watch face resource package is provided, which includes: a mobile device installing a first resource package according to a user operation; the first resource package is a theme wallpaper resource package or an off-screen display resource package; the mobile device obtains device information of a wearable device associated with it; the mobile device sends the device information of the wearable device to a server; thereafter, the mobile device receives a watch face resource package from the server; the watch face resource package is generated by the server according to the first resource package based on the device information of the wearable device; the mobile device installs the watch face resource package on the wearable device.
[0021] In this method, when a user installs a first resource package (theme wallpaper resource package or off-screen display resource package) on a mobile device, a watch face resource package can be generated based on the theme wallpaper resource package (or off-screen display resource package), and the watch face resource package can be installed on the wearable device. This enables synchronized distributed deployment of the wearable device's watch face and the mobile device's theme wallpaper (or off-screen display), providing convenience for users. It also enriches the watch faces, providing users with more watch faces to choose from.
[0022] In a third aspect, a watch dial resource package generation device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the watch dial resource package generation device is running, the processor executes the computer execution instructions stored in the memory to enable the watch dial resource package generation device to perform a method as described in any one of the above-mentioned first aspects.
[0023] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute any one of the methods in the first aspect.
[0024] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect.
[0025] In a sixth aspect, a device (for example, a chip system) is provided, which includes a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it can be composed of a chip or include a chip and other discrete devices.
[0026] Among them, the technical effects brought about by any design method in the third to sixth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a scenario example to which the method for generating a watch face resource package provided in an embodiment of the present application is applicable;
[0028] Figure 2 A schematic diagram of a scenario applicable to the method for generating a watch face resource package provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of another scenario applicable to the method for generating a watch face resource package provided in an embodiment of the present application;
[0030] Figure 4 A flowchart of a method for generating a watch face resource package provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of a process for deploying a watch face in the watch face resource package generation method provided in an embodiment of the present application;
[0032] Figure 6 A flowchart of a method for generating a watch face resource package provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of a system architecture applicable to the method for generating a watch face resource package provided in an embodiment of the present application;
[0034] Figure 8 A schematic diagram of the structure of a device for generating a watch face resource package provided in an embodiment of the present application;
[0035] Figure 9 A schematic diagram of a method for generating a watch face resource package based on a theme wallpaper resource package provided in an embodiment of the present application;
[0036] Figure 10 A schematic diagram of a possible structure of the device for generating a watch face resource package provided in an embodiment of the present application;
[0037] Figure 11 A schematic diagram of the structural composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the situation where A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.
[0039] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0040] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0041] Developers can design theme wallpapers, always on display (AOD), and watch faces separately. In one example, the theme wallpaper store includes various theme wallpapers uploaded by developers. For example, the user interface of the theme wallpaper store can display the theme wallpaper's thumbnail, developer information, name, price, resource package size, etc. Users can download theme wallpaper resource packages from the theme wallpaper store and install them on mobile devices such as mobile phones and tablets. The mobile devices can then display the theme wallpaper interface. The always on display store includes various always on display uploaded by developers. For example, the user interface of the always on display store can display the always on display's thumbnail, developer information, name, price, resource package size, etc. Users can download always on display resource packages from the always on display store and install them on mobile devices such as mobile phones and tablets. The mobile devices can then display the always on display interface when the screen is off. The watch face store includes various watch faces uploaded by developers. For example, the user interface of the watch face store can display the watch face's thumbnail, developer information, name, price, resource package size, etc. Users can also download watch face resource packages from the watch face store and install them on wearable devices such as watches and bracelets, so that the wearable devices can display the watch face.
[0042] For example, Figure 1 (a) shows a display interface 101 of a theme wallpaper. For example, the display interface 101 of the theme wallpaper is a user interface of a theme wallpaper store. The display interface 101 of the theme wallpaper includes multiple theme wallpaper resource packages. The user can select one of them and download it to a mobile device. After the mobile device installs the AI theme wallpaper resource package, the theme wallpaper can be displayed. Figure 1 (b) shows an off-screen display interface 102. For example, the off-screen display interface 102 is a user interface of an off-screen display store. The off-screen display interface 102 includes multiple off-screen display resource packages, and the user can select one of them and download it to the mobile device. After the mobile device installs the off-screen display resource package, the off-screen display interface can be displayed. Figure 1 (c) shows a watch face display interface 103, for example, the watch face display interface 103 is the user interface of a watch face store. The watch face display interface 103 includes multiple watch face resource packages, and the user can select one to download to the wearable device. After the wearable device installs the watch face resource package, the watch face can be displayed.
[0043] Generally speaking, developers need to design theme wallpapers, off-screen displays, or watch faces separately.
[0044] This application provides a method for generating watch face resource packages, which can automatically generate watch face resource packages based on theme wallpaper resource packages or screen-off display resource packages. This can improve the development efficiency of watch face developers and quickly increase the number of watch faces. Users can also quickly customize watch faces according to their personal preferences, making it convenient and quick for users to obtain watch face resource packages.
[0045] In some embodiments, as Figure 2 As shown, the style information of the theme wallpaper resource package can be extracted, that is, the theme wallpaper interface in the theme wallpaper resource package can be obtained. Then, artificial intelligence (AI) recognition is performed on the theme wallpaper interface to obtain the core elements of the theme wallpaper interface and the layout of the core elements; for example, Figure 2 As shown, the theme wallpaper interface includes a character image 201, a background image 202, a time component 203, a weather component 204, etc. The core elements of the theme wallpaper obtained through AI recognition include the character image 201. Further, the dial information is adapted according to the core elements of the theme wallpaper interface to generate the dial elements; for example, Figure 2 As shown, after the clock 205 matching the dial style is added to the character image 201, the dial element includes the character image 201 and the clock 205. The dial elements are then packaged into a dial resource package.
[0046] In other embodiments, Figure 3 As shown, the style information of the off-screen display resource package can be extracted to obtain the off-screen display interface. Then, the display area corresponding to the wearable device is selected to obtain the core elements and the layout of the core elements of the off-screen display interface; for example, Figure 3 As shown, the display area 301 of the off-screen display interface includes core elements such as an image 302, time information 303, and battery information 304. The watch face information is adapted based on the core elements of the off-screen display interface to generate the watch face elements. The watch face elements are then packaged into a watch face resource package.
[0047] A watch face resource package is generated quickly and easily based on the theme wallpaper resource package or the off-screen display resource package.
[0048] In the embodiments of this application, theme wallpaper resource packages or off-screen display resource packages are collectively referred to as user interface (UI) resources of a mobile device. It should be noted that this embodiment of the application uses the example of generating a watch face resource package based on a theme wallpaper resource package to introduce the method. The specific implementation method of generating a watch face resource package based on an off-screen display resource package can refer to the method of generating a watch face resource package based on a theme wallpaper resource package, and will not be further illustrated in this embodiment of the application.
[0049] In one scenario, developers can design a theme wallpaper (or an off-screen display) on the developer platform and upload the theme wallpaper resource package (or off-screen display resource package) to the server. After the theme wallpaper resource package (or off-screen display resource package) is uploaded, the server automatically generates a watch face resource package based on the theme wallpaper resource package (or off-screen display resource package) and adds the watch face resource package to the watch face store. This eliminates the need for developers to design watch face resource packages separately, improving development efficiency.
[0050] For example, Figure 4 A flowchart of the method for generating a watch face resource package provided by an embodiment of the present application is shown. It should be noted that the embodiment of the present application is described by taking the server including a theme wallpaper store, an off-screen display store, a watch face store, and an AI module as an example. In other embodiments, the modules (or units) of the server can be divided in other ways, and the names of the modules (or units) can also have other forms, which are not limited by the embodiment of the present application.
[0051] like Figure 4 As shown, the method includes:
[0052] S401. The developer uploads the theme wallpaper resource package to the theme wallpaper store of the server through the developer platform.
[0053] The developer platform is used to provide developers with a platform for generating digital resources (such as theme wallpaper resource packages and off-screen display resource packages). After developers generate digital resource files through the developer platform, they can upload the digital resource files to the server.
[0054] The server adds the theme wallpaper resource package to the theme wallpaper store.
[0055] S402: The server sends the theme wallpaper resource package in the theme wallpaper store to the AI module.
[0056] S403. The AI module obtains device information of different wearable devices from the watch face store.
[0057] The device information of the wearable device may be the model of the wearable device; different models of wearable devices may have different dial sizes, and the dial size includes the shape, size, and screen resolution of the display screen.
[0058] S404. The AI module generates a watch face resource package based on the theme wallpaper resource package.
[0059] The AI module extracts style information from the theme wallpaper resource package and obtains information related to the theme wallpaper style from the theme wallpaper resource package.
[0060] The AI module uses AI recognition to identify the core elements and their layout within the theme wallpaper. For example, the core elements include the main image within the theme wallpaper, which can be the image with the largest area, the image at the center, the image with the richest details, or the image with the most vivid colors.
[0061] The AI module adapts the core elements of the theme wallpaper to the watch face information, generates watch face elements, and packages the watch face elements into a watch face resource package. The watch face information includes the wearable device model, watch face style, and other features. Optionally, the AI module can generate corresponding watch face resource packages for different wearable device models based on a theme wallpaper resource package.
[0062] S405. The AI module adds the watch face resource package to the watch face store.
[0063] In this scenario, when the developer uploads a theme wallpaper resource package (or an off-screen display resource package), the server can generate a watch face resource package based on the theme wallpaper resource package (or an off-screen display resource package). This reduces the developer's workload and improves the efficiency of generating watch faces.
[0064] Later, when users install a theme wallpaper resource package (or an off-screen display resource package) on their mobile device, they can also install the watch face resource package generated from the theme wallpaper resource package (or an off-screen display resource package) on their wearable device. This allows for synchronized and distributed deployment of the wearable device's watch face and the mobile device's theme wallpaper (or an off-screen display), providing convenience for users.
[0065] For example, Figure 5 A flow chart of deploying a watch face in the watch face resource package generation method provided in an embodiment of the present application is shown.
[0066] like Figure 5 As shown, the method includes:
[0067] S501: The mobile device obtains a resource package of a theme wallpaper from a theme wallpaper store.
[0068] For example, the mobile device may be a mobile phone, a tablet computer, a personal computer (PC), etc.
[0069] In one example, a user may execute an operation of downloading a certain theme wallpaper on a user interface of a mobile device, and the mobile device downloads a resource package of the theme wallpaper from a theme wallpaper store on a server.
[0070] S502: The mobile device installs the resource package of the theme wallpaper according to the user operation.
[0071] In one example, after receiving the user's operation to install the theme wallpaper, the mobile device installs the downloaded theme wallpaper resource package.
[0072] S503: The mobile device sends a prompt message, prompting the user to install a watch face corresponding to the theme wallpaper.
[0073] After the mobile device installs the theme wallpaper, it will send a prompt message to prompt the user to install the watch face corresponding to the theme wallpaper. The watch face is automatically generated by the server based on the theme wallpaper.
[0074] S504: If the user's operation to install a watch face is received, the mobile device obtains device information of the connected wearable device.
[0075] S505: The mobile device obtains a watch face resource package corresponding to the theme wallpaper resource package and matching the device information of the wearable device from the watch face store.
[0076] In one example, the AI module generates watch face resource packages for different wearable device models based on the theme wallpaper resource package. The mobile device retrieves the watch face resource package that matches the wearable device model and corresponds to the theme wallpaper from the server's watch face store based on the wearable device's device information (e.g., model).
[0077] Optionally, if the watch face resource package is a paid resource, the mobile device can also initiate a payment process. After completing the payment process, the mobile device obtains the watch face resource package from the watch face store on the server.
[0078] S506: The mobile device installs the watch face resource package to the wearable device.
[0079] In one implementation, the mobile device sends a watch face resource package to the wearable device, and the wearable device can display the watch face after installing the watch face resource package.
[0080] In this scenario, when a user installs a theme wallpaper resource package on a mobile device, they can be prompted to simultaneously install a watch face resource package automatically generated based on the theme wallpaper resource package, thus achieving synchronized distributed deployment of theme wallpapers and watch faces.
[0081] In another scenario, when the developer uploads a theme wallpaper resource package (or an off-screen display resource package), the server does not automatically generate a watch face resource package based on the theme wallpaper resource package. When the user installs the theme wallpaper resource package (or an off-screen display resource package) on a mobile device, a watch face resource package can be generated based on the theme wallpaper resource package (or an off-screen display resource package) and installed on the wearable device. This enables the synchronized distributed deployment of the watch face of the wearable device and the theme wallpaper (or off-screen display) of the mobile device, providing convenience for users. It also enriches the watch face, providing users with more watch faces for selection.
[0082] For example, Figure 6 A flow chart of a method for generating a watch face resource package provided in an embodiment of the present application is shown.
[0083] like Figure 6 As shown, the method includes:
[0084] S601: The mobile device obtains a resource package of a theme wallpaper from a theme wallpaper store.
[0085] S602: The mobile device installs the resource package of the theme wallpaper according to the user operation.
[0086] Among them, S601-S602 can refer to S501-S502 and will not be repeated here.
[0087] S603: If the mobile device is associated with the wearable device, the mobile device obtains device information of the wearable device.
[0088] S604: The mobile device sends the device information of the wearable device to the theme wallpaper store of the server.
[0089] S605: The server sends the theme wallpaper resource package in the theme wallpaper store and the device information of the wearable device to the AI module.
[0090] S606. The AI module generates a watch face resource package according to the theme wallpaper resource package based on the device information of the wearable device.
[0091] The AI module extracts style information from the theme wallpaper resource package and obtains information related to the theme wallpaper style in the theme wallpaper resource package, such as the theme wallpaper color, subject, background, texture, etc.
[0092] The AI module uses AI recognition to identify the core elements and their layout within the theme wallpaper. For example, the core elements include the main image within the theme wallpaper, which can be the image with the largest area, the image at the center, the image with the richest details, or the image with the most vivid colors.
[0093] The AI module adapts the core elements of the theme wallpaper to the wearable device's dial information, generates dial elements, and packages the dial elements into a dial resource package. The wearable device's dial information includes the wearable device's device information (such as model), dial style, and other features.
[0094] S607: The AI module of the server sends the watch face resource package to the mobile device.
[0095] Optionally, the server may also add the watch face resource package to the watch face store.
[0096] S608: The mobile device displays a preview of the watch face in the watch face resource package.
[0097] Optionally, the user can manually adjust the style, pattern, color, component layout, etc. of the watch face based on the preview effect of the watch face. The mobile device can update the watch face resource package based on the user operation.
[0098] S609: If the user's operation to install the watch face is received, the mobile device installs the watch face resource package to the wearable device.
[0099] In one implementation, after receiving a user's request to install the watch face, the mobile device sends a watch face resource package to the wearable device. After the wearable device installs the watch face resource package, it can display the watch face.
[0100] It should be noted that Figure 4-Figure 6 The flowchart in the figure is only an example of some possible implementation methods. In other embodiments, the dial resource package generation method provided in the embodiment of the present application may include more or fewer steps, or adjust the order of each step. In other embodiments, the execution body of each step may be different from the Figure 4-Figure 6 The examples shown are different; for example, Figure 6 The steps performed by the mobile device can also be performed by the server; for example, the steps performed by the AI module can also be completed by a mobile device with computing capabilities.
[0101] The dial resource package generation method provided in the embodiment of the present application can be applied to Figure 7 The system architecture shown in FIG. The system architecture includes a mobile device 10, a server 20, and a wearable device 30. The mobile device 10 and the wearable device 30 can exchange information and transmit data via wireless communication methods such as Bluetooth and wireless fidelity (Wi-Fi). The mobile device 10 and the server 20 can communicate via wired or wireless communication methods.
[0102] Among them, the mobile device 10 is used to manage the dial, for example, providing the user with functions such as query, download, purchase, installation, and deletion of the dial for the wearable device 30. The mobile device 10 can also install theme wallpapers, off-screen display, etc. Exemplarily, the mobile device 10 may include a mobile phone, a tablet computer, a laptop computer, a personal computer (PC), an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a smart home device (such as a smart TV, a smart screen, a large screen, a smart speaker, etc.), a personal digital assistant (PDA), a car-mounted device, etc., and the embodiments of the present application do not impose any restrictions on this.
[0103] The server 20 is used to provide online resources and capabilities in the cloud. For example, the server 20 can be used to store and distribute theme wallpaper resource packages, off-screen display resource packages, watch face resource packages, etc., and can also perform payment management, etc. Exemplarily, the server 20 can be a cloud server. In one example, the server 20 can automatically generate a watch face resource package based on the theme wallpaper resource package or the off-screen display resource package, and store and manage these watch face resource packages. The mobile device 10 can request the server 20 to obtain information about the watch face resource package, download the watch face resource package, etc.
[0104] It should be noted that the server 20 can be a single server or include multiple independent servers or server clusters. For example, the server 20 includes a server for storing watch face resource packages, a server for storing theme wallpaper resource packages, a server for storing off-screen display resource packages, and a server for distributing resource packages, such as a content delivery network (CDN). It can also include a server for identity authentication, a server for copyright management, a server for payment management, etc. Of course, servers with these functions can be arbitrarily combined, merged, or split according to actual circumstances.
[0105] The wearable device 30 may be a smart watch, a smart bracelet, etc. The wearable device 30 may obtain a watch face resource package from the mobile device 10 , and install the watch face resource package and display the watch face.
[0106] In some embodiments, the above Figure 4-Figure 6 The steps performed by the AI module in the above can be completed by the server 20; in other embodiments, the above Figure 4-Figure 6 The steps performed by the AI module can be completed by a mobile device 10 with computing capabilities.
[0107] In the embodiment of the present application, the above Figure 4-Figure 6The steps executed by the AI module are described as being completed by a watch face resource package generation device. The watch face resource package generation device can be a mobile device 10, a server 20, or an AI module.
[0108] For example, please refer to Figure 8 , which shows a schematic structural diagram of a watch face resource package generation device 800. The watch face resource package generation device 800 may include a processor 810, an external memory interface 820, an internal memory 821, an audio module 830, a display screen 840, a communication module 850, a power module 860, an input device 870, and the like.
[0109] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the watch face resource package generation device 800. In other embodiments of the present application, the watch face resource package generation device 800 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0110] The processor 810 may include one or more processing units. For example, the processor 810 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU). Different processing units may be independent components or integrated into one or more processors. In some embodiments, the dial resource package generation device 800 may also include one or more processors 810.
[0111] The controller is the nerve center and command center of the watch face resource package generation device 800. It can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0112] The application processor can run the operating system of the watch face resource package generation device 800, which is used to manage the hardware and software resources of the watch face resource package generation device 800. For example, it manages and configures memory, determines the priority of system resource supply and demand, controls input and output devices, operates the network, manages the file system, manages drivers, etc. The operating system can also be used to provide an operating interface for users to interact with the system. Various software can be installed in the operating system, such as drivers and application programs (apps).
[0113] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables applications such as intelligent cognition in the watch face resource package generation device 800.
[0114] Processor 810 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 810 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 810. If processor 810 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 810 latency, and thus improves system efficiency.
[0115] In some embodiments, the processor 810 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface.
[0116] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely an illustrative illustration and does not constitute a structural limitation on the watch face resource package generation device 800. In other embodiments of the present application, the watch face resource package generation device 800 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0117] The external memory interface 820 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the watch face resource package generation device 800. The external memory card communicates with the processor 810 via the external memory interface 820 to implement data storage. For example, files such as music and videos can be stored on the external memory card.
[0118] The internal memory 821 can be used to store one or more computer programs, which include instructions. The processor 810 can execute the above instructions stored in the internal memory 821, so that the dial resource package generation device 800 performs the application operation method provided in some embodiments of the present application, as well as various applications and data management. The internal memory 821 may include a code storage area and a data storage area. Among them, the data storage area can store data created during the use of the dial resource package generation device 800. In addition, the internal memory 821 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processor 810 can execute the instructions stored in the internal memory 821, and / or the instructions stored in the memory provided in the processor 810, so that the dial resource package generation device 800 performs the application operation method provided in the embodiments of the present application, as well as other applications and data management.
[0119] The watch face resource package generation device 800 can implement audio functions through the audio module 830 and the application processor. For example, music playback, recording, etc. The audio module 830 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 830 can also be used to encode and decode audio signals. In some embodiments, the audio module 830 can be set in the processor 810, or some functional modules of the audio module 830 can be set in the processor 810.
[0120] The communication function of the dial resource package generation device 800 can be implemented through the communication module 850 and the like. The communication module 850 can provide wireless communication solutions including cellular, Wi-Fi, Bluetooth (BT), wireless data transmission modules (for example, 433MHz, 868MHz, 915MHz), etc. applied to the dial resource package generation device 800. The communication module 850 can be one or more devices integrating at least one communication processing module. The communication module 850 receives electromagnetic waves via an antenna, filters and frequency modulates the electromagnetic wave signals, and sends the processed signals to the processor 810. The communication module 850 can also receive the signal to be sent from the processor 810, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0121] The watch face resource package generation device 800 implements display functions through a GPU, display screen 840, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 840 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 810 may include one or more GPUs, which execute program instructions to generate or change display information.
[0122] The display screen 840 is used to display images, videos, etc. The display screen 840 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the watch face resource package generation device 800 may include one or N display screens 840, where N is a positive integer greater than 1.
[0123] In some embodiments, the display screen 840 is provided with a pressure sensor, a touch sensor, and the like. The pressure sensor is used to sense pressure signals and can convert pressure signals into electrical signals. When a touch operation is applied to the display screen 840, the dial resource package generation device 800 detects the intensity of the touch operation based on the pressure sensor. The dial resource package generation device 800 can also calculate the position of the touch based on the detection signal of the pressure sensor. The touch sensor, also known as a "touch panel", can form a touch screen, also known as a "touch screen", with the display screen 840. The touch sensor is used to detect touch operations applied thereto or nearby. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can also be provided through the display screen 840.
[0124] The power module 860 can be used to supply power to various components included in the watch face resource package generation device 800. In some embodiments, the power module 860 can be a battery, such as a rechargeable battery.
[0125] The input device 870 may include a keyboard, a mouse, and the like. The keyboard is used to input English letters, numbers, punctuation marks, and the like into the dial resource package generation device 800, thereby issuing commands to the dial resource package generation device 800, inputting data, and the like. The mouse is an indicator for the vertical and horizontal coordinate positioning of the dial resource package generation device 800 display system, and is used to input instructions, and the like, into the dial resource package generation device 800. The input device 870 may be connected to the dial resource package generation device 800 via a wired connection, for example, the input device 870 is connected to the dial resource package generation device 800 via a GPIO interface, a USB interface, and the like. The input device 870 may also be connected to the dial resource package generation device 800 wirelessly, for example, the input device 870 is connected to the dial resource package generation device 800 via Bluetooth, infrared, and the like.
[0126] The following is a detailed description of the method for generating a dial resource package based on a theme wallpaper resource package provided in the embodiment of the present application. It should be noted that the method for generating a dial resource package based on an off-screen display resource package can refer to the method for generating a dial resource package based on a theme wallpaper resource package, and will not be described in detail in the embodiment of the present application.
[0127] In one example, Figure 9 As shown, the method may include:
[0128] S901. Obtain a theme wallpaper resource package and device information of a wearable device.
[0129] In an example, the theme wallpaper resource package may be a theme wallpaper resource package uploaded to the server by a developer through a developer platform, and the device information of the wearable device may be one of the device information of different wearable devices.
[0130] In another example, the theme wallpaper resource package may be the theme wallpaper resource package selected and installed by the user on the mobile device, and the device information of the wearable device may be the device information of the wearable device associated with the mobile device.
[0131] The device information may be a model; it may also be screen size, including the shape and size of the display screen, and screen resolution, etc.
[0132] S902: Obtain a wallpaper file in a theme wallpaper resource package, perform feature extraction on the wallpaper file, and obtain style information of the theme wallpaper.
[0133] by Taking the system's mobile phone wallpaper as an example, the wallpaper file formats include:
[0134] Static wallpaper: JPEG, PNG, WebP, etc.
[0135] Dynamic wallpaper: implemented through WallpaperService (inherited from Service class) and use OpenGL or SurfaceView to render the animation.
[0136] In one example, the wallpaper file in the theme wallpaper resource package can be read according to the file format, that is, the theme wallpaper is obtained. In the embodiment of the present application, the theme wallpaper and the interface displayed when the screen is off are collectively referred to as wallpaper images.
[0137] Optionally, the theme wallpaper may be pre-processed.
[0138] Among them, the preprocessing methods may include:
[0139] In one implementation, the theme wallpaper is adapted to the size of the wearable device. The screen shape of the wearable device, such as a circle or a square, is obtained based on the device information (such as the model) of the wearable device, and the theme wallpaper is cut to the screen shape of the wearable device.
[0140] Normalize the colors of the theme wallpaper. In one implementation, the wearable device's OLED screen characteristics, such as contrast, brightness, color gamut, and color depth, are obtained based on the wearable device's device information (e.g., model). The brightness and / or contrast of the theme wallpaper are then adjusted to match the wearable device's screen characteristics.
[0141] Denoise the theme wallpaper to eliminate noise caused by compression.
[0142] After pre-processing, you can extract features from the theme wallpaper. The feature extraction process may include:
[0143] Main color extraction. In one implementation, a clustering algorithm is used to extract multiple main colors of the theme wallpaper; for example, 3-5 main colors are extracted and used for the color matching of the dial.
[0144] Theme recognition. In one implementation, a convolutional neural network (CNN) classification model is used to determine the category of the theme wallpaper (e.g., natural scenery, abstract art, people, etc.). Semantic segmentation can also be used to separate the foreground (subject) and background (e.g., sky, grass, etc.) of the theme wallpaper.
[0145] Style analysis: In one implementation, the texture style of the theme wallpaper (such as oil painting, watercolor, minimalist, etc.) is extracted.
[0146] After performing feature extraction, the style information of the theme wallpaper is obtained. The style information may include main color, style, foreground, background, texture style, etc.
[0147] S903: Generate dial elements according to the style information of the theme wallpaper.
[0148] The dial elements include the body, background, layout, components, etc.
[0149] In some embodiments, the method of generating a watch face element according to the style information of a theme wallpaper includes:
[0150] S9031. Perform layout template matching based on the style information of the theme wallpaper.
[0151] A layout template can be matched for the dial elements. In one implementation, a template library is pre-set, which includes multiple layout templates. The layout templates define the color tone, style, position, etc. of the components in the dial. The corresponding layout template can be selected according to the theme and / or style in the style information of the theme wallpaper. For example, if the theme wallpaper is "natural scenery", the matching layout template is "gradient color + plant icon"; if the style of the theme wallpaper is "minimalist", the matching layout template is "monochrome + lines".
[0152] S9032. Adjust the layout of the matched layout template.
[0153] In one example, a key point detection method is used to obtain the main area (such as a face) of the theme wallpaper, and the component layout is positioned away from the main area to prevent the component (such as the clock component) from obstructing the main area. In one implementation, the visual center of gravity is calculated and the position of the component (such as the clock component) is determined to be at the visual center of gravity.
[0154] S9033. Get the dynamic component of the dial.
[0155] The dynamic components of the watch face can include clock components, sports components, weather components, health icons, etc.
[0156] In one implementation, a corresponding time digital font can be selected for the clock component; the color tone of the dynamic component can also be adjusted, for example, a contrasting color can be generated based on the main color tone of the theme wallpaper, and the contrasting color can be used as the color of the dynamic component. For example, if the main color tone of the theme wallpaper is dark, the dynamic component matches a light font; a dynamic component icon can also be generated that is consistent with the style of the theme wallpaper, for example, by converting it into a pixel style, performing flat processing, etc.
[0157] S9034. Perform background fusion based on the background of the theme wallpaper to obtain the dial background.
[0158] In one implementation, the background of the theme wallpaper is Gaussian blurred or color-gradiented to improve text readability. In another implementation, style transfer is used to transfer the background style of the theme wallpaper to the dial background (dial shading).
[0159] S904. Adapt the dial elements to the wearable device.
[0160] Understandably, the screen size, screen features, and chip platform software and hardware capabilities of various wearable device models may vary. You need to obtain the wearable device's screen size, screen features, chip platform software and hardware capabilities based on the wearable device's device information and adapt the watch face elements to the wearable device's screen size, screen features, chip platform software and hardware capabilities, etc.
[0161] In some examples, the dial elements are deployed as lightweight models; for example, resource compression and GPU capability adaptation are performed. For example, according to the hardware and software capabilities of the chip platform in different wearable devices (such as the parsing capabilities of pictures, videos, text, etc.), the resource format of the dial elements is adjusted to a lightweight resource format that matches the wearable device. Exemplarily, the image format can be TSC6, PNG, JPEG, etc., and the animated video format can be Gif, M-JPEG, MP3, etc. For another example, according to the GPU capabilities of different wearable devices, the resource format of the dial elements is adjusted. Exemplarily, a vector GPU can support vector characters and vector graphics.
[0162] In some examples, watch face elements are rendered in real time. For example, the watch face element type (such as font, icon, background, etc.) is distinguished and rendered separately based on whether the watch face element supports static loading or dynamic loading, thereby reducing peak memory usage.
[0163] In some examples, the corresponding image resolutions can also be matched to the dial elements.
[0164] For example, Taking the system's mobile phone wallpaper as an example, the image resolutions include:
[0165] Standard wallpapers are generally twice the screen resolution to accommodate different devices. For example, the image resolution of standard mobile phone wallpapers is 1080x1920 (16:9) or 1440x3120 (19.5:9); the image resolution of foldable phone wallpapers is 2208x1768.
[0166] Adaptive wallpaper: Use ImageAsset to adapt to multiple screens (XML defines stretchable areas).
[0167] Image resolution of the dial of a light smartwatch: The image resolution of a circular screen is generally 454x454, 466x466, etc. The image resolution of a rectangular screen is generally 390x450.
[0168] Smartwatch dial image resolution: The image resolution of a circular screen is generally 454x454, 466x466, etc. The image resolution of a rectangular screen is generally 378x496.
[0169] Optionally, dial elements can be adjusted based on user actions. For example, the layout or color of the dial can be fine-tuned based on user actions. The storage format of page elements can also be switched based on changes in layout or color. For example, when the color of a page element is changed, the storage format can be switched to A8 or HSV format accordingly.
[0170] S905: Pack the watch face elements into a watch face resource package.
[0171] The file format of a watch face resource package is generally different from that of a theme wallpaper resource package.
[0172] Exemplary file formats for light smartwatch dials include:
[0173] .hwt file. The .hwt file is a compressed package containing JSON configuration, image resources (PNG), animation frames, etc.
[0174] Configuration file: config.json defines the layout, clock component position, interaction logic, etc.
[0175] Exemplary file formats for smartwatch dials include:
[0176] Watch Face Format (WFF). Based on XML and drawable resources (PNG / SVG), supports static and dynamic watch faces.
[0177] This method extracts style information from a theme wallpaper resource package, obtains the theme wallpaper, and generates watch face elements based on the theme wallpaper. The watch face elements are then lightweight adapted based on the wearable device's device information and packaged into a watch face resource package. This convenient and quick automatic generation of watch face resource packages improves development efficiency for watch face developers, allowing users to quickly create custom watch faces as needed.
[0178] It is understandable that the dial resource package generation device provided in the embodiment of the present application includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0179] The embodiment of the present application can divide the functional modules of the dial resource package generation device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0180] In one example, see Figure 10 , which shows a possible structural diagram of the device for generating a watch face resource package involved in the above embodiment. The device for generating a watch face resource package 1000 includes: a processing unit 1010 and a storage unit 1020.
[0181] The processing unit 1010 is configured to control and manage the operations of the watch face resource package generation device 1000. For example, the processing unit 1010 is configured to generate a watch face resource package based on a theme wallpaper resource package or an off-screen display resource package. The storage unit 1020 is configured to store the program code and data of the watch face resource package generation device 1000. The processing unit 1010 calls the program code stored in the storage unit 1020 to execute the various steps in the above method embodiment.
[0182] Of course, the unit modules in the above-mentioned dial resource package generation device 1000 include but are not limited to the above-mentioned processing unit 1010 and storage unit 1020. For example, the dial resource package generation device 1000 may also include a display unit, a communication unit, a power supply unit, etc. The display unit is used to display the user interface of the dial resource package generation device 1000. The communication unit is used for the dial resource package generation device 1000 to communicate with other electronic devices. The power supply unit is used to supply power to the dial resource package generation device 1000.
[0183] The processing unit 1010 may be a processor or controller, such as a central processing unit (CPU), a graphics processing unit (GPU), 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. The storage unit 1020 may be a memory. The display unit may be a display screen, etc.
[0184] For example, the processing unit 1010 is a processor (such as Figure 8 The processor 810 shown in FIG. 10 ), the storage unit 1020 may be a memory (such as Figure 8 The internal memory 821 shown in FIG. 8 ) and the display unit may be a display screen (such as Figure 8 The display screen 840 shown). The dial resource package generation device 1000 provided in the embodiment of the present application can be Figure 8 The device 800 for generating a watch face resource package is shown. The processor, memory, display screen, etc. may be connected together, for example, via a bus. The processor calls the program code stored in the memory to execute each step in the above method embodiment.
[0185] The present application also provides a chip system (eg, a system on a chip (SoC)). Figure 11As shown, the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 can be interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit 1102 can be used to send signals to other devices (such as the processor 1101). Exemplarily, the interface circuit 1102 can read the instructions stored in the memory and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the dial resource package generation device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete components, which is not specifically limited in the embodiments of the present application.
[0186] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are run on the above-mentioned dial resource package generation device, the dial resource package generation device performs each function or step in the above-mentioned method embodiment.
[0187] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute each function or step in the above method embodiment.
[0188] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0189] In the several embodiments provided in this 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 merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0190] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0193] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for generating a watch face resource package, characterized in that: include: Obtaining a first resource package and device information of a wearable device; wherein the first resource package is a theme wallpaper resource package or an off-screen display resource package; Obtaining the wallpaper image in the first resource package; Performing feature extraction on the wallpaper image to obtain style information of the wallpaper image; the style information includes at least one of main color, style, foreground, background, and texture style; Generate a dial element according to the style information of the wallpaper image; the dial element includes a body, background, layout and components; Package the watch face elements into a watch face resource package.
2. The method according to claim 1, characterized in that Before packaging the watch face elements into a watch face resource package, the method further includes: The dial elements are adapted to the wearable device according to the device information of the wearable device.
3. The method according to claim 2, characterized in that Adapting the dial elements to the wearable device according to the device information of the wearable device includes: Acquire at least one of a screen size, screen characteristics, and chip platform software and hardware capabilities of the wearable device according to the device information of the wearable device; Adapt the dial elements to at least one of the screen size, screen characteristics, and chip platform hardware and software capabilities of the wearable device.
4. The method according to any one of claims 1 to 3, characterized in that Generating a dial element according to the style information of the wallpaper image includes: matching a layout template for the dial element according to the style information; Performing layout adjustment on the layout template; Get the components of the dial; Obtain a watch face background according to the wallpaper image.
5. The method according to any one of claims 1 to 4, characterized in that Before extracting features from the wallpaper image, the method further includes: Preprocessing the wallpaper image in the first resource package; The pre-processing includes at least one of the following: Matching the size of the wallpaper image according to the device information of the wearable device; Normalizing the color of the wallpaper image according to the device information of the wearable device; Denoising the wallpaper image.
6. The method according to any one of claims 1 to 5, characterized in that The obtaining of the first resource package includes: The first resource package is received from a developer platform.
7. A method for generating a dial resource package, characterized in that: Applied to a mobile device, the mobile device being associated with a wearable device, the method includes: The mobile device installs a first resource package according to a user operation; the first resource package is a theme wallpaper resource package or an off-screen display resource package; The mobile device obtains device information of the wearable device; The mobile device sends the device information of the wearable device to the server; The mobile device receives a watch face resource package from the server; the watch face resource package is generated based on the device information of the wearable device and according to the first resource package; The mobile device installs the watch face resource package on the wearable device.
8. A device for generating a watch face resource package, characterized in that: include: processor and memory; The processor is coupled to the memory; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the dial resource package generation device executes the method described in any one of claims 1-6.
9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 6.
10. A computer program product comprising computer instructions, characterized in that When the computer program product is run on a computer, it enables the computer to execute the method according to any one of claims 1 to 6.