Theme icon generation method and apparatus, and computer device
AssigneePetal Cloud Technology Co., Ltd.
InventorsWenjie Zhang, Weicai Zhong
Life of this patent
Estimating the term…
Abstract
A theme icon generation method includes obtaining an application icon, where the application icon includes a transparent region and an opaque region, and the opaque region includes an icon background and a first logo graphic; segmenting a first logo graphic from the opaque region; adjusting a size of the first logo graphic to generate a second logo graphic; and fusing the second logo graphic with a theme template to generate a theme icon.
Claims18
A method comprising:
- obtaining an application icon comprising a transparent region and an opaque region, wherein the opaque region comprises an icon background and a first logo graphic;
- segmenting the first logo graphic from the opaque region;
- adjusting a first size of the first logo graphic to generate a second logo graphic;
- and
- obtaining application information corresponding to the application icon, wherein the application information comprises at least one of an application category, an icon background color, or a company to which an application belongs;
- matching, based on the application information, a theme template from a theme template library;
- detecting a graphic complexity of the second logo graphic;
- superimposing, when the graphic complexity is less than a third preset threshold, the second logo graphic on the theme template to generate a theme icon;
- performing, when the graphic complexity is greater than or equal to the third preset threshold, a Poisson blending on the second logo graphic and the theme template to generate the theme icon;
- and
- fusing the second logo graphic with the theme template to generate the theme icon.
An apparatus, comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
- obtain an application icon comprising a transparent region and an opaque region, wherein the opaque region comprises an icon background and a first logo graphic;
- segment the first logo graphic from the opaque region;
- adjust a first size of the first logo graphic to generate a second logo graphic;
- and
- obtain application information corresponding to the application icon, wherein the application information comprises at least one of an application category, an icon background color, or a company to which an application belongs;
- match, based on the application information, a theme template from a theme template library;
- detect a graphic complexity of the second logo graphic;
- superimpose the second logo graphic on the theme template when the graphic complexity is less than a third preset threshold to generate a theme icon;
- perform a Poisson blending on the second logo graphic and the theme template when the graphic complexity is greater than or equal to the third preset threshold to generate the theme icon;
- and
- fuse the second logo graphic with the theme template to generate the theme icon.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by a processor, cause an apparatus to:
- obtain an application icon comprising a transparent region and an opaque region, wherein the opaque region comprises an icon background and a first logo graphic;
- segment the first logo graphic from the opaque region;
- adjust a first size of the first logo graphic to generate a second logo graphic;
- and
- obtain application information corresponding to the application icon, wherein the application information comprises at least one of an application category, an icon background color, or a company to which an application belongs;
- match, based on the application information, a theme template from a theme template library;
- detect a graphic complexity of the second logo graphic;
- superimpose the second logo graphic on the theme template when the graphic complexity is less than a third preset threshold to generate a theme icon;
- perform a Poisson blending on the second logo graphic and the theme template when the graphic complexity is greater than or equal to the third preset threshold to generate the theme icon;
- and
- fuse the second logo graphic with the theme template to generate the theme icon.
Dependencies are inferred from the claim text.