WO2021129213A1 - 主题图标的生成方法及其装置、计算机设备 - Google Patents

主题图标的生成方法及其装置、计算机设备 Download PDF

Info

Publication number
WO2021129213A1
WO2021129213A1 PCT/CN2020/128272 CN2020128272W WO2021129213A1 WO 2021129213 A1 WO2021129213 A1 WO 2021129213A1 CN 2020128272 W CN2020128272 W CN 2020128272W WO 2021129213 A1 WO2021129213 A1 WO 2021129213A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
theme
icon
logo
logo graphic
Prior art date
Application number
PCT/CN2020/128272
Other languages
English (en)
French (fr)
Inventor
张文杰
钟伟才
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201911348172.7A external-priority patent/CN113034631B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20905251.3A priority Critical patent/EP4068214A4/en
Priority to US17/788,463 priority patent/US20230045077A1/en
Publication of WO2021129213A1 publication Critical patent/WO2021129213A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/62Semi-transparency

Definitions

  • This application relates to a method and device for generating theme icons, and computer equipment.
  • System theme is a system interface style, including window color, control layout, icon style, etc.
  • the user can change the interface style of the system by selecting the system theme to make it conform to the user's aesthetics.
  • the designer will design the corresponding theme icon for the system application. After the user changes the system theme, the theme icon will replace the original application icon, making the display style of the entire interface consistent. For some third-party applications installed by users themselves, such as "huawei learning” and “vmall", they are not the corresponding theme icons, and the original application icons are still used, which is quite different from the theme style.
  • Figure 1 is a schematic diagram of the interface of an existing terminal.
  • the theme icons in the interface are round icons and the same size.
  • the third-party applications "huawei learning” and “vmall” installed by the user are still used because the designer did not design the corresponding theme icons.
  • the original application icon is quite different from the theme style, which makes the display style of the entire interface not consistent.
  • the theme icons are generated by directly superimposing the original application icons on the background layer.
  • the theme icons have obvious superimposed traces, and the styles of different theme icons are different.
  • the present application provides a method for generating a theme icon, a device thereof, and a computer device, which can automatically convert application icons into theme icons, and the generated theme icons have no superimposed traces.
  • this application proposes a method for generating a theme icon, including: acquiring an application icon; wherein the application icon includes a transparent area and an opaque area, and the opaque area includes an icon background and a first logo graphic; The first logo graphic is segmented from the opaque area of the application icon; the size of the first logo graphic is adjusted to generate the second logo graphic; the second logo graphic is merged with the theme template to generate the theme icon.
  • the segmenting the first logo graphic from the opaque area of the application icon includes: performing binarization processing on the application icon to determine the opaque area; performing image segmentation on the opaque area Processing to generate the first logo graphic.
  • the adjusting the size of the first logo graphic to generate the second logo graphic includes: obtaining a theme reference icon; segmenting the reference logo graphic from the theme reference icon; and according to the reference logo The size of the graphic is adjusted to the size of the first logo graphic.
  • the adjusting the size of the first logo graphic according to the size of the reference logo graphic includes: comparing the sizes of the first logo graphic and the reference logo graphic; and using The interpolation algorithm scales the first logo graphic so that the size of the second logo graphic is the same as the size of the reference logo graphic.
  • the method further includes: generating The color histogram corresponding to the reference sign graphic; and the color gradation of the reference sign graphic is determined according to the number of colors and the hue distribution in the color histogram.
  • the determining the color gradient of the reference sign graphic according to the number of colors and the hue distribution in the color histogram includes: when the number of colors is less than or equal to a first preset threshold, It is determined that the reference mark graphic is monochromatic and there is no color gradient; when the number of colors is greater than the first preset threshold, and the hue difference between the two colors is less than the second preset threshold, it is determined
  • the reference mark graphic has a color gradient; or when the number of colors is greater than the first preset threshold, and the hue difference between any two colors is greater than or equal to the second preset threshold, it is determined
  • the reference mark graphic includes multiple colors, and there is no color gradient.
  • the method further includes: Performing edge detection on the reference sign graphic to determine the edge of the reference sign graphic; performing straight line detection on the theme reference icon to obtain a straight line in the theme reference icon; comparing the edge with the straight line ; According to the comparison result, determine the projection of the reference mark graphics.
  • the determining the projection of the reference mark graphic according to the comparison result includes: determining that the reference mark graphic is not projected when all the straight lines are part of the edge; or In the case where the straight line is not part of the edge, it is determined that the reference mark graphic has a projection.
  • the method further includes: calculating the ratio and direction of the projection according to the straight line that is not a part of the edge.
  • the method before merging the second logo graphic with the theme template to generate the theme icon, the method further includes: according to the color gradation of the reference logo graphic and the projection of the reference logo graphic, comparing the second logo graphic with the theme template. Second, the logo graphics are subjected to color gradation processing and projection processing.
  • fusing the second logo graphic with the theme template to generate the theme icon includes: obtaining application information corresponding to the application icon; wherein the application information includes the application category, the icon background color, and the company to which the application belongs At least one of; matching the corresponding theme template from a theme template library according to the application information; fusing the second logo graphic with the theme template to generate the theme icon.
  • the fusion of the second logo graphic with the theme template to generate the theme icon further includes: detecting the graphic complexity of the second logo graphic; when the graphic complexity is less than a third preset threshold In the case that the second logo graphic is superimposed on the theme template to generate the theme icon; or in the case that the graphic complexity is greater than or equal to the third preset threshold, the The second logo graphic is Poisson-fused with the theme template to generate the theme icon.
  • this application proposes a device for generating theme icons, including: an acquisition module for acquiring application icons; wherein, the application icon includes a transparent area and an opaque area, and the opaque area includes an icon background and a first Logo graphics; segmentation module, used to segment the first logo graphics from the opaque area of the application icon; adjustment module, used to adjust the size of the first logo graphics to generate a second logo graphics; fusion module , Used to merge the second logo graphic with the theme template to generate the theme icon.
  • the segmentation module includes: a first processing submodule, configured to perform binarization processing on the application icon to determine the opaque area; and a second processing submodule, configured to perform processing on the opaque area Image segmentation processing is performed to generate the first logo graphic.
  • the adjustment module includes: a first acquisition sub-module for acquiring a theme reference icon; a segmentation sub-module for segmenting a reference logo graphic from the theme reference icon; and an adjustment sub-module for The size of the reference logo graphic is used to adjust the size of the first logo graphic.
  • the adjustment sub-module includes: a comparison unit, configured to compare the size of the first logo graphic and the reference logo graphic; and a scaling unit, configured to use an interpolation algorithm to compare the size of the first logo graphic according to the comparison result.
  • the logo graphic is scaled so that the size of the second logo graphic is the same as the size of the reference logo graphic.
  • the adjustment submodule further includes: a generating unit, configured to generate a color histogram corresponding to the reference mark graphic; a first determining unit, configured to generate a color histogram according to the number of colors and hue distribution in the color histogram To determine the color gradient of the reference mark graphic.
  • the first determining unit includes: a first determining subunit, configured to determine that the reference mark graphic is monochrome and does not exist when the number of colors is less than or equal to a first preset threshold Color gradation; a second determining subunit for determining the reference mark when the number of colors is greater than the first preset threshold and the hue difference between the two colors is less than the second preset threshold Graphics, there is a color gradient; the third determining subunit is used when the number of colors is greater than the first preset threshold, and the hue difference between any two colors is greater than or equal to the second preset threshold Next, it is determined that the reference mark graphic includes multiple colors and there is no color gradient.
  • the adjustment submodule further includes: a first detection unit configured to perform edge detection on the reference mark graphic to determine the edge of the reference mark graphic; and a second detection unit configured to perform edge detection on the reference mark graphic;
  • the theme reference icon performs line detection to obtain the line in the theme reference icon;
  • the comparison unit is used to compare the edge with the line;
  • the second determination unit is used to determine the line according to the comparison result Describe the projection of the reference logo graphic.
  • the second determining unit includes: a fourth determining subunit, configured to determine that the reference mark graphic is not projected when all the straight lines are part of the edge; and a fifth determining subunit The unit is configured to determine that the reference mark graphic has a projection when the straight line is not a part of the edge.
  • the second determining unit further includes: a calculation subunit, configured to calculate the scale and direction of the projection based on the straight line that is not a part of the edge.
  • the device further includes: a processing module configured to perform color gradation processing and projection processing on the second logo graphic according to the color gradation condition of the reference logo graphic and the projection condition of the reference logo graphic.
  • a processing module configured to perform color gradation processing and projection processing on the second logo graphic according to the color gradation condition of the reference logo graphic and the projection condition of the reference logo graphic.
  • the fusion module includes: a second acquisition sub-module for acquiring application information corresponding to the application icon; wherein the application information includes at least one of the application category, the icon background color, and the company to which the application belongs. Species; matching sub-module for matching the corresponding theme template from the theme template library according to the application information; fusion sub-module for fusing the second logo graphic with the theme template to generate the theme icon .
  • the fusion sub-module includes: a third detection unit, configured to detect the graphic complexity of the second logo graphic; and a superimposing unit, configured to detect the graphic complexity of the second sign graphic when the graphic complexity is less than a third preset threshold Next, the second logo graphic is superimposed on the theme template to generate the theme icon; the fusion unit is configured to: when the complexity of the graphic is greater than or equal to the third preset threshold, Poisson fusion of the second logo graphic and the theme template is performed to generate the theme icon.
  • this application proposes a computer device including a memory and a processor, and when the instructions in the memory are executed by the processor, the computer device is made to implement the aforementioned method for generating the theme icon.
  • this application proposes a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the aforementioned method for generating the theme icon is realized.
  • Figure 1 is a schematic diagram of the interface of an existing terminal
  • Fig. 2a is a schematic flowchart of a method for generating a theme icon in the prior art
  • FIG. 2b is a schematic diagram of the effect of the method for generating theme icons in the prior art
  • FIG. 3 is a schematic structural diagram of the theme icon generation system proposed by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the structure of the server in FIG. 3;
  • FIG. 5 is a schematic diagram of the structure of the terminal in FIG. 3;
  • FIG. 6 is a schematic diagram of the work flow of the system for generating theme icons proposed in an embodiment of the application.
  • FIG. 7 is a schematic diagram of an example of a theme reference icon proposed in an embodiment of the application.
  • FIG. 8 is a schematic diagram of the theme template library proposed in an embodiment of the application.
  • Figure 9 is a schematic diagram of segmenting reference logo graphics from theme reference icons
  • Fig. 10 is a schematic diagram of an example of an application icon
  • Figure 11 is a schematic diagram of determining an opaque area from an application icon
  • Figure 12 is a schematic diagram of segmenting the first logo graphic from an opaque area
  • FIG. 13 is a schematic diagram of scaling a first logo graphic to generate a second logo graphic
  • FIG. 14 is a schematic diagram of performing color gradation processing on the second logo graphic
  • 15 is a schematic diagram of performing projection processing on the second logo graphic after color gradation processing
  • Figure 16 is a schematic diagram of merging the second logo graphic with the theme template to generate the theme icon
  • FIG. 17 is a schematic flowchart of a method for generating a theme icon proposed by an embodiment of the application.
  • Figure 18 is a flowchart of a method for determining an opaque area from an application icon in a vector diagram
  • FIG. 19 is a flowchart of a method for determining an opaque area from an application icon that is not a vector diagram
  • 20 is a schematic diagram of the flow of adjusting the size of the first logo graphic
  • FIG. 21 is a schematic flowchart of adjusting the size of the first logo graphic according to the reference logo graphic
  • FIG. 22 is a schematic diagram of the process of determining the color gradation of the reference mark graphic
  • FIG. 23 is a schematic diagram of the process of determining the projection of the reference mark graphic
  • FIG. 24 is a schematic diagram of the process of fusing the second logo graphic with the theme template
  • 25 is a schematic diagram of a process of fusing the second logo graphic with the theme template according to graphic complexity
  • FIG. 26 is a schematic structural diagram of an apparatus for generating theme icons according to an embodiment of the application.
  • FIG. 27 is a schematic diagram of the first structure of the device for generating theme icons in FIG. 26;
  • FIG. 28 is a schematic diagram of the second structure of the device for generating the theme icon in FIG. 26.
  • Fig. 29 is a schematic structural diagram of a non-transitory computer-readable storage medium.
  • Fig. 2a is a schematic flowchart of a method for generating a theme icon in the prior art.
  • Fig. 2b is a schematic diagram of the effect of a method for generating a theme icon in the prior art.
  • the designer determines the relevant parameters of the first background layer, specifically including the color, shape, size, transparency and other parameters of the first background layer, so as to depend on the first background layer.
  • the parameters of the layer generate the first background layer.
  • the designer determines the relevant parameters of the second background layer, so as to generate the second background layer according to the parameters of the second background layer, first superimpose the second background layer on the first background layer, and then The application icon is superimposed on the two background layers to generate the theme icon.
  • the opaque area in the application icon can be further divided into the icon background and the first logo graphic.
  • the first logo graphic is an identification part used to distinguish different applications in an application icon
  • the icon background is a background part used to set off and beautify the first logo graphic. Therefore, for the final generated theme icon, it is only necessary to process the first logo graphic and keep it for distinguishing different applications.
  • FIG. 3 is a schematic structural diagram of the system for generating the theme icon proposed in an embodiment of the application.
  • the theme icon generation system in the embodiment of the present application includes at least one server and at least one terminal.
  • One server can be connected to multiple terminals.
  • Each terminal can be installed with a client or With a network card, the terminal can send a data transmission request to the server through the network card.
  • the data transmission request can be a request to upload a theme reference icon or a request to receive a theme icon.
  • the server allows the terminal to transmit data, it will transmit data with the terminal, and generate a theme icon based on the theme reference icon.
  • the client may be a client of a different organization, or may be a client of the same organization.
  • the designer When using the system, the designer only needs to design the corresponding theme icon for the system application, and use the theme icon corresponding to the system application as the theme reference icon, which is sent to the server through the terminal.
  • the third-party application icon processes, generates the corresponding theme icon, and returns it to the terminal to realize the automatic conversion of the application icon into the theme icon.
  • FIG. 4 is a schematic diagram of the structure of the server in FIG. 3.
  • a server also called a server, is a device that provides data processing services. Since the server needs to respond to service requests and process them, in general, the server should have the ability to undertake the service and guarantee the service.
  • the structure of the server can include a processor, memory, communication module, etc., similar to a general computer architecture, but due to the need to provide highly reliable services, it is in terms of processing power, stability, reliability, security, scalability, and manageability. The sex and other aspects are more demanding.
  • a computer program is stored in the memory of the server in the system for generating the theme icon, and the computer program can be executed by the processor to implement the method provided in the following method embodiment.
  • the server also includes a database in which third-party application icons are stored, and the computer program stored in the memory can convert the third-party application icons stored in the database into corresponding theme icons when executed.
  • the communication module of the server is used for data transmission with the terminal, receives the theme reference icon from the terminal, and returns the generated theme icon to the terminal.
  • FIG. 5 is a schematic diagram of the structure of the terminal in FIG. 3.
  • the terminal may include one or more processors and one or more memories, where instructions are stored in the memory, and the instructions are loaded and executed by the processor to implement the following method embodiments. Methods.
  • the terminal may also have components such as a communication module, an input unit, a display unit, etc., for input and output, and the terminal may also include other components for implementing device functions, which will not be repeated here.
  • the terminal in the theme icon generation system performs human-computer interaction with the designer through the input unit and the display unit, and uses the theme icon designed by the designer for the system application as the theme reference icon, and sends it to the server through the communication module, and generates a third party on the server After applying the theme icon corresponding to the icon, the theme icon is received through the communication module and displayed by the display unit.
  • Fig. 6 is a schematic diagram of the workflow of the system for generating the theme icon proposed by the embodiment of the application.
  • FIG. 7 is a schematic diagram of an example of a theme reference icon proposed in an embodiment of the application.
  • the theme reference icons designed by the designer include: reference logo graphics, theme background and projection.
  • the reference logo graphic can distinguish the theme reference icon from other icons and help the user identify the application corresponding to the theme reference icon. Therefore, the reference logo graphic corresponding to different applications is different.
  • the reference logo graphic letter B in FIG. 7 is used to correspond to application B.
  • the theme background is the background of the reference logo graphic, so that the entire theme refers to the style of the icon and is consistent with the theme designed by the designer.
  • the reference logo graphic can also have a projection effect to enhance the three-dimensional effect of the reference logo graphic, and the reference logo graphic can also have a color gradient effect to enhance the aesthetics of the theme reference icon.
  • FIG. 8 is a schematic diagram of the theme template library proposed in an embodiment of the application. As shown in Figure 8, the theme template library includes multiple theme templates, and different theme templates are similar in overall display style, but there are certain differences.
  • Fig. 9 is a schematic diagram of segmenting reference logo graphics from the theme reference icons. As shown in Figure 9, after removing all the theme background and projections around the reference logo graphic in the theme reference icon, the reference logo graphic can be obtained.
  • Fig. 10 is a schematic diagram of an example of an application icon.
  • the application icon has a transparent area and an opaque area, where the opaque area includes the original background of the application icon and the first logo graphic.
  • the first logo graphic can distinguish the application icon from other icons and help the user identify the application corresponding to the application icon. Therefore, the first logo graphic corresponding to different applications is different.
  • the first logo graphic letter A in FIG. 10 is used to correspond to application A. It can be understood that the original background of the application icon is the background of the first logo graphic.
  • Fig. 11 is a schematic diagram of determining an opaque area from an application icon.
  • the server obtains the application icon from the database, performs image segmentation processing on the application icon, determines the transparent area and the opaque area of the application icon, and removes the transparent area.
  • application icons can be divided into vector-graphic application icons and non-vector-graphic application icons according to image formats.
  • each pixel in the vector diagram expresses the transparency of the pixel through the transparency channel, so the transparency channel can be extracted directly to determine whether the pixel belongs to the opaque area.
  • the transparent area surrounds the opaque area, that is, the opaque area is a connected whole, so the opaque area can be determined by the method of image connected area detection.
  • the application icon of the vector diagram has the parameter of the transparency channel, so the transparency channel of the application icon can be directly extracted, and then the transparent area and the opaque area in the application icon can be determined.
  • the transparency channel of the application icon can be directly extracted, and then the transparent area and the opaque area in the application icon can be determined.
  • the binarization process refers to setting the gray value of the pixel on the image to 0 or 255.
  • each image is composed of pixels arranged in an array, and the gray value of each pixel is related to the brightness.
  • the range of the gray value is 0 to 255. The larger the gray value, the brighter the brightness. High, the smaller the gray value, the lower the brightness. Therefore, the gray value corresponding to the opaque area is much smaller than the gray value corresponding to the transparent area.
  • the pixel in the application icon is binarized, that is, a gray threshold is selected. For pixels with a gray value less than the gray threshold, the gray value of the pixel is Set to 0, for a pixel with a grayscale value greater than the grayscale threshold, set the grayscale value of the pixel to 255. Then, the pixels with the gray value of 0 are regarded as the pixels of the opaque area, so as to determine the opaque area.
  • FIG. 12 is a schematic diagram of segmenting the first logo pattern from the opaque area. As shown in FIG. 12, after the opaque area is determined, it is necessary to further perform image segmentation processing on the opaque area to divide the first logo graphic and the original background to generate the first logo graphic. Among them, the image segmentation processing of the opaque area can adopt a machine learning method or a deep learning method.
  • Figure 13 is a schematic diagram of scaling the first logo graphic to generate a second logo graphic. As shown in Figure 13, according to the size ratio of the reference logo graphic and the first logo graphic, calculate the zoom ratio corresponding to each first logo graphic, and scale each first logo graphic to generate the corresponding second logo graphic , Making the second logo graphic the same size as the reference logo graphic.
  • the size of the first logo graphic needs to be adjusted to unify the size.
  • the scaling may not be necessary.
  • one possible implementation is to compare the sizes of the first logo graphic and the reference logo graphic. According to the comparison result, the interpolation algorithm is used to scale the first logo graphic so that the size of the second logo graphic is the same as the size of the reference logo graphic.
  • the widths of the reference logo graphic and the first logo graphic can be calculated separately. Ratio and height ratio, and then use the larger value as the zoom ratio, or use the smaller value as the zoom ratio.
  • the nearest neighbor interpolation algorithm is to assign the gray value of the nearest pixel of the original pixel to the original pixel
  • the bilinear interpolation is an extension of the linear difference algorithm, which performs a linear difference in two directions.
  • the cubic interpolation method is to perform weighted interpolation on the gray values of 16 pixels around the target pixel to obtain the gray value of the target pixel.
  • FIG. 14 is a schematic diagram of performing color gradation processing on the second logo graphic.
  • FIG. 15 is a schematic diagram of performing projection processing on the second logo graphic after color gradation processing.
  • one possible implementation is to make the judgment by analyzing the color quantity and hue distribution of the reference sign graphic.
  • the color histogram corresponding to the reference logo graphic can be generated first, where the color histogram counts the colors of the pixels in the reference logo graphic and displays it in the form of a color histogram.
  • the color histogram can be intuitively displayed. Display the number of colors and hue distribution corresponding to the reference logo graphic.
  • each color forming the color gradient will appear in the color histogram, the number of colors is large, and the hue difference between different colors is small.
  • the reference sign graphic is a single color and there is no color gradient.
  • the reference logo graphic has a color gradient.
  • the reference logo graphic includes multiple colors and there is no color gradient.
  • one possible implementation is to judge by analyzing the edge of the reference logo graphic and the straight line in the theme reference icon.
  • the edge detection may be performed on the reference sign graphic first to determine the edge of the reference sign graphic, and then the line detection is performed on the theme reference icon to obtain the straight line in the theme reference icon. Compare the edge and the straight line, and determine the projection of the reference sign graphic according to the comparison result.
  • the projection and the reference logo graphic there is no connection, when the edge detection of the reference logo graphic, the projection of the reference logo graphic is excluded, and when the subject reference icon is detected in a straight line , Can detect the projected straight line together. If there is a line in the line of the theme reference icon that does not belong to the edge of the reference sign graphic, then the line belongs to the projection of the reference sign graphic, and it can be determined that the reference sign graphic has a projection.
  • the reference mark graphic after determining that the reference mark graphic has a projection, it further includes: calculating the length and direction of the projection according to the straight line that does not belong to the edge.
  • the length of the projection and the width or height of the reference sign graphic can be detected, and the projection ratio can be calculated. It can detect the angle formed between the projection and the reference mark graphic, and calculate the direction of the projection.
  • the second logo graphic needs to be processed correspondingly, so that the processed second logo graphic has color gradation and/or projection.
  • the projection length of the second logo graphic is calculated, and the projection direction of the projection is combined to generate the projection of the second logo graphic.
  • the theme reference icon in FIG. 7 has a projection
  • the reference logo graphic has a color gradient.
  • the second logo graphic has a color gradation, and the color is consistent with the reference logo graphic in the main body reference icon in FIG. 7.
  • the second logo graphic has color gradation and projection, and the projection is consistent with the projection in the main body reference icon in FIG. 7.
  • the display style of the second logo graphic after the color gradient processing and projection processing is very close to the display style of the theme reference icon in Figure 7. It is also necessary to select the main template as the theme background to generate a theme reference icon. Display theme icons in a consistent style.
  • FIG. 16 is a schematic diagram of merging the second logo graphic and the theme template to generate the theme icon. As shown in FIG. 16, according to the application information stored in the database, each second logo graphic is matched, the corresponding theme template is determined from the theme template library, and the second logo graphic and the theme template are merged to generate the theme icon. The generated theme icon is returned to the designer's terminal to realize the generation of the theme icon.
  • the application information includes at least one of application category, icon background color, and company to which the application belongs.
  • application categories include business office, sports and health, auxiliary tools, leisure and entertainment, etc.
  • the background color of the icon is the color of the opaque area in the application icon, and the company to which the application belongs includes Baidu, Facebook, Tencent, and Toutiao.
  • the theme template is stored in the theme template library, the theme template library can be input by the user from the terminal, and can also be generated based on the theme reference icon.
  • the first possible implementation is to classify the second logo graphics corresponding to the application icons according to the application category, and the second logo graphics under the same application category use the same theme template.
  • the second possible implementation is to match the theme template of the second logo graphic corresponding to the application icon according to the icon background color, and select the theme template closest to the icon background color from the theme template library.
  • a third possible implementation manner is to classify the second logo graphics corresponding to the application icons according to the company to which the application belongs, and use the same theme template for the second logo graphics corresponding to the same company.
  • different fusion methods can be used. Specifically, different fusion methods can be selected according to the graphic complexity of the second logo graphic.
  • the second logo graphic and the theme template are directly superimposed, and there will be no obvious superimposed traces, but for the second logo graphic with higher graphic complexity, the second logo graphic will be superimposed.
  • the logo graphics and the theme template are directly superimposed, and there will be obvious superimposed traces.
  • the second logo graphic and the theme template may be merged according to the complexity of the graphic.
  • the graphic complexity can be measured by the ratio of the perimeter to the area of the graphic. The larger the ratio of the perimeter to the area, the lower the complexity of the graphic. The ratio of the perimeter to the area is The lower the value, the higher the graphics complexity.
  • the second logo graphic is superimposed on the theme template to generate the theme icon.
  • the graphic complexity is less than the third preset threshold
  • the second logo graphic and the theme template are directly superimposed, and there will be no obvious superimposition traces.
  • the second logo graphic can be superimposed on Theme template.
  • Poisson fusion is performed on the second logo graphic and the theme template to generate the theme icon.
  • Poisson fusion of the second logo graphic and the theme template can reduce the superimposed traces between the second logo graphic and the theme template.
  • the above-mentioned server can also generate multiple theme icons in batches.
  • multiple application icons are obtained in batches from the database, and the corresponding first logo graphics are segmented from the application icons in batches, and each first logo graphic is calculated in batches.
  • a scaling ratio corresponding to a logo graphic, and batch scaling is performed on each first logo graphic to generate a corresponding second logo graphic.
  • the corresponding color gradation processing and projection processing are performed on a plurality of second sign graphics in batches.
  • batch matching is performed on each second logo graphic to determine the corresponding theme template, and then each second logo graphic is combined with the theme template in batches to generate the theme icon.
  • the generated multiple theme icons are returned to the designer's terminal in batches, realizing the batch generation of theme icons.
  • the server mainly receives the theme reference icon and the theme template library from the terminal, processes the application icon, generates the corresponding theme icon, and combines the theme icon The icon is returned to the terminal.
  • the terminal is mainly used to interact with designers, and the server is the main body of execution of the theme icon generation method.
  • FIG. 17 is a schematic flowchart of a method for generating a theme icon proposed by an embodiment of the application. As shown in Figure 17, the method includes:
  • Step S101 Obtain an application icon.
  • Step S102 Separate the first logo graphic from the application icon.
  • FIG. 18 is a flowchart of the method for determining the opaque area from the application icon of the vector diagram, and the method includes:
  • Step S11 extract the transparency channel of the application icon.
  • Step S12 using an image connected area detection method to determine an opaque area.
  • Step S13 Perform image segmentation processing on the opaque area to generate a first logo graphic.
  • Figure 19 is a flowchart of a method for determining opaque areas from application icons that are not vector graphics. The method includes :
  • Step S21 Binarize the application icon to determine the opaque area.
  • Step S22 Perform image segmentation processing on the opaque area to generate a first logo graphic.
  • Step S103 Adjust the size of the first logo graphic to generate a second logo graphic.
  • step S104 the second logo graphic is merged with the theme template to generate a theme icon.
  • the method for generating the theme icon obtains the application icon.
  • the application icon includes a transparent area and an opaque area
  • the opaque area includes an icon background and a first logo graphic.
  • the first logo graphic is segmented from the application icon, and the size of the first logo graphic is adjusted to generate the second logo graphic.
  • the second logo graphic is merged with the theme template to generate the theme icon.
  • the first logo graphic is segmented from the opaque area of the application icon, and the second logo graphic obtained after the first logo graphic is resized is merged with the theme template, and the application icon is transformed into a theme consistent with the theme style.
  • the theme icon can automatically convert the application icon into the theme icon, and the generated theme icon has no superimposed traces.
  • FIG. 20 is a schematic diagram of the flow of adjusting the size of the first logo graphic, based on FIG. 17
  • the shown method flow, as shown in FIG. 20, step S103, adjusting the size of the first logo graphic to generate the second logo graphic includes:
  • Step S201 Obtain a theme reference icon.
  • step S202 a reference logo graphic is segmented from the theme reference icon.
  • Step S203 Adjust the size of the first logo graphic according to the size of the reference logo graphic.
  • FIG. 21 is a schematic flowchart of adjusting the size of the first logo graphic according to the reference logo graphic. As shown in FIG. 21, step S203 is based on the reference.
  • the size of the logo graphic adjust the size of the first logo graphic, including:
  • Step S31 Compare the sizes of the first logo graphic and the reference logo graphic.
  • Step S32 according to the comparison result, use an interpolation algorithm to scale the first logo graphic so that the size of the second logo graphic is the same as the size of the reference logo graphic.
  • Fig. 22 is a schematic diagram of the process of determining the color gradation of the reference sign graphic. As shown in Fig. 22, based on the process shown in Fig. 21, in step S32, according to the comparison result, an interpolation algorithm is used to After a logo graphic is scaled so that the size of the second logo graphic is the same as the size of the reference logo graphic, it also includes:
  • Step S33 Generate a color histogram corresponding to the reference sign graphic.
  • Step S34 Determine the color gradient of the reference sign graphic according to the number of colors and the hue distribution in the color histogram.
  • Fig. 23 is a schematic diagram of the process of determining the projection of the reference sign graphic. As shown in Fig. 23, based on the process shown in Fig. 21, in step S32, according to the comparison result, an interpolation algorithm is used to compare the first After the logo graphic is scaled so that the size of the second logo graphic is the same as the size of the reference logo graphic, it also includes:
  • Step S35 Perform edge detection on the reference mark graphic to determine the edge of the reference mark graphic.
  • Step S36 Perform straight line detection on the theme reference icon to obtain a straight line in the theme reference icon.
  • step S37 the edge and the straight line are compared.
  • Step S38 according to the comparison result, determine the projection situation of the reference mark graphic.
  • step S104 before fusing the second logo graphic with the theme template to generate the theme icon, it also includes: performing color gradation processing on the second logo graphic according to the color gradation of the reference logo graphic and the projection of the reference logo graphic And projection processing.
  • the size of the first logo graphic is adjusted according to the size of the reference logo graphic, so that the size of the generated second logo graphic is the same as that of the reference logo graphic, thereby keeping the style of the generated theme icon consistent.
  • step S104 is to merge the second logo graphic with the theme template to generate the theme icon, including:
  • Step S301 Obtain application information corresponding to an application icon.
  • Step S302 Match the corresponding theme template from the theme template library according to the application information.
  • step S303 the second logo graphic is merged with the theme template to generate the theme icon.
  • Figure 25 is a schematic diagram of the process of fusing the second logo graphic with the theme template according to the complexity of the graphic, as shown in Figure 25, based on the image shown in Figure 24.
  • Step S41 Detect the graphic complexity of the second logo graphic.
  • Step S42 in the case where the graphic complexity is less than the third preset threshold, superimpose the second logo graphic on the theme template to generate the theme icon.
  • Step S43 In a case where the graphic complexity is greater than or equal to the third preset threshold, Poisson fusion is performed on the second logo graphic and the theme template to generate the theme icon.
  • the theme template corresponding to the second logo graphic is matched according to the application information corresponding to the application icon, and then the theme icon is generated.
  • FIG. 26 is a schematic structural diagram of the device for generating a theme icon proposed by an embodiment of the application. As shown in FIG. 26, the device includes: an acquisition module 410, a segmentation module 420, an adjustment module 430, and a fusion module 440.
  • the obtaining module 410 is used for obtaining application icons.
  • the application icon includes a transparent area and an opaque area
  • the opaque area includes an icon background and a first logo graphic
  • the segmentation module 420 is used to segment the first logo graphic from the application icon.
  • the adjustment module 430 is configured to adjust the size of the first logo graphic to generate a second logo graphic.
  • the fusion module 440 is used for fusing the second logo graphic with the theme template to generate the theme icon.
  • the segmentation module 420 includes: a first processing sub-module 421, configured to perform binarization processing on the application icon to determine the opacity area.
  • the second processing sub-module 422 is configured to perform image segmentation processing on the opaque area to generate the first logo graphic.
  • the device for generating theme icons acquires application icons when generating the theme icons.
  • the application icon includes a transparent area and an opaque area
  • the opaque area includes an icon background and a first logo graphic.
  • the first logo graphic is segmented from the application icon, and the size of the first logo graphic is adjusted to generate the second logo graphic.
  • the second logo graphic is merged with the theme template to generate the theme icon.
  • the first logo graphic is segmented from the opaque area of the application icon, and the second logo graphic obtained after the first logo graphic is resized is merged with the theme template, and the application icon is transformed into a theme consistent with the theme style.
  • the theme icon can automatically convert the application icon into the theme icon, and the generated theme icon has no superimposed traces.
  • FIG. 27 is a schematic diagram of the first structure of the device for generating the theme icon in FIG. 26.
  • the adjustment module 430 includes: a first acquisition submodule 431, a segmentation submodule 432, and an adjustment submodule 433.
  • the first obtaining sub-module 431 is used to obtain the theme reference icon.
  • the segmentation sub-module 432 is used to segment the reference logo graphic from the theme reference icon.
  • the adjustment sub-module 433 is configured to adjust the size of the first logo graphic according to the size of the reference logo graphic.
  • the adjustment sub-module 433 includes a comparison unit 4331 for comparing the sizes of the first logo graphic and the reference logo graphic.
  • the scaling unit 4332 is configured to use an interpolation algorithm to scale the first logo graphic according to the comparison result, so that the size of the second logo graphic is the same as the size of the reference logo graphic.
  • the adjustment sub-module 433 further includes a generating unit 4333 for generating a color histogram corresponding to the reference logo graphic.
  • the first determining unit 4334 is configured to determine the color gradient of the reference sign graphic according to the number of colors and the hue distribution in the color histogram.
  • the first determining unit 4334 includes: a first determining subunit 4334a, configured to determine whether the number of colors is less than or equal to the first preset threshold. In this case, it is determined that the reference logo graphic is a single color, and there is no color gradient.
  • the second determining subunit 4334b is configured to determine that the reference logo graphic has a color gradient when the number of colors is greater than the first preset threshold and the hue difference between the two colors is less than the second preset threshold.
  • the third determining subunit 4334c is configured to determine that the reference logo graphic includes multiple colors when the number of colors is greater than the first preset threshold and the hue difference between any two colors is greater than or equal to the second preset threshold, And there is no color gradient.
  • the adjustment sub-module 433 also includes: a first detection unit 4335, configured to perform edge detection on the reference sign graphic to determine Refer to the edge of the logo graphic.
  • the second detection unit 4336 is configured to perform straight line detection on the reference mark graphic to obtain a straight line in the reference mark graphic.
  • the comparison unit 4337 is used to compare edges and straight lines.
  • the second determining unit 4338 is configured to determine the projection condition of the reference sign graphic according to the comparison result.
  • the second determining unit 4338 includes: a fourth determining subunit 4338a, configured to determine when all straight lines are part of an edge The reference mark graphic is not projected.
  • the fifth determining subunit 4338b is used for determining that the reference mark graphic has a projection when there is a straight line that is not part of the edge.
  • the second determining unit 4338 further includes: a calculation subunit 4338c for calculating the projection ratio based on the straight line that is not part of the edge And direction.
  • the device further includes: a processing module 450 for performing color gradation processing and/or projection processing on the second logo graphic according to the color gradation condition of the reference logo graphic and the projection condition of the reference logo graphic.
  • the graphics undergo color gradation processing and projection processing.
  • the size of the first logo graphic is adjusted according to the size of the reference logo graphic, so that the size of the generated second logo graphic is the same as that of the reference logo graphic, thereby keeping the style of the generated theme icon consistent.
  • Fig. 28 is a schematic diagram of the second structure of the device for generating the theme icon in Fig. 26.
  • the fusion module 440 includes: a second acquisition sub-module 441, a matching sub-module 442, and a fusion sub-module 443.
  • the second obtaining submodule 441 is used to obtain application information corresponding to the application icon.
  • the application information includes at least one of application category, icon background color, and company to which the application belongs.
  • the matching sub-module 442 is configured to match the corresponding theme template from the theme template library according to the application information.
  • the fusion sub-module 443 is used to merge the second logo graphic with the theme template to generate the theme icon.
  • the fusion sub-module 443 includes: a third detection unit 4431 for detecting the graphic complexity of the second logo graphic.
  • the superimposing unit 4432 is configured to superimpose the second logo graphic on the theme template to generate the theme icon when the graphic complexity is less than the third preset threshold.
  • the fusion unit 4433 is configured to perform Poisson fusion of the second logo graphic with the theme template when the graphic complexity is greater than or equal to the third preset threshold to generate the theme icon.
  • the theme template corresponding to the second logo graphic is matched according to the application information corresponding to the application icon, and then the theme icon is generated.
  • FIG. 4 is a schematic structural diagram of the computer device.
  • FIG. 29 is a schematic structural diagram of the non-transitory computer-readable storage medium.
  • the non-transitory computer-readable storage medium stores There is a computer program that, when running on a computer, causes the computer to execute the method for generating the theme icon in the foregoing embodiment.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • And/or describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • the following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disks or optical disks etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种主题图标的生成方法及其装置、计算机设备,方法包括:获取应用图标,其中,应用图标包括透明区域和不透明区域,不透明区域包括图标背景和第一标志图形;从应用图标的不透明区域中分割出第一标志图形;对第一标志图形的大小进行调整,以生成第二标志图形;将第二标志图形与主题模板融合,以生成主题图标。由此,实现了从应用图标的不透明区域中分割出第一标志图形,将第一标志图形调整大小后得到的第二标志图形,与主题模板进行融合,将应用图标转化为与主题风格一致的主题图标,能够自动将应用图标转化为主题图标,并且生成的主题图标不存在叠加痕迹。

Description

主题图标的生成方法及其装置、计算机设备
本申请要求于2019年12月24日提交中国专利局、申请号为201911348172.7、申请名称为“主题图标的生成方法及其装置、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种主题图标的生成方法及其装置、计算机设备。
背景技术
系统主题是一种系统的界面风格,包括窗口的色彩、控件的布局、图标的样式等。用户通过选择系统主题,可以改变系统的界面风格,使其符合用户的审美。
在系统主题设计过程中,设计人员会对系统应用设计对应的主题图标。用户更换系统主题后,主题图标将会替代原有的应用图标,使得整个界面的显示风格保持一致。对于部分用户自行安装的第三方应用,比如“huawei learning”和“vmall”,不是对应的主题图标,依然使用原有的应用图标,与主题风格存在较大差别。
图1为现有终端的界面示意图。如图1所示,界面中主题图标的风格为圆形图标,并且大小相同,而用户自行安装的第三方应用“huawei learning”和“vmall”,由于设计人员没有设计对应的主题图标,依然使用原有的应用图标,与主题风格存在较大差别,使得整个界面的显示风格不能保持一致。
相关技术中,通过将原有的应用图标直接叠加在背景图层上,来生成主题图标,主题图标存在明显的叠加痕迹,不同的主题图标之间风格存在差异。
发明内容
本申请提供了一种主题图标的生成方法及其装置、计算机设备,能够自动将应用图标转化为主题图标,并且生成的主题图标不存在叠加痕迹。
第一方面,本申请提出了一种主题图标的生成方法,包括:获取应用图标;其中,所述应用图标包括透明区域和不透明区域,所述不透明区域包括图标背景和第一标志图形;从所述应用图标的不透明区域中分割出第一标志图形;对所述第一标志图形的大小进行调整,以生成第二标志图形;将所述第二标志图形与主题模板融合,以生成主题图标。
可选地,所述从所述应用图标的不透明区域中分割出第一标志图形,包括:对所述应用图标进行二值化处理,以确定所述不透明区域;对所述不透明区域进行图像分割处理,以生成所述第一标志图形。
可选地,所述对所述第一标志图形的大小进行调整,以生成第二标志图形,包括:获取主题参考图标;从所述主题参考图标中分割出参考标志图形;根据所述参考标志图形的大小,对所述第一标志图形的大小进行调整。
可选地,所述根据所述参考标志图形的大小,对所述第一标志图形的大小进行调 整,包括:比较所述第一标志图形和所述参考标志图形的大小;根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同。
可选地,在所述根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同之后,还包括:生成所述参考标志图形对应的颜色直方图;根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况。
可选地,所述根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况,包括:在所述颜色数量小于或者等于第一预设阈值的情况下,确定所述参考标志图形为单色,不存在颜色渐变;在所述颜色数量大于所述第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定所述参考标志图形,存在颜色渐变;或者在所述颜色数量大于所述第一预设阈值,且任意两种颜色之间的色相差大于或者等于所述第二预设阈值的情况下,确定所述参考标志图形包括多种颜色,且不存在颜色渐变。
可选地,在所述根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同之后,还包括:对所述参考标志图形进行边缘检测,以确定所述参考标志图形的边缘;对所述主题参考图标进行直线检测,以获取所述主题参考图标中的直线;对所述边缘和所述直线进行比对;根据比对结果,确定所述参考标志图形的投影情况。
可选地,所述根据比对结果,确定所述参考标志图形的投影情况,包括:在所有所述直线均为所述边缘的一部分的情况下,确定所述参考标志图形没有投影;或者在存在所述直线不为所述边缘的一部分的情况下,确定所述参考标志图形存在投影。
可选地,在所述确定所述参考标志图形存在投影之后,还包括:根据不为所述边缘的一部分的所述直线,计算所述投影的比例和方向。
可选地,在将所述第二标志图形与主题模板融合,以生成主题图标之前,还包括:根据所述参考标志图形的颜色渐变情况和所述参考标志图形的投影情况,对所述第二标志图形进行颜色渐变处理和投影处理。
可选地,将所述第二标志图形与主题模板融合,以生成主题图标,包括:获取所述应用图标对应的应用信息;其中,所述应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种;根据所述应用信息从主题模板库中匹配对应的所述主题模板;将所述第二标志图形与主题模板融合,以生成所述主题图标。
可选地,所述将所述第二标志图形与主题模板融合,以生成主题图标,还包括:检测所述第二标志图形的图形复杂度;在所述图形复杂度小于第三预设阈值的情况下,将所述第二标志图形叠加在所述主题模板上,以生成所述主题图标;或者在所述图形复杂度大于或者等于所述第三预设阈值的情况下,将所述第二标志图形与所述主题模板进行泊松融合,以生成所述主题图标。
第二方面,本申请提出了一种主题图标的生成装置,包括:获取模块,用于获取应用图标;其中,所述应用图标包括透明区域和不透明区域,所述不透明区域包括图标背景和第一标志图形;分割模块,用于从所述应用图标的不透明区域中分割出第一 标志图形;调整模块,用于对所述第一标志图形的大小进行调整,以生成第二标志图形;融合模块,用于将所述第二标志图形与主题模板融合,以生成主题图标。
可选地,所述分割模块,包括:第一处理子模块,用于对所述应用图标进行二值化处理,以确定所述不透明区域;第二处理子模块,用于对所述不透明区域进行图像分割处理,以生成所述第一标志图形。
可选地,所述调整模块,包括:第一获取子模块,用于获取主题参考图标;分割子模块,用于从所述主题参考图标中分割出参考标志图形;调整子模块,用于根据所述参考标志图形的大小,对所述第一标志图形的大小进行调整。
可选地,所述调整子模块,包括:比较单元,用于比较所述第一标志图形和所述参考标志图形的大小;缩放单元,用于根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同。
可选地,所述调整子模块,还包括:生成单元,用于生成所述参考标志图形对应的颜色直方图;第一确定单元,用于根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况。
可选地,所述第一确定单元,包括:第一确定子单元,用于在所述颜色数量小于或者等于第一预设阈值的情况下,确定所述参考标志图形为单色,不存在颜色渐变;第二确定子单元,用于在所述颜色数量大于所述第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定所述参考标志图形,存在颜色渐变;第三确定子单元,用于在所述颜色数量大于所述第一预设阈值,且任意两种颜色之间的色相差大于或者等于所述第二预设阈值的情况下,确定所述参考标志图形包括多种颜色,且不存在颜色渐变。
可选地,所述调整子模块,还包括:第一检测单元,用于对所述参考标志图形进行边缘检测,以确定所述参考标志图形的边缘;第二检测单元,用于对所述主题参考图标进行直线检测,以获取所述主题参考图标中的直线;比对单元,用于对所述边缘和所述直线进行比对;第二确定单元,用于根据比对结果,确定所述参考标志图形的投影情况。
可选地,所述第二确定单元,包括:第四确定子单元,用于在所有所述直线均为所述边缘的一部分的情况下,确定所述参考标志图形没有投影;第五确定子单元,用于在存在所述直线不为所述边缘的一部分的情况下,确定所述参考标志图形存在投影。
可选地,所述第二确定单元,还包括:计算子单元,用于根据不为所述边缘的一部分的所述直线,计算所述投影的比例和方向。
可选地,所述装置还包括:处理模块,用于根据所述参考标志图形的颜色渐变情况和所述参考标志图形的投影情况,对所述第二标志图形进行颜色渐变处理和投影处理。
可选地,所述融合模块,包括:第二获取子模块,用于获取所述应用图标对应的应用信息;其中,所述应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种;匹配子模块,用于根据所述应用信息从主题模板库中匹配对应的所述主题模板;融合子模块,用于将所述第二标志图形与主题模板融合,以生成所述主题图标。
可选地,所述融合子模块,包括:第三检测单元,用于检测所述第二标志图形的 图形复杂度;叠加单元,用于在所述图形复杂度小于第三预设阈值的情况下,将所述第二标志图形叠加在所述主题模板上,以生成所述主题图标;融合单元,用于在所述图形复杂度大于或者等于所述第三预设阈值的情况下,将所述第二标志图形与所述主题模板进行泊松融合,以生成所述主题图标。
第三方面,本申请提出了一种计算机设备,包括存储器和处理器,当所述存储器中中的指令被所述处理器执行时,使得所述计算机设备实现前述的主题图标的生成方法。
第四方面,本申请提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现前述的主题图标的生成方法。
附图说明
图1为现有终端的界面示意图;
图2a为现有技术中的主题图标的生成方法的流程示意图;
图2b为现有技术中的主题图标的生成方法的效果示意图;
图3为本申请实施例所提出的主题图标的生成系统的结构示意图;
图4为图3中服务器的结构示意图;
图5为图3中终端的结构示意图;
图6为本申请实施例所提出的主题图标的生成系统的工作流程示意图;
图7为本申请实施例所提出的主题参考图标的一个示例的示意图;
图8为本申请实施例所提出的主题模板库的示意图;
图9为从主题参考图标中分割出参考标志图形的示意图;
图10为应用图标的一个示例的示意图;
图11为从应用图标中确定不透明区域的示意图;
图12为从不透明区域中分割出第一标志图形的示意图;
图13为对第一标志图形进行缩放,以生成第二标志图形的示意图;
图14为对第二标志图形进行颜色渐变处理的示意图;
图15为对颜色渐变处理后的第二标志图形进行投影处理的示意图;
图16为将第二标志图形与主题模板融合,以生成主题图标的示意图;
图17为本申请实施例所提出的一种主题图标的生成方法的流程示意图;
图18为从矢量图的应用图标中确定不透明区域的方法流程图;
图19为从非矢量图的应用图标中确定不透明区域的方法流程图;
图20为对第一标志图形的大小进行调整的流程示意图;
图21为根据参考标志图形对第一标志图形的大小进行调整的流程示意图;
图22为确定参考标志图形的颜色渐变情况的流程示意图;
图23为确定参考标志图形的投影情况的流程示意图;
图24为将第二标志图形与主题模板进行融合的流程示意图;
图25为根据图形复杂度将第二标志图形与主题模板融合的流程示意图;
图26为本申请实施例所提出的一种主题图标的生成装置的结构示意图;
图27为图26中主题图标的生成装置的第一种结构示意图;
图28为图26中主题图标的生成装置的第二种结构示意图;以及
图29为非临时性计算机可读存储介质的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
为了更加清楚地说明本申请实施例所提供的主题图标的生成方法,首先对现有的主题图标的生成方法进行说明。
图2a为现有技术中主题图标的生成方法的流程示意图。图2b为现有技术中主题图标的生成方法的效果示意图。
如图2a和图2b所示,现有技术中,由设计人员确定第一背景图层的相关参数,具体包括第一背景图层的颜色、形状、尺寸、透明度等参数,从而依据第一背景图层的参数生成第一背景图层。类似的,由设计人员确定第二背景图层的相关参数,从而依据第二背景图层的参数生成第二背景图层,先将第二背景图层叠加在第一背景图层之上,再将应用图标叠加在两个背景图层之上,生成主题图标。
如图2b所示,现有技术中,将应用图标直接叠加在两个背景图层之上,生成的主题图标存在明显的叠加痕迹,并且不同的主题图标虽然都使用了相同的两个背景图层,但是叠加在两个背景图层之上的应用图标不同,使得生成的主题图标的风格存在差异。
申请人对现有技术进行了仔细研究,发现现有技术中生成的主题图标之所以存在明显的叠加痕迹,是因为应用图标中的不透明区域与背景图层存在较大差别,使得将应用图标直接叠加在背景图层后,不透明区域与背景图层衔接处存在明显的叠加痕迹。
申请人认为,对于应用图标中的不透明区域,可以进一步地区分为图标背景和第一标志图形。具体来说,第一标志图形为应用图标中用于区别不同应用的标识部分,图标背景为用于衬托和美化第一标志图形的背景部分。因此,对于最终生成的主题图标,只需要对第一标志图形进行处理后,加以保留,用于区分不同的应用。
为了解决现有技术中,根据应用图标生成的主题图标的技术方案中,存在的主题图标存在明显的叠加痕迹,不同的主题图标之间风格存在差异的技术问题。本申请实施例提出了一种主题图标的生成方法,图3为本申请实施例所提出的主题图标的生成系统的结构示意图。
如图3所示,本申请实施例中的主题图标的生成系统包括至少一个服务器和至少一个终端,其中一个服务器可以与多个终端相连接,每个终端上可以安装有客户端,还可以安装有网卡,终端可以通过网卡向服务器发送数据传输请求,该数据传输请求可以是上传主题参考图标请求,还可以是接收主题图标请求。服务器在允许终端进行数据传输后,即与该终端进行数据传输,根据主题参考图标,生成主题图标。其中,该客户端可以为不同机构的客户端,也可以为同一机构的客户端。在使用该系统时,设计人员只需要为系统应用设计对应的主题图标,并将系统应用对应的主题图标作为主题参考图标,通过终端发送给服务器,由服务器根据主题参考图标,对服务器上存储的第三方应用图标进行处理,生成对应的主题图标,返回给终端,实现自动将应用图标转化为主题图标。
图4为图3中服务器的结构示意图。如图4所示,服务器,也称伺服器,是提供数据处理服务的设备。由于服务器需要响应服务请求,并进行处理,因此一般来说服务器应具备承担服务并且保障服务的能力。服务器的构成可以包括处理器、存储器、通信模块等,和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。主题图标的生成系统中的服务器的存储器中存储有计算机程序,该计算机程序能够被处理器执行,来实现下述方法实施例提供的方法。此外,该服务器还包括数据库,数据库中存储有第三方应用图标,存储器中存储的计算机程序在执行时能够将数据库中存储的第三方应用图标转化为对应的主题图标。该服务器的通信模块用于与终端进行数据传输,从终端接收主题参考图标,将生成的主题图标返回给终端。
图5为图3中终端的结构示意图。如图5所示,终端,可以包括一个或一个以上处理器和一个或一个以上的存储器,其中,该存储器中存储有指令,该指令由该处理器加载并执行以实现下述方法实施例提供的方法。当然,该终端还可以具有通信模块、输入单元、显示单元等部件,以便进行输入输出,该终端还可以包括其他用于实现设备功能的部件,在此不做赘述。主题图标的生成系统中的终端通过输入单元和显示单元与设计人员进行人机交互,将设计人员为系统应用设计的主题图标作为主题参考图标,通过通信模块发送给服务器,并在服务器生成第三方应用图标对应的主题图标后,通过通信模块接收主题图标,由显示单元进行显示。
下面详细说明,本申请实施例所提出的主题图标的生成系统的工作原理。图6为本申请实施例所提出的主题图标的生成系统的工作流程示意图。
如图6所示,当设计人员为系统应用设计完主题参考图标后,将主题参考图标和主题模板库通过终端一起传输给服务器。图7为本申请实施例所提出的主题参考图标的一个示例的示意图。如图7所示,设计人员设计的主题参考图标包括:参考标志图形、主题背景和投影。其中,参考标志图形能够让该主题参考图标区别于其他图标,并帮助用户识别该主题参考图标对应的应用,因此不同应用对应的参考标志图形不同。比如说,图7中的参考标志图形字母B就用于与应用B相对应。主题背景是参考标志图形的背景,让整个主题参考图标的风格,与设计人员设计的主题保持一致。此外,图7中的主题参考图标中,参考标志图形还可以具有投影效果,以增强参考标志图形的立体感,参考标志图形还可以具有颜色渐变效果,以增强主题参考图标的美观度。
图8为本申请实施例所提出的主题模板库的示意图。如图8所示,主题模板库中包括多个主题模板,不同的主题模板在显示风格上整体相近,但又存在一定区别。
如图6所示,在服务器接收到终端发送的主题参考图标后,对主题参考图标进行图像分割处理,从中分割出参考标志图形。图9为从主题参考图标中分割出参考标志图形的示意图。如图9所示,将主题参考图标中的参考标志图形周围的主题背景和投影全部去除后,即可得到参考标志图形。
基于前述说明,可以知道,服务器上设有数据库,数据库中存储有大量的应用图标和对应的应用信息。具体来说,每当新的应用发布后,服务器即可从应用发布平台上获取应用图标和对应的应用信息。图10为应用图标的一个示例的示意图。如图10所示,应用图标具有透明区域和不透明区域,其中,不透明区域又包括应用图标的原 始背景和第一标志图形。其中,第一标志图形能够让该应用图标区别于其他图标,并帮助用户识别该应用图标对应的应用,因此不同应用对应的第一标志图形不同。比如说,图10中的第一标志图形字母A就用于与应用A相对应。可以理解,应用图标的原始背景是第一标志图形的背景。
为了让图10中的应用图标的显示风格与图7中的主题参考图标一致,如图6所示,需要将应用图标的不透明区域和原始背景去除,保留第一标志图形,对第一标志图形进行处理,使其显示风格与主题参考图标中的参考标志图形的显示风格一致。再为其添加主题模板作为背景,生成主题图标。
图11为从应用图标中确定不透明区域的示意图。如图11所示,服务器从数据库中获取应用图标,对应用图标进行图像分割处理,确定应用图标的透明区域和不透明区域,并将透明区域进行去除。
具体来说,应用图标根据图像格式可以分为矢量图的应用图标和非矢量图的应用图标。
对于矢量图的应用图标,矢量图中每个像素点通过透明度通道来表示该像素点的透明度,因此可以直接提取透明度通道来确定该像素点是否属于不透明区域。对于应用图标来说,透明区域围绕着不透明区域,也就是说不透明区域为相互连通的一个整体,因此可以通过图像连通区域检测的方法,确定不透明区域。
应当理解,对于矢量图的应用图标,具有透明度通道这一参数,因此能够直接提取应用图标的透明度通道,进而确定应用图标中的透明区域和不透明区域。而对于非矢量图的应用图标,则需要使用其他的方式确定。
对于非矢量图的应用图标,无法直接根据透明度通道来获取像素点的透明度,因此需要对应用图标进行二值化处理,以确定不透明区域。其中,二值化处理是指将图像上的像素点的灰度值设置为0或255。
需要特别说明的是,每一张图像都由阵列排布的像素点构成,每个像素点的灰度值与亮度相关,灰度值的范围为0到255,灰度值越大,亮度越高,灰度值越小,亮度越低。因此,不透明区域对应的灰度值远小于透明区域对应的灰度值。
为了将不透明区域与透明区域加以区分,对应用图标中的像素点进行二值化处理,即选取一个灰度阈值,对于灰度值小于灰度阈值的像素点,将该像素点的灰度值设为0,对于灰度值大于灰度阈值的像素点,将该像素点的灰度值设为255。然后再将灰度值为0的像素点作为不透明区域的像素点,从而确定不透明区域。
图12为从不透明区域中分割出第一标志图形的示意图。如图12所示,在确定了不透明区域后,需要进一步对不透明区域进行图像分割处理,将第一标志图形和原始背景进行分割,以生成第一标志图形。其中,对不透明区域进行图像分割处理可以采用机器学习的方法或者深度学习的方法。
图13为对第一标志图形进行缩放,以生成第二标志图形的示意图。如图13所示,根据参考标志图形和第一标志图形的大小比例,计算每个第一标志图形对应的缩放比例,并对每个第一标志图形进行缩放,以生成对应的第二标志图形,使得第二标志图形与参考标志图形的大小相同。
可以理解,从不同的应用图标中分割出的第一标志图形的大小存在差异,为了让 生成的主题图标的风格保持一致,需要对第一标志图形的大小进行调整,以统一尺寸。当然,如果第一标志图形的大小相对参考标志图形的大小满足要求,也可以不必须缩放比例。
具体来说,一种可能的实现方式是,比较第一标志图形和参考标志图形的大小。根据比较结果,使用插值算法对第一标志图形进行缩放,以使第二标志图形的大小与参考标志图形的大小相同。
需要说明的是,由于第一标志图形的高宽比和参考标志图形的高宽比存在区别,在计算第一标志图形的缩放比例时,可以先分别计算参考标志图形和第一标志图形的宽度比值和高度比值,再将其中的较大值作为缩放比例,或者将其中的较小值作为缩放比例。
在选择插值算法时,可以选择最近邻插值法、双线性插值法、三次内插法等图像差值方法中的任意一种。
其中,最近邻插值算法是将原像素点最邻近像素点的灰度值赋给原像素点,双线性插值法是线性差值算法的扩展,在两个方向上分别进行一次线性差值,三次内插法是将目标像素点周围16个像素点的灰度值进行加权内插,得到目标像素点的灰度值。
图14为对第二标志图形进行颜色渐变处理的示意图。图15为对颜色渐变处理后的第二标志图形进行投影处理的示意图。
需要说明的是,为了确定参考标志图形是否存在颜色渐变,一种可能的实现方式是,可以通过分析参考标志图形的颜色数量和色相分布来进行判断。
具体来说,可以先生成参考标志图形对应的颜色直方图,其中,颜色直方图将参考标志图形中像素点所具有的颜色进行统计,以颜色直方图的形式进行展示,颜色直方图可以直观地展示参考标志图形对应的颜色数量和色相分布。
可以理解,若参考标志图形存在颜色渐变,则形成颜色渐变的每一种颜色都会出现在颜色直方图中,颜色数量较大,并且不同颜色之间的色相差较小。
在颜色数量小于或者等于第一预设阈值的情况下,确定参考标志图形为单色,不存在颜色渐变。在颜色数量大于第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定参考标志图形,存在颜色渐变。在颜色数量大于第一预设阈值,且任意两种颜色之间的色相差大于或者等于第二预设阈值的情况下,确定参考标志图形包括多种颜色,且不存在颜色渐变。
为了确定参考标志图形是否存在投影,一种可能的实现方式是,可以通过分析参考标志图形的边缘和主题参考图标中的直线来进行判断。具体来说,可以先对参考标志图形进行边缘检测,以确定参考标志图形的边缘,再对主题参考图标进行直线检测,以获取主题参考图标中的直线。对边缘和直线进行比对,根据比对结果,确定参考标志图形的投影情况。
需要说明的是,由于投影与参考标志图形之间存在明显的边界,不连通,在对参考标志图形进行边缘检测时,将参考标志图形的投影排除在外,而在对主题参考图标进行直线检测时,能够将投影的直线一并检测出来。若主题参考图标的直线中存在某条直线不属于参考标志图形的边缘,那么该条直线就属于参考标志图形的投影,就可以确定参考标志图形存在投影。
可以理解,在所有直线均属于参考标志图形的边缘的情况下,确定参考标志图形没有投影。在存在直线不属于参考标志图形的边缘的情况下,确定参考标志图形存在投影。
进一步地,在确定参考标志图形存在投影之后,还包括:根据不属于边缘的直线,计算投影的长度和方向。
具体地,可以检测投影的长度和参考标志图形的宽度或者高度,计算投影的比例。可以检测投影与参考标志图形之间形成的夹角,计算投影的方向。
可以理解,在确定了参考标志图形的颜色渐变情况和参考标志图形的投影情况之后,需要对第二标志图形进行对应的处理,使得处理后的第二标志图形存在颜色渐变和/或投影。
具体来说,根据第二标志图形的宽度或者高度,以及投影的比例,计算第二标志图形的投影的长度,结合投影的方向,生成第二标志图形的投影。
应当理解,由于图7中的主题参考图标存在投影,且参考标志图形存在颜色渐变。相应地,需要对第二标志图形进行颜色渐变处理和投影处理。如图14所示,对第二标志图形进行颜色渐变处理后,使得第二标志图形存在颜色渐变,并且颜色与图7中的主体参考图标中的参考标志图形一致。如图15所示,对颜色渐变处理后的第二标志图形进行投影处理后,使得第二标志图形存在颜色渐变和投影,并且投影与图7中的主体参考图标中的投影一致。
可以理解,经过颜色渐变处理和投影处理后的第二标志图形的显示风格和图7中的主题参考图标的显示风格十分接近,还需要选择主体模板作为主题背景,即可生成与主题参考图标的显示风格一致的主题图标。
图16为将第二标志图形与主题模板融合,以生成主题图标的示意图。如图16所示,根据数据库中存储的应用信息,对每个第二标志图形进行匹配,从主题模板库中确定对应的主题模板,进而将第二标志图形与主题模板融合,生成主题图标。将生成的主题图标返回给设计人员的终端,实现了主题图标的生成。
其中,应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种。举例来说,应用类别包括商务办公、运动健康、辅助工具、休闲娱乐等,图标背景颜色为应用图标中不透明区域的颜色,应用所属公司包括百度、阿里巴巴、腾讯、今日头条等。
需要说明的是,主题模板存储在主题模板库中,主题模板库可以由用户从终端输入,还可以根据主题参考图标生成。
为了从主题模板库中匹配合适的主题模板,第一种可能的实现方式是,按照应用类别对应用图标对应的第二标志图形进行分类,同一种应用类别下的第二标志图形使用相同的主题模板。
第二种可能的实现方式是,按照图标背景颜色对应用图标对应的第二标志图形进行主题模板的匹配,从主题模板库中选择与图标背景颜色最为接近的主题模板。
第三种可能的实现方式是,按照应用所属公司对应用图标对应的第二标志图形进行分类,对应于同一家公司的第二标志图形使用相同的主题模板。
在将第二标志图形与主题模板进行融合时,可以采用不同的融合方式,具体可以 根据第二标志图形的图形复杂度来选择不同的融合方式。
可以理解,对于图形复杂度较低的第二标志图形,将第二标志图形与主题模板直接叠加,不会有明显的叠加痕迹,但是对于图形复杂度较高的第二标志图形,将第二标志图形与主题模板直接叠加,会存在明显的叠加痕迹。
因此,为了提升生成的主题图标的视觉效果,可以根据图形复杂度将第二标志图形与主题模板融合。首先检测第二标志图形的图形复杂度,其中,图形复杂度可以通过图形的周长和面积的比值来衡量,周长和面积之比越大,图形复杂度越低,周长和面积之比越低,图形复杂度越高。
在图形复杂度小于第三预设阈值的情况下,将第二标志图形叠加在主题模板上,以生成主题图标。在图形复杂度小于第三预设阈值的情况下,将第二标志图形与主题模板直接叠加,不会有明显的叠加痕迹,为了简化整个主题图标的生成方法,可以将第二标志图形叠加在主题模板上。
在图形复杂度大于或者等于第三预设阈值的情况下,将第二标志图形与主题模板进行泊松融合,以生成主题图标。在图形复杂度大于或者等于第三预设阈值的情况下,将第二标志图形与主题模板进行泊松融合,可以减少第二标志图形与主题模板之间的叠加痕迹。
需要说明的是,上述的服务器还能够批量生成多个主题图标,具体来说,从数据库中批量获取多个应用图标,批量从应用图标中分割出对应的第一标志图形,批量计算每个第一标志图形对应的缩放比例,并对每个第一标志图形进行批量缩放,以生成对应的第二标志图形。在对参考标志图形进行颜色渐变检测和投影检测后,对多个第二标志图形批量进行相应的颜色渐变处理和投影处理。根据应用图标数据库中存储的应用信息,对每个第二标志图形进行批量匹配,确定对应的主题模板,进而批量将每个第二标志图形与主题模板融合,生成主题图标。将生成的多个主题图标批量返回给设计人员的终端,实现了主题图标的批量生成。
基于上述对主题图标的生成系统的说明,可以知道,主题图标的生成系统中,主要由服务器从终端接收主题参考图标和主题模板库,对应用图标进行处理,生成对应的主题图标,并将主题图标返回给终端。
换句话说,在整个主题图标的生成系统中,终端主要用于与设计人员进行交互,服务器是主题图标的生成方法的执行主体。
基于上述说明,可以知道,本申请实施例提出了一种主题图标的生成方法,图17为本申请实施例所提出的一种主题图标的生成方法的流程示意图。如图17所示,该方法包括:
步骤S101,获取应用图标。
步骤S102,从应用图标中分割出第一标志图形。
对于矢量图的应用图标,一种可能的实现方式是,图18为从矢量图的应用图标中确定不透明区域的方法流程图,该方法包括:
步骤S11,提取应用图标的透明度通道。
步骤S12,使用图像连通区域检测方法,确定不透明区域。
步骤S13,对不透明区域进行图像分割处理,以生成第一标志图形。
对于非矢量图的应用图标,无法直接根据透明度通道来获取像素点的透明度,一种可能的实现方式是,图19为从非矢量图的应用图标中确定不透明区域的方法流程图,该方法包括:
步骤S21,对应用图标进行二值化处理,以确定不透明区域。
步骤S22,对不透明区域进行图像分割处理,以生成第一标志图形。
步骤S103,对第一标志图形的大小进行调整,以生成第二标志图形。
步骤S104,将第二标志图形与主题模板融合,以生成主题图标。
综上所述,本申请实施例所提供的主题图标的生成方法,获取应用图标。其中,应用图标包括透明区域和不透明区域,不透明区域包括图标背景和第一标志图形。从应用图标中分割出第一标志图形,对第一标志图形的大小进行调整,以生成第二标志图形。将第二标志图形与主题模板融合,以生成主题图标。由此,实现了从应用图标的不透明区域中分割出第一标志图形,将第一标志图形调整大小后得到的第二标志图形,与主题模板进行融合,将应用图标转化为与主题风格一致的主题图标,能够自动将应用图标转化为主题图标,并且生成的主题图标不存在叠加痕迹。
为了更加清楚地说明本申请实施例是如何对第一标志图形的大小进行调整的,下面对步骤S103进行详细说明,图20为对第一标志图形的大小进行调整的流程示意图,基于图17所示的方法流程,如图20所示,步骤S103,对第一标志图形的大小进行调整,以生成第二标志图形,包括:
步骤S201,获取主题参考图标。
步骤S202,从主题参考图标中分割出参考标志图形。
步骤S203,根据参考标志图形的大小,对第一标志图形的大小进行调整。
为了对第一标志图形的大小进行调整,一种可能的实现方式是,图21为根据参考标志图形对第一标志图形的大小进行调整的流程示意图,如图21所示,步骤S203,根据参考标志图形的大小,对第一标志图形的大小进行调整,包括:
步骤S31,比较第一标志图形和参考标志图形的大小。
步骤S32,根据比较结果,使用插值算法对第一标志图形进行缩放,以使第二标志图形的大小与参考标志图形的大小相同。
此外,为了增强主题图标的美观,设计人员在对系统应用设计对应的主题图标时,将主题图标设计成渐变颜色的样式,对于这种情况,为了让主题对应的整个界面的显示风格保持一致,一种可能的实现方式是,图22为确定参考标志图形的颜色渐变情况的流程示意图,如图22所示,基于图21所示的流程,在步骤S32,根据比较结果,使用插值算法对第一标志图形进行缩放,以使第二标志图形的大小与参考标志图形的大小相同之后,还包括:
步骤S33,生成参考标志图形对应的颜色直方图。
步骤S34,根据颜色直方图中的颜色数量和色相分布,确定参考标志图形的颜色渐变情况。
此外,为了增强主题图标的美观,设计人员在对系统应用设计对应的主题图标时,将主题图标设计成具有投影的样式,对于这种情况,为了让主题对应的整个界面的显示风格保持一致,一种可能的实现方式是,图23为确定参考标志图形的投影情况的流 程示意图,如图23所示,基于图21所示的流程,在步骤S32,根据比较结果,使用插值算法对第一标志图形进行缩放,以使第二标志图形的大小与参考标志图形的大小相同之后,还包括:
步骤S35,对参考标志图形进行边缘检测,以确定参考标志图形的边缘。
步骤S36,对主题参考图标进行直线检测,以获取主题参考图标中的直线。
步骤S37,对边缘和直线进行比对。
步骤S38,根据比对结果,确定参考标志图形的投影情况。
此外,在步骤S104,将第二标志图形与主题模板融合,以生成主题图标之前,还包括:根据参考标志图形的颜色渐变情况和参考标志图形的投影情况,对第二标志图形进行颜色渐变处理和投影处理。
从而,实现了根据参考标志图形的大小,对第一标志图形的大小进行调整,以使生成的第二标志图形的大小与参考标志图形相同,进而使得生成的主题图标的风格保持一致。
为了更加清楚地说明,本申请实施例所提出的主题图标的生成方法是如何让不同的第二标志图形与不同的主题模板进行融合的,图24为将第二标志图形与主题模板进行融合的流程示意图,如图24所示,基于图17所示的方法流程,步骤S104,将第二标志图形与主题模板融合,以生成主题图标,包括:
步骤S301,获取应用图标对应的应用信息。
步骤S302,根据应用信息从主题模板库中匹配对应的主题模板。
步骤S303,将第二标志图形与主题模板融合,以生成主题图标。
为了提升生成的主题图标的视觉效果,一种可能的实现方式是,图25为根据图形复杂度将第二标志图形与主题模板融合的流程示意图,如图25所示,基于图24所示的流程,步骤S303,将第二标志图形与主题模板融合,以生成主题图标,包括:
步骤S41,检测第二标志图形的图形复杂度。
步骤S42,在图形复杂度小于第三预设阈值的情况下,将第二标志图形叠加在主题模板上,以生成主题图标。
步骤S43,在图形复杂度大于或者等于第三预设阈值的情况下,将第二标志图形与主题模板进行泊松融合,以生成主题图标。
从而,实现了根据应用图标对应的应用信息,匹配第二标志图形对应的主题模板,进而生成主题图标。
为了实现上述实施例,本申请实施例还提出了一种主题图标的生成装置,图26为本申请实施例所提出的一种主题图标的生成装置的结构示意图。如图26所示,该装置包括:获取模块410,分割模块420,调整模块430,融合模块440。
获取模块410,用于获取应用图标。
其中,应用图标包括透明区域和不透明区域,不透明区域包括图标背景和第一标志图形。
分割模块420,用于从应用图标中分割出第一标志图形。
调整模块430,用于对第一标志图形的大小进行调整,以生成第二标志图形。
融合模块440,用于将第二标志图形与主题模板融合,以生成主题图标。
进一步地,为了从应用图标中分割出第一标志图形,一种可能的实现方式是,分割模块420,包括:第一处理子模块421,用于对应用图标进行二值化处理,以确定不透明区域。第二处理子模块422,用于对不透明区域进行图像分割处理,以生成第一标志图形。
需要说明的是,前述对主题图标的生成方法实施例的解释说明,也适用于本申请实施例的主题图标的生成装置,此处不再赘述。
综上所述,本申请实施例所提供的主题图标的生成装置,在生成主题图标时,获取应用图标。其中,应用图标包括透明区域和不透明区域,不透明区域包括图标背景和第一标志图形。从应用图标中分割出第一标志图形,对第一标志图形的大小进行调整,以生成第二标志图形。将第二标志图形与主题模板融合,以生成主题图标。由此,实现了从应用图标的不透明区域中分割出第一标志图形,将第一标志图形调整大小后得到的第二标志图形,与主题模板进行融合,将应用图标转化为与主题风格一致的主题图标,能够自动将应用图标转化为主题图标,并且生成的主题图标不存在叠加痕迹。
图27为图26中主题图标的生成装置的第一种结构示意图。如图27所示,基于图26所示的装置结构,调整模块430,包括:第一获取子模块431,分割子模块432,调整子模块433。
第一获取子模块431,用于获取主题参考图标。
分割子模块432,用于从主题参考图标中分割出参考标志图形。
调整子模块433,用于根据参考标志图形的大小,对第一标志图形的大小进行调整。
进一步地,为了对第一标志图形的大小进行调整,一种可能的实现方式是,调整子模块433,包括:比较单元4331,用于比较第一标志图形和参考标志图形的大小。缩放单元4332,用于根据比较结果,使用插值算法对第一标志图形进行缩放,以使第二标志图形的大小与参考标志图形的大小相同。
进一步地,为了让主题对应的整个界面的显示风格保持一致,一种可能的实现方式是,调整子模块433,还包括:生成单元4333,用于生成参考标志图形对应的颜色直方图。第一确定单元4334,用于根据颜色直方图中的颜色数量和色相分布,确定参考标志图形的颜色渐变情况。
进一步地,为了确定参考标志图形是否存在颜色渐变,一种可能的实现方式是,第一确定单元4334,包括:第一确定子单元4334a,用于在颜色数量小于或者等于第一预设阈值的情况下,确定参考标志图形为单色,不存在颜色渐变。第二确定子单元4334b,用于在颜色数量大于第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定参考标志图形,存在颜色渐变。第三确定子单元4334c,用于在颜色数量大于第一预设阈值,且任意两种颜色之间的色相差大于或者等于第二预设阈值的情况下,确定参考标志图形包括多种颜色,且不存在颜色渐变。
进一步地,为了让主题对应的整个界面的显示风格保持一致,一种可能的实现方式是,调整子模块433,还包括:第一检测单元4335,用于对参考标志图形进行边缘检测,以确定参考标志图形的边缘。第二检测单元4336,用于对参考标志图形进行直线检测,以获取参考标志图形中的直线。比对单元4337,用于对边缘和直线进行比对。 第二确定单元4338,用于根据比对结果,确定参考标志图形的投影情况。
进一步地,为了确定参考标志图形是否存在投影,一种可能的实现方式是,第二确定单元4338,包括:第四确定子单元4338a,用于在所有直线均为边缘的一部分的情况下,确定参考标志图形没有投影。第五确定子单元4338b,用于在存在直线不为边缘的一部分的情况下,确定参考标志图形存在投影。
进一步地,为了确定第二标志图形的投影参数,一种可能的实现方式是,第二确定单元4338,还包括:计算子单元4338c,用于根据不为边缘的一部分的直线,计算投影的比例和方向。
进一步地,为了对第二标志图形进行颜色渐变处理和/或投影处理,该装置还包括:处理模块450,用于根据参考标志图形的颜色渐变情况和参考标志图形的投影情况,对第二标志图形进行颜色渐变处理和投影处理。
需要说明的是,前述对主题图标的生成方法实施例的解释说明,也适用于本申请实施例的主题图标的生成装置,此处不再赘述。
从而,实现了根据参考标志图形的大小,对第一标志图形的大小进行调整,以使生成的第二标志图形的大小与参考标志图形相同,进而使得生成的主题图标的风格保持一致。
图28为图26中主题图标的生成装置的第二种结构示意图。如图28所示,基于图26所示的装置结构,融合模块440,包括:第二获取子模块441,匹配子模块442,融合子模块443。
第二获取子模块441,用于获取应用图标对应的应用信息。
其中,应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种。
匹配子模块442,用于根据应用信息从主题模板库中匹配对应的主题模板。
融合子模块443,用于将第二标志图形与主题模板融合,以生成主题图标。
进一步地,为了提升生成的主题图标的视觉效果,一种可能的实现方式是,融合子模块443,包括:第三检测单元4431,用于检测第二标志图形的图形复杂度。叠加单元4432,用于在图形复杂度小于第三预设阈值的情况下,将第二标志图形叠加在主题模板上,以生成主题图标。融合单元4433,用于在图形复杂度大于或者等于第三预设阈值的情况下,将第二标志图形与主题模板进行泊松融合,以生成主题图标。
从而,实现了根据应用图标对应的应用信息,匹配第二标志图形对应的主题模板,进而生成主题图标。
为了实现上述实施例,本申请实施例还提出了一种计算机设备,图4为计算机设备的结构示意图。当计算机设备中的指令处理器执行时,实现前述实施例中的主题图标的生成方法。
为了实现上述实施例,本申请实施例还提出了一种非临时性计算机可读存储介质,图29为非临时性计算机可读存储介质的结构示意图,该非临时性计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行前述实施例中的主题图标的生成方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B, 可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (26)

  1. 一种主题图标的生成方法,其特征在于,包括:
    获取应用图标;其中,所述应用图标包括透明区域和不透明区域,所述不透明区域包括图标背景和第一标志图形;
    从所述应用图标的不透明区域中分割出第一标志图形;
    对所述第一标志图形的大小进行调整,以生成第二标志图形;
    将所述第二标志图形与主题模板融合,以生成主题图标。
  2. 根据权利要求1所述的方法,其特征在于,所述从所述应用图标的不透明区域中分割出第一标志图形,包括:
    对所述应用图标进行二值化处理,以确定所述不透明区域;
    对所述不透明区域进行图像分割处理,以生成所述第一标志图形。
  3. 根据权利要求1所述的方法,其特征在于,所述对所述第一标志图形的大小进行调整,以生成第二标志图形,包括:
    获取主题参考图标;
    从所述主题参考图标中分割出参考标志图形;
    根据所述参考标志图形的大小,对所述第一标志图形的大小进行调整。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述参考标志图形的大小,对所述第一标志图形的大小进行调整,包括:
    比较所述第一标志图形和所述参考标志图形的大小;
    根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同。
  5. 根据权利要求4所述的方法,其特征在于,在所述根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同之后,还包括:
    生成所述参考标志图形对应的颜色直方图;
    根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况,包括:
    在所述颜色数量小于或者等于第一预设阈值的情况下,确定所述参考标志图形为单色,不存在颜色渐变;在所述颜色数量大于所述第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定所述参考标志图形,存在颜色渐变;或者
    在所述颜色数量大于所述第一预设阈值,且任意两种颜色之间的色相差大于或者等于所述第二预设阈值的情况下,确定所述参考标志图形包括多种颜色,且不存在颜色渐变。
  7. 根据权利要求6所述的方法,其特征在于,在所述根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同之后,还包括:
    对所述参考标志图形进行边缘检测,以确定所述参考标志图形的边缘;
    对所述主题参考图标进行直线检测,以获取所述主题参考图标中的直线;
    对所述边缘和所述直线进行比对;
    根据比对结果,确定所述参考标志图形的投影情况。
  8. 根据权利要求7所述的方法,其特征在于,所述根据比对结果,确定所述参考标志图形的投影情况,包括:
    在所有所述直线均为所述边缘的一部分的情况下,确定所述参考标志图形没有投影;或者
    在存在所述直线不为所述边缘的一部分的情况下,确定所述参考标志图形存在投影。
  9. 根据权利要求8所述的方法,其特征在于,在所述确定所述参考标志图形存在投影之后,还包括:
    根据不为所述边缘的一部分的所述直线,计算所述投影的比例和方向。
  10. 根据权利要求9所述的方法,其特征在于,在将所述第二标志图形与主题模板融合,以生成主题图标之前,还包括:
    根据所述参考标志图形的颜色渐变情况和所述参考标志图形的投影情况,对所述第二标志图形进行颜色渐变处理和投影处理。
  11. 根据权利要求1所述的方法,其特征在于,将所述第二标志图形与主题模板融合,以生成主题图标,包括:
    获取所述应用图标对应的应用信息;其中,所述应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种;
    根据所述应用信息从主题模板库中匹配对应的所述主题模板;
    将所述第二标志图形与主题模板融合,以生成所述主题图标。
  12. 根据权利要求11所述的方法,其特征在于,所述将所述第二标志图形与主题模板融合,以生成主题图标,还包括:
    检测所述第二标志图形的图形复杂度;
    在所述图形复杂度小于第三预设阈值的情况下,将所述第二标志图形叠加在所述主题模板上,以生成所述主题图标;或者
    在所述图形复杂度大于或者等于所述第三预设阈值的情况下,将所述第二标志图形与所述主题模板进行泊松融合,以生成所述主题图标。
  13. 一种主题图标的生成装置,其特征在于,包括:
    获取模块,用于获取应用图标;其中,所述应用图标包括透明区域和不透明区域,所述不透明区域包括图标背景和第一标志图形;
    分割模块,用于从所述应用图标的不透明区域中分割出第一标志图形;
    调整模块,用于对所述第一标志图形的大小进行调整,以生成第二标志图形;
    融合模块,用于将所述第二标志图形与主题模板融合,以生成主题图标。
  14. 根据权利要求13所述的装置,其特征在于,所述分割模块,包括:
    第一处理子模块,用于对所述应用图标进行二值化处理,以确定所述不透明区域;
    第二处理子模块,用于对所述不透明区域进行图像分割处理,以生成所述第一标 志图形。
  15. 根据权利要求13所述的装置,其特征在于,所述调整模块,包括:
    第一获取子模块,用于获取主题参考图标;
    分割子模块,用于从所述主题参考图标中分割出参考标志图形;
    调整子模块,用于根据所述参考标志图形的大小,对所述第一标志图形的大小进行调整。
  16. 根据权利要求15所述的装置,其特征在于,所述调整子模块,包括:
    比较单元,用于比较所述第一标志图形和所述参考标志图形的大小;
    缩放单元,用于根据比较结果,使用插值算法对所述第一标志图形进行缩放,以使所述第二标志图形的大小与所述参考标志图形的大小相同。
  17. 根据权利要求16所述的装置,其特征在于,所述调整子模块,还包括:
    生成单元,用于生成所述参考标志图形对应的颜色直方图;
    第一确定单元,用于根据所述颜色直方图中的颜色数量和色相分布,确定所述参考标志图形的颜色渐变情况。
  18. 根据权利要求17所述的装置,其特征在于,所述第一确定单元,包括:
    第一确定子单元,用于在所述颜色数量小于或者等于第一预设阈值的情况下,确定所述参考标志图形为单色,不存在颜色渐变;
    第二确定子单元,用于在所述颜色数量大于所述第一预设阈值,且存在两种颜色之间的色相差小于第二预设阈值的情况下,确定所述参考标志图形,存在颜色渐变;
    第三确定子单元,用于在所述颜色数量大于所述第一预设阈值,且任意两种颜色之间的色相差大于或者等于所述第二预设阈值的情况下,确定所述参考标志图形包括多种颜色,且不存在颜色渐变。
  19. 根据权利要求18所述的装置,其特征在于,所述调整子模块,还包括:
    第一检测单元,用于对所述参考标志图形进行边缘检测,以确定所述参考标志图形的边缘;
    第二检测单元,用于对所述主题参考图标进行直线检测,以获取所述主题参考图标中的直线;
    比对单元,用于对所述边缘和所述直线进行比对;
    第二确定单元,用于根据比对结果,确定所述参考标志图形的投影情况。
  20. 根据权利要求19所述的装置,其特征在于,所述第二确定单元,包括:
    第四确定子单元,用于在所有所述直线均为所述边缘的一部分的情况下,确定所述参考标志图形没有投影;
    第五确定子单元,用于在存在所述直线不为所述边缘的一部分的情况下,确定所述参考标志图形存在投影。
  21. 根据权利要求20所述的装置,其特征在于,所述第二确定单元,还包括:
    计算子单元,用于根据不为所述边缘的一部分的所述直线,计算所述投影的比例和方向。
  22. 根据权利要求21所述的装置,其特征在于,所述装置还包括:
    处理模块,用于根据所述参考标志图形的颜色渐变情况和所述参考标志图形的投 影情况,对所述第二标志图形进行颜色渐变处理和投影处理。
  23. 根据权利要求13所述的装置,其特征在于,所述融合模块,包括:
    第二获取子模块,用于获取所述应用图标对应的应用信息;其中,所述应用信息包括应用类别,图标背景颜色,应用所属公司中的至少一种;
    匹配子模块,用于根据所述应用信息从主题模板库中匹配对应的所述主题模板;
    融合子模块,用于将所述第二标志图形与主题模板融合,以生成所述主题图标。
  24. 根据权利要求23所述的装置,其特征在于,所述融合子模块,包括:
    第三检测单元,用于检测所述第二标志图形的图形复杂度;
    叠加单元,用于在所述图形复杂度小于第三预设阈值的情况下,将所述第二标志图形叠加在所述主题模板上,以生成所述主题图标;
    融合单元,用于在所述图形复杂度大于或者等于所述第三预设阈值的情况下,将所述第二标志图形与所述主题模板进行泊松融合,以生成所述主题图标。
  25. 一种计算机设备,包括存储器和处理器,其特征在于,当所述存储器中的指令被所述处理器执行时,使得所述计算机设备实现如权利要求1-12中任一项所述的主题图标的生成方法。
  26. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1-12中任一项所述的主题图标的生成方法。
PCT/CN2020/128272 2019-12-24 2020-11-12 主题图标的生成方法及其装置、计算机设备 WO2021129213A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20905251.3A EP4068214A4 (en) 2019-12-24 2020-11-12 THEME SYMBOL GENERATION METHOD AND APPARATUS THEREOF AND COMPUTER DEVICE
US17/788,463 US20230045077A1 (en) 2019-12-24 2020-11-12 Theme Icon Generation Method and Apparatus, and Computer Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911348172.7 2019-12-24
CN201911348172.7A CN113034631B (zh) 2019-12-24 主题图标的生成方法及其装置、计算机设备

Publications (1)

Publication Number Publication Date
WO2021129213A1 true WO2021129213A1 (zh) 2021-07-01

Family

ID=76451821

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128272 WO2021129213A1 (zh) 2019-12-24 2020-11-12 主题图标的生成方法及其装置、计算机设备

Country Status (3)

Country Link
US (1) US20230045077A1 (zh)
EP (1) EP4068214A4 (zh)
WO (1) WO2021129213A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065605A1 (en) * 2000-11-29 2002-05-30 Alpine Electronics, Inc.. Method of displaying poi icons for navigation apparatus
WO2011150870A2 (zh) * 2011-06-09 2011-12-08 华为终端有限公司 一种主题显示方法以及相关装置
CN104035665A (zh) * 2014-06-13 2014-09-10 Tcl集团股份有限公司 一种对桌面图标进行色彩处理的方法和装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124700A1 (en) * 2005-11-29 2007-05-31 Nokia Corporation Method of generating icons for content items
US9354766B2 (en) * 2006-01-27 2016-05-31 Cimpress Schweiz Gmbh Automated composite image design
JP5104709B2 (ja) * 2008-10-10 2012-12-19 ソニー株式会社 情報処理装置、プログラム、および情報処理方法
CN106775688A (zh) * 2016-12-05 2017-05-31 广州视源电子科技股份有限公司 应用图标的生成方法和装置
CN108037878A (zh) * 2017-12-28 2018-05-15 上海传英信息技术有限公司 一种基于智能终端的控制方法及控制系统
WO2019204658A1 (en) * 2018-04-18 2019-10-24 Sawa Labs, Inc. Graphic design system for dynamic content generation
CN109831584A (zh) * 2019-01-30 2019-05-31 努比亚技术有限公司 应用图标适配处理方法、存储介质和移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065605A1 (en) * 2000-11-29 2002-05-30 Alpine Electronics, Inc.. Method of displaying poi icons for navigation apparatus
WO2011150870A2 (zh) * 2011-06-09 2011-12-08 华为终端有限公司 一种主题显示方法以及相关装置
CN104035665A (zh) * 2014-06-13 2014-09-10 Tcl集团股份有限公司 一种对桌面图标进行色彩处理的方法和装置

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "How to extract the icon How to extract the icon from the application", 27 April 2013 (2013-04-27), pages 1 - 4, XP055824339, Retrieved from the Internet <URL:https://www.jb51.net/softjc/80219.html> *
See also references of EP4068214A4

Also Published As

Publication number Publication date
EP4068214A1 (en) 2022-10-05
CN113034631A (zh) 2021-06-25
EP4068214A4 (en) 2023-06-07
US20230045077A1 (en) 2023-02-09

Similar Documents

Publication Publication Date Title
US11302053B2 (en) Determining image handle locations
US10593023B2 (en) Deep-learning-based automatic skin retouching
US9177391B1 (en) Image-based color palette generation
US9245350B1 (en) Image-based color palette generation
US8013870B2 (en) Image masks generated from local color models
US8508546B2 (en) Image mask generation
US20160335784A1 (en) Image-based color palette generation
US10937200B2 (en) Object-based color adjustment
US20110206282A1 (en) Device, Method, and Program for Image Processing
US11216998B2 (en) Jointly editing related objects in a digital image
CN113301409B (zh) 视频合成方法、装置、电子设备和可读存储介质
US10540795B2 (en) Image combination apparatus, image combination method, image combination program, and recording medium storing image combination program
US12008734B2 (en) Generating image masks from digital images via color density estimation and deep learning models
WO2021129213A1 (zh) 主题图标的生成方法及其装置、计算机设备
KR101651842B1 (ko) 전자문서 레이아웃 생성 방법 및 장치
CN113034631B (zh) 主题图标的生成方法及其装置、计算机设备
CN113344838A (zh) 图像融合方法、装置、电子设备及可读存储介质
JP5672168B2 (ja) 画像処理装置、画像処理方法及びプログラム
Chamaret et al. Harmony-guided image editing
JP6512763B2 (ja) 情報処理装置、情報処理方法、プログラム
US20230244368A1 (en) Generating and Applying Editing Presets
US20230290005A1 (en) Method and system for visualizing dyed hair image
JP6572180B2 (ja) 画像処理方法、画像処理装置、及びプログラム
JP2024037556A (ja) 情報処理装置及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20905251

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020905251

Country of ref document: EP

Effective date: 20220627

NENP Non-entry into the national phase

Ref country code: DE