WO2017114015A1 - 一种幻灯片识别的方法及装置 - Google Patents

一种幻灯片识别的方法及装置 Download PDF

Info

Publication number
WO2017114015A1
WO2017114015A1 PCT/CN2016/105885 CN2016105885W WO2017114015A1 WO 2017114015 A1 WO2017114015 A1 WO 2017114015A1 CN 2016105885 W CN2016105885 W CN 2016105885W WO 2017114015 A1 WO2017114015 A1 WO 2017114015A1
Authority
WO
WIPO (PCT)
Prior art keywords
slide
placeholder
recognized
information
layout
Prior art date
Application number
PCT/CN2016/105885
Other languages
English (en)
French (fr)
Inventor
胡娟
王茜
周显
庄湧
Original Assignee
北京金山办公软件股份有限公司
珠海金山办公软件有限公司
广州金山移动科技有限公司
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 北京金山办公软件股份有限公司, 珠海金山办公软件有限公司, 广州金山移动科技有限公司 filed Critical 北京金山办公软件股份有限公司
Priority to US15/780,077 priority Critical patent/US10698943B2/en
Priority to AU2016380716A priority patent/AU2016380716B2/en
Priority to JP2018529114A priority patent/JP6661014B2/ja
Priority to CA3006001A priority patent/CA3006001C/en
Priority to ES16880805T priority patent/ES2966414T3/es
Priority to EP16880805.3A priority patent/EP3399430B1/en
Publication of WO2017114015A1 publication Critical patent/WO2017114015A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/412Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present application relates to the field of office software, and in particular, to a method and device for identifying a slide.
  • Presentations are an important part of office software. Users can not only demonstrate on a projector or computer, but also print out the presentation and make it into film for use in a wider range of applications.
  • a presentation consists of multiple slides, with different slides having different layouts. You need to identify the slide layout before making a slideshow or a slide layout change.
  • An object of the embodiments of the present application is to provide a method and apparatus for identifying a slide to automatically recognize a slide layout.
  • the embodiment of the present application discloses a method for identifying a slide, which is applied to an electronic device, and includes:
  • the electronic device is a server
  • the server stores a plurality of layout slide templates
  • the server can send the slide template to the terminal device, the method further includes:
  • the electronic device is a terminal device, and the terminal device stores a plurality of layout slide templates, and the method further includes:
  • the object includes a placeholder
  • the feature information of the object in the slide to be recognized includes: quantity information of the placeholder in the slide, size information of the placeholder in the slide, and a slide show At least one of type information of the placeholder in the slice, positional information of the placeholder in the slide, and sequence information of the placeholder in the slide.
  • the acquiring the feature information of the object in the slide to be recognized from the document source code includes:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code includes:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code includes:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code includes:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code includes:
  • the object includes a placeholder
  • the feature information of the object includes: a connection element between the placeholders, a number element corresponding to the placeholder, a distance between the placeholders, and an arrangement of the placeholders. form;
  • Determining, according to the acquired feature information, a layout of the slide to be recognized including:
  • determining that the layout of the slide to be recognized is a pyramid type
  • the layout of the slide to be recognized is not a step type, a loop type, a total score, a contrast type, a pyramid type, or a tree type, determining that the layout of the slide to be recognized is a side-by-side type .
  • the method further includes:
  • the embodiment of the present application further discloses a device for identifying a slide, which is applied to an electronic device, and the device includes:
  • a document source code obtaining module for obtaining a document source code of the slide to be recognized
  • An object feature information obtaining module configured to acquire feature information of an object in the slide to be recognized from the document source code
  • the slide layout determining module is configured to determine a layout of the slide to be recognized according to the acquired feature information.
  • the electronic device is a server, and the server stores a plurality of layout slide templates, and the server can send the slide template to the terminal device, the device further includes:
  • a first search module configured to search for a slide template having the determined layout in the electronic device
  • a first template sending module configured to send the found slide template to the terminal device, In order to enable the terminal device to copy the content in each object in the slide to be recognized into the corresponding object in the received slide template, the changed slide is obtained.
  • the electronic device is a terminal device, and the terminal device stores a plurality of layout slide templates, and the device further includes:
  • a second search module configured to search for a slide template having the determined layout in the terminal device
  • a content copying module configured to copy content in each object in the slide to be recognized into a corresponding object in the slide template to obtain a changed slide.
  • the feature information of the object in the slide to be recognized includes: quantity information of the placeholder in the slide, size information of the placeholder in the slide, and type of the placeholder in the slide. At least one of information, position information of a placeholder in a slide, and sequence information of a placeholder in a slide, when the feature information is quantity information of a placeholder in a slide, the object feature Information acquisition module, including:
  • a quantity information obtaining sub-module configured to search for parameter names of all the placeholders in the source code of the document, and obtain quantity information of the placeholders in the slide to be identified;
  • the object feature information acquiring module includes:
  • a size information obtaining sub-module configured to find a parameter value corresponding to the size parameter name of each placeholder, and obtain size information of each placeholder in the slide to be identified;
  • the object feature information acquiring module includes:
  • a type information obtaining submodule configured to determine a type to which each parameter name representing the placeholder in the source code of the document belongs, and obtain type information of each placeholder in the slide to be identified;
  • the object feature information acquisition module includes:
  • a location information obtaining submodule configured to determine, from the source code of the document, a vertical distance from an upper left corner of each of the placeholders to a left side of the slide base and a vertical distance from the upper side of the slide, and the two The vertical distance is determined as the position information of each placeholder in the slide;
  • the object feature information acquiring module includes:
  • a sequence information obtaining sub-module configured to add a virtual two-dimensional plane rectangular coordinate system according to a preset rule in the slide to be recognized, and obtain a center point position of each placeholder, passing through a center point of each placeholder Positioning a straight line in the two-dimensional plane rectangular coordinate system with a preset slope, the straight line intersecting the y-axis of the two-dimensional plane rectangular coordinate system at a point, in order of the ordinate value of the intersection with the y-axis
  • the ordinate value of the y-axis intersection is large, the corresponding sequence number of the placeholder is small. If there are multiple placeholders corresponding to the intersection of the y-axis, press left to right. The order determines the sorting number of the placeholder, and obtains the order information of each placeholder in the slide to be recognized.
  • the object includes a placeholder
  • the feature information of the object includes: a connection element between the placeholders, a number element corresponding to the placeholder, a distance between the placeholders, and an arrangement of the placeholders. form;
  • the slide layout determining module includes:
  • a step-by-step determining sub-module for determining that the layout of the slide to be recognized is a step type when there is a connection element with directivity between each placeholder and the direction of each connection element is the same;
  • the bit symbols have corresponding number elements, determining that the layout of the slide to be recognized is a step type
  • a circular determination submodule for having a directional connection element between each placeholder and any placeholder having only one connection element pointing to the placeholder and pointing to the other by the placeholder When the connection element of the placeholder is used, determining that the layout of the slide to be recognized is a cyclic type
  • a total fraction determining submodule configured to determine a layout of the slide to be recognized as a total fraction when the distance from the placeholder to the other placeholders is equal;
  • a comparison determining submodule configured to determine, when each of the placeholders is arranged in a two-dimensional list, a layout of the slide to be recognized as a comparison
  • a pyramid determining submodule configured to determine, when each placeholder is arranged in a triangle or a trapezoid, a layout of the slide to be recognized as a pyramid;
  • a tree determining submodule configured to determine, when a connection element from a placeholder to a plurality of placeholders exists between each placeholder, a layout of the slide to be recognized is a tree
  • a side-by-side determination sub-module configured to determine the to-be-identified when the layout of the to-be-identified slide is not a step type, a loop type, a total score, a contrast type, a pyramid type, or a tree type
  • the layout of the slides is side by side.
  • the device further comprises:
  • a modification instruction receiving module configured to receive a modification instruction sent by the terminal device to the changed slide
  • a thumbnail sending module configured to send a thumbnail of the plurality of slide templates corresponding to the modification instruction to the terminal device
  • the identifier information receiving module is configured to receive, by the terminal device, identifier information of a slide template corresponding to the thumbnail selected by the user;
  • a second template sending module configured to send a slide template having the identification information to the terminal device, so that the terminal device copies the content in each object in the changed slide to have the The modified slide is obtained from the corresponding object in the slide template of the identification information.
  • the present application also provides an electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; a power circuit for powering each circuit or device; a memory for storing executable program code; the processor running a program corresponding to the executable program code by reading executable program code stored in the memory for execution of the program Apply the method of slide recognition provided by the embodiment.
  • the embodiment of the present application provides an application program for executing the method for the slide recognition provided by the embodiment of the present application at runtime.
  • the embodiment of the present application provides a storage medium for storing executable program code, and the executable program code is executed to execute the method for the slide recognition provided by the embodiment of the present application.
  • the embodiment of the present application provides a method for identifying a slide and
  • the device is applied to an electronic device, the method includes obtaining a document source code of a slide to be recognized, and acquiring feature information of the object in the slide to be recognized from the document source code, according to the acquired The feature information determines a layout of the slide to be recognized. Since the embodiment of the present application can automatically acquire the feature information of the object in the slide to be identified through the slide document source code, the efficiency and accuracy of identifying the slide layout are significantly improved compared with the manual recognition, and at the same time Automated processing of slides based on slide layouts is possible.
  • FIG. 1 is a schematic flowchart of a method for identifying a slide according to Embodiment 1 of the present application;
  • FIG. 2 is a schematic diagram of a slide to be identified according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of determining a sequence of placeholders in a slide according to an embodiment of the present application
  • FIG. 4A is a schematic diagram of a step layout according to an embodiment of the present application.
  • 4B is a schematic diagram of another step type layout provided by an embodiment of the present application.
  • 4C is a schematic diagram of a cyclic layout provided by an embodiment of the present application.
  • 4D is a schematic diagram of a total fraction layout according to an embodiment of the present application.
  • 4E is a schematic diagram of a pyramid layout provided by an embodiment of the present application.
  • 4F is a schematic diagram of a contrasting layout provided by an embodiment of the present application.
  • 4G is a schematic diagram of a tree layout provided by an embodiment of the present application.
  • 4H is a schematic diagram of a side-by-side layout provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for identifying a slide according to Embodiment 2 of the present application.
  • 6A is a schematic diagram of a slide template provided by an embodiment of the present application.
  • FIG. 6B is a view of copying the contents of the placeholder in the slide to be recognized shown in FIG. 2 to FIG. 6A
  • FIG. 7 is a schematic flowchart diagram of a method for identifying a slide according to Embodiment 3 of the present application.
  • FIG. 8 is a schematic flowchart diagram of a method for identifying a slide according to Embodiment 4 of the present application.
  • FIG. 9 is a schematic diagram of a slide show after the terminal device receives a thumbnail of a plurality of slide templates sent by the server and only the number of placeholders is modified;
  • FIG. 10 is a schematic diagram of a slide show after the terminal device receives a plurality of thumbnails of a slide template that has only been modified by a server and has a placeholder layout modified;
  • FIG. 11 is a schematic structural diagram of an apparatus for identifying a slide according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for identifying a slideshow according to Embodiment 1 of the present application. The method is applied to an electronic device, and the method may include the following steps:
  • the object may include: a placeholder in the slide to be recognized, and the feature information of the object may be the quantity information of the placeholder in the slide, and the size information of the placeholder in the slide.
  • placeholder 1 there are three placeholders in the slide, namely placeholder 1, placeholder 2, and placeholder 3;
  • location information of placeholder 1 is: horizontal distance from the upper left corner of the slide 1.55 cm, vertical distance 0.99 cm from the upper left corner of the slide, placeholder 1 type is plain text, placeholder 1 size: height 3.18 cm, width 22.86 cm; position information of placeholder 2: from the top left of the slide
  • the horizontal horizontal distance is 1.39 cm
  • the vertical distance from the upper left corner of the slide is 4.96 cm
  • the placeholder 2 type is a table
  • the placeholder 2 is: height 12.37 cm, width 11.22 cm
  • the position information of the placeholder 3 is: the horizontal distance from the upper left corner of the slide is 14.49 cm
  • the vertical distance from the upper left corner of the slide is 6.55 cm
  • the placeholder type 3 is the picture
  • the placeholder 3 is the size: the height is 9.13 cm.
  • the width is 9.14 cm.
  • the object may also include: a text box, a shape, a table, and the like.
  • the feature information for these objects is available from the source code of the document.
  • the feature information of the object can be obtained by the electronic device by reading the source code of the slide document.
  • the feature information of the object obtained by the electronic device may be different each time the user changes the instruction of the slide change, and is not limited to the feature information of the object described above.
  • the acquiring the feature information of the object in the slide to be recognized from the document source code may be:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code may be:
  • the keyword search method is used in the attribute code of the parameter name, for example, by finding the parameter value corresponding to the keyword “width” “height” to determine the placeholder.
  • the size of the character is used in the attribute code of the parameter name, for example, by finding the parameter value corresponding to the keyword “width” “height” to determine the placeholder.
  • the acquiring the feature information of the object in the slide to be recognized from the document source code may be:
  • the acquiring the feature information of the object in the slide to be recognized from the document source code may be:
  • the position information of the placeholder 1 is: a horizontal distance of 1.55 cm from the upper left corner of the slide, and a vertical distance of 0.99 cm from the upper left corner of the slide.
  • the position information of the placeholder 2 is: from the upper left of the slide.
  • the horizontal horizontal distance is 1.39 cm and the vertical distance from the upper left corner of the slide is 4.96 cm.
  • the position information of the placeholder 3 is: the horizontal distance from the upper left corner of the slide is 14.49 cm, and the vertical distance from the upper left corner of the slide is 6.55 cm.
  • the acquiring the feature information of the object in the slideshow to be identified from the document source code may be:
  • Add a virtual two-dimensional plane rectangular coordinate system according to a preset rule in the slide to be recognized, and obtain the center point position of each placeholder, passing the center point position of each placeholder, with a preset slope at a line is formed in the two-dimensional plane rectangular coordinate system, and the straight line intersects with the y-axis of the two-dimensional plane rectangular coordinate system at a point, and the order of the ordinate value of the intersection with the y-axis is in the order of the corresponding placeholder. If the ordinate value of the y-axis intersection is large, the corresponding sequence number of the placeholder is small. If there are multiple placeholders corresponding to the intersection of the y-axis, the order of the placeholders is determined in the order of left small and large.
  • Sequence number the order information of each placeholder in the slide to be recognized.
  • the center point of the four placeholders in the figure is a straight line with a certain slope, and the y-axis of the Cartesian coordinate system respectively intersects the point (0, y1). ), point (0, y2) and point (0, y3), because y1>y2>y3, you can define placeholder 1 as the first placeholder for sorting
  • placeholder 3 is the fourth placeholder for sorting Symbol, since the intersection of the line between the placeholder 2 and the center point of the placeholder 4 and the y axis is (0, y2), and the placeholder 2 is to the left of the placeholder 4, the placeholder 2 is sorted.
  • the serial number is smaller than the sorting number of the placeholder 4.
  • the sorting number is 1 for the placeholder 1
  • the sorting number is 2 for the placeholder 2
  • the sorting number is 3 for the placeholder 4
  • the sorting number is 4
  • the placeholder is 3.
  • S103 Determine, according to the acquired feature information, a layout of the slide to be recognized.
  • the slide layout is a layout layout method displayed by a slide determined by the feature information of the object in the slide, and the text layout type and the image are both in the slide.
  • An object of type or, for example, a side-by-side layout, meaning that the object in the slide is in multiple lines or Multiple columns are displayed side by side in a way that is typeset.
  • the layout of the slides contains a wide range of content, and the specific content and meaning of the layout can be further determined according to the needs of the specific use.
  • the number information of the placeholders in the slide the size information of the placeholders in the slide, the type information of the placeholders in the slide, and the placeholders in the slide. Determining, by one or more of the position information and the sequence information of the placeholders in the slide, determining the layout of the slide, for example, detecting that the number of placeholders in the slide to be recognized is greater than 2, and the placeholder
  • the type of the character has both a text type and a picture type, and it can be determined that the slide layout to be recognized is a graphic layout.
  • the format of the determined slide may be a side by side, a step or a contrast, or the like.
  • the format of the determined slide may be a side by side, a step type, a contrast type, or the like.
  • the determined layout of the slide is a step, and the content in the table may include a number and a specific description text, and the number may be manually
  • the entered number can also be a number displayed because the cell in the table is set to the item number attribute; when the table has only one row or one column, and the text in the table is not numbered, then the determined slide
  • the layout is side-by-side; when the first row or the first column of the table has multiple titles, the format of the determined slide is a contrast, wherein the determination method of the title is:
  • the filled cell is a title, or
  • the font of the first row of the table or the font of the first column of the cell is larger than the font of the font of the other row and column cells, it is determined that the first row of cells or the first column of cells is the title, or
  • the font of the first row of the table or the font of the first column of the cell is different from the glyph of the text of the other row and column cells, if the glyph is set to be bold, tilted, etc., the first is determined.
  • the line cell or the text in the first column of cells is the title.
  • the embodiment of the present application is directed to the document source code of the slide, reading the feature information of the object from the source code of the document, and determining the layout of the slide according to the feature information, and implementing the slide version.
  • the automatic operation of the type recognition solves the problem that the recognition of the slide layout is inefficient due to the manual operation.
  • the feature information of the object may include: a connection element between the placeholders, a number element corresponding to the placeholder, a distance between the placeholders, and an arrangement form of the placeholder;
  • Step S103 may include:
  • connection element with directivity between each placeholder and the direction of each connection element is the same, it is determined that the layout of the slide to be recognized is a step; as shown in FIG. 4A is a connection with directivity.
  • An element and each connected element points to the same step-by-step slide layout diagram;
  • FIG. 4B is a schematic diagram of a step slide layout having a corresponding numbered element
  • FIG. 4C is a schematic diagram of a circular slide layout
  • FIG. 4D is a schematic diagram of the total fraction slide layout
  • FIG. 4F is a schematic diagram of a comparative slide layout
  • FIG. 4E is a schematic diagram of a pyramid slide layout
  • the layout of the slide to be recognized is a tree; as shown in FIG. 4G, a schematic diagram of the tree slide layout;
  • FIG. 4H shows a schematic diagram of a side-by-side slide layout.
  • the server when the electronic device is a server, the server may locally store a plurality of layout slide templates, and the server may use the first embodiment of the present application.
  • the electronic device is a server, and the server stores a plurality of layout slide templates, and the server can send the slide template to the terminal device, as shown in FIG.
  • the method can also include:
  • FIG. 5 is a schematic flowchart of a method for identifying a slideshow according to Embodiment 2 of the present application.
  • the method is shown in the first embodiment, wherein the electronic device is a server, and the server can store a slideshow of multiple layouts locally.
  • the server may use the method shown in the first embodiment of the present application to search for a slide template of the determined layout in a locally stored slide template, and send the template to the terminal device. Including steps:
  • S502 Acquire feature information of the object in the to-be-identified slide from the document source code.
  • S503 Determine, according to the acquired feature information, a layout of the slide to be recognized.
  • the feature information of the object in the slide to be recognized is compared with the feature information of the object in the slide template of the plurality of layouts, and a slide template matching the slide to be recognized is determined.
  • the server can identify the feature information of the object in the slide template, and can match and match the feature information of the object of the slide to be identified according to a preset matching judgment scheme, and filter out the slide template that meets the condition.
  • the object may include a placeholder
  • the feature information of the object in the slide to be recognized includes: quantity information of the placeholder in the slide, size information of the placeholder in the slide, and the slide in the slide Type information for placeholders, location information for placeholders in slides, and placeholders in slides At least one of the order information.
  • Step S504 may include the processes described in steps a to e:
  • Step a comparing the number of placeholders in the slide to be identified with the number of placeholders in each slide template, obtaining the number of placeholders and the to-be-identified The slide template with the same number of placeholders in the slide;
  • Step b comparing the size of the placeholder in the slide to be identified with the size of the placeholder in the same order in the obtained slide template to obtain a size comparison result
  • Step c comparing the type of the placeholder in the slide to be identified with the type of the placeholder in the same order in the obtained slide template, to obtain a type comparison result;
  • Step d comparing the position information of the placeholder in the slide to be recognized with the position information of the placeholder in the same order in the obtained slide template, to obtain a position comparison result;
  • Step e scoring each obtained slide template according to the size comparison result, the type comparison result, and the position comparison result, and determining a slide template whose score meets the preset score requirement is matched with the slide to be recognized Slide template.
  • a slide template that meets the preset score requirements can be a slide template or multiple slide templates.
  • S505 Send the found slide template to the terminal device, so that the terminal device copies the content in each object in the to-be-identified slide to the corresponding object in the received slide template. , get the changed slides.
  • the terminal device After the terminal device receives the slide template sent by the server, the terminal device copies the content in each object in the slide to be recognized to the slide matching the slide to be recognized. In the same order of objects in the template, get the changed slides.
  • FIG. 2 is a slide to be recognized
  • FIG. 6A is a slide template matching the slide to be recognized
  • the object is a placeholder
  • the sorting number of placeholder 1 is 1, the sorting number of placeholder 2 is 2, and the sorting number of placeholder 3 is 3
  • the placeholder The sorting number of the symbol 1a is 1, the sorting number of the placeholder 2a is 2, and the sorting number of the placeholder 3a is 3, and the content of the placeholder in the slide shown in FIG. 2 is copied to the slide shown in FIG. 6A.
  • the slice template the inside of the placeholder in Figure 2 The contents are copied to the placeholders having the same placeholder sort number in FIG. 6A, and the resulting changed slide is as shown in FIG. 6B.
  • the server stores a plurality of layout slide templates, and the server, after identifying the layout of the slide to be recognized, The template in the slide template is searched for the template with the identified slide layout, and the template is sent to the terminal device to enable the terminal device to replace the placeholder content, thereby improving the efficiency of recognizing the use of the slide layout.
  • the terminal device when the electronic device is a terminal device, the terminal device may locally store a plurality of layout slide templates, and the terminal device may use the method shown in Embodiment 1 of the present application.
  • the locally stored slide template is searched for the slide template of the determined layout, and the content in the slide object to be recognized is copied into the corresponding object of the slide template.
  • the electronic device is a terminal device, and the terminal device stores a plurality of layout slide templates.
  • the method shown in FIG. 1 may further include:
  • FIG. 7 is a schematic flowchart of a method for identifying a slideshow according to Embodiment 3 of the present application.
  • the electronic device is a terminal device, and the terminal device may locally store multiple formats.
  • a slide template the terminal device may use the method shown in the first embodiment of the present application to search for a slide template of the determined layout in a locally stored slide template, and copy the content in the slide object to be identified to In the corresponding object of the slide template, the method may include the steps of:
  • S702 Acquire feature information of the object in the to-be-identified slide from the document source code.
  • S703 Determine, according to the acquired feature information, a layout of the slide to be recognized.
  • S704 Search for a slide template having the determined layout in the terminal device.
  • the terminal device stores a plurality of layout slide templates, and after identifying the layout of the slide to be recognized, the terminal device Finding a template having the identified slide layout in the slide template and copying the content in the slide object to be recognized into the template improves the efficiency of recognizing the use of the slide layout.
  • the server when the electronic device is a server, the server may further store a thumbnail of the slide template, and the terminal device may further refer to the slide after obtaining the changed slide.
  • the server sends a modification instruction to the changed slide.
  • the method shown in FIG. 5 may further include the following steps:
  • FIG. 8 is a schematic flowchart of a method for identifying a slideshow according to Embodiment 4 of the present application.
  • the server may further store a thumbnail of the slideshow template, the terminal device.
  • the modification instruction of the changed slide may be sent to the server, and the method may include the steps of:
  • S802 Acquire feature information of the object in the to-be-identified slide from the document source code.
  • S803 Determine, according to the acquired feature information, a layout of the slide to be recognized.
  • S805 Send the found slide template to the terminal device, so that the terminal device copies the content in each object in the to-be-identified slide to the corresponding object in the received slide template. , get the changed slides.
  • the modification instruction includes related feature information of the object in the changed slide, for example, when the object is a placeholder, if only the number of placeholders in the changed slide is modified,
  • the modification instruction may include the placeholder type information and the layout in the changed slide, so that the server can locally find the type information and layout of the placeholder in the slide template, which is the same as the changed slide.
  • a slide template with only a small number of placeholders is sent to the terminal device.
  • the modified instruction may include the changed slide to be recognized.
  • the number information and type information of the bit, for the server to find the number and type of placeholders in the slide template in the local template library are the same as the changed slide to be recognized, only the placeholder layout is different.
  • the slide template is sent to the terminal device.
  • the placeholder layout described here refers to the appearance style of the placeholder, such as a circular style, a lace border style, and the like.
  • S807 Send a thumbnail of the plurality of slide templates corresponding to the modification instruction to the terminal device.
  • the object is a placeholder
  • the terminal device sends an instruction to the server to modify only the number of slide placeholders, it receives a plurality of slides modified by the server and the number of placeholders is modified.
  • the thumbnail of the template the user can click the corresponding slide template thumbnail according to their needs, to select the desired slide template.
  • the terminal device sends the instruction to the server to modify only the slide placeholder layout
  • the plurality of slide templates sent by the server and modified the placeholder layout are received. Thumbnails, users can click on the corresponding slide template thumbnails to select the desired slide template according to their needs.
  • the placeholder layout described here refers to the appearance style of the placeholder, such as a circle. Shape style, lace border style, etc.
  • S808 Receive identification information of a slide template corresponding to the thumbnail selected by the user and sent by the terminal device.
  • the identification information of the slide template is the identification information of the slide template in the server, and the server can find the corresponding template according to the identification information.
  • the identification information is sent by the server to the terminal device along with the corresponding slide template thumbnail.
  • S809 Send a slideshow template having the identifier information to the terminal device, so that the terminal device copies the content in each object in the changed slide to a slideshow template having the identifier information. In the corresponding object in , get the modified slide.
  • the server may receive a modification instruction sent by the terminal device to the changed slide, and return a corresponding slide to the terminal device according to the modification instruction.
  • the template thumbnail sends a corresponding slide template to the terminal device according to the selection of the thumbnail by the terminal device, which further improves the efficiency of identifying the slide layout.
  • An embodiment of the present application provides a method for identifying a slideshow, which is applied to an electronic device, where the method includes obtaining a document source code of a slide to be recognized, and acquiring the slide to be recognized from the source code of the document.
  • the feature information of the object in the medium is determined according to the acquired feature information, and the layout of the slide to be recognized is determined. Since the embodiment of the present application can automatically acquire the feature information of the object in the slide to be identified through the slide document source code, the efficiency and accuracy of identifying the slide layout are significantly improved compared with the manual recognition, and at the same time Automated processing of slides based on slide layouts is possible.
  • the present application also provides a device for slide recognition.
  • FIG. 11 is a schematic structural diagram of an apparatus for displaying a slideshow according to an embodiment of the present disclosure.
  • the apparatus is applied to an electronic device, and the apparatus may include: a document source code acquiring module 101, a placeholder feature information acquiring module 102, and a slideshow.
  • the tile layout determination module 103 is a schematic structural diagram of an apparatus for displaying a slideshow according to an embodiment of the present disclosure.
  • the apparatus is applied to an electronic device, and the apparatus may include: a document source code acquiring module 101, a placeholder feature information acquiring module 102, and a slideshow.
  • the tile layout determination module 103 The tile layout determination module 103.
  • the document source code obtaining module 101 is configured to obtain a document source code of the slide to be identified.
  • the object feature information obtaining module 102 is configured to acquire feature information of the object in the slide to be recognized from the document source code.
  • the slide layout determining module 103 is configured to determine a layout of the slide to be recognized according to the acquired feature information.
  • the electronic device may be a server, where the server stores a plurality of layout slide templates, the server can send the slide template to the terminal device, and the device may further include: a first search module And the first template sending module.
  • a first search module (not shown) for searching for a slide template having the determined layout in the electronic device
  • a first template sending module (not shown) for transmitting the found slide template to the terminal device, so that the terminal device copies the content in each object in the slide to be recognized
  • the changed slide is obtained from the corresponding object in the received slide template.
  • the electronic device may be a terminal device, where the terminal device stores a plurality of layout slide templates, and the device may further include: a second search module and a content copy module.
  • a second search module (not shown) for searching for a slide template having the determined layout in the terminal device
  • a content copying module (not shown) for copying content in each object in the slide to be recognized into a corresponding object in the slide template to obtain a changed slide.
  • the feature information of the object in the slide to be recognized may include: quantity information of a placeholder in a slide, size information of a placeholder in a slide, and a placeholder in a slide At least one of type information, location information of placeholders in the slide, and order information of the placeholders in the slide.
  • the object feature information obtaining module 101 may include:
  • a quantity information obtaining sub-module (not shown) for searching for all parameter names representing the placeholders in the source code of the document, and obtaining quantity information of the placeholders in the slide to be identified;
  • the object feature information obtaining module 101 may include:
  • a size information obtaining sub-module (not shown in the figure), configured to find a parameter value corresponding to the size parameter name of each placeholder, and obtain size information of each placeholder in the slide to be identified;
  • the obtaining module 101 can include:
  • a type information obtaining submodule (not shown) for determining a type to which each parameter name representing the placeholder in the document source code belongs, and obtaining a type of each placeholder in the slide to be recognized information;
  • the object feature information obtaining module 101 may include:
  • a location information acquisition sub-module (not shown) for determining, from the document source code, a vertical distance from a left-side corner of each of the placeholders to a left side of the slide base and a vertical distance from a top side of the distance Determining the two vertical distances as location information of each placeholder in the slide;
  • the object feature information obtaining module 101 may include:
  • a sequence information obtaining sub-module for adding a virtual two-dimensional plane rectangular coordinate system according to a preset rule in the slide to be recognized, and acquiring a center point position of each placeholder, after each a center point position of the placeholder, a straight line in the two-dimensional plane rectangular coordinate system with a predetermined slope, the straight line intersecting the y-axis of the two-dimensional plane rectangular coordinate system at a point to the y-axis
  • the order of the ordinate values of the intersection points is the order of the corresponding placeholders. If the ordinates of the y-axis intersection point are large, the corresponding sequence number of the placeholders is small. If there are multiple placeholders corresponding to the intersection of the y-axis points , the order number of the placeholder is determined in the order of left small and right, and the order information of each placeholder in the slide to be recognized is obtained.
  • the feature information of the object may include: a connection element between the placeholders, a number element corresponding to the placeholder, a distance between the placeholders, and an arrangement form of the placeholder, wherein the slide layout is determined
  • the module 103 can include:
  • a step-by-step determination sub-module for determining that the layout of the slide to be recognized is the same when there is a connection element with directivity between each placeholder and the orientation of each connection element is the same Step type
  • a circular determination sub-module for having a directional connection element between each placeholder and any placeholder having only one connection element pointing to the placeholder and When the placeholder points to the connection element of the other placeholder, it is determined that the layout of the slide to be recognized is a cyclic type;
  • a total fraction determining sub-module (not shown) for determining that the layout of the slide to be recognized is a total score when the distance from the placeholder to the other placeholders is equal;
  • a comparison determining sub-module (not shown) for determining that the layout of the slide to be recognized is a contrast type when each of the placeholders is arranged in a two-dimensional list;
  • a pyramid determining sub-module for determining that the layout of the slide to be recognized is a pyramid when each placeholder is arranged in a triangle or a trapezoidal form
  • a tree-determining sub-module (not shown) for determining that the layout of the slide to be recognized is a tree when there is a connection element from one placeholder to a plurality of placeholders between the placeholders formula;
  • the side-by-side determination sub-module (not shown in the figure) is used for the layout of the slide to be recognized is not any one of a step type, a loop type, a total score, a contrast type, a pyramid type, and a tree type.
  • the layout of the slide to be recognized is a parallel type.
  • the apparatus may further include: a modification instruction receiving module, a thumbnail image sending module, an identification information receiving module, and a second template sending module.
  • a thumbnail sending module (not shown) for transmitting a thumbnail of a plurality of slide templates corresponding to the modification instruction to the terminal device;
  • An identification information receiving module (not shown), configured to receive identification information of a slide template corresponding to the thumbnail selected by the user and sent by the terminal device;
  • a second template sending module (not shown) for transmitting a slide template having the identification information to the terminal device, so that the terminal device will be in each object in the changed slide
  • the content is copied to the corresponding object in the slide template having the identification information, and the modified slide is obtained.
  • An embodiment of the present application provides a device for identifying a slideshow, which is applied to an electronic device, wherein the device can obtain a document source code of a slide to be recognized, and obtain the slide to be recognized from the source code of the document.
  • the feature information of the object in the medium is determined according to the acquired feature information, and the layout of the slide to be recognized is determined. Since the embodiment of the present application can automatically acquire the feature information of the object in the slide to be identified through the slide document source code, the efficiency and accuracy of identifying the slide layout are significantly improved compared with the manual recognition, and at the same time Automated processing of slides based on slide layouts is possible.
  • the embodiment of the present application further provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board.
  • a power supply circuit for supplying power to each circuit or device; a memory for storing executable program code; and a processor for executing a program corresponding to the executable program code by reading executable program code stored in the memory for use in
  • the method for performing the slideshow identification provided by the embodiment of the present application, wherein the method for identifying the slideshow may include:
  • the embodiment of the present invention reads the feature information of the object from the document source code for the document source code of the slide, and then determines the layout of the slide according to the feature information, thereby realizing the automatic operation of the slide layout recognition.
  • the problem of low efficiency of slide layout recognition due to manual operation is solved.
  • the embodiment of the present application provides an application program for executing the method for the slide recognition provided by the embodiment of the present application at runtime.
  • the method for identifying the slide may include:
  • the embodiment of the present invention reads the feature information of the object from the document source code for the document source code of the slide, and then determines the layout of the slide according to the feature information, and implements the slide version.
  • the automatic operation of the type recognition solves the problem that the recognition of the slide layout is inefficient due to the manual operation.
  • the embodiment of the present application provides a storage medium for storing executable program code, and the executable program code is executed to execute the method for the slide recognition provided by the embodiment of the present application.
  • the method for identifying the slide may include:
  • the embodiment of the present invention reads the feature information of the object from the document source code for the document source code of the slide, and then determines the layout of the slide according to the feature information, thereby realizing the automatic operation of the slide layout recognition.
  • the problem of low efficiency of slide layout recognition due to manual operation is solved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)
  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

一种幻灯片识别的方法及装置,应用于电子设备中,所述方法包括获得待识别的幻灯片的文档源代码(S101),从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息(S102),根据获取的所述特征信息,确定所述待识别的幻灯片的版式(S103)。电子设备能够通过幻灯片文档源代码,自动化地获取待识别幻灯片中对象的特征信息,在识别幻灯片版式的效率和准确性上相较人工识别均有显著的提高,同时为后续基于幻灯片版式的幻灯片自动化处理带来可能。

Description

一种幻灯片识别的方法及装置
本申请要求于2015年12月31日提交中国专利局、申请号为201511033937.X发明名称为“一种幻灯片识别的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及办公软件领域,特别涉及一种幻灯片识别的方法及装置。
背景技术
随着科技的发展,人们越来越普遍的使用办公软件进行办公。
演示文稿是办公软件的重要组成部分,用户不仅可以在投影仪或者计算机上进行演示,也可以将演示文稿打印出来,制作成胶片,以便应用到更广泛的领域中。演示文稿由多张幻灯片构成,不同的幻灯片具有不同的版式。在进行幻灯片美化或者幻灯片版式改变之前,需要识别幻灯片版式。
现有技术通过人工识别幻灯片版式,效率低下且容易出错,不利于对幻灯片进行批量处理。
发明内容
本申请实施例的目的在于提供一种幻灯片识别的方法及装置,以自动识别幻灯片版式。
为达到上述目的,本申请实施例公开了一种幻灯片识别的方法,应用于电子设备中,包括:
获得待识别的幻灯片的文档源代码;
从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
较佳的,所述电子设备为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,所述方法还包括:
查找所述服务器中具有所确定的版式的幻灯片模板;
将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
较佳的,所述电子设备为终端设备,所述终端设备中存储有多种版式的幻灯片模板,所述方法还包括:
查找所述终端设备中具有所确定的版式的幻灯片模板;
将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
较佳的,所述对象包括占位符,所述待识别的幻灯片中的对象的特征信息包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的至少一个。
较佳的,当所述特征信息为幻灯片中的占位符的数量信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息;
当所述特征信息为幻灯片中的占位符的大小信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息;
当所述特征信息为幻灯片中的占位符的类型信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息;
当所述特征信息为幻灯片中的占位符的位置信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
从所述文档源代码中确定各占位符左上角距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两个垂直距离确定为每个占位符在幻灯片中的位置信息;
当所述特征信息为幻灯片中的占位符的顺序信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。
较佳的,所述对象包括占位符,所述对象的特征信息包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式;
所述根据获取的所述特征信息,确定所述待识别的幻灯片的版式,包括:
在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时,确定所述待识别的幻灯片的版式为步骤式;
在每个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;
在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;
在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;
在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;
在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;
在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;
在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式。
较佳的,所述方法还包括:
接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
本申请实施例还公开了一种幻灯片识别的装置,应用于电子设备中,所述装置包括:
文档源代码获取模块,用于获得待识别的幻灯片的文档源代码;
对象特征信息获取模块,用于从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
幻灯片版式确定模块,用于根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
较佳的,所述电子设备为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,所述装置还包括:
第一查找模块,用于查找所述电子设备中具有所确定的版式的幻灯片模板;
第一模板发送模块,用于将查找到的幻灯片模板发送给所述终端设备, 以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
较佳的,所述电子设备为终端设备,所述终端设备中存储有多种版式的幻灯片模板,所述装置还包括:
第二查找模块,用于查找所述终端设备中具有所确定的版式的幻灯片模板;
内容复制模块,用于将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
较佳的,所述待识别的幻灯片中的对象的特征信息包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的至少一个,当所述特征信息为幻灯片中的占位符的数量信息时,所述对象特征信息获取模块,包括:
数量信息获取子模块,用于查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息;
当所述特征信息为幻灯片中的占位符的大小信息时,所述对象特征信息获取模块,包括:
大小信息获取子模块,用于查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息;
当所述特征信息为幻灯片中的占位符的类型信息时,所述对象特征信息获取模块,包括:
类型信息获取子模块,用于确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息;
当所述特征信息为幻灯片中的占位符的位置信息时,所述对象特征信息获取模块,包括:
位置信息获取子模块,用于从所述文档源代码中确定各占位符左上角距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两 个垂直距离确定为每个占位符在幻灯片中的位置信息;
当所述特征信息为幻灯片中的占位符的顺序信息时,所述对象特征信息获取模块,包括:
顺序信息获取子模块,用于在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。
较佳的,所述对象包括占位符,所述对象的特征信息包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式;
所述幻灯片版式确定模块,包括:
步骤式确定子模块,用于在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时,确定所述待识别的幻灯片的版式为步骤式;在每个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;
循环式确定子模块,用于在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;
总分式确定子模块,用于在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;
对比式确定子模块,用于在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;
金字塔式确定子模块,用于在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;
树式确定子模块,用于在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;
并列式确定子模块,用于在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式。
较佳的,所述装置还包括:
修改指令接收模块,用于接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
缩略图发送模块,用于将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
标识信息接收模块,用于接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
第二模板发送模块,用于将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
本申请还提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本申请实施例所提供的幻灯片识别的方法。
本申请实施例提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的幻灯片识别的方法。
本申请实施例提供了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码被运行以执行本申请实施例提供的幻灯片识别的方法。
由上述的技术方案可见,本申请实施例提供了一种幻灯片识别的方法及 装置,应用于电子设备中,所述方法包括获得待识别的幻灯片的文档源代码,从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,根据获取的所述特征信息,确定所述待识别的幻灯片的版式。由于本申请实施例能够通过幻灯片文档源代码,自动化地获取待识别幻灯片中对象的特征信息,在识别幻灯片版式的效率和准确性上相较人工识别均有显著的提高,同时为后续基于幻灯片版式的幻灯片自动化处理带来可能。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例一提供的一种幻灯片识别的方法的流程示意图;
图2为本申请实施例提供的待识别的幻灯片示意图;
图3为本申请实施例提供的确定幻灯片中占位符顺序的示意图;
图4A为本申请实施例提供的一种步骤式版式示意图;
图4B为本申请实施例提供的另一种步骤式版式示意图;
图4C为本申请实施例提供的一种循环式版式示意图;
图4D为本申请实施例提供的一种总分式版式示意图;
图4E为本申请实施例提供的一种金字塔式版式示意图;
图4F为本申请实施例提供的一种对比式版式示意图;
图4G为本申请实施例提供的一种树式版式示意图;
图4H为本申请实施例提供的一种并列式版式示意图;
图5为本申请实施例二提供的一种幻灯片识别的方法的流程示意图;
图6A为本申请实施例所提供的一种幻灯片模板示意图;
图6B为将图2所示的待识别的幻灯片中占位符的内容复制到图6A所示 幻灯片模板中所得到的改变后的幻灯片的示意图;
图7为本申请实施例三提供的一种幻灯片识别的方法的流程示意图;
图8为本申请实施例四提供的一种幻灯片识别的方法的流程示意图;
图9为终端设备接收到了服务器发送的多个只修改了占位符个数的幻灯片模板的缩略图后的幻灯片示意图;
图10为终端设备接收到了服务器发送的多个只修改了占位符版式的幻灯片模板的缩略图后的幻灯片示意图;
图11为本申请实施例提供的一种幻灯片识别的装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
图1为本申请实施例一提供的一种幻灯片识别的方法的流程示意图,所述方法应用于电子设备中,该方法可以包括步骤:
S101:获得待识别的幻灯片的文档源代码。
S102:从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息。
所述对象可以包括:所述待识别的幻灯片中的占位符,所述对象的特征信息,可以为该幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息等。例如图2中所示,该幻灯片中共有三个占位符,即占位符1、占位符2和占位符3;其中占位符1的位置信息为:距幻灯片左上角水平距离1.55厘米,距幻灯片左上角垂直距离0.99厘米,占位符1类型为纯文本,占位符1大小为:高度3.18厘米,宽度22.86厘米;占位符2的位置信息为:距幻灯片左上角水平距离1.39厘米,距幻灯片左上角垂直距离4.96厘米,占位符2类型为表格,占位符2大小为:高度12.37厘米,宽度 11.22厘米;占位符3的位置信息为:距幻灯片左上角水平距离14.49厘米,距幻灯片左上角垂直距离6.55厘米,占位符3类型为图片,占位符3大小为:高度9.13厘米,宽度9.14厘米。
所述对象还可以包括:文本框、形状、表格等。这些对象的特征信息都可以从文档源代码中获得。
所述对象的特征信息可由电子设备通过对幻灯片文档源代码的读取而获得。
根据每次用户对幻灯片更改指令的不同,电子设备每次所得到的对象的特征信息也会有所不同,不限于以上所述的对象的特征信息。
当所述特征信息为幻灯片中的占位符的数量信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息可以为:
查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息。例如对于图2所示的幻灯片,在幻灯片的文档源代码中,查找到其中有3个代表占位符的参数名,则占位符的数量就为3。
当所述特征信息为幻灯片中的占位符的大小信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息可以为:
查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息。例如,在查找到了某个代表占位符的参数名之后,在该参数名的属性代码中按照关键词查找方式,如通过查找关键词“width”“height”所对应参数值来确定该占位符的大小。
当所述特征信息为幻灯片中的占位符的类型信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息可以为:
确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息。例如,在查找到了某个代表占位符的参数名之后,在该参数名的属性代码中查找关键词“type”所对应的类型参数,比如,该类型参数为“picture”,则确定该占位符的类型为“图片”,又如,该类型参数为“table”,则确定该占位符的类型为“表格”,等等。
当所述特征信息为幻灯片中的占位符的位置信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息可以为:
从所述文档源代码中确定各占位符左上角点距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两个垂直距离确定为每个占位符在幻灯片中的位置信息。例如图2中所示,其中占位符1的位置信息为:距幻灯片左上角水平距离1.55厘米,距幻灯片左上角垂直距离0.99厘米,占位符2的位置信息为:距幻灯片左上角水平距离1.39厘米,距幻灯片左上角垂直距离4.96厘米,占位符3的位置信息为:距幻灯片左上角水平距离14.49厘米,距幻灯片左上角垂直距离6.55厘米。
当所述特征信息为幻灯片中的占位符的顺序信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息可以为:
在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。如图3所示,在幻灯片中作直角坐标系,过图中4个占位符的中心点以一定的斜率作直线,与所述直角坐标系的y轴分别相交于点(0,y1)、点(0,y2)和点(0,y3),因为y1>y2>y3,则可定义占位符1为排序第一的占位符,占位符3为排序第四的占位符,由于过占位符2和占位符4中心点的直线与y轴的交点都是(0,y2),且占位符2在占位符4的左边,则占位符2的排序序号小于占位符4的排序序号,综上,排序序号为1的是占位符1,排序序号为2的是占位符2,排序序号为3的是占位符4,排序序号为4的是占位符3。
S103:根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
所述幻灯片版式是由所述幻灯片中对象的特征信息而确定的幻灯片所展示出的排版布局方式,如图文混排版式,即指幻灯片中既有文字类型的对象,也有图片类型的对象,或者,如并列版式,即指幻灯片中的对象是以多行或 多列并列展示的方式进行排版的。幻灯片的版式所包含的内容比较广泛,可根据具体使用时的需要来进一步确定版式的具体内容和含义。
在实际应用中,可以根据所述幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的一个或几个,判断所述幻灯片的版式,例如检测到待识别的幻灯片中占位符的数量大于2,且所述占位符的类型既有文字型,也有图片型,即可确定该待识别的幻灯片版式为图文混排式。又例如确定的幻灯片的版式可以为并列式、步骤式或对比式等。当所述电子设备检测到所述待识别的幻灯片中占位符的数量大于2,且各占位符的位置为左右或者上下对称,即可确定该待识别的幻灯片版式为并列式。
又例如:对于表格而言,确定的幻灯片的版式可以为并列式、步骤式或对比式等。当所述表格只有一行或者一列,且表格中的内容包含编号时,则确定的幻灯片的版式为步骤式,所述表格中的内容可以包括编号和具体描述文字,所述编号可以是用户手动输入的数字,也可以是由于该表格中单元格被设置为项目编号属性而显示出的数字;当所述表格只有一行或者一列,且表格中的文字不为编号时,则确定的幻灯片的版式为并列式;当所述表格的首行或者首列具有多个标题,则确定的幻灯片的版式为对比式,其中,标题的判断方法为:
若所述表格的首行单元格或者首列单元格被设置为填充,如该单元格被填充上颜色、纹理等,则确定被填充的单元格为标题,或者
若所述表格的首行单元格或者首列单元格中文字的字号大于其它行和列单元格中文字的字号,则确定所述首行单元格或者首列单元格中文字为标题,或者
若所述表格的首行单元格或者首列单元格中文字的字形相较其它行和列单元格中文字的字形有所区别,如字形被设置为加粗、倾斜等,则确定所述首行单元格或者首列单元格中文字为标题。
本申请实施例针对幻灯片的文档源代码,从所述文档源代码中读取出对象的特征信息,再根据所述特征信息确定该幻灯片的版式,实现了幻灯片版 式识别的自动化操作,解决了由于人工操作而产生的对幻灯片版式识别效率低下的问题。
所述对象的特征信息可以包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式;
步骤S103可以包括:
在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时,确定所述待识别的幻灯片的版式为步骤式;如图4A所示为带有指向性的连接元素且各连接元素的指向相同的步骤式幻灯片版式示意图;
在每个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;如图4B所示为具有对应的编号元素的步骤式幻灯片版式示意图;
在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;如图4C所示为循环式幻灯片版式示意图;
在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;如图4D所示为总分式幻灯片版式示意图;
在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;如图4F所示为对比式幻灯片版式示意图;
在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;如图4E所示为金字塔式幻灯片版式示意图;
在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;如图4G所示为树式幻灯片版式示意图;
在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式;如图4H所示为并列式幻灯片版式示意图。
在其它具体的实施例中,当所述的电子设备为服务器时,该服务器本地可以存储有多种版式的幻灯片模板,所述服务器可以使用本申请实施例一所 示的方法,在本地存储的幻灯片模板中查找所确定的版式的幻灯片模板,并能够将所述模板发送给终端设备。基于本申请实施例一所示的方法,所述电子设备为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,图1所示方法还可以包括:
查找所述服务器中具有所确定的版式的幻灯片模板;
将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
图5为本申请实施例二提供的一种幻灯片识别的方法的流程示意图,基于实施例一所示的步骤,其中所述的电子设备为服务器,该服务器本地可以存储有多种版式的幻灯片模板,所述服务器可以使用本申请实施例一所示的方法,在本地存储的幻灯片模板中查找所确定的版式的幻灯片模板,并能够将所述模板发送给终端设备,该方法可以包括步骤:
S501:获得待识别的幻灯片的文档源代码。
S502:从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息。
S503:根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
S504:查找所述服务器中具有所确定的版式的幻灯片模板。
将所述待识别的幻灯片中的对象的特征信息与所述多种版式的幻灯片模板中的对象的特征信息进行对比,确定与所述待识别的幻灯片相匹配的幻灯片模板。
所述服务器能够识别所述幻灯片模板中对象的特征信息,并可按照预设的匹配判断方案,与待识别的幻灯片的对象的特征信息进行匹配对比,筛选出符合条件的幻灯片模板。
所述对象可以包括占位符,所述待识别的幻灯片中的对象的特征信息包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符 的顺序信息中的至少一个。步骤S504可以包括步骤a至步骤e所述的流程:
步骤a、将所述待识别的幻灯片中的占位符的个数与所述各幻灯片模板中的占位符的个数进行对比,获得占位符的个数与所述待识别的幻灯片中的占位符的个数相同的幻灯片模板;
步骤b、将所述待识别的幻灯片中的占位符的大小与所获得的幻灯片模板中的相同顺序的占位符的大小进行对比,获得大小比较结果;
步骤c、将所述待识别的幻灯片中的占位符的类型与获得的幻灯片模板中的相同顺序处占位符的类型进行对比,获得类型比较结果;
步骤d、将所述待识别的幻灯片中的占位符的位置信息与获得的幻灯片模板中的相同顺序处占位符的位置信息进行对比,获得位置比较结果;
步骤e、根据所述大小比较结果、类型比较结果、位置比较结果对所获得的各幻灯片模板进行评分,将评分满足预设分数要求的幻灯片模板确定为与所述待识别的幻灯片匹配的幻灯片模板。
满足预设分数要求的幻灯片模板可以是一个幻灯片模板或者多个幻灯片模板。
S505:将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
终端设备接收到由所述服务器发送来的幻灯片模板后,所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所述与所述待识别的幻灯片匹配的幻灯片模板中的相同顺序的对象中,得到改变后的幻灯片。
例如,图2为待识别的幻灯片,图6A为与所述待识别的幻灯片匹配的幻灯片模板,在图2所示的幻灯片中,所述对象为占位符,按照所述的确定占位符排序的方法,占位符1的排序序号为1,占位符2的排序序号为2,占位符3的排序序号为3;在图6A所示的幻灯片中,占位符1a的排序序号为1,占位符2a的排序序号为2,占位符3a的排序序号为3,则将图2所示幻灯片中占位符的内容复制到图6A所示的幻灯片模板中,即将图2中占位符中的内 容复制到图6A中具有相同占位符排序序号的占位符中,得到的改变后的幻灯片如图6B所示。
在本申请实施例中,针对所述的电子设备为服务器的情况,所述服务器中存储有多种版式的幻灯片模板,所述服务器在识别完成待识别幻灯片的版式后,再在所述幻灯片模板中查找具有所识别的幻灯片版式的模板,并将该模板发送给终端设备,以使所述终端设备进行占位符内容的替换,从而提升了识别使用幻灯片版式的效率。
在其它具体实施例中,当所述的电子设备为终端设备时,该终端设备本地可以存储有多种版式的幻灯片模板,所述终端设备可以使用本申请实施例一所示的方法,在本地存储的幻灯片模板中查找所确定的版式的幻灯片模板,并将待识别幻灯片对象中的内容复制到所述幻灯片模板的相应对象中。基于本申请实施例一所示的方法,所述电子设备为终端设备,所述终端设备中存储有多种版式的幻灯片模板,图1所示方法还可以包括:
查找所述终端设备中具有所确定的版式的幻灯片模板;
将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
图7为本申请实施例三提供的一种幻灯片识别的方法的流程示意图,基于实施例一所示的步骤,所述的电子设备为终端设备,该终端设备本地可以存储有多种版式的幻灯片模板,所述终端设备可以使用本申请实施例一所示的方法,在本地存储的幻灯片模板中查找所确定的版式的幻灯片模板,并将待识别幻灯片对象中的内容复制到所述幻灯片模板的相应对象中,该方法可以包括步骤:
S701:获得待识别的幻灯片的文档源代码。
S702:从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息。
S703:根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
S704:查找所述终端设备中具有所确定的版式的幻灯片模板。
S705:将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
在本申请实施例中,针对所述的电子设备为终端设备的情况,所述终端设备中存储有多种版式的幻灯片模板,所述终端设备在识别完成待识别幻灯片的版式后,再在所述幻灯片模板中查找具有所识别的幻灯片版式的模板,并将待识别幻灯片对象中的内容的复制到所述模板中,从而提升了识别使用幻灯片版式的效率。
在其它具体实施例中,当所述电子设备为服务器时,所述服务器还可以存储有所述幻灯片模板的缩略图,所述终端设备在得到改变后的幻灯片后,可以再向所述服务器发送对该改变后的幻灯片的修改指令,基于本申请实施例二所示的方法,图5所示方法还可以包括步骤:
接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
图8为本申请实施例四提供的一种幻灯片识别的方法的流程示意图,基于实施例二所示的步骤,所述服务器还可以存储有所述幻灯片模板的缩略图,所述终端设备在得到改变后的幻灯片后,可以再向所述服务器发送对该改变后的幻灯片的修改指令,该方法可以包括步骤:
S801:获得待识别的幻灯片的文档源代码。
S802:从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息。
S803:根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
S804:查找所述服务器中具有所确定的版式的幻灯片模板。
S805:将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
S806:接收所述终端设备发送的对所述改变后的幻灯片的修改指令。
该修改指令包括所述改变后的幻灯片中对象的相关特征信息,例如,当所述对象为占位符时,若只对改变后的幻灯片中占位符的个数进行修改,所述修改指令中就可以包含该改变后的幻灯片中占位符类型信息和版式,以供服务器在本地查找幻灯片模板中占位符的类型信息和版式都与所述该改变后的幻灯片相同、仅占位符个数不同的幻灯片模板,发送给终端设备。
又例如,当所述对象为占位符时,若只对改变后的待识别幻灯片中占位符的版式进行修改,所述修改指令中就可以包含该改变后的待识别幻灯片中占位符的个数信息和类型信息,以供服务器在本地模板库查找幻灯片模板中占位符的个数和类型都与所述该改变后的待识别幻灯片相同、仅占位符版式不同的幻灯片模板,发送给终端设备,此处所述的占位符版式是指该占位符的外观样式,比如圆形样式,花边边框样式等。
S807:将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备。
例如图9所示,其中所述对象为占位符,终端设备发送给服务器仅修改幻灯片占位符个数的指令后,接收到了服务器发送的多个修改了占位符个数的幻灯片模板的缩略图,用户可根据自己的需求,点击相应的幻灯片模板缩略图,来选择所需的幻灯片模板。
又例如图10所示,其中所述对象为占位符,终端设备发送给服务器仅修改幻灯片占位符版式的指令后,接收到了服务器发送的多个修改了占位符版式的幻灯片模板的缩略图,用户可根据自己的需求,点击相应的幻灯片模板缩略图,来选择所需的幻灯片模板,此处所述的占位符版式是指该占位符的外观样式,比如圆形样式,花边边框样式等。
S808:接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息。
所述幻灯片模板的标识信息是幻灯片模板在服务器中的标识信息,服务器可根据该标识信息查找到相应模板。该标识信息是由服务器随相应的幻灯片模板缩略图一同发送给所述终端设备的。
S809:将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
本申请实施例中,针对所述的电子设备为服务器的情况,所述服务器可以接收终端设备发送的对改变后的幻灯片的修改指令,并根据所述修改指令返回给终端设备相应的幻灯片模板缩略图,根据终端设备对所述缩略图的选择,向所述终端设备发送对应的幻灯片模板,进一步地提升了识别使用幻灯片版式的效率。
本申请实施例提供了一种幻灯片识别的方法,应用于电子设备中,所述方法包括获得待识别的幻灯片的文档源代码,从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,根据获取的所述特征信息,确定所述待识别的幻灯片的版式。由于本申请实施例能够通过幻灯片文档源代码,自动化地获取待识别幻灯片中对象的特征信息,在识别幻灯片版式的效率和准确性上相较人工识别均有显著的提高,同时为后续基于幻灯片版式的幻灯片自动化处理带来可能。
与图1所示方法相对应,本申请还提供了一种幻灯片识别的装置。
图11为本申请实施例提供的一种幻灯片识别的装置的结构示意图,该装置应用于电子设备,所述装置可以包括:文档源代码获取模块101、占位符特征信息获取模块102、幻灯片版式确定模块103。
其中,文档源代码获取模块101,用于获得待识别的幻灯片的文档源代码。
对象特征信息获取模块102,用于从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息。
幻灯片版式确定模块103,用于根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
进一步地,所述电子设备可以为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,所述装置还可以包括:第一查找模块和第一模板发送模块。
第一查找模块(图中未示出),用于查找所述电子设备中具有所确定的版式的幻灯片模板;
第一模板发送模块(图中未示出),用于将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
进一步地,所述电子设备可以为终端设备,所述终端设备中存储有多种版式的幻灯片模板,所述装置还可以包括:第二查找模块和内容复制模块。
第二查找模块(图中未示出),用于查找所述终端设备中具有所确定的版式的幻灯片模板;
内容复制模块(图中未示出),用于将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
进一步地,所述所述待识别的幻灯片中的对象的特征信息可以包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的至少一个。
当所述特征信息为幻灯片中的占位符的数量信息时,所述对象特征信息获取模块101可以包括:
数量信息获取子模块(图中未示出),用于查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息;
当所述特征信息为幻灯片中的占位符的大小信息时,所述对象特征信息获取模块101可以包括:
大小信息获取子模块(图中未示出),用于查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息;
当所述特征信息为幻灯片中的占位符的类型信息时,所述对象特征信息 获取模块101可以包括:
类型信息获取子模块(图中未示出),用于确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息;
当所述特征信息为幻灯片中的占位符的位置信息时,所述对象特征信息获取模块101可以包括:
位置信息获取子模块(图中未示出),用于从所述文档源代码中确定各占位符左上角距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两个垂直距离确定为每个占位符在幻灯片中的位置信息;
当所述特征信息为幻灯片中的占位符的顺序信息时,所述对象特征信息获取模块101可以包括:
顺序信息获取子模块(图中未示出),用于在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。
进一步地,所述对象的特征信息可以包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式,所述幻灯片版式确定模块103,可以包括:
步骤式确定子模块(图中未示出),用于在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时,确定所述待识别的幻灯片的版式为步骤式;
在每个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;
循环式确定子模块(图中未示出),用于在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;
总分式确定子模块(图中未示出),用于在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;
对比式确定子模块(图中未示出),用于在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;
金字塔式确定子模块(图中未示出),用于在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;
树式确定子模块(图中未示出),用于在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;
并列式确定子模块(图中未示出),用于在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式。
进一步地,所述装置还可以包括:修改指令接收模块、缩略图发送模块、标识信息接收模块和第二模板发送模块。
修改指令接收模块(图中未示出),用于接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
缩略图发送模块(图中未示出),用于将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
标识信息接收模块(图中未示出),用于接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
第二模板发送模块(图中未示出),用于将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
本申请实施例提供了一种幻灯片识别的装置,应用于电子设备中,所述装置能够获得待识别的幻灯片的文档源代码,从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,根据获取的所述特征信息,确定所述待识别的幻灯片的版式。由于本申请实施例能够通过幻灯片文档源代码,自动化地获取待识别幻灯片中对象的特征信息,在识别幻灯片版式的效率和准确性上相较人工识别均有显著的提高,同时为后续基于幻灯片版式的幻灯片自动化处理带来可能。
本申请实施例还提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本申请实施例所提供的幻灯片识别的方法,其中,该幻灯片识别的方法,可以包括:
获得待识别的幻灯片的文档源代码;
从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
本发明实施例针对幻灯片的文档源代码,从所述文档源代码中读取出对象的特征信息,再根据所述特征信息确定该幻灯片的版式,实现了幻灯片版式识别的自动化操作,解决了由于人工操作而产生的对幻灯片版式识别效率低下的问题。
本申请实施例提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的幻灯片识别的方法。其中,该幻灯片识别的方法,可以包括:
获得待识别的幻灯片的文档源代码;
从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
本发明实施例针对幻灯片的文档源代码,从所述文档源代码中读取出对象的特征信息,再根据所述特征信息确定该幻灯片的版式,实现了幻灯片版 式识别的自动化操作,解决了由于人工操作而产生的对幻灯片版式识别效率低下的问题。
本申请实施例提供了一种存储介质,用于存储可执行程序代码,该可执行程序代码被运行以执行本申请实施例提供的幻灯片识别的方法。其中,该幻灯片识别的方法,可以包括:
获得待识别的幻灯片的文档源代码;
从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
本发明实施例针对幻灯片的文档源代码,从所述文档源代码中读取出对象的特征信息,再根据所述特征信息确定该幻灯片的版式,实现了幻灯片版式识别的自动化操作,解决了由于人工操作而产生的对幻灯片版式识别效率低下的问题。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、应用程序及存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (16)

  1. 一种幻灯片识别的方法,其特征在于,应用于电子设备中,包括:
    获得待识别的幻灯片的文档源代码;
    从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
    根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,所述方法还包括:
    查找所述服务器中具有所确定的版式的幻灯片模板;
    将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
  3. 根据权利要求1所述的方法,其特征在于,所述电子设备为终端设备,所述终端设备中存储有多种版式的幻灯片模板,所述方法还包括:
    查找所述终端设备中具有所确定的版式的幻灯片模板;
    将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
  4. 根据权利要求1~3任一所述的方法,其特征在于,所述对象包括占位符,所述待识别的幻灯片中的对象的特征信息包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的至少一个。
  5. 根据权利要求4所述的方法,其特征在于,当所述特征信息为幻灯片中的占位符的数量信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
    查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息;
    当所述特征信息为幻灯片中的占位符的大小信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
    查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息;
    当所述特征信息为幻灯片中的占位符的类型信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
    确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息;
    当所述特征信息为幻灯片中的占位符的位置信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
    从所述文档源代码中确定各占位符左上角距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两个垂直距离确定为每个占位符在幻灯片中的位置信息;
    当所述特征信息为幻灯片中的占位符的顺序信息时,所述从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息,包括:
    在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。
  6. 根据权利要求1至3中任一项所述的方法,其特征在于,所述对象包括占位符,所述对象的特征信息包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式;
    所述根据获取的所述特征信息,确定所述待识别的幻灯片的版式,包括:
    在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时, 确定所述待识别的幻灯片的版式为步骤式;
    在每个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;
    在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;
    在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;
    在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;
    在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;
    在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;
    在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式。
  7. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
    将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
    接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
    将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
  8. 一种幻灯片识别的装置,其特征在于,应用于电子设备中,所述装置包括:
    文档源代码获取模块,用于获得待识别的幻灯片的文档源代码;
    对象特征信息获取模块,用于从所述文档源代码中获取所述待识别的幻灯片中的对象的特征信息;
    幻灯片版式确定模块,用于根据获取的所述特征信息,确定所述待识别的幻灯片的版式。
  9. 根据权利要求8所述的装置,其特征在于,所述电子设备为服务器,所述服务器中存储有多种版式的幻灯片模板,所述服务器能够向终端设备发送所述幻灯片模板,所述装置还包括:
    第一查找模块,用于查找所述电子设备中具有所确定的版式的幻灯片模板;
    第一模板发送模块,用于将查找到的幻灯片模板发送给所述终端设备,以使所述终端设备将所述待识别的幻灯片中各对象中的内容复制到所接收到的幻灯片模板中的相应对象中,得到改变后的幻灯片。
  10. 根据权利要求8所述的装置,其特征在于,所述电子设备为终端设备,所述终端设备中存储有多种版式的幻灯片模板,所述装置还包括:
    第二查找模块,用于查找所述终端设备中具有所确定的版式的幻灯片模板;
    内容复制模块,用于将所述待识别的幻灯片中各对象中的内容复制到所述幻灯片模板中的相应对象中,得到改变后的幻灯片。
  11. 根据权利要求8~10任一所述的装置,其特征在于,所述待识别的幻灯片中的对象的特征信息包括:幻灯片中的占位符的数量信息、幻灯片中的占位符的大小信息、幻灯片中的占位符的类型信息、幻灯片中的占位符的位置信息和幻灯片中的占位符的顺序信息中的至少一个,当所述特征信息为幻灯片中的占位符的数量信息时,所述对象特征信息获取模块,包括:
    数量信息获取子模块,用于查找所述文档源代码中所有代表占位符的参数名,获取待识别的幻灯片中的占位符的数量信息;
    当所述特征信息为幻灯片中的占位符的大小信息时,所述对象特征信息 获取模块,包括:
    大小信息获取子模块,用于查找各占位符的尺寸参数名对应的参数值,获取待识别的幻灯片中的每个占位符的大小信息;
    当所述特征信息为幻灯片中的占位符的类型信息时,所述对象特征信息获取模块,包括:
    类型信息获取子模块,用于确定所述文档源代码中每个代表占位符的参数名所属的类型,获取待识别的幻灯片中的每个占位符的类型信息;
    当所述特征信息为幻灯片中的占位符的位置信息时,所述对象特征信息获取模块,包括:
    位置信息获取子模块,用于从所述文档源代码中确定各占位符左上角距离所述幻灯片底板左侧边的垂直距离和距离上侧边的垂直距离,将所述的两个垂直距离确定为每个占位符在幻灯片中的位置信息;
    当所述特征信息为幻灯片中的占位符的顺序信息时,所述对象特征信息获取模块,包括:
    顺序信息获取子模块,用于在待识别的幻灯片中按预设规则添加虚拟的二维平面直角坐标系,并且获取每个占位符的中心点位置,经过每个占位符的中心点位置,以预设的斜率在所述二维平面直角坐标系中作直线,所述直线与所述二维平面直角坐标系的y轴相交于一点,以与y轴的交点纵坐标值大小顺序为对应占位符的顺序,与y轴交点纵坐标数值大的,对应的占位符的排序序号小,若有多个占位符对应的与y轴的交点重合,则按左小右大的顺序确定占位符的排序序号,获取待识别的幻灯片中的每个占位符的顺序信息。
  12. 根据权利要求8至10任一所述的装置,其特征在于,所述对象包括占位符,所述对象的特征信息包括:占位符之间的连接元素、占位符对应的编号元素、占位符之间的距离和占位符的排列形式;
    所述幻灯片版式确定模块,包括:
    步骤式确定子模块,用于在各占位符之间存在带有指向性的连接元素且各连接元素的指向相同时,确定所述待识别的幻灯片的版式为步骤式;在每 个占位符均具有对应的编号元素时,确定所述待识别的幻灯片的版式为步骤式;
    循环式确定子模块,用于在各占位符之间均存在带有指向性的连接元素且任一占位符均仅具有一个指向该占位符的连接元素和由该占位符指向其他占位符的连接元素时,确定所述待识别的幻灯片的版式为循环式;
    总分式确定子模块,用于在一占位符到其他各占位符的距离相等时,确定所述待识别的幻灯片的版式为总分式;
    对比式确定子模块,用于在各占位符以二维列表的形式排列时,确定所述待识别的幻灯片的版式为对比式;
    金字塔式确定子模块,用于在各占位符以三角形或梯形形式排列时,确定所述待识别的幻灯片的版式为金字塔式;
    树式确定子模块,用于在各占位符间存在由一个占位符到多个占位符的连接元素时,确定所述待识别的幻灯片的版式为树式;
    并列式确定子模块,用于在所述待识别的幻灯片的版式不为步骤式、循环式、总分式、对比式、金字塔式、树式中的任意一种时,确定所述待识别的幻灯片的版式为并列式。
  13. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    修改指令接收模块,用于接收所述终端设备发送的对所述改变后的幻灯片的修改指令;
    缩略图发送模块,用于将与所述修改指令对应的多个幻灯片模板的缩略图发送到所述终端设备;
    标识信息接收模块,用于接收所述终端设备发送的、用户选择的缩略图对应的幻灯片模板的标识信息;
    第二模板发送模块,用于将具有所述标识信息的幻灯片模板发送给所述终端设备,以使所述终端设备将所述改变后的幻灯片中各对象中的内容复制到具有所述标识信息的幻灯片模板中的相应对象中,得到修改后的幻灯片。
  14. 一种电子设备,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行可执行程序代码,以用于执行权利要求1-7任一项所述的幻灯片识别的方法。
  15. 一种应用程序,其特征在于,所述应用程序用于在运行时执行权利要求1-7任一项所述的幻灯片识别的方法。
  16. 一种存储介质,其特征在于,所述存储介质用于存储可执行程序代码,所述可执行程序代码被运行以执行权利要求1-7任一项所述的幻灯片识别的方法。
PCT/CN2016/105885 2015-12-31 2016-11-15 一种幻灯片识别的方法及装置 WO2017114015A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
US15/780,077 US10698943B2 (en) 2015-12-31 2016-11-15 Method and apparatus for recognizing slide
AU2016380716A AU2016380716B2 (en) 2015-12-31 2016-11-15 Method and apparatus for recognizing slide
JP2018529114A JP6661014B2 (ja) 2015-12-31 2016-11-15 スライドを識別するための方法及び装置
CA3006001A CA3006001C (en) 2015-12-31 2016-11-15 Method and apparatus for recognizing slide
ES16880805T ES2966414T3 (es) 2015-12-31 2016-11-15 Procedimiento y aparato para reconocer diapositivas
EP16880805.3A EP3399430B1 (en) 2015-12-31 2016-11-15 Method and apparatus for recognizing slide

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511033937.XA CN106934336B (zh) 2015-12-31 2015-12-31 一种幻灯片识别的方法及装置
CN201511033937.X 2015-12-31

Publications (1)

Publication Number Publication Date
WO2017114015A1 true WO2017114015A1 (zh) 2017-07-06

Family

ID=59224493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105885 WO2017114015A1 (zh) 2015-12-31 2016-11-15 一种幻灯片识别的方法及装置

Country Status (8)

Country Link
US (1) US10698943B2 (zh)
EP (1) EP3399430B1 (zh)
JP (1) JP6661014B2 (zh)
CN (1) CN106934336B (zh)
AU (1) AU2016380716B2 (zh)
CA (1) CA3006001C (zh)
ES (1) ES2966414T3 (zh)
WO (1) WO2017114015A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182391B (zh) * 2017-12-19 2021-12-17 中山大学 一种基于教育视频自动提取不重复的幻灯片方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1389809A (zh) * 2001-06-04 2003-01-08 黎明网络有限公司 电子公文表示方法和系统
CN1862533A (zh) * 2005-12-31 2006-11-15 珠海金山软件股份有限公司 一种可被svg应用程序处理的演示数据文档
CN102169483A (zh) * 2011-04-25 2011-08-31 江西省电力公司信息通信中心 基于电子表单的幻灯片自动生成方法
CN104199808A (zh) * 2014-09-26 2014-12-10 广州金山移动科技有限公司 一种文档框架排版方法及装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7721195B2 (en) * 2004-08-24 2010-05-18 Oracle International Corporation RTF template and XSL/FO conversion: a new way to create computer reports
US7707498B2 (en) * 2004-09-30 2010-04-27 Microsoft Corporation Specific type content manager in an electronic document
US7383499B2 (en) * 2004-12-30 2008-06-03 Microsoft Corporation System and method for dynamically creating a destination template
US7500194B2 (en) * 2005-05-13 2009-03-03 Microsoft Corporation Applying a slide layout with an arbitrary number of placeholders
US7577905B2 (en) * 2005-06-13 2009-08-18 Microsoft Corporation Applying a design to a slide using equivalent layouts
WO2009081791A1 (ja) 2007-12-21 2009-07-02 Nec Corporation 情報処理システム、その方法及びプログラム
CN102841893A (zh) * 2011-06-21 2012-12-26 北大方正集团有限公司 处理文档中片断化数据的方法和装置
US9354779B2 (en) * 2012-03-12 2016-05-31 Microsoft Technology Licensing, Llc Providing theme variations in a user interface
US9460416B2 (en) 2012-08-16 2016-10-04 Microsoft Technology Licensing, Llc Reading mode for interactive slide presentations with accompanying notes
US9436673B2 (en) * 2013-03-28 2016-09-06 Prezi, Inc Automatic application of templates to content
US9648080B2 (en) * 2014-10-30 2017-05-09 Flipboard, Inc. Selection of page templates for presenting digital magazine content based on characteristics of additional page templates

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1389809A (zh) * 2001-06-04 2003-01-08 黎明网络有限公司 电子公文表示方法和系统
CN1862533A (zh) * 2005-12-31 2006-11-15 珠海金山软件股份有限公司 一种可被svg应用程序处理的演示数据文档
CN102169483A (zh) * 2011-04-25 2011-08-31 江西省电力公司信息通信中心 基于电子表单的幻灯片自动生成方法
CN104199808A (zh) * 2014-09-26 2014-12-10 广州金山移动科技有限公司 一种文档框架排版方法及装置

Also Published As

Publication number Publication date
US20180365245A1 (en) 2018-12-20
JP2019505038A (ja) 2019-02-21
CN106934336A (zh) 2017-07-07
CN106934336B (zh) 2020-07-03
EP3399430A1 (en) 2018-11-07
CA3006001A1 (en) 2017-07-06
AU2016380716B2 (en) 2019-11-21
ES2966414T3 (es) 2024-04-22
US10698943B2 (en) 2020-06-30
EP3399430A4 (en) 2019-07-10
AU2016380716A1 (en) 2018-06-14
JP6661014B2 (ja) 2020-03-11
CA3006001C (en) 2024-01-30
EP3399430B1 (en) 2023-09-27

Similar Documents

Publication Publication Date Title
US6687876B1 (en) Method and system for maintaining freeform ink annotations on changing views
US20120054177A1 (en) Sketch-based image search
US20110087959A1 (en) Method and device for processing the structure of a layout file
CN109685870B (zh) 信息标注方法及装置、标注设备及存储介质
US20140304586A1 (en) Electronic device and data processing method
JP2010541097A (ja) 相対位置に基く制御によるページ上のグラフィックスオブジェクトの配置
US20140351718A1 (en) Information processing device, information processing method, and computer-readable medium
CN110263792B (zh) 图像识读及数据处理方法、智能笔、系统及存储介质
WO2019033658A1 (zh) 关联注释信息确定方法、装置、智能教学设备及存储介质
JP2014215752A (ja) 電子機器および手書きデータ処理方法
US20150248390A1 (en) Presenting associations of strokes with content
US11663398B2 (en) Mapping annotations to ranges of text across documents
WO2017114015A1 (zh) 一种幻灯片识别的方法及装置
CN103605521A (zh) 一种实现界面对位的方法及装置
JP2012014608A (ja) 情報処理装置、情報処理方法、及びプログラム
US20230011287A1 (en) Predictive placement of structured versions of digital assets in unstructured 2-dimensional or 3-dimensional space
CN115147858A (zh) 手写体表单图像数据生成方法、装置、设备及介质
JP2016181042A (ja) 検索装置、方法及びプログラム
CN110046273B (zh) 一种基于绘图的书籍查询推荐方法、电子设备及存储介质
CN113378526A (zh) Pdf段落处理方法、装置、存储介质及设备
US9912834B2 (en) Document camera device and cutout assistance method
JP2016103150A (ja) 文書処理装置および文書処理プログラム
US20240220084A1 (en) Information display method, device, computer apparatus and storage medium
WO2023029116A1 (zh) 文本图像的排版方法、装置、电子设备及存储介质
JP2008250154A (ja) 図形評価プログラムおよび図形評価装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880805

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3006001

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2018529114

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 2016380716

Country of ref document: AU

Date of ref document: 20161115

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016880805

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016880805

Country of ref document: EP

Effective date: 20180731