[go: up one dir, main page]

CN111783402A - Method and device for obtaining visual effects of documents - Google Patents

Method and device for obtaining visual effects of documents Download PDF

Info

Publication number
CN111783402A
CN111783402A CN201910262410.6A CN201910262410A CN111783402A CN 111783402 A CN111783402 A CN 111783402A CN 201910262410 A CN201910262410 A CN 201910262410A CN 111783402 A CN111783402 A CN 111783402A
Authority
CN
China
Prior art keywords
color
relationship
elements
document
stacking
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.)
Granted
Application number
CN201910262410.6A
Other languages
Chinese (zh)
Other versions
CN111783402B (en
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910262410.6A priority Critical patent/CN111783402B/en
Publication of CN111783402A publication Critical patent/CN111783402A/en
Application granted granted Critical
Publication of CN111783402B publication Critical patent/CN111783402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

本申请提出一种文档视觉效果的获取方法和装置,所述方法包括:获取所述文档中多个元素间的层叠关系;基于所述层叠关系,获取全部元素的配色属性信息。获取所述文档中多个元素间的层叠关系;根据所述层叠关系,获得相应层叠中的元素的配色属性。本发明能够在视觉上清楚的界定有层叠关系的多个元素,优化了文档显示的视觉效果。

Figure 201910262410

The present application provides a method and device for obtaining visual effects of a document. The method includes: obtaining a stacking relationship between multiple elements in the document; and obtaining color matching attribute information of all elements based on the stacking relationship. Obtain the stacking relationship between multiple elements in the document; and obtain the color matching attribute of the element in the corresponding stacking according to the stacking relationship. The present invention can clearly define a plurality of elements in a cascading relationship visually, thereby optimizing the visual effect of document display.

Figure 201910262410

Description

一种文档视觉效果的获取方法和装置Method and device for obtaining visual effects of documents

技术领域technical field

本发明涉及文档视觉效果编辑领域,具体涉及一种文档视觉效果的获取方法和装置。The invention relates to the field of document visual effect editing, in particular to a method and device for obtaining document visual effects.

背景技术Background technique

在办公环境中,用户进行广告宣传、产品演示等活动时希望利用图文并茂的方式展示给参与者,经常使用演示文稿、简报、文字、图片等加上一些特效动态显示效果制作出来的可播放文件进行展示。经常使用的软件包括PowerPoint、Office等,上述软件在显示内容编辑的过程中,用户可以对各个对象进行颜色、轮廓、大小等进行编辑,在配色时,最为常见的方式是如图1-2所示,根据配色的风格预先设定主题颜色,用户在制作显示内容时,可以从设定的主题颜色中选取颜色,也可以自定义颜色,其中主题颜色相当于定义了一组格子,每个格子有编号,每个编号对应一个该主题的颜色,不同的配色风格就是在不同的格子里填不同的颜色。文档的显示界面通常包括多种元素,如标题框、内容框,而内容框中又可包括多种类型的内容:如文字,背景图像。在实际文档的应用中,文档显示界面上的多个元素可能出现叠加显示的情况。目前没有从现有的演示文档(模板)里提取配色的方案,影响用户体验。In the office environment, users want to use pictures and texts to show participants when conducting advertising, product demonstrations and other activities. They often use presentations, briefings, text, pictures, etc. with some special effects. exhibit. Frequently used software includes PowerPoint, Office, etc. In the process of editing the display content of the above software, users can edit the color, outline, size, etc. of each object. When color matching, the most common way is as shown in Figure 1-2. Display, the theme color is preset according to the color matching style. When creating the display content, the user can select the color from the set theme color or customize the color. The theme color is equivalent to defining a set of grids, and each grid There are numbers, each number corresponds to a color of the theme, and different color matching styles are filled with different colors in different grids. The display interface of a document usually includes various elements, such as a title box and a content box, and the content box can include various types of content, such as text and background images. In the application of an actual document, multiple elements on the document display interface may be superimposed and displayed. Currently, there is no color scheme for extracting color schemes from existing presentation documents (templates), which affects the user experience.

发明内容SUMMARY OF THE INVENTION

本申请提供一种文档视觉效果的获取方法和装置,针对现有配色方法的不足,实现自动化的获取显示内容配色。The present application provides a method and device for obtaining the visual effect of a document, aiming at the deficiencies of the existing color matching methods, and realizes the automatic color matching of the obtained display content.

采取的技术方案如下:The technical solutions adopted are as follows:

一种文档视觉效果的获取方法,包括:A method for obtaining visual effects of a document, including:

获取所述文档中多个元素间的层叠关系;Obtain the cascading relationship between multiple elements in the document;

基于所述层叠关系,获取全部元素的配色属性信息。Based on the cascading relationship, the color matching attribute information of all elements is acquired.

优选地,所述获取文档中多个元素间的层叠关系,包括:Preferably, the obtaining of the stacking relationship between multiple elements in the document includes:

从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtain the cascading relationship between multiple elements from a document that solidifies the cascading relationship between elements;

或,or,

从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Get the cascade relationship between multiple elements from the document that can edit the cascade relationship between elements.

优选地,基于所述层叠关系,获取全部元素的配色属性信息,包括:Preferably, based on the cascading relationship, obtain color matching attribute information of all elements, including:

基于层叠关系,确定每个元素所在的层级;Based on the cascading relationship, determine the level where each element is located;

对于所确定的层级中的元素,标记所述元素所在的层级和所述元素的颜色特征信息。For the elements in the determined hierarchy, the hierarchy where the element is located and the color feature information of the element are marked.

优选地,所述颜色特征信息包括:饱和度、色调、亮度、颜色搭配关系、配色设计类别、文档逻辑关系类别。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:

设置颜色特征信息,为目标颜色设置颜色搭配关系、配色设计类别、文档逻辑关系类别。Set the color feature information, and set the color matching relationship, color matching design category, and document logical relationship category for the target color.

优选地,所述颜色搭配关系包括以下至少之一:Preferably, the color matching relationship includes at least one of the following:

多个颜色在同一层级的组合关系;The combination relationship of multiple colors at the same level;

后级对象的颜色组成与前级对象的颜色组成的可分辨关系;The distinguishable relationship between the color composition of the next-level object and the color composition of the previous-level object;

多个颜色的层叠显示关系;The stacked display relationship of multiple colors;

多个颜色之间的相似关系;Similarity between multiple colors;

多个颜色之间的对比关系。Contrast relationship between multiple colors.

本发明还提供一种文档视觉效果的获取装置,包括:The present invention also provides a device for obtaining visual effects of a document, comprising:

层叠关系获取模块,用于获取所述文档中多个元素间的层叠关系;a cascading relationship acquiring module, configured to acquire the cascading relationship between multiple elements in the document;

提取模块,用于基于所述层叠关系,获取全部元素的配色属性信息。An extraction module, configured to obtain color matching attribute information of all elements based on the cascading relationship.

优选地,所述层叠关系获取模块获取所述文档中多个元素间的层叠关系,包括:Preferably, the cascading relationship acquiring module acquires the cascading relationship between multiple elements in the document, including:

从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtain the cascading relationship between multiple elements from a document that solidifies the cascading relationship between elements;

或,or,

从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Get the cascade relationship between multiple elements from the document that can edit the cascade relationship between elements.

优选地,所述提取模块基于所述层叠关系,获取全部元素的配色属性信息,包括:Preferably, the extraction module obtains color matching attribute information of all elements based on the cascading relationship, including:

基于层叠关系,确定每个元素所在的层级;Based on the cascading relationship, determine the level where each element is located;

对于所确定的层级中的元素,标记所述元素所在的层级和所述元素的颜色特征信息。For the elements in the determined hierarchy, the hierarchy where the element is located and the color feature information of the element are marked.

优选地,所述的装置还包括:Preferably, the device further comprises:

设置模块,用于设置颜色特征信息,为目标颜色设置颜色搭配关系、配色设计类别、文档逻辑关系类别。The setting module is used to set the color feature information, and set the color matching relationship, color matching design category, and document logical relationship category for the target color.

本申请和现有技术相比,具有如下有益效果:Compared with the prior art, the present application has the following beneficial effects:

与现有技术相比,本发明包括:获取所述文档中多个元素间的层叠关系;根据所述层叠关系,获得相应层叠中的元素的配色属性。本发明能够在视觉上清楚的界定有层叠关系的多个元素,优化了文档显示的视觉效果。本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Compared with the prior art, the present invention includes: obtaining the stacking relationship among multiple elements in the document; and obtaining the color matching properties of the elements in the corresponding stacking according to the stacking relationship. The present invention can clearly define a plurality of elements in a cascading relationship visually, thereby optimizing the visual effect of document display. Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the description, claims and drawings.

附图说明Description of drawings

图1为现有技术的配色的风格示意图;Fig. 1 is the style schematic diagram of the color matching of the prior art;

图2为现有技术的主题颜色的显示内容示意图;Fig. 2 is the display content schematic diagram of the theme color of the prior art;

图3为本发明实施例的文档视觉效果的获取方法的流程图;3 is a flowchart of a method for obtaining a document visual effect according to an embodiment of the present invention;

图4为本发明实施例的文档视觉效果的获取装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for obtaining a visual effect of a document according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图及实施例对本申请的技术方案进行更详细的说明。The technical solutions 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 various features in the embodiments can be combined with each other, which are all within the protection scope of the present application. Additionally, although a logical order is shown in the flowchart, in some cases steps shown or described may be performed in an order different from that herein.

如图3所示,本发明实施例还提供一种文档视觉效果的获取方法,包括:As shown in FIG. 3 , an embodiment of the present invention further provides a method for obtaining a visual effect of a document, including:

S101、获取所述文档中多个元素间的层叠关系;S101. Obtain a stacking relationship between multiple elements in the document;

S102、基于所述层叠关系,获取全部元素的配色属性信息。S102. Obtain color matching attribute information of all elements based on the stacking relationship.

所述多个元素间层叠关系包括:元素彼此不重叠、元素存在部分重叠、元素完全重叠、元素包含但不重叠(如视觉上被包含的元素穿透包含元素,位于包含元素上);The stacking relationship between the multiple elements includes: elements do not overlap with each other, elements partially overlap, elements overlap completely, and elements are included but not overlapped (for example, visually included elements penetrate the included elements and are located on the included elements);

所述文档可以包括幻灯片文档;所述元素可包括文档中的标题框、内容框、内容框中的内容。The document may include a slideshow document; the elements may include a title box, a content box, and content in a content box in the document.

本发明实施例中,步骤S101中所述获取文档中多个元素间的层叠关系,包括:In this embodiment of the present invention, the step S101 to obtain the stacking relationship between multiple elements in the document includes:

从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtain the cascading relationship between multiple elements from a document that solidifies the cascading relationship between elements;

或,or,

从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Get the cascade relationship between multiple elements from the document that can edit the cascade relationship between elements.

将不同元素间的层叠关系固化写入文档,如写入幻灯片自带文档,可丰富文档程序的现有功能,优化了文档程序的用户体验;将不同元素间的层叠关系写入可编辑文档,利于用户按照所需对元素间的层叠关系进行调整,使用灵活方便。Write the cascading relationship between different elements into a document, such as writing a slideshow's own document, which can enrich the existing functions of the document program and optimize the user experience of the document program; write the cascading relationship between different elements into an editable document , which is convenient for users to adjust the cascading relationship between elements according to their needs, and is flexible and convenient to use.

所述文档中写入的层叠关系可以是文档制作人(比如模板设计师、文档使用用户)根据元素的层叠和透视效果计算出来的。The stacking relationship written in the document may be calculated by a document producer (eg, a template designer, a document user) according to the stacking and perspective effects of elements.

本发明实施例中,步骤S102中基于所述层叠关系,获取全部元素的配色属性信息,包括:In the embodiment of the present invention, in step S102, based on the cascading relationship, the color matching attribute information of all elements is acquired, including:

基于层叠关系,确定每个元素所在的层级;Based on the cascading relationship, determine the level where each element is located;

对于所确定的层级中的元素,标记所述元素所在的层级和所述元素的颜色特征信息。For the elements in the determined hierarchy, the hierarchy where the element is located and the color feature information of the element are marked.

本发明实施例将演示文档(模板)里出现过的颜色都提取出来。根据既定规则,对提取出来的颜色标识特征。例如,标记红色是暖色,是活泼色。In the embodiment of the present invention, all colors that appear in the presentation document (template) are extracted. According to the established rules, the extracted color features are identified. For example, marking red as a warm color is a lively color.

本发明实施例中,所述颜色特征信息包括:饱和度、色调、亮度、颜色搭配关系、配色设计类别、文档逻辑关系类别。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 this 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, no matter what recording method is used (there are 4 common color recording systems, RGB, HSL, HSV, CMYK), for example, in the RGB system, saturation, hue, and brightness are used to represent a color, Black is (255, 255, 255) in the RGB system.

颜色值确定后,其代表暖色还是冷色、活泼色还是沉闷色、明度范围也就随之确定。After the color value is determined, whether it represents a warm color or a cool color, a lively color or a dull color, and the brightness range is also determined accordingly.

在配色方案里的“颜色搭配关系”包括但不仅限于:The "color matching relationship" in the color scheme includes but is not limited to:

若干颜色合适成组使用、颜色之间互相可见、颜色合适层叠显示、颜色之间是类似关系、颜色之间是对比关系。Several colors are suitable for use in groups, the colors are visible to each other, the colors are suitable for stacked display, the colors are in a similar relationship, and the colors are in a contrasting relationship.

其中,“颜色之间互相可见”指后级对象的颜色组成与前级对象的颜色组成满足可分辨条件:当满足可分辨条件时,确定所述显示内容在视觉上可分辨,当不满足可分辨条件时,确定所述显示内容在视觉上不可分辨。Wherein, "colors are mutually visible" means that the color composition of the next-level object and the color composition of the previous-level object satisfy the distinguishable condition: when the distinguishable condition is met, it is determined that the display content is visually distinguishable; When the discrimination condition is satisfied, it is determined that the display content is visually indistinguishable.

其中,所述可分辨条件包括:比对后级对象的RGB颜色的组成与所述前级对象的RGB颜色的组成,比对结果大于或者等于分辨阈值。Wherein, the distinguishable condition includes: comparing the composition of the RGB color of the rear-level object with the composition of the RGB color of the preceding-level object, and the comparison result is greater than or equal to the 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 of the rear-level object can be respectively subtracted from the three components of the RGB color of the front-level object to obtain three difference values, and the three difference values are squared and summed. , obtain the comparison result, when the comparison result is greater than or equal to the preset resolution threshold, it is considered that the distinguishable condition is satisfied, that is, the latter-level object and the former-level object are visually distinguishable, and when the comparison result is less than the preset resolution threshold value , it is considered that the distinguishable condition is not met, that is, the latter-level object and the former-level 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 (255-199) 2 +(255-237) 2 +(255- 204) 2. Compare the comparison result with a preset threshold to obtain the degree of visual discrimination between Color 1 and Color 2, and then further compare with the discrimination threshold to determine whether they can be visually distinguished.

显示内容一般可以分为多个视觉层级,例如,2个视觉层级时,可以称为背景和前景,所在层级的对象的颜色可以称为背景色和前景色;多个视觉层级时,按照显示顺序,可以称为第一层级、第二层级……,其中,相邻的或者相间的两级,在后的层级可以称为在前的层级的后级,在前的层级可以称为在后的层级的前级,本发明实施例中的需要使得显示内容背景色必须在前景色上可分辨,后级对象的颜色在前级对象的颜色上可分辨。The 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 the objects at the level can be called background color and foreground color; when there are multiple visual levels, they can be displayed according to the display order. , can be referred to as the first level, the second level..., wherein, adjacent or alternate levels, the latter level can be called the latter level of the former level, and the former level can be called the latter level For the previous level of the hierarchy, it is required in this embodiment of the present invention that the background color of the display content must be distinguishable from the foreground color, and the color of the next-level object is distinguishable from the color of the previous-level object.

本发明实施例中,所述方法之前还包括:In the embodiment of the present invention, before the method further includes:

设置颜色特征信息,为目标颜色设置颜色搭配关系、配色设计类别、文档逻辑关系类别。Set the color feature information, and set the color matching relationship, color matching design category, and document logical relationship category for the target color.

本发明实施例中,所述颜色搭配关系包括以下至少之一:In the embodiment of the present invention, the color matching relationship includes at least one of the following:

多个颜色在同一层级的组合关系;The combination relationship of multiple colors at the same level;

后级对象的颜色组成与前级对象的颜色组成的可分辨关系;The distinguishable relationship between the color composition of the next-level object and the color composition of the previous-level object;

多个颜色的层叠显示关系;The stacked display relationship of multiple colors;

多个颜色之间的相似关系;Similarity between multiple colors;

多个颜色之间的对比关系。Contrast relationship between multiple colors.

本发明实施例中,设置可以预设颜色对,所述颜色对为满足可分辨条件的两个颜色。In this embodiment of the present invention, a color pair may be preset in the setting, and the color pair is two colors that satisfy the distinguishable condition.

本发明实施例预先设定颜色对,一种颜色可以对应一个或者多个颜色对,例如白色和黑色为一对预设的颜色对,白色和深蓝色(具体的颜色由RGB颜色的组成确定)为一对预设的颜色对,白色和红色(具体的颜色由RGB颜色的组成确定)为一对预设的颜色对,例如后级对象的颜色为黑色,前级对象的颜色为黄色。In this embodiment of the present invention, color pairs are preset, and one color may correspond to one or more color pairs. For example, white and black are a preset color pair, and white and dark blue (the specific color is determined by the composition of RGB colors) is a pair of preset color pairs, white and red (the specific color is determined by the composition of RGB colors) is a pair of preset color pairs, for example, the color of the rear-level object is black, and the color of the front-level object is yellow.

本发明实施例还预先为了更好的视觉效果和美感设定系列色,所述系列色为满足可分辨条件的多个颜色。一种颜色可以对应一个或者多个系列色,例如,红色、黄色、绿色(具体的颜色由RGB颜色的组成确定)为一组系列色,例如同一层级中包括多个填充框,其中一个填充框填充红色后,其他填充框可以选择系列色进行填充,填充为黄色和绿色。In the embodiment of the present invention, a series of colors are also set in advance for better visual effect and aesthetic feeling, and the series of colors are a plurality of colors that satisfy the distinguishable condition. A color can correspond to one or more series of colors. For example, red, yellow, and green (the specific color is determined by the composition of RGB colors) is a series of colors. For example, the same level includes multiple filled boxes, one of which is filled with boxes. After filling with red, other fill boxes can be filled with a series of colors, filled with yellow and green.

本发明实施例中,如果若干颜色合适成组使用,结合结构化定义提取一系列规则,例如:In this embodiment of the present invention, if several colors are suitable for use in groups, a series of rules are extracted in combination with the structured definition, for example:

1)在结构化定义里,成组被使用过的视为一组;1) In the structured definition, grouping is used as a group;

2)在同一张幻灯片页里所有幻灯片一级的装饰上出现过的颜色视为一组;2) The colors that have appeared on the first-level decorations of all slides in the same slide page are regarded as a group;

颜色之间互相可见:两个存在叠压关系的对象上出现的颜色是互相可见的。Colors are visible to each other: The colors that appear on two overlapping objects are visible to each other.

颜色合适层叠显示:多个存在叠压关系的对象上出现的颜色即是互相可见的。Appropriate overlay display of colors: The colors that appear on multiple objects that are overlayed are visible to each other.

颜色之间是类似关系,根据既定规则,给颜色标识特征。例如:红色和橘色是类似关系。There is a similar relationship between colors, and according to established rules, colors are identified with characteristics. For example: red and orange are similar.

颜色之间是对比关系,根据既定规则,给颜色标识特征。例如:红色和绿色是对比关系。There is a contrasting relationship between colors, and according to established rules, colors are identified with characteristics. For example: red and green are contrasting relationships.

配色设计类别分为主色、辅色。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: derived from slide background color, substrate color, and background image;

2)字体色:在文字、图标上出现过的颜色;2) Font color: the color that has appeared on the text and icon;

3)设计效果色:即其它色,整个文档中去除背景、衬底、蒙板、文字、图标等对象,剩下的对象中出现过的颜色;3) Design effect color: other colors, the background, substrate, mask, text, icon and other objects are removed from the entire document, and the color that has appeared in the remaining objects;

4)点缀色:没有在其它组出现过,仅出现在不叠压任何图标或文字的装饰上的颜色;4) Embellishment color: It has not appeared in other groups, but only appears on decorations that do not superimpose any icons or text;

5)蒙板色:没有在其它组出现过,仅在蒙板出现的颜色。5) Mask color: a color that has not appeared in other groups but only in the mask.

“单色、渐变色”,直接从演示文档的属性里提取。"Single color, gradient color", extracted directly from the properties of the demo document.

如图4所示,本发明实施例还提供一种文档视觉效果的获取装置,包括:As shown in FIG. 4 , an embodiment of the present invention further provides a device for obtaining visual effects of a document, including:

层叠关系获取模块100,用于获取所述文档中多个元素间的层叠关系;A stacking relationship obtaining module 100, configured to obtain a stacking relationship between multiple elements in the document;

提取模块200,用于基于所述层叠关系,获取全部元素的配色属性信息。The extraction module 200 is configured to obtain color matching attribute information of all elements based on the stacking relationship.

本发明实施例中,所述层叠关系获取模块100获取所述文档中多个元素间的层叠关系,包括:In this embodiment of the present invention, the stacking relationship obtaining module 100 obtains the stacking relationship between multiple elements in the document, including:

从固化描述元素间层叠关系的文档中获取多个元素间的层叠关系;Obtain the cascading relationship between multiple elements from a document that solidifies the cascading relationship between elements;

或,or,

从可编辑元素间层叠关系的文档中获取多个元素间的层叠关系。Get the cascade relationship between multiple elements from the document that can edit the cascade relationship between elements.

本发明实施例中,所述提取模块200基于所述层叠关系,获取全部元素的配色属性信息,包括:In this embodiment of the present invention, the extraction module 200 acquires color matching attribute information of all elements based on the stacking relationship, including:

基于层叠关系,确定每个元素所在的层级;Based on the cascading relationship, determine the level where each element is located;

对于所确定的层级中的元素,标记所述元素所在的层级和所述元素的颜色特征信息。For the elements in the determined hierarchy, the hierarchy where the element is located and the color feature information of the element are marked.

本发明实施例中,所述的装置还包括:In this embodiment of the present invention, the device further includes:

设置模块,用于设置颜色特征信息,为目标颜色设置颜色搭配关系、配色设计类别、文档逻辑关系类别。The setting module is used to set the color feature information, and set the color matching relationship, color matching design category, and document logical relationship category for the target color.

本发明实施例还提供了一种计算机可读存储介质,所述介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现如上实施例所述的文档视觉效果的获取方法。Embodiments of the present invention further provide a computer-readable storage medium, where computer-executable instructions are stored in the medium, and when the computer-executable instructions are executed by a processor, the method for obtaining the visual effect of a document described in the above embodiments is implemented.

本发明实施例还提供了一种文档视觉效果的获取终端,其特征在于,所述终端包括:An embodiment of the present invention also provides a terminal for obtaining visual effects of a document, wherein the terminal includes:

存储器,用于存储计算机可读指令;memory for storing computer-readable instructions;

处理器,用于执行所述计算机可读指令,实现如上实施例所述的文档视觉效果的获取方法。The processor is configured to execute the computer-readable instructions to implement the method for obtaining the visual effect of the document described in the above embodiments.

虽然本发明所揭示的实施方式如上,但其内容只是为了便于理解本发明的技术方案而采用的实施方式,并非用于限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭示的核心技术方案的前提下,可以在实施的形式和细节上做任何修改与变化,但本发明所限定的保护范围,仍须以所附的权利要求书限定的范围为准。Although the embodiments disclosed in the present invention are as above, the contents thereof are only embodiments adopted to facilitate the understanding of the technical solutions of the present invention, and are not intended to limit the present invention. Any person skilled in the art to which the present invention belongs, without departing from the core technical solution disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the protection scope limited by the present invention is still The scope as defined by the appended claims shall prevail.

Claims (10)

1. A method for acquiring a visual effect of a document is characterized by comprising the following steps:
acquiring a stacking relation among a plurality of elements in the document;
and acquiring color matching attribute information of all the elements based on the stacking relation.
2. The method of claim 1, wherein: the obtaining of the stacking relationship among the plurality of elements in the document includes:
acquiring the stacking relation among a plurality of elements from a document for solidifying the stacking relation among the description elements;
or the like, or, alternatively,
and acquiring the stacking relation among the elements from the document of the stacking relation among the editable elements.
3. The method of claim 2, wherein: based on the stacking relationship, obtaining color matching attribute information of all the elements, including:
determining the hierarchy of each element based on the stacking relation;
for an element in the determined hierarchy, marking the hierarchy in which the element is located and color feature information of the element.
4. The method of claim 3, wherein: the color feature information includes: saturation, hue, brightness, color collocation relationship, color matching design category, document logic relationship category.
5. The method of any of claims 1 to 4, wherein: the method is also preceded by:
and setting color characteristic information, and setting a color matching relationship, a color matching design category and a document logic relationship category for the target color.
6. The method of claim 5, wherein: the color matching relationship comprises at least one of the following:
the combination relationship of a plurality of colors at the same level;
a discernable relationship of a color composition of a back level object to a color composition of a front level object;
a stacked display relationship of a plurality of colors;
similarity relationships between the plurality of colors;
a contrast relationship between the plurality of colors.
7. An apparatus for obtaining a visual effect of a document, comprising:
the stacking relation obtaining module is used for obtaining the stacking relation among a plurality of elements in the document;
and the extraction module is used for acquiring the color matching attribute information of all the elements based on the stacking relation.
8. The apparatus of claim 7, wherein the stacking relation obtaining module obtains the stacking relation between the plurality of elements in the document, and comprises:
acquiring the stacking relation among a plurality of elements from a document for solidifying the stacking relation among the description elements;
or the like, or, alternatively,
and acquiring the stacking relation among the elements from the document of the stacking relation among the editable elements.
9. The apparatus of claim 8, wherein: the extracting module obtains color matching attribute information of all the elements based on the stacking relationship, and comprises the following steps:
determining the hierarchy of each element based on the stacking relation;
for an element in the determined hierarchy, marking the hierarchy in which the element is located and color feature information of the element.
10. The apparatus of any of claims 7 to 9, wherein: further comprising:
and the setting module is used for setting color characteristic information and setting color matching relationship, color matching design category and document logic relationship category for the target color.
CN201910262410.6A 2019-04-02 2019-04-02 Method and device for obtaining document visual effect Active CN111783402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910262410.6A CN111783402B (en) 2019-04-02 2019-04-02 Method and device for obtaining document visual effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910262410.6A CN111783402B (en) 2019-04-02 2019-04-02 Method and device for obtaining document visual effect

Publications (2)

Publication Number Publication Date
CN111783402A true CN111783402A (en) 2020-10-16
CN111783402B CN111783402B (en) 2023-08-08

Family

ID=72754735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910262410.6A Active CN111783402B (en) 2019-04-02 2019-04-02 Method and device for obtaining document visual effect

Country Status (1)

Country Link
CN (1) CN111783402B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191670A1 (en) * 2010-02-02 2011-08-04 Xerox Corporation Method and system for specialty imaging effect generation using multiple layers in documents
CN103092940A (en) * 2013-01-10 2013-05-08 昆山百润科技有限公司 File structure, digital signature method and digital signature validation method with verifiable reconfiguration
CN105393246A (en) * 2013-06-28 2016-03-09 微软技术许可有限责任公司 Select and edit visual elements with property groups
CN105489191A (en) * 2014-09-18 2016-04-13 北京三星通信技术研究有限公司 Display device and display method thereof
WO2017120882A1 (en) * 2016-01-15 2017-07-20 Microsoft Technology Licensing, Llc. Determining appearances for elements displayed on user interface
CN107784000A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 A kind of Shipping Options Page methods of exhibiting, browser and user equipment
US20180113576A1 (en) * 2016-10-25 2018-04-26 International Business Machines Corporation Navigation by usage locations in a document editing application
CN109345612A (en) * 2018-09-13 2019-02-15 腾讯数码(天津)有限公司 A kind of image generating method, device, equipment and storage medium
CN109445657A (en) * 2018-10-17 2019-03-08 天津字节跳动科技有限公司 Document edit method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191670A1 (en) * 2010-02-02 2011-08-04 Xerox Corporation Method and system for specialty imaging effect generation using multiple layers in documents
CN103092940A (en) * 2013-01-10 2013-05-08 昆山百润科技有限公司 File structure, digital signature method and digital signature validation method with verifiable reconfiguration
CN105393246A (en) * 2013-06-28 2016-03-09 微软技术许可有限责任公司 Select and edit visual elements with property groups
CN105489191A (en) * 2014-09-18 2016-04-13 北京三星通信技术研究有限公司 Display device and display method thereof
WO2017120882A1 (en) * 2016-01-15 2017-07-20 Microsoft Technology Licensing, Llc. Determining appearances for elements displayed on user interface
CN107784000A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 A kind of Shipping Options Page methods of exhibiting, browser and user equipment
US20180113576A1 (en) * 2016-10-25 2018-04-26 International Business Machines Corporation Navigation by usage locations in a document editing application
CN109345612A (en) * 2018-09-13 2019-02-15 腾讯数码(天津)有限公司 A kind of image generating method, device, equipment and storage medium
CN109445657A (en) * 2018-10-17 2019-03-08 天津字节跳动科技有限公司 Document edit method and device

Also Published As

Publication number Publication date
CN111783402B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN100573590C (en) Editing equipment and editing methods
US20190325626A1 (en) Graphic design system for dynamic content generation
CN101213576B (en) Album production device and method
US20050152613A1 (en) Image processing apparatus, image processing method and program product therefore
CN102375981B (en) Image processing apparatus
US10067646B2 (en) Color selector for desktop publishing
JP2005151282A (en) Apparatus and method of image processing, and program
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
CN104951495A (en) Apparatus and method for managing representative video images
TWI747006B (en) Picture display method, picture processing method and system
CN112927314B (en) Image data processing method, device and computer equipment
US10558745B2 (en) Information processing apparatus and non-transitory computer readable medium
JP5526874B2 (en) Image processing apparatus and image processing program
CN111783382A (en) Method and device for recommending visual effects of documents
CN111783383B (en) A method and device for configuring document visual effects
CN111783402B (en) Method and device for obtaining document visual effect
JP6623603B2 (en) Information processing device and program
CN120070663A (en) Commodity graph background changing method, device, equipment and medium based on Lora model training
JP2006135664A (en) Picture processor and program
CN116466952B (en) Control visual effect element adjusting method and device, electronic equipment and storage medium
CN111242836B (en) Target image generation method, device and equipment for generating advertisement image
CN113822784B (en) Image processing method and device
CN113538601A (en) Image processing method, apparatus, computer equipment, and storage medium
CN113744365B (en) Text intelligent layout method, system and storage medium based on significance perception
CN115187697A (en) Sign generation method and system

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