CN113608740A - Icon replacement method, device and equipment and readable storage medium - Google Patents
Icon replacement method, device and equipment and readable storage medium Download PDFInfo
- Publication number
- CN113608740A CN113608740A CN202110909958.2A CN202110909958A CN113608740A CN 113608740 A CN113608740 A CN 113608740A CN 202110909958 A CN202110909958 A CN 202110909958A CN 113608740 A CN113608740 A CN 113608740A
- Authority
- CN
- China
- Prior art keywords
- icon
- image
- color
- determining
- replaced
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000004048 modification Effects 0.000 claims description 43
- 238000012986 modification Methods 0.000 claims description 43
- 230000015654 memory Effects 0.000 claims description 21
- 238000004458 analytical method Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 abstract description 7
- 238000013461 design Methods 0.000 abstract description 6
- 239000003086 colorant Substances 0.000 description 14
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000010365 information processing Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04817—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (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: responding to the icon replacing instruction, and acquiring a first image uploaded by a user; determining a first color style of a first image; determining a second color style corresponding to the icon to be replaced; under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style of the second image and the second color style accord with similar conditions; the icon to be replaced is replaced with the second image. By implementing the method and the device, the icon to be replaced can be replaced, the icon to be replaced is replaced by the image which is liked by the user, and the requirement of the user on personalized design of the icon is met; and in the replacement process, the second color style corresponding to the icon to be replaced is considered, so that the color style of the replaced icon is unified with the color style of the current interface, and the uniformity and the harmony of the color style of the current interface cannot be damaged.
Description
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.
To solve the above problem, according to a first aspect, an embodiment of the present invention provides an icon replacing method, including: responding to the icon replacing instruction, and acquiring a first image uploaded by a user; determining a first color style of a first image; determining a second color style corresponding to the icon to be replaced; under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style of the second image and the second color style accord with similar conditions; the icon to be replaced is replaced with the second image.
Optionally, determining a second color style corresponding to the icon to be replaced includes: a second color style of the icon itself to be replaced is determined.
Optionally, determining a second color style of the icon to be replaced includes: and determining a second color style of the interface where the icon to be replaced is located.
Optionally, modifying the first image to obtain a second image, including: analyzing the picture content of the first image to obtain an analysis result; determining a corresponding modification scheme according to the analysis result; and modifying the first image according to the modification scheme to obtain a second image.
Optionally, determining a corresponding modification scheme according to the analysis result includes: determining each main element in the first image according to the analysis result; determining the type of each main element; and determining the color modification area of each main element according to the type of each main element.
Optionally, determining the color modification area of each main element according to the type of each main element includes: determining an area where the decorative article is located in the main element as a color modification area of the main element in a case where it is confirmed that the type of the main element is the portrait; determining the area where the specific display surface is located in the main element as the color modification area of the main element under the condition that the type of the main element is determined to be a product; in case that the type of the main element is confirmed as the graphic, a specific gazing area of the graphic is determined as the color modification area of the main element.
Optionally, modifying the first image according to the modification scheme to obtain a second image, including: determining the main color of the icon to be replaced, 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; and replacing the background color of the color modification area of each main element with the main color to obtain a second image.
In a second aspect, an embodiment of the present invention provides an icon replacing apparatus, including: the acquisition unit is used for responding to the icon replacement instruction and acquiring a first image uploaded by a user; a first determining unit for determining a first color style of the first image; a second determining unit for determining a second color style of the icon to be replaced; the modifying unit is used for modifying the first image to obtain a second image under the condition that the first color style and the second color style are different, and the third color style and the second color style of the second image accord with similar conditions; and a replacing unit for replacing the icon to be replaced with the second image.
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 in the first aspect or any implementation manner 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 by responding to the icon replacing instruction; determining a first color style of a first image; determining a second color style corresponding to the icon to be replaced; under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style of the second image and the second color style accord with similar conditions; replacing the icon to be replaced with the second image; therefore, the user can replace the icon to be replaced by the favorite image, and the requirement of the user on personalized design of the icon is met; and in the replacement process, the second color style corresponding to the icon to be replaced is considered, the first color style of the first image is modified under the condition that the first color style and the second color style of the first image uploaded by the user are different, then the icon replacement is carried out, the color style of the replaced icon can be unified with the color style of the current interface, and the uniformity and the harmony of the color style of the current interface cannot be damaged.
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 shows a schematic diagram of a second image in an embodiment of the invention;
FIG. 5 is a schematic diagram illustrating a product recommendation web page interface after replacing an icon in an embodiment of the invention;
FIG. 6 is a schematic structural diagram of an icon replacing apparatus according to an embodiment of the present invention;
fig. 7 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, responding to an icon replacement instruction, and acquiring a first image uploaded by a user; specifically, when the user wants to replace a certain icon (for example, an icon corresponding to the love car valuation) of the product recommendation web interface shown in fig. 2, an icon replacement instruction can be input for the icon, and then a favorite first image, for example, the favorite first image shown in fig. 3, can be uploaded to the system.
S102, determining a first color style of a first image; specifically, the first image may be input to an AI color style analysis model to analyze a first color style of the first image. The first image may also be analyzed for each color and the area ratio of each color included in the first image, and the first color style of the first image may be determined according to each color and the area ratio of each color.
S103, determining a second color style corresponding to the icon to be replaced; specifically, the second color style corresponding to the icon to be replaced may be the second color of the icon to be replaced itself, or may be the second color style of the interface where the icon to be replaced is located. Inputting the icon to be replaced or the interface where the icon to be replaced is located into an AI color style analysis model, and analyzing a second color style corresponding to the icon to be replaced; the icon to be replaced or the interface where the icon to be replaced is located can also be analyzed in various colors and the area proportion occupied by the various colors, and the second color style corresponding to the icon to be replaced is determined according to the various colors and the area proportion occupied by the various colors.
S104, under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style and the second color style of the second image accord with similar conditions; specifically, after the first color style and the second color style are determined, the first color style and the second color style may be compared, and in a case that it is determined that the first color style and the second color style are different, the first color style of the first image is modified to obtain the second image, as shown in fig. 4, so that the third color style of the second image is similar to or the same as the second color style.
And S105, replacing the icon to be replaced with the second image. The product recommendation web page interface after replacing the icon is shown in fig. 5.
According to the icon replacing method provided by the embodiment of the invention, the first image uploaded by a user is acquired by responding to the icon replacing instruction; determining a first color style of a first image; determining a second color style corresponding to the icon to be replaced; under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style of the second image and the second color style accord with similar conditions; replacing the icon to be replaced with the second image; therefore, the user can replace the icon to be replaced by the favorite image, and the requirement of the user on personalized design of the icon is met; and in the replacement process, the second color style corresponding to the icon to be replaced is considered, the first color style of the first image is modified under the condition that the first color style and the second color style of the first image uploaded by the user are different, then the icon replacement is carried out, the color style of the replaced icon can be unified with the color style of the current interface, and the uniformity and the harmony of the color style of the current interface cannot be damaged.
In an optional embodiment, in the case that the second color style corresponding to the icon to be replaced is set to be the second color style of the icon to be replaced, step S103, determining the second color style corresponding to the icon to be replaced includes: a second color style of the icon itself to be replaced is determined.
Specifically, the icon to be replaced may be input into the AI color style analysis model, and the second color style of the icon itself to be replaced may be analyzed. And analyzing various colors contained in the icon to be replaced and the area proportion occupied by the colors, and determining the second color style of the icon to be replaced according to the colors and the area proportion occupied by the colors.
In this embodiment of the present invention, the second color style corresponding to the icon to be replaced can be accurately obtained by determining the second color style of the image to be replaced.
In an optional embodiment, when the second color style corresponding to the icon to be replaced is set to be the second color style of the interface where the icon to be replaced is located, step S103, determining the second color style of the icon to be replaced includes: and determining a second color style of the interface where the icon to be replaced is located.
Specifically, an image corresponding to the interface where the icon to be replaced is located may be obtained, the image corresponding to the interface where the icon to be replaced is located is input into the AI color style analysis model, and the second color style of the interface where the icon to be replaced is located is analyzed. And analyzing various colors and area proportions occupied by the colors included in the interface where the icon to be replaced is located, and determining the second color style of the interface where the icon to be replaced is located according to the colors and the area proportions occupied by the colors.
In this embodiment of the present invention, since the second color style of the interface where the icon to be replaced is located is matched with the second color style of the icon to be replaced, the second color style corresponding to the image to be replaced can be obtained by determining the second color style of the interface where the icon to be replaced is located.
In an alternative embodiment, in step S104, modifying the first image to obtain the second image includes: analyzing the picture content of the first image to obtain an analysis result; determining a corresponding modification scheme according to the analysis result; and modifying the first image according to the modification scheme to obtain a second image.
Specifically, when the first image is modified, each element in the first image may be analyzed, where each element in the first image is each target object in the first image, then a corresponding modification scheme is determined according to the analysis result, and then the first image is modified to obtain the second image.
One embodiment of determining the corresponding modification scheme according to the analysis result may be: determining each main element in the first image according to the analysis result; determining the type of each main element; and determining the color modification area of each main element according to the type of each main element.
Target elements whose area ratio exceeds a preset threshold may be determined as main elements in the first image by analyzing the elements in the first image, and the main elements are main target objects in the first image. The type of the target object can then be identified, and the type of each main element can be determined. Types include portrait, product, graphic, etc. The color modification region may then be determined for each primary element, determining the type of the primary element.
And then replacing the determined background color of each color modification area with a main color corresponding to the second color style corresponding to the icon to be replaced to obtain a second image.
In this embodiment of the present invention, each element in the first image is analyzed, each main element is determined from the analysis, and the color modification region of each main element is modified with the background color, so that the background color of the highlight region can be transformed for each main element, and thus, all the background colors of each main element do not need to be changed, and simultaneously, the third style of the second image obtained by transforming part of the background colors and the second color style conform to similar conditions, thereby improving user experience.
In an alternative embodiment, determining the color modification region of each primary element according to the type of each primary element includes: determining an area where the decorative article is located in the main element as a color modification area of the main element in a case where it is confirmed that the type of the main element is the portrait; determining the area where the specific display surface is located in the main element as the color modification area of the main element under the condition that the type of the main element is determined to be a product; in case that the type of the main element is confirmed as the graphic, a specific gazing area of the graphic is determined as the color modification area of the main element.
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, it is possible to determine the color modification region where the decorative article is located as the main element. In the case where the main element is confirmed to be a product, since the main display surface of the product, for example, a door of a front view of a wardrobe is protruded, it is possible to determine the color modification area where the specific display surface is located is the main element. In case that the primary element is confirmed to be a graphic, since a primary gaze region of the graphic, for example, a slash of a letter N or the entire N is more prominent, a specific gaze region may be determined to be a color modification region of the primary element.
In this embodiment of the present invention, since the protruding areas of the different types of main elements are different, for the different types of main elements, the protruding area of each main element is used as the color modification area, so that only the background color of the color modification area is replaced, and the third style of the second image obtained after the partial background color transformation and the second color style can meet the similar condition.
In an alternative embodiment, modifying the first image according to the modification to obtain the second image comprises: determining the main color of the icon to be replaced, 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; and replacing the background color of the color modification area of each main element with the main color to obtain a second image.
Specifically, since the main color of the icon to be replaced can represent the second color style corresponding to the area to be replaced, the main color of the icon to be replaced can be determined, and then the background color of the color modification area of each main element is replaced by the main color, so that the third color style and the second style of the second image can satisfy the similar condition.
In this embodiment of the present invention, by determining the dominant color of the icon to be replaced and replacing the background color of the color modification area of each main element with the dominant color, the first image can be modified quickly, and the third style of the second image and the second color style meet similar conditions.
An embodiment of the present invention provides an icon replacing apparatus, as shown in fig. 6, including:
an obtaining unit 21, configured to obtain, in response to an icon replacement instruction, 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 color 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 color style of the icon to be replaced; the detailed description of the specific implementation manner is given in step S103 of the above method embodiment, and is not repeated herein.
A modifying unit 24, configured to modify the first image to obtain a second image when the first color style and the second color style are different, where a third color style of the second image and the second color style meet a similar condition; the detailed description of the specific implementation manner is given in step S104 of the above method embodiment, and is not repeated herein.
And a replacing unit 25 for replacing the icon to be replaced with the second image. The detailed description of the specific implementation manner is given in step S105 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 acquired by responding to the icon replacing instruction; determining a first color style of a first image; determining a second color style corresponding to the icon to be replaced; under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein the third color style of the second image and the second color style accord with similar conditions; replacing the icon to be replaced with the second image; therefore, the user can replace the icon to be replaced by the favorite image, and the requirement of the user on personalized design of the icon is met; and in the replacement process, the second color style corresponding to the icon to be replaced is considered, the first color style of the first image is modified under the condition that the first color style and the second color style of the first image uploaded by the user are different, then the icon replacement is carried out, the color style of the replaced icon can be unified with the color style of the current interface, and the uniformity and the harmony of the color style of the current interface cannot be damaged.
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. 7, 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. 7 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 (10)
1. An icon replacing method, comprising:
responding to the icon replacing instruction, and acquiring a first image uploaded by a user;
determining a first color style of the first image;
determining a second color style corresponding to the icon to be replaced;
under the condition that the first color style and the second color style are different, modifying the first image to obtain a second image, wherein a third color style of the second image and the second color style accord with similar conditions;
replacing the icon to be replaced with the second image.
2. The icon replacing method according to claim 1, wherein the determining a second color style corresponding to the icon to be replaced comprises:
a second color style of the icon itself to be replaced is determined.
3. The icon replacing method according to claim 1, wherein the determining a second color style of the icon to be replaced comprises:
and determining a second color style of the interface where the icon to be replaced is located.
4. The icon replacing method according to claim 1, wherein the modifying the first image to obtain a second image comprises:
analyzing the picture content of the first image to obtain an analysis result;
determining a corresponding modification scheme according to the analysis result;
and modifying the first image according to the modification scheme to obtain a second image.
5. The icon replacing method according to claim 4, wherein the determining a corresponding modification according to the analysis result includes:
determining each main element in the first image according to the analysis result;
determining a type of each of the primary elements;
determining a color modification area of each of the primary elements according to the type of each of the primary elements.
6. The icon replacing method according to claim 5, wherein the determining the color modification area of each of the main elements according to the type of each of the main elements includes:
determining an area where a decorative article is located in the main element as a color modification area of the main element in a case where it is confirmed that the type of the main element is a portrait;
determining the area where the specific display surface is located in the main element as the color modification area of the main element under the condition that the type of the main element is determined to be a product;
in case it is confirmed that the type of the primary element is a graphic, a specific gazing area of the graphic is determined as a color modification area of the primary element.
7. The icon replacing method according to claim 5, wherein the modifying the first image according to the modification scheme to obtain a second image comprises:
determining the main color of the icon to be replaced, 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;
and replacing the background color of the color modification area of each main element with the main color to obtain a second image.
8. An icon replacing apparatus, comprising:
the acquisition unit is used for responding to the icon replacement instruction and acquiring a first image uploaded by a user;
a first determining unit for determining a first color style of the first image;
a second determining unit for determining a second color style of the icon to be replaced;
the modifying unit is used for modifying the first image to obtain a second image under the condition that the first color style and the second color style are different, and a third color style of the second image and the second color style accord with similar conditions;
and the replacing unit is used for replacing the icon to be replaced by using the second image.
9. 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-7.
10. 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 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110909958.2A CN113608740A (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 |
---|---|---|---|
CN202110909958.2A CN113608740A (en) | 2021-08-09 | 2021-08-09 | Icon replacement method, device and equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113608740A true CN113608740A (en) | 2021-11-05 |
Family
ID=78307746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110909958.2A Pending CN113608740A (en) | 2021-08-09 | 2021-08-09 | Icon replacement method, device and equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113608740A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116204184A (en) * | 2023-04-28 | 2023-06-02 | 深圳华龙讯达信息技术股份有限公司 | UI editing method, system and storage medium for improving page style adaptation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951140A (en) * | 2017-03-15 | 2017-07-14 | 联想(北京)有限公司 | The icon replacing options and electronic equipment of application program |
CN107193552A (en) * | 2017-04-26 | 2017-09-22 | 努比亚技术有限公司 | A kind of theme colors method to set up, equipment and computer-readable recording medium |
CN110851147A (en) * | 2018-08-21 | 2020-02-28 | 阿里巴巴集团控股有限公司 | Image replacement method, device and equipment |
-
2021
- 2021-08-09 CN CN202110909958.2A patent/CN113608740A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951140A (en) * | 2017-03-15 | 2017-07-14 | 联想(北京)有限公司 | The icon replacing options and electronic equipment of application program |
CN107193552A (en) * | 2017-04-26 | 2017-09-22 | 努比亚技术有限公司 | A kind of theme colors method to set up, equipment and computer-readable recording medium |
CN110851147A (en) * | 2018-08-21 | 2020-02-28 | 阿里巴巴集团控股有限公司 | Image replacement method, device and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116204184A (en) * | 2023-04-28 | 2023-06-02 | 深圳华龙讯达信息技术股份有限公司 | UI editing method, system and storage medium for improving page style adaptation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110968309B (en) | Template generation method and device, electronic equipment and storage medium | |
US9549121B2 (en) | Image acquiring method and electronic device | |
US11201806B2 (en) | Automated analysis and recommendations for highly performant single page web applications | |
DE102014117895A1 (en) | Note-based spot-healing techniques | |
CN105824863B (en) | Desktop theme recommendation method and terminal | |
CN111681291A (en) | Image processing method, device, equipment and computer readable storage medium | |
CN110750711B (en) | Data pushing method, device, computer equipment and storage medium | |
CN108268275B (en) | Software version control method and software version control equipment | |
CN113608740A (en) | Icon replacement method, device and equipment and readable storage medium | |
CN105653550B (en) | Webpage filtering method and device | |
JP6616008B2 (en) | Mutual noise estimation for video | |
JP6838167B2 (en) | Web page main image recognition method and device | |
CN113467738A (en) | Screen adaptation method and device for display object, electronic equipment and storage medium | |
CN104063277B (en) | A kind of information processing method and electronic equipment | |
CN108170391B (en) | Page display method and device and electronic equipment | |
CN112578953A (en) | Display control method and device applied to terminal interface | |
CN105824694A (en) | Adjustment method and device for resources of applications | |
CN111008012B (en) | Prototype design method, device, electronic product and storage medium | |
CN113608642A (en) | Icon replacement method, device and equipment and readable storage medium | |
CN110808899B (en) | Content sharing method, device, client, server and system | |
CN113808011A (en) | Feature fusion based style migration method and device and related components thereof | |
CN110020268B (en) | Page returning method and device | |
CN112434500A (en) | Resume generation method, device, client, server and storage medium | |
CN110851200A (en) | Animation response type driving method and device and electronic equipment | |
CN112799745A (en) | Page display control method and device |
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 |
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 |
|
TA01 | Transfer of patent application right |