APP icon watermark updating method and system

By reading the additional information in the source code compilation configuration file of the APP, the APP icon watermark is generated and updated, which solves the problem in the existing technology that the icon watermark cannot be dynamically changed, achieves more efficient information maintenance and reduces maintenance costs.

CN119311295APending Publication Date: 2025-01-14SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411430476.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing APP icon watermark cannot be changed dynamically, resulting in the application being repackaged and published when APP testing or when information needs to be adjusted, increasing the complexity and cost of maintenance.

Method used

By reading the additional information in the APP source code compilation configuration file, a new icon watermark is generated and stored in the storage path of the original icon watermark, and the icon watermark is dynamically updated.

Benefits of technology

It realizes dynamic updating of APP icon watermarks, reduces maintenance costs, improves information usage efficiency, and avoids the necessity of repackaging and publishing applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311295A_ABST
    Figure CN119311295A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information, in particular to an APP icon watermark updating method and system, and the method comprises the steps: reading additional information of an APP according to a compiling configuration file of a source code of the APP; reading a storage path of an original icon watermark of the APP, and reading the original icon watermark from the storage path; generating a second icon watermark according to the additional information and the original icon watermark; the second icon watermark is stored in the storage path; reading compilation parameters, and selecting the original icon watermark or the second icon watermark as a target icon watermark according to the compilation parameters; and according to the target icon watermark, generating an executable file of the APP. According to the method, the icon watermark pattern in the resource package is updated before the APP is packaged, so that the icon watermark pattern can carry richer information, the use efficiency of the information is improved, and the maintenance cost of the APP icon watermark is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a method and system for updating an APP icon watermark. Background Art

[0002] APP (Application), an application (Application, APP) refers to a software program that runs on mobile devices (such as smartphones, tablets) and various computing devices, including desktop applications, mobile applications, etc. The APP icon watermark (logo) is the visual logo of the application on the user's device, and its design is to provide users with a quick and intuitive way to identify a specific application. The APP icon watermark is not only the logo of the application, but also a symbol of its brand, carrying key information about brand value and user experience. Existing APP icon watermarks usually contain the application name, image or symbol, and possible brand elements. This information is organically combined through visual design methods such as color, shape and typography to establish and enhance users' cognition of the application.

[0003] In the prior art, APP icon watermarks are usually packaged as static resources during the application development process and presented on the terminal device. This method fixes the display of the icon watermark and ensures consistency, however, it also has some limitations. The potential problem with current APP icon watermarks is that the amount of information is small, which may cause inconvenience when testing the APP. Since the icon watermark cannot be changed dynamically, if you need to adjust or add new information, you must repackage and publish the application, which increases the complexity and cost of maintenance. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method and system for updating an APP icon watermark.

[0005] The first aspect of the present invention discloses a method for updating an APP icon watermark, comprising:

[0006] Reading additional information of the APP according to a compilation configuration file of the source code of the APP;

[0007] Read the storage path of the original icon watermark of the APP, and read the original icon watermark from the storage path;

[0008] generating a second icon watermark according to the additional information and the original icon watermark;

[0009] storing the second icon watermark in the storage path;

[0010] Reading compilation parameters, and selecting the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters;

[0011] Generate an executable file of the APP according to the target icon watermark.

[0012] Furthermore, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0013] Scan the pixel map of the original icon watermark and find the largest close-color area therein as the target area;

[0014] Calculating a target color according to the target area and the original icon watermark;

[0015] According to the target area and the target color, the additional information is combined with the original icon watermark to generate a second icon watermark.

[0016] Furthermore, the step of scanning the pixel map of the original icon watermark and finding the largest close-color area therein as the target area includes:

[0017] Scanning the original icon watermark and converting it into a grayscale image;

[0018] Calculating a grayscale threshold according to the pixel values ​​of all pixels in the grayscale image;

[0019] According to the grayscale threshold, the pixel values ​​of all pixels in the grayscale image whose pixel values ​​do not exceed the grayscale threshold are set to the first grayscale, and the pixel values ​​of all pixels in the grayscale image whose pixel values ​​exceed the grayscale threshold are set to the second grayscale, so as to obtain a binary grayscale image of the original image watermark;

[0020] Performing connected region analysis on the binary grayscale image to obtain multiple connected regions;

[0021] The connected region with the largest area is selected as the target region.

[0022] Furthermore, the step of calculating the target color according to the target area and the original icon watermark includes:

[0023] Traversing the pixel map of the original icon watermark except the target area, calculating the pixel value distribution of all pixels in each image channel, and using the pixel value with the highest frequency in each image channel to form a first color according to its corresponding image channel;

[0024] Traversing the pixel map of the target area, calculating the pixel value distribution of all pixels in each image channel, and using the pixel value with the highest frequency in each image channel to form a second color according to its corresponding image channel;

[0025] Calculate the complementary color of the first color and the complementary color of the second color;

[0026] The complementary color of the first color and the complementary color of the second color are averaged in each channel as pixel values ​​of corresponding image channels to form the target color.

[0027] Furthermore, the step of combining the additional information with the original icon watermark according to the target area and the target color to generate a second icon watermark includes:

[0028] Calculate the pixel coordinates corresponding to each character in the additional information in the icon watermark and the target pixel value corresponding to each pixel coordinate according to the target color and the target area;

[0029] According to all the target pixel values ​​and their corresponding pixel coordinates, the corresponding pixel values ​​in the icon watermark are replaced.

[0030] Furthermore, the step of combining the additional information with the original icon watermark according to the target area and the target color to generate a second icon watermark includes:

[0031] When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure;

[0032] Generating a link address pointing to the storage location of the additional information in the storage structure;

[0033] According to the target area and the target color, the link address is combined with the original icon watermark to generate a second icon watermark.

[0034] Furthermore, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0035] Select the corresponding extension tool according to the target execution platform of the executable file of the APP;

[0036] Using the extension tool, a second icon watermark is generated according to the additional information.

[0037] Preferably, when the target execution platform is an Android system, the expansion tool is an Android plug-in module.

[0038] Furthermore, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0039] When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure;

[0040] Generate a two-dimensional code pointing to the storage location of the additional information in the storage structure;

[0041] The QR code generates a picture with a transparent background as the foreground of the icon watermark of the APP to generate a second icon watermark.

[0042] The second aspect of the present invention discloses an APP icon watermark update system, comprising:

[0043] A first reading module, configured to read additional information of the APP according to a compilation configuration file of the source code of the APP;

[0044] A second reading module is used to read the storage path of the original icon watermark of the APP, and read the original icon watermark from the storage path;

[0045] A first generating module, used for generating a second icon watermark according to the additional information and the original icon watermark;

[0046] A storage module, used for storing the second icon watermark in the storage path;

[0047] A selection module, used for reading compilation parameters, and selecting the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters;

[0048] The second generating module is used to generate an executable file of the APP according to the target icon watermark.

[0049] The present invention updates the icon watermark pattern in the resource package before APP packaging, so that the icon watermark pattern can carry richer information, improves the use efficiency of information, and reduces the maintenance cost of the APP icon watermark. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 It is a flowchart of a method for updating an APP icon watermark disclosed in an embodiment of the present invention;

[0052] Figure 2 It is a structural schematic diagram of an APP icon watermark updating system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, or product end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] Embodiment 1

[0057] See also Figure 1 As shown, Figure 1 1 is a flowchart of a method for updating an APP icon watermark disclosed in an embodiment of the present invention. The method can be applied to Android system APP, IOS system APP, Windows system APP, etc., and the embodiment of the present invention does not limit it. Figure 1 As shown, the method for updating the APP icon watermark may include the following operations:

[0058] S100, reading additional information of the APP according to the compilation configuration file of the source code of the APP;

[0059] S200, reading the storage path of the original icon watermark of the APP, and reading the original icon watermark from the storage path;

[0060] S300, generating a second icon watermark according to the additional information and the original icon watermark;

[0061] S400, storing the second icon watermark in a storage path;

[0062] S500, reading compilation parameters, and selecting the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters;

[0063] S600: Generate an executable file of the APP according to the target icon watermark.

[0064] The compilation configuration file can be a makefile, build.xml, pom.xml, setup, py, etc., which are used to control the application compilation process, or a git log, etc., which is not limited in the present invention. The additional information can be a version number, a change log, developer or team information, copyright and license information, dependency information, the last code submitter information, etc., which is not limited in the present invention.

[0065] The compilation parameters may be version information, APP running platform information, etc., which are not limited in the present invention.

[0066] It can be seen that the present invention enables the icon watermark pattern to carry richer information by updating the icon watermark pattern in the resource package before APP packaging, thereby improving the efficiency of information use and reducing the maintenance cost of the APP icon watermark.

[0067] In an optional embodiment, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0068] Scan the pixel map of the original icon watermark and find the largest close-color area as the target area;

[0069] Calculate the target color based on the target area and the original icon watermark;

[0070] According to the target area and the target color, the additional information is combined with the original icon watermark to generate a second icon watermark.

[0071] It can be seen that this optional embodiment scans the pixel map of the original icon watermark, finds the largest near-color area as the target area, then calculates the target color based on the target area and the original icon watermark, and finally combines the additional information with the original icon watermark according to the target area and the target color to generate the second icon watermark. This method makes the second icon watermark more natural and harmonious, does not affect the main visual elements of the original icon, and thus improves the user experience.

[0072] In this optional embodiment, further optionally, the step of scanning the pixel map of the original watermark and finding the largest near-color area therein as the target area includes:

[0073] Scan the original icon watermark and convert it into a grayscale image;

[0074] Calculate the grayscale threshold according to the pixel values ​​of all pixels in the grayscale image;

[0075] According to the grayscale threshold, the pixel values ​​of all pixels in the grayscale image whose pixel values ​​do not exceed the grayscale threshold are set to the first grayscale, and the pixel values ​​of all pixels in the grayscale image whose pixel values ​​exceed the grayscale threshold are set to the second grayscale, so as to obtain a binary grayscale image of the original image watermark;

[0076] Perform connected region analysis on the binary grayscale image to obtain multiple connected regions;

[0077] The connected region with the largest area is selected as the target region.

[0078] The grayscale threshold may be calculated by Otsu's Method, Triangle Method, etc., and the present invention does not impose any limitation thereto.

[0079] It can be seen that this optional embodiment scans the original icon watermark and converts it into a grayscale image, calculates the grayscale threshold, then binarizes the image according to the grayscale threshold, and finally performs connected region analysis and selects the connected region with the largest area as the target region. This method can more accurately and effectively find the target region in the icon watermark, thereby further improving the accuracy and efficiency of generating the second icon watermark.

[0080] In another optional embodiment, the step of calculating the target color according to the target area and the original icon watermark includes:

[0081] Traverse the pixel map of the original icon watermark except the target area, calculate the pixel value distribution of all pixels in each image channel, and use the pixel value with the highest frequency in each image channel to form the first color according to its corresponding image channel;

[0082] Traversing the pixel map of the target area, calculating the pixel value distribution of all pixels in each image channel, and using the pixel value with the highest frequency in each image channel to form a second color according to its corresponding image channel;

[0083] Calculate the complementary color of the first color and the complementary color of the second color;

[0084] The complementary color of the first color and the complementary color of the second color are averaged in each channel as the pixel value of the corresponding image channel to form the target color.

[0085] It can be seen that this optional embodiment uses the pixel map of the original icon watermark except the target area and the pixel map of the target area to calculate the highest frequency value of the pixel value distribution of each image channel, thereby generating two colors, and then calculates the complementary colors of the two colors and takes the average to generate the target color. This method can better maintain the visual consistency and harmony of the icon watermark.

[0086] In yet another optional embodiment, the step of combining the additional information with the original icon watermark according to the target area and the target color to generate the second icon watermark includes:

[0087] According to the target color and the target area, the pixel coordinates corresponding to each character in the additional information in the icon watermark and the target pixel value corresponding to each pixel coordinate are calculated;

[0088] According to all target pixel values ​​and their corresponding pixel coordinates, the corresponding pixel values ​​in the icon watermark are replaced.

[0089] It can be seen that this optional embodiment calculates the pixel coordinates and target pixel values ​​corresponding to each character in the additional information in the icon watermark based on the target color and target area, and then replaces the corresponding pixel values ​​in the icon watermark. This method can more accurately embed the additional information into the icon watermark while maintaining the visual effect of the icon.

[0090] In yet another optional embodiment, the step of combining the additional information with the original icon watermark according to the target area and the target color to generate the second icon watermark includes:

[0091] When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure;

[0092] Generate a link address pointing to the storage location of the additional information in the storage structure;

[0093] According to the target area and the target color, the link address is combined with the original icon watermark to generate a second icon watermark.

[0094] In this embodiment, the link address may be in a standard URL format or a URI format, which is not limited in this embodiment of the present invention.

[0095] It can be seen that this optional embodiment stores the overly long additional information in the storage structure, then generates a link address pointing to the storage location of the additional information in the storage structure, and combines the link address with the original icon watermark to generate a second icon watermark. This method effectively handles the problem of the additional information being too long while maintaining the visual effect of the icon watermark.

[0096] In yet another optional embodiment, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0097] Select the corresponding extension tool according to the target execution platform of the APP executable file;

[0098] Use the extended tool to generate a second icon watermark based on the additional information.

[0099] It can be seen that this optional embodiment provides a more intelligent and flexible way to generate the second icon watermark, and can select appropriate extension tools according to different execution platforms, thereby improving the efficiency and compatibility of generating the second icon watermark.

[0100] In yet another optional embodiment, when the target execution platform is an Android system, the extension tool is an Android plug-in module.

[0101] In yet another optional embodiment, the step of generating a second icon watermark according to the additional information and the original icon watermark includes:

[0102] When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure;

[0103] Generate a QR code pointing to the storage location of the additional information in the storage structure;

[0104] Generate a picture with a transparent background from the QR code as the foreground of the APP icon watermark to generate a second icon watermark.

[0105] It can be seen that this optional embodiment generates a QR code image as a watermark, so that the additional information can be directly obtained by scanning the QR code, which greatly improves the convenience of obtaining the additional information.

[0106] Embodiment 2

[0107] The present invention provides an APP icon watermark update system. Figure 2 1 is a schematic diagram of the structure of an APP icon watermark update system disclosed in an embodiment of the present invention. The update system can be applied to Android system APP, IOS system APP, Windows system APP, etc., and the embodiment of the present invention does not limit it. Figure 2 As shown, the update system of the APP icon watermark may include:

[0108] The first reading module 201 is used to read the additional information of the APP according to the compilation configuration file of the source code of the APP;

[0109] The second reading module 202 is used to read the storage path of the original icon watermark of the APP, and read the original icon watermark from the storage path;

[0110] A first generating module 203, used to generate a second icon watermark according to the additional information and the original icon watermark;

[0111] The storage module 204 is used to store the second icon watermark in a storage path;

[0112] A selection module 205 is used to read the compilation parameters and select the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters;

[0113] The second generating module 206 is used to generate an executable file of the APP according to the target icon watermark.

[0114] It can be seen that this embodiment enables the icon watermark pattern to carry richer information by updating the icon watermark pattern in the resource package before APP packaging, thereby improving the efficiency of information use and reducing the maintenance cost of the APP icon watermark.

[0115] In summary, the present invention discloses an APP icon watermark update method and system, which improves the information usage efficiency and reduces the maintenance cost of the APP icon watermark. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0116] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for updating an APP icon watermark, characterized in that: include: Reading additional information of the APP according to a compilation configuration file of the source code of the APP; Read the storage path of the original icon watermark of the APP, and read the original icon watermark from the storage path; generating a second icon watermark according to the additional information and the original icon watermark; storing the second icon watermark in the storage path; Reading compilation parameters, and selecting the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters; Generate an executable file of the APP according to the target icon watermark.

2. A method for updating an APP icon watermark according to claim 1, characterized in that: The step of generating a second icon watermark according to the additional information and the original icon watermark comprises: Scan the pixel map of the original icon watermark and find the largest close-color area therein as the target area; Calculating a target color according to the target area and the original icon watermark; According to the target area and the target color, the additional information is combined with the original icon watermark to generate a second icon watermark.

3. A method for updating an APP icon watermark according to claim 2, characterized in that: The step of scanning the pixel map of the original icon watermark and finding the largest near-color area therein as the target area comprises: Scanning the original icon watermark and converting it into a grayscale image; Calculating a grayscale threshold according to the pixel values ​​of all pixels in the grayscale image; According to the grayscale threshold, the pixel values ​​of all pixels in the grayscale image whose pixel values ​​do not exceed the grayscale threshold are set to the first grayscale, and the pixel values ​​of all pixels in the grayscale image whose pixel values ​​exceed the grayscale threshold are set to the second grayscale, so as to obtain a binary grayscale image of the original image watermark; Performing connected region analysis on the binary grayscale image to obtain multiple connected regions; The connected region with the largest area is selected as the target region.

4. The method for updating an APP icon watermark according to claim 2, characterized in that: The step of calculating the target color according to the target area and the original icon watermark includes: Traversing the pixel map of the original icon watermark except the target area, calculating the pixel value distribution of all pixels in each image channel, and using the pixel value with the highest frequency in each image channel to form a first color according to its corresponding image channel; Traversing the pixel map of the target area, calculating the pixel value distribution of all pixels in each image channel, and using the pixel value with the highest frequency in each image channel to form a second color according to its corresponding image channel; Calculate the complementary color of the first color and the complementary color of the second color; The complementary color of the first color and the complementary color of the second color are averaged in each channel as pixel values ​​of corresponding image channels to form the target color.

5. The method for updating an APP icon watermark according to claim 2, characterized in that: The step of combining the additional information with the original icon watermark according to the target area and the target color to generate a second icon watermark comprises: Calculate the pixel coordinates corresponding to each character in the additional information in the icon watermark and the target pixel value corresponding to each pixel coordinate according to the target color and the target area; According to all the target pixel values ​​and their corresponding pixel coordinates, the corresponding pixel values ​​in the icon watermark are replaced.

6. A method for updating an APP icon watermark according to claim 2, characterized in that: The step of combining the additional information with the original icon watermark according to the target area and the target color to generate a second icon watermark comprises: When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure; Generating a link address pointing to the storage location of the additional information in the storage structure; According to the target area and the target color, the link address is combined with the original icon watermark to generate a second icon watermark.

7. The method for updating an APP icon watermark according to claim 1, characterized in that: The step of generating a second icon watermark according to the additional information and the original icon watermark comprises: Select the corresponding extension tool according to the target execution platform of the executable file of the APP; Using the extension tool, a second icon watermark is generated according to the additional information.

8. A method for updating an APP icon watermark according to claim 7, characterized in that: When the target execution platform is an Android system, the expansion tool is an Android plug-in module.

9. The method for updating an APP icon watermark according to claim 1, characterized in that: The step of generating a second icon watermark according to the additional information and the original icon watermark comprises: When the length of the additional information exceeds a threshold, storing the content of the additional information in a storage structure; Generate a two-dimensional code pointing to the storage location of the additional information in the storage structure; The QR code generates a picture with a transparent background as the foreground of the icon watermark of the APP to generate a second icon watermark.

10. A system for updating an APP icon watermark, characterized in that: include: A first reading module, configured to read additional information of the APP according to a compilation configuration file of the source code of the APP; A second reading module is used to read the storage path of the original icon watermark of the APP, and read the original icon watermark from the storage path; A first generating module, used for generating a second icon watermark according to the additional information and the original icon watermark; A storage module, used for storing the second icon watermark in the storage path; A selection module, used for reading compilation parameters, and selecting the original icon watermark or the second icon watermark as the target icon watermark according to the compilation parameters; The second generating module is used to generate an executable file of the APP according to the target icon watermark.