CN111783382B - A method and device for recommending document visual effects - Google Patents
A method and device for recommending document visual effects Download PDFInfo
- Publication number
- CN111783382B CN111783382B CN201910262424.8A CN201910262424A CN111783382B CN 111783382 B CN111783382 B CN 111783382B CN 201910262424 A CN201910262424 A CN 201910262424A CN 111783382 B CN111783382 B CN 111783382B
- Authority
- CN
- China
- Prior art keywords
- document
- elements
- color
- attribute information
- information
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及文档视觉效果编辑领域,具体涉及一种文档视觉效果的推荐方法和装置。The present invention relates to the field of document visual effect editing, and in particular to a method and device for recommending document visual effects.
背景技术Background technique
在办公环境中,用户进行广告宣传、产品演示等活动时希望利用图文并茂的方式展示给参与者,经常使用演示文稿、简报、文字、图片等加上一些特效动态显示效果制作出来的可播放文件进行展示。经常使用的软件包括PowerPoint、Office等,上述软件在显示内容编辑的过程中,用户可以对各个对象进行颜色、轮廓、大小等进行编辑,在配色时,最为常见的方式是如图1-2所示,根据配色的风格预先设定主题颜色,用户在制作显示内容时,可以从设定的主题颜色中选取颜色,也可以自定义颜色,其中主题颜色相当于定义了一组格子,每个格子有编号,每个编号对应一个该主题的颜色,不同的配色风格就是在不同的格子里填不同的颜色。文档的显示界面通常包括多种元素,如标题框、内容框,而内容框中又可包括多种类型的内容:如文字,背景图像。目前没有从基于现有的演示文档(模板)结构给出配色的方案,影响用户体验。In an office environment, when users conduct advertising and product demonstrations, they want to present their content to participants in a graphic and textual manner. They often use presentations, briefings, text, pictures, etc., plus some special effects and dynamic display effects to create playable files for presentation. Commonly used software includes PowerPoint, Office, etc. In the process of display content editing, users can edit the color, outline, size, etc. of each object. When matching colors, the most common method is as shown in Figure 1-2. The theme color is pre-set according to the color matching style. When creating display content, users can select colors from the set theme colors or customize colors. The theme color is equivalent to defining a group of grids. Each grid has a number, and each number corresponds to a color of the theme. Different color matching styles are to fill different grids with different colors. The display interface of a document usually includes multiple elements, such as a title box and a content box, and the content box can include multiple types of content: such as text and background images. At present, there is no color matching solution based on the existing presentation document (template) structure, which affects the user experience.
发明内容Summary of the invention
本申请提供一种文档视觉效果的推荐取方法和装置,针对现有配色方法的不足,实现自动化为显示内容配色。The present application provides a method and device for recommending document visual effects, which aims to address the deficiencies of existing color matching methods and realize automatic color matching for displayed content.
采取的技术方案如下:The technical solutions adopted are as follows:
本发明提供一种文档视觉效果的推荐方法,包括:The present invention provides a method for recommending document visual effects, comprising:
确定文档的使用信息,获取所述文档中多个元素间的层叠关系;Determine usage information of a document, and obtain a stacking relationship between multiple elements in the document;
基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息。Based on the stacking relationship, color matching attribute information suitable for the usage information is determined according to the usage information of the document.
优选地,所述使用信息包括以下的一项或者多项:文档使用场合信息、文档特性信息、用户历史使用信息、用户偏好配色信息。Preferably, the usage information includes one or more of the following: document usage occasion information, document characteristic information, user history usage information, and user preferred color matching information.
优选地,所述获取文档中多个元素间的层叠关系,包括:Preferably, obtaining the stacking relationship between multiple elements in the document includes:
从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtaining the stacking relationship between multiple elements from a document that solidifies the description of the stacking relationship between the elements;
或,or,
从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Gets the stacking relationship between multiple elements from a document that can edit the stacking relationship between elements.
优选地,基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息,包括:Preferably, based on the stacking relationship and according to the usage information of the document, determining the color matching attribute information suitable for the usage information includes:
基于层叠关系,确定每个元素所在的层级;Based on the stacking relationship, determine the level of each element;
对于所确定的层级中的元素,根据所述文档的使用信息,向所述用户推荐每个元素的颜色特征信息。For the elements in the determined hierarchy, color feature information of each element is recommended to the user according to usage information of the document.
优选地,所述颜色特征信息包括:饱和度、色调、亮度、颜色搭配关系、配色设计类别、文档逻辑关系类别。Preferably, the color feature information includes: saturation, hue, brightness, color matching relationship, color matching design category, and document logical relationship category.
优选地,所述方法之后还包括:Preferably, the method further comprises:
接收用户配置的目标元素的配色属性信息;Receive color attribute information of the target element configured by the user;
配置目标元素的配色属性信息包括:修改一个或者多个元素的配色属性信息、添加一个或者多个元素的配色属性信息,删除一个或者多个元素的配色属性信息。Configuring the color attribute information of the target element includes: modifying the color attribute information of one or more elements, adding the color attribute information of one or more elements, and deleting the color attribute information of one or more elements.
优选地,所述方法之后还包括:Preferably, the method further comprises:
根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息。According to the acquired color matching attribute information of all elements of the prepared document, it is determined whether the user has adopted the recommended color matching attribute information.
优选地,根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息包括:Preferably, determining whether the user has adopted the recommended color matching attribute information based on the acquired color matching attribute information of all elements of the prepared document includes:
根据获取的制作完成的文档的全部元素的配色属性信息以及推荐的配色属性信息计算相似度;Calculating similarity based on the acquired color attribute information of all elements of the prepared document and the recommended color attribute information;
根据所述相似度以及预设阈值确定用户是否采用了所述推荐的配色属性信息。It is determined whether the user adopts the recommended color matching attribute information according to the similarity and a preset threshold.
本发明还提供一种文档视觉效果的获取装置,包括:The present invention also provides a device for acquiring a document visual effect, comprising:
信息获取模块,用于确定文档的使用信息,获取所述文档中多个元素间的层叠关系;An information acquisition module, used to determine the usage information of a document and obtain the stacking relationship between multiple elements in the document;
推荐模块,用于基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息。The recommendation module is used to determine the color matching attribute information suitable for the usage information based on the stacking relationship and the usage information of the document.
优选地,所述信息获取模块获取所述文档中多个元素间的层叠关系,包括:Preferably, the information acquisition module acquires the stacking relationship between multiple elements in the document, including:
从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtaining the stacking relationship between multiple elements from a document that solidifies the description of the stacking relationship between the elements;
或,or,
从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Gets the stacking relationship between multiple elements from a document that can edit the stacking relationship between elements.
优选地,所述推荐模块基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息,包括:Preferably, the recommendation module determines the color matching attribute information suitable for the usage information based on the stacking relationship and according to the usage information of the document, including:
基于层叠关系,确定每个元素所在的层级;Based on the stacking relationship, determine the level of each element;
对于所确定的层级中的元素,根据所述文档的使用信息,向所述用户推荐每个元素的颜色特征信息。For the elements in the determined hierarchy, color feature information of each element is recommended to the user according to usage information of the document.
所述的装置还包括:The device also includes:
反馈模块,用于根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息。The feedback module is used to determine whether the user has adopted the recommended color matching attribute information based on the acquired color matching attribute information of all elements of the prepared document.
本申请和现有技术相比,具有如下有益效果:Compared with the prior art, this application has the following beneficial effects:
与现有技术相比,本发明包括:确定文档的使用信息,获取所述文档中多个元素间的层叠关系;基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息。本发明能够向用户推荐适合文档使用场合信息、文档特性信息的配色方案,优化了文档显示的视觉效果。本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Compared with the prior art, the present invention includes: determining the usage information of a document, obtaining the stacking relationship between multiple elements in the document; based on the stacking relationship, according to the usage information of the document, determining the color attribute information suitable for the usage information. The present invention can recommend to the user a color scheme suitable for the document usage occasion information and document characteristic information, and optimizes the visual effect of the document display. Other features and advantages of the present invention will be explained in the subsequent description, and partly become obvious from the description, or can be understood by implementing the present invention. The objects and other advantages of the present invention can be realized and obtained through the structures particularly pointed out in the description, claims and drawings.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为现有技术的配色的风格示意图;FIG1 is a schematic diagram of a color matching style in the prior art;
图2为现有技术的主题颜色的显示内容示意图;FIG. 2 is a schematic diagram of display content of theme colors in the prior art;
图3为本发明实施例的文档视觉效果的推荐方法的流程图;3 is a flow chart of a method for recommending document visual effects according to an embodiment of the present invention;
图4为本发明实施例的文档视觉效果的推荐装置的结构示意图。FIG. 4 is a schematic diagram of the structure of a device for recommending document visual effects according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合附图及实施例对本申请的技术方案进行更详细的说明。The technical solution of the present application will be described in more detail below with reference to the accompanying drawings and embodiments.
需要说明的是,如果不冲突,本申请实施例以及实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that, if there is no conflict, the embodiments of the present application and the various features in the embodiments can be combined with each other, all within the protection scope of the present application. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
如图3所示,本发明实施例还提供一种文档视觉效果的推荐方法,包括:As shown in FIG3 , an embodiment of the present invention further provides a method for recommending document visual effects, including:
S101、确定文档的使用信息,获取所述文档中多个元素间的层叠关系;S101, determining usage information of a document, and obtaining a stacking relationship between multiple elements in the document;
S102、基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息。S102: Based on the stacking relationship and according to the usage information of the document, determine color matching attribute information suitable for the usage information.
所述多个元素间层叠关系包括:元素彼此不重叠、元素存在部分重叠、元素完全重叠、元素包含但不重叠(如视觉上被包含的元素穿透包含元素,位于包含元素上);The stacking relationship between the multiple elements includes: the elements do not overlap each other, the elements partially overlap, the elements completely overlap, and the elements contain but do not overlap (such as the contained element visually penetrates the containing element and is located on the containing element);
所述文档可以包括幻灯片文档;所述元素可包括文档中的标题框、内容框、内容框中的内容。The document may include a slide document; the elements may include a title box, a content box, and content in the content box in the document.
本发明实施例中,步骤S101中所述使用信息包括以下的一项或者多项:文档使用场合信息、文档特性信息、用户历史使用信息、用户偏好配色信息。In the embodiment of the present invention, the usage information in step S101 includes one or more of the following: document usage occasion information, document characteristic information, user history usage information, and user preference color matching information.
本发明实施例中,根据文档使用场合、文档特性、用户喜好确定适用的配色,实现自动染色自动完成配色方案。In the embodiment of the present invention, the applicable color scheme is determined according to the document usage occasion, document characteristics, and user preferences, and automatic coloring is implemented to automatically complete the color scheme.
本发明实施例中,步骤S101中所述获取文档中多个元素间的层叠关系,包括:In the embodiment of the present invention, the step S101 of obtaining the stacking relationship between multiple elements in the document includes:
从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtaining the stacking relationship between multiple elements from a document that solidifies the description of the stacking relationship between the elements;
或,or,
从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Gets the stacking relationship between multiple elements from a document that can edit the stacking relationship between elements.
将不同元素间的层叠关系固化写入文档,如写入幻灯片自带文档,可丰富文档程序的现有功能,优化了文档程序的用户体验;将不同元素间的层叠关系写入可编辑文档,利于用户按照所需对元素间的层叠关系进行调整,使用灵活方便。Solidifying the stacking relationship between different elements and writing it into a document, such as writing it into a built-in document of a slide show, can enrich the existing functions of the document program and optimize the user experience of the document program; writing the stacking relationship between different elements into an editable document can help users adjust the stacking relationship between elements as needed, which is flexible and convenient to use.
所述文档中写入的层叠关系可以是文档制作人(比如模板设计师、文档使用用户)根据元素的层叠和透视效果计算出来的。The stacking relationship written in the document may be calculated by a document producer (such as a template designer or a document user) based on the stacking and perspective effects of the elements.
本发明实施例中,步骤S102中基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息,包括:In the embodiment of the present invention, in step S102, based on the stacking relationship and according to the usage information of the document, determining the color matching attribute information suitable for the usage information includes:
基于层叠关系,确定每个元素所在的层级;Based on the stacking relationship, determine the level of each element;
对于所确定的层级中的元素,根据所述文档的使用信息,向所述用户推荐每个元素的颜色特征信息。For the elements in the determined hierarchy, color feature information of each element is recommended to the user according to usage information of the document.
本发明实施例中可以向用户推荐每个元素的颜色特征信息,也可以向用户推荐某一个或者某几个目标元素的颜色特征信息,再向用户推荐目标元素的颜色特征信息时,需要预先获取文档中已经配置的配色属性信息,根据文档已经配置的配色属性信息,根据已经配置的配色属性信息和需要配置的目标元素的颜色特征信息的组合关系、可分辨关系、层叠显示关系、对比关系等约束进行推荐。In an embodiment of the present invention, the color feature information of each element can be recommended to the user, and the color feature information of one or several target elements can also be recommended to the user. When recommending the color feature information of the target element to the user, it is necessary to obtain the color attribute information that has been configured in the document in advance, and make recommendations based on the color attribute information that has been configured in the document and based on constraints such as the combination relationship, distinguishability relationship, stacked display relationship, and contrast relationship between the configured color attribute information and the color feature information of the target element that needs to be configured.
本发明实施例中,所述颜色特征信息包括:饱和度、色调、亮度、颜色搭配关系、配色设计类别、文档逻辑关系类别。In the embodiment of the present invention, the color feature information includes: saturation, hue, brightness, color matching relationship, color matching design category, and document logical relationship category.
本发明实施例以幻灯片为例,在文档视觉效果推荐方案时,在配色方案库中进行幻灯片配色方案的匹配,选出一个或者多个适配的配色方案。匹配规则举例如下:In the embodiment of the present invention, a slide is taken as an example. When recommending a document visual effect scheme, the slide color scheme is matched in the color scheme library to select one or more suitable color schemes. The matching rules are as follows:
(1)商务场景的选择蓝色、黑色、灰色为主色的方案;(1) For business scenes, choose blue, black, and gray as the main colors;
(2)如果用户喜欢红色,则红色为主色的方案也选出;(2) If the user likes red, then the scheme with red as the main color is also selected;
(3)如果原文档是双主色的,则双主色的方案根据加权加上预设系数;(3) If the original document is dual-primary color, the dual-primary color scheme is weighted and a preset coefficient is added;
(4)如果原文档是双背景色的,则双背景色的方案根据加权加上预设系数(4) If the original document has a dual background color, the dual background color scheme is weighted plus a preset coefficient.
(5)如果原文档的对比逻辑结构比较多,则对比色的方案根据加权加上若干预设系数。(5) If the original document has many contrasting logical structures, the contrasting color scheme is weighted and several preset coefficients are added.
其中配色方案库为预存的若干颜色合适成组使用、颜色之间互相可见、颜色合适层叠显示的配色方案集合。The color scheme library is a collection of pre-stored color schemes in which a number of colors are suitable for group use, the colors are visible to each other, and the colors are suitable for cascading display.
本发明实施例中,所述颜色特征信息包括以下部分:In the embodiment of the present invention, the color feature information includes the following parts:
配色方案里的“颜色”指颜色值,无论用什么记录方式(常见的颜色记录体系有4种,RGB、HSL、HSV、CMYK),例如RGB体系中用饱和度、色调、亮度代表一个颜色,黑色在RGB体系是(255,255,255)。The "color" in the color scheme refers to the color value, regardless of the recording method (there are four common color recording systems: RGB, HSL, HSV, and CMYK). For example, in the RGB system, saturation, hue, and brightness are used to represent a color. The value of black in the RGB system is (255, 255, 255).
颜色值确定后,其代表暖色还是冷色、活泼色还是沉闷色、明度范围也就随之确定。Once the color value is determined, whether it represents a warm or cool color, a lively or dull color, and its brightness range are also determined.
在配色方案里的“颜色搭配关系”包括但不仅限于:The "color matching relationship" in the color scheme includes but is not limited to:
若干颜色合适成组使用、颜色之间互相可见、颜色合适层叠显示、颜色之间是类似关系、颜色之间是对比关系。Several colors are suitable for use in groups, colors are visible to each other, colors are suitable for overlapping display, colors are similar, and colors are contrasting.
其中,“颜色之间互相可见”指后级对象的颜色组成与前级对象的颜色组成满足可分辨条件:当满足可分辨条件时,确定所述显示内容在视觉上可分辨,当不满足可分辨条件时,确定所述显示内容在视觉上不可分辨。Among them, "colors are mutually visible" means that the color composition of the subsequent object and the color composition of the previous object meet the distinguishability condition: when the distinguishability condition is met, it is determined that the displayed content is visually distinguishable; when the distinguishability condition is not met, it is determined that the displayed content is visually indistinguishable.
其中,所述可分辨条件包括:比对后级对象的RGB颜色的组成与所述前级对象的RGB颜色的组成,比对结果大于或者等于分辨阈值。The distinguishable condition includes: comparing the RGB color composition of the subsequent object with the RGB color composition of the preceding object, and the comparison result is greater than or equal to a distinguishing threshold.
本发明实施例中可以将后级对象的RGB颜色的组成的三个分量分别与前级对象的RGB颜色的组成的三个分量做减法获得三个差值,将这三个差值求平方和,获得比对结果,当比对结果大于或者等于预设的分辨阈值时,认为满足可分辨条件,即后级对象与前级对象在视觉上可分辨,当比对结果小于预设的分辨阈值时,认为不满足可分辨条件,即后级对象与前级对象在视觉上不可分辨。例如色阶分辨率为256,颜色1,RGB(255,255,255),颜色2,RGB(199,237,204),颜色1和颜色2的比对结果(255-199)2+(255-237)2+(255-204)2,比对结果与预设阈值比较,获得颜色1和颜色2在视觉上的分辨程度,再进一步与分辨阈值比较,确定在视觉上能否分辨。In the embodiment of the present invention, the three components of the RGB color composition of the subsequent object can be subtracted from the three components of the RGB color composition of the previous object to obtain three differences, and the three differences are squared and summed to obtain a comparison result. When the comparison result is greater than or equal to a preset resolution threshold, it is considered that the distinguishable condition is met, that is, the subsequent object and the previous object are visually distinguishable. When the comparison result is less than the preset resolution threshold, it is considered that the distinguishable condition is not met, that is, the subsequent object and the previous object are visually indistinguishable. For example, the color scale resolution is 256, color 1, RGB (255, 255, 255), color 2, RGB (199, 237, 204), the comparison result of color 1 and color 2 is (255-199) 2 + (255-237) 2 + (255-204) 2 , the comparison result is compared with the preset threshold to obtain the visual resolution of color 1 and color 2, and then further compared with the resolution threshold to determine whether they can be visually distinguished.
显示内容一般可以分为多个视觉层级,例如,2个视觉层级时,可以称为背景和前景,所在层级的对象的颜色可以称为背景色和前景色;多个视觉层级时,按照显示顺序,可以称为第一层级、第二层级……,其中,相邻的或者相间的两级,在后的层级可以称为在前的层级的后级,在前的层级可以称为在后的层级的前级,本发明实施例中的需要使得显示内容背景色必须在前景色上可分辨,后级对象的颜色在前级对象的颜色上可分辨。Display content can generally be divided into multiple visual levels. For example, when there are two visual levels, they can be called background and foreground, and the colors of objects in the levels can be called background color and foreground color. When there are multiple visual levels, they can be called first level, second level, etc. in the order of display. Among them, for two adjacent or alternating levels, the latter level can be called the latter level of the former level, and the former level can be called the former level of the latter level. The requirements in the embodiments of the present invention require that the background color of the displayed content must be distinguishable from the foreground color, and the color of the latter-level object must be distinguishable from the color of the former-level object.
本发明实施例中,述方法之后还包括:In the embodiment of the present invention, the method further comprises:
接收用户配置的目标元素的配色属性信息;Receive color attribute information of the target element configured by the user;
配置目标元素的配色属性信息包括:修改一个或者多个元素的配色属性信息、添加一个或者多个元素的配色属性信息,删除一个或者多个元素的配色属性信息。Configuring the color attribute information of the target element includes: modifying the color attribute information of one or more elements, adding the color attribute information of one or more elements, and deleting the color attribute information of one or more elements.
用户想修改推荐的配色属性信息中的一项或者多项或者用户修改文档的元素或者元素之间的层叠关系时,可以通过修改目标元素的配色属性信息的方式,修改最终的全部元素的配色属性信息。When the user wants to modify one or more items of the recommended color attribute information or the user modifies an element of a document or the stacking relationship between elements, the color attribute information of all elements can be modified by modifying the color attribute information of the target element.
本发明实施例中,所述方法之后还包括:In the embodiment of the present invention, the method further comprises:
根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息。According to the acquired color matching attribute information of all elements of the prepared document, it is determined whether the user has adopted the recommended color matching attribute information.
本发明实施例中,根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息包括:In the embodiment of the present invention, determining whether the user has adopted the recommended color matching attribute information according to the acquired color matching attribute information of all elements of the prepared document includes:
根据获取的制作完成的文档的全部元素的配色属性信息以及推荐的配色属性信息计算相似度;Calculating similarity based on the acquired color attribute information of all elements of the prepared document and the recommended color attribute information;
根据所述相似度以及预设阈值确定用户是否采用了所述推荐的配色属性信息。It is determined whether the user adopts the recommended color matching attribute information according to the similarity and a preset threshold.
本发明实施例可以采用激励机制,鼓励用户使用推荐的的配色属性信息,当确定用户采用了所述推荐的配色属性信息时,则按照预设机制对用户进行激励。The embodiment of the present invention may adopt an incentive mechanism to encourage the user to use the recommended color matching attribute information. When it is determined that the user has adopted the recommended color matching attribute information, the user is incentivized according to a preset mechanism.
本发明实施例中,首先,确定所述制作完成的文档的全部元素的配色属性信息是否为推荐的配色属性信息中的一个;采用的方式为相似度计算的方式,将所述制作完成的文档的全部元素的配色属性信息与所述推荐配色属性信息进行相似度验证;当相似度大于或者等于预设阈值时,确定用户采用了所述推荐推荐配色属性信息,对用户进行激励;当相似度小于预设阈值时,确定用户未采用所述推荐推荐配色属性信息,向用户发出提示信息。In an embodiment of the present invention, first, it is determined whether the color attribute information of all elements of the completed document is one of the recommended color attribute information; the method adopted is a similarity calculation method, and the color attribute information of all elements of the completed document is verified for similarity with the recommended color attribute information; when the similarity is greater than or equal to a preset threshold, it is determined that the user has adopted the recommended color attribute information, and the user is motivated; when the similarity is less than the preset threshold, it is determined that the user has not adopted the recommended color attribute information, and a prompt message is sent to the user.
其中,激励的方式可以为发放平台积分、购物券、皮肤等。Among them, the incentives can be in the form of issuing platform points, shopping coupons, skins, etc.
本发明实施例为了更好的为用户推荐配色方案,预先设定颜色对,一种颜色可以对应一个或者多个颜色对,例如白色和黑色为一对预设的颜色对,白色和深蓝色(具体的颜色由RGB颜色的组成确定)为一对预设的颜色对,白色和红色(具体的颜色由RGB颜色的组成确定)为一对预设的颜色对,例如后级对象的颜色为黑色,前级对象的颜色为黄色。In order to better recommend color schemes for users, the embodiments of the present invention pre-set color pairs, and one color can correspond to one or more color pairs. For example, white and black are a pair of preset color pairs, white and dark blue (the specific colors are determined by the composition of RGB colors) are a pair of preset color pairs, and white and red (the specific colors are determined by the composition of RGB colors) are a pair of preset color pairs. For example, the color of the subsequent object is black, and the color of the preceding object is yellow.
本发明实施例还预先为了更好的视觉效果和美感设定系列色,所述系列色为满足可分辨条件的多个颜色。一种颜色可以对应一个或者多个系列色,例如,红色、黄色、绿色(具体的颜色由RGB颜色的组成确定)为一组系列色,例如同一层级中包括多个填充框,其中一个填充框填充红色后,其他填充框可以选择系列色进行填充,填充为黄色和绿色。The embodiment of the present invention also sets series colors in advance for better visual effects and aesthetics, and the series colors are multiple colors that meet the distinguishable conditions. One color can correspond to one or more series colors, for example, red, yellow, and green (the specific colors are determined by the composition of RGB colors) are a group of series colors. For example, the same level includes multiple fill boxes, and after one fill box is filled with red, other fill boxes can be filled with series colors, such as yellow and green.
颜色之间互相可见:两个存在叠压关系的对象上出现的颜色是互相可见的。Colors are visible to each other: Colors that appear on two overlapping objects are visible to each other.
颜色合适层叠显示:多个存在叠压关系的对象上出现的颜色即是互相可见的。Appropriate color overlay display: the colors that appear on multiple objects that are in an overlapping relationship are visible to each other.
颜色之间是类似关系,根据既定规则,给颜色标识特征。例如:红色和橘色是类似关系。There is a similar relationship between colors. According to the established rules, the colors are given characteristics. For example, red and orange are similar.
颜色之间是对比关系,根据既定规则,给颜色标识特征。例如:红色和绿色是对比关系。There is a contrast relationship between colors. According to the established rules, the colors are given characteristics. For example, red and green are in a contrast relationship.
配色设计类别分为主色、辅色。Color matching design categories are divided into primary colors and secondary colors.
结合文档逻辑结构关系,分为:背景色、蒙板色、字体色、设计效果色、点缀色:Combined with the logical structure of the document, it is divided into: background color, mask color, font color, design effect color, and embellishment color:
1)背景色:来源于幻灯片背景颜色、衬底颜色、背景图片;1) Background color: comes from the slide background color, substrate color, and background image;
2)字体色:在文字、图标上出现过的颜色;2) Font color: the color that appears on text and icons;
3)设计效果色:即其它色,整个文档中去除背景、衬底、蒙板、文字、图标等对象,剩下的对象中出现过的颜色;3) Design effect color: other colors, which are the colors that appear in the remaining objects after removing the background, substrate, mask, text, icon and other objects in the entire document;
4)点缀色:没有在其它组出现过,仅出现在不叠压任何图标或文字的装饰上的颜色;4) Decorative colors: colors that do not appear in other groups and only appear on decorations that do not overlap any icons or texts;
5)蒙板色:没有在其它组出现过,仅在蒙板出现的颜色。5) Mask color: A color that does not appear in other groups and only appears in the mask.
“单色、渐变色”,直接从演示文档的属性里提取。"Single color, gradient color" are directly extracted from the properties of the presentation document.
如图4所示,本发明实施例还提供一种文档视觉效果的推荐装置,包括:As shown in FIG4 , an embodiment of the present invention further provides a document visual effect recommendation device, comprising:
信息获取模块100,用于获取所述文档中多个元素间的层叠关系;The information acquisition module 100 is used to acquire the stacking relationship between multiple elements in the document;
推荐模块200,用于基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息。The recommendation module 200 is used to determine the color matching attribute information suitable for the usage information based on the stacking relationship and the usage information of the document.
本发明实施例中,所述信息获取模块100获取所述文档中多个元素间的层叠关系,包括:In the embodiment of the present invention, the information acquisition module 100 acquires the stacking relationship between multiple elements in the document, including:
从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtaining the stacking relationship between multiple elements from a document that solidifies the description of the stacking relationship between the elements;
或,or,
从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Gets the stacking relationship between multiple elements from a document that can edit the stacking relationship between elements.
本发明实施例中,所述推荐模块200基于所述层叠关系,基于所述层叠关系,根据所述文档的使用信息,确定适于所述使用信息的配色属性信息,包括:In the embodiment of the present invention, the recommendation module 200 determines the color matching attribute information suitable for the usage information based on the stacking relationship and the usage information of the document, including:
基于层叠关系,确定每个元素所在的层级;Based on the stacking relationship, determine the level of each element;
对于所确定的层级中的元素,根据所述文档的使用信息,向所述用户推荐每个元素的颜色特征信息。For the elements in the determined hierarchy, color feature information of each element is recommended to the user according to usage information of the document.
本发明实施例中,所述的装置还包括:In an embodiment of the present invention, the device further comprises:
反馈模块,用于根据获取的制作完成的文档的全部元素的配色属性信息,确定使用者是否采用了推荐的配色属性信息。The feedback module is used to determine whether the user has adopted the recommended color matching attribute information based on the acquired color matching attribute information of all elements of the prepared document.
本发明实施例还提供了一种计算机可读存储介质,所述介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如上实施例所述的文档视觉效果的推荐方法。An embodiment of the present invention further provides a computer-readable storage medium, wherein the medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for recommending document visual effects as described in the above embodiment is implemented.
本发明实施例还提供了一种文档视觉效果的推荐终端,其特征在于,所述终端包括:The embodiment of the present invention further provides a document visual effect recommendation terminal, characterized in that the terminal includes:
存储器,用于存储计算机可读指令;a memory for storing computer readable instructions;
处理器,用于执行所述计算机可读指令,实现如上实施例所述的文档视觉效果的推荐方法。The processor is used to execute the computer-readable instructions to implement the method for recommending the visual effects of the document as described in the above embodiment.
虽然本发明所揭示的实施方式如上,但其内容只是为了便于理解本发明的技术方案而采用的实施方式,并非用于限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭示的核心技术方案的前提下,可以在实施的形式和细节上做任何修改与变化,但本发明所限定的保护范围,仍须以所附的权利要求书限定的范围为准。Although the embodiments disclosed in the present invention are as above, the contents are only embodiments adopted for facilitating the understanding of the technical solution of the present invention, and are not used to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the core technical solution disclosed in the present invention, but the protection scope defined by the present invention shall still be subject to the scope defined in the attached claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910262424.8A CN111783382B (en) | 2019-04-02 | 2019-04-02 | A method and device for recommending document visual effects |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910262424.8A CN111783382B (en) | 2019-04-02 | 2019-04-02 | A method and device for recommending document visual effects |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111783382A CN111783382A (en) | 2020-10-16 |
| CN111783382B true CN111783382B (en) | 2024-06-11 |
Family
ID=72754748
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910262424.8A Active CN111783382B (en) | 2019-04-02 | 2019-04-02 | A method and device for recommending document visual effects |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111783382B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113392268B (en) * | 2021-03-31 | 2024-07-23 | 百果园技术(新加坡)有限公司 | Special effect text rendering method and device, electronic equipment and storage medium |
| CN113641885A (en) * | 2021-07-08 | 2021-11-12 | 北京百度网讯科技有限公司 | Document detection method, device, equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102713950A (en) * | 2009-11-23 | 2012-10-03 | 阿尔卡特朗讯 | Method and system for assisting with colour selection |
| JP2013003906A (en) * | 2011-06-17 | 2013-01-07 | Nippon Telegr & Teleph Corp <Ntt> | Electronic document decoration device and electronic document decoration program |
| CN103026331A (en) * | 2010-06-21 | 2013-04-03 | 微软公司 | Generating recommendations for improving a presentation document |
| CN104395962A (en) * | 2012-06-20 | 2015-03-04 | 微软公司 | Display Documents Based on Author Preferences |
| CN108269295A (en) * | 2016-12-30 | 2018-07-10 | 珠海金山办公软件有限公司 | The method and device that a kind of lantern slide subject color is intelligently quoted |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7928991B2 (en) * | 2006-01-31 | 2011-04-19 | Microsoft Corporation | Color scheme-compatible color selection with hue preservation |
| US7990574B2 (en) * | 2007-07-20 | 2011-08-02 | Eastman Kodak Company | Method and system for converting a document |
| US9336608B2 (en) * | 2010-05-20 | 2016-05-10 | Nec Corporation | Color arrangement checking device, information storage medium storing a computer program thereof, and data processing method |
-
2019
- 2019-04-02 CN CN201910262424.8A patent/CN111783382B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102713950A (en) * | 2009-11-23 | 2012-10-03 | 阿尔卡特朗讯 | Method and system for assisting with colour selection |
| CN103026331A (en) * | 2010-06-21 | 2013-04-03 | 微软公司 | Generating recommendations for improving a presentation document |
| JP2013003906A (en) * | 2011-06-17 | 2013-01-07 | Nippon Telegr & Teleph Corp <Ntt> | Electronic document decoration device and electronic document decoration program |
| CN104395962A (en) * | 2012-06-20 | 2015-03-04 | 微软公司 | Display Documents Based on Author Preferences |
| CN108269295A (en) * | 2016-12-30 | 2018-07-10 | 珠海金山办公软件有限公司 | The method and device that a kind of lantern slide subject color is intelligently quoted |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111783382A (en) | 2020-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20190325626A1 (en) | Graphic design system for dynamic content generation | |
| US7864196B2 (en) | Image display system and server device | |
| US10769830B2 (en) | Transferring vector style properties to a vector artwork | |
| US7616216B2 (en) | Digital content creation system, program product, and storage medium | |
| CN111415396A (en) | An image generation method, device and storage medium | |
| CN109961493A (en) | Banner Picture Generation Method and device on displayed page | |
| US20200402127A1 (en) | Design creation, distribution, and publishing system, process, and method of use | |
| Coelho et al. | Infomages: Embedding data into thematic images | |
| US20160314502A1 (en) | System and method for streamlining the design and development process of multiple advertising units | |
| CN111783382B (en) | A method and device for recommending document visual effects | |
| US10789735B2 (en) | Intelligent systems and methods for producing a dynamic color combination for a design output | |
| US10558745B2 (en) | Information processing apparatus and non-transitory computer readable medium | |
| US8731289B2 (en) | Recoloring images of a web page according to a representative color | |
| Wang et al. | Language-based Photo Color Adjustment for Graphic Designs. | |
| CN111783383B (en) | A method and device for configuring document visual effects | |
| CN113538601B (en) | Image processing method, device, computer equipment and storage medium | |
| JP6623603B2 (en) | Information processing device and program | |
| CN118115627A (en) | Method for generating scene graph and electronic equipment | |
| JP2005031977A (en) | Document processing apparatus, document processing program, and document processing method | |
| CN113822784B (en) | Image processing method and device | |
| Chen et al. | T-Stars-Poster: A Framework for Product-Centric Advertising Image Design | |
| CN111783402B (en) | Method and device for obtaining document visual effect | |
| CN115187697A (en) | A method and system for generating a logo | |
| CN114416089A (en) | Page display method, device, mobile terminal and storage medium | |
| JPH096573A (en) | Method and system for adjusting image color scheme |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |