CN113608642A - Icon replacement method, device and equipment and readable storage medium - Google Patents

Icon replacement method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN113608642A
CN113608642A CN202110908677.5A CN202110908677A CN113608642A CN 113608642 A CN113608642 A CN 113608642A CN 202110908677 A CN202110908677 A CN 202110908677A CN 113608642 A CN113608642 A CN 113608642A
Authority
CN
China
Prior art keywords
style
current interface
image
icons
icon
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110908677.5A
Other languages
Chinese (zh)
Inventor
隋睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Energy Chain Holding Co ltd
Original Assignee
Chezhubang Beijing Technology Co Ltd
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
Application filed by Chezhubang Beijing Technology Co Ltd filed Critical Chezhubang Beijing Technology Co Ltd
Priority to CN202110908677.5A priority Critical patent/CN113608642A/en
Publication of CN113608642A publication Critical patent/CN113608642A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an icon replacing method, an icon replacing device, icon replacing equipment and a readable storage medium, wherein the method comprises the following steps of: acquiring a first image uploaded by a user; determining a first style of the first image; determining a second style of the current interface; the current interface comprises a plurality of icons; and under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, and the third style of the modified icons meets similar conditions with the second style. By implementing the invention, the user can perform style transformation or icon replacement on at least part of icons in the current interface, change the style of at least part of icons into the style which the user likes or convert at least part of icons into the image of the style which the user likes, thereby meeting the requirement of the user for personalized design of the icons.

Description

Icon replacement method, device and equipment and readable storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to an icon replacing method, device and equipment and a readable storage medium.
Background
In general, a product recommendation web interface includes various icons. At present, the styles of the icons are all provided by a webpage provider, so that all the icons seen by users are the same, the users cannot individually design the styles of the icons, and the user experience is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide an icon replacing method, an icon replacing device, an icon replacing apparatus, and a readable storage medium, which are used to solve the problem that a user cannot design an icon individually in the prior art.
In order to solve the above problem, in a first aspect, an embodiment of the present invention provides an icon replacing method, including: acquiring a first image uploaded by a user; determining a first style of the first image; determining a second style of the current interface; the current interface comprises a plurality of icons; and under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, and the third style of the modified icons meets similar conditions with the second style.
Optionally, modifying at least part of the icons within the current interface according to the first style comprises: identifying a number of at least a portion of icons within a current interface; acquiring a plurality of third images corresponding to the first style and the number from a pre-connected image server; at least part of the icons in the current interface are replaced with a plurality of third images.
Optionally, modifying at least part of the icons within the current interface according to the first style comprises: identifying the content of at least part of the icon within the current interface; acquiring a plurality of fourth images corresponding to the first style and the content from a pre-connected image server; and replacing at least part of the icons in the current interface by using a plurality of fourth images.
Optionally, replacing at least part of the icon in the current interface with the third images or the fourth images includes: identifying a size of at least a portion of the icons within the current interface; extracting a plurality of elements matching the size of the icon from the plurality of third images or the plurality of fourth images; at least part of the icons within the current interface are replaced with a plurality of elements.
Optionally, modifying at least part of the icons within the current interface according to the first style comprises: inputting the first image into a style learning model; acquiring a fifth image corresponding to at least part of icons in the current interface; inputting the fifth image into a style learning model to convert the fourth style of the fifth image into the first style, and outputting a corresponding sixth image; and replacing at least part of the icons in the current interface with each sixth image.
Optionally, determining the second style of the current interface and the first style of the first image comprises: and respectively inputting the current interface and the first image into the style analysis model to obtain a second style of the current interface and a first style of the first image.
Optionally, in a case that there is no difference between the first style and the second style, replacing the icon to be replaced on the current interface with the first image.
Optionally, before replacing the icon to be replaced on the current interface with the first image, the icon replacement method further includes: determining a first color style of the current interface and a second color style of the first image; and modifying the first image under the condition that the first color style and the second color style are different, wherein the third color style of the modified first image meets the similar condition with the first color style.
Optionally, modifying the first image comprises: determining a primary element in the first image; determining the main color of the current interface, wherein the main color is the color with the area exceeding the preset area value or the color of a specific area with the same color; the background color of the primary element is transformed to a dominant color.
Optionally, transforming the background color of the primary element to a primary color comprises: in the case that the main element is confirmed to be the portrait, converting the background color of the decorative article in the portrait into a main color; under the condition that the main element is confirmed to be the product, the background color of the specific display surface of the product is converted into a main color; when the main element is confirmed to be a graphic, the background color of a specific gaze region of the graphic is converted into a main color.
In a second aspect, an embodiment of the present invention provides an icon replacing apparatus, including: the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a first image uploaded by a user; a first determining unit for determining a first style of the first image; the second determining unit is used for determining a second style of the current interface; the current interface comprises a plurality of icons; and the replacing unit is used for modifying at least part of the icons in the current interface according to the first style under the condition that the first style and the second style are different, and the third style of the modified icons accords with the similar condition with the second style.
In a third aspect, an embodiment of the present invention provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the icon replacing method as in the first aspect or any of the embodiments of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the icon replacing method according to the first aspect or any embodiment of the first aspect.
According to the icon replacing method, the icon replacing device, the icon replacing equipment and the readable storage medium, the first image uploaded by the user is obtained; determining a first style of the first image; determining a second style of the current interface; the current interface comprises a plurality of icons; under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, the third style of the modified icons meets similar conditions with the second style, so that a user can perform style transformation or icon replacement on at least part of icons in the current interface, the style of at least part of icons is changed into the style which the user likes or the at least part of icons is converted into the image which the user likes, and the requirement of the user for personalized design of the icons is met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart illustrating a method for replacing an icon in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a product recommendation web interface in an embodiment of the invention;
FIG. 3 shows a schematic diagram of a first image in an embodiment of the invention;
FIG. 4 is a schematic structural diagram of an icon replacing apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides an icon replacing method, as shown in fig. 1, including:
s101, acquiring a first image uploaded by a user; specifically, when the user wants to replace a certain icon, certain icons, or all icons of the product recommendation web interface shown in fig. 2, an icon replacement instruction may be input for the icon, and then a favorite first image of the user, for example, the favorite first image shown in fig. 3, may be uploaded to the system.
S102, determining a first style of a first image; specifically, people generally describe the styles of the images, such as non-mainstream, traditional nostalgic, romantic lyrics, solemn generous, deep and heavy, easy dialing, news reports, product introduction and art decoration. The first style of the first image can be quickly and accurately identified by analyzing the first image through the style analysis model.
S103, determining a second style of the current interface; the current interface comprises a plurality of icons; specifically, the style analysis model may be input to the current interface to obtain the second style of the current interface, or the style analysis model may be input to a plurality of icons in the current interface to obtain the second style of the current interface. The style analysis model is used for analyzing the current interface or a plurality of icons of the current interface, so that the second style of the current interface can be quickly and accurately identified.
And S104, under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, and the third style of the modified icons accords with similar conditions with the second style. Specifically, after determining the first style and the second style, the first style may be compared with the second style, and in the case that it is determined that there is a difference between the first style and the second style, at least a portion of the icons within the current interface may be modified according to the first style. When at least part of icons in the current interface are modified, the styles of the contents of the at least part of icons can be transformed, or other multiple images which are the same as the first style can be used for replacing the at least part of icons, and finally the third style of the modified icons meets similar conditions with the second style.
According to the icon replacing method provided by the embodiment of the invention, the first image uploaded by the user is obtained; determining a first style of the first image; determining a second style of the current interface; the current interface comprises a plurality of icons; under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, the third style of the modified icons meets similar conditions with the second style, so that a user can perform style transformation or icon replacement on at least part of icons in the current interface, the style of at least part of icons is changed into the style which the user likes or the at least part of icons is converted into the image which the user likes, and the requirement of the user for personalized design of the icons is met.
In an optional embodiment, in step S104, modifying at least part of the icons in the current interface according to the first style includes: identifying a number of at least a portion of icons within a current interface; acquiring a plurality of third images corresponding to the first style and the number from a pre-connected image server; at least part of the icons in the current interface are replaced with a plurality of third images.
In this embodiment of the present invention, the at least part of the icon is replaced by a plurality of other third images having the same style as the first style, so as to modify the at least part of the icon in the current interface. Wherein the plurality of third images may be acquired from a pre-connected image server. The number of the third images is the same as that of the at least part of the icons.
In this embodiment of the present invention, a plurality of third images corresponding to the first style and the number of at least some icons are acquired from a pre-connected image server, and at least some icons in the current interface are replaced by the plurality of third images, so that at least some icons can be replaced by the plurality of third images in the style that the user likes, and the requirement of the user for personalized design of the icons is met.
In an optional embodiment, in step S104, modifying at least part of the icons in the current interface according to the first style includes: identifying the content of at least part of the icon within the current interface; acquiring a plurality of fourth images corresponding to the first style and the content from a pre-connected image server; and replacing at least part of the icons in the current interface by using a plurality of fourth images.
In this embodiment of the present invention, the at least part of the icon is replaced by a plurality of other fourth images of the same style as the first style, so as to modify the at least part of the icon in the current interface. And the contents of the plurality of fourth images are matched with the contents of the at least part of icons. In specific implementation, the content of each icon of at least part of icons in the current interface can be identified, and then each content image of the first style is acquired from a pre-connected server to replace the at least part of icons. For example, a cart may be identified for one of the at least some icons, a cart image of a first style may be obtained from a pre-connected image server, and the cart image may be used to replace the icon of the at least some icons.
In this embodiment of the present invention, a plurality of fourth images corresponding to the first style and the content of at least part of the icons are acquired from a pre-connected image server, and at least part of the icons in the current interface are replaced by the plurality of fourth images, so that the at least part of the icons can be replaced by the plurality of fourth images in the style that the user likes, and the replaced icons have the content of the original icons, thereby meeting the requirement of the user for personalized design of the icons.
The style of the content of at least part of icons can be transformed into the style which the user likes, so that the requirement of the user for personalized design of the icons can be met.
In an alternative embodiment, replacing at least part of the icon in the current interface with the third images or the fourth images comprises: identifying a size of at least a portion of the icons within the current interface; extracting a plurality of elements matching the size of the icon from the plurality of third images or the plurality of fourth images; at least part of the icons within the current interface are replaced with a plurality of elements.
Specifically, since the size of the third image or the fourth image is mostly larger than that of the icon, a plurality of elements matching the size of the icon may be extracted from the plurality of third images or the plurality of fourth images, where each element has a proper size ratio, a clear boundary, and is complete, and then at least part of the icon in the current interface is replaced with the plurality of elements.
In this embodiment of the present invention, a plurality of elements that match the size of the icon are extracted from the plurality of third images or the plurality of fourth images, and at least part of the icon in the current interface is replaced with the plurality of elements, so that the replaced icon matches the size of the original icon, and the size ratio of each icon in the current interface is not changed.
In an optional embodiment, in step S104, modifying at least part of the icons in the current interface according to the first style includes: inputting the first image into a style learning model; acquiring a fifth image corresponding to at least part of icons in the current interface; inputting the fifth image into a style learning model to convert the fourth style of the fifth image into the first style, and outputting a corresponding sixth image; and replacing at least part of the icons in the current interface with each sixth image.
In this embodiment of the present invention, a method of transforming the style of at least some icons is used to modify at least some icons in the current interface. After the first image is input into the style learning model and the learning is completed, the fifth image corresponding to the at least part of icons is input into the style learning model, the style learning model transforms the fourth style of the fifth image into the first style to obtain a sixth image, and the sixth image is used to replace the at least part of icons.
In this embodiment of the present invention, the style of at least part of the icons can be transformed into the style preferred by the user by transforming the fourth style of the fifth image corresponding to at least part of the icons into the first style to obtain sixth images, and then replacing at least part of the icons with each sixth image, so as to meet the requirement of the user for personalized design of the icons.
In an optional embodiment, in the case that there is no difference between the first style and the second style, the icon to be replaced on the current interface is replaced by the first image.
Specifically, when the first style and the second style are not different, the first image can be directly used for replacing the icon to be replaced on the current interface, so that the requirement of the user on personalized design of the icon can be met, and meanwhile, the style of the current interface can be kept unchanged.
In an optional embodiment, before replacing the icon to be replaced on the current interface with the first image, the icon replacement method further includes: determining a first color style of the current interface and a second color style of the first image; and modifying the first image under the condition that the first color style and the second color style are different, wherein the third color style of the modified first image meets the similar condition with the first color style.
Specifically, the current interface may be input into an AI color style analysis model, and a first color style of the current interface is analyzed; the current interface can also be analyzed in terms of various colors and the area ratios of the various colors, and the first color style of the current interface is determined according to the various colors and the area ratios of the various colors. The first image may be input into an AI color style analysis model and a second color style of the first image may be analyzed. The first image may also be analyzed for each color and the area ratio of each color, and the second color style of the first image may be determined according to each color and the area ratio of each color.
After the first color style and the second color style are determined, the first color style and the second color style can be compared, and in the case that the first color style and the second color style are determined to have difference, the second color style of the first image is modified, and the third color style of the modified first image and the first color style meet similar conditions.
In this embodiment of the present invention, before the icon to be replaced on the current interface is replaced with the first image, the first color style of the first image is modified, so that the third color style of the modified first image and the first color style of the current interface meet the similar condition, the color style of the replaced icon and the color style of the current interface can be unified, and the uniformity and the harmony of the color style of the current interface cannot be damaged.
In an alternative embodiment, modifying the first image comprises: determining a primary element in the first image; determining the main color of the current interface, wherein the main color is the color with the area exceeding the preset area value or the color of a specific area with the same color; the background color of the primary element is transformed to a dominant color.
Specifically, when the first image is modified, each element in the first image may be each target object in the first image by analyzing, and the target elements whose area ratio exceeds the preset threshold may be determined as each main element in the first image, each main element being each main target object in the first image. Then the dominant color of the current interface, and then the background color of the primary element is transformed to the dominant color.
In this embodiment of the present invention, since the area where the main element in the first image is located is the highlighted area, the color style of the replaced icon can be unified with the color style of the current interface by converting the background color of the main element into the main color, and the user experience can be improved without converting all background colors of the first image.
In an alternative embodiment, transforming the background color of the primary element to a primary color comprises: in the case that the main element is confirmed to be the portrait, converting the background color of the decorative article in the portrait into a main color; under the condition that the main element is confirmed to be the product, the background color of the specific display surface of the product is converted into a main color; when the main element is confirmed to be a graphic, the background color of a specific gaze region of the graphic is converted into a main color.
Specifically, in the case where it is confirmed that the type of the main element is a portrait, since a decorative article such as hair or clothes is more prominent in the portrait, the background color of the decorative article in the portrait may be converted into a main color. In the case where the main element is confirmed to be a product, since a main display surface of the product, for example, a door of a front view of a wardrobe is protruded, a background color of a specific display surface of the product may be changed to a main color. In the case where the main element is confirmed to be a graphic, since a main gazing region of the graphic, for example, a slash of a letter N or the whole N is relatively prominent, a background color of a specific gazing region of the graphic can be converted into a main color.
In this embodiment of the present invention, because the salient regions of the different types of main elements are different, for the different types of main elements, the background color of the salient region of each main element is converted into the main color, so that all the background colors of each main element do not need to be changed, and meanwhile, the third color style of the first image after partial background color conversion and the first color style can meet similar conditions, thereby improving user experience.
An embodiment of the present invention further provides an icon replacing apparatus, as shown in fig. 4, including:
an obtaining unit 21, configured to obtain a first image uploaded by a user; the detailed description of the specific implementation manner is given in step S101 of the above method embodiment, and is not repeated herein.
A first determining unit 22 for determining a first style of the first image; the detailed description of the specific implementation manner is given in step S102 of the above method embodiment, and is not repeated herein.
A second determining unit 23, configured to determine a second style of the current interface; the current interface comprises a plurality of icons; the detailed description of the specific implementation manner is given in step S103 of the above method embodiment, and is not repeated herein.
And a replacing unit 24, configured to modify at least part of the icons in the current interface according to the first style if the first style and the second style are different, where a third style of the modified icons meets similar conditions with the second style. The detailed description of the specific implementation manner is given in step S104 of the above method embodiment, and is not repeated herein.
According to the icon replacing device provided by the embodiment of the invention, the first image uploaded by the user is obtained; determining a first style of the first image; determining a second style of the current interface; the current interface comprises a plurality of icons; under the condition that the first style and the second style are different, at least part of icons in the current interface are modified according to the first style, the third style of the modified icons meets similar conditions with the second style, so that a user can perform style transformation or icon replacement on at least part of icons in the current interface, the style of at least part of icons is changed into the style which the user likes or the at least part of icons is converted into the image which the user likes, and the requirement of the user for personalized design of the icons is met.
Based on the same inventive concept as the icon replacing method in the foregoing embodiment, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, including: a processor 31 and a memory 32, wherein the processor 31 and the memory 32 may be connected by a bus or other means, and the connection by the bus is illustrated in fig. 5 as an example.
The processor 31 may be a Central Processing Unit (CPU). The Processor 31 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 32, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the icon replacing method in the embodiment of the present invention. The processor 31 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 32, that is, implements the icon replacing method in the above-described method embodiment.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 31, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 32 may optionally include memory located remotely from the processor 31, and these remote memories may be connected to the processor 31 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more of the modules described above are stored in the memory 32 and, when executed by the processor 31, perform the icon replacement method in the embodiment shown in fig. 1.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable information processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable information processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (13)

1. An icon replacing method, comprising:
acquiring a first image uploaded by a user;
determining a first style of the first image;
determining a second style of the current interface; the current interface comprises a plurality of icons;
and under the condition that the first style and the second style are different, at least part of the icons in the current interface are modified according to the first style, and the third style of the modified icons accords with the similar condition with the second style.
2. The icon replacing method as claimed in claim 1, wherein said modifying at least a portion of the icons in the current interface according to the first style comprises:
identifying a number of at least some of the icons within a current interface;
acquiring a plurality of third images corresponding to the first style and the number from a pre-connected image server;
and replacing at least part of the icons in the current interface by using a plurality of third images.
3. The icon replacing method as claimed in claim 1, wherein said modifying at least a portion of the icons in the current interface according to the first style comprises:
identifying the content of at least part of the icons in the current interface;
acquiring a plurality of fourth images corresponding to the first style and the content from a pre-connected image server;
and replacing at least part of the icons in the current interface by using a plurality of fourth images.
4. The method for replacing the icon according to claim 2 or 3, wherein the step of replacing at least part of the icon in the current interface by using a plurality of third images or a plurality of fourth images comprises the following steps:
identifying a size of at least a portion of the icon within a current interface;
extracting a plurality of elements matching the size of the icon from the third image or the fourth images;
replacing at least part of the icon within the current interface with a plurality of the elements.
5. The icon replacing method as claimed in claim 1, wherein said modifying at least a portion of the icons in the current interface according to the first style comprises:
inputting the first image into a style learning model;
acquiring a fifth image corresponding to at least part of the icons in the current interface;
inputting the fifth image into the style learning model to convert a fourth style of the fifth image into the first style, and outputting a corresponding sixth image;
and replacing at least part of the icons in the current interface by using each sixth image.
6. The icon replacing method according to claim 1, wherein determining the second style of the current interface and the first style of the first image comprises:
and respectively inputting the current interface and the first image into a style analysis model to obtain a second style of the current interface and a first style of the first image.
7. The icon replacing method according to claim 1,
and under the condition that the first style and the second style are not different, replacing the icon to be replaced on the current interface with the first image.
8. The icon replacing method according to claim 7, wherein before replacing the icon to be replaced on the current interface with the first image, the method further comprises:
determining a first color style of a current interface and a second color style of the first image;
and modifying the first image under the condition that the first color style and the second color style are different, wherein the third color style of the modified first image and the first color style accord with similar conditions.
9. The icon replacement method of claim 8, wherein said modifying the first image comprises:
determining a primary element in the first image;
determining a main color of a current interface, wherein the main color is a color with an area exceeding a preset area value or a color of a specific area with the same color;
transforming the background color of the primary element to the primary color.
10. The icon replacing method according to claim 9, wherein the transforming the background color of the primary element into the primary color comprises:
in the case that the main element is confirmed to be a portrait, converting the background color of the decorative article in the portrait into the main color;
under the condition that the main element is confirmed to be a product, the background color of the specific display surface of the product is changed into the main color;
in a case where it is confirmed that the main element is a graphic, a background color of a specific gazing area of the graphic is converted into the main color.
11. An icon replacing apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a first image uploaded by a user;
a first determining unit for determining a first style of the first image;
the second determining unit is used for determining a second style of the current interface; the current interface comprises a plurality of icons;
and the replacing unit is used for modifying at least part of the icons in the current interface according to the first style under the condition that the first style and the second style are different, and the third style of the modified icons accords with the similar condition with the second style.
12. A computer device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the icon replacing method according to any one of claims 1-10.
13. A computer-readable storage medium storing computer instructions for causing a computer to perform the icon replacing method according to any one of claims 1 to 10.
CN202110908677.5A 2021-08-09 2021-08-09 Icon replacement method, device and equipment and readable storage medium Pending CN113608642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110908677.5A CN113608642A (en) 2021-08-09 2021-08-09 Icon replacement method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110908677.5A CN113608642A (en) 2021-08-09 2021-08-09 Icon replacement method, device and equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113608642A true CN113608642A (en) 2021-11-05

Family

ID=78307696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110908677.5A Pending CN113608642A (en) 2021-08-09 2021-08-09 Icon replacement method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113608642A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984469A (en) * 2014-05-28 2014-08-13 深圳市金立通信设备有限公司 Application icon matching method, terminal and network system
CN104283842A (en) * 2013-07-02 2015-01-14 中兴通讯股份有限公司 Theme management method and system
CN105117098A (en) * 2015-08-07 2015-12-02 深圳市金立通信设备有限公司 Icon management method and terminal
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN107479781A (en) * 2017-07-20 2017-12-15 努比亚技术有限公司 A kind of update method and terminal of application icon color
CN110569924A (en) * 2019-09-18 2019-12-13 南京雷鲨信息科技有限公司 Icon processing method and device, readable storage medium and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283842A (en) * 2013-07-02 2015-01-14 中兴通讯股份有限公司 Theme management method and system
CN103984469A (en) * 2014-05-28 2014-08-13 深圳市金立通信设备有限公司 Application icon matching method, terminal and network system
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN105117098A (en) * 2015-08-07 2015-12-02 深圳市金立通信设备有限公司 Icon management method and terminal
CN107479781A (en) * 2017-07-20 2017-12-15 努比亚技术有限公司 A kind of update method and terminal of application icon color
CN110569924A (en) * 2019-09-18 2019-12-13 南京雷鲨信息科技有限公司 Icon processing method and device, readable storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US9177391B1 (en) Image-based color palette generation
US9401032B1 (en) Image-based color palette generation
CN107943924B (en) Method for automatically generating webpage theme, storage medium and electronic equipment
AU2014203258B2 (en) System and method for generating a design template based on graphical input
CN106020504B (en) Information output method and device
US20120102390A1 (en) Method and apparatus for generating widget
US9069781B2 (en) Techniques to automatically manage file descriptors
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
US10430482B2 (en) Customized and automated dynamic infographics
CN109101309B (en) Method and apparatus for updating user interface
CN110569924A (en) Icon processing method and device, readable storage medium and computer equipment
CN110120059B (en) Icon generation method and device
JP6616008B2 (en) Mutual noise estimation for video
CN105590241B (en) Self-adaptive electronic bill implementation method and system
JP6838167B2 (en) Web page main image recognition method and device
CN113608740A (en) Icon replacement method, device and equipment and readable storage medium
CN112989177B (en) Information processing method, information processing device, electronic equipment and computer storage medium
CN117389559A (en) Target page generation method and device
CN113608642A (en) Icon replacement method, device and equipment and readable storage medium
US8775385B2 (en) Techniques to modify file descriptors for content files
CN111383289A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN112799745B (en) Page display control method and device
US11676316B1 (en) Shareable settings for modifying images
CN111125501B (en) Method and device for processing information
CN112950167A (en) Design service matching method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240411

Address after: Room 2101, Block B, Platinum Plaza, 5-15 Wenling Road, Laoshan District, Qingdao, Shandong 266000

Applicant after: Shandong Energy Chain Holding Co.,Ltd.

Country or region after: China

Address before: Unit 3805-3815, 38th Floor, Building 8, No. 91 Jianguo Road, Chaoyang District, Beijing, 100123

Applicant before: CHEZHUBANG (BEIJING) TECHNOLOGY Co.,Ltd.

Country or region before: China