CN107589926B - Slide diagram matching method and device - Google Patents

Slide diagram matching method and device Download PDF

Info

Publication number
CN107589926B
CN107589926B CN201610537155.8A CN201610537155A CN107589926B CN 107589926 B CN107589926 B CN 107589926B CN 201610537155 A CN201610537155 A CN 201610537155A CN 107589926 B CN107589926 B CN 107589926B
Authority
CN
China
Prior art keywords
diagram
current
type
structure type
matching
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
Application number
CN201610537155.8A
Other languages
Chinese (zh)
Other versions
CN107589926A (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 CN201610537155.8A priority Critical patent/CN107589926B/en
Publication of CN107589926A publication Critical patent/CN107589926A/en
Application granted granted Critical
Publication of CN107589926B publication Critical patent/CN107589926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The embodiment of the invention discloses a slide diagram matching method and device, which solve the technical problems that at present, after a user modifies the page size of a presentation, the typesetting layout automatically becomes unattractive, and particularly different types of diagrams can be deformed or cannot be matched after the diagram type is changed, so that the experience is low. The slide diagram matching method of the embodiment of the invention comprises the following steps: extracting a structural distribution of the current diagram type; determining corresponding cross-type diagrams of the same structure according to the structure distribution; and matching and replacing the extracted content of the current graph with the determined cross-type graph according to the structural distribution.

Description

Slide diagram matching method and device
Technical Field
The invention relates to the technical field of computers, in particular to a slide graphic matching method and device.
Background
The demonstration manuscript software (PPT) can be used for demonstrating on a projector or a computer by a user, and can also be used for printing the demonstration manuscript to manufacture a film so as to be applied to wider fields. With the PPT, not only can presentations be created, but also face-to-face conferences, teleconferences, or presentations can be presented to viewers over the internet. Things made by PPT are called demonstration manuscripts, and the format suffix name of the demonstration manuscripts is as follows: ppt, pptx; or may be saved as: pdf, picture format, etc., a complete set of PPT files typically contains: leader, animation, PPT cover, introduction, catalog, transition page, chart page, picture page, text page, back cover, trailer animation, etc.; the adopted materials are as follows: text, pictures, charts, animations, sounds, movies, etc.; the international leading PPT design companies include: the megapellery, poweredtemplates, presentationload, etc.; the application level of PPT in China is gradually improved, and the application field is wider and wider; PPT is becoming an important part of people's work and life, and plays a leading role in the fields of work reports, enterprise propaganda, product recommendation, wedding celebration, project bidding, management consultation, education training and the like.
At present, after a user modifies the page size of a presentation, the typesetting layout automatically becomes unattractive, and particularly different types of diagrams can be deformed or cannot be matched after the diagram types are changed, so that the technical problem of low experience is caused.
Disclosure of Invention
The slide diagram matching method and device provided by the embodiment of the invention solve the technical problems that at present, after a user modifies the page size of a presentation, the typesetting layout automatically becomes unattractive, and especially different types of diagrams can be deformed or cannot be matched after the diagram type is changed, so that the experience is low.
The embodiment of the invention provides a slide diagram matching method, which comprises the following steps:
extracting a structural distribution of the current diagram type;
determining corresponding cross-type diagrams of the same structure according to the structure distribution;
and matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structural distribution.
Preferably, before extracting the structural distribution of the current illustration type, the method further comprises:
an illustration cross-type match instruction is obtained.
Preferably, the determining of the cross-type diagrams of the corresponding same structures according to the structure distribution specifically includes:
determining at least one cross-type graph of the corresponding same structure from the storage unit according to the structure distribution.
Preferably, the determining of at least one cross-type graph of the corresponding same structure from the storage unit according to the structure distribution specifically includes:
when the determined cross-type graphs are plural, randomly determining one cross-type graph with the same structure corresponding to the structure distribution in the plural cross-type graphs or according to a preset sequence.
Preferably, the matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structural distribution specifically includes:
extracting the content of the current diagram according to the structural distribution;
and matching and replacing the current graph with the determined cross-type graph, and filling the content into the determined cross-type graph according to the structural distribution.
The slide diagram matching device provided by the embodiment of the invention comprises:
the extracting unit is used for extracting the structure distribution of the current graphic type;
the determining unit is used for determining the cross-type diagrams of the corresponding same structures according to the structure distribution;
and the matching unit is used for matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution.
Preferably, the slide show matching apparatus further comprises:
and the obtaining unit is used for obtaining the graphic cross-type matching instruction.
Preferably, the determining unit is specifically configured to determine, from the storage unit, at least one cross-type diagram of the corresponding same structure according to the structure distribution.
Preferably, the determining unit is further specifically configured to determine, when the determined cross-type graphs are plural, one cross-type graph with the same structure corresponding to the structure distribution in the plural cross-type graphs randomly or according to a preset order.
Preferably, the matching unit specifically includes:
an extracting subunit, configured to extract the content of the current diagram according to the structural distribution;
and the matching subunit is used for matching and replacing the current diagram with the determined cross-type diagram and filling the content into the determined cross-type diagram according to the structural distribution.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a slide diagram matching method and a slide diagram matching device, wherein the slide diagram matching method comprises the following steps: extracting a structural distribution of the current diagram type; determining corresponding cross-type diagrams of the same structure according to the structure distribution; and matching and replacing the extracted content of the current graph with the determined cross-type graph according to the structural distribution. In this embodiment, by extracting the structure distribution of the current diagram type, then determining the corresponding cross-type diagram with the same structure according to the structure distribution, and finally matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution, the technical problem that at present, after a user modifies the page size of a presentation, the layout automatically becomes unattractive, especially different types of diagrams may be deformed or may not be matched after the diagram type is changed, resulting in low experience is solved.
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 only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an embodiment of a slide show matching method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another embodiment of a slide show matching method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a slide show matching apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another embodiment of a slide show matching apparatus according to an embodiment of the present invention;
FIGS. 5(a) and (b) are schematic diagrams of an application example;
fig. 6(a) and (b) are schematic diagrams of another application example.
Detailed Description
The slide diagram matching method and device provided by the embodiment of the invention solve the technical problems that at present, after a user modifies the page size of a presentation, the typesetting layout automatically becomes unattractive, and especially different types of diagrams can be deformed or cannot be matched after the diagram type is changed, so that the experience is low.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, an embodiment of a slide show matching method according to an embodiment of the present invention includes:
101. extracting a structural distribution of the current diagram type;
in this embodiment, when the user needs to replace the template of the current slide, which involves a change in the illustration type, or directly replace the illustration type, it is necessary to extract the structure distribution of the current illustration type.
102. Determining corresponding cross-type diagrams of the same structure according to the structure distribution;
after the structure distribution of the current diagram type is extracted, the cross-type diagram of the corresponding same structure needs to be determined according to the structure distribution.
103. And matching and replacing the extracted content of the current graph with the determined cross-type graph according to the structural distribution.
After the cross-type diagrams with the same structure are determined according to the structure distribution, the extracted content of the current diagram needs to be matched and replaced with the determined cross-type diagrams according to the structure distribution.
In this embodiment, by extracting the structure distribution of the current diagram type, then determining the corresponding cross-type diagram with the same structure according to the structure distribution, and finally matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution, the technical problem that at present, after a user modifies the page size of a presentation, the layout automatically becomes unattractive, especially different types of diagrams may be deformed or may not be matched after the diagram type is changed, resulting in low experience is solved.
In the above, the process of the slide show matching method is described in detail, and in the following, referring to fig. 2, an additional process is described in detail, and another embodiment of the slide show matching method provided by the embodiment of the present invention includes:
201. acquiring an illustration cross-type matching instruction;
in this embodiment, when a user needs to replace a template of a current slide, which involves a change of a drawing type therein, or directly replaces the drawing type, a drawing cross-type matching instruction needs to be obtained, where the drawing cross-type matching instruction may be triggered when the slide template is replaced indirectly, or may be a command for directly triggering a replacement of the drawing type.
202. Extracting a structural distribution of the current diagram type;
after the graph cross-type matching instruction is acquired, the structure distribution of the current graph type needs to be extracted.
203. Determining at least one cross-type graph of the corresponding same structure from the storage unit according to the structure distribution;
after the structure distribution of the current diagram type is extracted, at least one cross-type diagram of the corresponding same structure needs to be determined from the storage unit according to the structure distribution.
It should be noted that, when the determined cross-type graphs are plural, a cross-type graph of the same structure corresponding to the structure distribution is determined randomly or in a preset order in the plural cross-type graphs.
204. Extracting the content of the current diagram according to the structural distribution;
after the determination of at least one cross-type graph corresponding to the same structure is performed from the storage unit according to the structure distribution, the content of the current graph needs to be extracted according to the structure distribution.
The storage unit in this embodiment may be a database or the like, and is specifically used for storing the illustration content.
205. And matching and replacing the current graph with the determined cross-type graph, and filling the content into the determined cross-type graph according to the structural distribution.
After the content of the current diagram is extracted according to the structural distribution, the current diagram needs to be matched and replaced with the determined cross-type diagram, and the content is filled into the determined cross-type diagram according to the structural distribution.
As shown in fig. 5(a) and 5(b), the tree structure type shown in fig. 5(a) is 1 to 4, and the general formula shown in fig. 5(b) is also 1 to 4, which can be matched.
As shown in fig. 6(a) and fig. 6(b), structurally, fig. 6(a) shows that the pyramid structure type is 1- >2- >3- >4, fig. 6(b) shows a step formula, and the pyramid structure type is also 1- >2- >3- >4, which can be matched.
In this embodiment, by extracting the structure distribution of the current diagram type, then determining the corresponding cross-type diagram with the same structure according to the structure distribution, and finally matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution, the technical problem that at present, after a user modifies the page size of a presentation, the layout automatically becomes unattractive, especially different types of diagrams may be deformed or may not be matched after the diagram type is changed, resulting in low experience is solved.
Referring to fig. 3, an embodiment of a slide show matching apparatus according to an embodiment of the present invention includes:
an extracting unit 301, configured to extract a structure distribution of the current illustration type;
a determining unit 302, configured to determine, according to the structure distribution, cross-type diagrams corresponding to the same structure;
and the matching unit 303 is configured to match and replace the extracted content of the current diagram with the determined cross-type diagram according to the structural distribution.
In this embodiment, the extraction unit 301 extracts the structure distribution of the current diagram type, the determination unit 302 determines the cross-type diagram with the same structure according to the structure distribution, and the matching unit 303 matches and replaces the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution, so as to solve the technical problem that the layout is automatically changed to be unattractive after the user modifies the page size of the presentation, especially different types of diagrams are deformed or cannot be matched after the diagram type is changed, and the experience is low.
In the above, the elements of the slide show matching apparatus are described in detail, and in the following, referring to fig. 4, additional elements are described in detail, and another embodiment of the slide show matching apparatus provided in the embodiment of the present invention includes:
an obtaining unit 401, configured to obtain an illustration cross-type matching instruction.
An extracting unit 402, configured to extract a structure distribution of the current illustration type;
the determining unit 403 is configured to determine cross-type diagrams of corresponding same structures according to the structure distribution, the determining unit 403 is specifically configured to determine at least one cross-type diagram of corresponding same structures from the storage unit according to the structure distribution, and the determining unit 403 is further specifically configured to determine, when the determined cross-type diagrams are plural, one cross-type diagram of the same structure corresponding to the structure distribution in the plural cross-type diagrams at random or according to a preset order.
And the matching unit 404 is used for matching and replacing the extracted content of the current diagram with the determined cross-type diagram according to the structural distribution.
The matching unit 404 specifically includes:
an extraction subunit 4041, configured to extract the content of the current diagram according to the structural distribution;
the matching sub-unit 4042 is configured to match and replace the current diagram with the determined cross-type diagram, and fill the content into the determined cross-type diagram according to the structural distribution.
In this embodiment, the structure distribution of the current diagram type is extracted by the extraction unit 402, then the determination unit 403 determines the cross-type diagram with the same structure according to the structure distribution, and finally the matching unit 404 matches and replaces the extracted content of the current diagram with the determined cross-type diagram according to the structure distribution, so as to solve the technical problem that the layout is automatically unattractive after the user modifies the page size of the presentation, especially different types of diagrams are deformed or cannot be matched after the diagram type is changed, and the experience is low.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A slide show matching method, comprising:
extracting the structure type of the current diagram;
determining the diagram which is the same as the structure type of the current diagram and is different from the layout mode;
extracting the content of the current diagram according to the structure type;
and replacing the current graph with the determined graph, and filling the content into the determined graph according to the structure type.
2. The slide show matching method of claim 1, wherein extracting the structure type of the current show further comprises:
an illustration cross-layout matching instruction is obtained.
3. The slide show matching method according to claim 1, wherein the step of determining the picture having the same structure type as the current picture and different layout manner specifically comprises:
and determining at least one diagram which is the same as the structure type of the current diagram and has a different layout mode from the storage unit according to the structure type of the current diagram.
4. The slide show matching method according to claim 3, wherein the step of determining at least one of the shows that is the same as the structure type of the current show and has a different layout manner from the storage unit according to the structure type of the current show specifically comprises:
when the determined diagram is a plurality of diagrams, a diagram which is the same as the structure type of the current diagram and is different from the layout mode is determined in the plurality of diagrams randomly or according to a preset sequence.
5. A slide show matching apparatus, comprising:
a first extraction unit, configured to extract a structure type of a current diagram;
the determining unit is used for determining the diagram which is the same as the structure type of the current diagram and has a different layout mode;
a second extracting unit, configured to extract the content of the current diagram according to the structure type;
and the matching unit is used for replacing the current graph with the determined graph and filling the content into the determined graph according to the structure type.
6. The slide show matching apparatus according to claim 5, wherein said slide show matching apparatus further comprises:
and the obtaining unit is used for obtaining the matching instruction of the diagram cross-layout mode before extracting the structure type of the current diagram.
7. The slide show matching apparatus according to claim 5, wherein the determining unit is configured to determine at least one of the shows that is the same as the structure type of the current show and has a different layout manner from the storage unit according to the structure type of the current show.
8. The slide show matching apparatus according to claim 7, wherein the determining unit is further configured to determine, when the determined number of the plurality of the figures is plural, a figure having the same structure type as the current figure and a different layout manner from the current figure randomly or in a preset order among the plurality of figures.
CN201610537155.8A 2016-07-08 2016-07-08 Slide diagram matching method and device Active CN107589926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610537155.8A CN107589926B (en) 2016-07-08 2016-07-08 Slide diagram matching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610537155.8A CN107589926B (en) 2016-07-08 2016-07-08 Slide diagram matching method and device

Publications (2)

Publication Number Publication Date
CN107589926A CN107589926A (en) 2018-01-16
CN107589926B true CN107589926B (en) 2020-11-13

Family

ID=61045946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610537155.8A Active CN107589926B (en) 2016-07-08 2016-07-08 Slide diagram matching method and device

Country Status (1)

Country Link
CN (1) CN107589926B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853246A (en) * 2010-06-14 2010-10-06 深圳市万兴软件有限公司 Method and device for converting document format
CN104298727A (en) * 2014-09-26 2015-01-21 广州金山移动科技有限公司 Template matching method and device based on document
CN105740213A (en) * 2014-12-10 2016-07-06 珠海金山办公软件有限公司 Presentation template providing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060200737A1 (en) * 2005-03-01 2006-09-07 Seiko Epson Corporation Image display device, image display system, and a program for executing an image displaying method by a computer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853246A (en) * 2010-06-14 2010-10-06 深圳市万兴软件有限公司 Method and device for converting document format
CN104298727A (en) * 2014-09-26 2015-01-21 广州金山移动科技有限公司 Template matching method and device based on document
CN105740213A (en) * 2014-12-10 2016-07-06 珠海金山办公软件有限公司 Presentation template providing method and device

Also Published As

Publication number Publication date
CN107589926A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US9953010B2 (en) Template-based page layout for hosted social magazines
CN110458918B (en) Method and device for outputting information
CN108269295B (en) Method and device for intelligently quoting theme colors of slides
CN105046678B (en) A kind of device, method and picture processing system for realizing picture splicing
CN110276636B (en) Advertisement batch delivery method and device, storage medium and electronic device
US11079987B2 (en) Creation of component templates
CN105094775B (en) Webpage generation method and device
US11544346B2 (en) System and method for generation of starter websites
CN114116054B (en) Page control management method and device, computer equipment and storage medium
CN114357350A (en) Webpage visual editing method and related device
CN108121693B (en) Slide beautifying method and device
CN107544989B (en) Presentation document layered processing method and device
CN106201461A (en) Generation method, system and the background server at a kind of interface
CN107590112B (en) Slide template proportion configuration method and device
CN107589926B (en) Slide diagram matching method and device
CN104317581B (en) Display method and electronic equipment
CN109949090B (en) Client recommendation method and device, electronic equipment and medium
CN116527994A (en) Video generation method and device and electronic equipment
CN107423051B (en) Data configuration method and device
CN111401006A (en) Document playing method, device and system and computer readable storage medium
CN107544985B (en) Method and device for matching special effects of presentation document
CN108268436B (en) Method and device for beautifying and matching slides
CN104572598A (en) Typesetting method and device for digitally published product
CN112835577A (en) Data processing method, data processing device, computer equipment and readable storage medium
CN111914226A (en) Background picture generation 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
GR01 Patent grant
GR01 Patent grant